:root {
  --blue-1: #0d4a7a;
  --blue-2: #1a6fb5;
  --blue-3: #3aa0e0;
  --blue-4: #7ec8f0;
  --blue-soft: #a8daf8;
  --glass: rgba(255, 255, 255, 0.22);
  --text: #fff;
  --app-height: 100dvh;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: var(--app-height, 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #0d4a7a;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
body {
  overflow: hidden;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  height: var(--app-height, 100%);
  position: relative;
  background: linear-gradient(180deg, #5eb8e8 0%, #3aa0e0 35%, #1a7fc4 70%, #0d5a96 100%);
  overflow: hidden;
}
.page {
  display: none;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px calc(80px + var(--safe-bottom));
  position: relative;
  z-index: 1;
}
.page.active { display: block; }

/* 首页：整图背景 + 九宫格按钮热区 */
.page-home {
  padding: 0 !important;
  background: #0d4a7a;
  overflow: hidden;
}
.home-stage {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.home-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.home-btns-wrap {
  position: absolute;
  left: 15%;
  width: 70%;
  top: 33%;
  z-index: 2;
}
.home-btns-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.home-hotspots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.home-hotspots a {
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.home-hotspots a:active {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
}

.bg-deco {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: url("../img/home-bg.jpg") center bottom / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to top, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 100%);
}

.header-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 36px;
}
.logo-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.logo-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #f7b731);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.logo-uni { font-size: 11px; opacity: .95; }
.logo-right {
  font-size: 11px;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-right .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8ef, #2a7);
}

.hero {
  text-align: center;
  margin: 8px 0 16px;
}
.hero .slogan {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .95;
  margin-bottom: 4px;
}
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
  line-height: 1.25;
}
.hero h1 .year {
  font-family: "STXingkai", "KaiTi", cursive;
  font-size: 32px;
  margin-right: 4px;
}
.date-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(120, 90, 200, 0.35);
  border: 1px solid rgba(255,255,255,.35);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  padding: 12px 6px 24px;
  max-width: 360px;
  margin: 0 auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.nav-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), rgba(40,140,210,.55) 55%, rgba(20,100,170,.75));
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 16px rgba(10,60,110,.25), inset 0 1px 8px rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: transform .15s;
}
.nav-item:active .nav-circle { transform: scale(.94); }
.nav-label { font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.2); }

.section-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 10px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eb8ef, #2a86c8);
  border: 1.5px solid rgba(255,255,255,.6);
  box-shadow: 0 4px 14px rgba(10,60,110,.28), inset 0 1px 6px rgba(255,255,255,.4);
  font-size: 16px;
  font-weight: 700;
}

.content-card {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  line-height: 1.7;
  font-size: 14px;
}
.content-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
}
.content-card.white {
  background: rgba(255,255,255,.88);
  color: #1a4a6e;
  border-color: rgba(255,255,255,.9);
}
.content-card.white h3 { color: #1a6fb5; }

.timeline {
  position: relative;
  padding-left: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(255,255,255,.55);
}
.timeline .content-card {
  position: relative;
}
.timeline .content-card::before {
  content: "";
  position: absolute;
  left: -16px; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,160,224,.6);
}

.contact-block { margin-bottom: 16px; }
.contact-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; margin-bottom: 8px; font-size: 15px;
}
.contact-title::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
}
.venue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  font-size: 13px;
  cursor: pointer;
}
.venue-row .left { font-weight: 700; white-space: nowrap; }
.venue-row .right { text-align: right; opacity: .95; }

.building {
  text-align: center;
  padding: 60px 20px;
  font-size: 36px;
  font-weight: 800;
  color: #1a6fb5;
  text-shadow: 0 0 20px rgba(255,220,100,.8), 0 2px 0 #fff;
  letter-spacing: 4px;
}

.footer-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(440px, calc(100% - 32px));
  display: flex;
  gap: 12px;
  z-index: 20;
}
.footer-nav button,
.footer-nav a {
  flex: 1;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eb8ef, #2a86c8);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 16px rgba(10,60,110,.3), inset 0 1px 6px rgba(255,255,255,.35);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.footer-nav .primary { flex: 1.35; }

.form-wrap { max-width: 400px; margin: 0 auto; }
.form-field {
  margin-bottom: 10px;
}
.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  opacity: .95;
}
.form-field input,
.form-field select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(200, 230, 250, 0.55);
  color: #0d3a5c;
  font-size: 14px;
  outline: none;
}
.form-field input::placeholder { color: #5a7a94; }
.form-note {
  color: #ff6b6b;
  font-size: 12px;
  text-align: center;
  margin: 10px 0 14px;
}
.form-sub {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0d4a7a;
  margin: 14px 0 10px;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.success-tip {
  text-align: center;
  margin: 0 0 28px;
  font-size: 14px;
  opacity: .95;
}
.success-home {
  max-width: 240px;
  margin: 0 auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-btn {
  display: block;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eb8ef, #2a86c8);
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10,60,110,.3);
}
.submit-btn:disabled { opacity: .6; }

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
  margin: 30px auto;
}
.choice-btn {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5eb8ef, #2a86c8);
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(10,60,110,.28);
}
.success-msg {
  text-align: center;
  margin: 40px 0 24px;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* 报名页：按设计图比例撑开，输入框跟背景框对齐（避免微信裁切后错位） */
.page-signup {
  padding: 0 !important;
  background: #0d4a7a;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.signup-stage {
  position: relative;
  width: 100%;
  height: auto;
  line-height: 0;
}
.signup-bg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.signup-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.signup-layer .sf {
  position: absolute;
  left: 35%;
  width: 42%;
  border: 0;
  outline: none;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.signup-layer .sf-select {
  left: 42%;
  width: 36%;
}
.signup-layer .sf-picker {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  line-height: 1.2;
}
.signup-layer .sf-picker.is-filled {
  /* 有选中值时盖住背景 ·标签 */
}
.signup-layer .sf::placeholder {
  color: transparent;
  opacity: 0;
}
.signup-hot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.signup-hot-home {
  left: 7%;
  width: 34%;
  top: 78.2%;
  height: 5.2%;
}
.signup-hot-submit {
  left: 45%;
  width: 48%;
  top: 78.2%;
  height: 5.2%;
}

/* 下拉选择：灰色透明遮罩 + 双按钮素材 */
.picker-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(60, 60, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  box-sizing: border-box;
}
.picker-mask[hidden] {
  display: none !important;
}
.picker-sheet {
  position: relative;
  width: 100%;
  max-width: 190px;
  line-height: 0;
}
.picker-sheet-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.picker-opt {
  position: absolute;
  left: 8%;
  width: 84%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.picker-opt-top {
  top: 7%;
  height: 22%;
}
.picker-opt-bottom {
  top: 71%;
  height: 22%;
}

.toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 99;
  max-width: 80%;
  text-align: center;
  display: none;
}
.toast.show { display: block; }

/* 内容整图页：默认铺满可视区；仅大会日程可下拉 */
.page-fullimg {
  padding: 0 !important;
  background: #0d4a7a;
  overflow: hidden;
}
.fullimg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.fullimg-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
}
.page-fullimg.is-scroll {
  overflow-x: hidden;
  overflow-y: auto;
}
.page-fullimg.is-scroll .fullimg-wrap {
  height: auto;
  min-height: 100%;
}
.page-fullimg.is-scroll .fullimg-wrap img {
  height: auto;
  object-fit: unset;
  object-position: unset;
}
.fullimg-empty {
  display: none;
  width: 100%;
  padding: 80px 24px;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  font-weight: 600;
}

.page-live {
  padding: 0 !important;
  background: #0d4a7a;
  overflow: hidden;
}
.live-back {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  height: 32px;
  padding: 0 14px;
  line-height: 32px;
  border-radius: 999px;
  background: rgba(13,74,122,.82);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.live-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: none;
}
.live-empty {
  display: none;
  padding: 80px 24px;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 481px) {
  #app {
    box-shadow: 0 0 40px rgba(0,0,0,.35);
  }
}
