/* ============================================================
   2026 全球 80+ 投资机构核心资产透视 · 统一设计系统
   设计 Token 与 鼓狮知识库首页 index.html / gushitools.css 完全一致
   同时支持 [data-theme="dark"] 与 body.dark-mode（兼容画板脚本）
   ============================================================ */
:root,
:root[data-theme="light"] {
    --bg: #fbf9f8;
    --bg-2: rgba(255, 255, 255, .95);
    --surface: rgba(255, 255, 255, .90);
    --surface-hover: #ffffff;
    --surface-solid: #ffffff;
    --surface-2: rgba(196, 30, 58, .035);
    --border: rgba(196, 30, 58, .10);
    --border-strong: rgba(196, 30, 58, .20);
    --text: #181a22;
    --text-2: #52586a;
    --text-3: #858b9e;
    --accent: #c41e3a;
    --accent-2: #a62a1a;
    --accent-3: #ff6b6b;
    --shadow: 0 16px 42px -10px rgba(196, 30, 58, .08), 0 4px 16px rgba(20, 20, 35, .045);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, .95);
    --glow-a: rgba(196, 30, 58, .13);
    --glow-b: rgba(255, 120, 107, .11);
    --glow-c: rgba(245, 158, 11, .08);

    /* 兼容画板脚本使用的变量 */
    --theme-color: #c41e3a;
    --theme-color-dark: #d44e4e;

    /* 涨跌配色：遵循中国市场惯例 —— 增/涨=红，减/跌=绿 */
    --up: #d92d20;
    --up-bg: rgba(217, 45, 32, .10);
    --down: #0f9d58;
    --down-bg: rgba(15, 157, 88, .10);
    --newc: #2563eb;
    --new-bg: rgba(37, 99, 235, .10);
    --holdc: #8a93a6;
    --hold-bg: rgba(138, 147, 166, .12);

    /* 图表序列色 */
    --viz-1: #c41e3a;
    --viz-2: #ff6b6b;
    --viz-3: #f59e0b;
    --viz-4: #2563eb;
    --viz-5: #0f9d58;
    --viz-6: #7c3aed;
    --viz-7: #0891b2;
    --viz-8: #8a93a6;

    --tag-us-bg: #eff6ff; --tag-us-text: #1d4ed8;
    --tag-cn-bg: #fef2f2; --tag-cn-text: #b91c1c;
    --tag-bond-bg: #f1f5f9; --tag-bond-text: #475569;
    --tag-crypto-bg: #faf5ff; --tag-crypto-text: #7e22ce;
    --tag-fund-bg: #f0fdfa; --tag-fund-text: #0f766e;
    --tag-jp-bg: #fffbeb; --tag-jp-text: #b45309;
}

:root[data-theme="dark"],
body.dark-mode {
    --bg: #090a0f;
    --bg-2: #12141e;
    --surface: rgba(255, 255, 255, .048);
    --surface-hover: rgba(255, 255, 255, .085);
    --surface-solid: #171a26;
    --surface-2: rgba(255, 255, 255, .035);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .18);
    --text: #f5f6fa;
    --text-2: #b4bacb;
    --text-3: #788096;
    --accent: #c41e3a;
    --accent-2: #ff6b6b;
    --accent-3: #f59e0b;
    --shadow: 0 22px 60px rgba(0, 0, 0, .48);
    --card-inset: inset 0 1px 0 rgba(255, 255, 255, .08);
    --glow-a: rgba(196, 30, 58, .26);
    --glow-b: rgba(255, 107, 107, .16);
    --glow-c: rgba(245, 158, 11, .12);

    --theme-color: #ff6b6b;
    --theme-color-dark: #ff8585;

    --up: #ff6b6b;
    --up-bg: rgba(255, 107, 107, .16);
    --down: #34d399;
    --down-bg: rgba(52, 211, 153, .15);
    --newc: #60a5fa;
    --new-bg: rgba(96, 165, 250, .16);
    --holdc: #94a3b8;
    --hold-bg: rgba(148, 163, 184, .16);

    --viz-1: #ff6b6b;
    --viz-2: #c41e3a;
    --viz-3: #fbbf24;
    --viz-4: #60a5fa;
    --viz-5: #34d399;
    --viz-6: #a78bfa;
    --viz-7: #22d3ee;
    --viz-8: #94a3b8;

    --tag-us-bg: #172554; --tag-us-text: #93c5fd;
    --tag-cn-bg: #450a0a; --tag-cn-text: #fca5a5;
    --tag-bond-bg: #1e293b; --tag-bond-text: #cbd5e1;
    --tag-crypto-bg: #3b0764; --tag-crypto-text: #d8b4fe;
    --tag-fund-bg: #134e4a; --tag-fund-text: #5eead4;
    --tag-jp-bg: #451a03; --tag-jp-text: #fde047;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", Arial, sans-serif;
}
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    transition: background-color .35s ease, color .35s ease;
    overflow-x: hidden;
    position: relative;
}
body:not(.dark-mode) {
    background-color: #fbf9f8;
    background-image:
        radial-gradient(at 8% 5%, rgba(196, 30, 58, 0.075) 0px, transparent 46%),
        radial-gradient(at 92% 10%, rgba(255, 107, 107, 0.085) 0px, transparent 48%),
        radial-gradient(at 50% 45%, rgba(245, 158, 11, 0.045) 0px, transparent 55%),
        radial-gradient(at 15% 85%, rgba(196, 30, 58, 0.06) 0px, transparent 50%),
        linear-gradient(180deg, #fffafa 0%, #f4f3f8 50%, #fbf9f8 100%);
    background-attachment: fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 70%);
    opacity: .45;
}
.aurora { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.aurora.a1 { width: 620px; height: 620px; top: -220px; left: -140px; background: var(--glow-a); }
.aurora.a2 { width: 560px; height: 560px; top: 180px; right: -200px; background: var(--glow-b); }
.aurora.a3 { width: 500px; height: 500px; top: 900px; left: 30%; background: var(--glow-c); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
::selection { background: rgba(196, 30, 58, .45); color: #fff; }
main { position: relative; z-index: 1; }

/* ============================================================
   顶部导航（与 index.html 完全一致的栏目结构）
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { max-height: 46px; width: auto; display: block; }
body:not(.dark-mode) .logo-dark { display: none; }
body.dark-mode .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav > a,
.dropdown-toggle {
    white-space: nowrap;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-2);
    font-weight: 500;
    transition: all .25s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.nav > a:hover,
.dropdown-toggle:hover { color: var(--text); background: var(--surface-hover); transform: translateY(-1px); }
.nav > a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.nav > a:hover::after { transform: scaleX(1); }
.nav > a.is-active { color: var(--accent); font-weight: 700; }
.nav > a.is-active::after { transform: scaleX(1); }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--surface-solid);
    min-width: 214px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 10px;
    padding: 8px;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transform-origin: top left;
    transition: all .3s ease;
}
.dropdown-menu.active { display: block; opacity: 1; transform: translateY(0) scale(1); }
.dropdown-menu a {
    color: var(--text-2);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    transition: all .22s ease;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 11px;
}
.dropdown-menu a i {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 12px;
    background: var(--surface-2);
    color: var(--accent);
    transition: all .22s ease;
}
.dropdown-menu a:hover { background-color: rgba(196, 30, 58, .10); color: var(--accent); transform: translateX(3px); }
.dropdown-menu a:hover i { background: var(--accent); color: #fff; }
.dropdown-menu a.is-active { background-color: rgba(196, 30, 58, .08); color: var(--accent); font-weight: 800; }
.dropdown-menu a.is-active i { background: var(--accent); color: #fff; }
.dropdown-menu .menu-sep { height: 1px; margin: 6px 8px; background: var(--border); }

/* 右侧控件组 —— 统一的玻璃拟态胶囊按钮
   注意：类名用 .hbtn 而不是 .tool-btn。
   画板脚本 gushiio-drawing-board.js 会往 <head> 尾部注入一条全局 .tool-btn 规则
   （width:40px; padding:0），会覆盖这里的胶囊按钮并把文字挤掉。 */
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle-btn,
.hbtn {
    position: relative;
    flex-shrink: 0;
    height: 42px;
    padding: 0 16px 0 7px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text);
    background: linear-gradient(180deg, var(--surface-hover), var(--surface));
    border: 1px solid var(--border-strong);
    box-shadow: var(--card-inset), 0 2px 10px rgba(196, 30, 58, .07);
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), border-color .25s ease, box-shadow .25s ease, color .25s ease;
    overflow: hidden;
    white-space: nowrap;
}
.hbtn { padding-right: 16px; }
/* 渐变图标芯片 */
.theme-toggle-btn .tb-ico,
.hbtn .tb-ico {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 4px 10px rgba(196, 30, 58, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.theme-toggle-btn .tb-ico { background: linear-gradient(135deg, #4f46e5, #a78bfa); box-shadow: 0 4px 10px rgba(79, 70, 229, .32), inset 0 1px 0 rgba(255, 255, 255, .4); }
#open-drawing-btn .tb-ico { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 10px rgba(217, 119, 6, .32), inset 0 1px 0 rgba(255, 255, 255, .4); }
.theme-toggle-btn .tb-txt,
.hbtn .tb-txt { line-height: 1; }
.hbtn .tb-caret { font-size: 10px; color: var(--text-3); transition: transform .25s ease; margin-left: -2px; }
.lang-switch.is-open .tb-caret { transform: rotate(180deg); }
/* 悬停：上浮 + 描边发光 + 图标芯片放大 */
.theme-toggle-btn:hover,
.hbtn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(196, 30, 58, .20), var(--card-inset);
}
.theme-toggle-btn:hover .tb-ico,
.hbtn:hover .tb-ico { transform: scale(1.12) rotate(-8deg); }
.theme-toggle-btn:active,
.hbtn:active { transform: translateY(0) scale(.97); }
.hbtn.icon-only { padding: 0 7px; }
.hbtn.icon-only .tb-txt { display: none; }

/* 语言切换器 */
.lang-switch { position: relative; }
.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    min-width: 208px;
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transform-origin: top right;
    transition: all .25s ease;
}
.lang-menu.active { display: block; opacity: 1; transform: translateY(0) scale(1); }
.lang-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: none;
    border-radius: 11px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all .2s ease;
}
.lang-menu button:hover { background: rgba(196, 30, 58, .10); color: var(--accent); transform: translateX(3px); }
.lang-menu button.is-current { background: rgba(196, 30, 58, .12); color: var(--accent); font-weight: 800; }
.lang-menu .lang-code {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--text-3);
    font-weight: 800;
    letter-spacing: .6px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--surface-2);
}
.lang-menu button.is-current .lang-code { background: var(--accent); color: #fff; }

/* ============================================================
   全屏 Banner（深邃宝石绯红渐变，与 gushitools.css 一致）
   ============================================================ */
.banner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 0 34px 0;
    padding: 44px 24px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(196, 30, 58, .32);
    background:
        radial-gradient(circle at 16% 25%, rgba(255, 107, 107, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 84% 75%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.42) 0%, transparent 65%),
        linear-gradient(125deg, #2b0912 0%, #7c1326 38%, #b81d38 72%, #4a0d1a 100%);
    box-shadow: 0 18px 42px -10px rgba(140, 18, 42, 0.28);
    color: #fff;
    overflow: hidden;
}
body.dark-mode .banner {
    background:
        radial-gradient(circle at 18% 30%, rgba(196, 30, 58, 0.42) 0%, transparent 48%),
        radial-gradient(circle at 82% 70%, rgba(255, 107, 107, 0.22) 0%, transparent 50%),
        linear-gradient(125deg, #0d070c 0%, #3a0b17 45%, #5c1022 75%, #120912 100%);
    border-bottom: 1px solid rgba(255, 107, 107, 0.24);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .85) 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .85) 20%, transparent 80%);
    pointer-events: none;
}
.banner::after {
    content: "";
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 215, 0.85), transparent);
    pointer-events: none;
}
.banner-inner {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.banner-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    background: linear-gradient(180deg, #ffffff 20%, #ffe4e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.22));
}
.banner-title .hl { color: #7ff3ff; -webkit-text-fill-color: #7ff3ff; }
.banner-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .86);
    max-width: 820px;
    line-height: 1.75;
    font-weight: 500;
}
.banner-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.banner-pill i { color: #ffd9de; }
.banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .40);
    color: #fff;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .25s ease;
}
.banner-btn:hover { background: #fff; color: #a6192e; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.banner-btn.primary { background: #fff; color: #a6192e; border-color: #fff; }
.banner-btn.primary:hover { background: #ffe4e8; }

/* ============================================================
   容器 / 区块 / 面板
   ============================================================ */
.container { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 34px 0 6px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.eyebrow { font-size: 11px; letter-spacing: 2.5px; color: var(--accent); font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.section-head h2 {
    font-size: clamp(21px, 2.6vw, 27px);
    font-weight: 800;
    letter-spacing: -.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-head h2::before {
    content: "";
    width: 5px; height: 24px;
    border-radius: 4px;
    background: linear-gradient(var(--accent), var(--accent-2));
    flex-shrink: 0;
}
.section-head p { font-size: 13px; color: var(--text-3); max-width: 460px; text-align: right; line-height: 1.65; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow), var(--card-inset);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-2);
    flex-wrap: wrap;
}
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(196, 30, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); } }
.panel-body { padding: 18px 22px 22px; }

/* ============================================================
   搜索栏 & 筛选胶囊
   ============================================================ */
.toolbar-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--card-inset);
    color: var(--text-3);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 30, 58, .12); }
.search-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 14px; }
.search-bar input::placeholder { color: var(--text-3); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s ease;
    box-shadow: var(--card-inset);
}
.chip:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(196, 30, 58, .26); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   KPI 指标卡（仪表盘首屏）
   ============================================================ */
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kpi-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--card-inset);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    min-width: 0;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.kpi-tile::after {
    content: "";
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: var(--glow-a);
    filter: blur(46px);
    top: -60px; right: -60px;
    pointer-events: none;
}
.kpi-tile::before {
    content: "";
    position: absolute;
    left: 0; top: 18px; bottom: 18px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-3));
    opacity: .85;
    transition: opacity .3s ease, top .3s ease, bottom .3s ease;
}
.kpi-tile:hover { transform: translateY(-4px); border-color: rgba(196, 30, 58, .32); box-shadow: 0 22px 48px -12px rgba(196, 30, 58, .18), var(--card-inset); }
.kpi-tile:hover::before { top: 10px; bottom: 10px; opacity: 1; }
.kpi-ico {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    box-shadow: 0 8px 18px rgba(196, 30, 58, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
    position: relative;
    z-index: 1;
    transition: transform .3s ease;
}
.kpi-tile:hover .kpi-ico { transform: scale(1.08) rotate(-4deg); }
.kpi-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
.kpi-tile.k-up .kpi-ico { background: linear-gradient(135deg, #d92d20, #ff8a80); box-shadow: 0 10px 22px rgba(217, 45, 32, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.kpi-tile.k-down .kpi-ico { background: linear-gradient(135deg, #0f9d58, #5eead4); box-shadow: 0 10px 22px rgba(15, 157, 88, .26), inset 0 1px 0 rgba(255, 255, 255, .35); }
.kpi-tile.k-new .kpi-ico { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 10px 22px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.kpi-tile.k-gold .kpi-ico { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 10px 22px rgba(217, 119, 6, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.kpi-tile.k-up::before { background: linear-gradient(180deg, #d92d20, #ff8a80); }
.kpi-tile.k-down::before { background: linear-gradient(180deg, #0f9d58, #5eead4); }
.kpi-tile.k-new::before { background: linear-gradient(180deg, #2563eb, #60a5fa); }
.kpi-tile.k-gold::before { background: linear-gradient(180deg, #d97706, #fbbf24); }
.kpi-label { font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value {
    font-size: clamp(17px, 1.45vw, 23px);
    font-weight: 800;
    letter-spacing: -.4px;
    margin: 3px 0 2px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--text) 10%, var(--accent) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kpi-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   金额 Hero（独占一行）—— 单行紧凑「机构总览卡」
   [图标] 持仓总市值 2026-09-30        ┌ 覆盖 86 家机构 ┐ ┌ 精确值 USD $6,050,000,000,000 [复制] ┐
          $ 60,500 亿
   右侧两张卡片框等高、垂直居中；整卡高度与下方 KPI 卡片接近
   ============================================================ */
.kpi-tile.kpi-money {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 22px;
    padding: 16px 20px 16px 24px;
}
.kpi-money .money-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.kpi-money .kpi-ico { width: 48px; height: 48px; font-size: 19px; border-radius: 15px; }
.kpi-money .money-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kpi-money .money-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.kpi-money .kpi-label { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .2px; }
.kpi-money .money-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #b45309;
    background: rgba(251, 191, 36, .18);
}
.kpi-money .money-date i { font-size: 10.5px; opacity: .8; }
.kpi-money .kpi-value {
    display: flex;
    align-items: baseline;
    margin: 0;
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 900;
    letter-spacing: -1.1px;
    line-height: 1.14;
    overflow: visible;
}
.kpi-money .kpi-value .m-cur { font-size: .46em; font-weight: 800; margin-right: 5px; opacity: 1.88; }
.kpi-money .kpi-value .m-num { font-variant-numeric: tabular-nums; }
.kpi-money .kpi-value .m-unit {
    align-self: center;
    margin-left: 9px;
    padding: 3px 9px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    color: #b45309;
    -webkit-text-fill-color: #b45309;
    background: rgba(251, 191, 36, .22);
    border: 1px solid rgba(217, 119, 6, .22);
}
:root[data-theme="dark"] .kpi-money .kpi-value .m-unit,
body.dark-mode .kpi-money .kpi-value .m-unit { color: #fbbf24; -webkit-text-fill-color: #fbbf24; background: rgba(251, 191, 36, .14); }
:root[data-theme="dark"] .kpi-money .money-date,
body.dark-mode .kpi-money .money-date { color: #fbbf24; background: rgba(251, 191, 36, .14); }

/* 右侧卡片组：机构数卡片 + 精确值卡片 */
.kpi-money .money-side {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.kpi-money .money-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 11px 15px 11px 11px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(127, 127, 127, .07);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
}
.kpi-money .money-chip i {
    width: 26px; height: 26px;
    flex-shrink: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.kpi-money .money-chip b { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* 精确值卡片：单行内容 */
.kpi-money .kpi-exact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 12px 14px 12px 16px;
    border: 1px solid rgba(217, 119, 6, .28);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(251, 191, 36, .13), rgba(217, 119, 6, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
    font: inherit;
    color: var(--text-2);
    text-align: left;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.kpi-money .kpi-exact:hover {
    border-color: rgba(217, 119, 6, .52);
    background: linear-gradient(145deg, rgba(251, 191, 36, .2), rgba(217, 119, 6, .06));
    box-shadow: 0 10px 22px -12px rgba(217, 119, 6, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.kpi-exact .ex-label {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #b45309;
    background: rgba(251, 191, 36, .26);
}
.kpi-exact .ex-cur { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--text-3); }
.kpi-exact .ex-num {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Courier New", monospace;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
}
.kpi-exact .ex-num .g { display: inline-block; white-space: nowrap; }
.kpi-exact .ex-num.wrap { white-space: normal; overflow: visible; }
.kpi-exact .ex-copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .65);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-3);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.kpi-exact:hover .ex-copy { color: #d97706; border-color: rgba(217, 119, 6, .5); }
.kpi-exact .ex-ico { font-size: 11px; }
.kpi-exact.copied { border-color: rgba(15, 157, 88, .45); background: linear-gradient(145deg, rgba(15, 157, 88, .12), rgba(15, 157, 88, .03)); }
.kpi-exact.copied .ex-copy { color: #0f9d58; border-color: rgba(15, 157, 88, .5); }
.kpi-exact.copied .ex-ico { color: #0f9d58; }
:root[data-theme="dark"] .kpi-exact .ex-label,
body.dark-mode .kpi-exact .ex-label { color: #fbbf24; background: rgba(251, 191, 36, .16); }
:root[data-theme="dark"] .kpi-exact .ex-num,
body.dark-mode .kpi-exact .ex-num { color: #f8fafc; }
:root[data-theme="dark"] .kpi-exact .ex-copy,
body.dark-mode .kpi-exact .ex-copy { background: rgba(255, 255, 255, .06); }

/* 中等宽度：两张卡片落到下方整行 */
@media (max-width: 1180px) {
    .kpi-tile.kpi-money { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 20px; }
    .kpi-money .money-side { flex-wrap: wrap; }
    .kpi-money .kpi-exact { flex: 1 1 320px; }
}
/* 窄屏：机构数卡片一行，精确值卡片整行；卡内标签与复制一行、数字独占一行 */
@media (max-width: 640px) {
    .kpi-tile.kpi-money { gap: 11px; padding: 14px 16px; }
    .kpi-money .money-left { gap: 13px; }
    .kpi-money .kpi-ico { width: 42px; height: 42px; font-size: 17px; border-radius: 14px; }
    .kpi-money .kpi-value { font-size: 27px; letter-spacing: -1px; }
    .kpi-money .kpi-value .m-unit { font-size: 13px; padding: 3px 8px; margin-left: 8px; }
    .kpi-money .money-side { gap: 10px; }
    .kpi-money .money-chip { padding: 9px 13px 9px 9px; font-size: 12px; }
    .kpi-money .kpi-exact { flex: 1 1 100%; flex-wrap: wrap; row-gap: 7px; padding: 11px 12px 12px; }
    .kpi-exact .ex-label { order: 1; }
    .kpi-exact .ex-cur { order: 2; }
    .kpi-exact .ex-copy { order: 3; margin-left: auto; }
    .kpi-exact .ex-num { order: 4; flex: 1 0 100%; font-size: 15px; letter-spacing: -.4px; }
    .kpi-exact .ex-copy span { display: none; }
    .kpi-exact .ex-copy { padding: 4px 9px; }
}

/* ============================================================
   核心变动榜（三栏排行）
   ============================================================ */
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rank-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 15px;
}
.rank-head .ico {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}
.rank-head .ico.new { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.rank-head .ico.buy { background: linear-gradient(135deg, #d92d20, #ff8a80); }
.rank-head .ico.sell { background: linear-gradient(135deg, #0f9d58, #5eead4); }
.rank-list { list-style: none; padding: 8px 12px 14px; }
.rank-item {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
}
.rank-item:hover { background: var(--surface-2); transform: translateX(3px); }
.rank-no {
    width: 24px; height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, #c41e3a, #ff6b6b); color: #fff; border-color: transparent; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #d97706, #fbbf24); color: #fff; border-color: transparent; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #fff; border-color: transparent; }
.rank-main { min-width: 0; }
.rank-name { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rank-val {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rank-val i { font-size: 10px; }
.rank-val.new { color: #2563eb; background: rgba(37, 99, 235, .10); }
.rank-val.buy { color: var(--up); background: rgba(217, 45, 32, .10); }
.rank-val.sell { color: var(--down); background: rgba(15, 157, 88, .10); }
:root[data-theme="dark"] .rank-val.new,
body.dark-mode .rank-val.new { color: #60a5fa; background: rgba(96, 165, 250, .14); }
.rank-head .cnt {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    white-space: nowrap;
}
.rank-bar { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.rank-bar > i { display: block; height: 100%; border-radius: 4px; }
.rank-bar > i.new { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.rank-bar > i.buy { background: linear-gradient(90deg, #d92d20, #ff8a80); }
.rank-bar > i.sell { background: linear-gradient(90deg, #0f9d58, #5eead4); }

/* ============================================================
   资金流向面板
   ============================================================ */
.flow-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 18px; }
.flow-hero { display: flex; flex-direction: column; gap: 14px; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-box {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.flow-box .lbl { font-size: 12px; color: var(--text-3); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.flow-box .val { font-size: clamp(19px, 2vw, 24px); font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.flow-box.up .val { color: var(--up); }
.flow-box.down .val { color: var(--down); }
.flow-net {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, var(--up-bg), var(--down-bg));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.flow-net .lbl { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.flow-net .val { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-list { list-style: none; padding: 6px 12px 14px; }
.mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 8px;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.mini-item:last-child { border-bottom: 0; }
.mini-item .nm { min-width: 0; flex: 1; }
.mini-item .nm b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item .nm span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mini-item .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-item .v.up { color: var(--up); }
.mini-item .v.down { color: var(--down); }

/* ============================================================
   共识持仓 TOP10 卡片
   ============================================================ */
.top-assets-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.asset-card {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--card-inset);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    min-height: 172px;
}
.asset-card:hover { transform: translateY(-5px); border-color: rgba(196, 30, 58, .35); box-shadow: 0 22px 46px rgba(196, 30, 58, .14); }
.asset-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.asset-rank {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.asset-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.asset-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.asset-stat { background: var(--surface-2); border-radius: 9px; padding: 7px 4px; text-align: center; }
.asset-stat .l { font-size: 10px; color: var(--text-3); font-weight: 600; display: block; }
.asset-stat .v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.asset-stat .v.hold { color: #d97706; }
.asset-stat .v.up { color: var(--up); }
.asset-stat .v.down { color: var(--down); }
.asset-mix { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: flex; }
.asset-mix i { display: block; height: 100%; }
.asset-mix i.up { background: var(--up); }
.asset-mix i.down { background: var(--down); }
.asset-mix i.hold { background: var(--holdc); }
.asset-holders { margin-top: auto; padding-top: 10px; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-holders b { color: var(--text-2); font-weight: 700; }

/* ============================================================
   图表区
   ============================================================ */
.charts-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; }
.chart-box { width: 100%; height: 320px; }

/* ============================================================
   机构卡片
   ============================================================ */
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.fund-card {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--card-inset);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fund-card:hover { transform: translateY(-5px); border-color: rgba(196, 30, 58, .35); box-shadow: 0 22px 48px rgba(196, 30, 58, .14); }
.fund-header { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.fund-name { font-size: 16.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fund-name .txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-badge { font-size: 11.5px; background: var(--surface-2); padding: 3px 9px; border-radius: 999px; color: var(--text-3); font-weight: 700; border: 1px solid var(--border); flex-shrink: 0; }
.fund-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.fund-manager { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
body.dark-mode .fund-manager { color: #ff8a8a; }
.fund-date { font-size: 11px; color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.fund-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.fund-kpi { background: var(--surface-2); border-radius: 10px; padding: 7px 4px; text-align: center; }
.fund-kpi .l { font-size: 10px; color: var(--text-3); font-weight: 600; display: block; }
.fund-kpi .v { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fund-kpi .v.up { color: var(--up); }
.fund-kpi .v.down { color: var(--down); }
.fund-kpi .v.new { color: var(--newc); }
.fund-chart { width: 100%; height: 176px; margin-bottom: 8px; flex-shrink: 0; }
.empty-chart-msg { display: flex; justify-content: center; align-items: center; height: 100%; color: var(--text-3); font-size: 12px; background: var(--surface-2); border-radius: 12px; }
.holdings-title { font-size: 11px; font-weight: 700; color: var(--text-3); margin: 8px 0 4px; display: flex; justify-content: space-between; }
.holdings-list { list-style: none; margin: 0; padding: 0; }
.holding-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.holding-item:last-child { border-bottom: 0; }
.item-left { flex: 1; display: flex; align-items: center; overflow: hidden; min-width: 0; }
.item-right { width: 52px; text-align: right; flex-shrink: 0; font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.status-icon {
    width: 26px; height: 26px;
    margin-right: 9px;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: #fff;
}
.status-icon.new { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.status-icon.buy { background: linear-gradient(135deg, #d92d20, #ff8a80); }
.status-icon.sell { background: linear-gradient(135deg, #0f9d58, #5eead4); }
.status-icon.hold { background: var(--holdc); }
.asset-badge { padding: 2px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 800; margin-right: 7px; flex-shrink: 0; display: inline-block; }
.badge-US { background: var(--tag-us-bg); color: var(--tag-us-text); }
.badge-CN { background: var(--tag-cn-bg); color: var(--tag-cn-text); }
.badge-JP { background: var(--tag-jp-bg); color: var(--tag-jp-text); }
.badge-BOND { background: var(--tag-bond-bg); color: var(--tag-bond-text); }
.badge-CRYPTO { background: var(--tag-crypto-bg); color: var(--tag-crypto-text); }
.badge-FUND { background: var(--tag-fund-bg); color: var(--tag-fund-text); }
.asset-line { width: 100%; overflow: hidden; min-width: 0; }
.asset-line-top { display: flex; align-items: center; }
.asset-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.percent-bar { height: 4px; background: var(--surface-2); width: 100%; margin-top: 5px; border-radius: 3px; overflow: hidden; }
.percent-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }
.view-more-container { margin-top: 14px; text-align: center; padding-top: 14px; border-top: 1px solid var(--border); }
.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    transition: all .3s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 8px 20px rgba(196, 30, 58, .24);
}
.view-more-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(196, 30, 58, .34); filter: brightness(1.06); }
.view-more-btn .arrow { display: inline-block; transition: transform .3s ease; font-size: 12px; }
.view-more-btn:hover .arrow { transform: translateX(4px); }

/* 状态图例 */
.legend-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 18px; font-size: 12.5px; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

/* ============================================================
   数据大屏（内嵌数据墙，直接展示在首页）
   ============================================================ */
#bigscreen {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    background: radial-gradient(circle at 50% 0%, #2b0912 0%, #0b0c13 55%, #05060a 100%);
    color: #f5f6fa;
    display: flex;
    flex-direction: column;
    padding: 28px 30px 24px;
    overflow: hidden;
    box-shadow: 0 34px 90px -24px rgba(196, 30, 58, .42), 0 0 0 1px rgba(255, 107, 107, .14);
    isolation: isolate;
}
/* 可选：真正全屏（点击右上角按钮） */
#bigscreen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 107, 107, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 107, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -1;
}
#bigscreen::after {
    content: "";
    position: absolute;
    top: -120px; left: 50%;
    width: 620px; height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, .30), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}
.bs-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 16px;
    min-height: 540px;
}
.bs-panel {
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 107, 107, .20);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.bs-panel h3 {
    font-size: 15px;
    font-weight: 800;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 107, 107, .18);
    display: flex;
    align-items: center;
    gap: 9px;
}
.bs-panel h3 .tag { margin-left: auto; font-size: 11.5px; font-weight: 700; color: rgba(245, 246, 250, .6); }
.bs-panel .scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 14px; }
.bs-panel .scroll::-webkit-scrollbar { width: 5px; }
.bs-panel .scroll::-webkit-scrollbar-thumb { background: rgba(255, 107, 107, .35); border-radius: 5px; }
.bs-chart { flex: 1; min-height: 260px; }
.bs-rank { list-style: none; }
.bs-rank li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px dashed rgba(255, 255, 255, .08); font-size: 13px; }
.bs-rank li .no { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .10); color: rgba(245, 246, 250, .75); }
.bs-rank li:nth-child(1) .no { background: linear-gradient(135deg, #c41e3a, #ff6b6b); color: #fff; }
.bs-rank li:nth-child(2) .no { background: linear-gradient(135deg, #d97706, #fbbf24); color: #fff; }
.bs-rank li:nth-child(3) .no { background: linear-gradient(135deg, #0f9d58, #5eead4); color: #fff; }
.bs-rank li .nm { min-width: 0; }
.bs-rank li .nm b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-rank li .nm span { display: block; font-size: 11px; color: rgba(245, 246, 250, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.bs-rank li .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 深色墙数值胶囊：新进=蓝星 / 增持=红加号 / 减持=绿减号 */
.bs-rank li .v.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12.5px;
}
.bs-rank li .v.chip i { font-size: 10px; }
.bs-rank li .v.chip.new { color: #7dd3fc; background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .30); }
.bs-rank li .v.chip.buy { color: #ff8a80; background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .32); }
.bs-rank li .v.chip.sell { color: #5eead4; background: rgba(45, 212, 191, .14); border-color: rgba(45, 212, 191, .32); }

/* 共识持仓 TOP 10：自绘列表（不再用图表，避免标签/图例重叠） */
.bs-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 16px 2px;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(245, 246, 250, .72);
}
.bs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bs-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.bs-legend i.hold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bs-legend i.buy { background: #ff6b6b; }
.bs-legend i.sell { background: #34d399; }
/* 图例放在面板标题行右侧，与卡片右边框对齐 */
.bs-panel h3 .bs-legend {
    margin-left: auto;
    padding: 0;
    gap: 4px 13px;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(245, 246, 250, .72);
}
.bs-panel h3 .bs-legend i { width: 8px; height: 8px; border-radius: 2.5px; }
.bs-cons { list-style: none; padding: 4px 14px 14px; }
.bs-cons li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1.1fr) minmax(60px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.bs-cons li:last-child { border-bottom: 0; }
.bs-cons .no {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 800;
    background: rgba(255, 255, 255, .10);
    color: rgba(245, 246, 250, .78);
}
.bs-cons li:nth-child(1) .no { background: linear-gradient(135deg, #c41e3a, #ff6b6b); color: #fff; }
.bs-cons li:nth-child(2) .no { background: linear-gradient(135deg, #d97706, #fbbf24); color: #fff; }
.bs-cons li:nth-child(3) .no { background: linear-gradient(135deg, #0f9d58, #5eead4); color: #fff; }
.bs-cons .nm { min-width: 0; }
.bs-cons .nm b { display: block; font-size: 13px; font-weight: 700; color: #f5f6fa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-cons .nm span { display: block; margin-top: 2px; font-size: 11px; color: rgba(245, 246, 250, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-cons .bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.bs-cons .bar i { display: block; height: 100%; min-width: 0; }
.bs-cons .bar i.hold { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bs-cons .bar i.buy { background: #ff6b6b; }
.bs-cons .bar i.sell { background: #34d399; }
.bs-cons .nums { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-cons .nums .h { color: #fbbf24; }
.bs-cons .nums .b { color: #ff8a80; }
.bs-cons .nums .s { color: #5eead4; }
@media (max-width: 640px) {
    .bs-cons li { grid-template-columns: 24px minmax(0, 1fr) auto; }
    .bs-cons .bar { grid-column: 2 / -1; grid-row: 2; }
}

.bs-tabs { display: flex; gap: 6px; }
.bs-tabs button {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: rgba(245, 246, 250, .7);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.bs-tabs button:hover { border-color: rgba(255, 107, 107, .6); color: #fff; }
.bs-tabs button.is-on { background: #c41e3a; border-color: #c41e3a; color: #fff; }

/* ============================================================
   Loading
   ============================================================ */
#gushi-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), visibility .6s;
}
#gushi-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-avatar {
    width: 108px; height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface-solid);
    box-shadow: 0 15px 35px rgba(196, 30, 58, .22);
    animation: bot-bounce 2s infinite ease-in-out alternate;
}
@keyframes bot-bounce { 100% { transform: translateY(-16px); } }
.progress-box {
    width: min(360px, 86vw);
    text-align: center;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 22px 26px;
    border-radius: 24px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}
.progress-bar-bg { width: 100%; height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.progress-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #ff7e67, var(--accent));
    border-radius: 10px;
    position: relative;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.progress-bar-fill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%);
    animation: gloss-move 1.5s infinite linear;
    transform: skewX(-20deg);
}
@keyframes gloss-move { 0% { transform: translateX(-100%) skewX(-20deg); } 100% { transform: translateX(200%) skewX(-20deg); } }
.progress-text { margin-top: 16px; color: var(--text); font-size: 15px; font-weight: 800; }
.loading-tips { margin-top: 6px; color: var(--text-3); font-size: 12px; font-weight: 600; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 56px auto 0;
    padding: 26px 24px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}
.site-footer a { color: var(--accent); font-weight: 600; }

/* ---- 免责声明：3 张卡片（宽度与上方内容区完全一致） ---- */
.disc-wrap { width: 100%; max-width: none; margin: 0 0 22px; }
.disc-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 7px 18px 7px 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--card-inset);
}
.disc-head .disc-badge {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 6px 14px rgba(245, 158, 11, .34), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.disc-head h3 { margin: 0; font-size: 14.5px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.disc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; align-items: stretch; }
.disc-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--card-inset);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    height: 100%;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.disc-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    opacity: .9;
}
.disc-card.c2::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.disc-card.c3::before { background: linear-gradient(90deg, #0f9d58, #5eead4); }
.disc-card::after {
    content: "";
    position: absolute;
    width: 170px; height: 170px;
    border-radius: 50%;
    top: -70px; right: -70px;
    background: var(--glow-a);
    filter: blur(48px);
    pointer-events: none;
}
.disc-card:hover { transform: translateY(-5px); border-color: rgba(196, 30, 58, .30); box-shadow: 0 24px 54px -14px rgba(196, 30, 58, .20), var(--card-inset); }
.disc-card .disc-no {
    position: absolute;
    top: 10px; right: 18px;
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--accent);
    opacity: .10;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.disc-card.c2 .disc-no { color: #2563eb; }
.disc-card.c3 .disc-no { color: #0f9d58; }
.disc-card .disc-ico {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 10px 20px rgba(196, 30, 58, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    transition: transform .3s ease;
}
.disc-card.c2 .disc-ico { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 10px 20px rgba(37, 99, 235, .26), inset 0 1px 0 rgba(255, 255, 255, .35); }
.disc-card.c3 .disc-ico { background: linear-gradient(135deg, #0f9d58, #5eead4); box-shadow: 0 10px 20px rgba(15, 157, 88, .24), inset 0 1px 0 rgba(255, 255, 255, .35); }
.disc-card:hover .disc-ico { transform: scale(1.1) rotate(-6deg); }
.disc-card h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); position: relative; z-index: 1; letter-spacing: .2px; line-height: 1.3; }
.disc-card p { grid-column: 1 / -1; margin: 14px 0 0; font-size: 12.8px; line-height: 1.75; color: var(--text-2); position: relative; z-index: 1; }
.footer-copy { margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ============================================================
   详情页
   ============================================================ */
.detail-head-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.detail-head-card h1 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--accent); }
body.dark-mode .detail-head-card h1 { color: #ff8a8a; }
.detail-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; font-weight: 600; }
.detail-total { text-align: right; }
.detail-total .l { font-size: 11.5px; color: var(--text-3); font-weight: 700; letter-spacing: .5px; }
.detail-total .v { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; font-variant-numeric: tabular-nums; }
.controls-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--card-inset);
    transition: all .25s ease;
}
.btn-back:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent); box-shadow: var(--shadow); }
.filter-group { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); padding: 6px 12px 6px 16px; border-radius: 999px; border: 1px solid var(--border-strong); box-shadow: var(--card-inset); }
.filter-label { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.custom-select {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 7px 26px 7px 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    outline: none;
    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='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
}
.custom-select option { color: #111; }
/* ============================================================
   详情页：分页表格（避免上千行 DOM 造成卡顿）
   ============================================================ */
.table-card { overflow: hidden; margin-bottom: 30px; contain: layout paint; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    background: var(--surface-2);
    color: var(--text-2);
    font-weight: 700;
    font-size: 12.5px;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
th.is-sortable { cursor: pointer; user-select: none; transition: color .2s ease, background .2s ease; }
th.is-sortable:hover { color: var(--accent); background: rgba(196, 30, 58, .07); }
th .sort-ind { display: inline-block; width: 12px; margin-left: 4px; font-size: 10px; color: var(--text-3); opacity: .45; }
th.is-sorted { color: var(--accent); }
th.is-sorted .sort-ind { opacity: 1; color: var(--accent); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13.5px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background-color: var(--surface-2); }
tbody tr { contain: layout style; }
.s-name { font-weight: 800; color: var(--accent); font-size: 14.5px; display: block; }
body.dark-mode .s-name { color: #ff8a8a; }
.s-sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; margin-top: 4px; color: var(--text-3); flex-wrap: wrap; }
.s-ticker { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-weight: 700; font-size: 11px; color: var(--text-2); }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 700; display: inline-block; }
.tag-US { background: var(--tag-us-bg); color: var(--tag-us-text); }
.tag-CN { background: var(--tag-cn-bg); color: var(--tag-cn-text); }
.tag-JP { background: var(--tag-jp-bg); color: var(--tag-jp-text); }
.tag-BOND { background: var(--tag-bond-bg); color: var(--tag-bond-text); }
.tag-FUND { background: var(--tag-fund-bg); color: var(--tag-fund-text); }
.tag-CRYPTO { background: var(--tag-crypto-bg); color: var(--tag-crypto-text); }
.num-val { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-new { background: var(--new-bg); color: var(--newc); }
.st-buy { background: var(--up-bg); color: var(--up); }
.st-sell { background: var(--down-bg); color: var(--down); }
.st-hold { background: var(--hold-bg); color: var(--holdc); }
.pct-cell { min-width: 120px; }
.pct-bar { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.pct-bar > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.chg-up { color: var(--up); }
.chg-down { color: var(--down); }

/* 表格工具条（搜索 + 每页条数 + 分页） */
.tbl-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.tbl-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 38px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tbl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196, 30, 58, .10); }
.tbl-search i { color: var(--text-3); font-size: 13px; }
.tbl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; }
.tbl-search input::placeholder { color: var(--text-3); font-weight: 500; }
.tbl-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); font-weight: 600; flex-wrap: wrap; }
.tbl-size {
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}
.tbl-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
}
.pg-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
}
.pg-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.pg-btn:disabled { opacity: .38; cursor: not-allowed; }
.pg-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(196, 30, 58, .26); }
.pg-gap { color: var(--text-3); font-weight: 800; padding: 0 2px; }
.tbl-empty { text-align: center; padding: 48px 16px; color: var(--text-3); font-size: 13.5px; }

/* ============================================================
   画板脚本（gushiio-drawing-board.js）响应式补丁
   该脚本会把样式注入到 head 尾部，这里用 !important 覆盖，
   让工具栏在手机 / 平板 / PC 上都能完整显示与操作
   ============================================================ */
#drawing-container { z-index: 4000; }
.drawing-toolbar { max-width: calc(100vw - 16px); }
@media (max-width: 820px) {
    #drawing-toolbar {
        left: 8px !important;
        right: 8px !important;
        bottom: 10px !important;
        transform: none !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px !important;
    }
    #drawing-toolbar .toolbar-content { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; }
    #drawing-toolbar .toolbar-section { padding: 0 6px !important; gap: 8px !important; border-left: 0 !important; }
    #drawing-toolbar .toolbar-section + .toolbar-section { border-left: 0 !important; }
    #drawing-toolbar .size-slider { width: 84px !important; }
    #drawing-toolbar .color-swatch { width: 28px !important; height: 28px !important; }
    #drawing-toolbar .tool-btn { width: 38px !important; height: 38px !important; }
}
@media (max-width: 420px) {
    #drawing-toolbar .size-slider { width: 66px !important; }
    #drawing-toolbar .color-swatch { width: 26px !important; height: 26px !important; }
    #drawing-toolbar .tool-btn { width: 34px !important; height: 34px !important; }
    #drawing-toolbar .tool-btn svg { width: 19px !important; height: 19px !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .top-assets-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .core-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr; }
    .bs-body { grid-template-columns: 1fr; min-height: 0; }
    .bs-panel { min-height: 320px; }
    .bs-panel .scroll { max-height: 360px; }
}
@media (max-width: 1080px) {
    .charts-grid { grid-template-columns: 1fr; }
    .disc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .top-assets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #bigscreen { padding: 22px 18px 20px; border-radius: 24px; }
}
@media (max-width: 768px) {
    .header-inner { padding: 12px 16px; flex-wrap: wrap; }
    .nav { width: 100%; order: 3; gap: 2px; }
    .nav > a, .dropdown-toggle { padding: 7px 10px; font-size: 12.5px; }
    .header-tools { margin-left: auto; gap: 8px; }
    .theme-toggle-btn .tb-txt, .hbtn .tb-txt, .hbtn .tb-caret { display: none; }
    .theme-toggle-btn, .hbtn { padding: 0 7px; height: 40px; gap: 0; }
    .banner { padding: 32px 16px 28px; margin-bottom: 24px; }
    .container { padding: 0 16px; }
    .section-head p { text-align: left; max-width: none; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kpi-tile { padding: 16px 16px; gap: 12px; border-radius: 18px; }
    .kpi-ico { width: 44px; height: 44px; font-size: 17px; border-radius: 14px; }
    /* 面板标题在窄屏换行，标签组独占一行，避免把标题挤成两行还溢出 */
    .bs-panel h3 { flex-wrap: wrap; row-gap: 8px; }
    .bs-panel h3 .bs-tabs { margin-left: 0 !important; width: 100%; }
    .bs-panel h3 .bs-legend { margin-left: auto; width: 100%; justify-content: flex-end; }
    .bs-tabs button { flex: 1 1 auto; text-align: center; }
    .top-assets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fund-grid { grid-template-columns: 1fr; gap: 14px; }
    .chart-box { height: 260px; }
    .detail-head-card { padding: 20px; }
    .detail-total { text-align: left; }
    .controls-bar { gap: 10px; }
    .btn-back, .filter-group { flex: 1; justify-content: center; }
    .disc-card { padding: 18px; }
    /* 表格转卡片（分页后每页最多 100 行，DOM 数量可控） */
    .table-card { background: transparent; border: 0; box-shadow: none; }
    .table-wrap { overflow: visible; }
    table, thead, tbody, th, td, tr { display: block; }
    thead { display: none; }
    tbody tr {
        background: var(--surface);
        border-radius: 16px;
        margin-bottom: 12px;
        padding: 16px;
        border: 1px solid var(--border);
        box-shadow: 0 4px 14px rgba(196, 30, 58, .06);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 14px;
    }
    td { border: 0; padding: 0; }
    td.cell-name { grid-column: 1 / -1; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
    td.cell-tag { grid-column: 1 / -1; margin-bottom: 10px; }
    td.cell-hide { display: none; }
    td.cell-grid { margin-bottom: 10px; }
    td.cell-grid::before { content: attr(data-label); display: block; font-size: 11px; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
    td.cell-status { grid-column: 1 / 2; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: center; }
    td.cell-vote { grid-column: 2 / 3; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: flex-end; color: var(--text-3); font-size: 12px; }
    .tbl-tools { padding: 12px; border-radius: 16px; margin-bottom: 12px; border: 1px solid var(--border); }
    .tbl-search { max-width: none; }
    .tbl-pager { padding: 12px 0; }
}
@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi-tile { padding: 14px 12px; gap: 10px; }
    .kpi-ico { width: 38px; height: 38px; font-size: 15px; border-radius: 12px; }
    .kpi-value { font-size: 17px; }
    .top-assets-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .asset-card { padding: 13px; min-height: 158px; }
    .banner-pill { font-size: 11.5px; padding: 6px 12px; }
    .disc-head h3 { font-size: 13.5px; }
}
