@charset "UTF-8";

/* 旗帜 emoji：Windows 桌面 Chrome/Edge/Firefox 无旗帜字形，区域指示符会被渲染成两个字母（如 GB/US）。
   自托管 Twemoji 旗帜字体补齐；unicode-range 限定后仅在页面出现旗帜字符时才按需下载（~78KB）。 */
@font-face {
    font-family: 'Twemoji Country Flags';
    src: url('../fonts/TwemojiCountryFlags.woff2') format('woff2');
    font-display: swap;
    unicode-range: U+1F1E6-1F1FF;
}

/* ⚠️ 改完此文件后必须运行根目录 build.ps1 重新生成指纹并更新 index.html 引用，再上传服务器 */

/* 首屏语言预判：英文访客在 main.js 完成翻译前隐藏 body，避免中文闪烁；apply() 跑完移除此属性 */
html[data-flash-hide] body { visibility: hidden; }

/* ============================================================
   Expo-inspired Design System (white canvas / black CTA / blue inline link)
   01 Reset + Design Tokens    02 Layout & Typography   03 Navigation
   04 Buttons                  05 Hero (sky gradient + device mockup)
   06 Cards & Badges           07 Broker Panels         08 Tools & Calculators
   09 Sub-pages & Content      10 Footer               11 Ticker & Toast
   12 Wheel / Mascot / Pay     13 Animations & Reveal   14 Responsive
   ============================================================ */

/* ===== 01 RESET + DESIGN TOKENS ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* — Brand & Accent — */
    --color-primary: #000000;          /* pure black: primary CTA fill only */
    --color-primary-active: #1a1a1a;   /* press state */
    --color-text-link: #0d74ce;        /* inline body links ONLY — never CTA */
    --color-text-link-secondary: #476cff; /* legal links in footer */
    --color-accent-preview: #8145b5;
    --color-semantic-success: #16a34a;
    --color-semantic-error: #eb8e90;

    /* — Ink & Body — */
    --color-ink: #171717;
    --color-body: #60646c;
    --color-body-strong: #171717;
    --color-muted: #999999;
    --color-muted-soft: #cccccc;

    /* — Surface — */
    --color-canvas: #ffffff;
    --color-canvas-soft: #fafafa;
    --color-surface-card: #ffffff;
    --color-surface-strong: #f0f0f3;  /* badges, tiles, secondary buttons */
    --color-surface-dark: #171717;     /* code blocks, dark cards, featured pricing */
    --color-surface-dark-elevated: #1a1a1a;

    /* — On-* — */
    --color-on-primary: #ffffff;
    --color-on-dark: #ffffff;
    --color-on-dark-soft: #b0b4ba;

    /* — Hairlines — */
    --color-hairline: #f0f0f3;
    --color-hairline-soft: #f5f5f7;
    --color-hairline-strong: #dcdee0;

    /* — Hero gradient (sky wash, hero ONLY) — */
    --color-gradient-sky-light: #cfe7ff;
    --color-gradient-sky-mid: #a8c8e8;

    /* — Rounded scale (compact developer-ergonomic) — */
    --rounded-none: 0px;
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 8px;      /* CTA buttons, inputs, ecosystem tiles */
    --rounded-lg: 12px;     /* feature cards, code blocks, pricing tiers */
    --rounded-xl: 16px;     /* device-mockup cards */
    --rounded-xxl: 24px;
    --rounded-pill: 9999px; /* badges ONLY — never CTAs */

    /* — Spacing (4px base, 96px section rhythm) — */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-base: 16px;
    --space-md: 20px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 96px;

    /* — Elevation — */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);   /* single tier, hover cards */

    /* — Typography — */
    --font-sans: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'Twemoji Country Flags', 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* — Runtime surfaces (nav/ticker glass, amber tip, ripple, hero glow) — */
    --color-nav-bg: rgba(255, 255, 255, 0.82);
    --color-ticker-bg: rgba(255, 255, 255, 0.92);
    --color-tip-text: #9a6b15;
    --color-tip-bg: #fdf6e8;
    --color-tip-border: #f0e0bc;
    --color-ripple: rgba(255, 255, 255, 0.35);
    --color-hero-glow: rgba(207, 231, 255, 0.55);
    --color-hero-glow-soft: rgba(168, 200, 232, 0.2);
}

/* ===== 夜间模式（严格按 DESIGN-expo 中性基因推导：卡片复用规范 surface-dark #171717，
        画布/发丝线同为中性灰零蓝调，CTA 反白配规范 ink 做字色，hero 低饱和深夜大气） ===== */
html[data-theme="dark"] {
    color-scheme: dark;
    /* Brand: 白 CTA（唯一反转），字色用规范 ink */
    --color-primary: #ffffff;
    --color-primary-active: #e9e9ec;
    --color-on-primary: #171717;
    --color-text-link: #6cb4f5;
    --color-text-link-secondary: #7c93ff;
    /* Ink & Body: 中性白 + cool gray（延续 body #60646c 的冷灰基因） */
    --color-ink: #f2f2f4;
    --color-body: #9b9fa8;
    --color-body-strong: #f2f2f4;
    --color-muted: #77777d;
    --color-muted-soft: #4d4d52;
    /* Surface: 卡片 = 规范 surface-dark 原值，画布更深一级拉开层次 */
    --color-canvas: #101012;
    --color-canvas-soft: #141416;
    --color-surface-card: #171717;
    --color-surface-strong: #1f1f22;
    --color-surface-dark: #1d1d20;
    --color-surface-dark-elevated: #26262a;
    --color-on-dark: #f2f2f4;
    --color-on-dark-soft: #a8abb2;
    /* Hairlines: 中性发丝线 */
    --color-hairline: #262629;
    --color-hairline-soft: #1e1e21;
    --color-hairline-strong: #303034;
    /* Runtime surfaces */
    --color-nav-bg: rgba(16, 16, 18, 0.82);
    --color-ticker-bg: rgba(16, 16, 18, 0.92);
    --color-tip-text: #d9a441;
    --color-tip-bg: #262014;
    --color-tip-border: #453a1c;
    --color-ripple: rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Hero 月光蓝大气（低饱和，替换浅色天蓝光晕，避免深底上灰蒙死黑） */
    --color-hero-glow: rgba(96, 138, 200, 0.17);
    --color-hero-glow-soft: rgba(64, 98, 155, 0.07);
}

/* 夜间下 Discord 按钮反白突出（白底 + 规范 ink 字色，图标为深色 fill 直接适配） */
html[data-theme="dark"] .discord-btn {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}
html[data-theme="dark"] .discord-btn:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-canvas);
    color: var(--color-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: rgba(13, 116, 206, 0.15);
    color: var(--color-ink);
}

:focus-visible {
    outline: 2px solid var(--color-text-link);
    outline-offset: 2px;
    border-radius: var(--rounded-xs);
}

/* ===== Scrollbar (unobtrusive) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-canvas); }
::-webkit-scrollbar-thumb {
    background: var(--color-hairline-strong);
    border-radius: 10px;
    border: 2px solid var(--color-canvas);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-muted-soft); }

/* ===== 02 LAYOUT & TYPOGRAPHY ===== */
main#main {
    position: relative;
    z-index: 2;
    background: transparent;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--space-section) 0;
}

.section.pt-0 { padding-top: 0; }

.section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    max-width: 720px;
}

/* Badge pill (caption-uppercase): 11px / 600 / 0.88px ltr / pill */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.88px;
    text-transform: uppercase;
    color: var(--color-ink);
    background: var(--color-surface-strong);
    border-radius: var(--rounded-pill);
    line-height: 1.4;
}
.tag-blue {
    background: rgba(13, 116, 206, 0.08);
    color: var(--color-text-link);
}

/* display-lg (36/600/-1.08) section heads */
.section-title,
.block-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.08px;
    color: var(--color-ink);
    margin-bottom: 0;
}

/* Inline blue link — restricted use: body copy ONLY, never CTA */
.inline-link,
a.inline-link {
    color: var(--color-text-link);
    font-weight: 500;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: -48px;
    left: 16px;
    z-index: 400;
    padding: 10px 18px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 0 0 var(--rounded-md) var(--rounded-md);
    font-weight: 500;
    font-size: 14px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== 03 NAVIGATION ===== */
/* top-nav: white canvas, 64px, ink text, left logo, center menu, right sign-in+CTA */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--color-nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-hairline);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--color-hairline-strong);
}

/* Brand wordmark */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.2px;
    color: var(--color-ink);
    line-height: 1;
    flex-shrink: 0;
}
.nav-brand svg {
    display: block;
}
.nav-brand span {
    color: var(--color-body);
    font-weight: 400;
}

/* Nav links (14/500)
   flex 流内 margin:auto 居中：参与 navbar 宽度计算，
   与右侧 Discord/主题按钮互相避让（日韩文导航较长时不再重叠） */
.nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    min-width: 0;
}
.nav-links a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rounded-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink);
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--color-ink);
    background: var(--color-hairline-soft);
}
.nav-links a.active {
    color: var(--color-ink);
    background: var(--color-surface-strong);
}

/* Discord / Get-started button —— 与 .btn-primary 主按钮同款视觉（主色填充），细宽扁长比例 */
.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 56px;
    height: 36px;
    border-radius: var(--rounded-md);
    background: var(--color-primary);
    color: var(--color-on-primary);
    border: 1px solid var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: all 0.18s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.discord-btn:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.discord-btn img {
    display: block;
    width: 18px;
    height: 18px;
    /* 亮色黑底主按钮 → 图标转白；深色白底由下方规则还原深色图标 */
    filter: brightness(0) invert(1);
}
html[data-theme="dark"] .discord-btn img {
    filter: none;
}
/* 中档宽度下 Discord 按钮保持文字但收紧横向留白；1024px 以下才缩为纯图标防挤压（此时已接近移动端抽屉） */
@media (max-width: 1280px) {
    .discord-btn { margin-right: 8px; padding: 5px 28px; }
}
@media (max-width: 1024px) {
    .discord-btn { padding: 5px 14px; }
    .discord-btn .discord-text { display: none; }
}

/* 语言切换：悬停下拉（桌面）+ 分段切换（移动菜单） */
/* ===== 多语言 CJK 字体栈：Inter 负责拉丁字母/数字，各语言回退本地系统 CJK 字体（零网络字体开销） ===== */
html[lang='zh-CN'] { --font-sans: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
html[lang='zh-Hant'] { --font-sans: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'PingFang TC', 'Hiragino Sans CNS', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; }
html[lang='ja'] { --font-sans: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Noto Sans JP', sans-serif; }
html[lang='ko'] { --font-sans: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }

.lang-menu {
    position: relative;
    flex-shrink: 0;
}
.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--rounded-md);
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.lang-trigger:hover,
.lang-menu.open .lang-trigger {
    border-color: var(--color-ink);
}
.lang-caret {
    color: var(--color-muted);
    transition: transform 0.2s ease;
}
/* — 主题切换按钮（桌面 nav 图标钮 + 移动菜单行钮） — */
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-md);
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    color: var(--color-ink);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.theme-btn:hover {
    border-color: var(--color-ink);
}
/* — 主题图标：SVG 线性双图标（lucide 风格），纯 CSS 驱动旋转淡入切换 — */
.theme-ic {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
}
.theme-ic svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.ic-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}
.ic-moon {
    opacity: 1;
    transform: none;
}
html[data-theme="dark"] .ic-sun {
    opacity: 1;
    transform: none;
}
html[data-theme="dark"] .ic-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

/* — 国际主流微交互：统一按压反馈（按下微缩回弹） — */
.discord-btn:active,
.theme-btn:active,
.m-theme:active,
.lang-opt:active,
.btn-ghost:active {
    transform: scale(0.97);
}

/* — 导航滚动状态：滚过后底边发丝线加深（主流 nav 质感） — */
.navbar.scrolled {
    box-shadow: 0 1px 0 var(--color-hairline-strong);
}
.m-theme {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--rounded-md);
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.m-theme:hover {
    border-color: var(--color-ink);
}
.lang-menu.open .lang-caret {
    transform: rotate(180deg);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 152px;
    padding: 6px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 110;
}
/* 下拉可视性完全由 JS 的 .open 控制（移除 hover/:focus-within），保证真机触屏再点必收回 */
.lang-menu.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown::before {
    /* 悬停桥接：鼠标从按钮移向下拉途中不中断 hover */
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
.lang-opt {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--rounded-sm);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.lang-opt:hover {
    background: var(--color-hairline-soft);
    color: var(--color-ink);
}
.lang-opt.active {
    color: var(--color-ink);
    background: var(--color-surface-strong);
}
.lang-switch {
    position: relative;
    margin-top: 12px;
}
/* 移动菜单语言切换：点一下展开、再点收回（与桌面导航下拉一致） */
.lang-switch-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--rounded-md);
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.lang-switch-toggle:hover {
    border-color: var(--color-ink);
}
.lang-switch-toggle .lang-caret {
    color: var(--color-muted);
    transition: transform 0.2s ease;
}
.lang-switch.open .lang-switch-toggle .lang-caret {
    transform: rotate(180deg);
}
.lang-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
    padding: 0 4px;
    background: var(--color-surface-strong);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-block: 0 0;
    transition: max-height 0.26s ease, opacity 0.22s ease, padding 0.22s ease;
}
.lang-switch.open .lang-options {
    max-height: 200px;
    opacity: 1;
    padding-block: 4px;
}
.lang-options .lang-opt {
    min-width: 0;
    text-align: center;
    padding: 9px 4px;
    font-size: 13px;
    border-radius: var(--rounded-pill);
}
.lang-options .lang-opt.active {
    background: var(--color-canvas);
    box-shadow: var(--shadow-soft);
}
/* 小屏收起导航栏下拉，用移动菜单里的分段切换 */
@media (max-width: 480px) {
    .navbar .lang-menu { display: none; }
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-md);
    color: var(--color-ink);
    cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-canvas);
    border-left: 1px solid var(--color-hairline-strong);
    padding: 20px;
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .close-btn {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-md);
    color: var(--color-body);
    cursor: pointer;
    margin-bottom: 12px;
}
.mobile-menu a {
    padding: 12px 14px;
    border-radius: var(--rounded-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
    transition: all 0.15s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--color-hairline-soft);
    color: var(--color-ink);
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* ===== 04 BUTTONS ===== */
/* button-primary: pure black, 40h, rounded-md, 10/18 padding, on-primary white */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--rounded-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn-primary:active {
    background: #000;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* button-secondary: white card + 1px hairline-strong border */
.btn-secondary {
    background: var(--color-surface-card);
    color: var(--color-ink);
    border-color: var(--color-hairline-strong);
}
.btn-secondary:hover {
    border-color: var(--color-ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-on-primary);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--rounded-md);
    transition: all 0.22s ease;
}
.btn-cta:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.btn-cta-secondary {
    background: var(--color-surface-card);
    color: var(--color-ink);
    border-color: var(--color-hairline-strong);
}
.btn-cta-secondary:hover {
    background: var(--color-canvas-soft);
    color: var(--color-ink);
    border-color: var(--color-ink);
    box-shadow: var(--shadow-soft);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== 05 HERO ===== */
/* hero-band: canvas bg + soft sky-blue gradient atmospheric wash */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 72px;
    overflow: hidden;
    background: var(--color-canvas);
}

/* Sky gradient wash — ONLY in hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 12%, var(--color-hero-glow) 0%, var(--color-hero-glow-soft) 40%, transparent 75%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--space-xxl);
}

/* display-mega: 64px / 600 / 1.05 / -1.92px */
.hero h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -1.92px;
    color: var(--color-ink);
    margin-bottom: var(--space-md);
}
.hero h1 .text-gradient {
    /* Brand's strongest display: ink; no gradient trickery. */
    background: none;
    -webkit-text-fill-color: var(--color-ink);
    background-clip: unset;
    -webkit-background-clip: unset;
}
/* body-md subhead */
.hero p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-body);
    max-width: 560px;
    margin: 0 auto var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}


/* ===== 06 CARDS & BADGES ===== */
/* feature-card: surface-card / ink text / title-md 18/600 / rounded-lg 12 / 24 pad / hairline-strong border */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3 { grid-template-columns: 1fr; } }

.card {
    position: relative;
    background: var(--color-surface-card);
    color: var(--color-ink);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease,
                box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card:hover {
    border-color: var(--color-muted-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.card.zoomed,
.card.zoomed:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--color-ink);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rounded-md);
    background: var(--color-surface-strong);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s ease, background 0.2s ease;
}
.card:hover .icon {
    transform: scale(1.08);
}
.card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-ink);
    letter-spacing: -0.2px;
    margin: 0;
}
.card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0;
}

/* ===== 07 BROKER PANELS ===== */
.tools-panel {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}
.tools-panel .tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 720px;
}
.tools-panel .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: var(--color-canvas);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    transition: all 0.2s ease;
    gap: 8px;
    width: 100%;
    min-width: 0;
    cursor: pointer;
}
.tools-panel .tool-item:hover {
    border-color: var(--color-ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.tools-panel .tool-item .app-icon svg,
.tools-panel .tool-item .app-icon img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-sm);
    object-fit: cover;
}
.tools-panel .tool-item .app-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink);
    text-align: center;
}

.brokers-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: var(--space-lg);
}
.brokers-wrap > *:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .brokers-wrap { grid-template-columns: 1fr; } }

.brokers-header {
    grid-column: 1 / -1;
    padding: 0 0 8px;
}
.brokers-header .bh-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.84px;
    color: var(--color-ink);
    padding-left: 14px;
    position: relative;
}
.brokers-header .bh-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    border-radius: 2px;
    background: var(--color-ink);
}

.broker-panel {
    margin-top: 0;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    transition: all 0.25s ease;
}
.broker-panel:hover {
    border-color: var(--color-muted-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.broker-panel .bp-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 320px;
    min-width: 280px;
}
.broker-panel .bp-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.broker-panel:hover .bp-icon { transform: translateY(-3px) scale(1.05); }
.broker-panel .bp-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rounded-lg);}
.bp-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.3px;
}
.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-link);
    background: rgba(13, 116, 206, 0.08);
    border: 1px solid rgba(13, 116, 206, 0.2);
    border-radius: var(--rounded-pill);
}
.bp-desc {
    font-size: 14px;
    color: var(--color-body);
    line-height: 1.55;
    margin: 0;
}
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.bp-tags span {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: var(--rounded-pill);
    background: var(--color-surface-strong);
    color: var(--color-body-strong);
}
.bp-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-primary);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--rounded-md);
    transition: all 0.2s ease;
}
.bp-btn:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Broker detail page components ===== */
.broker-notice-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 20px 0 24px;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline-strong);
    border-left: 3px solid var(--color-semantic-error);
    border-radius: var(--rounded-md);
}
.bnb-ic {
    width: 30px;
    height: 30px;
    border-radius: var(--rounded-sm);
    background: rgba(235, 142, 144, 0.12);
    border: 1px solid rgba(235, 142, 144, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.bnb-body {
    font-size: 14px;
    color: var(--color-body);
    line-height: 1.7;
}
.bnb-body b { color: var(--color-ink); font-weight: 600; }

.block-title {
    position: relative;
    padding-left: 14px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin: 38px 0 14px;
}
.block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.05em;
    border-radius: 2px;
    background: var(--color-ink);
}
.block-title:first-of-type { margin-top: 24px; }

.broker-detail {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 28px 28px;
    margin-bottom: 28px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.broker-detail:hover {
    border-color: var(--color-muted-soft);
    box-shadow: var(--shadow-soft);
}
.bd-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.bd-rank {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink);
    background: var(--color-surface-strong);
    border-radius: var(--rounded-sm);
    padding: 4px 10px;
    flex-shrink: 0;
}
.bd-icon-lg {
    width: 64px;
    height: 64px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bd-icon-lg img { width: 100%; height: 100%; object-fit: cover; }
.bd-head-body { flex: 1; min-width: 200px; }
.bd-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bd-name-row h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--color-ink);
}
.bd-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--rounded-pill);
    border: 1px solid;
    letter-spacing: 0.04em;
}
.bd-badge-gold {
    color: var(--color-accent-preview);
    background: rgba(129, 69, 181, 0.08);
    border-color: rgba(129, 69, 181, 0.2);
}
.bd-badge-blue {
    color: var(--color-text-link);
    background: rgba(13, 116, 206, 0.08);
    border-color: rgba(13, 116, 206, 0.2);
}
.bd-meta {
    font-size: 13px;
    color: var(--color-body);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.bd-meta .dot { color: var(--color-muted-soft); padding: 0 4px; }
.bd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.bd-cell {
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    padding: 16px 18px;
    transition: all 0.2s ease;
}
.bd-cell:hover { border-color: var(--color-hairline-strong); }
.bd-cell-k {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.bd-cell-v {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.2px;
}
.bd-cell-v.highlight-blue { color: var(--color-text-link); }
.bd-cell p {
    font-size: 13px;
    color: var(--color-body);
    margin-top: 6px;
    line-height: 1.5;
}
.bd-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--color-hairline);
}
.bd-pros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.bd-pros li {
    font-size: 13px;
    color: var(--color-body);
    display: flex;
    align-items: center;
    gap: 4px;
}
.bd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-on-primary);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--rounded-md);
    transition: all 0.2s ease;
}
.bd-btn:hover {
    background: var(--color-primary-active);
    border-color: var(--color-primary-active);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
/* 详情卡底部美化的开户 CTA */
.bd-cta-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: auto;
}
/* 详情卡开户提示条（如 Exness：勿用 VPN/真实地址） */
.bd-open-tip {
    width: 100%;
    margin: 14px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-tip-text);
    background: var(--color-tip-bg);
    border: 1px solid var(--color-tip-border);
    border-radius: var(--rounded-md);
}
.bd-btn-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-active));
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.bd-btn-cta:hover {
    background: linear-gradient(135deg, var(--color-primary-active), var(--color-primary));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transform: translateY(-3px);
}
.bd-btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-hairline-strong);
}
.bd-btn-ghost:hover {
    background: var(--color-surface-strong);
    transform: translateY(-2px);
    box-shadow: none;
}
@media (min-width: 561px) {
    .bd-bottom > .bd-btn { margin-left: auto; }
}
@media (max-width: 860px) { .bd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
    .bd-grid { grid-template-columns: 1fr; }
    .bd-head { flex-direction: column; align-items: flex-start; }
    .bd-bottom { flex-direction: column; align-items: stretch; }
    .bd-btn { justify-content: center; }
}

.how-to-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}
.how-to-item {
    display: flex;
    gap: 14px;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    padding: 18px;
    transition: all 0.2s ease;
}
.how-to-item:hover { border-color: var(--color-hairline-strong); }
.hti-no {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-ink);
    background: var(--color-surface-strong);
    padding: 4px 8px;
    border-radius: var(--rounded-sm);
    height: fit-content;
    flex-shrink: 0;
}
.hti-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}
.hti-body p {
    font-size: 13px;
    color: var(--color-body);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 600px) { .how-to-grid { grid-template-columns: 1fr; } }

/* ===== 08 TOOLS & CALCULATORS ===== */
.calc-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}
.calc-card:hover { border-color: var(--color-muted-soft); }
.calc-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.calc-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-strong);
    border-radius: var(--rounded-md);
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}
.calc-head h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-ink);
    letter-spacing: -0.2px;
}
.calc-head p {
    font-size: 14px;
    color: var(--color-body);
    margin-top: 2px;
}
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.calc-field > span {
    font-size: 12px;
    color: var(--color-body);
    font-weight: 500;
}
.calc-field input,
.calc-field select {
    width: 100%;
    height: 44px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-md);
    color: var(--color-ink);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.06);
}
.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.result-item {
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.result-item .rk {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.result-item .rv {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.2px;
    line-height: 1.3;
}
.result-item .rv.pos { color: var(--color-semantic-success); }
.result-item .rv.neg { color: #c96264; }
.calc-note {
    font-size: 12px;
    color: var(--color-body);
    margin-top: 14px;
}

.glossary-search {
    width: 100%;
    height: 44px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-md);
    color: var(--color-ink);
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    margin-top: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.glossary-search:focus {
    outline: none;
    border-color: var(--color-ink);
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.06);
}
.glossary-count { font-size: 12px; color: var(--color-muted); margin-top: 8px; }
.glossary-list { margin-top: 6px; }
.glossary-item {
    padding: 12px 0;
    border-top: 1px dashed var(--color-hairline-strong);
}
.glossary-item:first-child { border-top: none; }
.glossary-item dt {
    color: var(--color-ink);
    font-weight: 600;
    font-size: 15px;
}
.glossary-item dd {
    color: var(--color-body);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 2px;
}
.glossary-empty { color: var(--color-body); font-size: 14px; padding: 16px 0; }

.faq-item {
    padding: 14px 0;
    border-top: 1px dashed var(--color-hairline-strong);
}
.faq-item:first-of-type { border-top: none; padding-top: 4px; }
.faq-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: 4px;
}
.faq-item p {
    font-size: 14px;
    color: var(--color-body);
    line-height: 1.7;
}

/* ===== 09 SUB-PAGES & CONTENT ===== */
.sub-page {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 60vh;
}
.sub-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-body);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.sub-page .back-link:hover {
    color: var(--color-text-link);
    transform: translateX(2px);
}
.sub-page .page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-hairline);
    position: relative;
}
.sub-page .page-header::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 72px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 1px;
}
.sub-page .page-header .tag { margin-bottom: 8px; }
.sub-page .page-header h1, .sub-page .page-header h2 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.08px;
    color: var(--color-ink);
    margin-bottom: 4px;
}
.sub-page .page-header p {
    color: var(--color-body);
    font-size: 16px;
    margin-top: 4px;
    max-width: 640px;
}
/* No gold accent in titles — plain ink */
.gold { color: var(--color-ink); }

.sub-page .content-block {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 28px 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.sub-page .content-block:hover {
    border-color: var(--color-muted-soft);
    transform: translateY(-2px);
}
.sub-page .content-block h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-ink);
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}
.sub-page .content-block p {
    color: var(--color-body);
    font-size: 15px;
    line-height: 1.7;
}
.sub-page .content-block ul {
    color: var(--color-body);
    font-size: 15px;
    line-height: 1.8;
    padding-left: 20px;
    margin-top: 6px;
}
.sub-page .content-block ul li::marker { color: var(--color-ink); }
.sub-page .content-block ul li strong { color: var(--color-ink); font-weight: 600; }

.table-note { font-size: 12px; color: var(--color-muted); margin-top: 10px; }

/* ===== Legal 页 content-block 中等增强（纯 CSS，容器 ID 收窄，不影响其它 sub-page）===== */
#page-disclaimer .container,
#page-privacy .container,
#page-terms .container,
#page-cookie .container {
    counter-reset: legal-section;
}
#page-disclaimer .content-block,
#page-privacy .content-block,
#page-terms .content-block,
#page-cookie .content-block {
    counter-increment: legal-section;
    position: relative;
    padding-left: 56px;
    border-left: 3px solid var(--color-hairline-strong);
    padding-bottom: 26px;
    transition: border-color 0.25s ease, border-left-color 0.25s ease,
                transform 0.25s ease, box-shadow 0.25s ease;
    background-image: linear-gradient(var(--color-hairline-soft), var(--color-hairline-soft));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
}
#page-disclaimer .content-block:last-of-type,
#page-privacy .content-block:last-of-type,
#page-terms .content-block:last-of-type,
#page-cookie .content-block:last-of-type {
    background-image: none;
}
#page-disclaimer .content-block::before,
#page-privacy .content-block::before,
#page-terms .content-block::before,
#page-cookie .content-block::before {
    content: counter(legal-section, decimal-leading-zero);
    position: absolute;
    top: 28px; left: 14px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--rounded-sm);
    background: var(--color-surface-strong);
    color: var(--color-muted);
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
    transition: background 0.25s ease, color 0.25s ease;
}
#page-disclaimer .content-block:hover,
#page-privacy .content-block:hover,
#page-terms .content-block:hover,
#page-cookie .content-block:hover {
    border-color: var(--color-text-link);
    border-left-color: var(--color-text-link);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 116, 206, 0.08);
}
#page-disclaimer .content-block:hover::before,
#page-privacy .content-block:hover::before,
#page-terms .content-block:hover::before,
#page-cookie .content-block:hover::before {
    background: rgba(13, 116, 206, 0.10);
    color: var(--color-text-link);
}
/* 免责声明首个内容块（⚠ 高风险警示）用错误语义色强调 */
#page-disclaimer .content-block:first-of-type {
    border-left-color: var(--color-semantic-error);
}
#page-disclaimer .content-block:first-of-type::before {
    background: rgba(235, 142, 144, 0.12);
    color: var(--color-ink);
}
@media (max-width: 480px) {
    #page-disclaimer .content-block,
    #page-privacy .content-block,
    #page-terms .content-block,
    #page-cookie .content-block { padding-left: 48px; }
    #page-disclaimer .content-block::before,
    #page-privacy .content-block::before,
    #page-terms .content-block::before,
    #page-cookie .content-block::before { left: 12px; width: 24px; height: 24px; top: 30px; }
}

/* CMC / Pepperstone hero section */
.cmc-hero {
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--color-hairline);
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.cmc-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 400px;
}
.cmc-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--rounded-xl);
    overflow: hidden;
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}
.cmc-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.cmc-hero-title { text-align: left; }
.cmc-hero-title h1, .cmc-hero-title h2 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1.08px;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--color-ink);
}
.cmc-hero-title .sub {
    color: var(--color-body);
    font-size: 14px;
}
.cmc-hero-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.cmc-hero-badge .badge-item {
    padding: 5px 12px;
    border-radius: var(--rounded-pill);
    font-size: 12px;
    font-weight: 500;
    background: var(--color-surface-strong);
    border: 1px solid var(--color-hairline-strong);
    color: var(--color-body-strong);
}
.cmc-hero-badge .badge-item.blue {
    background: rgba(13, 116, 206, 0.08);
    border-color: rgba(13, 116, 206, 0.2);
    color: var(--color-text-link);
}
.cmc-hero-badge .badge-item.gold {
    background: rgba(129, 69, 181, 0.08);
    border-color: rgba(129, 69, 181, 0.2);
    color: var(--color-accent-preview);
}
/* ===== 特色专区（Bybit TradFi CFD 排版） ===== */
.bybit-tradfi-block {
    margin-top: 16px;
}
.bybit-tradfi-intro {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-body);
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
}
.bybit-tradfi-intro b {
    color: var(--color-ink);
}
.bybit-tradfi-rules {
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--color-body);
}
.bybit-tradfi-rules ul {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 24px;
}
.cmc-grid-2 .item {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 20px 22px;
    transition: all 0.2s ease;
}
.cmc-grid-2 .item:hover {
    border-color: var(--color-muted-soft);
    background: var(--color-canvas-soft);
    transform: translateY(-2px);
}
.cmc-grid-2 .item .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.cmc-grid-2 .item .value {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.2px;
}
.cmc-grid-2 .item .desc {
    font-size: 13px;
    color: var(--color-body);
    margin-top: 6px;
    line-height: 1.6;
}
.cmc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 16px 0 24px;
}
.cmc-features .feat {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.25s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cmc-features .feat:hover {
    border-color: var(--color-muted-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.cmc-features .feat .icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}
.cmc-features .feat .fname {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-ink);
    letter-spacing: -0.2px;
}
.cmc-features .feat .fdesc {
    font-size: 12px;
    color: var(--color-body);
    margin-top: 2px;
    line-height: 1.5;
}

.cmc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 24px;
}
.cmc-steps .step {
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
}
.cmc-steps .step:hover {
    border-color: var(--color-muted-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.cmc-steps .step .no {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ink);
    padding: 4px 10px;
    background: var(--color-surface-strong);
    border-radius: var(--rounded-sm);
    display: inline-block;
    margin-bottom: 10px;
}
.cmc-steps .step .sname {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-ink);
}
.cmc-steps .step .sdesc {
    font-size: 12px;
    color: var(--color-body);
    margin-top: 4px;
    line-height: 1.5;
}
.cmc-steps .step .arrow {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-soft);
    font-size: 18px;
    font-weight: 600;
}
.cmc-steps .step:last-child .arrow { display: none; }

@media (max-width: 860px) {
    .cmc-grid-2 { grid-template-columns: 1fr; }
    .cmc-steps { grid-template-columns: 1fr 1fr; }
    .cmc-steps .step .arrow { display: none; }
}
@media (max-width: 560px) {
    .cmc-hero { flex-direction: column; align-items: stretch; }
    .cmc-hero-left { flex-direction: column; align-items: center; text-align: center; }
    .cmc-steps { grid-template-columns: 1fr; }
    .cmc-features { grid-template-columns: 1fr 1fr; }
    .cmc-hero-title { text-align: center; }
}

.cmc-cta-wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 24px 0 8px;
    border-top: 1px solid var(--color-hairline);
}

/* ===== Payment grid ===== */
.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.pay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline);
    border-radius: var(--rounded-md);
    padding: 16px 10px 12px;
    transition: all 0.2s ease;
    text-align: center;
}
.pay-item:hover {
    border-color: var(--color-hairline-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.pay-item img { height: 24px; width: auto; }
.pay-item .pay-emoji {
    height: 24px;
    display: flex;
    align-items: center;
    font-size: 22px;
    line-height: 1;
}
.pay-item .pay-wordmark {
    height: 24px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.2px;
}
.pay-neteller { color: #8DC63F; }
.pay-skrill { color: #A052CC; }
.pay-item > span:last-child {
    font-size: 12px;
    color: var(--color-body);
}
.pay-item .pay-note {
    font-size: 10px;
    color: var(--color-muted);
    margin-top: -4px;
}
.pay-item .pay-duo {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pay-item .pay-duo img { height: 20px; }

/* ===== Risk flow ===== */
.risk-flow {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
}
.rf-step {
    flex: 1 1 130px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.rf-step .rf-ic { font-size: 24px; line-height: 1.2; }
.rf-step .rf-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-ink);
}
.rf-step .rf-sub {
    font-size: 12px;
    color: var(--color-body);
}
.rf-step.bad {
    border-color: rgba(235, 142, 144, 0.35);
    background: rgba(235, 142, 144, 0.04);
}
.rf-step.bad .rf-name { color: #c96264; }
.rf-step.good {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.04);
}
.rf-step.good .rf-name { color: var(--color-semantic-success); }
.rf-arrow {
    align-self: center;
    color: var(--color-muted);
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}
.rr-item {
    display: flex;
    gap: 14px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
    padding: 18px 20px;
    margin-top: 12px;
}
.rr-no {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ink);
    background: var(--color-surface-strong);
    border-radius: var(--rounded-sm);
    padding: 4px 10px;
    height: fit-content;
    flex-shrink: 0;
}
.rr-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}
.rr-body p {
    font-size: 14px;
    color: var(--color-body);
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 700px) {
    .risk-flow { flex-direction: column; }
    .rf-arrow { transform: rotate(90deg); }
    .rf-step {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
    }
}

/* ===== 10 FOOTER ===== */
.site-footer {
    padding: 64px 0 48px;
    margin-top: 40px;
    background: var(--color-canvas);
    border-top: 1px solid var(--color-hairline);
    position: relative;
}
.site-footer .footer-risk {
    font-size: 12px;
    color: var(--color-body);
    line-height: 1.7;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-hairline);
}
.site-footer .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-hairline);
}
.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.site-footer .footer-brand .logo {
    display: flex;
    align-items: center;
}
.site-footer .footer-brand .logo svg { display: block; width: 32px; height: 32px; }
.site-footer .footer-brand-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.3px;
    color: var(--color-ink);
}
.site-footer .footer-brand-name span {
    color: var(--color-body);
    font-weight: 400;
}
.site-footer .footer-brand-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-top: 3px;
}
.site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    flex: 1;
}
.site-footer .footer-nav a {
    font-size: 14px;
    color: var(--color-body);
    font-weight: 400;
    transition: color 0.2s ease;
}
.site-footer .footer-nav a:hover { color: var(--color-ink); }

.site-footer .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.site-footer .footer-contact > a {
    font-size: 14px;
    color: var(--color-body);
    transition: color 0.2s ease;
}
.site-footer .footer-contact > a:hover { color: var(--color-ink); }
.site-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12px;
    color: var(--color-muted);
}
.site-footer .footer-legal a {
    color: var(--color-ink);
    transition: color 0.2s ease;
}
.site-footer .footer-legal a:hover { color: var(--color-text-link); }
.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
}
.site-footer .footer-copy {
    font-size: 12px;
    color: var(--color-muted);
}
.site-footer .footer-slogan {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* ===== 11 TICKER & TOAST ===== */
/* Ticker strip pinned to the top edge of the footer (in normal flow) */
.ticker {
    /* footer 顶部 padding 为 64px，负 margin 抵消使滚动条贴住 footer 上缘；底部 32px 还原内容间距 */
    margin: -64px 0 32px;
    height: 32px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-ticker-bg);
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk {
    margin-right: 36px;
    font-size: 12px;
    color: var(--color-body);
}
.tk b {
    color: var(--color-ink);
    font-weight: 600;
    margin-right: 6px;
}
.tk em {
    font-style: normal;
    font-weight: 600;
    display: inline-block;
}
.tk em.up { color: var(--color-semantic-success); }
.tk em.dn { color: var(--color-semantic-error); }
.tk-tag {
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-pill);
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--color-surface-dark);
    color: var(--color-on-dark);
    padding: 12px 22px;
    border-radius: var(--rounded-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ===== 12 WHEEL / MASCOT / PAY ===== */
.wheel-stage {
    position: relative;
    width: min(274px, 82vw);
    margin: 24px auto 4px;
}
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid var(--color-ink);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.12));
}
.wheel-stage.spinning .wheel-pointer {
    transform-origin: 50% 0;
    animation: pointerWiggle 0.3s ease-in-out infinite alternate;
}
@keyframes pointerWiggle {
    from { transform: translateX(-50%) rotate(-7deg); }
    to   { transform: translateX(-50%) rotate(7deg); }
}
/* Wheel visual — redesigned neutral tone to match the system */
.wheel {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 32%, transparent 33%),
        conic-gradient(
            #e8e6e3 0deg 60deg, #fafafa 60deg 120deg,
            #404047 120deg 180deg, #2f2f36 180deg 240deg,
            #e6f1ff 240deg 300deg, #cfe2ff 300deg 360deg
        );
    border: 9px solid var(--color-ink);
    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, 0.6),
        inset 0 0 0 6px rgba(0, 0, 0, 0.1),
        inset 0 -16px 34px rgba(0, 0, 0, 0.12),
        0 18px 44px rgba(0, 0, 0, 0.12);
    transition: transform 4.2s cubic-bezier(0.12, 0.55, 0.08, 1);
    cursor: pointer;
}
@supports not (aspect-ratio: 1) {
    .wheel::before { content: ''; display: block; padding-top: 100%; }
}
.wheel.spinning { cursor: wait; }
.wheel-line {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.wheel-line::before {
    content: '';
    position: absolute;
    left: calc(50% - 1px);
    top: 4px; bottom: 4px;
    width: 2px;
    background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.12));
}
.wheel-label {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.wheel-label i {
    font-style: normal;
    margin-top: 30px;
    writing-mode: vertical-rl;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #fff;
    background: rgba(23, 23, 23, 0.55);
    padding: 10px 3px;
    border-radius: 8px;
}
.wheel-lights {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.wheel-lights span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 30%, #ffffff, #d0d6e0 60%, #7e8591);
    box-shadow: 0 0 6px rgba(13, 116, 206, 0.3);
}
.wheel.spinning .wheel-lights span {
    animation: lightBlink 0.5s linear infinite;
}
.wheel.spinning .wheel-lights span:nth-child(odd) { animation-delay: 0.25s; }
@keyframes lightBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(13, 116, 206, 0.45); }
    50%     { opacity: 0.35; box-shadow: 0 0 2px rgba(13, 116, 206, 0.15); }
}
.wheel-gloss {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 44%),
        radial-gradient(circle at 50% 125%, rgba(0, 0, 0, 0.12), transparent 56%);
}
.wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    width: 58px; height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18) 0 26%, transparent 28%),
        radial-gradient(circle at 35% 30%, #ffffff, #e6e8eb 55%, #9aa0a8);
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}
.wheel-hub::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px dotted rgba(0, 0, 0, 0.3);
}
.wheel-result {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    min-height: 1.8em;
    color: var(--color-ink);
}
.wheel-result.show-long   { color: var(--color-semantic-success); }
.wheel-result.show-short  { color: #c96264; }
.wheel-result.show-pause  { color: var(--color-body); }
.wheel-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.wheel-tally {
    font-size: 12px;
    color: var(--color-body);
    background: var(--color-canvas-soft);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-pill);
    padding: 6px 14px;
    white-space: nowrap;
}
.wheel-model {
    text-align: center;
    font-size: 11px;
    color: var(--color-muted);
    letter-spacing: 0.02em;
    margin-top: 12px;
    font-family: var(--font-mono);
}


/* ===== 13 ANIMATIONS & REVEAL ===== */
/* Page switching */
.page {
    display: none;
    animation: fadeUp 0.4s ease forwards;
}
.page.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }

/* Scroll reveal (respects reduced-motion via JS) */
.reveal-ready .reveal { opacity: 0; }
.reveal-ready .reveal.in-view {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Ticker tick animation */
.tk em.tick {
    animation: tickPop 0.45s ease;
}
@keyframes tickPop {
    0%   { transform: scale(1.35) translateY(-1px); filter: brightness(1.3); }
    100% { transform: scale(1) translateY(0); filter: brightness(1); }
}

/* Inline link underline growth */
a.inline-link {
    background: linear-gradient(var(--color-text-link), var(--color-text-link)) no-repeat left bottom / 0 1px;
    padding-bottom: 2px;
    transition: background-size 0.3s ease;
}
a.inline-link:hover {
    background-size: 100% 1px;
}

/* Button click ripple */
.btn, .bd-btn, .bp-btn, .btn-cta { position: relative; overflow: hidden; }
.ripple {
position: absolute;
border-radius: 50%;
background: var(--color-ripple);
    transform: scale(0);
    animation: rippleGo 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleGo {
    to { transform: scale(1); opacity: 0; }
}

/* Wheel hub slow spin */
.wheel-hub::after { animation: hubSpin 16s linear infinite; }
@keyframes hubSpin { to { transform: rotate(360deg); } }

/* ===== Ambient canvas / cursor effects (Expo light theme) ===== */
#bg-particles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 116, 206, 0.08) 0%, rgba(207, 231, 255, 0.06) 40%, transparent 70%);
    z-index: 1;
    mix-blend-mode: multiply;
    will-change: transform;
}

.click-spark {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e6f1ff 0%, #6ca9e8 55%, #0d74ce 100%);
    box-shadow: 0 0 8px rgba(13, 116, 206, 0.4);
}

/* Reduced motion catch-all */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-ready .reveal { opacity: 1 !important; }
}

/* ===== 14 RESPONSIVE ===== */

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 1000px) {
    .section { padding: 72px 0; }
    .tools-panel .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .brokers-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-footer .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .site-footer .footer-contact { align-items: center; }
}

@media (max-width: 640px) {
    .hero { padding-top: 120px; padding-bottom: 56px; }
    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.96px;
        line-height: 1.1;
    }
    .section-title,
    .sub-page .page-header h1, .sub-page .page-header h2 {
        font-size: 28px;
        letter-spacing: -0.84px;
    }
    .block-title { font-size: 20px; letter-spacing: -0.4px; }
    .cmc-hero-title h1, .cmc-hero-title h2 {
        font-size: 28px;
        letter-spacing: -0.84px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero { padding-top: 96px; }
    .navbar { padding: 0 16px; height: 56px; }
    .tools-panel { padding: 20px 16px; }
    .tools-panel .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .card { padding: 20px 18px; border-radius: var(--rounded-md); }
    .broker-detail { padding: 20px 18px; }
    .sub-page {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    /* 移动端触摸目标 ≥44px + 小屏防撑破 + 隐藏桌面光晕 */
    .btn, .bd-btn, .bp-btn, .lang-trigger, .nav-toggle, .close-btn, .chip, .lang-switch .lang-opt { min-height: 44px; }
    .broker-panel .bp-left { flex-basis: 100%; min-width: 0; }
    .cursor-glow { display: none; }
}

/* ── VPN 推荐卡（工具页） ── */
.vpn-body {
    margin-top: 4px;
}
.vpn-body p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-body);
}
.vpn-cta {
    margin: 16px 0 12px;
}

/* ── Rating medal (Expo shield badge) ── */
.bd-medal {
    flex-shrink: 0;
    align-self: center;
    width: 72px;
    height: auto;
}
@media (max-width: 720px) {
    .bd-medal { align-self: flex-start; }
}

/* 专属页推荐徽章 */
.hero-medal {
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
    width: 96px;
    height: 105px;
    animation: medal-pulse 3s ease-in-out infinite;
}
@keyframes medal-pulse {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(71, 108, 255, 0.25)); }
    50% { filter: drop-shadow(0 0 10px rgba(71, 108, 255, 0.5)); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-medal { animation: none; }
}

/* ── 受限国家/地区区块 ── */
.restricted-block {
    margin: 16px 0;
    padding: 20px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-hairline-strong);
    border-radius: var(--rounded-lg);
}
.restricted-intro {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--color-body);
}
.restricted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}
.rc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-surface-strong);
    border-radius: var(--rounded-md);
    font-size: 14px;
}
.rc-flag {
    font-size: 20px;
    line-height: 1;
}
.rc-name {
    color: var(--color-ink);
}
@media (max-width: 480px) {
    .restricted-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .rc-item { padding: 6px 8px; font-size: 13px; }
}
/* Exness 绿色 badge */
.bd-badge-green, .badge-item.green { background: rgba(0, 179, 110, 0.12); color: #00875a; }

/* ===== 15 移动端整体重做（体验增强，桌面不受影响）=====
   原则：内容与多语言统一一套；移动端聚焦大触控目标、单列堆叠、
   沉浸式导航、表格横向可滚动、安全区适配。仅作用于窄屏，=桌面零改动。 */

/* -- 15.1 沉浸式全屏抽屉导航（≤720px）-- */
@media (max-width: 720px) {
    .mobile-menu {
        width: min(86vw, 340px);
        border-left: 1px solid var(--color-hairline-strong);
        background: color-mix(in srgb, var(--color-canvas) 92%, transparent);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
        gap: 2px;
    }
    .mobile-menu a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: var(--rounded-lg);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-menu .close-btn {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }
    .mobile-overlay.show { background: rgba(0, 0, 0, 0.45); }
}

/* -- 15.2 券商卡片移动端：图标紧凑、按钮通栏、标签自动换行 -- */
@media (max-width: 640px) {
    .broker-panel .bp-left { flex-direction: row; align-items: flex-start; }
    .broker-panel .bp-icon { width: 48px; height: 48px; flex-shrink: 0; }
    .broker-panel .bp-info { min-width: 0; flex: 1 1 auto; }
    .broker-panel .bp-row { flex-wrap: wrap; align-items: center; }
    .broker-panel .bp-desc { font-size: 14px; line-height: 1.7; margin-top: 6px; }
    .broker-panel .bp-tags { flex-wrap: wrap; gap: 6px; }
    .broker-panel .bp-tags .chip { font-size: 12px; padding: 5px 10px; }
    .broker-panel .bp-right { flex-basis: 100%; min-width: 0; margin-top: 14px; }
    .broker-panel .bp-btn { width: 100%; justify-content: center; display: flex; }
}

/* -- 15.3 hero 移动端：标题缩紧、actions 竖排通栏 -- */
@media (max-width: 480px) {
    .hero-intro { text-align: center; padding: 0; }
    .hero-intro .tag { margin-inline: auto; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* -- 15.4 bd-grid 移动端单列（原表格式保护因类名不存在已移除，落地真实表格时再补 overflow 方案） -- */
@media (max-width: 720px) {
    .bd-grid { grid-template-columns: 1fr; }
}

/* -- 15.5 页脚与通用区块移动端收紧 -- */
@media (max-width: 480px) {
    .footer-bottom { flex-wrap: wrap; gap: 8px; justify-content: center; text-align: center; }
    .restricted-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
}

/* -- 15.6 安全区 / 视口高度支持（全面屏刘海适配）-- */
@media (max-width: 720px) {
    @supports (height: 100dvh) {
        .mobile-menu { height: 100dvh; }
    }
    .navbar {
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: 0;
    }
}

/* ===== 16 移动端使用习惯增强（触控手感 / 安全区 / 返回顶部）=====
   图标说明：只改触控与安全区体验，桌面与布局零改动。 */

/* -- 16.1 触控手感：去掉双击缩放延迟 + 按下即反馈（粗触/触摸设备生效，桌面 hover 不受影响）-- */
a, button, input, select, textarea, label, .btn, .chip {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse) {
    .btn:active, .bd-btn:active, .bp-btn:active, .chip:active,
    .theme-btn:active, .nav-toggle:active, .close-btn:active,
    .nav-link:active, .lang-trigger:active, .lang-opt:active,
    .back-top:active {
        opacity: 0.72;
    }
}

/* -- 16.2 底部安全区：内容不被全面屏手势条遮挡 -- */
@media (max-width: 720px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* -- 16.3 返回顶部悬浮按钮（长页移动端刚需）-- */
.back-top {
    position: fixed;
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-canvas);
    color: var(--color-ink);
    border: 1px solid var(--color-hairline-strong);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-top:focus-visible {
    outline: 2px solid var(--color-text-link);
    outline-offset: 2px;
}
html[data-theme="dark"] .back-top {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
@media (min-width: 721px) {
    .back-top { right: 28px; bottom: 28px; }
}
