/* =========================================================
   肠道微生态产学研融合发展研讨会 · 邀请函 H5
   移动端优先 / 无构建依赖
   ========================================================= */

:root {
  --blue-950: #021b4d;
  --blue-900: #032b83;
  --blue-700: #0746c8;
  --blue-600: #0a5cf5;
  --blue-500: #1261ff;
  --cyan-400: #2dd9ff;
  --cyan-200: #9df4ff;
  --ink: #26394b;
  --ink-strong: #162d42;
  --ink-soft: #4f697d;
  --ink-mute: #7e93a4;
  --line: rgba(18, 97, 255, 0.14);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --header-h: clamp(94px, 24vw, 114px);
  --radius: 8px;
  --shadow-panel: 0 26px 72px rgba(0, 24, 92, 0.38), 0 4px 16px rgba(0, 22, 80, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #021b4d;
}

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* 固定背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #043ec9 url("../assets/bg-hangzhou.webp") center center / cover no-repeat;
  transform: scale(1.015);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 28%, rgba(38, 180, 255, 0.05) 0%, rgba(0, 20, 90, 0.18) 58%, rgba(0, 12, 60, 0.46) 100%),
    linear-gradient(180deg, rgba(0, 20, 90, 0.08), rgba(0, 10, 50, 0.28));
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(45, 217, 255, 0.35);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 环境光点 */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 244, 255, 0.9), rgba(70, 177, 255, 0.12) 55%, transparent 70%);
  filter: blur(1px);
  opacity: 0.55;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}

.ambient i:nth-child(1) {
  width: 9px;
  height: 9px;
  left: 13%;
  top: 18%;
}

.ambient i:nth-child(2) {
  width: 5px;
  height: 5px;
  right: 18%;
  top: 30%;
  animation-delay: -4s;
}

.ambient i:nth-child(3) {
  width: 12px;
  height: 12px;
  right: 9%;
  top: 62%;
  opacity: 0.3;
  animation-delay: -8s;
}

/* 顶部进度 */
.progress {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  width: 100%;
  max-width: 520px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #36e6ff, #b8ffdc 60%, #ffffff);
  box-shadow: 0 0 12px rgba(54, 230, 255, 0.8);
  transition: width 0.18s linear;
}

/* 滚动容器 */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app::-webkit-scrollbar {
  display: none;
}

.app.is-locked {
  overflow: hidden;
}

@media (min-width: 640px) {
  .app {
    max-width: 460px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 100px rgba(0, 8, 42, 0.5);
  }

  .progress {
    max-width: 460px;
  }

}

.page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* =========================================================
   封面
   ========================================================= */

.page-cover {
  display: block;
  padding: 0;
  overflow: hidden;
  background: #0757e8;
}

@media (hover: hover) {
  .page-cover {
    cursor: pointer;
  }
}

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0757e8;
}

/* 不同屏幕比例下用同一张封面做模糊底，避免生硬留白 */
.cover-art::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: 0;
  background: url("../assets/cover.webp") center center / cover no-repeat;
  filter: blur(22px) saturate(1.08);
  opacity: 0.9;
  transform: scale(1.06);
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 20, 80, 0.1) 0%, transparent 16%, transparent 76%, rgba(0, 10, 55, 0.3) 100%),
    radial-gradient(circle at 50% 48%, transparent 48%, rgba(0, 18, 80, 0.1) 100%);
  pointer-events: none;
}

.cover-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.005);
  animation: coverDrift 26s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  user-select: none;
  -webkit-user-drag: none;
}

.cover-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 22px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 17, 72, 0.5) 0%, rgba(0, 17, 72, 0.08) 10%, transparent 20%);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 1px 12px rgba(0, 16, 70, 0.55);
  animation: hintIn 1.4s 0.6s both;
}

.scroll-hint i {
  position: relative;
  display: block;
  width: 19px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 11px;
  box-shadow: inset 0 0 9px rgba(130, 240, 255, 0.08);
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #dffcff;
  box-shadow: 0 0 8px rgba(150, 248, 255, 0.9);
  animation: scrollDot 1.9s ease-in-out infinite;
}

/* =========================================================
   内容卡片
   ========================================================= */

.panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 253, 255, 0.95) 58%, rgba(238, 250, 255, 0.93) 100%);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.panel::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 180, 255, 0.07), transparent 68%);
  pointer-events: none;
}

.panel-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(2, 34, 125, 0.28) 0%, rgba(2, 43, 150, 0.03) 42%, rgba(2, 44, 160, 0.22) 100%),
    url("../assets/wave-header.webp") center 58% / cover no-repeat,
    #0750d8;
  isolation: isolate;
}

.panel-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(89, 241, 255, 0.55) 0%, transparent 54%),
    radial-gradient(ellipse at 82% 0%, rgba(30, 164, 255, 0.4), transparent 48%);
}

.panel-head::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -34px;
  left: 10%;
  height: 64px;
  border-radius: 50%;
  background: rgba(113, 245, 255, 0.22);
  filter: blur(22px);
}

.panel-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(22px, 6.3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 21, 96, 0.45);
  opacity: 0;
  transform: translate3d(0, -26px, 0);
  transition:
    opacity 0.38s 0.02s ease,
    transform 0.48s 0.02s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.page.is-visible .panel-title {
  opacity: 1;
  transform: none;
}

.panel-title span {
  margin: 0 0.42em 0 0.12em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.67em;
  font-weight: 400;
  transform: translateY(-0.08em);
}

.panel-title span:last-child {
  margin: 0 0.12em 0 0.42em;
}

.panel-en {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: clamp(8px, 2.3vw, 10px);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: scale3d(0.72, 0.72, 0.72);
  letter-spacing: 0.42em;
  transition:
    opacity 0.38s 0.1s ease,
    transform 0.45s 0.1s cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 0.55s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page.is-visible .panel-en {
  opacity: 0.7;
  transform: none;
  letter-spacing: 0.32em;
}

.page.is-visible .panel-head::after {
  animation: headGlow 1.2s 0.04s ease-out both;
}

.panel-en::before,
.panel-en::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56));
}

.panel-en::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.56), transparent);
}

.panel-body {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 5.2vw, 25px) clamp(18px, 5.4vw, 24px) clamp(20px, 5.5vw, 27px);
  color: var(--ink);
}

/* 02 邀请函 */
.letter {
  font-family: var(--serif);
  font-size: clamp(12px, 3.25vw, 13.6px);
  line-height: 1.95;
  color: var(--ink-strong);
  text-align: justify;
  text-justify: inter-ideograph;
}

.letter p {
  margin: 0 0 0.72em;
  text-indent: 2em;
}

.letter .salute,
.letter .hello {
  text-indent: 0;
}

.letter .salute {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.letter .hello {
  margin-bottom: 0.9em;
}

.letter p:last-of-type {
  margin-bottom: 0;
}

.letter .signature {
  margin-top: 1.35em;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94em;
  text-align: right;
  text-indent: 0;
  letter-spacing: 0.05em;
}

/* 03 会议概况 */
.overview-lead {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(12px, 3.3vw, 13.8px);
  line-height: 1.9;
  color: var(--ink-strong);
  text-align: justify;
  text-justify: inter-ideograph;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 97, 255, 0.32));
}

.section-label::after {
  background: linear-gradient(90deg, rgba(18, 97, 255, 0.32), transparent);
}

.section-label span {
  display: block;
  padding: 6px 22px;
  color: #fff;
  background: linear-gradient(100deg, #0844c9, #118cf2);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  line-height: 1.3;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 6px 18px rgba(8, 68, 201, 0.22);
}

.orgs {
  margin: 0;
  padding: 0;
}

.org {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 7px 0;
}

.org + .org {
  border-top: 1px dashed rgba(18, 97, 255, 0.12);
}

.org dt {
  padding: 4px 0;
  color: #fff;
  background: linear-gradient(120deg, #0b51d7, #1a9fe8);
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.org dd {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: clamp(11px, 2.95vw, 12.4px);
  line-height: 1.75;
  text-align: justify;
}

.page-note {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
}

/* 04 会议议程 */
.date-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 43px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 40, 140, 0.2), rgba(2, 40, 140, 0) 28%, rgba(2, 40, 140, 0) 72%, rgba(2, 40, 140, 0.2)),
    url("../assets/date-banner.webp") center 52% / cover no-repeat,
    #0a52d9;
  box-shadow: 0 8px 20px rgba(8, 68, 201, 0.2);
}

.date-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175, 252, 255, 0.7), transparent);
}

.date-band span,
.date-band strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 10px rgba(0, 20, 90, 0.3);
}

.date-band i {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.agenda {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda li {
  display: grid;
  grid-template-columns: 71px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 4.5px 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: clamp(10px, 2.85vw, 12px);
  line-height: 1.55;
}

.agenda time {
  padding-top: 1px;
  color: #074b9d;
  font-family: var(--sans);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.agenda p {
  margin: 0;
  padding-left: 9px;
  border-left: 1px solid rgba(18, 97, 255, 0.2);
  text-align: justify;
}

.agenda li.is-key p {
  color: #073f9b;
  font-weight: 700;
}

/* 05 地址 */
.map-card {
  position: relative;
  height: clamp(164px, 46vw, 198px);
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 7px;
  background: #edf8ef;
  box-shadow: 0 10px 24px rgba(24, 74, 110, 0.16);
}

.map-base {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(100deg, transparent 0 58%, rgba(255, 255, 255, 0.4) 58.2% 58.8%, transparent 59%),
    linear-gradient(180deg, #edf8e9 0%, #f5fbef 100%);
}

.map-river {
  position: absolute;
  top: -20%;
  left: -8%;
  width: 44%;
  height: 68%;
  border-radius: 45% 55% 48% 52%;
  background: linear-gradient(135deg, #c8eafa, #a9dcf3);
  transform: rotate(-15deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.map-express {
  position: absolute;
  top: 6%;
  left: 18%;
  width: 130%;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: #f7d783;
  transform: rotate(-24deg);
  box-shadow: 0 0 0 1px rgba(221, 171, 57, 0.16);
}

.map-road {
  position: absolute;
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(149, 180, 145, 0.1);
}

.map-road.r1 {
  top: 46%;
  left: -8%;
  width: 76%;
  transform: rotate(8deg);
}

.map-road.r2 {
  top: 64%;
  left: 12%;
  width: 100%;
  transform: rotate(-13deg);
}

.map-road.r3 {
  top: 14%;
  left: 46%;
  width: 5px;
  height: 90%;
  transform: rotate(5deg);
}

.map-road.r4 {
  top: 30%;
  left: 8%;
  width: 4px;
  height: 76%;
  transform: rotate(-20deg);
  background: rgba(255, 255, 255, 0.9);
}

.map-block {
  position: absolute;
  display: block;
  border-radius: 3px;
  background: #f7f4e9;
  box-shadow: inset 0 0 0 1px rgba(185, 177, 151, 0.18);
}

.map-block.b1 {
  top: 21%;
  left: 48%;
  width: 21%;
  height: 15%;
  transform: rotate(-4deg);
}

.map-block.b2 {
  top: 25%;
  left: 74%;
  width: 23%;
  height: 22%;
  transform: rotate(7deg);
}

.map-block.b3 {
  top: 66%;
  left: 52%;
  width: 18%;
  height: 17%;
  transform: rotate(9deg);
}

.map-block.b4 {
  top: 72%;
  left: 75%;
  width: 24%;
  height: 14%;
  transform: rotate(-3deg);
}

.map-park {
  position: absolute;
  right: 6%;
  bottom: 7%;
  width: 27%;
  height: 24%;
  border-radius: 42% 58% 45% 55%;
  background: #ccecc4;
  opacity: 0.8;
}

.map-district,
.map-badge {
  position: absolute;
  z-index: 3;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a7584;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(41, 82, 91, 0.12);
}

.map-district {
  top: 10px;
  left: 10px;
}

.map-badge {
  top: 10px;
  right: 10px;
  color: #7f96a4;
  background: rgba(255, 255, 255, 0.72);
}

.map-pin {
  position: absolute;
  top: 49%;
  left: 43%;
  z-index: 4;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, #188ef3, #0458cf);
  box-shadow: 0 5px 12px rgba(4, 66, 160, 0.4);
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: pinDrop 0.9s 0.3s both;
}

.map-pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.map-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 123, 239, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pinPulse 2.2s ease-out infinite;
}

.map-label {
  position: absolute;
  top: 49%;
  left: calc(43% + 18px);
  z-index: 3;
  max-width: 68%;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.96);
  color: #244a58;
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(31, 72, 83, 0.15);
  transform: translateY(-50%);
}

.venue-name {
  margin: 13px 0 0;
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: clamp(12px, 3.2vw, 13.5px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.venue-name span {
  color: var(--ink-soft);
  font-size: 0.9em;
  font-weight: 400;
}

.venue-name + .address-list {
  margin-top: 3px;
}

.address-list {
  margin: 13px 0 0;
  padding: 0;
}

.address-list p {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.address-list p + p {
  border-top: 1px dashed rgba(18, 97, 255, 0.12);
}

.address-list span {
  flex: 0 0 58px;
  color: var(--ink-mute);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.address-list strong,
.address-list a {
  color: var(--ink-strong);
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.address-list a {
  color: #0756c8;
  text-decoration: underline;
  text-decoration-color: rgba(7, 86, 200, 0.3);
  text-underline-offset: 3px;
}

.address-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #0848d4, #1299ef);
  box-shadow: 0 8px 18px rgba(8, 72, 212, 0.24);
}

.btn-primary:visited {
  color: #fff;
}

.btn-ghost {
  border-color: rgba(18, 97, 255, 0.2);
  color: #0756c8;
  background: rgba(255, 255, 255, 0.62);
}

/* 06 报名 */
.signup-form {
  position: relative;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 5px;
  color: #42627a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.field .label-main {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.field .req {
  color: #e25866;
  font-style: normal;
  font-weight: 700;
}

.field .optional {
  color: #9aadb9;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.control {
  position: relative;
}

.control input,
.control textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(18, 97, 255, 0.16);
  border-radius: 9px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-strong);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.control input {
  height: 42px;
  padding: 0 13px;
}

.control textarea {
  height: 62px;
  padding: 10px 13px;
  resize: none;
  line-height: 1.5;
}

.control input::placeholder,
.control textarea::placeholder {
  color: #9aafbe;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.control input:focus,
.control textarea:focus {
  border-color: rgba(18, 112, 255, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 132, 255, 0.11), 0 4px 12px rgba(18, 97, 255, 0.08);
}

.field.is-invalid .control input,
.field.is-invalid .control textarea {
  border-color: rgba(226, 88, 102, 0.78);
  background: #fff9f9;
  box-shadow: 0 0 0 3px rgba(226, 88, 102, 0.08);
}

.error {
  max-height: 0;
  margin: 0 2px;
  overflow: hidden;
  color: #d84b59;
  font-size: 10.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-3px);
  transition: max-height 0.22s ease, margin 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.field.is-invalid .error {
  max-height: 30px;
  margin-top: 4px;
  opacity: 1;
  transform: none;
}

.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 47px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(100deg, #073fc6 0%, #0b61ef 48%, #13a2f3 100%);
  box-shadow: 0 12px 26px rgba(8, 76, 211, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 38%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.23), transparent);
  transform: rotate(18deg);
  animation: submitShine 4.2s 1.2s ease-in-out infinite;
}

.submit-btn:active {
  transform: scale(0.985);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.submit-arrow {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.submit-btn:hover .submit-arrow {
  transform: translateX(3px);
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.submit-btn.is-loading .spinner {
  display: block;
}

.submit-btn.is-loading .submit-arrow {
  display: none;
}

.privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 9px 0 0;
  color: #8ba0af;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.privacy svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 成功页 */
.success {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(2, 26, 100, 0.78), rgba(2, 22, 83, 0.9)),
    url("../assets/bg-hangzhou.webp") center center / cover no-repeat,
    #032b83;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.success[hidden] {
  display: none;
}

.success.is-open {
  opacity: 1;
}

.success:focus {
  outline: none;
}

.success-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 226, 255, 0.2), rgba(16, 98, 255, 0.08) 45%, transparent 68%);
  transform: translate(-50%, -56%);
  pointer-events: none;
  animation: successGlow 6s ease-in-out infinite alternate;
}

.success-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.success-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
}

.success-check svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.check-circle {
  fill: rgba(255, 255, 255, 0.08);
  stroke: rgba(140, 246, 255, 0.65);
  stroke-width: 1.5;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  transform-origin: 40px 40px;
}

.check-mark {
  fill: none;
  stroke: #b8ffdc;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  filter: drop-shadow(0 0 8px rgba(140, 255, 220, 0.6));
}

.success.is-open .check-circle {
  animation: drawCircle 0.9s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success.is-open .check-mark {
  animation: drawCheck 0.55s 0.75s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-en {
  margin: 0 0 7px;
  color: rgba(168, 247, 255, 0.7);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.success h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(31px, 9vw, 38px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1.3;
  text-shadow: 0 4px 24px rgba(0, 20, 90, 0.4);
}

.success-hello {
  margin: 10px 0 20px;
  color: rgba(226, 248, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.success-hello strong {
  color: #fff;
  font-weight: 600;
}

.success-card {
  padding: 4px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 12, 55, 0.22);
}

.success-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  text-align: left;
}

.success-card div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.success-card span {
  color: rgba(210, 242, 255, 0.64);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.success-card strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.01em;
}

.success-note {
  margin: 17px 0 20px;
  color: rgba(206, 238, 255, 0.66);
  font-size: 10.5px;
  line-height: 1.85;
  letter-spacing: 0.03em;
}

.success-back {
  width: 100%;
  max-width: 220px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.success-back:hover {
  background: rgba(255, 255, 255, 0.14);
}

.success-back:focus {
  outline: none;
}

.success-back:focus-visible {
  outline: 2px solid rgba(190, 250, 255, 0.6);
  outline-offset: 3px;
}

/* 返回首页 */
.home-link {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: max(14px, calc(50% - 216px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 10px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(4, 29, 92, 0.28);
  color: rgba(240, 253, 255, 0.86);
  font-size: 10px;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-link:hover {
  background: rgba(4, 29, 92, 0.46);
}

.home-link:active {
  transform: scale(0.95);
}

/* =========================================================
   背景音乐按钮
   ========================================================= */

.music-btn {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: max(14px, calc(50% - 216px));
  z-index: 45;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: url("../assets/music-btn.png") center center / contain no-repeat;
  opacity: 0.82;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(0, 18, 80, 0.24));
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.music-btn:hover {
  opacity: 1;
}

.music-btn:active {
  transform: scale(0.92);
}

.music-btn:focus-visible {
  outline: 2px solid rgba(170, 250, 255, 0.75);
  outline-offset: 3px;
}

.music-btn.is-playing {
  opacity: 1;
  animation: musicRotate 1.2s linear infinite;
}

.music-btn.is-error {
  opacity: 0.35;
}

/* 右侧导航点 */
.pager {
  position: fixed;
  top: 50%;
  right: 3px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translateY(-50%);
}

.pager button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pager button span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 3px rgba(0, 20, 80, 0.25);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pager button.is-active span {
  width: 4px;
  height: 17px;
  background: #e9feff;
  box-shadow: 0 0 10px rgba(120, 246, 255, 0.9);
}

.pager button:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
  border-radius: 50%;
}

/* 轻提示 */
.toast {
  position: fixed;
  bottom: calc(34px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 120;
  max-width: min(86vw, 340px);
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(5, 24, 62, 0.88);
  color: rgba(255, 255, 255, 0.94);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 30px rgba(0, 10, 40, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 无脚本 */
.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #24384c;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* 禁用 JS 时保证内容可见 */
html:not(.js) .reveal,
html:not(.js) .panel-title,
html:not(.js) .panel-en {
  opacity: 1;
  transform: none;
  -webkit-clip-path: none;
  clip-path: none;
}

html:not(.js) .page-cover .cover-art {
  opacity: 1;
  transform: none;
}

html:not(.js) .music-btn {
  display: none;
}

/* 进入动画 */
.reveal {
  opacity: 0;
  transform: translate3d(0, 200px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--d, 0s) + 0.2s);
  will-change: opacity, transform;
}

.page.is-visible .reveal {
  opacity: 1;
  transform: none;
}

.page:not(.is-visible) .reveal {
  transition-delay: 0s;
  transition-duration: 0.3s;
}

.map-card.reveal {
  transform: translate3d(0, 110px, 0) scale(0.965);
}

.page.is-visible .map-card.reveal {
  transform: none;
}

.page-cover .cover-art {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.25s ease, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-cover.is-visible .cover-art {
  opacity: 1;
  transform: none;
}

/* 动画 */
@keyframes headGlow {
  0% {
    opacity: 0;
    transform: scaleX(0.4) translateY(8px);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0.55;
    transform: scaleX(1) translateY(0);
  }
}

@keyframes coverDrift {
  from {
    transform: scale(1.005) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.025) translate3d(0, -0.35%, 0);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes hintIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.35;
  }
  to {
    transform: translate3d(6px, -12px, 0) scale(1.35);
    opacity: 0.7;
  }
}

@keyframes pinDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -82%) rotate(-45deg) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1);
  }
}

@keyframes pinPulse {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.4);
  }
  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@keyframes submitShine {
  0%,
  55% {
    transform: translateX(-180%) rotate(18deg);
  }
  80%,
  100% {
    transform: translateX(430%) rotate(18deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes musicRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes successGlow {
  from {
    transform: translate(-50%, -56%) scale(0.92);
    opacity: 0.7;
  }
  to {
    transform: translate(-50%, -56%) scale(1.08);
    opacity: 1;
  }
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* 小屏 / 矮屏 */
@media (max-height: 740px) {
  :root {
    --header-h: 88px;
  }

  .page {
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .panel-body {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .overview-lead {
    margin-bottom: 12px;
  }

  .section-label {
    margin-bottom: 10px;
  }

  .org {
    padding: 5px 0;
  }

  .agenda li {
    padding: 3.5px 0;
  }

  .field {
    margin-bottom: 8px;
  }

  .control input {
    height: 40px;
  }

  .control textarea {
    height: 56px;
  }

  .submit-btn {
    height: 44px;
  }

  .map-card {
    height: 158px;
  }
}

@media (max-height: 620px) {
  :root {
    --header-h: 78px;
  }

  .panel-title {
    font-size: 21px;
  }

  .panel-en {
    margin-top: 4px;
  }

  .agenda li {
    font-size: 9.6px;
    padding: 2.8px 0;
  }

  .control input {
    height: 38px;
  }

  .control textarea {
    height: 48px;
  }

  .field label {
    margin-bottom: 3px;
  }

  .map-card {
    height: 136px;
  }

  .address-list p {
    padding: 4px 0;
  }

  .letter {
    font-size: 11.3px;
    line-height: 1.88;
  }

  .letter p {
    margin-bottom: 0.58em;
  }
}

@media (max-width: 340px) {
  .page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .agenda li {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 7px;
  }

  .agenda p {
    padding-left: 8px;
  }

  .org {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
  }

  .address-actions {
    grid-template-columns: 1.25fr 1fr;
  }

  .btn {
    font-size: 11.5px;
    padding: 0 9px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .page {
    min-height: 100vw;
    align-items: flex-start;
    padding-top: 22px;
  }

  .page-cover {
    min-height: 100vh;
  }

  .panel {
    max-width: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .page-cover .cover-art {
    opacity: 1;
    transform: none;
  }

  .page:not(.is-visible) .panel-title {
    opacity: 1;
    transform: none;
    -webkit-clip-path: none;
    clip-path: none;
  }

  .music-btn.is-playing {
    animation: none;
  }
}


/* 桌面端把导航点收到内容列右侧 */
@media (min-width: 640px) {
  .pager {
    right: max(3px, calc(50% - 240px));
  }
}
