/* OPC 招生 H5 · 组件与页面样式
   规则：零阴影；层级靠底色差 + 1px 描边；全站只有一个填充主按钮（琥珀金）。 */

/* ── 基础 ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--link); text-decoration: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ── 布局 ───────────────────────────────────────── */
.page {
  max-width: calc(var(--content-max) + var(--page-x) * 2);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-canvas);
  overflow: hidden;
}

.wrap {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}

.section {
  padding: var(--sp-8) 0;
  background: var(--bg-canvas);
}

.section--surface { background: var(--bg-surface); }

.section--dark {
  background: var(--bg-surface-dark);
  color: var(--on-ink-1);
  padding: var(--sp-9) 0;
}

.section-head { margin-bottom: var(--sp-6); }

.section-head__eyebrow {
  font-size: var(--t-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
  margin-bottom: var(--sp-2);
  letter-spacing: .02em;
}

.section--dark .section-head__eyebrow { color: var(--on-ink-3); }

.section-head__title {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  font-weight: 500;
  color: var(--text-primary);
  text-wrap: balance;
}

.section--dark .section-head__title { color: var(--on-ink-1); }

.section-head__desc {
  margin-top: var(--sp-3);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.section--dark .section-head__desc { color: var(--on-ink-2); }

.note {
  margin-top: var(--sp-3);
  font-size: var(--t-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
}

.section--dark .note { color: var(--on-ink-3); }

/* ── 按钮 ───────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  height: 52px;
  padding: 0 var(--sp-5);
  border: 0;
  border-radius: var(--r-md);
  font-size: var(--t-btn);
  line-height: 1.25;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), transform 120ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

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

.btn--primary {
  background: var(--action-primary);
  color: var(--text-1);
}

.btn--primary:active { background: var(--action-primary-pressed); }

.btn--primary[disabled],
.btn--primary[aria-busy="true"] {
  background: var(--amber-100);
  color: var(--amber-800);
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  height: 48px;
  font-size: 15px;
}

.btn--ghost:active { background: var(--paper-2); }

.section--dark .btn--ghost,
.hero .btn--ghost {
  border-color: rgba(199, 210, 254, .34);
  color: var(--on-ink-1);
}

.section--dark .btn--ghost:active,
.hero .btn--ghost:active { background: rgba(255, 255, 255, .06); }

.btn__spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn[aria-busy="true"] .btn__spinner { display: block; }

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

.btn-row { display: grid; gap: var(--sp-2); }

/* ── 首屏 ───────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--on-ink-1);
  padding: calc(var(--sp-4) + env(safe-area-inset-top)) 0 var(--sp-8);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -120px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 61, 245, .34) 0%, rgba(91, 61, 245, 0) 68%);
  pointer-events: none;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}

.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand__text {
  font-size: 12px;
  line-height: 1.3;
  color: var(--on-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__tag {
  font-size: 11px;
  line-height: 1;
  color: var(--on-ink-3);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-full);
  padding: 5px 10px;
  white-space: nowrap;
  flex: none;
}

.hero__title {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: var(--sp-4);
}

.hero__title em {
  font-style: normal;
  color: var(--cyan-400);
}

.hero__sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-ink-2);
  margin-bottom: var(--sp-6);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.stat {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: var(--sp-3);
  min-height: 76px;
}

.stat__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--on-ink-1);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat__unit {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--on-ink-3);
}

.stat__label {
  margin-top: var(--sp-1);
  font-size: 11px;
  line-height: 1.45;
  color: var(--on-ink-3);
}

.hero__cta { margin-bottom: var(--sp-3); }

.hero__fine {
  font-size: var(--t-caption);
  line-height: 1.55;
  color: var(--on-ink-3);
}

/* ── 数据卡（浅色区） ───────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.card + .card { margin-top: var(--sp-3); }

/* 卡片内直接放规格行时，用内收边距避免双倍留白 */
.card--flush { padding: 4px var(--sp-5); }

.card__title {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}

.card__title--tight { margin-bottom: var(--sp-2); }

/* ── 规格行 ─────────────────────────────────────── */
.spec { border-top: 0; }

.spec__row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 44px;
}

.spec__row:last-child { border-bottom: 0; }

.spec__label {
  flex: none;
  width: 84px;
  font-size: var(--t-label);
  line-height: 1.55;
  color: var(--text-3);
}

.spec__value {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  text-wrap: pretty;
}

.spec__value strong { font-weight: 500; }

.spec__value .muted { color: var(--text-3); }

/* 费用行：右侧数值右对齐 */
.spec--fee .spec__label { width: 96px; }

.spec--fee .spec__value {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 500;
}

.spec--fee .spec__value span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 3px;
}

.spec--fee .spec__value.is-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
}

.spec--dark .spec__row { border-bottom-color: var(--ink-700); }
.spec--dark .spec__label { color: var(--on-ink-3); }
.spec--dark .spec__value { color: var(--on-ink-1); }

/* ── 三台阶（课程阶段） ─────────────────────────── */
.steps { display: grid; gap: var(--sp-3); }

.step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
}

.step__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.step__index {
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  background: rgba(91, 61, 245, .08);
  color: var(--brand-700);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  font-weight: 500;
}

.step__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── 图集 ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

/* 图集可点开看大图（详见「图片放大」段） */
.gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-800);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  transition: opacity var(--d-fast) var(--ease);
}

.gallery__item:active { opacity: .86; }

.gallery__item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 10px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(to top, rgba(7, 11, 20, .78), rgba(7, 11, 20, 0));
}

/* ── 折叠（FAQ） ────────────────────────────────── */
.faq {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__item:last-child { border-bottom: 0; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: 56px;
  padding: var(--sp-4) var(--sp-5);
  background: none;
  border: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px; height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-3);
  border-radius: 1px;
  transition: transform var(--d-base) var(--ease), opacity var(--d-base) var(--ease);
}

.faq__icon::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.faq__icon::after { top: 0; left: 6px; width: 1.5px; height: 14px; }

.faq__q[aria-expanded="true"] .faq__icon::after { opacity: 0; transform: scaleY(0); }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height var(--d-base) var(--ease);
}

.faq__a-inner {
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── 表单 ───────────────────────────────────────── */
.form { display: block; }

.field { display: block; margin-bottom: var(--sp-4); }

.field__label {
  display: block;
  font-size: var(--t-label);
  line-height: var(--lh-label);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.field__label .req { color: var(--danger); margin-left: 2px; }

.field__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--t-input);
  line-height: 1.4;
  appearance: none;
}

.field__input::placeholder { color: var(--text-3); }

.field__input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, .12);
}

select.field__input {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field__help {
  margin-top: 6px;
  font-size: var(--t-caption);
  line-height: var(--lh-caption);
  color: var(--text-3);
}

.field__error {
  display: none;
  margin-top: 6px;
  font-size: var(--t-caption);
  line-height: var(--lh-caption);
  color: var(--danger);
}

.field[data-state="error"] .field__error { display: block; }

.field[data-state="error"] .field__input {
  border-color: var(--danger);
  box-shadow: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.chip::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  border-color: var(--brand-600);
  color: var(--brand-700);
  background: rgba(91, 61, 245, .06);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 var(--sp-5);
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--text-secondary);
}

.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand-600);
}

.form__note {
  margin-top: var(--sp-3);
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}

/* ── 底部固定条 ─────────────────────────────────── */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--page-x);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  transform: translateY(110%);
  transition: transform var(--d-base) var(--ease);
}

.action-bar[data-visible="true"] { transform: translateY(0); }

.action-bar__contact {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.action-bar__contact svg { width: 18px; height: 18px; }

.action-bar .btn { height: 48px; flex: 1; }

/* ── 页脚 ───────────────────────────────────────── */
.footer {
  background: var(--ink-950);
  color: var(--on-ink-3);
  padding: var(--sp-8) 0 calc(var(--sp-10) + var(--action-bar-h));
  font-size: var(--t-caption);
  line-height: 1.7;
}

.footer__org {
  color: var(--on-ink-2);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.footer__line { margin-bottom: var(--sp-1); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-700);
}

.footer__links a { color: var(--on-ink-2); }

/* ── 浮层（咨询） ───────────────────────────────── */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 11, 20, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-base) var(--ease), visibility var(--d-base);
}

.sheet-mask[data-open="true"] { opacity: 1; visibility: visible; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  max-width: calc(var(--content-max) + var(--page-x) * 2);
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: 20px 20px 0 0;
  padding: var(--sp-5) var(--page-x) calc(var(--sp-6) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform var(--d-base) var(--ease);
}

.sheet[data-open="true"] { transform: translateY(0); }

.sheet__handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  margin: 0 auto var(--sp-4);
}

.sheet__title {
  font-size: var(--t-h3);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.sheet__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.qr {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
}

.qr__box {
  flex: none;
  width: 112px; height: 112px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-3);
  padding: 8px;
}

.qr__meta { min-width: 0; }

.qr__meta p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.qr__meta strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.sheet__close {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

/* ── 图片放大（lightbox） ───────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--ink-950);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease);
  touch-action: none;
}

.lightbox[hidden] { display: none; }
.lightbox[data-open="true"] { opacity: 1; }

.lightbox__bar {
  position: absolute;
  top: calc(env(safe-area-inset-top) + var(--sp-3));
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox__count {
  font-size: var(--t-caption);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .82);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(7, 11, 20, .62);
  border: 1px solid rgba(255, 255, 255, .34);
}

.lightbox__close,
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(7, 11, 20, .62);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox__close {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: var(--sp-8) var(--sp-3) var(--sp-3);
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform var(--d-base) var(--ease), opacity var(--d-fast) var(--ease);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img[data-loaded="false"] { opacity: 0; }
.lightbox__img[data-zoom="in"] { cursor: zoom-out; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  transform: translateY(-50%);
}

.lightbox__nav--prev { left: var(--sp-2); }
.lightbox__nav--next { right: var(--sp-2); }
.lightbox__nav[disabled] { opacity: .3; cursor: default; }

.lightbox__cap {
  padding: 0 var(--sp-6);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  text-align: center;
}

.lightbox__hint {
  padding: var(--sp-1) var(--sp-6) var(--sp-5);
  font-size: var(--t-caption);
  line-height: 1.5;
  color: rgba(255, 255, 255, .48);
  text-align: center;
}

/* ── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--action-bar-h) + 24px);
  z-index: 80;
  transform: translate(-50%, 8px);
  max-width: calc(100% - 48px);
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-fast) var(--ease), transform var(--d-fast) var(--ease), visibility var(--d-fast);
}

.toast[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ── 子页（表单 / 成功 / 隐私） ─────────────────── */
.subpage { background: var(--bg-canvas); min-height: 100vh; padding-bottom: var(--sp-8); }

.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 52px;
  padding: 0 var(--page-x);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-left: -10px;
  border: 0;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--r-sm);
}

.topbar__back svg { width: 20px; height: 20px; }

.topbar__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.subpage__head {
  padding: var(--sp-6) var(--page-x) var(--sp-5);
  background: var(--bg-surface);
}

.subpage__title {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}

.subpage__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.form-card {
  margin: 0 var(--page-x);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

/* 成功页 */
.done {
  padding: calc(var(--sp-10) + env(safe-area-inset-top)) var(--page-x) var(--sp-8);
  text-align: center;
}

.done__mark {
  width: 64px; height: 64px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: rgba(4, 120, 87, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.done__mark svg { width: 30px; height: 30px; }

.done__title {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}

.done__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--sp-7);
}

.done__steps {
  text-align: left;
  margin-bottom: var(--sp-7);
}

/* 隐私页 */
.prose {
  padding: var(--sp-6) var(--page-x) var(--sp-8);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose h2 {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  font-weight: 500;
  color: var(--text-primary);
  margin: var(--sp-6) 0 var(--sp-2);
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin-bottom: var(--sp-3); }
.prose ul { margin: 0 0 var(--sp-3); padding-left: 18px; list-style: disc; }
.prose li { margin-bottom: var(--sp-1); }

/* ── 进入动效 ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease);
}

.reveal[data-shown="true"] { opacity: 1; transform: none; }

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

/* 键盘弹出时不遮挡当前字段 */
.field { scroll-margin-bottom: 120px; }
