/* ═══ 自托管字体 (2026-08-31, 本地 woff2 无外部依赖) ═══ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400;
    src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600;
    src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700;
    src: url('/static/fonts/inter-latin-700-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800;
    src: url('/static/fonts/inter-latin-800-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400;
    src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700;
    src: url('/static/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-display: swap; }

/* ================================================================
   LumeX · 光核AI数字资产云交易系统 - 主样式
   Mobile-first · Dark Theme · Glass Morphism
   ================================================================ */

/* ── CSS Variables ── */
:root {
    /* 2026-08-26 深色主题调优: 背景提亮(纯黑→深蓝灰), 卡片亮于背景(层次反转),
       文字三档对比度提升 (muted #8b98b5→#a0adc0) — 解决"特别黑/字不清/沉重" */
    --bg-deep: #0c1322;
    --bg-primary: #111a2c;
    --bg-secondary: #16203a;
    --bg-card: rgba(28, 38, 60, .78);
    --bg-card-hover: #1f2c47;
    --bg-card-solid: #182238;   /* 浮层/粘性元素用不透明版 (防透字) */
    --bg-input: #131c30;
    --bg-elevated: #1a2130;      /* 下拉/浮层弹出面板 (2026-08-28 补定义, 原仅有深色 fallback) */

    --border: #27344c;
    --border-light: #33415e;

    --text-primary: #f0f4fb;
    --text-secondary: #c6d1e2;
    --text-muted: #a0adc0;

    --accent: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.25);
    --accent-dim: rgba(0, 212, 170, 0.10);

    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.25);

    /* 语义发丝线/浮面/图表色 (2026-08-28 浅色主题对比度修复):
       深色=白 alpha, 浅色=墨 alpha — 硬编码白 alpha 在浅底会隐形 */
    --hairline: rgba(255, 255, 255, .05);
    --hairline-strong: rgba(255, 255, 255, .14);
    --surface-raised: rgba(255, 255, 255, .03);
    --surface-hover: rgba(255, 255, 255, .06);
    --meter-track: rgba(255, 255, 255, .14);
    --chart-grid: rgba(255, 255, 255, .06);
    --chart-grid-soft: rgba(255, 255, 255, .04);
    --chart-axis-text: rgba(255, 255, 255, .35);
    --chart-crosshair: rgba(255, 255, 255, .18);
    --chart-price-line: #f8fafc;
    --gauge-track: rgba(255, 255, 255, .07);
    --gauge-tick: rgba(255, 255, 255, .16);
    --gauge-unit: rgba(255, 255, 255, .45);
    --tip-bg: rgba(10, 14, 30, .92);
    --tip-border: rgba(255, 255, 255, .14);
    --blue-dim: rgba(59, 130, 246, 0.10);

    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.25);

    --amber: #f59e0b;
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    /* ★2026-10-04 内联 JS 语义色 (策略矩阵统计卡/引擎页/天际锚点):
       这些地方由 JS 写 el.style.color, 内联优先级最高 → CSS 覆盖不到,
       必须走变量才能跟着主题切换。 */
    --c-up: #0ecb81;
    --c-down: #f6465d;
    --c-warn: #f0b90b;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --sidebar-w: 240px;
    --header-h: 64px;
    --mobile-nav-h: 56px;

    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* 阴影: 深色用低透明蓝黑 (避免纯黑重影), 不透明度降低一半 */
    --shadow-card: 0 1px 3px rgba(4, 10, 22, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 8px 28px rgba(4, 10, 22, 0.32);

    /* 白色微层 (深色主题下的卡片高光/hover/分隔线; 浅色主题下映射为深色微层) */
    --wl-1: rgba(255, 255, 255, .02);
    --wl-2: rgba(255, 255, 255, .04);
    --wl-3: rgba(255, 255, 255, .07);
    --wl-4: rgba(255, 255, 255, .11);
    --wl-border: rgba(255, 255, 255, .09);
}

/* LOGO 双版本: 深色主题用亮色字版, 浅色主题用彩色深字版 */
img.brand-logo.logo-for-light { display: none; }
html.theme-light img.brand-logo.logo-for-dark { display: none; }
html.theme-light img.brand-logo.logo-for-light { display: block; }

/* 主题菜单图标: 默认(深色)显示太阳=点击切浅色; 浅色主题显示月亮=点击切深色 */
.user-menu-item .theme-ic-sun { display: none; }
html.theme-light .user-menu-item .theme-ic-moon { display: none; }
html.theme-light .user-menu-item .theme-ic-sun { display: inline-flex; }

/* 浮层/粘性元素: 用不透明卡片色 (半透明会透出下层文字) */
html .notif-panel,
html .modal,
html .ref-suggest,
html .user-menu,
html .mtls-more-panel,
html .mtls-sug,
html #mtlsMemberSuggest,
html .audit-day-label,
html .manual-navbar {
    background: var(--bg-card-solid) !important;
}

/* 玻璃卡片层: 主容器半透明 + 背景模糊, 与登录页玻璃卡片语言一致 */
html .panel,
html .card,
html .table-container,
html .stat-box {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
html.theme-light .panel,
html.theme-light .card,
html.theme-light .table-container,
html.theme-light .stat-box {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* 共振确认规则表 */
.cf-chip {
    padding: 3px 11px; border-radius: 13px; font-size: .72rem; font-weight: 700;
    background: var(--wl-2); color: var(--text-secondary);
    border: 1px solid var(--border); cursor: pointer; transition: all .15s;
}
.cf-chip:hover { border-color: var(--border-light); }
.cf-chip.on {
    background: rgba(240, 185, 11, .13); color: #f0b90b; border-color: rgba(240, 185, 11, .45);
}
.cf-sel {
    padding: 3px 7px; font-size: .76rem;
    border: 1px solid var(--border); border-radius: 7px;
    background: var(--bg-input); color: var(--text-primary);
    cursor: pointer; max-width: 100%;
}
.cf-sel:focus { outline: none; border-color: rgba(240, 185, 11, .5); }
.cf-del {
    width: 24px; height: 24px; border-radius: 7px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 15px; line-height: 1;
    cursor: pointer; transition: all .15s;
}
.cf-del:hover { background: rgba(239, 68, 68, .12); color: #ef4444; }

/* ── Light Theme (浅色版) ── */
html.theme-light {
    --bg-deep: #e9edf4;
    --bg-primary: #f3f6fa;
    --bg-secondary: #e4e9f1;
    --bg-card: #fafbfd;
    --bg-card-hover: #f1f4f9;
    --bg-card-solid: #fafbfd;   /* 浮层/粘性元素不透明版 */
    --bg-input: #f6f8fb;
    --bg-elevated: #fafbfd;

    /* 浅色主题阴影: 更淡更散 (深色默认值在浅底显脏) */
    --shadow-card: 0 1px 2px rgba(23, 32, 47, 0.06), 0 0 0 1px rgba(23, 32, 47, 0.02),
                    inset 0 1px 0 rgba(255, 255, 255, 0.7);
    --shadow-lg: 0 8px 24px rgba(23, 32, 47, 0.10);

    --border: #dce2ec;
    --border-light: #c6cfdd;

    --text-primary: #17202f;
    --text-secondary: #3f4a5c;
    --text-muted: #5b6472;

    --accent: #00a884;
    --accent-glow: rgba(0, 168, 132, 0.18);
    --accent-dim: rgba(0, 168, 132, 0.08);

    --blue: #2f6fe4;
    --blue-glow: rgba(47, 111, 228, 0.16);
    --blue-dim: rgba(47, 111, 228, 0.08);

    --purple: #7a52e0;
    --purple-glow: rgba(122, 82, 224, 0.16);

    --amber: #d97706;
    --red: #dc2626;
    --red-dim: rgba(220, 38, 38, 0.10);
    --green: #059669;
    --green-dim: rgba(5, 150, 105, 0.10);
    --c-up: #0f766e;
    --c-down: #be123c;
    --c-warn: #b45309;

    --shadow-card: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 10px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 40px rgba(16, 24, 40, .13);

    --wl-1: rgba(16, 24, 40, .03);
    --wl-2: rgba(16, 24, 40, .045);
    --wl-3: rgba(16, 24, 40, .07);
    --wl-4: rgba(16, 24, 40, .11);
    --wl-border: rgba(16, 24, 40, .09);

    /* 浅色主题语义色 (与深色同名反向: 白 alpha → 墨 alpha) */
    --hairline: rgba(23, 32, 47, .08);
    --hairline-strong: rgba(23, 32, 47, .20);
    --surface-raised: rgba(23, 32, 47, .035);
    --surface-hover: rgba(23, 32, 47, .06);
    --meter-track: rgba(23, 32, 47, .14);
    --chart-grid: rgba(23, 32, 47, .10);
    --chart-grid-soft: rgba(23, 32, 47, .06);
    --chart-axis-text: rgba(23, 32, 47, .52);
    --chart-crosshair: rgba(23, 32, 47, .35);
    --chart-price-line: #17202f;
    --gauge-track: rgba(23, 32, 47, .08);
    --gauge-tick: rgba(23, 32, 47, .22);
    --gauge-unit: rgba(23, 32, 47, .50);
    --tip-bg: rgba(255, 255, 255, .97);
    --tip-border: rgba(23, 32, 47, .14);
}

/* ── 浅色主题文字对比度修复 (2026-09-16) ──
   深色主题的亮金 #f0b90b / 近白 #e8e9ec 文字在浅底对比度不足或隐形, 浅色下加深 ── */
html.theme-light .eng-mode-badge.dual { color: #3b4a63; }
html.theme-light .eng-live-warn { color: #b45309; background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.32); }
html.theme-light .ex-warn b { color: #b45309; }
html.theme-light .manual-hero-kicker,
html.theme-light .manual-h4-sub { color: #b45309; }
/* 操作手册 manual-important: 黄字在浅色黄底上看不清 → 深棕黄 (2026-09-20) */
html.theme-light .manual-important b,
html.theme-light .manual-important span b:first-child { color: #92400e; }
html.theme-light .manual-important svg,
html.theme-light .manual-warn svg { color: #b45309; }
html.theme-light .sys-badge.stale .sys-label,
html.theme-light .sys-badge.stale .sys-sub,
html.theme-light .sys-badge.on.live .sys-label,
html.theme-light .sys-badge.on.live .sys-sub,
html.theme-light .sys-badge.on.dual .sys-label,
html.theme-light .sys-badge.on.dual .sys-sub { color: #b45309; }
html.theme-light .sys-badge.on.live .sys-label,
html.theme-light .sys-badge.on.dual .sys-label { text-shadow: none; }
/* 策略类型徽章: 亮彩色文字在浅底对比度不足 → 深同色系 */
html.theme-light .at-badge.t-strategy { color: #92600a; }
html.theme-light .at-badge.t-grid { color: #5b21b6; }
html.theme-light .at-badge.t-martingale { color: #be123c; }
html.theme-light .at-badge.t-trend { color: #0369a1; }
html.theme-light .at-badge.t-dca { color: #0f766e; }
html.theme-light .at-badge.t-indicator { color: #475569; }
html.theme-light .at-badge.t-manual { color: #c2410c; }
html.theme-light .sb-tag.live,
html.theme-light .badge-cross { color: #b45309; }

/* ★2026-10-04 浅色可读性补齐 (用户报「浅色下看不清」): 亮金/亮绿是深色主题调色, 浅底上对比严重不足
   (#f0b90b 实测仅 1.74:1, #0ecb81 2.05:1, #fbbf24 1.42:1)。沿用本文件既有浅色惯例
   (深金 #b45309 / 深绿 #0f766e / 深红 #be123c), **只改文字色与对应淡底**, 结构不动。 */
html.theme-light .sb-tag.paper,
html.theme-light .sb-r .v.stat-up,
html.theme-light .ai-chip.go,
html.theme-light .notif-readstat b,
html.theme-light .feed-icon.buy { color: #0f766e; }
html.theme-light .sb-tag.paper { background: rgba(15, 118, 110, .10); }
html.theme-light .ai-chip.go { border-color: rgba(15, 118, 110, .42); background: rgba(15, 118, 110, .07); }
html.theme-light .ai-chip.cool { color: #b45309; border-color: rgba(180, 83, 9, .42); background: rgba(180, 83, 9, .07); }
html.theme-light .ai-chip.stop { color: #be123c; border-color: rgba(190, 18, 60, .42); background: rgba(190, 18, 60, .07); }
html.theme-light .ms-btn[data-mode="live"].active { color: #b45309; }
html.theme-light .sys-badge.on.live .sys-label,
html.theme-light .sys-badge.on.live .sys-sub,
html.theme-light .sys-badge.on.dual .sys-label,
html.theme-light .sys-badge.on.dual .sys-sub,
html.theme-light .sys-badge.stale .sys-label,
html.theme-light .sys-badge.stale .sys-sub { color: #b45309; text-shadow: none; }
/* 模式切换按钮的选中态 + 小标题/摘要强调 (深色调色在浅底对比不足) */
html.theme-light .ms-btn.active { color: #0f766e; }
html.theme-light .sec-kicker,
html.theme-light .ai-summary .hl { color: #0b6b57; }

/* 浅色主题页面氛围: 三色光晕+网格 (与深色版同一语言, 金色加强至与深色同级 2026-08-26) */
html.theme-light body {
    background-image:
        linear-gradient(rgba(16, 24, 40, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 40, .04) 1px, transparent 1px),
        radial-gradient(1200px 640px at 88% 4%, rgba(240, 185, 11, .05), transparent 60%),
        radial-gradient(1100px 640px at -12% 108%, rgba(14, 203, 129, .10), transparent 64%),
        radial-gradient(900px 520px at 50% 118%, rgba(56, 189, 248, .07), transparent 64%);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    background-color: var(--bg-deep);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--bg-deep);
    overflow-x: hidden;
}
body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    /* 深色氛围层: 金/绿/蓝三色光晕 + 微网格纹理 (与登录页语言一致)
       2026-08-26: background-attachment:fixed — 光晕固定在视口右上, 任何页面/滚动位置都可见,
       不再出现"部分页面有金色部分没有"的不一致 */
    background-image:
        linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px),
        radial-gradient(1400px 720px at 88% 4%, rgba(240, 185, 11, .08), transparent 62%),
        radial-gradient(1200px 680px at -12% 108%, rgba(14, 203, 129, .18), transparent 66%),
        radial-gradient(950px 560px at 50% 118%, rgba(56, 189, 248, .14), transparent 66%);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
    background-attachment: fixed, fixed, fixed, fixed, fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;   /* iOS Safari 地址栏动态视口 */
    -webkit-font-smoothing: antialiased;
    /* WebKit sticky 兼容: overflow-x 放 html, body 用 clip (不创建滚动容器) */
    overflow-x: clip;
    overscroll-behavior-y: none;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea {
    font-family: inherit; color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
input::placeholder { color: var(--text-muted); }

/* 图标全局兜底尺寸 (icon() 宏默认类; 局部 scoped 规则优先) */
svg.nav-icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -2.5px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }

/* ================================================================
   LAYOUT
   ================================================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transition: transform var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-brand {
    display: flex; align-items: center; justify-content: center;
    height: var(--header-h);
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-stack {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    width: auto;
    position: relative;
}

.sidebar-brand .brand-logo {
    height: 28px;
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 6px;
    transition: transform .25s ease, filter .25s ease;
    animation: logoGlow 4s ease-in-out infinite;
}

/* LOGO 呼吸光晕: 金色主光 + 绿色辅光, 与品牌双色呼应 */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(240, 185, 11, .22)) drop-shadow(0 0 9px rgba(14, 203, 129, .10));
    }
    50% {
        filter: drop-shadow(0 0 9px rgba(240, 185, 11, .5)) drop-shadow(0 0 20px rgba(14, 203, 129, .25));
    }
}

/* LOGO 高光扫过: 光带严格贴着 LOGO 轮廓 (mask), 只点亮字形不照亮背景 */
.sidebar-brand .brand-stack::after {
    content: '';
    position: absolute; inset: 0;
    -webkit-mask-image: url('/static/img/logo.png');
    mask-image: url('/static/img/logo.png');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background: linear-gradient(100deg,
        transparent 0%, transparent 36%,
        rgba(255, 255, 255, .08) 44%,
        rgba(255, 255, 255, .55) 49%,
        rgba(255, 255, 255, .95) 50.5%,
        rgba(255, 255, 255, .55) 52%,
        rgba(255, 255, 255, .08) 57%,
        transparent 66%);
    background-size: 240% 100%;
    background-position: 130% 0;
    animation: logoShine 5.5s cubic-bezier(.22, .61, .36, 1) infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes logoShine {
    0%, 50% { background-position: 130% 0; }
    78%, 100% { background-position: -40% 0; }
}

.sidebar-brand:hover .brand-logo {
    transform: scale(1.07);
    filter: drop-shadow(0 0 12px rgba(240, 185, 11, .65)) drop-shadow(0 0 26px rgba(14, 203, 129, .35));
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-brand .brand-logo, .sidebar-brand .brand-stack::after, .brand-live::after, .bl-emblem, .bl-emblem-img { animation: none; }
}

.brand-line {
    text-align: right;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    white-space: nowrap;
    background: linear-gradient(90deg, #00f5d4, #00bbf9 35%, #9b5cf6 70%, #00f5d4);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.45));
    animation: brandShine 5s ease-in-out infinite;
}

@keyframes brandShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.sidebar-brand .logo-text {
    font-size: 1.25rem; font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-brand .logo-version {
    font-size: 0.65rem; color: var(--text-muted);
    background: var(--bg-card); padding: 2px 6px;
    border-radius: 4px; font-family: var(--font-mono);
}

.sidebar-nav {
    flex: 1; padding: 12px 10px;
    overflow-y: auto;
}

.nav-section { margin-bottom: 20px; }
.nav-section-title {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted);
    padding: 6px 12px; margin-bottom: 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.nav-item.sub { margin-left: 14px; padding: 8px 12px; font-size: 0.82rem;
    border-left: 2px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; }
.nav-item.sub.active { border-left-color: var(--accent); }
/* 可折叠导航组 (量化策略 → 交易策略/创建策略) */
.nav-parent { width: 100%; background: transparent; border: none; text-align: left; }
.nav-parent.active-parent { color: var(--text-primary); }
.nav-caret { margin-left: auto; font-size: .62rem; opacity: .6; transition: transform .18s; }
.nav-parent.open .nav-caret { transform: rotate(90deg); }
.nav-sub { display: none; margin-bottom: 4px; }
.nav-parent.open + .nav-sub { display: flex; }
.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.nav-item.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--accent); border-radius: 0 4px 4px 0;
}
.nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
/* 菜单等宽对齐: 3字条目两端对齐撑满4字宽, 首尾字与4字条目齐平 (如: 潮核通量) */
.nav-item .nav-label {
    display: inline-block;
    min-width: 4.15em;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-ideograph;
    letter-spacing: .04em;
}
/* Solace·X 英文名比 4 字中文宽 ~4px(letter-spacing所致), 去掉字间距对齐等宽菜单 */
.nav-item.nav-solace .nav-label {
    letter-spacing: 0;
}

.nav-sub {
    flex-direction: column; gap: 2px;
    margin: 2px 0 6px 0;
}
.nav-sub-item {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}
.nav-sub-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.nav-sub-item.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}
.nav-item .nav-badge {
    margin-left: auto; font-size: 0.7rem;
    background: var(--accent-dim); color: var(--accent);
    padding: 2px 7px; border-radius: 10px; font-weight: 600;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    position: relative;
}

.user-card {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 8px; border-radius: var(--radius);
    background: transparent; border: none;
    font: inherit; color: inherit; text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.user-card:hover { background: var(--bg-card); }

.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff;
    flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role {
    font-size: 0.7rem; color: var(--accent);
    text-transform: capitalize;
}

.user-caret {
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.user-caret.open { transform: rotate(180deg); }

.user-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 12px; right: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 110;
}

.user-menu-header {
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-menu-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 8px 10px;
    background: transparent; border: none; border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.85rem; text-align: left;
    cursor: pointer; text-decoration: none;
    transition: var(--transition);
}
.user-menu-item:hover { background: var(--bg-card-hover); }
.user-menu-item .nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.user-menu-item.danger:hover { background: var(--red-dim); color: var(--red); }

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; flex-direction: column;
    min-width: 0;   /* Safari flex 溢出保护 */
}

/* ── Top Bar ── */
.topbar {
    height: var(--header-h);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 28px;
    position: -webkit-sticky;   /* Safari 旧版前缀 */
    position: sticky; top: 0; z-index: 50;
}

/* 顶栏右侧品牌文案 (原品牌行渐变流光效果) */
.topbar-brand { font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; white-space: nowrap;
    /* 2026-08-26 统一品牌渐变: 金→青→蓝 (金= LumeX 主色; 原青蓝紫动画相位不同导致各页"颜色不一致"错觉) */
    background: linear-gradient(90deg, #f0b90b, #00d4aa 38%, #00bbf9 72%, #f0b90b);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 7px rgba(240, 185, 11, 0.35));
    animation: brandShine 8s ease-in-out infinite; }
/* 浅色主题: 深色渐变适配 (浅底上金/蓝对比度不足) */
html.theme-light .topbar-brand {
    background: linear-gradient(90deg, #b8860b, #00806a 38%, #0060c8 72%, #b8860b);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.22));
}
@media (max-width: 900px) { .topbar-brand { display: none; } }
/* 顶栏内容与下方 1080px 内容列同宽同位置 (左对齐) */
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1080px;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }
.back-btn { display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; background: transparent;
    color: var(--text-secondary); border: 1px solid transparent; transition: all .18s; }
.back-btn:hover { color: var(--text-primary); background: var(--bg-card); border-color: var(--border); }
.back-btn-ic { width: 16px; height: 16px; }

.menu-toggle {
    display: none;
    width: 36px; height: 36px;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.4rem;
    border-radius: var(--radius-sm);
    align-items: center; justify-content: center;
}
.menu-toggle:active { background: var(--bg-card); }

.page-title {
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: -0.02em;
}
/* 页面英文副标题 (顶栏, 时尚小字) */
.page-subtitle { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600; margin-left: 10px;
    align-self: flex-end; padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 768px) { .page-subtitle { display: none; } }


/* ── 纸面/实盘统计口径切换 (仪表盘 + 策略页) ── */
.mode-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px;
    border-radius: 11px; background: var(--wl-2); border: 1px solid var(--border);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ms-btn { padding: 5px 14px; border: none; border-radius: 8px; cursor: pointer;
    font-size: .74rem; font-weight: 700; letter-spacing: .3px;
    color: var(--text-muted); background: transparent; transition: all .18s; }
.ms-btn:hover { color: var(--text-primary); }
.ms-btn.active { background: linear-gradient(135deg, rgba(14,203,129,.2), rgba(14,203,129,.1)); color: #0ecb81;
    box-shadow: inset 0 0 0 1px rgba(14,203,129,.4), 0 0 12px rgba(14,203,129,.18); }
.ms-btn[data-mode="live"].active { background: linear-gradient(135deg, rgba(240,185,11,.2), rgba(240,185,11,.1)); color: #f0b90b;
    box-shadow: inset 0 0 0 1px rgba(240,185,11,.45), 0 0 12px rgba(240,185,11,.18); }
.ms-btn b { font-weight: 700; margin-left: 4px; opacity: .85; }
.at-mode-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.at-mode-label { font-size: .76rem; color: var(--text-muted); font-weight: 600; }

/* 顶栏系统状态徽章 (右侧上端, 右缘与下方内容齐平) */
/* ═══ 系统状态徽章 (顶栏): 玻璃胶囊 + 轨道卫星 ═══ */
.sys-badge { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 11px;
    flex-shrink: 0; border-radius: 999px; font-size: .8rem;
    text-decoration: none; position: relative;
    background: linear-gradient(160deg, var(--wl-2), rgba(255,255,255,.012) 60%), var(--bg-card);
    border: 1px solid var(--wl-border);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sys-badge:hover { transform: translateY(-1px); border-color: var(--wl-4); }
/* 轨道 + 卫星 */
.sys-orbit { width: 17px; height: 17px; border-radius: 50%; position: relative; flex-shrink: 0;
    border: 1px solid rgba(148,163,184,.4);
    animation: sysOrbit 3.2s linear infinite; }
.sys-sat { position: absolute; top: -2.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: #64748b; }
.sys-orbit::after { content: ''; position: absolute; inset: 4.5px; border-radius: 50%;
    background: rgba(148,163,184,.5); transition: background .3s; }
@keyframes sysOrbit { to { transform: rotate(360deg); } }
/* 状态色 */
.sys-badge.on { border-color: rgba(14,203,129,.30);
    box-shadow: 0 0 16px rgba(14,203,129,.10), inset 0 0 12px rgba(14,203,129,.045); }
.sys-badge.on .sys-orbit { border-color: rgba(14,203,129,.38); }
.sys-badge.on .sys-sat { background: #0ecb81; box-shadow: 0 0 7px 1px rgba(14,203,129,.7); }
.sys-badge.on .sys-orbit::after { background: rgba(14,203,129,.85); box-shadow: 0 0 9px rgba(14,203,129,.8);
    animation: sysCore 2.4s ease-in-out infinite; }
.sys-badge.stale { border-color: rgba(240,185,11,.30);
    box-shadow: 0 0 14px rgba(240,185,11,.08), inset 0 0 10px rgba(240,185,11,.04); }
.sys-badge.stale .sys-orbit { border-color: rgba(240,185,11,.38); animation-duration: 5s; }
.sys-badge.stale .sys-sat { background: #f0b90b; box-shadow: 0 0 6px rgba(240,185,11,.6); }
.sys-badge.stale .sys-orbit::after { background: rgba(240,185,11,.8); }
.sys-badge.off { border-color: rgba(246,70,93,.30); }
.sys-badge.off .sys-orbit { border-color: rgba(246,70,93,.38); animation: none; }
.sys-badge.off .sys-sat { background: #f6465d; box-shadow: 0 0 6px rgba(246,70,93,.6); }
.sys-badge.off .sys-orbit::after { background: rgba(246,70,93,.85); }
@keyframes sysCore { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
/* 文案 */
.sys-copy { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.sys-label { font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--text-muted);
    transition: color .3s; white-space: nowrap; }
.sys-sub { font-size: .6rem; color: var(--text-muted); opacity: .75; white-space: nowrap;
    font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.sys-badge.on .sys-label { color: #0ecb81; text-shadow: 0 0 10px rgba(14,203,129,.4); }
.sys-badge.stale .sys-label { color: #f0b90b; }
.sys-badge.off .sys-label { color: #f6465d; }
.sys-badge.on .sys-sub { color: #0ecb81; opacity: .55; }
.sys-badge.stale .sys-sub { color: #f0b90b; opacity: .55; }
.sys-badge.off .sys-sub { color: #f6465d; opacity: .55; }
/* 实盘/双模: 金色警示系 (真实资金) */
.sys-badge.on.live { border-color: rgba(240,185,11,.42);
    box-shadow: 0 0 16px rgba(240,185,11,.14), inset 0 0 12px rgba(240,185,11,.05); }
.sys-badge.on.live .sys-orbit { border-color: rgba(240,185,11,.45); }
.sys-badge.on.live .sys-sat { background: #f0b90b; box-shadow: 0 0 7px 1px rgba(240,185,11,.75); }
.sys-badge.on.live .sys-orbit::after { background: rgba(240,185,11,.9); box-shadow: 0 0 9px rgba(240,185,11,.85); }
.sys-badge.on.live .sys-label { color: #f0b90b; text-shadow: 0 0 10px rgba(240,185,11,.45); }
.sys-badge.on.live .sys-sub { color: #f0b90b; }
/* 双模: 金绿混色 (绿环轨道 + 金色核心/文字) */
.sys-badge.on.dual { border-color: rgba(240,185,11,.30);
    box-shadow: 0 0 16px rgba(240,185,11,.10), inset 0 0 12px rgba(14,203,129,.04); }
.sys-badge.on.dual .sys-orbit { border-color: rgba(14,203,129,.38); }
.sys-badge.on.dual .sys-sat { background: #0ecb81; box-shadow: 0 0 7px 1px rgba(14,203,129,.7); }
.sys-badge.on.dual .sys-orbit::after { background: rgba(240,185,11,.9); box-shadow: 0 0 9px rgba(240,185,11,.85); }
.sys-badge.on.dual .sys-label { color: #f0b90b; text-shadow: 0 0 10px rgba(240,185,11,.45); }
.sys-badge.on.dual .sys-sub { color: #f0b90b; }
@media (max-width: 640px) { .sys-badge { padding: 4px 11px; } .sys-sub { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .sys-orbit, .sys-badge.on .sys-orbit::after { animation: none; }
}

/* ═══ 超管通知 ═══ */
.notif-entry { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px;
    margin-bottom: 8px; border-radius: 10px; background: var(--wl-1);
    border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer;
    font-size: .82rem; font-weight: 700; text-align: left; transition: all .18s; }
.notif-entry:hover { border-color: rgba(240,185,11,.4); color: #f0b90b; background: rgba(240,185,11,.06); }
.notif-entry .notif-ic { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.notif-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: linear-gradient(135deg, #f6465d, #ff8a5c); color: #fff; font-size: .66rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(246,70,93,.5); }
.notif-badge-avatar { position: absolute; top: 2px; left: 40px; z-index: 3; margin-left: 0;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; border: 2px solid var(--bg-card);
    animation: avatarBadgePulse 2s ease-in-out infinite; }
@keyframes avatarBadgePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(246,70,93,.45); }
    50% { box-shadow: 0 0 16px rgba(246,70,93,.8); }
}
.notif-panel { position: relative; width: min(560px, calc(100vw - 40px)); max-height: min(76vh, 720px);
    display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.55); overflow: hidden;
    animation: notifIn .22s cubic-bezier(.22,.61,.36,1); }
@keyframes notifIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px;
    border-bottom: 1px solid var(--border); }
.notif-title { font-size: 1rem; font-weight: 800;
    background: linear-gradient(135deg, #f0b90b, #0ecb81); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent; }
.notif-head .btn { margin-left: auto; }
.notif-close { margin-left: 8px; width: 28px; height: 28px; border-radius: 50%; border: none;
    background: var(--wl-3); color: var(--text-muted); cursor: pointer; font-size: .85rem; flex-shrink: 0; }
.notif-close:hover { color: var(--text-primary); background: var(--wl-4); }
.notif-list { padding: 10px 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.notif-item { border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
    background: var(--wl-1); transition: border-color .2s, background .2s; }
.notif-item.unread { border-color: rgba(240,185,11,.45); background: rgba(240,185,11,.05); }
.notif-item.read { opacity: .78; }
.notif-item-head { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: rgba(148,163,184,.4); }
.notif-item.unread .notif-dot { background: #f0b90b; box-shadow: 0 0 8px rgba(240,185,11,.8);
    animation: pulse-dot 1.6s infinite; }
.notif-item-title { font-weight: 700; font-size: .88rem; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { margin-left: auto; font-size: .68rem; color: var(--text-muted); white-space: nowrap;
    font-variant-numeric: tabular-nums; flex-shrink: 0; }
.notif-body { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--wl-3);
    font-size: .82rem; color: var(--text-secondary); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.notif-item.open .notif-body { display: block; }
.notif-item.open .notif-item-title { white-space: normal; }
.notif-admin { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--wl-3); flex-wrap: wrap; }
.notif-readstat { font-size: .72rem; color: var(--text-muted); }
.notif-readstat b { color: #0ecb81; font-variant-numeric: tabular-nums; }
.notif-readers { margin-top: 8px; font-size: .72rem; color: var(--text-muted); }
.notif-readers summary { cursor: pointer; font-weight: 700; color: var(--text-secondary); }
.notif-readers div { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.notif-reader { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 10px;
    background: rgba(14,203,129,.08); border: 1px solid rgba(14,203,129,.25); color: var(--text-secondary); }
.notif-reader i { font-style: normal; opacity: .55; font-size: .64rem; }
.notif-empty { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: .82rem; }
.nf-check { display: flex; align-items: center; gap: 7px; padding: 6px 10px; margin: 4px 0;
    border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; cursor: pointer;
    background: var(--wl-1); transition: border-color .15s; }
.nf-check:hover { border-color: rgba(240,185,11,.4); }
.nf-check input { accent-color: #0ecb81; }
.nf-member-box { max-height: 200px; overflow-y: auto; border: 1px solid var(--border);
    border-radius: 10px; padding: 6px; }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse-dot 2s infinite;
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    font-size: 0.8rem; color: var(--text-muted);
}

/* ── Page Content ── */
.page-content {
    flex: 1;
    padding: 24px 28px 48px;
}

/* ================================================================
   CARDS & STATS
   ================================================================ */

/* 窄宽页面容器 (左对齐, 不居中) */
.narrow { max-width: 1080px; }

/* 统一面板组件 (panel/panel-h/panel-t/stat-row/stat-box) */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.panel-h {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.panel-t {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700;
    color: var(--text-secondary); letter-spacing: .03em;
}
.panel-t svg { width: 15px; height: 15px; stroke: var(--accent); }
.th-icon { width: 13px; height: 13px; stroke: var(--accent); vertical-align: -2px; margin-right: 3px; }
.panel-link { font-size: .7rem; text-decoration: none; }
.stat-row {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 10px; margin-bottom: 14px;
}
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; transition: var(--transition); position: relative; overflow: hidden; }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #f0b90b, #0ecb81); opacity: .4; }
.stat-box:hover { border-color: var(--border-light); }
.stat-box .sb-top { display: flex; align-items: center; gap: 7px; }
.stat-box .sb-top .l2 { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.stat-box .sb-top .l2 .sb-l2-ic { width: 11px; height: 11px; flex-shrink: 0; }
.sb-mrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.sb-mrow .v { font-size: 1.05rem; font-weight: 700; }
.sb-mrow .v2 { margin-left: auto; font-size: 1.05rem; font-weight: 700; }
.sb-ic { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
    background: rgba(14,203,129,.1); flex-shrink: 0; }
.sb-ic svg { width: 12px; height: 12px; stroke: #0ecb81; }
.sb-ic.gold { background: rgba(240,185,11,.12); }
.sb-ic.gold svg { stroke: #f0b90b; }
.sb-ic.blue { background: rgba(59,130,246,.12); }
.sb-ic.blue svg { stroke: #3b82f6; }
.sb-ic.red { background: rgba(246,70,93,.12); }
.sb-ic.red svg { stroke: #f6465d; }
.stat-box .l { font-size: .68rem; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.stat-box .v { font-size: 1.02rem; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-box .s { font-size: .62rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 纸面/实盘拆分行 + 模式小标签 (仪表盘卡片/表格/订单流通用) */
.sb-split { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.sb-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-r .v { margin-top: 0; }
.sb-r .v.stat-up { color: #0ecb81; }
.sb-r .v.stat-down { color: #f6465d; }
.sb-tag { font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 8px; letter-spacing: .3px; flex-shrink: 0; white-space: nowrap; }
.sb-tag.paper { background: rgba(14,203,129,.13); color: #0ecb81; }
.sb-tag.live { background: rgba(240,185,11,.16); color: #f0b90b; }
@media (max-width: 1150px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat-box.stat-payoff { display: none; } }
.two-col { display: grid; grid-template-columns: 2fr 3fr; gap: 14px; }
.one-one { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feed-list { flex: 1; min-height: 120px; max-height: 380px; overflow-y: auto; }
.feed-list .empty-state { padding: 22px 12px; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 8px 2px;
    border-bottom: 1px solid var(--border); font-size: .8rem; }
.feed-item:last-child { border-bottom: none; }
.feed-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; font-weight: 800; font-size: .72rem; }
.feed-icon.buy { background: rgba(14,203,129,.12); color: #0ecb81; }
.feed-icon.sell { background: rgba(246,70,93,.12); color: #f6465d; }
.feed-main { min-width: 0; flex: 1; }
.feed-title { font-weight: 600; font-size: .8rem; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; margin-top: 5px; }
.fg-cell { display: flex; flex-direction: column; min-width: 0; }
.fg-k { font-size: .62rem; color: var(--text-muted); opacity: .8; margin-bottom: 1px; }
.fg-v { font-size: .72rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-iso { color: var(--blue); }
.feed-meta { margin-left: auto; text-align: right; font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.feed-freeze { margin-top: 2px; opacity: .85; }
@media (max-width: 1100px) {
    .stat-row { grid-template-columns: repeat(3, 1fr); }
    .two-col, .one-one { grid-template-columns: 1fr; }
    .eq-hero { min-height: 0; }
    .ai-band-head { flex-wrap: wrap; }
    .ai-time { margin-left: auto; }
}
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--border-light); }

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.card-title {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.card-title-icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2.5px; }
.settings-title-icon { width: 16px; height: 16px; margin-right: 7px; vertical-align: -2.5px; stroke: var(--accent); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: var(--transition);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.stat-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 1.5rem; font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -0.04em;
}
.stat-sub {
    font-size: 0.8rem; color: var(--text-muted);
    margin-top: 4px;
}

.stat-up { color: var(--green); }
.stat-down { color: var(--red); }
.stat-accent { color: var(--accent); }

/* ── Chart Placeholder ── */
.chart-area {
    height: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.chart-area::before {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, var(--accent-dim) 0%, transparent 100%);
    pointer-events: none;
}

/* ================================================================
   TABLES
   ================================================================ */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto; overflow-y: hidden;
    box-shadow: var(--shadow-card);
}

table {
    width: 100%; border-collapse: collapse;
}
/* 表格行交互 (2026-08-26): hover 高亮 + 极淡斑马纹 (浅色主题下 wl 微层自动映射为深色微层) */
table tbody tr:nth-child(even) { background: var(--wl-1); }
table tbody tr:hover { background: var(--wl-2); }
table tbody tr:nth-child(even):hover { background: var(--wl-2); }

/* 紧凑表格 (管理页) */
.table-compact thead th {
    padding: 8px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}
.table-compact tbody td {
    padding: 7px 12px;
    font-size: 0.82rem;
    line-height: 1.35;
}
.table-compact .badge {
    padding: 2px 8px;
    font-size: 0.72rem;
}
.table-compact .btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
}
.btn-group { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-group-inline { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; align-items: center; }
/* 推荐人搜索选择器 */
.ref-picker { position: relative; }
.ref-suggest { position: absolute; z-index: 60; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; width: 100%; max-height: 200px; overflow-y: auto; box-shadow: var(--shadow-lg); margin-top: 4px; }
.ref-option { padding: 7px 12px; font-size: .82rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-option:hover { background: rgba(59,130,246,.12); }
.table-compact .td-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.75;
}
.table-compact .td-nowrap {
    white-space: nowrap;
}

/* ================================================================
   操作记录时间线 (管理页审计)
   ================================================================ */
.audit-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
    padding: 6px 4px 10px;
    font-size: 0.8rem; color: var(--text-muted);
}
.audit-list { max-height: 560px; overflow-y: auto; padding: 0 4px 4px; }
.audit-day { margin-bottom: 14px; }
.audit-day-label {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 2px 6px; margin-bottom: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-card); z-index: 2;
}
.audit-day-count { font-weight: 400; opacity: 0.55; letter-spacing: 0; }
.audit-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--border);
    transition: background var(--transition);
}
.audit-item:hover { background: rgba(59, 130, 246, 0.04); }
.audit-item:last-child { border-bottom: none; }
.audit-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-top: 7px; flex-shrink: 0;
}
.audit-dot-info    { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }
.audit-dot-warning { background: var(--amber);  box-shadow: 0 0 6px var(--amber); }
.audit-dot-accent  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.audit-dot-danger  { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.audit-item-main { flex: 1; min-width: 0; }
.audit-item-top {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.82rem;
}
.audit-note {
    font-size: 0.78rem; color: var(--text-secondary); opacity: 0.9;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px;
}
.audit-amount {
    margin-left: auto; font-weight: 700;
    font-variant-numeric: tabular-nums; font-size: 0.82rem;
    color: var(--text-primary);
}
.audit-item-sub {
    font-size: 0.78rem; color: var(--text-secondary);
    opacity: 0.85; margin-top: 3px; word-break: break-word;
}
.audit-item-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 5px; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8;
}
.audit-time {
    font-family: var(--font-mono); font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
}
.audit-item .btn-sm { flex-shrink: 0; margin-top: 4px; }

/* ================================================================
   调参指南: 在线编辑 (Markdown)
   ================================================================ */
.guide-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.guide-hero {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 8px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0,224,184,.10), rgba(59,130,246,.07) 55%, transparent), var(--bg-card);
    border: 1px solid var(--border);
}
.guide-hero-title { font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.guide-hero-title svg { width: 16px; height: 16px; stroke: var(--accent); }
.guide-hero-sub { margin-top: 2px; font-size: .68rem; color: var(--text-muted); }
.guide-hero-meta { font-size: .64rem; opacity: .55; }
.guide-toc {
    position: sticky; top: 58px; z-index: 15; display: flex; flex-wrap: wrap; gap: 4px;
    padding: 5px 8px; margin-bottom: 8px; border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-card) 82%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}
.guide-toc-chip {
    font-size: .65rem; padding: 2px 8px; border-radius: 999px; color: var(--text-secondary);
    background: var(--bg-input); border: 1px solid var(--border); text-decoration: none;
    transition: border-color .15s, color .15s, transform .15s; white-space: nowrap;
}
.guide-toc-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.settings-section.guide-sec { margin-bottom: 8px; }
.guide-sec .settings-card { position: relative; overflow: hidden; padding: 11px 14px; }
.guide-sec .settings-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--accent), transparent 70%); opacity: .55;
}
.guide-sec .settings-card h3 { font-size: .85rem; margin-bottom: 6px; }
.guide-md-body { font-size: .75rem; line-height: 1.48; }
.guide-md-body p { margin: 0 0 5px; }
.guide-md-body ul, .guide-md-body ol { padding-left: 15px; margin: 0 0 5px; }
.guide-md-body li { margin-bottom: 1px; }
.guide-md-body table { width: 100%; min-width: 420px; }
.guide-md-body thead th { font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; }
.guide-md-body tbody td { padding: 5px 9px; border-top: 1px solid var(--wl-2); }
.guide-md-body tbody tr:hover { background: var(--wl-1); }
.guide-md-body td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.guide-editor {
    width: 100%; min-height: 55vh;
    background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; font-family: var(--font-mono);
    font-size: 0.85rem; line-height: 1.65; resize: vertical;
}
.guide-editor:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.guide-md-body { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); }
.guide-md-body p { margin: 0 0 10px; }
.guide-md-body ul, .guide-md-body ol { padding-left: 20px; margin: 0 0 10px; }
.guide-md-body li { margin-bottom: 4px; }
.guide-md-body strong { color: var(--text-primary); }
.guide-md-body .table-container { margin: 4px 0 14px; }
.guide-md-body code {
    background: var(--bg-input); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.85em;
}
.settings-card h3 svg { width: 17px; height: 17px; flex-shrink: 0; }
.guide-md-body td svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }

thead { background: var(--bg-secondary); }
thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 0.72rem; font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 11px 16px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tbody td:first-child, tbody td.strong { font-weight: 600; }
/* 手册表格首列短词不折行 (信号总览/定位磁针信号等四字页名曾折成两行) */
.manual-sec td.strong { white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ctr, th.ctr { text-align: center; }
td.nowrap { white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-card-hover); }

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00b392);
    color: #000;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-secondary {
    background: var(--bg-card); color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-light); background: var(--bg-card-hover); }

.btn-danger {
    background: var(--red-dim); color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-warning {
    background: rgba(245, 158, 11, 0.12); color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.btn-warning:hover { background: rgba(245, 158, 11, 0.22); }

.btn-success {
    background: rgba(16, 185, 129, 0.12); color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.22); }

.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: var(--radius-sm); }
.btn-icon-sm { width: 14px; height: 14px; flex-shrink: 0; }
.menu-toggle svg { width: 18px; height: 18px; }

.weak-pwd-banner {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--amber);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.btn-icon {
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
}

/* ================================================================
   FORMS
   ================================================================ */

.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 5px;
}
.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.form-select { appearance: none; cursor: pointer; }

.form-hint {
    font-size: 0.75rem; color: var(--text-muted);
    margin-top: 3px;
}

/* ================================================================
   BADGES & LABELS
   ================================================================ */

.badge {
    display: inline-block; padding: 3px 10px;
    font-size: 0.72rem; font-weight: 600;
    border-radius: 10px; letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-success { background: var(--green-dim); color: var(--green); }
.badge-danger { background: var(--red-dim); color: var(--red); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.badge-info { background: var(--blue-dim); color: var(--blue); }
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-iso { background: var(--blue-dim); color: var(--blue); }
.badge-cross { background: rgba(240, 185, 11, 0.18); color: #f0b90b; }

/* ================================================================
   ALERTS / TOASTS
   ================================================================ */

.toast-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: min(480px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 14px 11px 12px; border-radius: 14px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0,0,0,.38);
    border: 1px solid transparent;
    animation: toast-in .35s cubic-bezier(.21,1.02,.73,1);
    cursor: pointer; pointer-events: auto;
    transition: opacity .25s, transform .25s;
}
.toast-ic { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.toast-ic svg { width: 14px; height: 14px; }
.toast-msg { flex: 1; font-size: .85rem; font-weight: 500; line-height: 1.45; }
.toast-close { background: none; border: none; color: inherit; opacity: .5; font-size: .85rem; cursor: pointer; padding: 4px 7px; border-radius: 6px; flex-shrink: 0; }
.toast-close:hover { opacity: 1; background: var(--wl-3); }
.toast-success { background: rgba(6,78,59,.82); color: #6ee7b7; border-color: rgba(52,211,153,.35); }
.toast-success .toast-ic { background: rgba(16,185,129,.22); color: #34d399; }
.toast-error { background: rgba(127,29,29,.86); color: #fca5a5; border-color: rgba(248,113,113,.4); }
.toast-error .toast-ic { background: rgba(239,68,68,.22); color: #f87171; }
.toast-info { background: rgba(17,24,39,.9); color: var(--text-primary); border-color: rgba(148,163,184,.3); }
.toast-info .toast-ic { background: rgba(59,130,246,.22); color: #60a5fa; }
.toast.out { opacity: 0; transform: translateY(-12px); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .toast-container { top: 12px; width: calc(100vw - 24px); }
    .toast { padding: 10px 12px; border-radius: 12px; }
}

/* ── 确认弹窗 (替代浏览器原生 confirm) ── */
.confirm-modal { max-width: 420px; }
.confirm-body { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0 10px; }
.confirm-ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(240,185,11,.15); color: #f0b90b;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.confirm-msg { flex: 1; font-size: .88rem; line-height: 1.65; color: var(--text-primary); word-break: break-word; }

/* ================================================================
   MODAL
   ================================================================ */

.modal-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modal-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}
@keyframes modal-up {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.modal-body {
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}
.modal-lg { max-width: 760px; }
.modal-body-scroll {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 4px;
}
.modal-actions {
    display: flex; justify-content: flex-end; gap: 10px;
    margin-top: 24px;
    flex-shrink: 0;
}

/* ================================================================
   SIGNAL CARD
   ================================================================ */

.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: var(--transition);
    display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow-card);
}
.signal-card:hover { border-color: var(--border-light); }

.signal-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.signal-buy { background: var(--green-dim); }
.signal-sell { background: var(--red-dim); }

.signal-info { flex: 1; min-width: 0; }
.signal-pair { font-weight: 700; font-size: 0.95rem; }
.signal-source { font-size: 0.75rem; color: var(--text-muted); }

.signal-meta { text-align: right; }
.signal-price { font-family: var(--font-mono); font-weight: 600; }
.signal-time { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   TRADE ROW
   ================================================================ */

.trade-pnl-positive { color: var(--green); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.trade-pnl-negative { color: var(--red); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ================================================================
   SETTINGS CARDS
   ================================================================ */

.settings-section {
    margin-bottom: 28px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.settings-card h3 {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* 三列等宽小输入（冷却档/仓位分级权重等） */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.grid3 .form-group { margin-bottom: 0; }
.tf-note { display: flex; align-items: center; padding: 0 4px; font-size: .75rem;
    color: var(--text-muted); line-height: 1.6; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; } }

/* Safari 选择框/表单控件宽度规整 (grid 子项 min-width 归零 + select 去除原生外观) */
.form-group { min-width: 0; }
.form-input, .form-select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
}
select.form-input, select.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355627a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px 11px;
    padding-right: 34px;
}

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

.toggle-label { font-size: 0.9rem; font-weight: 500; }
.toggle-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Toggle switch */
.toggle {
    position: relative; width: 48px; height: 26px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 13px; cursor: pointer;
    transition: var(--transition);
}
.toggle.active { background: var(--accent); border-color: var(--accent); }
.toggle::after {
    content: ''; position: absolute;
    width: 20px; height: 20px;
    background: #fff; border-radius: 50%;
    top: 2px; left: 2px;
    transition: var(--transition);
}
.toggle.active::after { left: 24px; }

/* 小号滑动开关 .sw (策略页参数开关统一风格, 绿色渐变激活) — 与 strategies_new.html 内联版同款 */
.sw { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.sw input { display: none; }
.sw-slider { position: absolute; inset: 0; border-radius: 20px; background: rgba(148,163,184,.28);
    transition: .25s; border: 1px solid rgba(148,163,184,.35); }
.sw-slider:before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    left: 2px; top: 2px; background: #e2e8f0; transition: .25s; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.sw input:checked + .sw-slider { background: linear-gradient(135deg, #0ecb81, #2bb673); border-color: rgba(14,203,129,.6);
    box-shadow: 0 0 12px rgba(14,203,129,.4); }
.sw input:checked + .sw-slider:before { transform: translateX(20px); background: #fff; }

/* ================================================================
   EMPTY STATE
   ================================================================ */

.empty-state {
    text-align: center; padding: 48px 20px;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }
.empty-state .empty-title { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.empty-state .empty-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }


/* ================================================================
   MOBILE NAVIGATION (Bottom bar)
   ================================================================ */

.mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom));
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
}
/* iPhone 刘海安全区 */
/* iPhone 刘海安全区 (顶部留出刘海) */
.topbar { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
.page-content { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }

.mobile-nav-inner {
    display: flex; align-items: center; justify-content: space-around;
    height: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-nav-inner::-webkit-scrollbar { display: none; }

.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-muted);
    font-size: 0.6rem; font-weight: 500;
    text-decoration: none; padding: 4px 10px;
    border: none; background: none; cursor: pointer;
    font-family: inherit; -webkit-tap-highlight-color: transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mobile-nav-item .mni-icon { width: 20px; height: 20px; }
.mobile-nav-item.active { color: var(--accent); }

/* 手机底部弹出菜单 (我的/管理) — 桌面端不显示 */
.mobile-sheet-backdrop {
    display: none;
    position: fixed; inset: 0;
    z-index: 108;
    background: rgba(0, 0, 0, 0.45);
}
.mobile-sheet {
    display: none;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom) + 10px);
    z-index: 109;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px 0 8px;
    box-shadow: var(--shadow-lg);
    max-height: 62vh;
    overflow-y: auto;
}
.mobile-sheet-title {
    padding: 10px 16px 6px;
    font-size: .72rem;
    color: var(--text-muted);
}
.mobile-sheet-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 12px 16px;
    color: var(--text-primary);
    background: none; border: none;
    font-size: .92rem; font-family: inherit;
    text-decoration: none; text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.mobile-sheet-item:active { background: var(--bg-secondary); }
.mobile-sheet-item.danger { color: #f87171; }
.mobile-sheet-item svg { width: 18px; height: 18px; }
.mobile-sheet-backdrop.show { display: block; }
.mobile-sheet.open { display: block; }

/* ================================================================
   手机精简模式 (手机隐藏大屏功能菜单 + 精简提示行)
   ================================================================ */
.mobile-notice { display: none; }

@media (max-width: 768px) {
    .mobile-hide { display: none !important; }
    .mobile-notice {
        display: block;
        margin: 0 0 12px;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--bg-secondary);
        color: var(--text-muted);
        font-size: .78rem;
        text-align: center;
    }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }

    /* 手机端汉堡菜单已退役: 导航统一走底部栏 + 弹出菜单 */
    .menu-toggle { display: none; }

    .main-content { margin-left: 0; padding-bottom: var(--mobile-nav-h); }

    .topbar { padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .page-content { padding: 16px; }

    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px 16px; }
    .stat-value { font-size: 1.25rem; }

    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 600px; }
    /* 手册表格移动端卡片化 (2026-09-20): 长文本表格横向溢出 → 转卡片堆叠, 消除横向滚动 */
    .manual-sec .table-container { overflow: visible; }
    .manual-sec table { min-width: 0 !important; width: 100%; }
    .manual-sec thead { display: none; }
    .manual-sec tbody, .manual-sec tr, .manual-sec td { display: block; width: 100%; box-sizing: border-box; }
    .manual-sec tbody tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; background: var(--bg-card); }
    .manual-sec tbody td { border: none; padding: 4px 0; font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
    .manual-sec tbody td.strong { font-size: 1rem; font-weight: 800; color: var(--accent); padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px solid var(--border); white-space: normal; }
    .manual-sec tbody td[data-label]::before { content: attr(data-label); display: block; font-size: .66rem; color: var(--text-muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 2px; }

    .settings-grid { grid-template-columns: 1fr; }

    .signal-card { flex-wrap: wrap; }
    .signal-meta { text-align: left; width: 100%; margin-top: 6px; }

    /* 移动端触控目标: 小按钮加大到至少 32px 高 */
    .btn-sm, .table-compact .btn-sm { min-height: 32px; padding: 6px 12px; }

    .mobile-nav { display: block; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    /* 移动端精致化 (2026-08-31): 卡片呼吸感微调 */
    .eq-hero { padding: 15px 15px 17px; }
    .ai-band { padding: 11px 13px; }
    .eq-hero-row { padding: 8px 0; }
    .lg-filters .btn { margin-left: auto; }

    .page-content { padding: 12px; }
    .topbar { padding: 0 12px; }
    .page-title { font-size: 1rem; }
    .status-text { display: none; }

    .stat-grid { grid-template-columns: 1fr; gap: 8px; }
    .stat-value { font-size: 1.15rem; }

    .card { padding: 16px; }

    .modal { padding: 20px; margin: 10px; }
    .modal-actions { flex-direction: column; }
    .modal-actions .btn { width: 100%; justify-content: center; }
}

/* ── Sidebar overlay for mobile ── */
.sidebar-overlay {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99;
    background: rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .sidebar-overlay.show { display: block; }
}

/* ════════════════════════════════════════════
   个人中心 (Profile)
   ════════════════════════════════════════════ */
.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 768px) { .profile-cols { grid-template-columns: 1fr; } }
.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 32px;
    background:
        radial-gradient(1200px 300px at 0% 0%, rgba(0, 212, 170, 0.06), transparent 60%),
        radial-gradient(900px 300px at 100% 100%, rgba(14, 165, 233, 0.06), transparent 60%),
        var(--bg-card);
}
.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.12);
}
.profile-hero-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.profile-hero-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.profile-hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: left;
    min-width: 90px;
}
.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.hero-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* 基本信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px 0;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.info-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}
.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 30px;
}
.form-input-sm {
    padding: 7px 12px;
    font-size: 0.85rem;
}

/* 推荐关系摘要 */
.referral-summary {
    display: flex;
    gap: 40px;
    padding: 8px 0 16px;
    flex-wrap: wrap;
}
.referral-block-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.referral-block-value {
    font-size: 1rem;
}

/* 交易记录表规整化 */
.trades-table { width: 100%; min-width: 900px; table-layout: fixed; }
.trades-table thead th { font-size: .66rem; letter-spacing: .06em; color: var(--text-muted); font-weight: 650;
    padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.trades-table td { padding: 9px 10px; font-size: .78rem; border-bottom: 1px solid var(--border); }
.trades-table tbody tr:last-child td { border-bottom: none; }
.trades-table tbody tr:hover { background: var(--hover); }
/* 固定列宽: 前10列显式, 原因列自动分剩余 (约280px+); 盈亏放宽容纳万位金额 */
.trades-table thead th:nth-child(1) { width: 80px; }   /* 时间 */
.trades-table thead th:nth-child(2) { width: 72px; }   /* 模式/市场 */
.trades-table thead th:nth-child(3) { width: 74px; }   /* 交易所 */
.trades-table thead th:nth-child(4) { width: 86px; }   /* 交易对 */
.trades-table thead th:nth-child(5) { width: 64px; }   /* 方向 */
.trades-table thead th:nth-child(6) { width: 70px; }   /* 数量 */
.trades-table thead th:nth-child(7) { width: 86px; }   /* 开/平价 */
.trades-table thead th:nth-child(8) { width: 50px; }   /* 状态 */
.trades-table thead th:nth-child(9) { width: 80px; }   /* 策略 */
.trades-table thead th:nth-child(10) { width: 92px; }  /* 盈亏 */
.trades-table td.num { white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.trades-table thead th { font-size: .72rem; letter-spacing: .04em; }
.trades-table td svg { stroke: var(--accent); flex-shrink: 0; }
/* 多空色块方向标签 (pos-table 同款设计语言) */
.tr-dir { display: inline-flex; align-items: center; justify-content: center; min-width: 34px;
    padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    white-space: nowrap; }
.tr-dir.buy { color: #4ade80; background: rgba(34,197,94,.12); }
.tr-dir.sell { color: #f87171; background: rgba(239,68,68,.12); }
.tr-dir.close-long { color: #fbbf24; background: rgba(251,191,36,.14); }
.tr-dir.close-short { color: #60a5fa; background: rgba(96,165,250,.14); }
.trades-table .tr-sym { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .3px; color: var(--text-primary); }

/* 列表头 (交易明细/决策流) */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 2px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.list-title { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 800; color: var(--text-primary); }
.list-title-icon { width: 15px; height: 15px; stroke: var(--accent); }
.list-meta { font-size: .74rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.list-meta span { color: var(--accent); font-weight: 700; }

/* 筛选栏标签 + 表单组 (全局, 交易记录/运行日志共用; 收紧尺寸保证 1080px 容器单行放下) */
.f-group { display: flex; flex-direction: column; gap: 4px; }
.f-group .form-input { min-width: 96px; }
/* 列表页工具栏 (标题+筛选同行, 与运行日志一致) */
.lg-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.lg-filters { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: flex-end; }
.lg-filters .f-group .form-input, .lg-filters select, .lg-filters input { width: auto; min-width: 88px; }
.f-label { font-size: .66rem; font-weight: 700; color: var(--text-muted); letter-spacing: .02em; }
/* 筛选栏紧凑化: 比全站表单小一号, 更矮更密 */
.lg-toolbar h3 { font-size: .98rem; }
.lg-filters .f-group { gap: 2px; }
.lg-filters .f-label { font-size: .6rem; }
.lg-filters .form-input { padding: 5px 24px 5px 9px; font-size: .74rem; border-radius: 7px; }
.lg-filters input[type="datetime-local"].form-input { padding-right: 9px; }
.lg-filters .btn { padding: 5px 11px; font-size: .74rem; }

/* ── 交易所 LOGO 徽章 (与交易设置页一致: 半透明芯片 + 大图) ── */
.ex-logo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 10px; padding: 6px; background: var(--wl-3); flex-shrink: 0;
    box-shadow: inset 0 0 0 1px var(--wl-3); }
.ex-logo img { width: 22px; height: 22px; object-fit: contain; }

/* ── 引擎管理页 状态统计 ── */
.eng-stat-label { font-size: .68rem; color: var(--text-muted); margin-bottom: 3px; letter-spacing: .03em; }
.eng-stat-value { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

/* ── 引擎管理页 ── */
.eng-hero { background: linear-gradient(135deg, rgba(14,203,129,.06), rgba(59,130,246,.07) 55%, rgba(14,203,129,.04));
    border: 1px solid rgba(59,130,246,.22); }
.eng-hero-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 18px 20px 6px; }
.eng-hero-left { display: flex; align-items: center; gap: 14px; }
.eng-hero-title { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.eng-hero-state { font-size: .95rem; }
.eng-hero-sub { font-size: .74rem; color: var(--text-muted); margin-top: 4px; }
.eng-hero-right { display: flex; align-items: center; gap: 10px; }
.eng-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--border); }
.eng-dot.on { background: #0ecb81; box-shadow: 0 0 0 0 rgba(14,203,129,.6); animation: engPulse 1.8s ease-out infinite; }
.eng-dot.stale { background: #f0b90b; }
.eng-dot.off { background: #f6465d; }
@keyframes engPulse { 0% { box-shadow: 0 0 0 0 rgba(14,203,129,.5); } 70% { box-shadow: 0 0 0 12px rgba(14,203,129,0); } 100% { box-shadow: 0 0 0 0 rgba(14,203,129,0); } }
.eng-tiles { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; padding: 12px 20px 18px; }
.eng-tile { background: var(--wl-1); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.eng-tile-label { display: flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--text-muted); margin-bottom: 5px; }
.eng-tile-label svg { width: 12px; height: 12px; opacity: .7; }
.eng-tile-value { font-size: 1.12rem; font-weight: 800; color: var(--text-primary); }
.eng-tile-split { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: .68rem; font-weight: 700; }
.eng-tile-split .eng-split-item { padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.eng-tile-split .eng-split-item.live { color: #f0b90b; background: rgba(240,185,11,.14); }
.eng-tile-split .eng-split-item.paper { color: #0ecb81; background: rgba(14,203,129,.14); }
.eng-mode-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.eng-mode-badge.paper { color: #0ecb81; background: rgba(14,203,129,.12); box-shadow: inset 0 0 0 1px rgba(14,203,129,.4); }
.eng-mode-badge.live { color: #f0b90b; background: rgba(240,185,11,.12); box-shadow: inset 0 0 0 1px rgba(240,185,11,.45); }
.eng-mode-badge.dual { color: #e8e9ec; background: rgba(59,130,246,.1); box-shadow: inset 0 0 0 1px rgba(59,130,246,.35); }
.eng-mode-badge .mm { padding: 1px 7px; border-radius: 999px; font-size: .68rem; }
.eng-mode-badge .mm-paper { color: #0ecb81; background: rgba(14,203,129,.16); }
.eng-mode-badge .mm-live { color: #f0b90b; background: rgba(240,185,11,.16); }
.eng-live-warn { display: flex; align-items: center; gap: 8px; margin: 0 20px 16px; padding: 9px 14px;
    border-radius: 10px; background: rgba(240,185,11,.09); border: 1px solid rgba(240,185,11,.3);
    color: #f0b90b; font-size: .76rem; }
.eng-params { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 14px; padding: 12px 18px 16px; }

/* ── 交易所监控卡片网格 ── */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 12px; }
.ex-card { background: var(--wl-1); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
    transition: border-color .3s, box-shadow .3s; }
.ex-card:hover { border-color: rgba(59,130,246,.45); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.ex-card.idle { opacity: .55; }
.ex-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ex-name { flex: 1; font-size: .82rem; letter-spacing: .04em; color: var(--text-primary); }
.ex-pct { font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ex-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.ex-bar-fill { height: 100%; border-radius: 3px; }
.ex-stats { font-size: .72rem; color: var(--text-muted); margin-bottom: 3px; }
.ex-warn { font-size: .7rem; color: var(--text-muted); }
.ex-warn b { color: #f0b90b; }
.ex-warn.muted { opacity: .6; }
.ex-alert429 { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(246,70,93,.1);
    border: 1px solid rgba(246,70,93,.3); color: #f8788a; font-size: .74rem; }
.ex-wsline { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--border); font-size: .74rem; color: var(--text-muted); }
.ex-ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ex-ws-dot.on { background: #0ecb81; box-shadow: 0 0 6px rgba(14,203,129,.8); }

@media (max-width: 760px) {
    .eng-tiles { grid-template-columns: repeat(2, 1fr); }
    .eng-params { grid-template-columns: 1fr; }
}

/* ── 日期/时间输入: 恢复原生日历选择器 (支持鼠标点选, 全局 appearance:none 会屏蔽它) ── */
input[type="date"].form-input, input[type="time"].form-input {
    -webkit-appearance: auto;
    appearance: auto;
    cursor: pointer;
    background: var(--bg-input, var(--wl-2));
}
/* 日历/时钟图标: 用自定义浅色 SVG 替换默认深色图标 (深色主题下清晰可见) */
input[type="date"].form-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cdd6e4' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1);
    opacity: .9;
    cursor: pointer;
}
input[type="time"].form-input::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cdd6e4' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1);
    opacity: .9;
    cursor: pointer;
}

/* ── 自定义时间段弹窗 ── */
.rm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.rm-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.rm-row-label { width: 38px; font-size: .8rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.rm-row input[type="date"] { flex: 1; min-width: 0; }
.rm-row input[type="time"] { width: 104px; flex-shrink: 0; }
.rm-preview { margin-top: 14px; padding: 10px 12px; border-radius: 8px;
    background: rgba(59,130,246,.08); border: 1px dashed rgba(59,130,246,.35);
    color: #6ea8fe; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }

/* ── 默认币种管理芯片 (系统设置) ── */
.sym-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px;
    border-radius: 999px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25);
    color: var(--text-primary); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sym-chip button { background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: .72rem; padding: 2px 5px; border-radius: 4px; line-height: 1; }
.sym-chip button:hover { color: var(--text-primary); background: var(--wl-4); }
.sym-chip button.del:hover { color: #f6465d; }

/* ── 默认币种联想下拉 (设置页) ── */
.sym-sug { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
    background: var(--bg-card, #141a26); border: 1px solid var(--border);
    border-radius: 10px; max-height: 240px; overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.45); padding: 4px; }
.sym-sug-item { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 7px; font-size: .8rem; cursor: pointer; }
.sym-sug-item:hover { background: rgba(59,130,246,.14); }
.sym-sug-item.hl { color: #6ea8fe; }
.sym-sug-item .hint { font-size: .62rem; opacity: .55; }

/* ================================================================
   操作手册 /manual (自模板内嵌 <style> 迁入 head, 修复首屏闪烁)
   ================================================================ */
/* ═══ 操作手册 (与其它页面同一套 settings-card 骨架) ═══ */

/* ── 页内顶部导航 (固定不动) ── */
.manual-navbar { position: sticky; top: 64px; z-index: 40; display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 9px 12px 9px 16px; margin-bottom: 24px; }
.manual-nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-right: 14px; border-right: 1px solid var(--border); }
.manual-nav-ic { width: 17px; height: 17px; color: var(--accent, #5b7cfa); }
.manual-nav-name { font-weight: 700; font-size: .88rem; color: var(--text-primary, #d3defc); }
.manual-nav-links { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.manual-nav-links::-webkit-scrollbar { display: none; }
.manual-nav-item { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-size: .77rem; color: var(--text-muted, #8ea0c9); text-decoration: none; transition: all .16s; flex-shrink: 0; }
.manual-nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary, #d3defc); }
.manual-nav-item.active { background: linear-gradient(135deg, rgba(14,203,129,.2), rgba(14,203,129,.1)); color: #0ecb81; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(14,203,129,.4), 0 0 12px rgba(14,203,129,.18); }
.manual-nav-note { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: .68rem; color: var(--text-muted, #8ea0c9); white-space: nowrap; }
.manual-nav-note svg { width: 12px; height: 12px; color: var(--accent, #5b7cfa); }
@media (max-width: 1150px) { .manual-nav-note { display: none; } }

/* ── 章节 ── */
.manual-sec { scroll-margin-top: 138px; margin-bottom: 36px; }
body.js-anim .manual-sec { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.manual-sec.manual-in { opacity: 1 !important; transform: none !important; }

/* ── 内容元素 ── */
.manual-p { margin: 0 0 12px; font-size: .85rem; line-height: 1.8; color: var(--text-secondary, #b9c6e6); }
.manual-p b { color: var(--text-primary, #e6edff); }
.manual-list { margin: 0; padding-left: 2px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.manual-list li { position: relative; padding-left: 18px; font-size: .85rem; line-height: 1.8; color: var(--text-secondary, #b9c6e6); }
.manual-list li::before { content: ''; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #5b7cfa); }
.manual-list b { color: var(--text-primary, #e6edff); }
.manual-h4 { margin: 18px 0 10px; font-size: .9rem; font-weight: 700; color: var(--text-primary, #dce7ff); display: flex; align-items: center; gap: 7px; }
.manual-h4 svg { width: 14px; height: 14px; color: var(--accent, #5b7cfa); flex-shrink: 0; }
/* 表格直接复用全局 .table-container 样式 (与其它页面一致) */
.manual-sec .table-container { margin: 8px 0 14px; }
.manual-sec .table-container td { font-size: .84rem; line-height: 1.65; }
.manual-sec .table-container b { color: var(--text-primary, #e6edff); }

/* 提示框 */
.manual-tip, .manual-warn { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 2px; padding: 11px 14px; border-radius: 11px; font-size: .8rem; line-height: 1.75; color: var(--text-secondary, #a9badf); }
.manual-tip { background: rgba(14,203,129,.07); border: 1px solid rgba(14,203,129,.28); }
.manual-tip svg { width: 15px; height: 15px; color: #0ecb81; flex-shrink: 0; margin-top: 2px; }
.manual-warn { background: rgba(240,185,11,.07); border: 1px solid rgba(240,185,11,.3); }
.manual-warn svg { width: 15px; height: 15px; color: #f0b90b; flex-shrink: 0; margin-top: 2px; }
.manual-tip b, .manual-warn b { color: var(--text-primary, #e2eaff); }

/* 细节速览 */
.manual-details { margin: 14px 0 2px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.manual-detail-title { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--text-primary, #dce7ff); margin-bottom: 8px; }
.manual-detail-title svg { width: 14px; height: 14px; color: var(--accent, #5b7cfa); flex-shrink: 0; }
.manual-details ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.manual-details li { position: relative; padding-left: 16px; font-size: .8rem; line-height: 1.7; color: var(--text-secondary, #b9c6e6); }
.manual-details li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, #5b7cfa); }
.manual-details b { color: var(--text-primary, #e6edff); }

/* 重要提示 (默认参数等) */
.manual-important { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 14px 16px; border-radius: 12px; font-size: .82rem; line-height: 1.8; color: var(--text-secondary, #c9d4ee); background: linear-gradient(135deg, rgba(240,185,11,.09), rgba(246,70,93,.06)); border: 1px solid rgba(240,185,11,.35); }
.manual-important svg { width: 17px; height: 17px; color: #f0b90b; flex-shrink: 0; margin-top: 3px; }
.manual-important b { color: #ffd66b; }
.manual-important span b:first-child { color: #ffe9ad; }

/* ── 封面 (系统概览) ── */
.manual-hero { position: relative; display: flex; gap: 30px; align-items: center; background: linear-gradient(140deg, #16203c 0%, #0d1426 55%, #131c38 100%); border: 1px solid #2a3b66; border-radius: 20px; padding: 34px 34px 30px; margin-bottom: 26px; flex-wrap: wrap; overflow: hidden; }
.manual-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(91,124,250,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(91,124,250,.05) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 75%); }
.manual-hero-txt { flex: 1; min-width: 300px; position: relative; }
.manual-hero-kicker { font-size: .68rem; letter-spacing: .22em; color: #f0b90b; font-weight: 700; margin-bottom: 12px; }
.manual-hero-logo { display: block; height: 46px; width: auto; margin-bottom: 16px; }
.manual-hero-txt h2 { margin: 0 0 14px; font-size: 1.66rem; line-height: 1.35; color: #eef3ff; font-weight: 800; }
.manual-hero-grad { background: linear-gradient(92deg, #6f9bff 0%, #9f7bfa 55%, #4fd6c0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.manual-hero-txt p { margin: 0 0 18px; font-size: .86rem; line-height: 1.85; color: #93a5d0; max-width: 520px; }
.manual-hero-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.manual-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; color: #aabde8; background: rgba(91,124,250,.1); border: 1px solid rgba(91,124,250,.28); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.manual-chip svg { width: 13px; height: 13px; color: #5b7cfa; }
.manual-hero-arch { flex: 0 0 340px; text-align: center; position: relative; }
.manual-arch-title { font-size: .74rem; letter-spacing: .14em; color: #7d90bd; margin-bottom: 10px; }
.manual-hero-arch svg { width: 100%; height: auto; }
.manual-arch-note { font-size: .72rem; color: #6e80ae; margin-top: 10px; }

/* 4.3 表格分组小标题 */
.manual-h4-sub { font-size: .82rem; color: #f0b90b; margin: 18px 0 8px; }

/* 原理示意图 */
.manual-fig { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px 10px; margin: 14px 0 4px; }
.manual-fig svg { width: 100%; height: auto; display: block; }
.manual-fig-cap { text-align: center; font-size: .72rem; color: var(--text-muted, #7d90bd); margin-top: 8px; }
.manual-fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .manual-fig-grid { grid-template-columns: 1fr; } }

/* 截图 (浏览器窗框) */
.manual-shots { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.manual-shots-2 { display: grid; grid-template-columns: 1fr 1fr; }
/* 截图+右侧解说并排: 图文结合, 右侧不留白 */
.manual-shot-with-notes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 16px; align-items: stretch; }
.manual-shot-notes { display: flex; flex-direction: column; gap: 2px; }
.manual-shot-notes { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.manual-shot-notes-title { display: flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: #dce7ff; margin-bottom: 10px; }
.manual-shot-notes-title svg { width: 15px; height: 15px; color: var(--accent, #5b7cfa); }
.manual-shot-notes .manual-list li { font-size: .79rem; line-height: 1.7; }
.manual-shot-notes .manual-list { gap: 8px; }
@media (max-width: 900px) { .manual-shot-with-notes { grid-template-columns: 1fr; } }
/* 手机样机边框: 圆角背壳 + 刘海 + 底部单行标注 (替代浏览器窗框) */
.manual-phone { background: linear-gradient(180deg, #131a2c, #0a0e17); border: 1px solid var(--border); border-radius: 30px; padding: 14px 12px 12px; box-shadow: 0 18px 44px rgba(2,6,18,.55); position: relative; }
.manual-phone::before { content: ''; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 88px; height: 8px; border-radius: 999px; background: #1d2942; z-index: 2; }
.manual-phone img { display: block; width: auto; max-width: 100%; max-height: 500px; height: auto; border-radius: 16px; margin: 0 auto; }
.manual-phone-cap { text-align: center; font-size: .74rem; color: var(--text-muted, #7d90bd); margin-top: 10px; }
.manual-login-grid .manual-phone { margin: 0; }
/* 登录与账号: 手机截图在左, 文字内容填右侧 */
.manual-login-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; margin-top: 4px; }
.manual-login-side { display: flex; flex-direction: column; justify-content: space-between; }
.manual-login-side .manual-details { margin-top: 2px; }
.manual-login-grid .manual-phone { margin: 0; width: 100%; }
.manual-login-side .manual-list { gap: 10px; }
@media (max-width: 900px) { .manual-login-grid { grid-template-columns: 1fr; } .manual-login-grid .manual-phone { max-width: 300px; margin: 0 auto; } }
.manual-shot-frame { margin: 0; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.manual-shot-frame:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(2,6,18,.6); }
.manual-shot-frame::before { content: attr(data-url); display: block; padding: 8px 14px; font-size: .7rem; color: var(--text-muted, #7d90bd); background: var(--bg-input, #0d1322); border-bottom: 1px solid var(--border); letter-spacing: .04em; }
.manual-shots img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.manual-shots figcaption { padding: 9px 14px; font-size: .74rem; color: var(--text-muted, #7d90bd); border-top: 1px solid var(--border); }

/* FAQ */
.manual-faq { display: flex; flex-direction: column; }
.manual-faq-item { padding: 4px 2px; }
.manual-faq-item + .manual-faq-item { border-top: 1px dashed var(--border); padding-top: 14px; }
.manual-faq .manual-h4 { margin: 0 0 8px; }

.manual-foot { text-align: center; font-size: .72rem; color: var(--text-muted, #5c6c92); padding: 14px 0 4px; }

/* 灯箱 */
#manualLb { display: none; position: fixed; inset: 0; background: rgba(3,7,16,.94); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; gap: 14px; cursor: zoom-out; padding: 26px; }
#manualLb img { max-width: 94vw; max-height: 86vh; border-radius: 12px; border: 1px solid #2c3b5c; box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.manual-lb-cap { font-size: .8rem; color: #9fb3e8; }

/* 要点卡片 2×2 */
.manual-bullets2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.manual-bullet-card { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; transition: transform .2s ease, border-color .2s ease; }
.manual-bullet-card:hover { border-color: rgba(14,203,129,.35); transform: translateY(-1px); }
.manual-bullet-card > svg { width: 18px; height: 18px; color: var(--accent, #5b7cfa); flex-shrink: 0; margin-top: 2px; }
.manual-bullet-card b { display: block; font-size: .85rem; color: var(--text-primary, #e6edff); margin-bottom: 4px; }
.manual-bullet-card span { display: block; font-size: .78rem; line-height: 1.65; color: var(--text-secondary, #b9c6e6); }
@media (max-width: 900px) { .manual-bullets2 { grid-template-columns: 1fr; } }
.manual-steps { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; }
.manual-steps-title { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: var(--text-primary, #dce7ff); margin-bottom: 8px; }
.manual-steps-title svg { width: 14px; height: 14px; color: var(--accent, #5b7cfa); flex-shrink: 0; }
.manual-steps ol { margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 7px; }
.manual-steps li { position: relative; padding-left: 26px; font-size: .8rem; line-height: 1.6; color: var(--text-secondary, #b9c6e6); counter-increment: step; }
.manual-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: rgba(14,203,129,.15); border: 1px solid rgba(14,203,129,.4); color: #0ecb81; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* 交互效果: 卡片悬停微浮 + 高亮 (仅手册页, 不影响其它页面) */
.manual-sec .settings-card { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.manual-sec .settings-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, rgba(240,185,11,.6), rgba(240,185,11,0) 78%); pointer-events: none; }
.manual-sec .settings-card:hover { border-color: rgba(14,203,129,.35); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2,6,18,.45); }
.manual-details { transition: border-color .2s ease, transform .2s ease; }
.manual-details:hover { border-color: rgba(14,203,129,.3); }
.manual-fig { transition: transform .2s ease, box-shadow .2s ease; }
.manual-fig:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2,6,18,.4); }
.manual-tip, .manual-warn { transition: border-color .2s ease; }
.manual-tip:hover { border-color: rgba(14,203,129,.45); }
.manual-warn:hover { border-color: rgba(240,185,11,.5); }
@media (max-width: 900px) {
    .manual-navbar { top: 64px; }
    .manual-nav-note { display: none; }
    .manual-shots-2 { grid-template-columns: 1fr; }
    .manual-phone { max-width: 300px; margin: 0 auto; }
    .manual-hero { flex-direction: column; padding: 24px 20px 20px; }
    .manual-hero-arch { flex: 1 1 auto; width: 100%; }
    .manual-hero-txt h2 { font-size: 1.36rem; }
}

/* ── 总权益 Hero (2026-08-31 重新设计) ── */
.eq-hero { position: relative; overflow: hidden; border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, rgba(0,212,170,.10), rgba(17,26,44,.94) 42%, rgba(139,92,246,.12) 100%);
    padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
    min-height: 0; }
.eq-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,.55) 40%, rgba(139,92,246,.55) 80%, transparent); }
html.theme-light .eq-hero { background: linear-gradient(150deg, rgba(0,212,170,.06), rgba(255,255,255,.96) 42%, rgba(139,92,246,.06) 100%); }
.eq-hero-head { display: flex; align-items: center; gap: 10px; }
.eq-hero-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(0,212,170,.12); color: #00d4aa; }
.eq-hero-titles { display: flex; flex-direction: column; }
.eq-hero-title { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.eq-hero-sub { font-size: .68rem; color: var(--text-muted); margin-top: 1px; }
.eq-hero-body { margin-top: 4px; }
.eq-hero-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 9px 0; border-top: 1px dashed var(--border); }
.eq-hero-row:first-child { border-top: none; }
.eq-hero-num { font-size: 1.7rem; font-weight: 700; letter-spacing: -.5px; color: var(--text-primary);
    font-variant-numeric: tabular-nums; }
.eq-hero-today { font-size: .72rem; color: var(--text-muted); }
.eq-hero-today-v { display: flex; align-items: baseline; gap: 12px; }
.eq-hero-today-v b { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.eq-hero-today-p { font-size: .78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── 版块标题 (kicker) ── */
.sec-label { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.sec-kicker { font-size: .62rem; letter-spacing: .14em; color: var(--accent); font-weight: 700;
    text-transform: uppercase; }
.sec-title { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.sec-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent);
    align-self: center; }
.panel-twrap { display: flex; flex-direction: column; }
.panel-sub { font-size: .68rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ── 权益曲线时间范围切换 ── */
.eq-range-switch { display: inline-flex; gap: 4px; align-items: center; }
.eq-range-switch button {
    font-size: .66rem; line-height: 1; padding: 3px 9px; border-radius: 12px;
    border: 1px solid var(--border); background: transparent; color: var(--text-muted);
    cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.eq-range-switch button:hover { border-color: var(--accent); color: var(--accent); }
.eq-range-switch button.active { background: var(--accent); color: #0b0e11; border-color: var(--accent); font-weight: 600; }

/* ── 持仓表格 ── */
.pos-table-wrap { overflow-x: auto; }
.pos-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.pos-table th { text-align: left; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 650; padding: 8px 10px;
    border-bottom: 1px solid var(--border); white-space: nowrap; }
.pos-table td { padding: 9px 10px; font-size: .8rem; border-bottom: 1px solid var(--border);
    white-space: nowrap; }
.pos-table tbody tr:last-child td { border-bottom: none; }
.pos-table tbody tr:hover { background: var(--hover); }
.pos-table .pt-sym { font-weight: 700; color: var(--text-primary); }
/* 持仓「策略」列 (2026-10-04): 类型名 + 决策周期小字; 窄屏隐藏整列防挤压 */
.pos-table .pt-strat { color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.pt-dir { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
    font-size: .68rem; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.pt-dir.long { color: #4ade80; background: rgba(34,197,94,.12); }
.pt-dir.short { color: #f87171; background: rgba(239,68,68,.12); }
.pos-table .pt-num { font-family: var(--font-mono); font-size: .78rem;
    font-variant-numeric: tabular-nums; text-align: right; }
.pos-table .pt-ex { opacity: .5; font-size: .72rem; margin-left: 6px; }
/* 2026-10-04 新增「策略」列后, 数值列表头右对齐序号顺移一位 (5..9) */
.pos-table th:nth-child(5), .pos-table th:nth-child(6), .pos-table th:nth-child(7),
.pos-table th:nth-child(8), .pos-table th:nth-child(9) { text-align: right; }

/* ══════════════════════════════════════════════════════════
   AI 中枢带 v2 (2026-08-31): 简洁指挥条 · 无转圈 · 决策链折叠
   ══════════════════════════════════════════════════════════ */
.ai-band { position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: linear-gradient(160deg, rgba(28,38,60,.9), rgba(17,26,44,.94));
    border: 1px solid var(--border); border-radius: 12px;
    padding: 11px 16px; margin-bottom: 14px; }
.ai-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,.5) 35%, rgba(139,92,246,.5) 75%, transparent); }
html.theme-light .ai-band { background: linear-gradient(160deg, rgba(255,255,255,.94), rgba(241,245,252,.95)); }
.ai-band-name { font-weight: 800; font-size: .92rem;
    background: linear-gradient(90deg, #7dffe4, #8b5cf6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding: 1px 8px 2px 0; display: inline-block; white-space: nowrap; }
/* 置顶版指挥条 */
.ai-band-hero { padding: 14px 18px; margin-bottom: 18px;
    background: linear-gradient(160deg, rgba(28,40,66,.92), rgba(17,26,44,.95) 60%, rgba(30,32,60,.92)); }
html.theme-light .ai-band-hero { background: linear-gradient(160deg, rgba(255,255,255,.97), rgba(241,245,252,.96)); }
.ai-band-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ai-band-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    font-size: .7rem; font-weight: 800; color: #052e2b;
    background: linear-gradient(135deg, #7dffe4, #00d4aa);
    box-shadow: 0 0 10px rgba(0,212,170,.35); }
.ai-time { margin-left: 4px; font-size: .72rem; color: var(--text-muted); }
html.theme-light .ai-band-name { background: linear-gradient(90deg, #0d9488, #7c3aed);
    -webkit-background-clip: text; background-clip: text; }
.ai-band-status { font-size: .7rem; padding: 2px 10px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    border: 1px solid var(--border-light); color: var(--text-secondary); background: var(--bg-card); }
.ai-band-status .pdot { width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green);
    animation: aiDot 1.8s ease-in-out infinite; }
@keyframes aiDot { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.ai-band-status.warn .pdot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ai-band-status.err .pdot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.ai-summary { flex: 1 1 260px; min-width: 0; font-size: .8rem; line-height: 1.65;
    color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-summary b { color: var(--text-primary); font-weight: 650; }
.ai-summary .up { color: var(--green); font-weight: 700; }
.ai-summary .down { color: var(--red); font-weight: 700; }
.ai-summary .hl { color: var(--accent); font-weight: 700; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-chip { font-size: .7rem; padding: 2px 9px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--text-secondary);
    background: var(--bg-card); white-space: nowrap; }
.ai-chip b { color: var(--text-primary); font-weight: 700; margin-left: 2px; }
.ai-chip.go { border-color: rgba(34,197,94,.4); color: #4ade80; background: rgba(34,197,94,.08); }
.ai-chip.stop { border-color: rgba(239,68,68,.4); color: #f87171; background: rgba(239,68,68,.08); }
.ai-chip.cool { border-color: rgba(245,158,11,.4); color: #fbbf24; background: rgba(245,158,11,.08); }
.ai-chip.wait { border-color: var(--border-light); color: var(--text-muted); background: rgba(148,163,184,.08); }
.ai-toggle { font-size: .7rem; padding: 4px 11px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted);
    transition: all .18s; white-space: nowrap; }
.ai-toggle:hover, .ai-toggle.on { border-color: rgba(0,212,170,.5); color: var(--accent); }
.ai-chains { flex-basis: 100%; border-top: 1px dashed var(--border);
    padding-top: 8px; }
/* 决策链表格 */
.ai-table-wrap { overflow-x: auto; }
.ai-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.ai-table th { text-align: left; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 650; padding: 8px 10px;
    border-bottom: 1px solid var(--border); white-space: nowrap; }
.ai-table td { padding: 8px 10px; font-size: .78rem; border-bottom: 1px solid var(--border);
    vertical-align: middle; white-space: nowrap; }
.ai-table tbody tr:last-child td { border-bottom: none; }
.ai-table tbody tr:hover { background: var(--hover); }
.ai-table .at-sym-s { font-weight: 700; color: var(--text-primary); font-size: .8rem; }
.ai-table .at-sym-t { font-size: .64rem; color: var(--text-muted); margin-top: 1px; }
.ai-table .at-reason { font-size: .72rem; color: var(--text-muted); line-height: 1.5;
    white-space: normal; min-width: 240px; }
.ai-table .at-muted { color: var(--text-muted); opacity: .45; }
.ai-table th:nth-child(3) { text-align: right; }
.ai-table td.pt-num { text-align: right; font-family: var(--font-mono); }
    padding-top: 10px; margin-top: 2px; }
.ai-node { display: inline-flex; align-items: center; gap: 4px;
    font-size: .68rem; padding: 3px 8px; border-radius: 7px;
    border: 1px solid var(--border); color: var(--text-muted);
    background: var(--bg-input); white-space: nowrap; }
.ai-node .ic { font-size: .66rem; }
.ai-node.ok { color: #4ade80; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.07); }
.ai-node.fail { color: #f87171; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.07); }
.ai-node.wait { color: var(--amber); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.07); }
.ai-node.live { color: var(--text-primary); border-color: rgba(0,212,170,.45);
    background: rgba(0,212,170,.08); box-shadow: 0 0 10px rgba(0,212,170,.15); }
.ai-node.cool { color: #fbbf24; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
@media (max-width: 640px) {
    .ai-band { padding: 10px 12px; gap: 8px; }
}

/* ═══ 权益 Hero (总权益顶置大卡) ═══ */
@media (min-width: 1151px) {
    .stat-row.five { grid-template-columns: repeat(5, 1fr); }
    .stat-row.four { grid-template-columns: repeat(4, 1fr); }
    .stat-row.three { grid-template-columns: repeat(3, 1fr); }
}
.eq-hero { padding: 18px 20px; display: flex; flex-direction: column;
    justify-content: center; border-radius: 14px;
    background: linear-gradient(165deg, var(--bg-card) 55%, rgba(0,212,170,.07)),
        var(--bg-card); }
.eq-hero::before { opacity: .85; }
.eq-hero .l { font-size: .8rem; }
.eq-hero .sb-split { gap: 12px; margin-top: 14px; }
.eq-hero .v { font-size: 1.7rem; letter-spacing: .01em; }
.eq-hero .s { margin-top: 10px; }
@media (max-width: 640px) { .eq-hero { padding: 14px 16px; } .eq-hero .v { font-size: 1.35rem; } }


/* ══════════════════════════════════════════════════════════
   视觉升级包 (2026-08-31 样板): 光核 LOGO / 动效系统 / 细节打磨
   ══════════════════════════════════════════════════════════ */

/* ── 品牌徽记: 原图形 + 能量脉冲/星光 (动效做在图形本身上) ── */
.brand-live { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1; }
/* 扫光扫过整个锁区 (星球+LUMEX文字) */
.brand-live { position: relative; overflow: hidden; padding: 1px 2px; margin: -1px -2px; }
.brand-live::after { content: ""; position: absolute; top: -12%; bottom: -12%; width: 18%;
    left: -40%; transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(105deg, transparent 0%,
        rgba(255,255,255,.16) 45%, rgba(125,255,228,.3) 58%, transparent 100%);
    animation: blSweep 10s ease-in-out infinite; }
.bl-emblem { position: relative; width: 35px; height: 30px; flex: 0 0 auto; overflow: hidden;
    animation: blHalo 4.2s ease-in-out infinite; }
.bl-emblem-img { width: 35px; height: 30px; display: block;
    animation: blHue 12s ease-in-out infinite; }
/* 星球变色流转: 青绿⇄紫色彩循环 = 自转感 (原图形上不加任何元素) */
@keyframes blHue { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(15deg); } }
@keyframes blHalo {
    0%,100% { filter: drop-shadow(0 0 5px rgba(0,212,170,.22)); }
    50% { filter: drop-shadow(0 0 14px rgba(0,212,170,.55)); }
}
/* 周期性高光扫过整个锁区 (星球+文字): 每 10s 一道, 淡光慢掠 */
@keyframes blSweep {
    0%, 52% { left: -40%; opacity: 0; }
    62% { opacity: 1; }
    92% { left: 120%; opacity: 0; }
    100% { left: -40%; opacity: 0; }
}
.bl-wordimg { height: 21px; width: auto; display: block; }
img.bl-emblem-img.logo-for-light, img.bl-wordimg.logo-for-light { display: none; }
html.theme-light img.bl-emblem-img.logo-for-dark, html.theme-light img.bl-wordimg.logo-for-dark { display: none; }
html.theme-light img.bl-emblem-img.logo-for-light, html.theme-light img.bl-wordimg.logo-for-light { display: block; }
.lp-brand { justify-content: center; margin-bottom: 6px; }
.lp-brand .bl-emblem { height: 64px; }
.lp-brand .bl-emblem-img { height: 64px; }
.lp-brand .bl-wordimg { height: 44px; }



/* ── 操作手册浅色主题: 英雄区 + 示意图浅色化 (2026-08-31) ── */
html.theme-light .manual-hero { background: linear-gradient(140deg, #eef4ff 0%, #fdfefe 52%, #eef2fb 100%); border-color: #d4dff2; }
html.theme-light .manual-hero-grid { background-image: linear-gradient(rgba(91,124,250,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,124,250,.07) 1px, transparent 1px); }
html.theme-light .manual-hero-txt h2 { color: #17203a; }
html.theme-light .manual-hero-txt p { color: #5b6b93; }
html.theme-light .manual-chip { color: #44537d; background: rgba(91,124,250,.08); border-color: rgba(91,124,250,.28); }
html.theme-light .manual-phone { background: linear-gradient(180deg, #eef2f9, #f9fbfe); box-shadow: 0 14px 34px rgba(16,24,40,.12); }
html.theme-light .manual-phone::before { background: #cfd9ee; }
html.theme-light .manual-arch-title { color: #64749c; }
html.theme-light .manual-arch-note { color: #64749c; }
html.theme-light .manual-hero-arch svg stop[offset="0"] { stop-color: #e8effc; }
html.theme-light .manual-hero-arch svg stop[offset="1"] { stop-color: #f5f9ff; }
html.theme-light .manual-hero-arch svg [stroke="#2c3b5c"], html.theme-light .manual-fig svg [stroke="#2c3b5c"] { stroke: #c3d3f0; }
html.theme-light .manual-hero-arch svg [stroke="#3b4f7d"], html.theme-light .manual-hero-arch svg [stroke="#22304d"],
html.theme-light .manual-fig svg [stroke="#3b4f7d"], html.theme-light .manual-fig svg [stroke="#22304d"] { stroke: #b3c4e8; }
html.theme-light .manual-hero-arch svg [fill="#151d2e"], html.theme-light .manual-fig svg [fill="#151d2e"] { fill: #f6f9ff; }
html.theme-light .manual-hero-arch svg [fill="#1a2540"], html.theme-light .manual-fig svg [fill="#1a2540"] { fill: #eef3fb; }
html.theme-light .manual-hero-arch svg [fill="#d3defc"], html.theme-light .manual-fig svg [fill="#d3defc"] { fill: #dde8fb; }
html.theme-light .manual-hero-arch svg [fill="#9fb3e8"], html.theme-light .manual-fig svg [fill="#9fb3e8"] { fill: #44537d; }
html.theme-light .manual-hero-arch svg [fill="#8ea0c9"], html.theme-light .manual-fig svg [fill="#8ea0c9"] { fill: #64749c; }
html.theme-light .manual-hero-arch svg [fill="#aab9e0"], html.theme-light .manual-fig svg [fill="#aab9e0"] { fill: #7b8bb4; }
html.theme-light .manual-hero-arch svg [fill="#6e80ae"], html.theme-light .manual-fig svg [fill="#6e80ae"] { fill: #64749c; }
/* 操作手册截图: 深/浅主题自动切换 (2026-08-31) */
img.manual-t-light { display: none; }
html.theme-light img.manual-t-dark { display: none; }
html.theme-light img.manual-t-light { display: block; }
/* ── 动效系统: 卡片入场 + 页面淡入 ── */
@keyframes uiRise { from { opacity: 0; transform: translateY(30px) scale(.955); } to { opacity: 1; transform: none; } }
.panel, .stat-box, .eq-hero, .ai-band, .at-section-card, .at-stat-card, .ov-stage, .settings-card, .sg-wrap { animation: uiRise .68s cubic-bezier(.2,.7,.3,1) backwards; }
.at-stat-card:nth-child(2), .ov-stage { animation-delay: .08s; }
.at-stat-card:nth-child(3) { animation-delay: .16s; }
.at-stat-card:nth-child(4) { animation-delay: .24s; }
.at-stat-card:nth-child(5) { animation-delay: .32s; }
.at-section-card { animation-delay: .12s; }
.two-col > *:first-child, .one-one .panel:first-child { animation-delay: .08s; }
.two-col > *:last-child, .one-one .panel:last-child { animation-delay: .18s; }
.stat-row .stat-box:nth-child(1) { animation-delay: .08s; }
.stat-row .stat-box:nth-child(2) { animation-delay: .16s; }
.stat-row .stat-box:nth-child(3) { animation-delay: .24s; }
.stat-row .stat-box:nth-child(4) { animation-delay: .32s; }
.stat-row .stat-box:nth-child(5) { animation-delay: .4s; }
.stat-row .stat-box:nth-child(6) { animation-delay: .48s; }
.page-content { animation: uiPageIn .38s ease; } /* 2026-09-01 去 both 填充: 填充态会让透明度动画永久保持 applying → page-content 持久 stacking context, 页面内 fixed 元素 (抽屉/遮罩/弹窗) 被压到侧边栏之下, 点击遮罩被侧边栏拦截 */
@keyframes uiPageIn { from { opacity: 0; } to { opacity: 1; } }

/* ── hover 微动效 ── */
.stat-box:hover, .at-stat-card:hover { transform: translateY(-5px) scale(1.012); border-color: rgba(0,212,170,.45);
    box-shadow: 0 16px 38px rgba(0,0,0,.3), 0 0 0 1px rgba(0,212,170,.14); }
html.theme-light .stat-box:hover, html.theme-light .at-stat-card:hover { box-shadow: 0 16px 34px rgba(30,50,90,.16), 0 0 0 1px rgba(0,168,140,.16); }
.panel:hover { border-color: var(--border-light); }
.btn:active, .icon-btn:active { transform: scale(.97); }
.btn, .icon-btn { transition: transform .15s ease, filter .2s ease, box-shadow .2s ease; }

/* ── 细节: 表格悬停 + 空状态呼吸 ── */
table tbody tr:hover { background: var(--surface-hover, rgba(255,255,255,.03)); }
.empty-icon { animation: emptyPulse 3s ease-in-out infinite; }
@keyframes emptyPulse { 0%,100% { opacity: .55; } 50% { opacity: .95; } }

@media (prefers-reduced-motion: reduce) {
    .panel, .stat-box, .page-content { animation: none; }
    .bl-emblem, .bl-emblem-img, .empty-icon { animation: none; }
}


/* ── 市场状态自适应 (regime) 参数表 — 与 td-grid/pp-cluster 统一风格 (2026-09-16) ── */
.regime-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.regime-tab { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.regime-tab:hover { border-color: var(--border-light); color: var(--text-primary); }
.regime-tab.on { background: var(--accent); color: #06211a; border-color: var(--accent); }
.regime-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px;
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.regime-table th { background: var(--bg-input); border-bottom: 1px solid var(--border);
    padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--text-muted);
    letter-spacing: .3px; white-space: nowrap; }
.regime-table th.l { text-align: left; }
.regime-table th.c { text-align: center; }
.regime-table td { padding: 8px 12px; font-size: 13px; color: var(--text-primary);
    border-bottom: 1px solid var(--border); }
.regime-table tr.stripe td { background: rgba(255,255,255,.035); }
.regime-cell-c { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.regime-cell-label { border-right: 1px solid var(--border); font-weight: 700; white-space: nowrap; vertical-align: middle; }
.regime-cell-dir { border-right: 1px solid var(--border); font-weight: 600; white-space: nowrap; }
.regime-cell-tf { text-align: center; font-weight: 700; white-space: nowrap; color: #f0b90b; font-size: 12px; }
.regime-cell-tf-muted { text-align: center; font-weight: 600; white-space: nowrap; color: var(--text-muted); font-size: 12px; }
.regime-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px currentColor; }
.regime-long { color: #0ecb81; }
.regime-short { color: #f6465d; }
.regime-note { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
.regime-edge-title { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: .3px; }
.regime-edge-title:first-child { margin-top: 14px; }
.edge-table td, .edge-table th { text-align: center; font-variant-numeric: tabular-nums; }
.edge-table td.l, .edge-table th.l { text-align: left; font-variant-numeric: normal; }
.shadow-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.shadow-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.shadow-watch { color: #f0b90b; }
.shadow-watch .shadow-dot { background: #f0b90b; box-shadow: 0 0 6px #f0b90b; }
.shadow-done { color: #0ecb81; }
.shadow-done .shadow-dot { background: #0ecb81; box-shadow: 0 0 6px #0ecb81; }
.shadow-desc { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* ================================================================
   代运维面板 (管理页 · 2026-10-05)
   设计目标(用户要求): 规矩、精致、美观 —— 统一卡片/序号/字段栅格/预览卡片,
   不再用「一行 HTML 内联样式堆出来」的粗糙写法。
   ================================================================ */
.mo-wrap { display: flex; flex-direction: column; gap: 14px; }
.mo-hero {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--bg-input);
}
.mo-avatar {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center; font-weight: 700; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .02em;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.mo-hero-name { font-weight: 700; font-size: 1rem; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mo-hero-sub { font-size: .78rem; color: var(--text-muted); margin-top: 5px; line-height: 1.6; }
.mo-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.modal-title { letter-spacing: .01em; }
.mo-chip {
    font-size: .68rem; padding: 1px 8px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--text-muted); font-weight: 500;
}
.mo-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.mo-card-hd {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: var(--bg-input);
}
.mo-card-hd h4 { margin: 0; font-size: .84rem; font-weight: 600; letter-spacing: .01em; }
.mo-step {
    width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: .72rem; font-weight: 600;
    background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.mo-card-bd { padding: 13px 14px; display: flex; flex-direction: column; gap: 11px; }
.mo-badge {
    margin-left: auto; font-size: .7rem; padding: 2px 9px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap;
}
.mo-badge.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, transparent);
    background: color-mix(in srgb, var(--accent) 9%, transparent); }
.mo-badge.warn { color: #d99b09; border-color: rgba(217, 155, 9, .38); background: rgba(217, 155, 9, .09); }
.mo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.mo-field { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--text-muted); }
.mo-field > span { display: flex; align-items: center; gap: 4px; }
.mo-field em { font-style: normal; opacity: .6; font-size: .68rem; }
.mo-field input, .mo-field select { width: 100%; box-sizing: border-box; }
.mo-check { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-muted); padding-top: 18px; }
.mo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mo-msg { font-size: .75rem; line-height: 1.55; min-height: 1.1em; color: var(--text-muted); }
.mo-msg.ok { color: var(--accent); }
.mo-msg.err { color: #e5344b; }
.mo-list { display: flex; flex-direction: column; gap: 6px; }
.mo-row {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    font-size: .78rem; padding: 7px 10px;
    border: 1px solid var(--border); border-radius: 9px; background: var(--bg-input);
}
.mo-row .k { color: var(--text-muted); font-size: .71rem; }
.mo-row .grow { margin-left: auto; }
.mo-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; }
.mo-empty { font-size: .76rem; color: var(--text-muted); padding: 2px 0; }
.mo-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
.mo-kv > div { border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: var(--bg-input); }
.mo-kv .k { font-size: .68rem; color: var(--text-muted); }
.mo-kv .v { font-size: .86rem; font-weight: 600; margin-top: 3px; word-break: break-all; }
.mo-note { font-size: .76rem; color: var(--text-muted); line-height: 1.6; }
/* 警示条: 不铺满黄色(避免花花绿绿), 用左侧色条 + 极淡底色, 与整体冷色协调 */
.mo-warn-note {
    font-size: .76rem; line-height: 1.6; color: var(--text-muted);
    border-left: 3px solid #d99b09; padding: 7px 11px; border-radius: 0 8px 8px 0;
    background: rgba(217, 155, 9, .07);
}
.mo-warn-note b { color: #d99b09; }
.mo-empty { font-size: .78rem; }
.mo-dir { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--text-muted); }
.mo-spacer { margin-left: auto; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; justify-content: flex-end; }
.mo-hero-main { min-width: 0; }
/* 精修 B: 等高数据卡 / 按钮基线 / 危险按钮对比 / 面板内关闭叉 */
.mo-kv > div { min-height: 58px; display: flex; flex-direction: column; justify-content: center; }
.mo-actions .btn { display: inline-flex; align-items: center; height: 32px; }
.mo-actions .mo-check { padding-top: 0; margin: 0; }
.mo-wrap .btn-danger {
    background: #e5344b; color: #fff; border: 1px solid #e5344b;
}
.mo-wrap .btn-danger:hover { background: #cf2439; border-color: #cf2439; }
.mo-title-x { position: relative; padding-right: 34px; }
.mo-x {
    position: absolute; right: 0; top: -3px; cursor: pointer;
    background: transparent; border: 0; color: var(--text-muted);
    font-size: 1.35rem; line-height: 1; padding: 2px 7px; border-radius: 7px;
}
.mo-x:hover { background: var(--bg-input); color: var(--text); }
/* ★2026-10-05 用户: 会员管理表「操作」列必须排成一行 —— 生产曾因列宽不足把
   「在线/踢下线」折成两行 (本地因内容较窄刚好一行, 看着不规整)。
   表格容器已有 overflow-x:auto, 所以这里允许按钮不折行 (窄屏改横向滚动)。 */
#memberList .btn-group { flex-wrap: nowrap; }
#memberList td:last-child { white-space: nowrap; }

/* ★2026-10-05 用户: 生产会员表比本地"乱"(日期在连字符处断成两行 · 「在线」徽标被挤到第二行)。
   根因不是排版不同步, 而是**列宽竞争**: 生产会员普遍填了手机+邮箱 (联系方式列 ~31 字符宽),
   浏览器 table-layout:auto 会把宽度让给它 ⇒ 其余列被压窄后换行; 本地测试账号大多没手机/邮箱,
   「恰好够宽」才显得整齐 —— 同一份代码, 数据不同而已。
   对策 = 让布局**确定性**: 除「会员」「联系方式」两列(本就设计成可换行/两行)外一律 nowrap,
   真放不下时由 .table-container 横向滚动, 而不是把单元格折成两行。 */
#memberList .table-compact th,
#memberList .table-compact td { white-space: nowrap; }
#memberList .table-compact td:nth-child(1),
#memberList .table-compact td:nth-child(4) { white-space: normal; }
#memberList .table-compact td .badge { white-space: nowrap; }
#memberList .table-compact td > div { flex-wrap: nowrap; }
#memberList .table-compact { min-width: 100%; }
