/**
 * [INPUT]: 依赖 index.html 的语义结构与 fonts/ 下的票面字体子集
 * [OUTPUT]: 对外提供官网全部样式：设计 token、版式、按钮、展台、六个可交互样机的外观
 * [POS]: landing/ 的唯一样式表；样机部分（.phone/.ticket/.mcard）与 App 真实组件逐项对齐，被 js/demos.js 驱动状态
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */

/* ============================================================
   字体：票面宋体 / 手写楷 / 卡面 Roboto，均为站内子集（国内不走 Google Fonts）
   ============================================================ */
@font-face { font-family: "BiteLogTicket"; src: url("../fonts/ticket.woff") format("woff"); font-display: swap; }
@font-face { font-family: "BiteLogLetter"; src: url("../fonts/letter.woff") format("woff"); font-display: swap; }
@font-face { font-family: "CardBold"; src: url("../fonts/card-bold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "CardRegular"; src: url("../fonts/card-regular.woff") format("woff"); font-display: swap; }

/* ============================================================
   设计 token：纯白底 + App 中性灰阶（CHAT_COLORS 同值），灰度承担层次，色彩只留给数据
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --text: #0D0D0D;
  --text-2: #5D5D5D;
  --text-3: #8F8F8F;
  --stage: #F4F4F4;
  --well: #FFFFFF;
  --hair: rgba(0, 0, 0, 0.08);
  --cta: #0D0D0D;
  --cta-text: #FFFFFF;
  --header: rgba(255, 255, 255, 0.8);
  --ease: cubic-bezier(.23, 1, .32, 1);

  /* 手机样机：对齐 App 浅色首页（CHAT_COLORS） */
  --ph-bg: #FFFFFF;
  --ph-card: #F4F4F4;
  --ph-well: #FFFFFF;
  --ph-text: #0D0D0D;
  --ph-text-2: #5D5D5D;
  --ph-text-3: #8F8F8F;
  --ph-divider: #E6E6E6;
  --ph-capsule: #FFFFFF;
  --ph-pill: #EEEEEE;
  --ph-backdrop: #EDEBF4;

  /* 跑马圈地：纸灰陆面 / 白道路 / 灰蓝水系 / 圈地黄（与高德离线样式同值） */
  --map-land: #ECEAE4;
  --map-block: #E3E0D8;
  --map-road: #FFFFFF;
  --map-water: #D9E1E8;
  --claim: #FFD60A;
  --ink: #171513;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #ECECEC;
    --text-2: #B4B4B4;
    --text-3: #8F8F8F;
    --stage: #212121;
    --well: #2F2F2F;
    --hair: rgba(255, 255, 255, 0.10);
    --cta: #ECECEC;
    --cta-text: #141414;
    --header: rgba(20, 20, 20, 0.8);

    --ph-bg: #212121;
    --ph-card: #2F2F2F;
    --ph-well: #3A3A3A;
    --ph-text: #ECECEC;
    --ph-text-2: #B4B4B4;
    --ph-text-3: #8F8F8F;
    --ph-divider: #3A3A3A;
    --ph-capsule: #252525;
    --ph-pill: #3B3B3B;
    --ph-backdrop: #212121;

    --map-land: #262622;
    --map-block: #2E2E29;
    --map-road: #3A3A35;
    --map-water: #1E2730;
    --ink: #F3F1EC;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* 韩文按词断行（日文无空格分词，不可同用） */
:lang(ko) { word-break: keep-all; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.cic { display: block; fill: none; stroke: currentColor; overflow: visible; }
svg.pic { display: block; fill: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   页头：透明起步，滚动后磨砂 + 发丝线
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 64px;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled {
  background: var(--header);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--hair);
}
.header-inner {
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand picture, .brand img { width: 28px; height: 28px; }
.header-cta {
  height: 36px; padding: 0 16px; border-radius: 10px;
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600;
  background: var(--cta); color: var(--cta-text);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.header.show-cta .header-cta { opacity: 1; transform: none; pointer-events: auto; }

/* 语言切换（国际站）：地球 + 当前语言，展开为菜单；图标取自 Central Icons */
.header-right { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--stage); color: var(--text); }
.lang summary .cic { width: 16px; height: 16px; }
.lang summary .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 168px; padding: 6px; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--hair), 0 12px 32px rgba(0, 0, 0, .10); display: grid; animation: menu-in .18s var(--ease); }
.lang-menu a { padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.lang-menu a:hover { background: var(--stage); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); font-weight: 600; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

/* ============================================================
   版式：单栏 1080，大字标题，大留白
   ============================================================ */
main { overflow: clip; }
.section { max-width: 1080px; margin: 0 auto; padding: clamp(112px, 13vw, 176px) 20px 0; }
.center { text-align: center; }
.display {
  font-size: clamp(48px, 7.6vw, 92px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}
.left .lead { margin-left: 0; }
.caption { margin-top: 18px; font-size: 13px; color: var(--text-3); text-align: center; }

/* 按钮：深色实心 + 浅色幽灵；按下微缩 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.left .actions { justify-content: flex-start; }
.btn {
  height: 50px; padding: 0 22px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .16s var(--ease), opacity .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .pic, .btn .cic { width: 20px; height: 20px; }
.btn-dark { background: var(--cta); color: var(--cta-text); }
.btn-ghost { background: var(--stage); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.meta { margin-top: 16px; font-size: 13px; color: var(--text-3); text-align: center; }
.left .meta { text-align: left; }

/* 展台：灰底大圆角，零阴影零描边 */
.stage { margin-top: 56px; border-radius: 28px; background: var(--stage); position: relative; overflow: hidden; }

/* 分段选择器（nowdex 式药丸） */
.seg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 36px; }
.seg button {
  height: 36px; padding: 0 16px; border-radius: 18px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--stage); color: var(--text); font-weight: 600; }
.stage .seg button[aria-pressed="true"] { background: var(--well); }

/* 开关：与 App 设置页同形 */
.switch {
  position: relative; width: 44px; height: 26px; border-radius: 13px; flex: 0 0 auto;
  background: var(--hair); transition: background-color .18s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .22s var(--ease);
}
.switch[aria-checked="true"] { background: var(--text); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--bg); }

/* 进场：一次性上浮淡入（无 JS 或减少动效时直接可见） */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(120px, 16vh, 168px); text-align: center; }
.hero .display { animation: rise .9s var(--ease) both; }
.hero .lead { animation: rise .9s .08s var(--ease) both; }
.hero .actions, .hero .meta { animation: rise .9s .16s var(--ease) both; }
.hero-hand { position: relative; width: min(640px, 100%); margin: 56px auto 0; animation: rise 1.1s .24s var(--ease) both; }
.hero-hand .hand { position: relative; z-index: 1; width: 100%; height: auto; pointer-events: none;
  /* 袖口在原图右、下边缘被截断：两道渐隐取交集，让手腕自然消失在纸面里 */
  --fade: linear-gradient(to bottom, #000 74%, transparent 97%), linear-gradient(to right, #000 88%, transparent 100%);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in;
  mask-image: var(--fade); mask-composite: intersect; }
/* 屏幕洞口：取自 hero-hand.webp 的绿幕实测（x 314–771 / y 87–1053 / 圆角≈58，原图 1086×1448） */
.hand-screen { position: absolute; left: 28.913%; top: 6.008%; width: 42.173%; height: 66.782%; border-radius: 12.6% / 6%; overflow: hidden; background: var(--ph-bg); }
.hero-hand .caption { margin-top: -6%; position: relative; z-index: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ============================================================
   手机屏幕：逐像素复刻 App 首页（tabs/index.tsx + CustomTabBar）
   按 390×823pt 逻辑尺寸搭建，site.js 依洞口实宽写入 --s 缩放；机身与手来自 hero-hand.webp
   ============================================================ */
.screen { position: absolute; left: 0; top: 0; width: 390px; height: 823px; background: var(--ph-bg); overflow: hidden; text-align: left; transform: scale(var(--s, .695)); transform-origin: 0 0; }
.island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
.statusbar { display: flex; justify-content: space-between; padding: 20px 34px 6px; font-size: 15px; font-weight: 600; color: var(--ph-text); }
.battery { width: 26px; height: 26px; margin: -6px -2px -6px 0; color: var(--ph-text); align-self: center; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px 0; }
.app-date { font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--ph-text-3); margin-bottom: 6px; }
.app-title { font-size: 30px; font-weight: 800; letter-spacing: -.6px; color: var(--ph-text); line-height: 1.15; }
.ball { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ph-card); color: var(--ph-text); margin-top: 4px; }
.ball .cic { width: 20px; height: 20px; }
.ball .badge { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 4px; background: var(--ph-text); }
.app-body { display: grid; gap: 12px; padding: 18px 20px 0; }
.ai-card { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--ph-card); }
.well { display: grid; place-items: center; border-radius: 50%; background: var(--ph-well); color: var(--ph-text); }
.ai-card .well { width: 40px; height: 40px; }
.ai-card .well .cic { width: 20px; height: 20px; }
.ai-greet { font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: var(--ph-text); }
.ai-hint { font-size: 12px; letter-spacing: .2px; color: var(--ph-text-3); }
.ai-enter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ph-text); color: var(--ph-bg); }
.ai-enter .cic { width: 15px; height: 15px; }
.overview { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center; padding: 14px 18px; border-radius: 20px; background: var(--ph-card); }
.ov { display: grid; justify-items: center; gap: 6px; padding: 6px 0; }
.ov .well { width: 36px; height: 36px; color: var(--ph-text-2); }
.ov .well .cic { width: 17px; height: 17px; }
.ov b { font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: var(--ph-text); }
.ov small { font-size: 11px; font-weight: 600; color: var(--ph-text-3); margin-left: 2px; }
.ov-div { width: 1px; height: 40px; background: var(--ph-divider); justify-self: center; }
.details-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 -2px; }
.details-head b { font-size: 18px; font-weight: 800; letter-spacing: -.4px; color: var(--ph-text); }
.details-head span { font-size: 14px; font-weight: 600; color: var(--ph-text-2); }
.rec { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--ph-card); }
.rec-well { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ph-well); font-size: 26px; }
.rec-tag { font-size: 11px; font-weight: 600; color: var(--ph-text-3); }
.rec-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: var(--ph-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-sub { font-size: 13px; color: var(--ph-text-3); }
.rec-feel { font-size: 14px; line-height: 20px; color: var(--ph-text); }
.rec-time { font-size: 13px; font-weight: 600; color: var(--ph-text-2); }
.js .hero-hand .rec { animation: tick-on .6s var(--ease) both; animation-delay: calc(.9s + var(--i) * 140ms); }
@keyframes tick-on { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.screen-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to bottom, transparent, var(--ph-backdrop)); opacity: .9; }
.tabbar { position: absolute; left: 20px; right: 20px; bottom: 22px; height: 60px; border-radius: 30px; background: var(--ph-capsule); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 4px; }
.tab { display: grid; justify-items: center; align-content: center; gap: 2px; height: 52px; border-radius: 26px; color: var(--ph-text-2); font-size: 10px; letter-spacing: .2px; }
.tab .cic { width: 26px; height: 26px; }
.tab.on { background: var(--ph-pill); color: var(--ph-text); font-weight: 600; }
.capture { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 21px; background: var(--ph-capsule); border: 1px solid var(--hair); color: var(--ph-text); }
.capture .cic { width: 20px; height: 20px; }

/* ============================================================
   纸墨小票：复刻 components/share/MealShareTicket（纸白恒定，不随主题）
   ============================================================ */
.ticket-stage { display: grid; place-items: start center; padding: 56px 20px 64px; min-height: 640px; }
.ticket-slot { width: 360px; height: 10px; border-radius: 5px; background: var(--hair); margin-bottom: -5px; position: relative; z-index: 1; }
.ticket { width: min(320px, 100%); color: #171513; transform-origin: top center; }
.ticket.printing { animation: print .9s var(--ease) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); } }
.zig { display: block; width: 100%; height: 10px; }
.zig.flip { transform: scaleY(-1); }
.t-body { background: #FAF7F1; padding: 14px 18px; font-family: "BiteLogTicket", "Songti SC", "STSong", serif; }
.t-brand { text-align: center; font-size: 14px; font-weight: 600; letter-spacing: 5px; }
.t-slogan { text-align: center; font-size: 10px; letter-spacing: 1px; color: rgba(23,21,19,.58); margin-top: 4px; }
.t-double { height: 4px; border-top: 1px solid #171513; border-bottom: 1px solid #171513; margin: 10px 0; }
.t-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.t-meta b { font-size: 14px; font-weight: 600; }
.t-meta span { font-size: 11px; color: rgba(23,21,19,.58); font-variant-numeric: tabular-nums; }
.t-rule { height: 1px; background: rgba(23,21,19,.26); margin: 10px 0; }
.t-item { display: flex; align-items: flex-end; min-height: 22px; font-size: 12px; }
.t-item i { flex: 1; border-bottom: 1px dashed rgba(23,21,19,.26); margin: 0 8px 4px; }
.t-item span { font-size: 11px; color: rgba(23,21,19,.58); }
.t-total { text-align: right; font-size: 12px; font-weight: 600; }
.t-feel { font-family: "BiteLogLetter", "Kaiti SC", "STKaiti", cursive; text-align: center; font-size: 16px; margin-top: 12px; }
.t-motto { text-align: center; font-size: 10px; letter-spacing: 1px; color: rgba(23,21,19,.58); margin: 12px 0 10px; }
.t-barcode { display: flex; justify-content: center; height: 26px; }
.t-barcode i { height: 26px; background: #171513; }
.t-serial, .t-domain { text-align: center; font-size: 10px; color: rgba(23,21,19,.58); letter-spacing: 1px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.t-domain { margin-top: 2px; }
.ticket-stage .ticket { zoom: 1.3; }
.ticket-stage .ticket-slot { width: min(460px, 100%); }
.ticket-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--text-2); }

/* ============================================================
   双栏区块（跑马圈地 / 身体数据 / 隐私）
   ============================================================ */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .left { order: 2; }
.split .stage { margin-top: 0; }

/* 跑马圈地地图 */
.map { aspect-ratio: 4 / 3.4; }
.map svg { display: block; width: 100%; height: 100%; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.map .claim { fill: var(--claim); fill-opacity: 0; stroke: var(--claim); stroke-opacity: 0; stroke-width: 3; stroke-linejoin: round; transition: fill-opacity .6s var(--ease), stroke-opacity .6s var(--ease); }
.map.done .claim { fill-opacity: .2; stroke-opacity: .9; }
.map .runner { fill: var(--ink); }
.map .runner-halo { fill: var(--ink); opacity: .14; }
.hud { position: absolute; left: 16px; right: 16px; top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; border-radius: 18px; background: var(--well); text-align: center; }
.hud small { display: block; font-size: 11px; color: var(--text-3); }
.hud b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 12px); padding: 10px 18px; border-radius: 22px; background: var(--cta); color: var(--cta-text); font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.map.done .toast { opacity: 1; transform: translate(-50%, 0); }
.rank { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.rank-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.rank-row b { color: var(--text); font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: var(--stage); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 3px; background: var(--text); transition: width .9s var(--ease); }

/* ============================================================
   提醒：列表 + 横幅预览
   ============================================================ */
.remind-stage { padding: 104px 20px 48px; display: grid; justify-items: center; }
.banner { position: absolute; top: 20px; left: 50%; width: min(380px, calc(100% - 40px)); transform: translate(-50%, -12px); opacity: 0; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--well); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.banner img { width: 36px; height: 36px; border-radius: 9px; }
.banner b { display: block; font-size: 14px; }
.banner span { font-size: 13px; color: var(--text-2); }
.banner time { align-self: start; font-size: 12px; color: var(--text-3); }
.remind-list, .banner { text-align: left; }
.remind-list { width: min(440px, 100%); border-radius: 22px; background: var(--well); padding: 6px 0; }
.remind-head { padding: 14px 20px 10px; font-size: 13px; color: var(--text-3); }
.remind-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; cursor: pointer; }
.remind-row + .remind-row { border-top: 1px solid var(--hair); }
.remind-row div { flex: 1; min-width: 0; }
.remind-row b { display: block; font-size: 15px; font-weight: 600; }
.remind-row span { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ============================================================
   身体数据趋势
   ============================================================ */
.chart-stage { padding: 28px 28px 24px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-head small { font-size: 13px; color: var(--text-3); }
.chart-head b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chart-head b span { font-size: 15px; font-weight: 600; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.chart-stage .seg { margin-top: 0; justify-content: flex-start; }
.chart { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart .line.dash { stroke-dasharray: 5 6; stroke: var(--text-2); }
.chart .dot { fill: var(--text); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.chart.draw .line { animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } }
.chart.draw .line.dash, .chart.draw .dot { animation: fade .9s .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.legend { margin-top: 10px; font-size: 12px; color: var(--text-3); }

/* ============================================================
   会员卡：复刻 components/MemberCard（1.586 比例、22 圆角、指针替代陀螺仪）
   ============================================================ */
.card-stage { padding: 72px 20px 40px; perspective: 1100px; }
.mcard { position: relative; width: min(440px, 100%); aspect-ratio: 1.586; margin: 0 auto; transform-style: preserve-3d; transition: transform .5s var(--ease); cursor: pointer; }
.mcard.tracking { transition: transform .08s linear; }
.face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; backface-visibility: hidden; background: linear-gradient(#262219, #151410) center / cover; color: #fff; transition: transform .26s cubic-bezier(.65, 0, .35, 1); }
.face::before { content: ""; position: absolute; inset: 0; background: var(--art) center / cover; }
.face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.10) 50%, rgba(0,0,0,.18)); }
.face .light { position: absolute; z-index: 1; width: 120%; aspect-ratio: 1; left: -10%; top: 50%; margin-top: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,246,228,.42), rgba(255,246,228,.12) 55%, transparent); mix-blend-mode: soft-light; transform: translate(var(--lx, 0), var(--ly, 0)); pointer-events: none; }
.face .logo { position: absolute; z-index: 2; left: 24px; top: 22px; width: 30px; height: 30px; }
.face .tier { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; font-family: "CardBold", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: clamp(24px, 7vw, 34px); }
.face .back-brand { letter-spacing: 4px; font-size: clamp(20px, 5.4vw, 26px); }
.face .foot { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; font-family: "CardRegular", "Helvetica Neue", Arial, sans-serif; font-size: 14px; }
.face .foot span:last-child { font-size: 12px; font-variant-numeric: tabular-nums; }
.face.back { transform: rotateY(180deg); }
.mcard.flipped .face.front { transform: rotateY(-180deg); }
.mcard.flipped .face.back { transform: rotateY(0); }
.card-picker { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.card-picker button { width: 56px; aspect-ratio: 1.586; border-radius: 8px; background: center / cover; opacity: .55; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.card-picker button:hover { opacity: .85; }
.card-picker button[aria-pressed="true"] { opacity: 1; transform: translateY(-3px); outline: 2px solid var(--text); outline-offset: 2px; }

/* ============================================================
   隐私三条 + FAQ
   ============================================================ */
.points { display: grid; }
.point { padding: 22px 0; border-top: 1px solid var(--hair); }
.point:last-child { border-bottom: 1px solid var(--hair); }
.point b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.point p { color: var(--text-2); font-size: 15px; }
.split.top { align-items: start; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer; transition: color .15s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .cic { width: 20px; height: 20px; flex: 0 0 auto; color: var(--text-3); transition: transform .25s var(--ease); }
.faq details[open] summary .cic { transform: rotate(180deg); }
.faq details p { padding: 0 32px 22px 0; color: var(--text-2); font-size: 15px; }

/* ============================================================
   收尾 CTA + 页脚
   ============================================================ */
.final { padding-bottom: 128px; }
.final img { width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 22px; }
.status { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.footer { max-width: 1080px; margin: 0 auto; padding: 48px 20px 40px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 22em; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; transition: color .15s var(--ease); }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); }

/* ============================================================
   响应式 + 减少动效
   ============================================================ */
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .left { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .lang summary span { display: none; }
  .hero-hand { width: 128%; margin-left: -14%; margin-top: 40px; }
  .ticket-stage { padding-top: 40px; min-height: 600px; }
  .ticket-stage .ticket { zoom: 1; }
  .ticket-stage .ticket-slot { width: min(340px, 100%); }
  .seg button { padding: 0 13px; }
  .hud b { font-size: 15px; }
  .chart-stage { padding: 22px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
