/* ============================================================
   星慕畅玩 - 精简暗色 · Steam 系蓝
   去 AI 味：无紫渐变 / 无光晕 / 无玻璃拟态 / 细发丝边 / 克制单色
   ============================================================ */
:root {
  --bg: #0a0e14;
  --bg-2: #0d141d;
  --surface: #111a26;
  --surface-2: #182233;
  --border: #1e2a3a;
  --border-soft: #141d2a;
  --text: #e8ecf3;
  --text-2: #94a2b5;
  --text-3: #5a6a80;
  --primary: #58a6ff;
  --primary-2: #79c0ff;
  --primary-deep: #1f6feb;
  --accent: #56d4dd;
  --success: #3fb950;
  --warn: #d29922;
  --danger: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "JetBrains Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 细噪点质感，压掉"AI 纯净感" */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #233144; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2d3f57; }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 24px; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.section-title .bar { width: 4px; height: 20px; border-radius: 2px; background: var(--primary); display: inline-block; }
.section-sub { color: var(--text-3); margin-top: 6px; font-size: 13.5px; letter-spacing: .02em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }

/* SVG 线性图标 */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.i-sm { width: 16px; height: 16px; }
.i-md { width: 22px; height: 22px; }
.i-lg { width: 84px; height: 84px; }
.i-xl { width: 120px; height: 120px; }
.i-40 { width: 40px; height: 40px; }
.i-48 { width: 48px; height: 48px; }

/* 数字等宽，价格/编号更精致 */
.price, .val, .order-row b, .game-price b, .hero-stat b, .price-big {
  font-variant-numeric: tabular-nums;
}

/* 按钮：克制的实心蓝 + 描边次按钮，无渐变无光晕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 14.5px; font-weight: 600; transition: all .18s ease; white-space: nowrap;
  background: transparent; color: var(--text-2);
}
.btn:hover { border-color: var(--primary); color: var(--text); }
.btn-primary { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 7px; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn-danger { background: transparent; border-color: rgba(248,81,73,.4); color: var(--danger); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,14,20,.94);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(255,255,255,.02);
}
.header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--primary-deep); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; cursor: pointer; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.logo-text { color: var(--text); letter-spacing: .02em; }
.logo-sub { font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .22em; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 9px 15px; color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color .15s; position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--primary-2); }
.nav-link.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  background: var(--primary); border-radius: 1px;
}
.nav-cta { margin-left: 10px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 20px; padding: 6px 9px; border-radius: 7px; }

/* 移动端抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(4,6,10,.7); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--bg-2); border-left: 1px solid var(--border); z-index: 201;
  transition: right .28s ease; padding: 22px; display: flex; flex-direction: column; gap: 4px;
}
.drawer.open { right: 0; }
.drawer .nav-link { display: flex; align-items: center; gap: 10px; padding: 14px 12px; font-size: 15.5px; border-radius: 8px; }
.drawer .nav-link.active::after { display: none; }
.drawer .nav-link.active { background: rgba(88,166,255,.1); }
.drawer-close { align-self: flex-end; background: none; border: none; color: var(--text-2); font-size: 20px; margin-bottom: 10px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--border-soft); margin-top: 70px; padding: 44px 0 30px; background: rgba(8,11,16,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { font-size: 13px; margin-bottom: 14px; color: var(--text); letter-spacing: .08em; }
.footer p, .footer a { color: var(--text-3); font-size: 13.5px; line-height: 1.9; display: block; }
.footer a:hover { color: var(--primary-2); }
.footer .logo { margin-bottom: 12px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--text-3); font-size: 12.5px; text-align: center; }

/* ============ Hero ============ */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 78% -10%, rgba(31,111,235,.10), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-2); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 22px; background: rgba(17,26,38,.6);
}
.hero-badge .icon { color: var(--primary); }
.hero h1 { font-size: 50px; line-height: 1.12; font-weight: 900; letter-spacing: -.015em; }
.hero h1 .grad-text { color: var(--primary-2); }
.hero p.lead { color: var(--text-2); font-size: 16.5px; margin: 20px 0 30px; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; margin-top: 42px; border-top: 1px solid var(--border-soft); padding-top: 24px; max-width: 460px; }
.hero-stat { flex: 1; padding-left: 20px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat b { font-size: 22px; font-weight: 800; color: var(--text); display: block; letter-spacing: -.01em; }
.hero-stat span { color: var(--text-3); font-size: 12.5px; }
.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; position: relative; overflow: hidden;
}
.hero-card .mini-tag { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-card .mini-tag b { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.hero-card .mini-tag b .icon { color: var(--warn); }
.hero-card .mini-tag span { color: var(--success); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hero-card .mini-tag span .icon { color: var(--success); }
.hero-card .cover-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-float {
  position: absolute; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 13px; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: float 4.5s ease-in-out infinite;
}
.hero-float.f1 { top: -18px; right: -6px; }
.hero-float.f2 { bottom: -16px; left: -8px; animation-delay: 2.2s; }
.hero-float .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ============ 公告条 ============ */
.announce { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 13px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.announce > .icon { color: var(--primary); width: 20px; height: 20px; flex-shrink: 0; }
.announce-list { flex: 1; overflow: hidden; position: relative; height: 26px; }
.announce-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); position: absolute; width: 100%; opacity: 0; transform: translateY(8px); transition: all .5s; }
.announce-item.active { opacity: 1; transform: translateY(0); }
.announce-item .date { color: var(--text-3); font-size: 12px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.announce-dots { display: flex; gap: 6px; }
.announce-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all .2s; }
.announce-dots i.active { background: var(--primary); width: 16px; border-radius: 3px; }

/* ============ 分类 ============ */
.categories { margin-bottom: 56px; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px; text-align: center; transition: all .18s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); }
.cat-card .icon { width: 30px; height: 30px; color: var(--primary); margin: 0 auto 12px; }
.cat-card b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.cat-card span { color: var(--text-3); font-size: 12px; }

/* ============ 游戏卡片 ============ */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-grid.list-view { grid-template-columns: 1fr; }
.game-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .18s; cursor: pointer; display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--primary); background: var(--surface-2); }
.game-cover { aspect-ratio: 16/10; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.game-cover .art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .48; color: #fff; }
.game-cover .art .icon { display: block; }
.game-cover .art-bg { position: absolute; inset: 0; }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,16,0) 55%, rgba(8,11,16,.55) 100%); }
.game-cover .cname { position: relative; z-index: 2; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.6); text-align: center; padding: 0 12px; letter-spacing: .01em; }
.game-cover .cname small { display: block; font-size: 10.5px; font-weight: 500; opacity: .7; margin-top: 4px; letter-spacing: .05em; }
.game-cover .corner { position: absolute; top: 10px; left: 10px; z-index: 3; }
.game-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px; background: rgba(10,14,20,.78); border: 1px solid rgba(255,255,255,.1); color: #d6dbe4; }
.game-tag.primary { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.game-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-name { font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.game-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.game-meta .star { color: var(--warn); }
.game-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.game-price b { font-size: 19px; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
.game-price s { font-size: 12px; color: var(--text-3); margin-left: 7px; }
.game-stock { font-size: 12px; color: var(--success); font-weight: 600; }
.game-stock.low { color: var(--warn); }
.game-stock.none { color: var(--danger); }

/* 列表视图 */
.game-card.list { flex-direction: row; align-items: center; }
.game-card.list .game-cover { width: 220px; aspect-ratio: 16/9; flex-shrink: 0; }
.game-card.list .game-body { flex: 1; }

/* ============ 步骤流程 ============ */
.steps { margin-bottom: 56px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; position: relative; transition: all .18s; }
.step-card:hover { border-color: var(--primary); background: var(--surface-2); }
.step-num {
  width: 38px; height: 38px; border-radius: 8px; background: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  margin-bottom: 16px; color: #fff;
}
.step-card h3 { font-size: 15.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.step-card p { color: var(--text-2); font-size: 13px; line-height: 1.8; }

/* ============ 商城页 ============ */
.page-head { padding: 44px 0 6px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.015em; display: flex; align-items: center; gap: 12px; }
.page-head h1 .icon { color: var(--primary); }
.page-head p { color: var(--text-3); margin-top: 6px; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; margin-top: 26px; align-items: start; }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--nav-h) + 18px); }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title { font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 12px; letter-spacing: .1em; }
.filter-cat { display: flex; flex-direction: column; gap: 2px; }
.filter-cat button { text-align: left; padding: 8px 12px; border-radius: 7px; background: none; border: none; color: var(--text-2); font-size: 14px; transition: all .15s; display: flex; align-items: center; gap: 8px; }
.filter-cat button .icon { color: var(--text-3); }
.filter-cat button:hover { background: rgba(88,166,255,.07); color: var(--text); }
.filter-cat button:hover .icon { color: var(--primary); }
.filter-cat button.active { background: rgba(88,166,255,.12); color: var(--primary-2); font-weight: 600; }
.filter-cat button.active .icon { color: var(--primary-2); }
.price-options { display: flex; flex-direction: column; gap: 6px; }
.price-options label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; padding: 5px 2px; }
.price-options input { accent-color: var(--primary); }
.range-wrap { padding: 8px 4px 2px; }
.range-val { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--primary); }
.filter-reset { width: 100%; margin-top: 14px; }

.shop-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%; padding: 11px 40px 11px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px;
  outline: none; transition: border .2s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box .s-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.sort-select {
  padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; outline: none; cursor: pointer;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle button { padding: 10px 14px; background: var(--surface); border: none; color: var(--text-3); font-size: 15px; display: flex; align-items: center; }
.view-toggle button.active { background: rgba(88,166,255,.12); color: var(--primary-2); }
.result-count { font-size: 13px; color: var(--text-3); width: 100%; }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .e-ico { margin-bottom: 14px; color: var(--text-3); }
.empty .e-ico .icon { width: 48px; height: 48px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-3); margin-bottom: 18px; }

/* ============ 游戏详情 ============ */
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; margin-top: 26px; align-items: start; }
.detail-cover { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.detail-cover .art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .4; color: #fff; }
.detail-cover .art .icon { display: block; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,16,0) 45%, rgba(8,11,16,.6) 100%); }
.detail-cover h2 { position: relative; z-index: 2; font-size: 32px; color: #fff; font-weight: 800; text-shadow: 0 2px 16px rgba(0,0,0,.6); text-align: center; padding: 0 20px; letter-spacing: -.01em; }
.detail-cover h2 small { display: block; font-size: 13px; font-weight: 500; opacity: .75; margin-top: 8px; letter-spacing: .05em; }
.detail-info h1 { font-size: 28px; font-weight: 800; }
.detail-tags { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; align-items: center; }
.detail-tags .game-tag { display: inline-flex; align-items: center; gap: 5px; }
.detail-tags .game-tag .icon { color: var(--warn); }
.detail-desc { color: var(--text-2); line-height: 1.9; margin-bottom: 22px; }
.detail-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.feat .f-ico { margin-bottom: 8px; color: var(--primary); display: flex; justify-content: center; }
.feat b { display: block; font-size: 13.5px; }
.feat span { font-size: 12px; color: var(--text-3); }

.order-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; position: sticky; top: calc(var(--nav-h) + 18px); }
.order-panel h3 { font-size: 17px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; letter-spacing: -.01em; }
.price-big { font-size: 30px; font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.price-big s { font-size: 14px; color: var(--text-3); font-weight: 500; margin-left: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; }
.qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { width: 34px; height: 34px; background: var(--bg-2); border: none; color: var(--text-2); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty button:hover:not(:disabled) { color: var(--primary); }
.qty button:disabled { opacity: .35; }
.qty span { width: 46px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); font-size: 14px; outline: none; transition: border .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field .hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px; }
.pay-opt {
  display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer; transition: all .15s; background: var(--bg-2);
}
.pay-opt:hover { border-color: var(--primary); }
.pay-opt.active { border-color: var(--primary); background: rgba(88,166,255,.08); }
.pay-opt .p-ico { display: flex; }
.pay-opt b { font-size: 14px; display: block; }
.pay-opt span { font-size: 11px; color: var(--text-3); }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px dashed var(--border); margin-bottom: 16px; }
.total-row span { color: var(--text-2); font-size: 14px; }
.total-row b { font-size: 23px; color: var(--text); font-variant-numeric: tabular-nums; }

/* 支付模拟弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(4,6,10,.74); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: 400px; width: 100%; padding: 28px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: pop .22s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-card .m-ico { margin-bottom: 12px; }
.modal-card .m-ico .icon { width: 44px; height: 44px; }
.modal-card h3 { font-size: 18px; margin-bottom: 8px; }
.modal-card p { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.qr-box { width: 168px; height: 168px; margin: 0 auto 16px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.qr-box .qr { width: 100%; height: 100%; }
.qr-box span { font-size: 12px; color: #555; }
.spinner { width: 26px; height: 26px; border: 2px solid rgba(88,166,255,.2); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 10px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 教程页 ============ */
.tut-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 26px; align-items: start; }
.tut-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; position: sticky; top: calc(var(--nav-h) + 18px); }
.tut-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px; border: none; background: none; color: var(--text-2); font-size: 14px; transition: all .15s; }
.tut-nav button:hover { background: rgba(88,166,255,.07); }
.tut-nav button.active { background: rgba(88,166,255,.12); color: var(--primary-2); font-weight: 600; }
.tut-nav .tnum { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tut-nav button.active .tnum { background: var(--primary-deep); color: #fff; border-color: var(--primary-deep); }
.tut-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.tut-step { display: none; }
.tut-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tut-step h2 { font-size: 21px; margin-bottom: 14px; letter-spacing: -.01em; }
.tut-step p { color: var(--text-2); line-height: 1.9; margin-bottom: 16px; }
.tut-step .tip { background: rgba(88,166,255,.07); border: 1px solid rgba(88,166,255,.22); border-radius: 9px; padding: 14px 16px; font-size: 13.5px; color: var(--primary-2); display: flex; gap: 8px; align-items: flex-start; }
.tut-step .tip .icon { margin-top: 3px; flex-shrink: 0; }
.tut-navbtns { display: flex; justify-content: space-between; margin-top: 22px; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: var(--surface); }
.faq-q { padding: 15px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; }
.faq-q .arr { transition: transform .25s; color: var(--text-3); display: flex; }
.faq-item.open .faq-q .arr { transform: rotate(180deg); color: var(--primary-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 18px 16px; color: var(--text-2); font-size: 14px; line-height: 1.9; }

/* ============ 订单页 ============ */
.order-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px; }
.order-head { text-align: center; padding-bottom: 22px; border-bottom: 1px dashed var(--border); margin-bottom: 22px; }
.order-head .ok-ico { margin-bottom: 10px; color: var(--success); }
.order-head .ok-ico .icon { width: 44px; height: 44px; }
.order-head h2 { font-size: 21px; margin-bottom: 6px; letter-spacing: -.01em; }
.order-head p { color: var(--text-3); font-size: 13px; font-family: var(--mono); letter-spacing: .03em; }
.order-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.order-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 2px; border-bottom: 1px dashed var(--border-soft); }
.order-row span { color: var(--text-2); }
.order-row b { font-weight: 600; }
.acc-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; font-size: 14.5px; gap: 10px; }
.acc-row > span:first-child { color: var(--text-2); flex-shrink: 0; }
.acc-row .val { font-family: var(--mono); color: var(--primary-2); word-break: break-all; text-align: right; flex: 1; }
.copy-btn { margin-left: 6px; flex-shrink: 0; }
.claim-btn { width: 100%; padding: 14px; font-size: 15.5px; border-radius: 9px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 20px; border-radius: 9px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 9px; animation: toastIn .3s ease; max-width: 90vw;
}
.toast.success { border-color: rgba(63,185,80,.5); }
.toast.success .t-ico { color: var(--success); }
.toast.error { border-color: rgba(248,81,73,.5); }
.toast.error .t-ico { color: var(--danger); }
.toast .t-ico { display: flex; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ============ 客服弹窗 ============ */
.cs-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.cs-item { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2); }
.cs-item .c-ico { display: flex; flex-shrink: 0; }
.cs-item b { font-size: 14px; display: block; }
.cs-item span { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.cs-item .cs-right { margin-left: auto; }
.notice { background: rgba(86,212,221,.06); border: 1px solid rgba(86,212,221,.2); border-radius: 9px; padding: 12px 15px; font-size: 12.5px; color: var(--accent); margin-top: 14px; display: flex; align-items: center; gap: 8px; text-align: left; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover { order: -1; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-visual { display: none; }
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .tut-layout { grid-template-columns: 1fr; }
  .tut-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .tut-nav button { width: auto; white-space: nowrap; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .game-card.list { flex-direction: column; }
  .game-card.list .game-cover { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
