/* Self-hosted subsets: Inter variable (UI 100-900) + Barlow Condensed (display 700/800) */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg: #0a0b0d;
    --surface: #121417;
    --surface-2: #171a1f;
    --panel: #121417;
    --panel-2: #171a1f;
    --line: #23262c;
    --line-strong: #343841;
    --text: #f4f5f7;
    --muted: #99a1ae;
    --accent: #6d8cff;
    --accent-hover: #86a0ff;
    --accent-2: #4fd1c5;
    --accent-ink: #060b18;
    --ok: #3ecf8e;
    --danger: #ff5d5d;
    /* Theme tokens — dark (default) */
    --heading: #ffffff;
    --text-body: #d5dbe7;
    --text-soft: #cfd6e4;
    --text-dim: #b7c0d1;
    --input-bg: #0d1118;
    --surface-alt: #12161e;
    --surface-soft: #151a23;
    --surface-media: #181b21;
    --surface-hero: #101216;
    --surface-code: #0b0e14;
    --surface-deep: #0a0c11;
    --surface-panel: #0f131b;
    --hover-surface: #1a2130;
    --hover-surface-2: #232936;
    --line-soft: #232a38;
    --line-mid: #2a3040;
    --icon-dim: #5f6877;
    --placeholder: #6b7688;
    --danger-bg: #2a1616;
    --danger-line: #5a2626;
    --danger-text: #ffb3b3;
    --ok-bg: #14251d;
    --ok-line: #27503b;
    --ok-text: #8ff0bf;
    --tag-currency: #ffb27a;
    --tag-currency-bg: rgba(249, 115, 22, .14);
    --tag-item: #8ab4ff;
    --tag-item-bg: rgba(59, 130, 246, .16);
    --tag-account: #7ee2b0;
    --tag-account-bg: rgba(34, 197, 94, .14);
    --tag-service: #c9a8ff;
    --tag-service-bg: rgba(168, 85, 247, .16);
    --tag-code: #f2d377;
    --tag-code-bg: rgba(234, 179, 8, .14);
    --offer-price: #ff8a5c;
    --tint-1: rgba(255, 255, 255, .012);
    --grid-line: rgba(255, 255, 255, .032);
    --tint-line: rgba(255, 255, 255, .04);
    --art: rgba(255, 255, 255, .07);
    --dot: rgba(255, 255, 255, .22);
    --dot-hover: rgba(255, 255, 255, .45);
    --inset-hl: rgba(255, 255, 255, .03);
    --modal-scrim: rgba(4, 6, 10, .72);
    --glass: rgba(12, 15, 21, .55);
    --shadow-1: rgba(0, 0, 0, .35);
    --shadow-2: rgba(0, 0, 0, .6);
    --shadow-3: rgba(0, 0, 0, .45);
    --header-bg: linear-gradient(180deg, #101623 0%, #0d121c 55%, #0b0f17 100%);
    --scrim: rgba(4, 6, 10, .55);
    --hero-veil-1: rgba(8, 11, 17, .97);
    --hero-veil-2: rgba(8, 11, 17, .82);
    --hero-veil-3: rgba(8, 11, 17, .34);
    --radius: 12px;
    --radius-sm: 8px;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Barlow Condensed", "Inter", -apple-system, "Segoe UI", sans-serif;
    --shadow: 0 10px 30px var(--shadow-1);
}

/* ---- Light theme ---- */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f7f9fd;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --line: #e2e7f0;
    --line-strong: #cbd3e1;
    --text: #182031;
    --muted: #5b6577;
    --accent: #4763e8;
    --accent-hover: #3652d6;
    --accent-ink: #ffffff;
    --ok: #128a5b;
    --danger: #d64545;
    --heading: #0d1526;
    --text-body: #2b3444;
    --text-soft: #3d4759;
    --text-dim: #4d586a;
    --input-bg: #ffffff;
    --surface-alt: #ffffff;
    --surface-soft: #f3f6fb;
    --surface-media: #eaeef6;
    --surface-hero: #ffffff;
    --surface-code: #f1f4f9;
    --surface-deep: #eef1f7;
    --surface-panel: #ffffff;
    --hover-surface: #eef2fa;
    --hover-surface-2: #e7edf8;
    --line-soft: #e6eaf2;
    --line-mid: #dae1ed;
    --icon-dim: #8a94a6;
    --placeholder: #98a1b2;
    --danger-bg: #fdecec;
    --danger-line: #f3c2c2;
    --danger-text: #b42323;
    --ok-bg: #e8f8ef;
    --ok-line: #b7e6cd;
    --ok-text: #0f7a4f;
    --tag-currency: #c2410c;
    --tag-currency-bg: #fff0e6;
    --tag-item: #1d4ed8;
    --tag-item-bg: #e8f0ff;
    --tag-account: #15803d;
    --tag-account-bg: #e8f8ef;
    --tag-service: #7e22ce;
    --tag-service-bg: #f5ecff;
    --tag-code: #a16207;
    --tag-code-bg: #fdf6dd;
    --offer-price: #f0521f;
    --tint-1: rgba(12, 24, 48, .02);
    --grid-line: rgba(12, 24, 48, .05);
    --tint-line: rgba(12, 24, 48, .06);
    --art: rgba(12, 24, 48, .05);
    --dot: rgba(12, 24, 48, .18);
    --dot-hover: rgba(12, 24, 48, .32);
    --inset-hl: rgba(255, 255, 255, .7);
    --modal-scrim: rgba(15, 23, 42, .35);
    --glass: rgba(255, 255, 255, .72);
    --shadow-1: rgba(23, 37, 84, .12);
    --shadow-2: rgba(23, 37, 84, .18);
    --shadow-3: rgba(23, 37, 84, .14);
    --header-bg: linear-gradient(180deg, #ffffff 0%, #fbfcff 60%, #f6f8ff 100%);
    --scrim: rgba(16, 26, 48, .32);
    --hero-veil-1: rgba(255, 255, 255, .97);
    --hero-veil-2: rgba(255, 255, 255, .86);
    --hero-veil-3: rgba(255, 255, 255, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scrollbar-gutter: stable; }
html[data-theme="light"] { color-scheme: light; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--font-ui);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

h1, h2, .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .01em;
}

.ico { flex: 0 0 auto; vertical-align: -.18em; }
.ico-sm { width: 16px; height: 16px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container, .wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* 宽屏适配：1920 级桌面 1400，2K(2560) 级 1600 */
@media (min-width: 1600px) { .container, .wrap { max-width: 1400px; } }
@media (min-width: 2400px) { .container, .wrap { max-width: 1600px; } }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(109, 140, 255, .18);
    box-shadow: inset 0 1px 0 var(--inset-hl);
}
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(109, 140, 255, .42) 22%, rgba(79, 209, 197, .22) 52%, transparent 84%);
    pointer-events: none;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--heading); }
.brand-mark {
    width: 30px; height: 30px; border-radius: var(--radius-sm); display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 130%);
    color: var(--accent-ink);
    box-shadow: 0 4px 14px rgba(109, 140, 255, .22);
}
.nav { display: flex; align-items: center; gap: 2px; font-size: 14px; margin-left: 4px; align-self: stretch; }
.nav a {
    display: inline-flex; align-items: center; height: 100%; padding: 0 12px;
    color: var(--text-soft); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--heading); }
.nav a.active { color: var(--heading); border-bottom-color: var(--accent); }
.nav-search { position: relative; flex: 0 1 250px; min-width: 140px; margin-left: auto; }
.nav-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--muted); pointer-events: none;
}
.site-header .nav-search input[type="search"] {
    width: 100%; padding: 8px 12px 8px 34px; border-radius: 999px;
    background: var(--input-bg); border: 1px solid var(--line); font-size: 13px;
}
.site-header .nav-search input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,140,255,.12); }
/* ---- Header search box (history / trending / suggestions) ---- */
.search-box { position: relative; flex: 0 1 250px; min-width: 140px; margin-left: auto; }
.search-form { position: relative; display: flex; align-items: center; }
.search-form-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.site-header .search-form input[type="search"] {
    width: 100%; height: 38px; padding: 8px 44px 8px 34px; border-radius: 999px;
    background: var(--input-bg); border: 1px solid var(--line); font-size: 13px; color: var(--text);
}
.site-header .search-form input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,140,255,.12); outline: none; }
.site-header .search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-submit {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), #4a6cff); color: #fff;
    box-shadow: 0 2px 10px rgba(109,140,255,.35);
}
.search-submit:hover { background: linear-gradient(135deg, var(--accent-hover), #6383ff); }
.search-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
    width: min(680px, calc(100vw - 40px)); max-height: min(72vh, 600px); overflow-y: auto;
    padding: 18px; border-radius: 16px;
    background: var(--surface-panel); border: 1px solid var(--line-mid);
    box-shadow: 0 28px 70px var(--shadow-2), inset 0 1px 0 var(--grid-line);
    animation: sp-in .14s ease;
}
@keyframes sp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sp-head h4 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--heading); display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); }
.sp-head--gap { margin-top: 20px; }
.sp-flame { color: #ff8a4c; }
.sp-icon-btn { background: none; border: 0; padding: 4px; border-radius: 6px; display: inline-grid; place-items: center; color: var(--muted); cursor: pointer; }
.sp-icon-btn:hover { color: var(--heading); background: var(--hover-surface); }
.sp-history { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip {
    display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface-soft); color: var(--text-soft);
    font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.sp-chip:hover { border-color: var(--accent); color: var(--heading); }
.sp-chip--empty { color: var(--muted); cursor: default; }
.sp-chip--empty:hover { border-color: var(--line); color: var(--muted); }
.sp-trending { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sp-trend {
    display: flex; align-items: center; gap: 10px; padding: 10px; min-width: 0;
    border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line-soft);
    transition: border-color .15s ease, transform .15s ease;
}
.sp-trend:hover { border-color: rgba(109,140,255,.55); transform: translateY(-1px); color: inherit; }
.sp-trend-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sp-trend-body strong { font-size: 13px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-trend-body small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-icon {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; overflow: hidden;
    display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
    background: var(--surface-soft);
}
.sp-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tone-0 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tone-1 { background: linear-gradient(135deg, #f97316, #c2410c); }
.tone-2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tone-3 { background: linear-gradient(135deg, #10b981, #047857); }
.tone-4 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.tone-5 { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.sp-badge {
    margin-left: auto; padding: 2px 7px; border-radius: 6px; white-space: nowrap;
    font-size: 11px; font-weight: 700; color: var(--ok);
    background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.25);
}
.sp-badge.is-soft { color: var(--muted); background: var(--hover-surface); border-color: var(--line-mid); }
.sp-recommended { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-rec { padding: 11px 12px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line-soft); }
.sp-rec-head { display: flex; align-items: center; gap: 10px; color: var(--heading); }
.sp-rec-head:hover { color: var(--heading); }
.sp-rec-head strong { font-size: 13.5px; }
.sp-rec-go { margin-left: auto; color: var(--icon-dim); }
.sp-rec-head:hover .sp-rec-go { color: var(--accent); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sp-tags a { padding: 4px 9px; border-radius: 6px; font-size: 11.5px; background: var(--surface-soft); border: 1px solid var(--line-mid); color: var(--text-soft); }
.sp-tags a:hover { border-color: var(--accent); color: var(--heading); }
.sp-result { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; color: var(--heading); }
.sp-result:hover, .sp-result.is-active { background: var(--hover-surface); border-color: var(--line-mid); color: var(--heading); }
.sp-result-body { display: flex; flex-direction: column; min-width: 0; }
.sp-result-body strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-result-body small { font-size: 11px; color: var(--muted); }
.sp-result-go { margin-left: auto; color: var(--icon-dim); }
.sp-result:hover .sp-result-go, .sp-result.is-active .sp-result-go { color: var(--accent); }
.sp-view-all { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 11px 10px 3px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--accent); }
.sp-empty { display: grid; gap: 4px; padding: 22px 10px; text-align: center; color: var(--muted); font-size: 12.5px; }
.sp-empty strong { color: var(--heading); font-size: 13.5px; }
.nav-right { margin-left: 0; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.lang-switch { position: relative; color: var(--muted); }
.lang-switch summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; letter-spacing: .06em; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-menu {
    position: absolute; right: 0; top: 40px; min-width: 150px; padding: 8px;
    background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 18px 40px var(--shadow-3); display: grid; gap: 2px;
}
.lang-menu a { padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--text-soft); }
.lang-menu a:hover, .lang-menu a.on { background: var(--hover-surface-2); color: var(--heading); }

.pref-trigger {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
    background: transparent; color: var(--text-soft);
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}
.pref-trigger:hover { border-color: var(--line-strong); color: var(--heading); }

.nav-icon {
    display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft);
    font-size: 13.5px; font-weight: 500; position: relative;
}
.nav-icon:hover { color: var(--heading); }
.nav-icon-label { display: inline; }
.cart-count {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    display: inline-grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 1;
}

.mobile-pref {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface-alt); color: var(--text-soft); font-family: inherit; font-size: 13.5px; cursor: pointer;
}
.mobile-pref strong { color: var(--heading); font-weight: 600; }
.mobile-pref:hover { border-color: var(--accent); color: var(--heading); }

.pref-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.pref-modal[hidden] { display: none; }
.pref-backdrop {
    position: absolute; inset: 0; background: var(--modal-scrim);
    backdrop-filter: blur(4px); animation: pref-fade .18s ease;
}
.pref-dialog {
    position: relative; width: min(420px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    box-shadow: 0 30px 80px var(--shadow-2); animation: pref-in .2s ease;
}
@keyframes pref-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pref-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pref-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pref-head h3 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.pref-close {
    width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px; background: transparent;
    color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit;
}
.pref-close:hover { border-color: var(--accent); color: var(--heading); }
.pref-form { display: grid; gap: 16px; }
.pref-field { display: grid; gap: 7px; }
.pref-field > span { font-size: 12.5px; font-weight: 600; color: var(--heading); }
.pref-field select { padding: 11px 13px; font-size: 14px; color-scheme: inherit; }
.btn.pref-confirm { width: 100%; padding: 13px; margin-top: 2px; }
body.pref-open { overflow: hidden; }

.nav-toggle {
    display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle span {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .18s ease, opacity .18s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px);
    overflow-y: auto; background: var(--surface-deep); border-top: 1px solid var(--line);
}
.mobile-nav-inner { display: grid; gap: 18px; padding-top: 10px; padding-bottom: 20px; }
.mobile-search { display: flex; gap: 8px; }
.mobile-search input { flex: 1; min-width: 0; }
.mobile-search .btn { padding: 10px 16px; font-size: 13.5px; }
.search-box--mobile { flex: initial; min-width: 0; margin: 0; }
.site-header .search-box--mobile .search-form input[type="search"] { height: 44px; padding: 10px 48px 10px 36px; font-size: 14px; }
.search-box--mobile .search-submit { width: 34px; height: 34px; right: 5px; }
.search-box--mobile .search-panel { position: static; width: 100%; max-height: 62vh; margin-top: 10px; }
.search-box--mobile .sp-trending, .search-box--mobile .sp-recommended { grid-template-columns: 1fr; }
.mobile-nav-links { display: grid; }
.mobile-nav-links a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 4px; border-bottom: 1px solid var(--line);
    color: var(--heading); font-size: 15px;
}
.mobile-nav-links a:last-child { border-bottom: 0; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--accent); }
.mobile-nav-meta { display: grid; gap: 16px; }
.mobile-nav-group { display: grid; gap: 8px; }
.mobile-nav-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mobile-nav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-nav-chips a {
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--text-soft);
}
.mobile-nav-chips a:hover, .mobile-nav-chips a.on { border-color: var(--accent); color: var(--accent); }

main { padding: 30px 0 10px; min-height: 62vh; }
/* main 同时带 .wrap，.wrap 的 padding 简写会把上面的上内边距清零，导致内容顶到导航栏。 */
main.wrap { padding-top: 30px; padding-bottom: 10px; }

.hero-carousel {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface-hero);
    padding: 46px 40px 0; margin-bottom: 40px;
}
.hero-carousel::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}
.hero-carousel::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent); z-index: 2;
}
.hero-bgs { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
    position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
    background: transparent;
    background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--hero-veil-1) 0%, var(--hero-veil-2) 38%, var(--hero-veil-3) 72%, transparent 100%);
}
.hero-bg.is-active { opacity: 1; }

.hero-track { display: grid; position: relative; z-index: 1; }
.hero-slide {
    grid-area: 1 / 1; max-width: 760px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: opacity .45s ease, transform .45s ease, visibility .45s;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero-eyebrow {
    display: inline-flex; align-items: center; margin-bottom: 14px; padding: 5px 11px;
    border: 1px solid rgba(109,140,255,.32); border-radius: 999px; background: rgba(109,140,255,.08);
    color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero-slide h1, .hero-slide h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: 58px; line-height: .94; margin: 0 0 16px;
    letter-spacing: .005em; text-transform: uppercase;
}
.hero-slide p { margin: 0 0 22px; color: var(--text-dim); max-width: 640px; font-size: 16px; }
.hero-controls { position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.hero-arrow {
    width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%; background: var(--glass);
    color: var(--text-soft); font-size: 19px; line-height: 1; cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.hero-arrow:hover { border-color: var(--accent); color: var(--heading); background: rgba(109,140,255,.12); }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot {
    width: 22px; height: 4px; padding: 0; border: 0; border-radius: 999px;
    background: var(--dot); cursor: pointer; transition: background .2s ease, width .2s ease;
}
.hero-dot:hover { background: var(--dot-hover); }
.hero-dot.is-active { width: 34px; background: var(--accent); }
.chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: transparent;
    font-size: 12.5px; color: var(--text-soft);
}
.chip strong { color: var(--heading); font-weight: 700; }
.hero-carousel .chips {
    flex-wrap: wrap; gap: 0; margin: 34px -40px 0; padding: 14px 40px;
    border-top: 1px solid var(--line); background: var(--tint-1);
}
.hero-carousel .chip {
    border: 0; border-radius: 0; padding: 0 18px; font-size: 12.5px;
    letter-spacing: .01em; background: none;
}
.hero-carousel .chip:first-child { padding-left: 0; }
.hero-carousel .chip + .chip { border-left: 1px solid var(--line); }

.section { margin: 0 0 44px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.section-head h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 27px; margin: 0; letter-spacing: .01em; text-transform: uppercase;
}
.section-head a { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.section-head a:hover { color: var(--accent); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: 40px; margin: 0 0 8px; letter-spacing: .01em; }
h2 { font-size: 20px; margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.games-toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
.games-toolbar input[type="search"] { width: 100%; padding: 10px 14px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip-count { opacity: .7; margin-left: 2px; font-size: 11px; }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.card {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
    position: relative;
}
a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); color: var(--heading); }
.card-media {
    height: 104px; border-radius: 8px; overflow: hidden;
    margin: -14px -14px 6px; border-bottom: 1px solid var(--line);
    background: var(--surface-media);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--muted); font-size: 11.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    position: relative;
}
.card-media::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 78%);
}
.card-media > * { position: relative; z-index: 1; }
.card-media .ico { color: var(--muted); }
.card-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.card-media.cover-fallback { background: var(--surface-media); color: var(--muted); }
.card-title { font-weight: 600; font-size: 14.5px; color: var(--heading); line-height: 1.35; }
.card-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.price-lg { font-size: 32px; font-weight: 800; color: var(--accent); }
.price-lg small { font-size: 13px; color: var(--muted); font-weight: 500; }

.game-tile { text-align: left; padding: 12px; }
.game-tile .card-title { font-size: 14px; }
.game-tile .card-media { height: 96px; margin: -12px -12px 6px; }

/* Offer cards (MMOEXP-style: game header + tag, title, spec chips, price + thumbnail) */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.offer-row { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; }
.offer-row .offer-card { flex: 0 0 340px; scroll-snap-align: start; }
.offer-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px; min-height: 168px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.offer-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-2); color: var(--heading); box-shadow: var(--shadow); }
.offer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offer-game { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.offer-game-icon {
    width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; overflow: hidden;
    display: grid; place-items: center;
    background: hsl(var(--offer-hue, 220) 60% 88%); border: 1px solid hsl(var(--offer-hue, 220) 45% 78%);
    color: hsl(var(--offer-hue, 220) 55% 28%); font-weight: 800; font-size: 14px; text-transform: uppercase;
}
.offer-game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:not([data-theme="light"]) .offer-game-icon { background: hsl(var(--offer-hue, 220) 45% 24%); border-color: hsl(var(--offer-hue, 220) 40% 34%); color: hsl(var(--offer-hue, 220) 80% 80%); }
.offer-game-name { font-size: 14px; font-weight: 700; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-tag {
    flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tag-item); background: var(--tag-item-bg);
}
.offer-tag.is-currency { color: var(--tag-currency); background: var(--tag-currency-bg); }
.offer-tag.is-item { color: var(--tag-item); background: var(--tag-item-bg); }
.offer-tag.is-account { color: var(--tag-account); background: var(--tag-account-bg); }
.offer-tag.is-service { color: var(--tag-service); background: var(--tag-service-bg); }
.offer-tag.is-code { color: var(--tag-code); background: var(--tag-code-bg); }
.offer-card-title {
    border-top: 1px solid var(--line); padding-top: 10px;
    font-size: 15px; font-weight: 600; color: var(--heading); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.offer-chip {
    padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
    background: var(--surface-soft); color: var(--muted);
    font-size: 11px; line-height: 1.5; white-space: nowrap;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.offer-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 2px; }
.offer-price { font-size: 19px; font-weight: 800; color: var(--offer-price); white-space: nowrap; line-height: 1.1; }
.offer-price small { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.offer-thumb {
    width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--surface-media); color: var(--muted); border: 1px solid var(--line-soft);
}
.offer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card.is-out .offer-price { color: var(--muted); }
@media (max-width: 760px) {
    .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .offer-row .offer-card { flex: 0 0 82%; }
    .offer-card { padding: 12px; min-height: 0; gap: 8px; }
    .offer-card-title { font-size: 13.5px; }
    .offer-thumb { width: 42px; height: 42px; }
    .offer-price { font-size: 16px; }
}
@media (max-width: 520px) {
    .offer-grid { grid-template-columns: 1fr; }
}

.game-hero-cover {
    width: 84px; height: 84px; flex: 0 0 auto; border-radius: var(--radius); overflow: hidden;
    display: grid; place-items: center; color: var(--muted);
    background: var(--surface-media); border: 1px solid var(--line);
}
.game-hero-cover img { width: 100%; height: 100%; object-fit: cover; }

.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } }
.filter-panel { position: sticky; top: 86px; display: grid; gap: 14px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
select, input[type="email"], input[type="number"], input[type="text"], input[type="search"], input[type="password"], textarea {
    width: 100%; background: var(--input-bg); border: 1px solid var(--line); color: var(--text);
    border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,140,255,.12); }
::placeholder { color: var(--placeholder); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; cursor: pointer; border-radius: var(--radius-sm); padding: 11px 18px;
    font-weight: 600; font-size: 13.5px; font-family: inherit; letter-spacing: .01em;
    background: var(--accent); color: var(--accent-ink);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--heading); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.stepper { display: flex; gap: 8px; align-items: center; }
.stepper-wrap { display: grid; gap: 4px; justify-items: center; }
.stepper-note { font-size: 11.5px; color: var(--muted); }
.stepper button:disabled { opacity: .45; cursor: not-allowed; }
.stepper button:disabled:hover { border-color: var(--line); }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--input-bg); color: var(--text); cursor: pointer; font-size: 16px; }
.stepper button:hover { border-color: var(--accent); }
.stepper input { width: 96px; text-align: center; }

.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.rows > .row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows > .row:last-child { border-bottom: 0; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: var(--ok-line); background: rgba(53,208,127,.08); }
.badge.hot { color: var(--accent); border-color: rgba(109,140,255,.32); background: rgba(109,140,255,.1); }

.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.crumbs a { color: var(--text-soft); }

.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } }
.product-main { display: grid; gap: 18px; }
.product-hero { display: flex; gap: 18px; align-items: flex-start; }
.product-hero img { width: 140px; height: 140px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.product-hero .ph {
    width: 110px; height: 110px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #252d3f, #171c27); color: var(--muted); font-size: 30px; font-weight: 800; flex: 0 0 auto;
}
.summary { position: sticky; top: 86px; }
.summary .price-lg { margin-bottom: 4px; }
.trust { display: grid; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.trust div { display: flex; gap: 8px; align-items: center; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.alert { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-text); padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; }
.alert.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-text); }
.error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 54px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--tint-1); }
.empty-state .ico { color: var(--icon-dim); margin-bottom: 4px; }
.empty-state h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--heading); }
.empty-state p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 380px; }
.empty-state .btn { margin-top: 12px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface-alt); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }

.pager { margin-top: 20px; }
.pager nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pager .is-disabled { opacity: .35; }
.pager svg { width: 16px; height: 16px; }
.shop-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--surface-deep); padding: 36px 0 26px; color: var(--muted); font-size: 13px; }
.footer-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: 10px; align-items: flex-start; color: var(--accent); }
.trust-item div { display: grid; gap: 2px; }
.trust-item strong { color: var(--text); font-size: 13px; }
.trust-item span { color: var(--muted); font-size: 12px; line-height: 1.4; }
@media (max-width: 860px) { .footer-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; margin-bottom: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--heading); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.footer-grid a { display: block; padding: 3px 0; color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1040px) and (min-width: 861px) {
    .header-inner { gap: 14px; }
    .nav { gap: 14px; margin-left: 0; }
    .nav-search { flex-basis: 180px; min-width: 120px; }
    .nav-right { gap: 12px; }
}

@media (max-width: 860px) {
    .nav, .nav-search, .nav-right { display: none; }
    .search-box:not(.search-box--mobile) { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header.nav-open .mobile-nav { display: block; }
    .hero-carousel { padding: 62px 22px 20px; }
    .hero-slide h1, .hero-slide h2 { font-size: 30px; }
    .hero-controls { top: 12px; right: 12px; gap: 8px; }
    .hero-arrow { width: 30px; height: 30px; font-size: 17px; }
    .hero-dot { width: 16px; }
    .hero-dot.is-active { width: 26px; }
    .chips { margin-top: 26px; }
    .header-inner { gap: 14px; }
}

/* Account / member center */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }
.member-progress { height: 10px; border-radius: 999px; background: var(--hover-surface); border: 1px solid var(--line); overflow: hidden; }
.member-progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.account-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }

/* News & guides */
.news-head { margin: 0 0 18px; }
.news-head h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.4px; }
.news-head p { margin: 0; max-width: 720px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-soft); background: var(--surface-alt); }
.chip:hover { border-color: var(--line-strong); color: var(--heading); }
.chip.active { border-color: var(--accent); color: var(--accent); background: rgba(109,140,255,.08); }
.chip-count { font-size: 11px; color: var(--muted); }
.news-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.news-tabs .tab { padding: 10px 12px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.news-tabs .tab:hover { color: var(--heading); }
.news-tabs .tab.active { color: var(--heading); border-bottom-color: var(--accent); font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news-grid.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 单篇文章的栏目/标签页：横向大卡，避免一张卡孤零零占三分之一栏 */
.news-grid > .news-card:only-child { grid-column: 1 / -1; flex-direction: row; max-width: 780px; }
.news-grid > .news-card:only-child .news-card-media { width: 46%; flex: 0 0 46%; aspect-ratio: auto; min-height: 240px; }
.news-grid > .news-card:only-child .news-card-body { justify-content: center; padding: 22px 24px; }
.news-grid > .news-card:only-child .news-card-body h3 { font-size: 21px; }
.news-featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.news-featured .news-card.is-featured { grid-row: span 2; flex-direction: row; }
.news-featured .news-card.is-featured .news-card-media {
    width: 48%; flex: 0 0 48%; height: auto; aspect-ratio: auto; min-height: 240px;
}
.news-featured .news-card.is-featured .news-card-body { width: 52%; padding: 24px; justify-content: center; }
.news-featured .news-card.is-featured .news-meta { margin-top: 0; }
.news-featured .news-card.is-featured .news-card-body h3 { font-size: 23px; line-height: 1.3; }
.news-featured .news-card.is-featured h3 { font-size: 23px; }
@media (max-width: 900px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .news-card.is-featured { grid-row: auto; flex-direction: column; }
    .news-featured .news-card.is-featured .news-card-media { width: 100%; flex: none; aspect-ratio: 16/9; min-height: 0; height: auto; }
    .news-featured .news-card.is-featured .news-card-body { width: 100%; padding: 14px 16px 16px; }
}
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.news-card-media {
    aspect-ratio: 16 / 9; background: var(--surface-media); display: flex; align-items: center; justify-content: center;
    gap: 8px; overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; position: relative;
}
.news-card-media::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 80%);
}
.news-card-media > * { position: relative; z-index: 1; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card.is-featured { grid-row: span 2; }
.news-card.is-featured .news-card-media { aspect-ratio: auto; flex: 0 0 auto; height: 240px; }
.news-card.is-featured h3 { font-size: 20px; }
.news-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card-body h3 { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--heading); font-weight: 600; }
.news-card-body p { margin: 0; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .news-meta { margin-top: auto; }
.news-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.news-badges a.badge:hover { color: var(--accent); border-color: var(--accent); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 12px; color: var(--muted); }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }
.news-side { display: grid; gap: 14px; position: sticky; top: 86px; }
.side-box { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); padding: 16px; display: grid; gap: 10px; }
.side-box h3 { margin: 0 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.news-mini { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.news-mini:last-of-type { border-bottom: 0; padding-bottom: 0; }
.news-mini strong { font-size: 13.5px; line-height: 1.4; color: var(--heading); font-weight: 600; }
.news-mini:hover strong { color: var(--accent); }
.news-product { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.news-product:last-of-type { border-bottom: 0; }
.news-product > span:first-child { color: var(--text-soft); line-height: 1.35; }
.news-price { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.news-price s { color: var(--muted); font-size: 11.5px; }
.news-price em { font-style: normal; }
.news-game-hero { display: flex; gap: 18px; align-items: center; margin: 0 0 22px; }
.news-game-mark { width: 86px; height: 86px; border-radius: var(--radius); display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-media); border: 1px solid var(--line); color: var(--muted); }
.news-game-hero h1 { margin: 0 0 6px; font-size: 28px; }
.news-game-hero p { margin: 0 0 12px; }
.article-wrap { max-width: 1180px; }
.article-head { margin: 0 0 18px; }
.article-head h1 { margin: 10px 0 10px; font-size: 34px; line-height: 1.2; letter-spacing: -.6px; }
.article-lead { margin: 0 0 12px; color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 780px; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin: 0 0 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-body { font-size: 15.5px; line-height: 1.75; color: var(--text-body); min-width: 0; }
.article-body h2 { font-size: 24px; margin: 32px 0 12px; color: var(--heading); letter-spacing: -.3px; }
.article-body h3 { font-size: 19px; margin: 24px 0 10px; color: var(--heading); }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 16px; }
.article-body blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-alt); border-radius: 0 10px 10px 0; color: var(--text-dim); }
.article-body table { margin: 0 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.article-body pre { background: var(--surface-code); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 13px; }
.article-body code { background: var(--surface-code); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13px; }
.article-side { display: grid; gap: 14px; position: sticky; top: 86px; }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 10px; }
.toc { position: relative; }
.toc-link { display: block; font-size: 13px; color: var(--text-dim); padding: 5px 0; border-bottom: 1px solid var(--tint-line); }
.toc-link:hover { color: var(--accent); }
.toc-link.level-3 { padding-left: 12px; font-size: 12.5px; color: var(--muted); }
.toc-link .chip-count { margin-left: 6px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.article-nav a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.article-nav a:hover { border-color: var(--line-strong); }
.article-nav a.next { text-align: right; }
.article-nav strong { font-size: 13.5px; line-height: 1.4; color: var(--heading); }
@media (max-width: 700px) {
    .news-game-hero { flex-direction: column; align-items: flex-start; }
    .article-head h1 { font-size: 26px; }
    .article-nav { grid-template-columns: 1fr; }
    .news-card.is-featured { grid-row: auto; }
    .news-card.is-featured .news-card-media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}

/* FAQ */
.faq-search { display: flex; gap: 8px; margin: 0 0 22px; max-width: 640px; flex-wrap: wrap; }
.faq-search input { flex: 1; min-width: 200px; }
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { display: none; } }
.faq-side { position: sticky; top: 86px; }
.faq-main { display: grid; gap: 28px; min-width: 0; }
.faq-category h2 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.2px; }
.faq-category > .muted { margin: -4px 0 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); margin-bottom: 8px; overflow: hidden; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 14px 46px 14px 16px; position: relative;
    font-weight: 600; font-size: 14.5px; color: var(--heading); display: flex; gap: 10px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 18px; line-height: 1;
}
.faq-item[open] summary { color: var(--heading); border-bottom: 1px solid var(--line); }
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-answer { padding: 14px 16px 16px; font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin: 0; }
.faq-answer ul, .faq-answer ol { margin: 0 0 10px; padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-answer code { background: var(--surface-code); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
.faq-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.faq-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Service page (MMOEXP-style): game service nav, gold buy panel,
   item filter toolbar & cards, content/FAQ blocks
   --------------------------------------------------------------- */
.service-nav {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px;
    margin: 0 0 18px; border-bottom: 1px solid var(--line); scrollbar-width: none;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
}
.service-nav::-webkit-scrollbar { display: none; }
.service-tab {
    flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 9px 13px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); min-width: 136px;
}
.service-tab:hover { border-color: var(--line-strong); color: var(--heading); }
.service-tab.active { border-color: var(--accent); background: rgba(109,140,255,.08); color: var(--heading); }
.service-tab-icon {
    width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
    background: var(--surface-soft); color: var(--muted); flex: 0 0 auto;
}
.service-tab.active .service-tab-icon { background: var(--accent); color: var(--accent-ink); }
.service-tab-text { display: grid; gap: 1px; line-height: 1.25; }
.service-tab-text strong { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.service-tab-text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* Full-bleed service hero: game art behind the H1, purchase panel sits under it. */
.service-hero {
    position: relative; display: flex; align-items: flex-end;
    min-height: 300px; margin: 0 0 18px; padding: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
    background-color: #0f1526;
    background-image: var(--hero-image, linear-gradient(135deg, #1c2744, #0d1220));
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
.service-hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8,12,24,.88) 0%, rgba(8,12,24,.58) 46%, rgba(8,12,24,.16) 100%),
        linear-gradient(180deg, rgba(8,12,24,.08) 0%, rgba(8,12,24,.82) 100%);
}
.service-hero-inner { position: relative; z-index: 1; padding: 34px 36px 30px; max-width: 840px; }
.service-hero h1 { margin: 0 0 10px; font-size: 42px; line-height: 1.06; color: #fff; letter-spacing: -.01em; }
.service-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.76); }
.service-hero .head-badges { margin-top: 16px; }
.service-hero .head-badges .chip,
html[data-theme="light"] .service-hero .head-badges .chip {
    background: rgba(8,12,24,.74); border-color: rgba(255,255,255,.26); color: #fff;
    font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.service-hero .head-badges .chip strong,
html[data-theme="light"] .service-hero .head-badges .chip strong { color: #fff; }
.service-hero .head-badges .chip svg { color: #fff; }
@media (max-width: 900px) {
    .service-hero { min-height: 230px; }
    .service-hero-inner { padding: 24px 20px 22px; }
    .service-hero h1 { font-size: 30px; }
    .service-hero p { font-size: 13.5px; }
}

.page-head {
    display: flex; gap: 24px; align-items: center; justify-content: space-between;
    padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface-hero);
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.page-head::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.page-head::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.page-head-body { position: relative; z-index: 1; min-width: 0; }
.page-head h1 { font-size: 32px; margin-bottom: 8px; }
.page-head p { margin: 0; max-width: 720px; }
.head-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.page-head-cover {
    width: 170px; height: 110px; object-fit: cover; border-radius: 14px;
    border: 1px solid var(--line); position: relative; z-index: 1; flex: 0 0 auto;
}

.filter-bar {
    display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface-alt); margin-bottom: 18px;
}
.filter-field { display: grid; gap: 6px; }
.filter-field > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-field select { padding: 9px 11px; font-size: 13.5px; min-width: 180px; }

/* Segmented control: platform / server / region switch. */
.segmented {
    display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.segment {
    border: 0; background: transparent; color: var(--text-soft); font: inherit;
    font-size: 13px; font-weight: 600; line-height: 1; padding: 9px 15px;
    border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.segment:hover { color: var(--heading); background: var(--surface-2); }
.segment.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.category-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.category-row.sub { margin-top: -4px; }
.toolbar { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; }
.toolbar-search { flex: 1 1 320px; max-width: 460px; }
.toolbar-sort { display: flex; align-items: center; gap: 8px; min-width: 230px; }
.toolbar-sort span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.toolbar-sort select { padding: 9px 11px; font-size: 13.5px; }

.buy-stack { display: grid; gap: 16px; }
.buy-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
}
.buy-main { padding: 22px 24px; min-width: 0; }
.buy-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.buy-head-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; width: 100%; }
.buy-head-main > div:last-child { flex: 1 1 auto; min-width: 0; }
.buy-thumb {
    width: 64px; height: 64px; flex: 0 0 auto; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface-media);
}
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.buy-title { margin: 0 0 4px; font-size: 22px; }
.buy-unit-price { text-align: right; flex: 0 0 auto; display: grid; gap: 2px; }
.buy-unit-price strong { font-size: 18px; color: var(--accent); }
.buy-unit-price small { color: var(--muted); font-size: 11px; font-weight: 500; }
.preset-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.preset {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 12px 13px; min-height: 64px; text-align: left;
    border: 1px solid var(--line); border-radius: 12px; background: var(--input-bg);
    color: var(--text-soft); cursor: pointer; font-family: inherit;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.preset:hover { border-color: var(--line-strong); color: var(--heading); }
.preset.active { border-color: var(--accent); background: rgba(109,140,255,.10); color: var(--heading); box-shadow: inset 0 0 0 1px var(--accent); }
/* 折扣角标绝对定位在右上角，给标题留出空间，避免压住「10M Gold」 */
.preset:has(.preset-off) { padding-right: 46px; }
.preset-units { font-size: 16px; font-weight: 800; line-height: 1.1; color: var(--heading); letter-spacing: -.01em; }
.preset-price { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.preset.active .preset-price { color: var(--text); }
.preset-off {
    position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10.5px; font-weight: 800;
    color: var(--ok); background: rgba(53,208,127,.12); border-radius: 5px; padding: 1px 5px;
}
.preset-pop { position: absolute; bottom: 8px; right: 9px; font-style: normal; color: var(--accent); font-size: 11px; }
.buy-qty-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.qty-stepper {
    display: flex; align-items: center; border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden; background: var(--input-bg);
}
.qty-stepper button {
    width: 38px; height: 40px; border: 0; background: transparent;
    color: var(--text); font-size: 17px; cursor: pointer;
}
.qty-stepper button:hover { color: var(--accent); }
.qty-stepper input {
    width: 76px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    border-radius: 0; text-align: center; padding: 10px 4px; background: transparent;
}
.qty-stepper.small { background: var(--surface-deep); border-color: var(--line-strong); }
.qty-stepper.small button { width: 30px; height: 32px; font-size: 14px; }
.qty-stepper.small input { width: 52px; padding: 6px 2px; font-size: 13px; }
.qty-meta { display: grid; gap: 2px; font-size: 13.5px; }
.qty-meta small { color: var(--muted); font-size: 11.5px; }
.tier-ladder {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    padding-top: 12px; border-top: 1px dashed var(--line);
}
.tier-label { font-size: 12px; color: var(--muted); }
.tier-step { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); }
.tier-step.reached { border-color: var(--ok-line); color: var(--ok); background: rgba(53,208,127,.08); }
.buy-summary {
    border-left: 1px solid var(--line); background: var(--surface-panel); padding: 24px 22px;
    display: flex; flex-direction: column; gap: 12px;
}
.summary-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.summary-price { font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1.05; }
.summary-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.summary-saving { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.summary-saving s { color: var(--muted); }
.summary-save-line { font-size: 12.5px; color: var(--ok); }
.summary-bonus { font-size: 12.5px; color: var(--accent); }
.summary-next { font-size: 12px; color: var(--muted); line-height: 1.45; }
.buy-action { margin-top: 4px; }
.buy-specs { margin-top: 18px; }
.summary-trust {
    list-style: none; display: grid; gap: 6px; margin: 10px 0 0;
    padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.summary-trust li::before { content: "✓"; color: var(--ok); margin-right: 7px; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.item-card {
    display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px;
    background: linear-gradient(180deg, var(--panel), var(--surface-alt)); overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.item-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.item-media {
    position: relative; aspect-ratio: 16 / 9; background: var(--surface-media);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden;
}
.item-media::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 78%);
}
.item-media > * { position: relative; z-index: 1; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media-fallback {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
}
.item-stock { position: absolute; top: 10px; right: 10px; background: rgba(11,13,18,.82); backdrop-filter: blur(4px); }
.badge.item-stock {
    padding: 4px 9px; border-radius: 6px; letter-spacing: .03em;
    background: rgba(8,12,24,.9); border-color: rgba(255,255,255,.18); color: #eef2f8;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.badge.ok.item-stock { background: rgba(9,34,23,.92); border-color: rgba(62,207,142,.55); color: #8ff0bf; }
.badge.item-stock:not(.ok) { background: rgba(40,14,19,.92); border-color: rgba(232,96,112,.5); color: #ffb7c0; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item-title { margin: 0; font-size: 15px; line-height: 1.4; color: var(--heading); font-weight: 700; }
.item-field { display: grid; gap: 5px; }
.item-field span { font-size: 11.5px; color: var(--muted); }
.item-field select { padding: 8px 10px; font-size: 13px; }
.item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.item-price { font-size: 20px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.item-price small { font-size: 11px; color: var(--muted); font-weight: 500; }
.item-max { font-size: 11.5px; margin-top: -4px; }
.item-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.item-actions .btn { padding: 10px 16px; font-size: 13.5px; }

.content-block { margin: 36px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.content-block h2 { font-size: 24px; letter-spacing: -.3px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step-card {
    display: flex; gap: 12px; align-items: flex-start; padding: 16px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt);
}
.step-no {
    width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
    background: transparent; border: 1px solid rgba(109,140,255,.45);
    color: var(--accent); font-weight: 700; font-size: 12.5px; flex: 0 0 auto;
}
.step-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--heading); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.faq-list { display: grid; gap: 8px; }
.faq-item p { margin: 0; padding: 0 16px 16px; font-size: 14px; line-height: 1.7; color: var(--text-soft); }

@media (max-width: 900px) {
    .buy-panel { grid-template-columns: 1fr; }
    .buy-summary { border-left: 0; border-top: 1px solid var(--line); }
    .page-head { padding: 22px; }
    .page-head-cover { display: none; }
}
@media (max-width: 640px) {
    .page-head h1 { font-size: 26px; }
    .buy-main, .buy-summary { padding: 18px; }
    .item-grid { grid-template-columns: 1fr 1fr; }
    .preset-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preset { min-height: 58px; padding: 10px 11px; }
    .preset-units { font-size: 14.5px; }
    .filter-bar { gap: 12px; }
    .segmented { display: flex; }
    .segment { flex: 1 1 auto; text-align: center; }
}
@media (max-width: 480px) { .item-grid { grid-template-columns: 1fr; } }

/* 购物车 + 结算单页 */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-main { display: grid; gap: 18px; }
.cart-aside { position: sticky; top: 86px; }
.cart-aside .summary { position: static; }
.cart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cart-head h1 { margin: 0; font-size: 24px; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); margin-bottom: 10px; }
.cart-item .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--surface-media); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.cart-item-price { min-width: 70px; text-align: right; font-weight: 700; }
.cart-remove { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.cart-remove:hover { border-color: var(--danger); color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cart-coupon { display: flex; gap: 8px; }
.cart-coupon input { flex: 1; min-width: 0; }
.cart-coupon .btn { padding: 0 16px; }
.summary > label { display: block; margin: 4px 0 6px; }
.summary select { margin-bottom: 8px; }
.cart-subhead { margin: 18px 0 10px; font-size: 15px; color: var(--muted); }
.cart-submit { width: 100%; }
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-aside { position: static; }
    .cart-main, .cart-aside { min-width: 0; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .cart-item .stepper input { width: 56px; }
    .cart-item-actions { gap: 8px; }
}


/* ---------------------------------------------------------------
   Polish pass: compact cards, auth, empty states, mobile rhythm
   --------------------------------------------------------------- */
.mobile-cart { display: none; margin-left: auto; align-items: center; gap: 6px; color: var(--text-soft); }
.mobile-cart:hover { color: var(--heading); }
.mobile-search { display: none; align-items: center; color: var(--text-soft); }
.mobile-search:hover { color: var(--heading); }
.promo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface-soft); font-size: 13px; }
.promo-bar-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.promo-bar strong { letter-spacing: .08em; }
.promo-bar a { margin-left: auto; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .promo-bar { row-gap: 6px; } }

.crumbs { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }

.category-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.category-card .card-media {
    width: 52px; height: 52px; flex: 0 0 auto; margin: 0; border: 1px solid var(--line);
    border-radius: 8px; gap: 0;
}
.category-card .card-body { display: grid; gap: 2px; min-width: 0; }
.category-card .card-title { font-size: 14.5px; }
.category-card .card-sub { font-size: 12px; }
.category-card .card-foot { margin: 0; padding: 0; margin-left: auto; flex: 0 0 auto; }
.category-card .card-foot .badge { display: none; }
.category-card .card-foot .small { white-space: nowrap; font-size: 12px; color: var(--muted); }

.auth-wrap { max-width: 480px; margin: 26px auto 40px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { font-size: 34px; margin-bottom: 4px; }
.auth-card > p { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }
.auth-card > .auth-alt { margin: 18px 0 0; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .btn { width: 100%; padding: 12px; }
.auth-alt { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.auth-points div { display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: var(--text-soft); }
.auth-points .ico { color: var(--accent); }
.social-auth { margin-top: 18px; }
.social-auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.social-auth-sep::before, .social-auth-sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.social-auth-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.social-auth-buttons .btn { text-align: center; padding: 8px 10px; font-size: 13px; }
.wishlist-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.wishlist-btn:hover { border-color: var(--accent); color: var(--text); }
.wishlist-btn.is-active { border-color: #ff5d7a; color: #ff5d7a; background: rgba(255, 93, 122, .08); }
.wishlist-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 12, 17, .85); color: var(--muted); cursor: pointer; line-height: 1; }
.wishlist-remove:hover { border-color: #ff5d7a; color: #ff5d7a; }
.notice-list { display: grid; gap: 8px; }
.notice-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.notice-row:hover { border-color: var(--accent); }
.notice-row.is-unread { border-left: 3px solid var(--accent); }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.notice-row.is-unread .notice-dot { background: var(--accent); }
.notice-body { display: grid; gap: 2px; }
.notice-body span { color: var(--muted); font-size: 13px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.contact-side { display: grid; gap: 12px; }
.contact-form { display: grid; gap: 12px; }
.contact-form textarea { width: 100%; padding: 10px 12px; background: var(--surface-code); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; resize: vertical; }
.contact-success { display: flex; gap: 12px; align-items: flex-start; color: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.about-lead { max-width: 720px; font-size: 17px; color: var(--heading); margin: -2px 0 24px; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-grid h2, .about-steps h2 { font-size: 17px; margin: 0 0 8px; }
.about-steps { margin-top: 14px; }
.about-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.about-steps li span { display: block; font-size: 13px; }
.about-cta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) {
    .contact-grid, .about-grid { grid-template-columns: 1fr; }
}

.filter-panel.panel { padding: 16px; }
.filter-panel .field { margin-bottom: 12px; }
.filter-panel .field:last-child { margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--heading); cursor: pointer; }
.check input[type="checkbox"] {
    appearance: none; width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
    border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-deep); cursor: pointer;
    display: grid; place-items: center;
}
.check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.check input[type="checkbox"]:checked::after {
    content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-1px);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a1ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 13px;
    padding-right: 34px;
}
.select-wrap { position: relative; }
.select-wrap::after {
    content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
    border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.list-item { border-radius: var(--radius-sm); background: var(--surface); }

.site-footer { margin-top: 64px; }
.site-footer .brand-mark { width: 28px; height: 28px; }
.footer-grid h4 { font-size: 11px; letter-spacing: .12em; }

.pager a, .pager span { border-radius: 6px; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 860px) {
    .mobile-cart { display: inline-flex; }
    .mobile-search { display: inline-flex; margin-left: 14px; }
    .nav-toggle { margin-left: 4px; }
    .mobile-nav { background: var(--surface-deep); }
    .hero-carousel { padding: 56px 22px 0; margin-bottom: 30px; }
    .hero-slide h1, .hero-slide h2 { font-size: 38px; line-height: .96; }
    .hero-slide p { font-size: 14.5px; }
    .hero-carousel .chips { margin: 26px -22px 0; padding: 12px 22px; }
    .hero-carousel .chip { padding: 3px 14px; font-size: 12px; }
    .hero-carousel .chip:first-child { padding-left: 0; }
    .hero-bg { background-position: 72% center; }
    .hero-bg::after { background: linear-gradient(180deg, var(--hero-veil-1) 0%, var(--hero-veil-2) 55%, var(--hero-veil-3) 100%); }
    .section { margin-bottom: 34px; }
    .section-head h2 { font-size: 23px; }
    h1 { font-size: 32px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    /* 单个商品/服务卡在手机上占满整行，避免只占左半边显得残缺 */
    .card-grid > :only-child, .item-grid > :only-child { grid-column: 1 / -1; }
    .game-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card { padding: 11px; gap: 6px; }
    .card-foot { flex-wrap: wrap; }
    .card-foot .badge { white-space: normal; }
    .card-media { height: 92px; margin: -11px -11px 4px; }
    .game-tile { padding: 10px; }
    .game-tile .card-media { height: 84px; margin: -10px -10px 6px; }
    .category-card { padding: 10px; }
    .category-card .card-media { width: 44px; height: 44px; margin: 0; }
    .category-card .card-sub { display: none; }
    .news-grid, .news-grid.news-grid-3 { grid-template-columns: 1fr; }
    .news-grid > .news-card:only-child { flex-direction: column; max-width: none; }
    .news-grid > .news-card:only-child .news-card-media { width: 100%; flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 9; }
    .news-grid > .news-card:only-child .news-card-body { padding: 14px 16px 16px; }
    .news-grid > .news-card:only-child .news-card-body h3 { font-size: 17px; }
    .news-card.is-featured .news-card-media { height: 190px; }
    .auth-wrap { margin-top: 8px; }
    .auth-card { padding: 22px; }
    .empty-state { padding: 40px 18px; }
    .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-grid { grid-template-columns: 1fr 1fr; }
    .hero-slide h1, .hero-slide h2 { font-size: 34px; }
}

.lookup-layout { display: grid; grid-template-columns: minmax(0, 560px) 320px; gap: 40px; align-items: start; }
.lookup-card { padding: 22px; }
.lookup-card .field:last-of-type { margin-bottom: 4px; }
.lookup-help { padding: 20px; gap: 12px; }
.lookup-step { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.lookup-step .ico { color: var(--accent); margin-top: 2px; }
.lookup-help .btn { margin-top: 6px; justify-self: start; }
.trust-card { display: flex; gap: 12px; align-items: flex-start; }
.trust-card > .ico { color: var(--accent); margin-top: 3px; }
.trust-card strong { font-size: 14px; }
@media (max-width: 900px) { .lookup-layout { grid-template-columns: 1fr; gap: 20px; } }

.category-card .cat-chev { margin-left: auto; color: var(--icon-dim); }
.category-card .card-body { gap: 3px; }
.category-card .card-sub { color: var(--muted); }
@media (max-width: 860px) {
    .category-card .card-body .card-sub { display: block; }
    .category-card .cat-chev { display: none; }
}

.page-head-art { position: relative; z-index: 1; color: var(--art); flex: 0 0 auto; padding-right: 18px; }
@media (max-width: 900px) { .page-head-art { display: none; } }

.empty-inline { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: 13px; }
.empty-inline .ico { color: var(--icon-dim); }
.empty-inline a { margin-left: auto; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* header: never wrap */
.brand { white-space: nowrap; flex: 0 0 auto; }
.nav a, .nav-icon, .pref-trigger { white-space: nowrap; }
.nav-icon-label { display: inline; }
@media (max-width: 1180px) and (min-width: 861px) {
    .nav-icon-label { display: none; }
    .nav { gap: 0; }
    .nav a { padding: 0 9px; }
}

/* radios match the dark UI */
input[type="radio"] {
    appearance: none; width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
    border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-deep); cursor: pointer;
    display: grid; place-items: center;
}
input[type="radio"]:checked { border-color: var(--accent); }
input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* mobile: give item cards room for steppers and two actions */
@media (max-width: 520px) {
    .item-grid { grid-template-columns: 1fr; }
    .hero-carousel .chip:nth-child(odd) { border-left: 0; padding-left: 0; }
}

.games-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.games-cta strong { font-size: 16px; }
.games-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cart drawer (header cart -> side panel) ---------- */
button.nav-icon,
button.mobile-cart {
    background: transparent; border: 0; padding: 0; cursor: pointer;
    font-family: inherit; font-size: inherit; line-height: inherit;
}
.cart-count[hidden] { display: none; }

.mobile-nav-links .mobile-nav-cart {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line);
    background: transparent; color: var(--heading); font-family: inherit; font-size: 15px;
    text-align: left; cursor: pointer;
}
.mobile-nav-links .mobile-nav-cart:hover { color: var(--accent); }

.cart-drawer { position: fixed; inset: 0; z-index: 95; }
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop {
    position: absolute; inset: 0; background: var(--modal-scrim);
    backdrop-filter: blur(3px); animation: cart-drawer-fade .18s ease;
}
.cart-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(420px, 100vw);
    display: flex; flex-direction: column;
    background: var(--surface-deep); border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px var(--shadow-2);
    animation: cart-drawer-slide .22s ease;
}
.cart-drawer-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
@keyframes cart-drawer-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cart-drawer-slide { from { transform: translateX(28px); opacity: .5; } to { transform: none; opacity: 1; } }
body.cart-drawer-open { overflow: hidden; }

.cart-drawer-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0 0 2px; font-size: 22px; letter-spacing: -.01em; }
.cart-drawer-close {
    width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px; background: transparent;
    color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.cart-drawer-close:hover { border-color: var(--line-strong); color: var(--heading); }

.cart-drawer-items { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 20px 8px; }
.cart-drawer-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-drawer-item:last-child { border-bottom: 0; }
.cart-drawer-item .thumb {
    width: 56px; height: 56px; flex: 0 0 auto; border-radius: 9px;
    object-fit: cover; background: var(--surface-media); border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--muted);
}
.cart-drawer-item-main { flex: 1; min-width: 0; }
.cart-drawer-item-title {
    font-size: 14px; font-weight: 600; color: var(--heading);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-drawer-controls { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.cart-drawer-controls .stepper { gap: 5px; }
.cart-drawer-controls .stepper button { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.cart-drawer-controls .stepper input { width: 38px; height: 28px; padding: 0 2px; font-size: 13px; }
.cart-drawer-price { margin-left: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cart-drawer-controls .cart-remove { width: 28px; height: 28px; font-size: 16px; }

.cart-drawer-foot {
    display: grid; gap: 10px; padding: 16px 20px 20px;
    border-top: 1px solid var(--line); background: var(--surface-deep);
}
.cart-drawer-subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.cart-drawer-subtotal strong { font-size: 18px; }
.cart-drawer-foot .btn { width: 100%; justify-content: center; }
.cart-drawer-note { text-align: center; }

.cart-drawer-empty {
    flex: 1; display: grid; justify-items: center; align-content: center; gap: 8px;
    padding: 32px 28px; text-align: center;
}
.cart-drawer-empty-ico {
    width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 4px;
    border: 1px dashed var(--line-strong); border-radius: 50%; color: var(--icon-dim);
}
.cart-drawer-empty h3 { margin: 0; font-size: 16px; }
.cart-drawer-empty p { margin: 0; max-width: 260px; }
.cart-drawer-empty .btn { margin-top: 10px; }

@media (max-width: 520px) {
    .cart-drawer-panel { width: 100%; border-left: 0; }
}

.cart-drawer-continue {
    border: 0; background: transparent; padding: 0; cursor: pointer;
    color: var(--muted); font-family: inherit; font-size: 13px; text-align: center;
}
.cart-drawer-continue:hover { color: var(--heading); }

[x-cloak] { display: none !important; }

/* 声明页（条款 / 隐私 / 退款）：与前台布局同一套排版 */
.legal-page {
    max-width: 820px;
    margin: 40px auto 72px;
    padding: 0 4px;
}
.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin: 6px 0 20px;
}
.legal-body {
    color: var(--heading);
    font-size: 15.5px;
    line-height: 1.75;
}
.legal-body h2 { color: var(--heading); font-size: 21px; margin: 28px 0 10px; }
.legal-body h3 { color: var(--heading); font-size: 17px; margin: 22px 0 8px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent); }
.legal-meta { color: var(--muted); font-size: 12.5px; margin-top: 32px; }

/* ---------- Theme toggle (light / dark) ---------- */
.theme-toggle {
    width: 38px; height: 38px; padding: 0; flex: 0 0 auto;
    display: inline-grid; place-items: center;
    background: transparent; border: 1px solid var(--line); border-radius: 10px;
    color: var(--muted); cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-ico { display: none; line-height: 0; }
html[data-theme="dark"] .theme-toggle-ico--sun { display: inline-grid; }
html[data-theme="light"] .theme-toggle-ico--moon { display: inline-grid; }

/* ---------- Search dropdown scrim: blur the page, keep header crisp ---------- */
.page-scrim {
    position: fixed; inset: 0; z-index: 39;
    background: var(--scrim);
    -webkit-backdrop-filter: blur(6px) saturate(.92);
    backdrop-filter: blur(6px) saturate(.92);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}
html.search-panel-open .page-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
@media (min-width: 861px) {
    html.search-panel-open body { overflow: hidden; }
}

/* ---------- Light theme tuning (shadows, gradients, media) ---------- */
html[data-theme="light"] .site-header {
    box-shadow: 0 1px 0 rgba(23, 37, 84, .06), 0 8px 24px rgba(23, 37, 84, .05);
}
html[data-theme="light"] .site-header::after { opacity: .7; }
html[data-theme="light"] .search-panel { box-shadow: 0 24px 60px rgba(23, 37, 84, .16), inset 0 1px 0 var(--inset-hl); }
html[data-theme="light"] .lang-menu,
html[data-theme="light"] .pref-dialog { box-shadow: 0 18px 44px rgba(23, 37, 84, .16); }
html[data-theme="light"] .hero-carousel { background: linear-gradient(135deg, #ffffff, #f6f8ff); }
html[data-theme="light"] .page-head { background: linear-gradient(135deg, #ffffff, #f6f8ff); }
html[data-theme="light"] .hero-arrow { background: rgba(255, 255, 255, .82); }
html[data-theme="light"] .product-hero .ph { background: linear-gradient(135deg, #e9eefc, #f6f8ff); }
html[data-theme="light"] .card-media::before,
html[data-theme="light"] .news-card-media::before { opacity: .9; }
html[data-theme="light"] .brand-mark { box-shadow: 0 4px 14px rgba(71, 99, 232, .28); }
html[data-theme="light"] .price { color: #3a55d9; }
html[data-theme="light"] .search-submit { box-shadow: 0 2px 10px rgba(71, 99, 232, .28); }
html[data-theme="light"] .cart-drawer-panel { box-shadow: -24px 0 60px rgba(23, 37, 84, .18); }
@media (max-width: 860px) {
    .theme-toggle { width: 42px; height: 42px; }
}


/* ---------- Mobile bottom tab bar (<=860px) ---------- */
:root { --tabbar-h: 58px; }

.tabbar { display: none; }

@media (max-width: 860px) {
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
        display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: hidden;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        background: var(--surface-deep);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(3, 8, 20, .3);
        -webkit-tap-highlight-color: transparent;
    }

    .tabbar-item {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; min-width: 0; height: var(--tabbar-h); padding: 5px 2px;
        border: 0; background: none; color: var(--muted);
        font: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
        text-decoration: none; cursor: pointer;
        transition: color .15s ease;
    }

    .tabbar-item .ico { width: 22px; height: 22px; }
    .tabbar-label { max-width: 100%; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tabbar-item:hover, .tabbar-item:active, .tabbar-item.active { color: var(--accent); }
    .tabbar-item.active::before {
        content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
        width: 22px; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent);
    }

    .tabbar-ico { position: relative; display: inline-grid; place-items: center; }
    .tabbar-cart .cart-count {
        position: absolute; top: -6px; right: -10px;
        min-width: 16px; height: 16px; padding: 0 4px;
        font-size: 10px; box-shadow: 0 0 0 2px var(--surface-deep);
    }

    html[data-theme="light"] .tabbar { box-shadow: 0 -8px 24px rgba(23, 37, 84, .08); }
}

/* PWA install banner (uses theme tokens; light theme inherits) */
.pwa-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tabbar-h, 0px) + 12px);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid var(--line-mid);
    border-radius: .7rem;
    background: var(--surface-panel);
    color: var(--text-body);
    box-shadow: 0 10px 30px var(--shadow-2);
}
.pwa-banner-text { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 0; font-size: .78rem; }
.pwa-banner-text strong { color: var(--heading); font-size: .86rem; }
.pwa-banner-install { flex: 0 0 auto; }
.pwa-banner-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-mid);
    border-radius: .5rem;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
@media (min-width: 861px) {
    .pwa-banner { left: auto; right: 20px; bottom: 20px; width: 340px; }
}


/* 币种换算前隐藏基准币价格，避免非默认币种用户看到 USD 闪烁 */
html.money-pending [data-money] { visibility: hidden; }

/* ---------- Floating support dock & back-to-top ---------- */
.float-dock {
    position: fixed; right: 22px; bottom: 24px; z-index: 37;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

.dock-btn {
    width: 46px; height: 46px; padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    background: var(--surface-panel); color: var(--text-soft);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: background .15s ease, border-color .15s ease, color .15s ease,
        opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.dock-btn:hover { background: var(--hover-surface); border-color: var(--line-strong); color: var(--heading); }
.dock-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dock-support { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dock-support:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }

.dock-top { display: none; }
.float-dock.is-scrolled .dock-top { display: grid; }

.support-pop {
    display: flex; flex-direction: column; gap: 8px;
    width: 268px; padding: 14px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
}
.support-pop[hidden] { display: none; }
.support-pop-title { margin: 0; font-size: 14px; font-weight: 700; color: var(--heading); }
.support-pop-note { margin: 0 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.support-pop-link {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.support-pop-link:hover { border-color: var(--accent); color: var(--accent); }

html[data-theme="light"] .dock-btn { box-shadow: 0 6px 18px rgba(23, 37, 84, .14); }
html[data-theme="light"] .support-pop { box-shadow: 0 16px 40px rgba(23, 37, 84, .16); }

@media (max-width: 860px) {
    .float-dock {
        right: 14px;
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
    }
    .dock-btn { width: 44px; height: 44px; }
    .support-pop { width: min(268px, calc(100vw - 28px)); }
}

/* PWA 安装条占着右下角时把 dock 抬上去，避免互相遮挡 */
html.pwa-banner-open .float-dock { bottom: 104px; }
@media (max-width: 860px) {
    html.pwa-banner-open .float-dock {
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 92px);
    }
}

/* Trust chips + payment marks (competitor parity: ETA / safety / refund / support) */
.trust-chips {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(var(--trust-cols, 2), minmax(0, 1fr));
    gap: 8px 14px;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}
.trust-chips li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trust-chips .ico { color: var(--ok); flex: none; }
.trust-chips span { overflow-wrap: anywhere; }

.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pay-logo {
    font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1;
    padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px;
    color: var(--muted); background: var(--surface); text-transform: uppercase; white-space: nowrap;
}

@media (max-width: 520px) {
    .trust-chips { grid-template-columns: 1fr 1fr; gap: 7px 10px; }
    .pay-logo { font-size: 9px; padding: 4px 6px; }
}

/* Mobile sticky buy bar: sits above the tab bar, hidden on desktop */
.mobile-buybar { display: none; }
@media (max-width: 860px) {
    .mobile-buybar {
        position: fixed; left: 0; right: 0;
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
        z-index: 38;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 26px color-mix(in srgb, var(--bg) 55%, transparent);
    }
    .mobile-buybar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .mobile-buybar-title {
        font-size: 12.5px; color: var(--muted);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw;
    }
    .mobile-buybar-price { font-size: 17px; font-weight: 700; color: var(--heading); }
    .mobile-buybar-price small { font-size: 11px; font-weight: 500; color: var(--muted); }
    .mobile-buybar .btn { flex: none; padding: 10px 18px; }
    body:has(.mobile-buybar) {
        padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 68px);
    }
}

/* Desktop sticky buy bar: appears after the offer section scrolls out */
.desktop-buybar { display: none; }
@media (min-width: 861px) {
    .desktop-buybar {
        display: block;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 38;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -12px 30px rgba(0, 0, 0, .22);
        transform: translateY(105%); visibility: hidden;
        transition: transform .22s ease, visibility .22s;
    }
    .desktop-buybar.is-visible { transform: none; visibility: visible; }
    .desktop-buybar-inner {
        width: min(1180px, calc(100% - 48px)); margin: 0 auto;
        display: flex; align-items: center; gap: 18px; padding: 12px 0;
    }
    .desktop-buybar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
    .desktop-buybar-title {
        font-weight: 700; color: var(--heading);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw;
    }
    .desktop-buybar-amount { font-size: 12.5px; color: var(--muted); }
    .desktop-buybar-stepper { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
    .desktop-buybar-stepper button {
        width: 34px; height: 34px; border: 0; cursor: pointer;
        background: var(--input-bg); color: var(--heading); font-size: 17px; line-height: 1;
    }
    .desktop-buybar-stepper button + button { border-left: 1px solid var(--line); }
    .desktop-buybar-stepper button:hover { background: color-mix(in srgb, var(--heading) 10%, var(--input-bg)); }
    .desktop-buybar-price { font-size: 20px; font-weight: 800; color: var(--heading); white-space: nowrap; }
    .desktop-buybar-price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; }
    .desktop-buybar .btn { flex: none; min-width: 150px; }
    body:has(.desktop-buybar) { padding-bottom: 72px; }
}

/* Ratings & reviews */
.rating-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--line-strong); }
.rating-stars .rating-star.is-on { color: var(--accent); fill: currentColor; }
.buy-rating { display: flex; align-items: center; gap: 7px; margin-top: 5px; }

.reviews-section { margin-top: 38px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reviews-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.reviews-summary {
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.reviews-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.reviews-score strong { font-size: 42px; line-height: 1; letter-spacing: -.02em; color: var(--heading); }
.reviews-bars { display: grid; gap: 6px; align-content: center; }
.reviews-bar { display: grid; grid-template-columns: 28px minmax(0, 1fr) 38px; align-items: center; gap: 10px; }
.reviews-track { height: 7px; border-radius: 99px; background: var(--input-bg); overflow: hidden; }
.reviews-track > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.review-list { display: grid; gap: 12px; margin-top: 16px; }
.review { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

/* 首页评价走马灯：横向自动循环，悬停暂停（逻辑见 public/js/review-marquee.js） */
.review-marquee {
    position: relative; margin-top: 16px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.review-marquee-track { display: flex; width: max-content; will-change: transform; backface-visibility: hidden; }
.review-marquee-group { display: flex; gap: 12px; padding-right: 12px; }
.review-marquee .review { flex: 0 0 320px; width: 320px; }
@media (max-width: 640px) {
    .review-marquee .review { flex-basis: 272px; width: 272px; }
}
@media (prefers-reduced-motion: reduce) {
    .review-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .review-marquee-track { will-change: auto; }
}
.review-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-top time { margin-left: auto; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); }
.review h3 { font-size: 15px; margin: 8px 0 0; }
.review p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.reviews-more { margin-top: 14px; }

@media (max-width: 720px) {
    .reviews-summary { grid-template-columns: 1fr; gap: 14px; }
    .reviews-score strong { font-size: 34px; }
    .review-top time { margin-left: 0; }
    .reviews-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}

.hero-rating { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Product specs */
.spec-table {
    display: grid; gap: 10px; margin-top: 12px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg);
}
.spec-group { display: grid; gap: 4px; }
.spec-group-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-row { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); gap: 10px; font-size: 12.5px; }
.spec-row span { color: var(--muted); }
.spec-row strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.card-specs span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.card-specs strong { color: var(--text); font-weight: 600; }
.card-desc {
    margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-soft);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service-card-cover {
    display: block; width: 100%; height: 190px; object-fit: cover;
    border-radius: 10px; margin-bottom: 12px; background: var(--surface-media);
}
@media (max-width: 640px) {
    .service-card-cover { height: 150px; }
}

@media (max-width: 520px) {
    .spec-row { grid-template-columns: 1fr; gap: 1px; }
}

/* Coupon center */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0 0 4px; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.coupon-card {
    display: flex; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: var(--surface); min-height: 168px;
}
.coupon-card.is-claimed { opacity: .78; }
.coupon-value {
    flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    background: linear-gradient(160deg, var(--accent-soft, var(--input-bg)), var(--surface-alt));
    border-right: 1px dashed var(--line-strong); padding: 12px;
}
.coupon-value strong { font-size: 24px; color: var(--heading); line-height: 1.1; text-align: center; }
.coupon-value span { font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.coupon-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; min-width: 0; flex: 1; }
.coupon-body h2 { font-size: 15px; margin: 0; line-height: 1.3; }
.coupon-code { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--accent); }
.coupon-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.coupon-claim { margin-top: auto; align-self: flex-start; padding: 7px 14px; font-size: 13px; }
.coupon-claimed { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ok); }

/* VIP */
.vip-current { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.vip-current h2 { margin: 4px 0 2px; }
.vip-progress { flex: 1 1 320px; display: grid; gap: 8px; }
.vip-progress-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.vip-track { height: 8px; border-radius: 99px; background: var(--input-bg); overflow: hidden; }
.vip-track > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.vip-guest { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.vip-guest > div { flex: 1 1 240px; }
.vip-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.vip-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.vip-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vip-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vip-card-head h3 { margin: 0; font-size: 17px; }
.vip-discount { display: flex; align-items: baseline; gap: 6px; }
.vip-discount strong { font-size: 26px; color: var(--heading); }
.vip-discount span { font-size: 12px; color: var(--muted); }
.vip-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.vip-perks li::before { content: "✓"; color: var(--ok); margin-right: 6px; }

@media (max-width: 520px) {
    .coupon-card { min-height: 0; }
    .coupon-value { flex-basis: 88px; }
    .coupon-value strong { font-size: 20px; }
}

.vip-standard { font-size: 15px !important; color: var(--muted) !important; }

/* Footer trust badge + newsletter */
.trust-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--muted); text-decoration: none; }
.trust-badge:hover { color: var(--text); }
.newsletter { margin-top: 16px; max-width: 320px; }
.newsletter label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.newsletter-row { display: flex; gap: 6px; }
.newsletter input {
    flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px;
    color: var(--text); background: var(--input-bg); border: 1px solid var(--line); border-radius: 8px;
}
.newsletter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.newsletter .btn { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.newsletter-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.newsletter-error { display: block; margin-top: 4px; font-size: 11px; color: var(--danger); }
.newsletter-done { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); margin: 0; }

/* How it works */
.how-steps { margin-top: 38px; }
.how-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.how-step {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.how-step .ico { color: var(--accent); }
.how-step strong { font-size: 14px; }
.how-step p { margin: 0; }
.how-step-no {
    position: absolute; top: 12px; right: 14px;
    font-size: 12px; font-weight: 700; color: var(--muted);
}

/* First-visit welcome offer */
.welcome-pop {
    position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(0, 0, 0, .55);
}
.welcome-pop[x-cloak] { display: none; }
.welcome-pop-card {
    position: relative; width: min(400px, 100%); display: grid; gap: 8px;
    padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px;
    background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.welcome-pop-card h3 { margin: 0; font-size: 20px; }
.welcome-pop-card p { margin: 0; }
.welcome-pop-close {
    position: absolute; top: 8px; right: 12px; border: 0; background: none;
    color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.welcome-code {
    margin: 6px 0; padding: 8px 12px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .12em; color: var(--accent);
}

@media (max-width: 720px) {
    .how-steps-grid { grid-template-columns: 1fr; gap: 10px; }
}

.welcome-pop-card > .badge { justify-self: start; }


/* Sell to us: form + guarantees side column */
.sell-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .sell-layout { grid-template-columns: 1fr; } }

/* ---- Game hub (/game/{slug}) ------------------------------------------- */
.hub-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.72); }
.hub-stats strong { color: #fff; font-size: 15px; }
.hub-service-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hub-offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-service-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; text-decoration: none; }
.hub-service-card .card-media { height: 112px; margin: -12px -12px 4px; }
.hub-service-head { display: flex; align-items: center; gap: 8px; }
.hub-service-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-soft); color: var(--accent); flex: none; }
.hub-service-card .card-title { margin: 0; }
.hub-service-btn { margin-top: auto; text-align: center; }
.hub-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin: 24px 0 8px; }
.hub-steps h2, .hub-links h2 { margin: 0 0 4px; font-size: 18px; }
.hub-steps ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.hub-steps li { display: flex; align-items: flex-start; gap: 10px; }
.hub-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.hub-steps li p { margin: 2px 0 0; color: var(--muted); }
.hub-links { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.hub-links a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.hub-links a:hover { background: var(--surface-soft); }
.hub-links a > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.hub-links small { color: var(--muted); font-size: 12px; }
.hub-link-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-soft); color: var(--accent); flex: none; }

@media (max-width: 760px) {
    .hub-stats { gap: 4px 14px; font-size: 12px; }
    .hub-stats strong { font-size: 14px; }
    .hub-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hub-service-card { padding: 10px; }
    .hub-service-card .card-media { height: 84px; margin: -10px -10px 2px; }
    .hub-service-btn { display: none; }
    .hub-service-card .card-sub { font-size: 12px; }
    .hub-bottom { grid-template-columns: 1fr; }
    /* 横向服务 tab 的可滚动提示 */
    .service-nav { scroll-snap-type: x proximity; mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%); }
    .service-tab { scroll-snap-align: start; }
}

/* 移动端单列布局：侧栏会变成整屏宽，sticky 钉住后会被后面的列表盖住，一律退回普通流 */
@media (max-width: 900px) {
    .filter-panel, .summary, .news-side, .article-side { position: static; top: auto; }
}
