/* Gateway 首期领导人交流会 · H5 邀请函
   视觉:白金风 — 象牙白底 / 深金 / 鎏金毛笔标题 / 峰会质感 */

@font-face {
  font-family: 'BrushGold';
  src: url('brush-subset.woff2') format('woff2');
  font-display: swap;
}

/* 思源黑体子集(仅含本页 440 字,可变字重)— 保证手机/电脑渲染一致 */
@font-face {
  font-family: 'PageSans';
  src: url('cn-subset.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-0: #ece4d2;        /* 页面外框米金 */
  --bg-1: #f7f2e7;        /* 主底 象牙白 */
  --bg-2: #fffdf6;        /* 卡片底 */
  --gold-deep: #8a5c12;   /* 深金 */
  --gold: #a8791f;        /* 主金 */
  --gold-mid: #c9a25a;    /* 中金 */
  --gold-hi: #e8c987;     /* 高光金 */
  --gold-line: rgba(168, 121, 31, 0.35);
  --ink: #32281a;         /* 主文字 深褐 */
  --ink-mid: #5a4c36;     /* 正文 */
  --ink-dim: #97896f;     /* 弱化 暖灰 */
  --card: #fffdf8;
  --font-cn: 'PageSans', -apple-system, "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-brush: 'BrushGold', "STKaiti", "KaiTi", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 一滑一屏:卡点滚动,每屏顶部为吸附点;内容超过一屏的(如表单屏)仍可屏内自由滚动 */
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
.screen { scroll-snap-align: start; scroll-snap-stop: always; }
.page-foot { scroll-snap-align: end; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-cn);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(232, 201, 135, 0.22), transparent 62%),
    linear-gradient(180deg, var(--bg-1) 0%, #f3ecdd 100%);
  box-shadow: 0 0 50px rgba(120, 90, 30, 0.18);
  /* clip 而非 hidden:hidden 会让 .page 变成滚动容器,抢走 scroll-snap 吸附点 */
  overflow: clip;
}

.screen {
  min-height: 100svh;
  padding: 72px 26px 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- 进场动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }
.unfold { transform: perspective(900px) rotateX(14deg) translateY(30px); transform-origin: top center; }
.unfold.in { transform: perspective(900px) rotateX(0) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .unfold { transition: none; opacity: 1; transform: none; }
}

/* ---------- 通用 ---------- */
.sec-en {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-bottom: 10px;
}
.sec-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ink);
}
.sec-head { margin-bottom: 30px; }
.sec-head::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.btn-gold {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #2a1f08;
  background: linear-gradient(135deg, #e8c987 0%, #c9a25a 48%, #f3dca3 100%);
  padding: 14px 44px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(168, 121, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:active { transform: scale(0.96); }

.btn-line {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-cn);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  background: transparent;
  border: 1px solid var(--gold-line);
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-line:active { background: rgba(200, 162, 90, 0.15); }

/* ============ 第 1 屏 · 封面 ============ */
.cover { padding: 0; justify-content: stretch; }
.cover-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 30px) 26px calc(30svh + 16px);
  display: flex;
  flex-direction: column;
}
.cover-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(75% 36% at 50% 12%, rgba(232, 201, 135, 0.35), transparent 70%),
    radial-gradient(60% 26% at 50% 58%, rgba(232, 201, 135, 0.18), transparent 70%);
  pointer-events: none;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 12px; height: 12px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(168, 121, 31, 0.45);
}
.brand-name { font-size: 15px; letter-spacing: 0.5em; color: var(--gold-deep); font-weight: 600; }

.cover-center { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.cover-eyebrow { font-size: 10px; letter-spacing: 0.4em; color: var(--ink-dim); margin-bottom: 20px; }

/* 主标题:英文衬线金 + 中文鎏金毛笔字 */
.cover-title { line-height: 1.2; }
.cover-title .t-en {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.cover-title .t-cn {
  display: block;
  font-family: var(--font-brush);
  font-weight: 400;
  /* 随屏宽自适应:窄屏自动缩小,保证 8 字单行不溢出;桌面/宽屏封顶 43px */
  font-size: min(43px, 9.4vw);
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 244, 210, 0.7) 50%, transparent 60%),
    linear-gradient(180deg, #d9a833 0%, #b0791c 32%, #7c4f0c 50%, #d4a93c 64%, #8f5e10 100%);
  background-size: 240% 100%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85)) drop-shadow(0 5px 12px rgba(120, 80, 15, 0.4));
  /* 扫光只播 2 遍后停止:无限循环的渐变文字重绘在中低端手机上会持续吃 GPU 导致卡顿 */
  animation: foilSweep 4.5s linear 2;
}
@keyframes foilSweep {
  0% { background-position: 120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}

.cover-divider { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 22px 0 16px; }
.cover-divider i { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.cover-divider i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.cover-divider b { color: var(--gold); font-size: 9px; }
.cover-sub { font-size: 19px; letter-spacing: 0.34em; color: var(--gold-deep); font-weight: 400; text-indent: 0.34em; }
.cover-tag {
  margin: 26px auto 0;
  width: fit-content;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 7px 20px;
  background: rgba(255, 253, 246, 0.7);
}

.cover-host {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.cover-bottom { text-align: center; position: relative; z-index: 2; }
.cover-meta { margin-bottom: 20px; }
.cover-meta-row { font-size: 14.5px; letter-spacing: 0.14em; color: var(--ink); }
.cover-meta-row.dim { font-size: 12px; color: var(--ink-dim); margin-top: 4px; }
.scroll-hint { margin-top: 22px; display: flex; justify-content: center; }
.scroll-hint span {
  display: block; width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* 封面底部:深圳湾实拍夜景,上缘渐隐融入象牙白 */
.cover-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 30svh; z-index: 1; pointer-events: none; }
.cover-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: brightness(0.9) saturate(0.9) sepia(0.12);
}
.cover-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #f4eddd 0%, rgba(244, 237, 221, 0.55) 30%, rgba(244, 237, 221, 0) 65%, rgba(40, 28, 8, 0.2) 100%);
}

/* ============ 第 2 屏 · 邀请函卡片 ============ */
.letter-card {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: linear-gradient(170deg, #fffdf6 0%, #faf3e3 100%);
  padding: 38px 24px 30px;
  box-shadow: 0 14px 34px rgba(138, 92, 18, 0.12);
}
.letter-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(168, 121, 31, 0.22);
  border-radius: 10px;
  pointer-events: none;
}
.seal {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--bg-1);
  color: var(--gold);
  padding: 0 14px;
  font-size: 13px;
}
.letter-card p { font-size: 14.5px; color: var(--ink-mid); margin-bottom: 16px; }
.letter-card p:last-child { margin-bottom: 0; }
.letter-strong {
  color: var(--gold-deep) !important;
  font-weight: 600;
  border-top: 1px solid rgba(168, 121, 31, 0.22);
  padding-top: 16px;
}

/* ============ 第 3 屏 · 价值四宫格 ============ */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-card {
  border: 1px solid rgba(168, 121, 31, 0.28);
  border-radius: 12px;
  background: var(--card);
  padding: 22px 16px;
  min-height: 172px;
  box-shadow: 0 8px 20px rgba(138, 92, 18, 0.08);
}
.vicon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.value-card h3 { font-size: 15.5px; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--gold-deep); }
.value-card p { font-size: 12.5px; color: var(--ink-mid); line-height: 1.7; }

/* ============ 第 4 屏 · 议题时间轴 ============ */
.photo-banner {
  position: relative;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(168, 121, 31, 0.35);
  margin-bottom: 26px;
  box-shadow: 0 10px 24px rgba(138, 92, 18, 0.16);
}
.photo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: brightness(0.68) saturate(0.85);
}
.photo-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 28, 8, 0.25), rgba(40, 28, 8, 0.04) 55%, rgba(30, 20, 5, 0.5));
}
.photo-banner-tag {
  position: absolute;
  left: 14px; bottom: 10px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: #f3dca3;
}

.agenda { list-style: none; counter-reset: ag; position: relative; padding-left: 4px; }
.agenda li {
  counter-increment: ag;
  position: relative;
  padding: 0 0 22px 46px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
}
.agenda li::before {
  content: counter(ag, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-size: 12px;
  color: var(--gold-deep);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  letter-spacing: 0;
}
.agenda li::after {
  content: "";
  position: absolute;
  left: 14px; top: 32px; bottom: 2px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), rgba(168, 121, 31, 0.08));
}
.agenda li:last-child::after { display: none; }

.closed-note {
  margin-top: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 201, 135, 0.22), rgba(255, 253, 246, 0.7));
  padding: 18px 20px;
}
.closed-badge {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: #fffaf0;
  background: linear-gradient(135deg, #b8893a, #8a5c12);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 700;
}
.closed-note p { font-size: 13px; color: var(--gold-deep); }

/* ============ 第 5 屏 · 参会资格 ============ */
.qual-intro { font-size: 14.5px; color: var(--ink-mid); margin-bottom: 22px; }
.qual-list { display: flex; flex-direction: column; gap: 13px; }
.qual-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(151, 137, 111, 0.35);
  border-radius: 12px;
  background: var(--card);
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(138, 92, 18, 0.07);
}
.qual-card.hi {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(232, 201, 135, 0.3), #fffdf6 60%);
  box-shadow: 0 10px 26px rgba(168, 121, 31, 0.18);
}
.qicon { width: 30px; height: 30px; color: var(--gold-deep); flex: none; }
.qual-card h3 { font-size: 15.5px; letter-spacing: 0.04em; color: var(--ink); }
.qual-card p { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim); margin-top: 3px; }
.qual-note { font-size: 12.5px; color: var(--ink-dim); margin-top: 22px; }
.qual-slogan {
  margin-top: 26px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.qual-slogan::before, .qual-slogan::after { content: "—"; color: var(--gold-line); margin: 0 12px; }

/* ============ 第 6 屏 · 会议地点 ============ */
.venue-card {
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(138, 92, 18, 0.12);
}
.venue-visual { position: relative; height: 168px; overflow: hidden; }
.venue-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.85) saturate(0.85) sepia(0.1);
}
.venue-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 28, 8, 0.12), rgba(40, 28, 8, 0) 45%, rgba(255, 253, 248, 0.92) 96%);
}
.venue-body { padding: 24px 22px 26px; }
.venue-body h3 { font-size: 21px; letter-spacing: 0.08em; color: var(--ink); }
.venue-en { font-size: 10px; letter-spacing: 0.26em; color: var(--ink-dim); margin: 4px 0 16px; }
.venue-body > p { font-size: 13.5px; color: var(--ink-mid); margin-bottom: 12px; }
.venue-dim { color: var(--ink-dim) !important; font-size: 12.5px !important; }
.venue-btns { display: flex; gap: 12px; margin-top: 20px; }

/* ============ 第 7 屏 · 报名表单 ============ */
.form-intro { font-size: 14px; color: var(--ink-mid); margin-bottom: 26px; }
.reg-form { display: flex; flex-direction: column; gap: 18px; }
.field > span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 8px;
  font-weight: 600;
}
.field i { color: #c0392b; font-style: normal; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  font-family: var(--font-cn);
  font-size: 15px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(151, 137, 111, 0.45);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 90, 0.18); }
.field input::placeholder { color: #b3a78d; }

.seg { display: flex; gap: 10px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  background: #fffdf8;
  border: 1px solid rgba(151, 137, 111, 0.45);
  border-radius: 10px;
  padding: 11px 0;
  transition: all 0.2s ease;
}
.seg input:checked + b {
  color: #2a1f08;
  font-weight: 700;
  background: linear-gradient(135deg, #e8c987, #c9a25a);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(168, 121, 31, 0.3);
}

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { display: none; font-size: 13px; color: #c0392b; text-align: center; }
.form-err.show { display: block; }
.btn-submit { margin-top: 4px; width: 100%; padding: 16px 0; font-size: 17px; }
.btn-submit[disabled] { opacity: 0.55; pointer-events: none; }
.form-foot { text-align: center; font-size: 11.5px; color: var(--ink-dim); letter-spacing: 0.06em; }

.page-foot {
  text-align: center;
  padding: 30px 0 46px;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: #b6a988;
}

/* ---------- 音乐开关 ---------- */
.music-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 16px);
  right: 16px;
  z-index: 60;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(255, 253, 246, 0.88);
  color: var(--gold-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(138, 92, 18, 0.2);
  backdrop-filter: blur(4px);
}
.music-btn svg { width: 19px; height: 19px; }
.music-btn.playing svg { animation: musicSpin 3.2s linear infinite; }
@keyframes musicSpin { to { transform: rotate(360deg); } }
/* 暂停态:斜线 */
.music-btn::after {
  content: "";
  position: absolute;
  width: 22px; height: 1.5px;
  background: var(--gold-deep);
  transform: rotate(-45deg);
  border-radius: 1px;
  transition: opacity 0.2s ease;
}
.music-btn.playing::after { opacity: 0; }

/* ---------- 底部悬浮 CTA ---------- */
.float-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  display: flex;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.float-cta .btn-gold { pointer-events: auto; padding: 13px 52px; }
.float-cta.hide { opacity: 0; transform: translateY(20px); }
.float-cta.hide .btn-gold { pointer-events: none; }

/* ---------- 成功覆盖层 ---------- */
.success-mask[hidden] { display: none; }
.success-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(60, 46, 20, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.success-card {
  width: 100%;
  max-width: 340px;
  text-align: center;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: linear-gradient(170deg, #fffdf6, #f7efdd);
  padding: 40px 28px 32px;
  box-shadow: 0 24px 60px rgba(60, 40, 8, 0.35);
  animation: popIn 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.88) translateY(20px); } }
.success-ring {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(200, 162, 90, 0.45);
  background: #fffdf8;
}
.success-ring svg { width: 30px; height: 30px; }
.success-card h3 { font-size: 19px; letter-spacing: 0.1em; color: var(--gold-deep); margin-bottom: 12px; }
.success-card p { font-size: 13.5px; color: var(--ink-mid); margin-bottom: 10px; }
.success-dim { font-size: 11.5px !important; color: var(--ink-dim) !important; }
.success-demo { font-size: 11px !important; color: #a39576 !important; }
.success-card .btn-line { margin-top: 14px; }
