/* 拼dede · Design System v2
   风格：Bento 网格 + 活力色块（UI UX Pro Max · Vibrant & Block-based / Bento Box Grid）
   配色：AI 紫（主色）+ 荧光青柠（高亮）+ 橙（紧迫）
   字体：系统中文字体栈（Google Fonts 在国内不稳定，且 CSP 只允许本站资源） */

:root {
  --bg: #ffffff;
  --bg-glass: rgba(255, 255, 255, .86);
  --surface: #ffffff;
  --surface-2: #f5f5fa;
  --surface-3: #ececf3;
  --ink: #0e0e1a;
  --ink-2: #34354a;
  --muted: #5f6075;
  --line: #e8e8f0;
  --line-strong: #d4d5e0;

  --primary: #6d4aff;
  --primary-hover: #5b37f2;
  --primary-ink: #5530ee;      /* 浅底上的紫色文字 */
  --primary-soft: #efebff;
  --on-primary: #ffffff;
  --lime: #c8f031;
  --on-lime: #0e0e1a;
  --hot: #d4400f;              /* 紧迫：差人、倒计时 */
  --hot-soft: #ffede5;
  --ok: #0b7d4b;
  --ok-soft: #e1f5e9;
  --hold: #f2a516;             /* 待付款占座 */

  --hero-bg: #0e0e1a;
  --hero-ink: #f5f5fb;
  --hero-muted: #b4b5ca;
  --hero-line: rgba(255, 255, 255, .1);

  --cv-a: 80%;  --cv-b: 72%;  --cv-base: 90%;  --cv-grid: rgba(255, 255, 255, .45);
  --glyph-l: 24%;  --glyph-bg: rgba(255, 255, 255, .42);  --glyph-line: rgba(255, 255, 255, .7);

  --shadow-sm: 0 1px 2px rgba(14, 14, 26, .06);
  --shadow: 0 1px 2px rgba(14, 14, 26, .05), 0 10px 28px -14px rgba(14, 14, 26, .18);
  --shadow-lg: 0 2px 6px rgba(14, 14, 26, .05), 0 28px 56px -20px rgba(14, 14, 26, .28);
  --scrim: rgba(10, 10, 20, .55);

  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "SF Pro Display", "Segoe UI Variable Display", -apple-system, "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, ui-monospace, monospace;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms; --t: 220ms;
  --tabbar-h: 64px;
  --glow: radial-gradient(1000px 560px at 92% -12%, rgba(109, 74, 255, .06), transparent 60%);
  color-scheme: light;
}
/* 默认白底；深色只在用户点切换按钮后启用 */
:root[data-theme="dark"] {
  --bg: #08080f; --bg-glass: rgba(8, 8, 15, .78);
  --surface: #12121c; --surface-2: #1a1a27; --surface-3: #242434;
  --ink: #f2f2f8; --ink-2: #d0d1e2; --muted: #a0a1b8;
  --line: #23233a; --line-strong: #34344c;
  --primary: #6d4aff; --primary-hover: #8064ff; --primary-ink: #ab9dff; --primary-soft: #221c48; --on-primary: #ffffff;
  --hot: #ff7d52; --hot-soft: #3b1c11; --ok: #42d892; --ok-soft: #0f2d20; --hold: #f5b23c;
  --hero-bg: #0d0c18; --hero-ink: #f5f5fb; --hero-muted: #b0b1c8; --hero-line: rgba(255, 255, 255, .09);
  --glow: radial-gradient(900px 520px at 88% -8%, rgba(109, 74, 255, .14), transparent 62%), radial-gradient(700px 420px at -6% 38%, rgba(200, 240, 49, .045), transparent 60%);
  --cv-a: 46%; --cv-b: 36%; --cv-base: 17%; --cv-grid: rgba(255, 255, 255, .06);
  --glyph-l: 94%; --glyph-bg: rgba(255, 255, 255, .08); --glyph-line: rgba(255, 255, 255, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 30px 60px -20px rgba(0, 0, 0, .8);
  --scrim: rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--glow), var(--bg); background-attachment: fixed; color: var(--ink);
  font: 15px/1.6 var(--font); letter-spacing: .01em;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.serif { font-family: var(--display); font-weight: 800; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
main { min-height: 50vh; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

/* ---------- 顶部标语条 ---------- */
.slogan { background: var(--hero-bg); color: var(--hero-ink); font-size: 12.5px; border-bottom: 1px solid var(--hero-line); }
.slogan .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 10px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.slogan b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .08em; color: var(--lime); }
.slogan span { color: var(--hero-muted); letter-spacing: .04em; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg-glass); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: #0e0e1a; display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(14, 14, 26, .55), inset 0 1px 0 rgba(255, 255, 255, .14); flex: none; }
:root[data-theme="dark"] .brand-mark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.brand-mark svg { width: 22px; height: 22px; }
.brand em { font-style: normal; color: var(--ink); }
.brand small { font: 600 9.5px/1 var(--mono); letter-spacing: .22em; color: var(--muted); align-self: flex-end; padding-bottom: 3px; }
.nav { display: flex; gap: 2px; margin-left: 28px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--bg); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color var(--t-fast); max-width: 180px; }
.user-pill:hover { border-color: var(--line-strong); }
.user-pill .av { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.user-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 手机底部导航 ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .nav { display: none; }
  .brand small { display: none; }
  .topbar .wrap { height: 58px; }
  .user-pill { padding-right: 4px; }
  .user-pill span:last-child { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    height: var(--tabbar-h); padding: 6px; gap: 4px;
    /* 白底 + 描边 + 投影，和白色页面区分开；选中项为黑底白字 */
    background: var(--surface); color: var(--ink); border-radius: 22px; border: 1px solid var(--line-strong);
    box-shadow: 0 2px 6px rgba(14, 14, 26, .06), 0 16px 36px -12px rgba(14, 14, 26, .28);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
  .tabbar a .ico { width: 20px; height: 20px; }
  .tabbar a:hover { color: var(--ink); }
  .tabbar a.on { background: var(--ink); color: var(--bg); }
  :root[data-theme="dark"] .tabbar { box-shadow: var(--shadow-lg); }
  body { padding-bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  body.has-actionbar .tabbar { display: none; }
  body.has-actionbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-accent, .btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -10px rgba(109, 74, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-accent:hover:not(:disabled), .btn-primary:hover:not(:disabled) { background: var(--primary-hover); box-shadow: 0 12px 26px -10px rgba(109, 74, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover:not(:disabled) { background: var(--ink-2); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover:not(:disabled) { background: #d6f75a; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-glass { background: var(--gx-soft, rgba(255, 255, 255, .08)); border: 1px solid var(--gx-soft-line, rgba(255, 255, 255, .18)); color: var(--gx-ink, var(--hero-ink)); }
.btn-glass:hover { background: var(--gx-soft-2, rgba(255, 255, 255, .14)); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; gap: 6px; }
.btn-sm .ico { width: 15px; height: 15px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
@media (pointer: coarse) { .btn-sm { height: 42px; } }

/* ---------- 卡片 / 标签 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
a.card { transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.chip .ico { width: 13px; height: 13px; }
.chip.accent, .chip.primary { background: var(--primary-soft); color: var(--primary-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.ink { background: var(--ink); color: var(--bg); }
.chip.hot { background: var(--hot-soft); color: var(--hot); }
.chip.lime { background: var(--lime); color: var(--on-lime); }
.chip.glass { background: rgba(255, 255, 255, .1); color: var(--hero-ink); border: 1px solid rgba(255, 255, 255, .16); }
.hue-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: hsl(var(--h) 80% 60%); display: inline-block; }

.section-head { display: flex; align-items: flex-end; gap: 16px; margin: 56px 0 20px; flex-wrap: wrap; }
.section-head h2 { font: 800 clamp(22px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--mono); letter-spacing: .14em; color: var(--primary-ink); text-transform: uppercase; margin-bottom: 10px; }
.section-head .more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: border-color var(--t-fast), color var(--t-fast); }
.section-head .more:hover { border-color: var(--ink); color: var(--ink); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty a { color: var(--primary-ink); font-weight: 600; }
.price { font-family: var(--display); font-weight: 800; color: var(--hot); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: .62em; margin-right: 1px; font-weight: 700; }
.strike { text-decoration: line-through; color: var(--muted); font-family: var(--mono); font-size: 13px; }

/* ---------- 商品封面：色相渐变 + 科技网格 + 玻璃字符 ---------- */
.cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; isolation: isolate;
  background:
    linear-gradient(var(--cv-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--cv-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(75% 70% at 12% 8%, hsl(var(--h) 92% var(--cv-a)), transparent 62%),
    radial-gradient(70% 75% at 92% 95%, hsl(calc(var(--h) + 55) 88% var(--cv-b)), transparent 64%),
    hsl(var(--h) 55% var(--cv-base));
}
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 55%, transparent, rgba(0, 0, 0, .06)); z-index: -1; }
.cover .glyph {
  width: 38%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center;
  font-size: clamp(36px, 6vw, 64px); line-height: 1; color: hsl(var(--h) 65% var(--glyph-l));
  background: var(--glyph-bg); border: 1px solid var(--glyph-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 24px 40px -22px hsl(var(--h) 70% 20% / .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.cover.mini { aspect-ratio: 1; border-radius: 14px; }
.cover.mini .glyph { width: 56%; font-size: 22px; border-radius: 28%; }
.cover.lg .glyph { font-size: clamp(56px, 9vw, 104px); }

/* ---------- 座位环 ---------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring circle { stroke-linecap: round; transition: stroke var(--t); }
.ring .seg-on { stroke: var(--primary); }
.ring .seg-hold { stroke: var(--hold); }
.ring .seg-off { stroke: var(--line-strong); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring .center b { font: 800 1em var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring .center span { font-size: .46em; color: var(--muted); display: block; margin-top: 2px; font-weight: 600; }

/* ---------- 首页开屏：全屏滑行轮播 ---------- */
/* 默认白底：每屏一抹彩色光晕；切到深色模式时换成夜间配色（见下方 [data-theme="dark"]） */
.glide {
  --gx-bg: #ffffff; --gx-ink: #0e0e1a; --gx-muted: #55566b;
  --gx-accent: var(--primary-ink); --gx-dot: var(--primary);
  --gx-soft: rgba(14, 14, 26, .045); --gx-soft-2: rgba(14, 14, 26, .08); --gx-soft-line: rgba(14, 14, 26, .12); --gx-hair: rgba(14, 14, 26, .08); --gx-dash: rgba(14, 14, 26, .24);
  --gx-grid: rgba(14, 14, 26, .05); --gx-num: rgba(14, 14, 26, .09);
  --gx-card: rgba(255, 255, 255, .8); --gx-card-line: rgba(14, 14, 26, .08);
  --gx-card-shadow: 0 40px 80px -36px rgba(48, 32, 140, .3), 0 2px 6px rgba(14, 14, 26, .04), inset 0 1px 0 #fff;
  --gx-chip: #ffffff; --gx-chip-shadow: 0 18px 40px -18px rgba(48, 32, 140, .36);
  --gx-ok: #0b7d4b; --gx-ok-text: #0a5634; --gx-ok-bg: rgba(11, 125, 75, .07); --gx-ok-line: rgba(11, 125, 75, .24);
  --gx-em: #0b7d4b; --gx-em-bg: rgba(11, 125, 75, .1); --gx-warn: #b8380d; --gx-warn-bg: rgba(212, 64, 15, .09); --gx-hold: #a86500;
  --gx-clock-bg: #0e0e1a; --gx-clock-ink: #ffffff; --gx-clock-line: transparent; --gx-clock-shadow: 0 30px 60px -28px rgba(48, 32, 140, .55);
  --gx-cta: #0e0e1a; --gx-cta-ink: #ffffff; --gx-cta-hover: #2a2a3e; --gx-cta-ico: var(--lime);
  --muted: var(--gx-muted); --line-strong: var(--gx-soft-line);
  position: relative; height: calc(100svh - 64px); min-height: 600px; max-height: 960px;
  overflow: hidden; background: var(--gx-bg); color: var(--gx-ink); isolation: isolate;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .glide {
  --gx-bg: var(--hero-bg); --gx-ink: #f5f5fb; --gx-muted: #b0b1c8;
  --gx-accent: var(--lime); --gx-dot: var(--lime);
  --gx-soft: rgba(255, 255, 255, .06); --gx-soft-2: rgba(255, 255, 255, .1); --gx-soft-line: rgba(255, 255, 255, .16); --gx-hair: rgba(255, 255, 255, .1); --gx-dash: rgba(255, 255, 255, .28);
  --gx-grid: rgba(255, 255, 255, .045); --gx-num: rgba(255, 255, 255, .08);
  --gx-card: rgba(255, 255, 255, .06); --gx-card-line: rgba(255, 255, 255, .14);
  --gx-card-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
  --gx-chip: rgba(16, 15, 30, .74); --gx-chip-shadow: 0 22px 44px -20px rgba(0, 0, 0, .85);
  --gx-ok: #42d892; --gx-ok-text: #d4f7e4; --gx-ok-bg: rgba(66, 216, 146, .08); --gx-ok-line: rgba(66, 216, 146, .26);
  --gx-em: #6ee7ad; --gx-em-bg: rgba(66, 216, 146, .14); --gx-warn: #ffa784; --gx-warn-bg: rgba(255, 125, 82, .16); --gx-hold: var(--hold);
  --gx-clock-bg: rgba(255, 255, 255, .07); --gx-clock-ink: #f5f5fb; --gx-clock-line: rgba(255, 255, 255, .14); --gx-clock-shadow: inset 0 -40px 40px -30px rgba(0, 0, 0, .5), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --gx-cta: var(--lime); --gx-cta-ink: var(--on-lime); --gx-cta-hover: #d6f75a; --gx-cta-ico: currentColor;
}
.glide-track {
  display: flex; height: 100%;
  transform: translate3d(calc(var(--i, 0) * -100% + var(--dx, 0) * 1px), 0, 0);
  transition: transform .95s cubic-bezier(.76, 0, .18, 1);
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.glide.dragging .glide-track { transition: none; cursor: grabbing; }
.glide-slide {
  flex: 0 0 100%; min-width: 0; height: 100%; position: relative; overflow: hidden; display: flex; align-items: center;
  background:
    radial-gradient(58% 72% at 86% 12%, var(--g1), transparent 66%),
    radial-gradient(48% 60% at 4% 100%, var(--g2), transparent 66%),
    var(--gx-bg);
}
.glide-slide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--gx-grid) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, var(--gx-grid) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 72% 30%, #000, transparent 78%); mask-image: radial-gradient(70% 80% at 72% 30%, #000, transparent 78%);
}
.glide-slide[data-tone="violet"] { --g1: rgba(109, 74, 255, .2); --g2: rgba(200, 240, 49, .28); }
.glide-slide[data-tone="blue"]   { --g1: rgba(48, 116, 255, .18); --g2: rgba(0, 214, 190, .16); }
.glide-slide[data-tone="green"]  { --g1: rgba(28, 196, 128, .2); --g2: rgba(109, 74, 255, .12); }
.glide-slide[data-tone="hot"]    { --g1: rgba(255, 106, 56, .2); --g2: rgba(222, 48, 140, .12); }
:root[data-theme="dark"] .glide-slide[data-tone="violet"] { --g1: rgba(109, 74, 255, .58); --g2: rgba(200, 240, 49, .14); }
:root[data-theme="dark"] .glide-slide[data-tone="blue"]   { --g1: rgba(48, 116, 255, .46); --g2: rgba(0, 214, 190, .16); }
:root[data-theme="dark"] .glide-slide[data-tone="green"]  { --g1: rgba(28, 196, 128, .36); --g2: rgba(109, 74, 255, .24); }
:root[data-theme="dark"] .glide-slide[data-tone="hot"]    { --g1: rgba(255, 106, 56, .44); --g2: rgba(222, 48, 140, .2); }
.gs-num {
  position: absolute; right: 3%; bottom: -5%; z-index: 0; pointer-events: none;
  font: 900 clamp(180px, 26vw, 400px)/1 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px var(--gx-num);
}
.gs-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center;
  padding-bottom: 88px;
  translate: 0 calc(var(--sp, 0) * .3px); opacity: calc(1 - var(--sp, 0) / 820);
}
.gs-kicker { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gx-accent); }
.gs-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.gs-title { font: 900 clamp(48px, 7.2vw, 108px)/1.02 var(--display); letter-spacing: -.035em; margin-top: 22px; }
.gs-title mark { background: var(--lime); color: var(--on-lime); padding: 0 .14em; border-radius: .16em; display: inline-block; transform: rotate(-3deg); margin-left: .04em; box-shadow: 0 18px 40px -16px rgba(150, 190, 0, .6); }
.gs-lead { font-size: clamp(17px, 1.6vw, 22px); font-weight: 650; margin-top: 24px; max-width: 24em; }
.gs-sub { font-size: 15px; color: var(--gx-muted); margin-top: 10px; max-width: 32em; }
.gs-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.glide .btn-lime { background: var(--gx-cta); color: var(--gx-cta-ink); }
.glide .btn-lime:hover:not(:disabled) { background: var(--gx-cta-hover); }
.glide .btn-lime .ico { color: var(--gx-cta-ico); }
.gs-live { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding: 9px 16px; border-radius: 999px; background: var(--gx-soft); border: 1px solid var(--gx-hair); font-size: 13px; color: var(--gx-muted); }
.gs-live b { color: var(--gx-ink); font: 800 15px/1 var(--mono); }
.gs-verify { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 16px; max-width: 34em; font-size: 14px; line-height: 1.65; color: var(--gx-ok-text); background: var(--gx-ok-bg); border: 1px solid var(--gx-ok-line); }
.gs-verify .ico { color: var(--gx-ok); margin-top: 3px; }

/* 进场：文字从右侧依次滑入，视觉稍晚一步，产生景深 */
.glide.js .gs-copy > * { opacity: 0; transform: translateX(80px); transition: opacity .5s var(--ease), transform 1s cubic-bezier(.16, 1, .3, 1); }
.glide.js .is-on .gs-copy > * { opacity: 1; transform: none; }
.glide.js .is-on .gs-copy > :nth-child(1) { transition-delay: .34s; }
.glide.js .is-on .gs-copy > :nth-child(2) { transition-delay: .42s; }
.glide.js .is-on .gs-copy > :nth-child(3) { transition-delay: .5s; }
.glide.js .is-on .gs-copy > :nth-child(4) { transition-delay: .58s; }
.glide.js .is-on .gs-copy > :nth-child(5) { transition-delay: .66s; }
.glide.js .is-on .gs-copy > :nth-child(6) { transition-delay: .74s; }
.glide.js .gs-visual { opacity: 0; transform: translateX(160px) scale(.94); transition: opacity .6s var(--ease), transform 1.25s cubic-bezier(.16, 1, .3, 1); }
.glide.js .is-on .gs-visual { opacity: 1; transform: none; transition-delay: .28s; }
.glide.js .gs-num { transform: translateX(40%); opacity: 0; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1), opacity .8s; }
.glide.js .is-on .gs-num { transform: none; opacity: 1; transition-delay: .2s; }

/* 右侧视觉 */
.gs-visual { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.gl-card { background: var(--gx-card); border: 1px solid var(--gx-card-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 28px; box-shadow: var(--gx-card-shadow); }
.f-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 14px;
  font-size: 14px; font-weight: 650; white-space: nowrap; color: var(--gx-ink);
  background: var(--gx-chip); border: 1px solid var(--gx-card-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--gx-chip-shadow); animation: float 6s ease-in-out infinite;
}
.f-chip .ico { width: 17px; height: 17px; color: var(--gx-dot); }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes spin { to { rotate: 360deg; } }
/* 第 1 屏：十个小人一个个出现、手拉手围成一圈 → 圈合上激活 → 拼团成功
   不加动画时（无 JS / 减少动态效果）直接显示最终的成功画面 */
.v-ring { --r-wait: var(--gx-ink); --r-on: #eba806; --r-gold: #ffc21a; --r-disk: var(--gx-card); --r-disk-line: var(--gx-soft-line); }
:root[data-theme="dark"] .v-ring { --r-on: #ffc933; }
.v-ring svg { width: 100%; height: 100%; overflow: visible; }
.v-ring .rg-guide { fill: none; stroke: var(--gx-dash); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.v-ring .rg-line { fill: none; stroke: url(#rg-grad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 880 880; }
.v-ring .rg-halo { fill: none; stroke: var(--r-gold); stroke-width: 16; opacity: .22; filter: url(#rg-blur); }
.v-ring .disk { fill: var(--r-disk); stroke: var(--r-disk-line); stroke-width: 1.5; }
.v-ring .disk-on { fill: url(#rg-disk); }
.v-ring .disk-glow { fill: var(--r-gold); opacity: .55; filter: url(#rg-blur2); }
.v-ring .wave { fill: none; stroke: var(--r-on); stroke-width: 3; opacity: 0; }
.v-ring .disk-on, .v-ring .disk-glow, .v-ring .wave, .v-ring .lk, .v-ring .cf, .v-ring .ok { transform-box: fill-box; transform-origin: center; }
.v-ring .p { color: var(--r-on); transform-box: fill-box; transform-origin: 50% 100%; }
.v-ring .p circle, .v-ring .p .bd { fill: currentColor; }
.v-ring .p .arm, .v-ring .p .leg { fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; }
.v-ring .p .leg { stroke-width: 7; }
.v-ring .lk { fill: #fff6cc; stroke: var(--gx-bg); stroke-width: 2.5; }
.v-ring .cf { opacity: 0; }
.v-ring .cf.a { fill: #ffd84a; } .v-ring .cf.b { fill: #e8a000; } .v-ring .cf.c { fill: #fff1a8; }
.v-ring text { text-anchor: middle; font-family: var(--display); }
.v-ring .cnt { opacity: 0; }
.v-ring .lab { font-size: 15px; font-weight: 700; letter-spacing: .2em; fill: var(--gx-muted); }
.v-ring .lab.sub { font-size: 18px; letter-spacing: .04em; }
.v-ring .num { font-size: 78px; font-weight: 900; fill: var(--gx-ink); font-variant-numeric: tabular-nums; opacity: 0; }
.v-ring .ok-ico circle { fill: #1a1300; }
.v-ring .ok-ico path { fill: none; stroke: #ffd84a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.v-ring .ok-txt { font-size: 31px; font-weight: 900; letter-spacing: .04em; fill: #1a1300; }
.v-ring .ok-sub { font-size: 15px; font-weight: 700; fill: rgba(26, 19, 0, .72); }

/* 时间线：0.7s 起每 0.3s 来一个人 → 3.6s 圈合上 → 3.8s 激活 → 4.05s 拼团成功 */
.glide.js .is-on .v-ring .p { animation: rp-in .55s cubic-bezier(.34, 1.56, .64, 1) calc(.7s + var(--k) * .3s) both, rp-on .4s ease calc(3.8s + var(--k) * .05s) both, rp-hop .5s cubic-bezier(.3, 0, .3, 1) calc(3.8s + var(--k) * .05s); }
.glide.js .is-on .v-ring .lk { animation: rl-in .45s cubic-bezier(.34, 1.56, .64, 1) var(--t) both, rl-gold .4s ease 3.8s both, rl-pulse 1.8s ease-in-out 4.6s infinite; }
.glide.js .is-on .v-ring .rg-line { animation: rr-draw .7s cubic-bezier(.65, 0, .35, 1) 3.55s both; }
.glide.js .is-on .v-ring .rg-halo { animation: rr-fade .6s 3.9s both, rr-breathe 2.4s ease-in-out 4.6s infinite; }
.glide.js .is-on .v-ring .disk-on { animation: rd-on .6s cubic-bezier(.34, 1.56, .64, 1) 3.8s both; }
.glide.js .is-on .v-ring .disk-glow { animation: rd-glow .8s 3.9s both, rd-breathe 2.4s ease-in-out 4.7s infinite; }
.glide.js .is-on .v-ring .wave { animation: rw 1.3s cubic-bezier(.2, .6, .3, 1) 3.9s both; }
.glide.js .is-on .v-ring .wave.w2 { animation-delay: 4.2s; }
.glide.js .is-on .v-ring .cf { animation: rc 1.2s cubic-bezier(.15, .7, .3, 1) calc(3.95s + var(--d)) both; }
.glide.js .is-on .v-ring .cnt { animation: rcnt-out .3s ease 3.75s both; }
.glide.js .is-on .v-ring .num { animation: rn-in .26s cubic-bezier(.2, .8, .3, 1) calc(.7s + var(--k) * .3s) both, rn-out .2s ease calc(1s + var(--k) * .3s) forwards; }
.glide.js .is-on .v-ring .num.last { animation: rn-in .26s cubic-bezier(.2, .8, .3, 1) 3.4s both; }
.glide.js .is-on .v-ring .num.z { animation: rn-out0 .2s ease .7s both; }
.glide.js .is-on .v-ring .ok { animation: rok .6s cubic-bezier(.34, 1.56, .64, 1) 4.05s both; }
.glide.static .v-ring * { animation: none !important; }
@keyframes rp-in { from { opacity: 0; transform: translateY(-36px) scale(.3); } 55% { opacity: 1; } }
@keyframes rp-on { from { color: var(--r-wait); } to { color: var(--r-on); } }
@keyframes rp-hop { 40% { transform: translateY(-14px); } }
@keyframes rl-in { from { opacity: 0; transform: scale(0); } 60% { transform: scale(1.7); } }
@keyframes rl-pulse { 50% { transform: scale(1.35); } }
@keyframes rl-gold { from { fill: var(--lime); } }
@keyframes rr-draw { from { stroke-dashoffset: 880; } }
@keyframes rr-fade { from { opacity: 0; } }
@keyframes rr-breathe { 50% { opacity: .34; } }
@keyframes rd-on { from { transform: scale(0); } }
@keyframes rd-glow { from { opacity: 0; transform: scale(.4); } }
@keyframes rd-breathe { 50% { opacity: .75; } }
@keyframes rw { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
@keyframes rc { 0% { opacity: 0; transform: translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-64px) scale(1) rotate(160deg); } }
@keyframes rcnt-out { from { opacity: 1; } to { opacity: 0; transform: scale(.8); } }
@keyframes rn-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rn-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes rn-out0 { from { opacity: 1; } to { opacity: 0; transform: translateY(-16px); } }
@keyframes rok { from { opacity: 0; transform: scale(.55); } }
.v-team .gl-card { width: 92%; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vt-head { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gx-muted); }
.vt-head b { color: var(--gx-ink); font-size: 15px; }
.vt-seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; }
.vt-seats i { min-width: 0; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 var(--display); font-style: normal; background: hsl(var(--h) 75% 64%); color: #0e0e1a; }
.vt-seats i.hold { background: transparent; border: 2px solid var(--gx-hold); color: var(--gx-hold); }
.vt-seats i.empty { padding: 0; border-radius: 50%; background: transparent; border: 1.5px dashed var(--gx-dash); color: var(--gx-muted); }
.v-team .c1 { top: 4%; right: -4%; }
.v-verify .gl-card { width: 96%; padding: 22px; }
.vv-head { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 15px; padding: 0 4px 14px; border-bottom: 1px solid var(--gx-hair); }
.vv-head .ico { color: var(--gx-ok); width: 20px; height: 20px; }
.vv-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px dashed var(--gx-hair); font-size: 14px; }
.vv-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.vv-row > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--gx-soft-2); color: var(--gx-ink); }
.vv-row span { flex: 1; color: var(--gx-muted); }
.vv-row span b { display: block; color: var(--gx-ink); font-size: 14.5px; }
.vv-row em { font-style: normal; font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--gx-em-bg); color: var(--gx-em); }
.vv-row em.warn { background: var(--gx-warn-bg); color: var(--gx-warn); }
.v-ship .clock { display: flex; align-items: center; gap: 10px; }
.v-ship .clock span { width: 104px; height: 132px; display: grid; place-items: center; font: 800 76px/1 var(--mono); border-radius: 22px; color: var(--gx-clock-ink); background: var(--gx-clock-bg); border: 1px solid var(--gx-clock-line); box-shadow: var(--gx-clock-shadow); }
.v-ship .clock i { font: 800 56px/1 var(--mono); font-style: normal; color: var(--gx-dot); }
.v-ship .c1 { top: 14%; left: 0; }
.v-ship .c2 { bottom: 14%; right: -2%; animation-delay: -3s; }

/* 底部控制条 */
.glide-ui { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; }
.glide-ui .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.glide-dots { display: flex; gap: 10px; }
.glide-dots button { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-width: 112px; min-height: 44px; padding-bottom: 6px; text-align: left; font-size: 13px; font-weight: 650; color: var(--gx-muted); transition: color var(--t-fast); }
.glide-dots button:hover, .glide-dots button[aria-current="true"] { color: var(--gx-ink); }
.glide-dots i { display: block; height: 3px; border-radius: 3px; background: var(--gx-soft-line); overflow: hidden; }
.glide-dots i b { display: block; height: 100%; background: var(--gx-dot); transform: scaleX(0); transform-origin: left; }
.glide-dots [aria-current="true"] i b { animation: glide-prog var(--dur, 6500ms) linear forwards; }
.glide.paused .glide-dots [aria-current="true"] i b, .glide.hold .glide-dots [aria-current="true"] i b { animation-play-state: paused; }
.glide.static .glide-dots [aria-current="true"] i b { animation: none; transform: none; }
@media (hover: hover) { .glide:hover .glide-dots [aria-current="true"] i b { animation-play-state: paused; } }
.glide:has(:focus-visible) .glide-dots [aria-current="true"] i b { animation-play-state: paused; }
@keyframes glide-prog { to { transform: scaleX(1); } }
.glide-down { position: absolute; left: 50%; bottom: 30px; z-index: 3; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .2em; color: var(--gx-muted); transition: color var(--t-fast); }
.glide-down:hover { color: var(--gx-ink); }
.glide-down .ico { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 5px; } }
@media (max-width: 1280px) { .glide-down { display: none; } }

@media (max-width: 900px) {
  .gs-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; }
  .gs-visual { zoom: .78; }
}
@media (max-width: 720px) {
  /* 手机：开屏刚好占满顶栏与底部导航之间；控制条放在文案下方，不再压在底部导航上 */
  .glide { height: auto; min-height: calc(100svh - 58px - var(--tabbar-h) - 10px - env(safe-area-inset-bottom)); max-height: none; display: flex; flex-direction: column; }
  .glide-track { flex: 1 0 auto; height: auto; }
  .glide-slide { height: auto; align-items: stretch; }
  .gs-inner {
    grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: center;
    padding-top: 16px; padding-bottom: 6px;
  }
  .gs-visual { order: -1; width: 460px; max-width: none; zoom: .44; justify-self: center; }
  .gs-num { font-size: 200px; bottom: auto; top: 2%; right: -4%; }
  .gs-kicker { font-size: 11px; }
  .gs-title { font-size: clamp(40px, 12.4vw, 60px); margin-top: 14px; }
  .gs-lead { font-size: 16px; margin-top: 14px; }
  .gs-sub { font-size: 13.5px; }
  .gs-verify { font-size: 13px; padding: 12px 14px; margin-top: 14px; }
  .gs-cta { margin-top: 22px; }
  .gs-cta .btn { flex: 1; padding: 0 16px; }
  .gs-live { margin-top: 16px; }
  .glide-ui { position: relative; bottom: auto; padding: 4px 0 16px; }
  .glide-dots { gap: 6px; }
  .glide-dots button { min-width: 0; width: 34px; padding-bottom: 20px; }
  .glide-dots button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 720px) and (max-height: 640px) { .gs-visual { zoom: .38; } .gs-sub { display: none; } }

/* ---------- 首屏下方：数据 + 三步 ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; padding-top: 40px; }
.tile { border-radius: var(--r-xl); padding: 24px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tile-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.tile-stat .t-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }
.tile-stat .t-ico .ico { width: 20px; height: 20px; }
.tile-stat b { display: block; font: 800 clamp(44px, 4.6vw, 60px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-stat span.lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.tile-stat.hot .t-ico { background: var(--hot-soft); color: var(--hot); }
.tile-stat.hot b { color: var(--hot); }
.tile-lime { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.tile-lime .t-ico { background: rgba(14, 14, 26, .08); color: var(--on-lime); }
.tile-lime span.lbl { color: rgba(14, 14, 26, .7); }
.tile-how { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; }
.tile-how h3 { font: 800 17px/1.3 var(--display); display: flex; align-items: center; gap: 8px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps li { position: relative; padding: 14px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--muted); line-height: 1.5; }
.steps li b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.steps li b i { font: 800 11px/1 var(--mono); font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.trust { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.trust-main { display: flex; gap: 18px; align-items: flex-start; }
.trust-main .shield { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.trust-main .shield .ico { width: 28px; height: 28px; }
.trust-main h3 { font: 800 19px/1.3 var(--display); margin-bottom: 6px; }
.trust-main p { color: var(--ink-2); font-size: 14px; }
.trust .buy-notice { margin: 0; height: 100%; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-how { grid-column: 1 / -1; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { gap: 12px; padding-top: 24px; grid-auto-rows: auto; }
  .tile { padding: 18px; border-radius: var(--r-lg); }
  .steps { grid-template-columns: 1fr; }
  .tile-stat b { font-size: 40px; }
}

/* CTA 收尾横幅 */
.cta-band { margin-top: 56px; border-radius: var(--r-xl); padding: 36px 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--hero-ink);
  background: radial-gradient(60% 120% at 100% 50%, rgba(109, 74, 255, .7), transparent 70%), var(--hero-bg); border: 1px solid var(--hero-line); }
.cta-band h2 { font: 800 clamp(22px, 3vw, 32px)/1.2 var(--display); letter-spacing: -.01em; }
.cta-band p { color: var(--hero-muted); margin-top: 6px; font-size: 14px; }
.cta-band .btn { margin-left: auto; }
@media (max-width: 560px) { .cta-band { padding: 26px 22px; } .cta-band .btn { margin-left: 0; width: 100%; } }

/* ---------- 缺人的团 ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .team-grid { grid-template-columns: 1fr; } .rail { grid-auto-columns: 86%; } }
.team-card { scroll-snap-align: start; padding: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; border-radius: var(--r-lg); }
.team-card .tc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.team-card .tc-title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card .tc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; }
.team-card .tc-meta .ico { width: 13px; height: 13px; }
.team-card .tc-meta .mono { color: var(--ink-2); font-weight: 600; }
.team-card .tc-row { display: flex; align-items: center; gap: 8px; }
.team-card .tc-row .price { font-size: 20px; }
.team-card .tc-row .btn { margin-left: auto; }
.team-card:hover .btn-accent { background: var(--primary-hover); }

/* ---------- 商品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.p-card { padding: 10px; display: flex; flex-direction: column; border-radius: var(--r-lg); }
.p-card .p-media { position: relative; }
.p-card .p-media .chip { position: absolute; top: 12px; }
.p-card .p-size { left: 12px; }
.p-card .p-live { right: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.p-card .body { padding: 16px 10px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card h3 { font: 800 18px/1.35 var(--display); letter-spacing: -.01em; }
.p-card .sub { font-size: 13.5px; color: var(--muted); }
.p-card .foot { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 16px; }
.p-card .p-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.p-card .price { font-size: 30px; line-height: 1; }
.p-card .go { margin-left: auto; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t) var(--ease); }
.p-card:hover .go { background: var(--primary); color: var(--on-primary); transform: translateX(2px); }
.p-card .p-meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.p-card .p-meta .save { margin-left: auto; color: var(--hot); font-weight: 700; }

/* ---------- 商品详情 ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { width: 14px; height: 14px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding-top: 18px; align-items: start; }
.detail-media { position: sticky; top: 88px; display: grid; gap: 12px; }
.detail-media .cover { border-radius: var(--r-xl); aspect-ratio: 1 / 1; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.assure div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.assure .ico { width: 20px; height: 20px; color: var(--primary-ink); margin-bottom: 6px; }
.assure b { color: var(--ink); font-size: 14px; }
.detail-info .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.detail h1 { font: 900 clamp(28px, 3.6vw, 42px)/1.15 var(--display); letter-spacing: -.02em; margin-top: 14px; }
.detail .subtitle { color: var(--muted); margin-top: 6px; }
.price-panel { margin: 22px 0 16px; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line); background: var(--surface); }
.price-panel > div { padding: 18px 20px; }
.price-panel .pp-main { background: var(--hero-bg); color: var(--hero-ink); position: relative; }
.price-panel .pp-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.price-panel .pp-main .pp-label { color: var(--hero-muted); }
.price-panel .pp-main .price { color: var(--lime); font-size: clamp(34px, 4vw, 44px); line-height: 1.1; display: block; margin-top: 4px; }
.price-panel .save-badge { display: inline-flex; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(200, 240, 49, .14); color: var(--lime); }
.price-panel .pp-alt .v { font: 700 24px/1.2 var(--display); margin-top: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price-panel .pp-alt small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.rules div { background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; font-size: 12.5px; color: var(--muted); }
.rules b { display: block; font: 800 22px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.qty-row > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qty-hint { font-size: 12px; line-height: 1.4; color: var(--muted); }
.qty-hint.warn { color: var(--hot); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); overflow: hidden; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-2); transition: background var(--t-fast); }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 52px; height: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: none; font-family: var(--mono); font-weight: 700; font-size: 16px; outline: none; }
.desc { white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); }
.actionbar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px; border-radius: 20px; background: var(--bg-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.actionbar .btn { flex: 1; height: 56px; flex-direction: column; gap: 1px; line-height: 1.15; font-size: 17px; font-family: var(--display); font-weight: 800; }
.actionbar .btn small { font-family: var(--font); font-size: 11.5px; font-weight: 500; opacity: .85; }
.actionbar .stepper { flex: none; }
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .detail-media { position: static; }
  .detail-media .cover { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 22px 22px 0 0; border-width: 1px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); }
  .assure div { padding: 12px 10px; }
  .price-panel { grid-template-columns: 1fr; }
  .price-panel .pp-alt { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; }
  .price-panel .pp-alt .v { font-size: 18px; margin: 0; }
  .price-panel .pp-alt small { margin: 0 0 0 auto; }
}

/* ---------- 团详情 ---------- */
.team-hero { text-align: center; padding: 40px 24px 28px; position: relative; overflow: hidden; border-radius: var(--r-xl); }
.team-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 220px; background: radial-gradient(60% 100% at 50% 0%, var(--primary-soft), transparent 75%); pointer-events: none; }
.team-hero > * { position: relative; }
.team-hero .ring { margin: 0 auto; }
.team-hero h1 { font: 900 clamp(24px, 4vw, 32px)/1.25 var(--display); letter-spacing: -.01em; margin: 20px 0 6px; }
.team-hero h1 .hl { color: var(--hot); }
.team-hero .meta { font-size: 13px; color: var(--muted); display: flex; justify-content: center; gap: 6px; align-items: center; flex-wrap: wrap; }
.team-hero .counts { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.team-hero .fine { font-size: 12px; color: var(--muted); margin-top: 8px; }
.countdown { display: inline-flex; gap: 6px; margin-top: 18px; align-items: center; }
.countdown span { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 8px 0; font: 800 22px/1 var(--mono); min-width: 52px; font-variant-numeric: tabular-nums; }
.countdown i { font-style: normal; font-weight: 800; color: var(--muted); }
.countdown-label { display: block; font-size: 12px; color: var(--muted); margin-top: 18px; letter-spacing: .1em; }
.countdown-label + .countdown { margin-top: 8px; }
.seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; margin: 28px 0 8px; }
.seat { width: 66px; text-align: center; font-size: 12px; color: var(--ink-2); }
.seat .av { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 18px; display: grid; place-items: center; font: 800 19px var(--display); position: relative; }
.seat.filled .av { background: hsl(var(--h) 80% var(--cv-a)); color: hsl(var(--h) 60% var(--glyph-l)); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.seat.empty .av { border: 2px dashed var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: 15px; background: var(--surface-2); }
.seat.empty { color: var(--muted); padding: 0; border: 0; border-radius: 0; background: none; } /* 别吃到通用 .empty 卡片样式 */
.seat.more { opacity: .72; }
.seat .seat-x { display: inline-block; margin-left: 3px; padding: 1px 5px; border-radius: 6px; background: var(--ink); color: var(--surface); font: 800 10px/1.4 var(--mono); vertical-align: 1px; }
.seat .crown { position: absolute; top: -9px; right: -9px; background: var(--lime); color: var(--on-lime); font: 800 10px/1 var(--font); padding: 4px 6px; border-radius: 7px; box-shadow: var(--shadow-sm); }
.stamp { position: absolute; right: 20px; top: 20px; transform: rotate(-12deg); border: 3px solid currentColor; color: var(--ok); border-radius: 12px; padding: 7px 12px; font: 900 20px/1 var(--display); letter-spacing: .16em; opacity: .9; z-index: 2; }
.stamp.fail { color: var(--muted); }
.share { display: flex; gap: 8px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.linkbox { font: 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 0 14px; border-radius: 14px; height: 46px; display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; overflow: hidden; color: var(--ink-2); }
.linkbox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox .ico { width: 15px; height: 15px; color: var(--muted); }
.prod-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 12px; align-items: center; margin-top: 14px; border-radius: var(--r-lg); }
.prod-row .o-title { font-weight: 700; }
.prod-row .o-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.prod-row .ico { color: var(--muted); }

/* ---------- 登录 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 40px auto; align-items: stretch; }
.auth-side { border-radius: var(--r-xl); padding: 40px; color: var(--hero-ink); display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden;
  /* 亮黑：钢琴漆质感，顶部高光 + 斜向反光 */
  background: radial-gradient(130% 70% at 50% -18%, rgba(255, 255, 255, .2), transparent 58%), linear-gradient(165deg, #2b2b30 0%, #0c0c0e 46%, #000 100%);
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 44px -22px rgba(0, 0, 0, .6); }
.auth-side::before { content: ""; position: absolute; inset: -40% auto auto -30%; width: 70%; height: 180%; transform: rotate(28deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07) 45%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .07) 55%, transparent); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font: 900 clamp(30px, 3.4vw, 42px)/1.1 var(--display); letter-spacing: -.02em; }
.auth-side h2 mark { background: var(--lime); color: var(--on-lime); padding: 0 .12em; border-radius: .16em; }
.auth-side p { color: var(--hero-muted); }
.auth-side ul { list-style: none; display: grid; gap: 14px; margin-top: auto; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.auth-side li .ico { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: var(--lime); }
.auth-side li b { display: block; }
.auth-side li span { color: var(--hero-muted); font-size: 13px; }
.auth { padding: 36px; margin: 0; width: 100%; border-radius: var(--r-xl); }
.auth h1 { font: 900 30px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; margin: 22px 0; }
.tabs button { flex: 1; height: 40px; border-radius: 11px; font-weight: 650; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; margin: 16px auto; max-width: 480px; }
  .auth-side { padding: 24px; gap: 12px; }
  .auth-side ul { display: none; }
  .auth { padding: 24px 20px; }
}

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); outline: none; font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field input::placeholder { color: var(--muted); opacity: .75; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.code-row .btn { flex: none; height: 48px; min-width: 116px; border-radius: 13px; }
.code-row .btn:disabled { opacity: .6; cursor: not-allowed; }
.err { color: var(--hot); font-size: 13px; min-height: 20px; font-weight: 600; }
.agree { display: flex; gap: 10px; align-items: center; font-size: 13.5px; margin-top: 16px; cursor: pointer; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.agree input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }

/* ---------- 我的 ---------- */
.profile { margin-top: 24px; padding: 0; overflow: hidden; border-radius: var(--r-xl); }
.profile .banner { height: 88px; background: radial-gradient(60% 140% at 100% 0%, rgba(109, 74, 255, .75), transparent 70%), radial-gradient(40% 120% at 0% 100%, rgba(200, 240, 49, .25), transparent 70%), var(--hero-bg); }
.profile .p-body { display: flex; align-items: flex-start; gap: 16px; padding: 0 22px 20px; flex-wrap: wrap; }
.profile .av { width: 76px; height: 76px; margin-top: -38px; border-radius: 24px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font: 800 28px var(--display); border: 4px solid var(--surface); flex: none; }
.profile .p-info { min-width: 0; flex: 1; padding-top: 12px; }
.profile h2 { font: 800 21px/1.3 var(--display); }
.profile .mail { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.profile .mail .ico { color: var(--primary-ink); }
.profile .p-actions { margin-left: auto; padding-top: 14px; }
.order { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px; align-items: center; border-radius: var(--r-lg); }
.order + .order { margin-top: 10px; }
.order .o-title { font-weight: 700; font-size: 15px; line-height: 1.35; }
.order .o-meta { font-size: 12.5px; color: var(--muted); }
.order .o-side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.order .o-side .price { font-size: 19px; }
@media (max-width: 520px) {
  .order { grid-template-columns: 52px minmax(0, 1fr); }
  .order .o-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
  .order .o-side .price { margin-right: auto; }
}

/* ---------- 收银台 ---------- */
.cashier { max-width: 460px; margin: 40px auto; padding: 0; overflow: hidden; border-radius: var(--r-xl); }
.cashier .top { padding: 28px 24px; text-align: center; color: var(--hero-ink); background: radial-gradient(70% 120% at 50% 0%, rgba(109, 74, 255, .6), transparent 70%), var(--hero-bg); }
.cashier .top .lbl { font-size: 13px; color: var(--hero-muted); }
.cashier .top .v { font: 900 46px/1.1 var(--display); margin-top: 6px; color: var(--lime); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cashier .mid, .kv { padding: 20px 24px; display: grid; gap: 12px; font-size: 14px; }
.cashier .mid > div, .kv > div { display: flex; justify-content: space-between; gap: 12px; }
.cashier .mid > div span:last-child, .kv > div span:last-child { text-align: right; min-width: 0; }
.cashier .bot { padding: 0 24px 24px; display: grid; gap: 10px; }
.notice { background: var(--hot-soft); color: var(--hot); font-size: 12.5px; padding: 12px 14px; border-radius: 12px; }

/* ---------- 结果页 ---------- */
.result-ico { width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; margin: 0 auto; background: var(--ok-soft); color: var(--ok); }
.result-ico .ico { width: 44px; height: 44px; stroke-width: 2.4; }
.result-ico.warn { background: var(--hot-soft); color: var(--hot); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; background: var(--scrim); display: none; align-items: flex-start; justify-content: center; z-index: 60; overflow-y: auto; padding: 48px 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.show { display: flex; animation: fade var(--t) var(--ease); }
.modal .card { width: 100%; max-width: 560px; padding: 26px; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: rise var(--t) var(--ease); }
.modal h2 { font: 800 21px/1.3 var(--display); }
.modal .kv { padding: 16px 0 4px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
/* 电脑端扫码付款（二维码始终白底黑码，深色模式下也能扫） */
.qr-box { width: 232px; margin: 18px auto 14px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qr-meta .muted { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.qr-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 560px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal .card { border-radius: 26px 26px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%) translateY(-10px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease); z-index: 100; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 分段切换（广场筛选 / 我的 / 后台） ---------- */
.admin-tabs { display: flex; gap: 6px; margin: 24px 0 18px; flex-wrap: wrap; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 14px; color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.admin-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.admin-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.team-filter { margin: -6px 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.team-filter::-webkit-scrollbar { display: none; }
.team-filter button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; }
.tf-n { font: 600 12px/1 var(--mono, ui-monospace, monospace); opacity: .55; }
.admin-tabs button .n { font: 700 11px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.admin-tabs button.on .n { background: rgba(255, 255, 255, .16); color: inherit; }
:root[data-theme="dark"] .admin-tabs button.on .n { background: rgba(0, 0, 0, .12); }

/* ---------- 后台 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; padding-top: 32px; flex-wrap: wrap; }
.page-head h1 { font: 900 clamp(26px, 3vw, 34px)/1.2 var(--display); letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kpis .card { padding: 18px 20px; border-radius: var(--r-lg); }
.kpis b { display: block; font: 800 30px/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpis span { font-size: 12.5px; color: var(--muted); }
.kpis .card.feature { background: var(--hero-bg); color: var(--hero-ink); border-color: var(--hero-line); }
.kpis .card.feature b { color: var(--lime) !important; }
.kpis .card.feature span { color: var(--hero-muted); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 650; color: var(--muted); font-size: 12px; background: var(--surface-2); letter-spacing: .02em; position: sticky; top: 0; }
tbody tr:hover td, table tr:hover td { background: var(--surface-2); }
td input[type="checkbox"], th input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.info-card { padding: 18px 20px; margin-bottom: 14px; font-size: 14px; line-height: 1.75; border-radius: var(--r-lg); display: flex; gap: 14px; align-items: flex-start; }
.info-card > .ico { width: 22px; height: 22px; color: var(--primary-ink); margin-top: 3px; }

/* ---------- 邮箱提示 / 购买须知 / 安全声明 ---------- */
.mail-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); line-height: 1.55; }
.mail-tip .ico { margin-top: 1px; }
.mail-tip b { font-weight: 800; }
.buy-notice { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; margin: 18px 0; font-size: 13.5px; background: var(--surface); text-align: left; }
.buy-notice .bn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.buy-notice .bn-head strong { font: 800 15px/1 var(--display); letter-spacing: .04em; }
.buy-notice .bn-head .ico { color: var(--primary-ink); }
.buy-notice ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.buy-notice li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.buy-notice li .ico { color: var(--primary-ink); margin-top: 2px; width: 15px; height: 15px; }
.buy-notice b { color: var(--hot); font-weight: 800; }
.buy-notice .verify { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; line-height: 1.6; }
.buy-notice .verify .ico { width: 18px; height: 18px; margin-top: 1px; }
.buy-notice.compact { margin: 14px 0 0; padding: 14px 16px; }
.buy-notice.compact ul { grid-template-columns: 1fr; gap: 6px; }
@media (max-width: 520px) { .buy-notice ul { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 28px; font-size: 13px; color: var(--muted); }
.security-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; line-height: 1.6; }
.security-note .ico { width: 22px; height: 22px; margin-top: 1px; }
.foot-grid { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; margin-top: 28px; flex-wrap: wrap; }
.foot-brand .brand { font-size: 19px; }
.foot-brand p { margin-top: 10px; max-width: 30em; }
.foot-brand p b { color: var(--ink); }
.foot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); font-weight: 600; }
.foot-links a:hover { color: var(--primary-ink); }
.foot-line { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; gap: 8px 16px; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- 动效 ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: var(--hot); display: inline-block; flex: none; animation: pulse 1.6s infinite; }
.live-dot.lime { color: var(--lime); }
.live-dot.ok { color: var(--ok); }
@keyframes in-up { from { opacity: 0; transform: translateY(10px); } }
.reveal > * { animation: in-up .5s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .05s; }
.reveal > *:nth-child(3) { animation-delay: .1s; }
.reveal > *:nth-child(4) { animation-delay: .15s; }
.reveal > *:nth-child(5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* hidden 属性优先于组件自身的 display */
[hidden] { display: none !important; }
