/* =====================================================================
   电竞俱乐部 · 客户端 v2 「Tactical Luxury」
   烟熏磨砂玻璃 + 琥珀点缀 + 战术 HUD 细节；主题由 html[data-theme] 控制
   ===================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --amber: #F5A524;
  --amber-2: #E8890C;
  --red: #E5484D;
  --green: #30A46C;
  --blue: #3E8BFF;
  --purple: #8E6CF0;
  --cyan: #12A5B5;
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --t-theme: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-2: #141518;
  --glass: rgba(30, 31, 35, .52);
  --glass-2: rgba(38, 39, 44, .62);
  --glass-strong: rgba(22, 23, 26, .82);
  --glass-solid: #1a1b1f;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .14);
  --hi: rgba(255, 255, 255, .07);
  --text: #F3EFE8;
  --text-2: #C9C4BA;
  --sub: #8E897F;
  --accent-ink: #F5A524;
  --chip: rgba(255, 255, 255, .06);
  --input: rgba(255, 255, 255, .05);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.35);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -20px rgba(0,0,0,.85), 0 6px 16px rgba(0,0,0,.4);
  --glow: 0 0 0 1px rgba(245,165,36,.35), 0 8px 28px -6px rgba(245,165,36,.45);
  --g1: rgba(245, 165, 36, .16);
  --g2: rgba(229, 72, 77, .08);
  --grid: rgba(255, 255, 255, .025);
  --img-shade: linear-gradient(180deg, rgba(11,12,14,0) 30%, rgba(11,12,14,.85) 100%);
  --on-accent: #1A1204;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ECE6DC;
  --bg-2: #F4EFE7;
  --glass: rgba(255, 252, 246, .56);
  --glass-2: rgba(255, 252, 246, .72);
  --glass-strong: rgba(248, 244, 237, .86);
  --glass-solid: #F7F3EC;
  --line: rgba(70, 50, 20, .10);
  --line-2: rgba(70, 50, 20, .16);
  --hi: rgba(255, 255, 255, .8);
  --text: #1C1A16;
  --text-2: #4A453C;
  --sub: #857D70;
  --accent-ink: #A86300;
  --chip: rgba(255, 255, 255, .55);
  --input: rgba(255, 255, 255, .6);
  --shadow: 0 1px 0 rgba(255,255,255,.85) inset, 0 12px 30px -14px rgba(90,60,20,.28), 0 2px 6px rgba(90,60,20,.08);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.9) inset, 0 26px 60px -22px rgba(90,60,20,.38), 0 6px 16px rgba(90,60,20,.10);
  --glow: 0 0 0 1px rgba(232,137,12,.35), 0 8px 24px -8px rgba(232,137,12,.45);
  --g1: rgba(245, 165, 36, .22);
  --g2: rgba(255, 255, 255, .7);
  --grid: rgba(70, 50, 20, .035);
  --img-shade: linear-gradient(180deg, rgba(236,230,220,0) 35%, rgba(236,230,220,.9) 100%);
  --on-accent: #1A1204;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: var(--t-theme); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; color: inherit; }
[v-cloak] { display: none; }
::selection { background: rgba(245,165,36,.35); }
.mono { font-family: var(--mono); letter-spacing: .06em; }

/* 背景氛围层：琥珀辉光 + 细网格（固定，不随滚动重绘） */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx .glow { position: absolute; border-radius: 50%; filter: blur(60px); transition: background .5s; }
.bg-fx .g1 { width: 120vw; height: 70vw; max-width: 760px; max-height: 480px; left: 50%; top: -18vw; transform: translateX(-50%); background: radial-gradient(closest-side, var(--g1), transparent); }
.bg-fx .g2 { width: 90vw; height: 90vw; max-width: 600px; max-height: 600px; right: -30vw; bottom: -20vw; background: radial-gradient(closest-side, var(--g2), transparent); }
.bg-fx .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; }
.page { padding-bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); min-height: 100vh; }
.page.no-tab { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- 玻璃 ---------- */
.glass, .card, .navbar, .tabbar, .footer-bar, .modal, .sheet, .order-card, .booster-card, .goods, .tabs-wrap, .field, .toast {
  -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .card, .order-card, .booster-card, .goods, .field { background: var(--glass-solid) !important; }
  .navbar, .tabbar, .footer-bar, .modal, .sheet, .tabs-wrap, .toast { background: var(--glass-solid) !important; }
}

.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 12px 16px; padding: 16px; box-shadow: var(--shadow); transition: var(--t-theme); }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; letter-spacing: .01em; }
.card-title .more { font-size: 12px; color: var(--sub); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin: 26px 20px 10px; }
.sec-hd .t { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.sec-hd .k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--accent-ink); text-transform: uppercase; margin-bottom: 2px; }
.sec-hd .more { font-size: 12px; color: var(--sub); cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding-bottom: 3px; }

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.flex1 { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.sub { color: var(--sub); font-size: 12px; }
.t2 { color: var(--text-2); }
.b { font-weight: 700; }
.price { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small, .price .cy { font-size: .62em; color: var(--accent-ink); margin-right: 1px; font-weight: 700; }
.price.accent { color: var(--accent-ink); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; }
.px16 { padding: 0 16px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.ic { display: inline-flex; flex-shrink: 0; }
.ic svg { width: 1em; height: 1em; display: block; }
.empty { text-align: center; color: var(--sub); padding: 56px 24px; }
.empty .em-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px;
  color: var(--accent-ink); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.foot-note { text-align: center; color: var(--sub); font-size: 11px; padding: 18px 0 8px; letter-spacing: .08em; }
.foot-note .mono { font-size: 9px; opacity: .7; display: block; margin-top: 4px; letter-spacing: .25em; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--chip); color: var(--text-2); border: 1px solid var(--line); letter-spacing: .02em; }
.tag.orange, .tag.amber { color: var(--accent-ink); background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.25); }
.tag.blue { color: var(--blue); background: rgba(62,139,255,.12); border-color: rgba(62,139,255,.22); }
.tag.cyan { color: var(--cyan); background: rgba(18,165,181,.12); border-color: rgba(18,165,181,.22); }
.tag.purple { color: var(--purple); background: rgba(142,108,240,.13); border-color: rgba(142,108,240,.24); }
.tag.green { color: var(--green); background: rgba(48,164,108,.12); border-color: rgba(48,164,108,.24); }
.tag.red { color: var(--red); background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.26); }
.tag.gray { color: var(--sub); }
.tag.王牌 { color: var(--on-accent); background: linear-gradient(135deg, #FFD27A, var(--amber)); border-color: transparent; }
.tag.热门 { color: var(--red); background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.26); }
.tag.爆单 { color: #F0703A; background: rgba(240,112,58,.12); border-color: rgba(240,112,58,.24); }
.tag.高分 { color: var(--blue); background: rgba(62,139,255,.12); border-color: rgba(62,139,255,.22); }
.tag.精选 { color: var(--purple); background: rgba(142,108,240,.13); border-color: rgba(142,108,240,.24); }
.tag.在线 { color: var(--green); background: rgba(48,164,108,.12); border-color: rgba(48,164,108,.24); }
.badge-hot { position: absolute; z-index: 3; top: 10px; right: 10px; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  color: #fff; background: linear-gradient(135deg, #F2555A, #C9252C); box-shadow: 0 4px 14px -4px rgba(229,72,77,.7); display: inline-flex; align-items: center; font-family: var(--mono); }
.badge-hot.top { background: linear-gradient(135deg, #FFC861, var(--amber-2)); color: var(--on-accent); box-shadow: 0 4px 14px -4px rgba(245,165,36,.7); }

/* ---------- 按钮（含涟漪） ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .18s var(--ease), box-shadow .3s var(--ease), background-color .45s, color .45s, border-color .45s; box-shadow: var(--shadow); }
.btn:active { transform: scale(.965); }
.btn.primary { background: linear-gradient(135deg, #FFC24D 0%, var(--amber) 45%, var(--amber-2) 100%); color: var(--on-accent); border: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 24px -10px rgba(245,165,36,.9); }
html[data-theme="dark"] .btn.primary { box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 28px -8px rgba(245,165,36,.75), 0 0 0 1px rgba(245,165,36,.35); }
.btn.plain { color: var(--accent-ink); border-color: rgba(245,165,36,.4); }
.btn.danger { color: var(--red); border-color: rgba(229,72,77,.35); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.btn.block { display: flex; width: 100%; height: 50px; border-radius: 16px; font-size: 16px; letter-spacing: .04em; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.rp-wave { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .45; background: currentColor; animation: rp .6s var(--ease) forwards; }
@keyframes rp { to { transform: scale(1); opacity: 0; } }
.press { transition: transform .2s var(--ease); }
.press:active { transform: scale(.97); }

/* ---------- 主题切换 ---------- */
.theme-sw { position: relative; display: inline-flex; align-items: center; width: 62px; height: 32px; border-radius: 16px; padding: 3px; cursor: pointer; flex-shrink: 0;
  background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: var(--t-theme); }
.theme-sw .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFD27A, var(--amber)); color: var(--on-accent); font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .45s var(--spring); }
html[data-theme="dark"] .theme-sw .knob { transform: translateX(30px); background: linear-gradient(135deg, #3A3B42, #23242A); color: var(--amber); box-shadow: 0 0 0 1px var(--line-2), 0 0 14px rgba(245,165,36,.25); }
.theme-sw .lb { position: absolute; font-size: 13px; color: var(--sub); transition: opacity .3s; }
.theme-sw .lb.sun { right: 9px; } .theme-sw .lb.moon { left: 9px; }
html[data-theme="light"] .theme-sw .lb.sun, html[data-theme="dark"] .theme-sw .lb.moon { opacity: 0; }
.theme-sw.mini { width: 54px; height: 28px; } .theme-sw.mini .knob { width: 20px; height: 20px; font-size: 12px; }
html[data-theme="dark"] .theme-sw.mini .knob { transform: translateX(26px); }
.theme-sw.mini .lb { font-size: 12px; } .theme-sw.mini .lb.sun { right: 7px; } .theme-sw.mini .lb.moon { left: 7px; }

/* ---------- 顶栏 ---------- */
.navbar { position: sticky; top: 0; z-index: 20; height: 54px; display: flex; align-items: center; justify-content: center; padding: 0 64px;
  background: var(--glass-strong); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; letter-spacing: .02em; transition: var(--t-theme); }
.navbar .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar .back { position: absolute; left: 10px; top: 9px; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer;
  background: var(--chip); border: 1px solid var(--line); transition: transform .2s var(--ease); }
.navbar .back:active { transform: scale(.9); }
.navbar .right { position: absolute; right: 12px; top: 0; height: 54px; display: flex; align-items: center; }
.navbar.clear { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; background: transparent; border-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .3s, border-color .3s; }
.navbar.clear .ttl { opacity: 0; transition: opacity .3s; }
.navbar.clear .back { background: rgba(10,10,12,.38); color: #fff; border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.navbar.clear.solid { background: var(--glass-strong); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%); }
.navbar.clear.solid .ttl { opacity: 1; }
.navbar.clear.solid .back { background: var(--chip); color: var(--text); border-color: var(--line); }

/* ---------- 底部 tabbar（浮动玻璃 + 滑动指示器） ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 536px; z-index: 30;
  height: var(--tabbar-h); display: flex; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); padding: 0 4px; transition: var(--t-theme); }
.tabbar .ind { position: absolute; top: 7px; bottom: 7px; left: 4px; width: calc((100% - 8px) / 5); padding: 0 6px; transition: transform .5s var(--spring); pointer-events: none; }
.tabbar .ind::before { content: ''; position: absolute; inset: 0 6px; border-radius: 16px; background: linear-gradient(180deg, rgba(245,165,36,.20), rgba(245,165,36,.08)); border: 1px solid rgba(245,165,36,.28); }
.tabbar .ind::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tabbar a { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; color: var(--sub); gap: 3px; letter-spacing: .04em; transition: color .3s; }
.tabbar a .ic { font-size: 22px; transition: transform .35s var(--spring); }
.tabbar a.on { color: var(--accent-ink); font-weight: 700; }
.tabbar a.on .ic { transform: translateY(-1px) scale(1.06); }
.tabbar a:active .ic { transform: scale(.88); }

/* ---------- 首页 ---------- */
.home-top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.home-top.solid { background: var(--glass-strong); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(165%); backdrop-filter: blur(20px) saturate(165%); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--sub); text-transform: uppercase; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; margin: 4px 16px 0; border-radius: 16px; padding: 0 6px 0 14px; color: var(--sub);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); transition: var(--t-theme); }
.search .ic { font-size: 18px; }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.search input::placeholder { color: var(--sub); }
.search .go { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 13px; }

/* Hero 轮播：战术取景框 + ken-burns + 视差 */
.hero { position: relative; margin: 16px 16px 0; padding: 9px; }
.hero .brk { position: absolute; width: 18px; height: 18px; border-color: var(--accent-ink); border-style: solid; opacity: .85; z-index: 4; pointer-events: none; }
.hero .brk.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; } .hero .brk.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.hero .brk.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; } .hero .brk.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.hero-frame { position: relative; aspect-ratio: 16 / 10.2; border-radius: 20px; overflow: hidden; background: #15161a; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); isolation: isolate; touch-action: pan-y; cursor: pointer; }
html[data-theme="dark"] .hero-frame { box-shadow: 0 0 0 1px rgba(245,165,36,.18), 0 18px 50px -14px rgba(245,165,36,.35), 0 24px 60px -20px rgba(0,0,0,.9); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero-slide.on { opacity: 1; z-index: 1; }
.hero-par { position: absolute; inset: -8% 0; will-change: transform; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 70% 40%; }
.hero-slide.on img { animation: kenburns 7.5s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(1.5%, 0, 0); } to { transform: scale(1.0) translate3d(0, 0, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,10,.78) 0%, rgba(8,8,10,.35) 48%, rgba(8,8,10,0) 75%), linear-gradient(180deg, rgba(8,8,10,0) 55%, rgba(8,8,10,.55) 100%); }
.hero-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 1px, transparent 1px 3px); }
.hero-copy { position: absolute; z-index: 3; left: 18px; bottom: 18px; right: 40%; color: #fff; }
.hero-copy .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: #FFC861; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.hero-copy .k::before { content: ''; width: 14px; height: 1px; background: #FFC861; }
.hero-copy .h { font-size: 23px; font-weight: 800; line-height: 1.18; margin-top: 6px; letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero-copy .s { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 6px; line-height: 1.45; }
.hero-copy .cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
  color: var(--on-accent); background: linear-gradient(135deg, #FFC861, var(--amber)); box-shadow: 0 6px 18px -6px rgba(245,165,36,.8); }
.hero-copy.swap { animation: copyIn .7s var(--ease) both; }
@keyframes copyIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.hud { position: absolute; z-index: 3; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: rgba(255,255,255,.62); pointer-events: none; }
.hud.tl { top: 12px; left: 14px; } .hud.tr { top: 12px; right: 14px; text-align: right; } .hud.br { bottom: 12px; right: 14px; }
.hud .rec { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 5px; vertical-align: 0; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dots i { width: 14px; height: 3px; border-radius: 2px; background: var(--line-2); cursor: pointer; position: relative; overflow: hidden; transition: width .4s var(--ease); }
.hero-dots i.on { width: 28px; }
.hero-dots i.on::after { content: ''; position: absolute; inset: 0; background: var(--amber); transform-origin: left; animation: dotfill var(--hero-ms, 5000ms) linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ticker { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; height: 40px; padding: 0 12px; border-radius: 14px; }
.ticker .ic { color: var(--accent-ink); font-size: 16px; }
.ticker .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--accent-ink); padding-right: 10px; border-right: 1px solid var(--line-2); flex-shrink: 0; }
.ticker .track { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track span { position: absolute; left: 0; animation: marquee 22s linear infinite; font-size: 12.5px; color: var(--text-2); padding-left: 100%; will-change: transform; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-100%,0,0); } }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 16px 0; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); cursor: pointer; padding: 14px 0 12px; border-radius: 18px; }
.quick .qi { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent-ink);
  background: linear-gradient(180deg, rgba(245,165,36,.16), rgba(245,165,36,.04)); border: 1px solid rgba(245,165,36,.22); }

.top-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.top-list::-webkit-scrollbar { display: none; }
.top-item { scroll-snap-align: start; width: 108px; flex-shrink: 0; border-radius: 18px; padding: 14px 8px 12px; text-align: center; position: relative; cursor: pointer; }
.top-item .rk { position: absolute; left: 10px; top: 9px; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--sub); letter-spacing: .06em; }
.top-item .rk.r1, .top-item .rk.r2, .top-item .rk.r3 { color: var(--accent-ink); }
.top-item .av-wrap { position: relative; width: 54px; margin: 6px auto 8px; }
.top-item .avatar { width: 54px; height: 54px; }
.top-item.r1 .avatar { box-shadow: 0 0 0 2px var(--amber), 0 0 18px rgba(245,165,36,.45); }
.top-item .nm { font-weight: 700; font-size: 13px; }
.top-item .tags { display: flex; justify-content: center; gap: 3px; margin-top: 6px; height: 20px; overflow: hidden; flex-wrap: wrap; }
.dot-online { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); box-shadow: 0 0 8px rgba(48,164,108,.8); }

.hot-rank .hr { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.hot-rank .hr:last-child { border-bottom: none; padding-bottom: 2px; }
.hot-rank .hr:first-child { padding-top: 2px; }
.hot-rank .no { width: 22px; text-align: center; font-family: var(--mono); font-weight: 800; font-size: 15px; color: var(--sub); }
.hot-rank .no.n1, .hot-rank .no.n2, .hot-rank .no.n3 { color: var(--accent-ink); }
.hot-rank .th { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--bg-2); }

/* 分类 chips：横滑 + 滑动下划线 */
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 13px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-2); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); transition: color .3s, background-color .45s, border-color .3s, transform .2s var(--ease);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip .ic { font-size: 16px; }
.chip::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--red); transform: scaleX(0); transition: transform .4s var(--spring); }
.chip.on { color: var(--text); border-color: var(--line-2); background: var(--glass-2); }
.chip.on .ic { color: var(--accent-ink); }
.chip.on::after { transform: scaleX(1); }
.chip:active { transform: scale(.95); }

/* 商品卡：玻璃 + 按压缩放 + 微倾斜 + 聚光 */
.goods-list { padding: 2px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.goods { position: relative; display: flex; gap: 14px; padding: 12px; border-radius: 22px; cursor: pointer; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: transform .35s var(--ease), box-shadow .45s, background-color .45s, border-color .45s; overflow: hidden; }
.goods::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--spot, 0); transition: opacity .35s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(245,165,36,.16), transparent 60%); }
.goods > * { position: relative; z-index: 1; }
.goods .cv { position: relative; width: 108px; height: 108px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--bg-2); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.goods .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.goods:hover .cv img { transform: scale(1.05); }
.goods .cv .badge-hot { top: 6px; left: 6px; right: auto; height: 18px; padding: 0 6px; font-size: 9px; }
.goods .info { display: flex; flex-direction: column; padding: 2px 0; }
.goods .code { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--accent-ink); text-transform: uppercase; }
.goods .nm { font-size: 15.5px; font-weight: 800; margin-top: 3px; line-height: 1.3; }
.goods .desc { color: var(--sub); font-size: 12px; margin-top: 4px; line-height: 1.45; }
.goods .bt { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.goods .bt .price { font-size: 20px; line-height: 1; }
.goods .orig { color: var(--sub); text-decoration: line-through; font-size: 11px; margin-left: 5px; font-weight: 500; }
.goods .sold { font-size: 10.5px; color: var(--sub); margin-top: 5px; font-family: var(--mono); letter-spacing: .04em; }
.goods .go-btn { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
  color: var(--on-accent); background: linear-gradient(135deg, #FFC861, var(--amber)); box-shadow: 0 6px 16px -6px rgba(245,165,36,.8); }

/* ---------- 分类页 ---------- */
.cat-page { display: flex; gap: 12px; padding: 12px 16px 0; align-items: flex-start; }
.cat-side { width: 82px; flex-shrink: 0; position: sticky; top: 66px; border-radius: 20px; padding: 6px; max-height: calc(100vh - 66px - var(--tabbar-h) - 40px); overflow-y: auto; scrollbar-width: none; }
.cat-side::-webkit-scrollbar { display: none; }
.cat-side a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; text-align: center; font-size: 11.5px; color: var(--sub); position: relative; cursor: pointer; border-radius: 14px; transition: color .3s, background-color .3s; }
.cat-side a .ic { font-size: 21px; }
.cat-side a.on { color: var(--text); font-weight: 700; background: linear-gradient(180deg, rgba(245,165,36,.18), rgba(245,165,36,.06)); box-shadow: inset 0 0 0 1px rgba(245,165,36,.28); }
.cat-side a.on .ic { color: var(--accent-ink); }
.cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-main .goods { padding: 10px; gap: 11px; border-radius: 18px; }
.cat-main .goods .cv { width: 84px; height: 84px; border-radius: 13px; }
.cat-main .goods .nm { font-size: 14px; }
.cat-main .goods .bt .price { font-size: 17px; }
.cat-main .goods .go-btn { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
.kw-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 12px; font-size: 12px; }

/* ---------- 选项卡（订单 / 打手） ---------- */
.tabs-wrap { position: sticky; top: 54px; z-index: 15; background: var(--glass-strong); border-bottom: 1px solid var(--line); transition: var(--t-theme); }
.tabs { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; padding: 0 12px; height: 46px; line-height: 46px; text-align: center; font-size: 14px; color: var(--sub); position: relative; cursor: pointer; transition: color .3s; }
.tabs a.on { color: var(--text); font-weight: 700; }
.tabs .ink { position: absolute; bottom: 6px; height: 3px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px rgba(245,165,36,.6); transition: transform .45s var(--spring), width .45s var(--spring); left: 0; }

.booster-card { position: relative; display: flex; gap: 12px; align-items: center; border-radius: 20px; margin: 12px 16px; padding: 14px; cursor: pointer; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), var(--t-theme); }
.booster-card:active { transform: scale(.98); }
.booster-card .av { position: relative; }
.booster-card .av .dot-online { right: 1px; bottom: 3px; }

/* ---------- 头像 ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.avatar.lg { width: 62px; height: 62px; }
.avatar.xl { width: 72px; height: 72px; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(245,165,36,.75); }

/* ---------- 我的 ---------- */
.me-hero { position: relative; margin: 8px 16px 0; padding: 20px 18px; border-radius: 24px; overflow: hidden; cursor: pointer; }
.me-hero::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,165,36,.22), transparent); pointer-events: none; }
.me-hero .nm { font-size: 20px; font-weight: 800; }
.me-hero .id { font-family: var(--mono); font-size: 11px; color: var(--sub); letter-spacing: .1em; margin-top: 3px; }
.wallet { position: relative; margin: 12px 16px 0; padding: 18px; border-radius: 24px; overflow: hidden; color: #F6EBDA;
  background: radial-gradient(120% 140% at 100% 0%, rgba(245,165,36,.42) 0%, rgba(245,165,36,0) 55%), linear-gradient(135deg, #2A2620 0%, #17161A 60%, #0F0F12 100%);
  border: 1px solid rgba(245,165,36,.28); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.08) inset; }
.wallet .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: #FFC861; }
.wallet .num { font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.wallet .num small { font-size: 15px; color: #FFC861; margin-right: 3px; }
.wallet .acts { display: flex; gap: 8px; margin-top: 14px; }
.wallet .btn { height: 34px; border-radius: 11px; font-size: 13px; }
.wallet .btn:not(.primary) { background: rgba(255,255,255,.08); color: #F6EBDA; border-color: rgba(255,255,255,.16); box-shadow: none; }
.wallet .grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 18px 18px; }
.wallet .chipmark { position: absolute; right: 18px; top: 18px; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #FFD98C, #C98A1A); opacity: .9; }
.order-entry { display: grid; grid-template-columns: repeat(5, 1fr); }
.order-entry a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); position: relative; cursor: pointer; padding: 4px 0; }
.order-entry .oi { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent-ink); background: var(--chip); border: 1px solid var(--line); }
.order-entry .badge { position: absolute; top: -2px; right: calc(50% - 26px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; line-height: 17px; text-align: center; padding: 0 4px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
.menu a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: opacity .2s; }
.menu a:active { opacity: .6; }
.menu a:last-child { border-bottom: none; padding-bottom: 4px; }
.menu a:first-child { padding-top: 4px; }
.menu a .mi { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--accent-ink); background: var(--chip); border: 1px solid var(--line); flex-shrink: 0; }
.menu a .arrow { margin-left: auto; color: var(--sub); font-size: 16px; }

/* ---------- 商品详情 ---------- */
.detail-hero { position: relative; aspect-ratio: 1 / .92; overflow: hidden; }
.detail-hero img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.detail-hero .shade { position: absolute; inset: 0; background: var(--img-shade); }
.detail-hero .brk { position: absolute; width: 20px; height: 20px; border-color: rgba(255,200,97,.9); border-style: solid; }
.detail-hero .brk.tl { top: 64px; left: 18px; border-width: 1.5px 0 0 1.5px; } .detail-hero .brk.tr { top: 64px; right: 18px; border-width: 1.5px 1.5px 0 0; }
.detail-hero .hud { color: rgba(255,255,255,.75); }
.detail-hero .hud.tl { top: 70px; left: 46px; } .detail-hero .hud.tr { top: 70px; right: 46px; }
.detail-main { margin-top: -88px; position: relative; z-index: 2; }
.detail-main .code { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--accent-ink); text-transform: uppercase; }
.detail-main .ttl { font-size: 22px; font-weight: 800; line-height: 1.25; margin-top: 6px; letter-spacing: .01em; }
.detail-main .stt { color: var(--text-2); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-row .price { font-size: 32px; line-height: 1; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.specs > div { padding: 10px 8px; border-radius: 13px; background: var(--chip); border: 1px solid var(--line); text-align: center; }
.specs .ic { font-size: 17px; color: var(--accent-ink); margin: 0 auto 4px; display: flex; justify-content: center; }
.specs .t { font-size: 12px; font-weight: 700; }
.specs .s { font-size: 10px; color: var(--sub); }
.rules { font-size: 13.5px; color: var(--text-2); line-height: 1.9; }
.link-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.link-row .li { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent-ink); background: var(--chip); border: 1px solid var(--line); }

/* ---------- 底部操作条 ---------- */
.footer-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 536px; z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transition: var(--t-theme); }
.footer-bar .side-btn { width: 50px; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--sub); cursor: pointer; gap: 1px; }
.footer-bar .side-btn .ic { font-size: 21px; color: var(--text-2); }
.footer-bar .btn.block { height: 48px; }
.footer-bar .sum { padding-left: 8px; }
.footer-bar .sum .price { font-size: 22px; }

/* ---------- 表单 ---------- */
.form .item { display: flex; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.form .item:first-child { padding-top: 2px; }
.form .item:last-child { border-bottom: none; padding-bottom: 2px; }
.form .item > label { width: 80px; flex-shrink: 0; color: var(--text-2); padding-top: 4px; font-size: 13.5px; }
.form .item > label .req { color: var(--red); margin-right: 1px; }
.form .item .ctl { flex: 1; min-width: 0; }
.input, .textarea { width: 100%; border: none; outline: none; background: transparent; padding: 4px 0; font-size: 14px; color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--sub); }
.textarea { min-height: 64px; resize: vertical; }
.boxed { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--input); transition: border-color .25s, box-shadow .25s; }
.boxed:focus-within, textarea.boxed:focus { border-color: rgba(245,165,36,.55); box-shadow: 0 0 0 3px rgba(245,165,36,.14); }
.uploader { display: flex; flex-wrap: wrap; gap: 8px; }
.uploader .cell { width: 74px; height: 74px; border-radius: 14px; overflow: hidden; background: var(--input); border: 1px dashed var(--line-2);
  display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 24px; position: relative; cursor: pointer; transition: border-color .2s; }
.uploader .cell:hover { border-color: rgba(245,165,36,.5); }
.uploader .cell img { width: 100%; height: 100%; object-fit: cover; }
.uploader .cell .x { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.uploader input { display: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--input); }
.stepper span { width: 34px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; color: var(--text-2); transition: background-color .2s; }
.stepper span:active { background: var(--chip); }
.stepper input { width: 42px; height: 32px; text-align: center; border: none; outline: none; background: transparent; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { padding: 6px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--input); font-size: 13px; cursor: pointer; color: var(--text-2); transition: all .25s var(--ease); }
.radio.on { border-color: rgba(245,165,36,.65); color: var(--accent-ink); background: rgba(245,165,36,.12); font-weight: 600; box-shadow: 0 0 0 3px rgba(245,165,36,.08); }
.radio:active { transform: scale(.95); }
.sel-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding-top: 3px; }

/* ---------- 支付 ---------- */
.pay-amount { text-align: center; padding: 24px 0 8px; position: relative; }
.pay-amount .k { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--sub); }
.pay-amount .n { font-size: 42px; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pay-amount .n small { font-size: 20px; color: var(--accent-ink); margin-right: 2px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity .2s; }
.pay-method:first-child { padding-top: 2px; } .pay-method:last-child { border-bottom: none; padding-bottom: 2px; }
.pay-method .pi { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--chip); border: 1px solid var(--line); color: var(--accent-ink); }
.pay-method .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-left: auto; position: relative; transition: all .3s var(--spring); }
.pay-method .ck.on { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 12px rgba(245,165,36,.5); }
.pay-method .ck.on::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pay-method.off { opacity: .42; }

/* ---------- 订单 ---------- */
.order-card { position: relative; border-radius: 20px; margin: 12px 16px; padding: 14px; cursor: pointer; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), var(--t-theme); }
.order-card:active { transform: scale(.985); }
.order-card .hd { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--sub); margin-bottom: 12px; font-family: var(--mono); letter-spacing: .06em; }
.order-card .bd { display: flex; gap: 12px; }
.order-card .cover { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--bg-2); }
.order-card .ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.status-head { position: relative; margin: 12px 16px 0; padding: 20px 18px; border-radius: 22px; overflow: hidden; }
.status-head .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--accent-ink); }
.status-head .st { font-size: 22px; font-weight: 800; margin-top: 4px; }
.status-head .tip { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.status-head .pulse { position: absolute; right: 20px; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent-ink);
  background: rgba(245,165,36,.12); border: 1px solid rgba(245,165,36,.3); }
.status-head .pulse::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(245,165,36,.5); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.timeline { position: relative; padding-left: 18px; }
.timeline .tl { position: relative; padding: 0 0 14px 8px; }
.timeline .tl::before { content: ''; position: absolute; left: -14px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.timeline .tl:first-child::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(245,165,36,.18), 0 0 10px rgba(245,165,36,.6); }
.timeline .tl::after { content: ''; position: absolute; left: -10px; top: 18px; bottom: -2px; width: 1px; background: var(--line-2); }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .tl:last-child::after { display: none; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; gap: 14px; }
.kv > span:first-child { color: var(--sub); flex-shrink: 0; }
.kv > span:last-child { text-align: right; word-break: break-all; color: var(--text-2); }
.kv .mono { font-size: 12px; }
.imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.imgs img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; cursor: zoom-in; background: var(--bg-2); }
.img-viewer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; animation: fadeIn .25s; }
.img-viewer img { max-width: 96vw; max-height: 90vh; border-radius: 8px; }
.stars span { font-size: 30px; color: var(--line-2); cursor: pointer; transition: transform .25s var(--spring), color .2s; display: inline-block; padding: 0 2px; }
.stars span.on { color: var(--amber); text-shadow: 0 0 12px rgba(245,165,36,.5); }
.stars span:active { transform: scale(1.25); }
.ledger-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.ledger-row:first-child { padding-top: 2px; } .ledger-row:last-child { border-bottom: none; padding-bottom: 2px; }
.amt-pos { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; } .amt-neg { color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 弹窗 / 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(5, 5, 7, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .25s var(--ease); }
.modal { position: relative; background: var(--glass-strong); border: 1px solid var(--line-2); border-radius: 26px; width: 100%; max-width: 400px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: popIn .4s var(--spring); }
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .8; }
.modal .hd { padding: 20px 18px 12px; text-align: center; font-size: 17px; font-weight: 800; }
.modal .bd { padding: 0 20px 12px; overflow-y: auto; flex: 1; }
.modal .ft { padding: 12px 16px 18px; display: flex; gap: 10px; }
.modal .ft .btn { flex: 1; height: 46px; }
.sheet-mask { align-items: flex-end; padding: 0; }
.sheet { background: var(--glass-strong); border: 1px solid var(--line-2); border-bottom: none; width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; max-height: 85vh; overflow-y: auto;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .45s var(--ease); }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 12px; }
.sheet .opt { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background-color .2s; }
.sheet .opt:active { background: var(--chip); }
.sheet .opt.on .ck-ic { color: var(--accent-ink); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* Toast（common.js 生成 #__toast.toast） */
.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translate3d(-50%, -24px, 0) scale(.94); color: var(--text); padding: 11px 18px 11px 16px;
  background: var(--glass-solid); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--spring); width: max-content; max-width: calc(100vw - 48px); text-align: center; }
.toast::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); margin-right: 8px; vertical-align: 1px; }
.toast.show { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; padding: 0 24px 24px; position: relative; overflow: hidden; }
.login-hero { position: relative; margin: 0 -24px; height: 300px; overflow: hidden; }
.login-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; animation: kenburns 12s var(--ease) forwards; }
.login-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.25) 0%, rgba(8,8,10,0) 40%), var(--img-shade); }
.login-hero .shade2 { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
.login-hero .hud.tl { top: 18px; left: 18px; } .login-hero .hud.tr { top: 18px; right: 18px; }
.login-hero .tsw { position: absolute; right: 16px; top: 44px; z-index: 4; }
.login-title { margin-top: -66px; position: relative; z-index: 2; }
.login-title .k { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--accent-ink); }
.login-title .t { font-size: 30px; font-weight: 800; letter-spacing: .02em; margin-top: 4px; }
.login-title .s { color: var(--sub); margin-top: 2px; font-size: 13px; }
.seg { position: relative; display: flex; margin: 22px 0 16px; padding: 4px; border-radius: 15px; background: var(--glass); border: 1px solid var(--line); }
.seg a { flex: 1; text-align: center; height: 38px; line-height: 38px; font-size: 14px; color: var(--sub); position: relative; z-index: 1; cursor: pointer; transition: color .3s; font-weight: 600; }
.seg a.on { color: var(--text); }
.seg .ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: var(--glass-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .45s var(--spring); }
.seg.r .ink { transform: translateX(100%); }
.field { background: var(--glass); border: 1px solid var(--line); border-radius: 15px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 12px; transition: border-color .25s, box-shadow .25s, var(--t-theme); box-shadow: var(--shadow); }
.field:focus-within { border-color: rgba(245,165,36,.55); box-shadow: 0 0 0 3px rgba(245,165,36,.14), var(--shadow); }
.field .ic { font-size: 18px; color: var(--sub); }
.field input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 15px; color: var(--text); }
.field input::placeholder { color: var(--sub); }
.alt-login { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.alt-login .o { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--green); background: var(--glass); border: 1px solid var(--line); cursor: pointer; }
.sep { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 11px; width: 100%; }
.sep::before, .sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* ---------- 骨架屏 ---------- */
.sk { position: relative; overflow: hidden; background: var(--chip); border-radius: 12px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent); animation: shimmer 1.3s infinite; }
html[data-theme="light"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; border-radius: 6px; }
.sk-wrap { padding: 12px 16px; }

/* ---------- 进场动画 / 页面切换 ---------- */
.rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.goods.rv.in { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: opacity .6s var(--ease), transform .35s var(--ease), box-shadow .45s, background-color .45s, border-color .45s; }
.pg-enter-active { transition: opacity .28s var(--ease); }
.pg-leave-active { transition: opacity .14s ease-in; }
.pg-enter-from, .pg-leave-to { opacity: 0; }
.pg-enter-active .pg-in { animation: pgIn .42s var(--ease) both; }
@keyframes pgIn { from { transform: translate3d(0, 12px, 0); } to { transform: none; } }

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .ticker .track span { animation: none; padding-left: 0; }
  .hero-slide.on img, .hero-slide img, .login-hero img { animation: none; transform: none; }
}

/* ---------- 支付密码面板（安全数字键盘）---------- */
.pp-mask { z-index: 120; background: rgba(5, 5, 7, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pp-sheet { position: relative; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); overflow: hidden; animation: ppUp .42s var(--spring) both; }
.pp-sheet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--amber), transparent); opacity: .85; }
@keyframes ppUp { from { transform: translate3d(0, 60%, 0); opacity: .4; } to { transform: none; opacity: 1; } }
.pp-x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--sub); background: var(--chip); border: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.pp-hd { text-align: center; padding: 2px 30px 0; }
.pp-k { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--accent-ink); }
.pp-k .ic { font-size: 12px; }
.pp-t { font-size: 19px; font-weight: 800; margin-top: 6px; letter-spacing: .02em; }
.pp-s { color: var(--sub); font-size: 12.5px; margin-top: 3px; min-height: 18px; }
.pp-amt { text-align: center; font-size: 34px; font-weight: 800; margin-top: 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pp-amt small { font-size: .5em; color: var(--accent-ink); margin-right: 2px; }
.pp-steps { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pp-steps i { width: 18px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background-color .3s, width .3s var(--spring); }
.pp-steps i.on { background: var(--amber); width: 26px; box-shadow: 0 0 8px rgba(245,165,36,.5); }
.pp-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px auto 0; max-width: 320px; }
.pp-dots span { position: relative; height: 50px; border-radius: 13px; background: var(--input); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  transition: border-color .25s, box-shadow .25s, background-color .3s; }
.pp-dots span i { width: 12px; height: 12px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .28s var(--spring); }
.pp-dots span.on i { transform: scale(1); }
.pp-dots span.on { border-color: rgba(245,165,36,.45); }
.pp-dots span.cur { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.16); }
.pp-dots span.cur::after { content: ''; position: absolute; width: 2px; height: 20px; border-radius: 1px; background: var(--amber); animation: blink 1.1s steps(2) infinite; }
.pp-dots.err span { border-color: rgba(229,72,77,.55); }
.pp-dots.busy span i { animation: ppPulse .9s var(--ease) infinite; }
.pp-dots.busy span:nth-child(2) i { animation-delay: .08s; } .pp-dots.busy span:nth-child(3) i { animation-delay: .16s; }
.pp-dots.busy span:nth-child(4) i { animation-delay: .24s; } .pp-dots.busy span:nth-child(5) i { animation-delay: .32s; } .pp-dots.busy span:nth-child(6) i { animation-delay: .4s; }
@keyframes ppPulse { 50% { opacity: .3; transform: scale(.7); } }
.pp-dots.shake { animation: ppShake .42s var(--ease); }
@keyframes ppShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pp-msg { text-align: center; font-size: 12.5px; color: var(--sub); min-height: 20px; margin: 10px 0 12px; }
.pp-msg.err { color: var(--red); font-weight: 600; }
.pp-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transition: opacity .25s; }
.pp-pad.dis { opacity: .45; pointer-events: none; }
.pp-key { height: 54px; border-radius: 15px; border: 1px solid var(--line); background: var(--glass-2); color: var(--text); font: 600 22px/1 var(--font);
  font-variant-numeric: tabular-nums; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform .12s var(--ease), background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.pp-key:active { transform: scale(.94); background: rgba(245,165,36,.16); border-color: rgba(245,165,36,.45); }
.pp-key.fn { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); font-size: 22px; }
.pp-key:disabled { cursor: default; }
.pp-key.fn:disabled:not(:has(.ic)) { visibility: hidden; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11.5px; color: var(--sub); }
.pp-foot span { display: inline-flex; align-items: center; gap: 4px; }
.pp-foot .ic { color: var(--green); font-size: 13px; }
.pp-foot a { color: var(--accent-ink); cursor: pointer; white-space: nowrap; }

/* ---------- 注册协议勾选 ---------- */
.agree { margin: 2px 2px 6px; display: flex; flex-direction: column; gap: 8px; }
.ag { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--text-2); line-height: 20px; cursor: pointer; user-select: none; }
.ag a { color: var(--accent-ink); }
.ag .box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; margin: 1px 4px 0 0;
  color: transparent; font-size: 12px; background: var(--input); transition: all .25s var(--spring); flex-shrink: 0; }
.ag.on .box { background: var(--amber); border-color: var(--amber); color: var(--on-accent); box-shadow: 0 0 10px rgba(245,165,36,.45); }
