/* ============================================================
   币数据 BiShuJu — 视觉系统 v2「交易终端」
   设计语言：深空底 + 金色渐变品牌轴 + 等宽数字 + 玻璃拟态吸顶
   色板：底 #07090d→#0b0e14 / 面板 #11151d / 描边 #1e2430
         金 #f0b90b（渐变 #ffd257→#f0a80a）/ 涨 #10c98a / 跌 #f6465d
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg0: #07090d;
    --bg1: #0b0e14;
    --panel: #11151d;
    --panel-2: #171c26;
    --panel-3: #1d2330;
    --line: #1e2430;
    --line-2: #2a3140;
    --gold: #f0b90b;
    --gold-hi: #ffd257;
    --gold-grad: linear-gradient(135deg, #ffd875 0%, #f0b90b 55%, #e09c06 100%);
    --up: #10c98a;
    --down: #f6465d;
    --text: #e9edf4;
    --muted: #8f99ad;
    --muted-2: #5b6474;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 8px;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "JetBrains Mono", monospace;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
    --head-h: 58px;
}

html { scrollbar-color: var(--line-2) var(--bg1); }

/* 注意：这里绝不能用 background-attachment:fixed，也不能给 .site-head 加
   backdrop-filter —— 两者（单独或组合）在 Windows Chrome 部分 GPU/缩放比例下
   会触发合成器 bug：大片黑色涂抹从上往下滑动盖住整页（2026-07-15 用户实机复现）。 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
    background:
        radial-gradient(1100px 460px at 18% -140px, rgba(240, 185, 11, 0.07), transparent 62%),
        radial-gradient(900px 420px at 88% -80px, rgba(16, 201, 138, 0.045), transparent 60%),
        linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 320px);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(240, 185, 11, 0.28); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

/* ============ 吸顶玻璃头部 ============ */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    /* 近实色替代毛玻璃：backdrop-filter 会触发上面注释里的合成器 bug */
    background: rgba(10, 13, 18, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.head-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: var(--head-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 10px rgba(240, 185, 11, 0.35)); }

.brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-latin {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 13px;
    font-weight: 700;
    margin-left: 3px;
}

.tagline {
    font-size: 10.5px;
    color: var(--muted-2);
    letter-spacing: 1.5px;
    margin-top: 1px;
    white-space: nowrap;
}

.head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

/* 数据新鲜度胶囊：绿=新鲜 / 黄=延迟 / 红=停更 */
.fresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fresh-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted-2);
    flex: none;
}

.fresh-ok .fresh-dot { background: var(--up); box-shadow: 0 0 0 0 rgba(16, 201, 138, 0.5); animation: pulse 2.4s infinite; }
.fresh-warn .fresh-dot { background: var(--gold); }
.fresh-bad .fresh-dot { background: var(--down); }
.fresh-pill b { color: var(--text); font-weight: 600; }
.fresh-next { color: var(--muted-2); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 201, 138, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(16, 201, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 201, 138, 0); }
}

.license-bar { display: flex; align-items: center; gap: 8px; }

.lic-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.lic-on { background: rgba(16, 201, 138, 0.12); color: var(--up); border: 1px solid rgba(16, 201, 138, 0.28); }
.lic-off { background: rgba(255, 255, 255, 0.03); color: var(--muted); border: 1px solid var(--line); }
.lic-expired { background: rgba(246, 70, 93, 0.12); color: var(--down); border: 1px solid rgba(246, 70, 93, 0.3); }

.lic-exp { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.lic-soon { color: var(--gold); }

.lic-btn {
    padding: 6px 14px;
    border: 1px solid rgba(240, 185, 11, 0.45);
    background: rgba(240, 185, 11, 0.07);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.lic-btn:hover { background: var(--gold-grad); color: #131313; border-color: transparent; box-shadow: 0 4px 16px rgba(240, 185, 11, 0.35); }

.stale-banner {
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.14), rgba(240, 185, 11, 0.05));
    border-top: 1px solid rgba(240, 185, 11, 0.3);
    color: var(--gold);
    font-size: 12.5px;
    padding: 8px 20px;
    text-align: center;
}

/* ============ 市场脉搏速览条 ============ */
.pulse {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0 14px;
}

.pulse-tile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px 11px;
    min-width: 0;
    transition: border-color 0.2s, transform 0.2s;
}

.pulse-tile:hover { border-color: var(--line-2); }

.pulse-k {
    font-size: 11px;
    color: var(--muted-2);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.pulse-v {
    font-size: 17px;
    font-weight: 700;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pulse-v small { font-size: 12px; font-weight: 600; margin-left: 5px; }
.pulse-v .up { color: var(--up); }
.pulse-gold { color: var(--gold); }

.pulse-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 分组策略导航 ============ */
.tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-1);
}

.tab-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.tab-group + .tab-group { border-top: 1px dashed rgba(255, 255, 255, 0.045); }

.tab-group-label {
    flex: none;
    width: 60px;
    text-align: right;
    font-size: 11px;
    color: var(--muted-2);
    font-weight: 700;
    letter-spacing: 2px;
}

.tab-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.tab {
    padding: 6px 13px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.16s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }

.tab.active {
    background: var(--gold-grad);
    color: #17130a;
    font-weight: 700;
    box-shadow: 0 3px 14px rgba(240, 185, 11, 0.32);
}

.tab-locked { color: var(--muted-2); }
.tab-locked:hover { color: var(--muted); }

.tab-lock { width: 10px; height: 10px; flex: none; opacity: 0.8; }
.tab.active .tab-lock { opacity: 1; }

/* ============ 排行榜 ============ */
/* 注意：不能用 overflow:hidden 做圆角裁剪——会把 thead 的 sticky 滚动上下文
   吃掉（吸顶失效）。圆角由 thead 首行/tbody 末行的单元格自己负责。 */
.table-container {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

table { width: 100%; border-collapse: separate; border-spacing: 0; }

thead th {
    position: sticky;
    top: var(--head-h);
    background: #151a24;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    z-index: 5;
    user-select: none;
}

thead th:first-child { border-top-left-radius: var(--r-lg); }
thead th:last-child { border-top-right-radius: var(--r-lg); }
tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-lg); }
tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r-lg); }

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(30, 36, 48, 0.5);
    font-size: 14px;
    position: relative;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr { transition: background 0.12s; }

tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:hover td:first-child::before {
    content: "";
    position: absolute;
    left: 0; top: 15%;
    height: 70%;
    width: 2px;
    border-radius: 2px;
    background: var(--gold-grad);
}

.col-check { width: 36px; text-align: center; }

.col-check input[type="checkbox"] {
    accent-color: var(--gold);
    cursor: pointer;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    opacity: 0.35;
    transition: opacity 0.12s;
}

tbody tr:hover .col-check input,
.col-check input:checked,
thead .col-check input { opacity: 1; }

.col-rank {
    width: 48px;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
    font-family: var(--mono);
    font-size: 13px;
}

/* 前三名奖牌 */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--mono);
}

.m1 { background: rgba(240, 185, 11, 0.16); color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.35) inset; }
.m2 { background: rgba(200, 208, 220, 0.10); color: #cdd5e1; box-shadow: 0 0 0 1px rgba(200, 208, 220, 0.25) inset; }
.m3 { background: rgba(205, 127, 50, 0.13); color: #e0995c; box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.3) inset; }

.col-symbol { min-width: 0; }

.symbol-link { color: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; }

.symbol-name { font-weight: 600; font-size: 14px; letter-spacing: 0.2px; }

.symbol-name span { color: var(--muted-2); font-weight: 500; font-size: 10.5px; letter-spacing: 0.5px; }

.tv-hint {
    opacity: 0;
    font-size: 10px;
    color: var(--muted-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
    transition: opacity 0.15s;
    white-space: nowrap;
    transform: translateY(-1px);
}

tbody tr:hover .tv-hint { opacity: 1; }
.symbol-link:hover .symbol-name { color: var(--gold-hi); }
.symbol-link:hover .tv-hint { color: var(--gold); border-color: rgba(240, 185, 11, 0.4); }

.sub-info {
    font-size: 11px;
    color: var(--muted-2);
    margin-top: 3px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.col-value {
    text-align: right;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    user-select: none;
    min-width: 110px;
}

th.col-value { cursor: pointer; text-align: right; }

/* 数值相对强度条 */
.val-wrap { display: inline-block; position: relative; padding-bottom: 5px; }

.val-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.12), rgba(240, 185, 11, 0.55));
    min-width: 3px;
    max-width: 100%;
}

.val-bar.vb-up { background: linear-gradient(90deg, rgba(16, 201, 138, 0.12), rgba(16, 201, 138, 0.6)); }
.val-bar.vb-down { background: linear-gradient(90deg, rgba(246, 70, 93, 0.12), rgba(246, 70, 93, 0.6)); }

.positive { color: var(--up); }
.negative { color: var(--down); }
.neutral { color: var(--text); }

.sort-arrow { color: var(--gold); font-size: 10px; margin-left: 2px; }

.sort-opt { cursor: pointer; padding: 2px 5px; border-radius: 4px; transition: color 0.12s; }
.sort-opt.active { color: var(--gold); }
.sort-opt:hover { color: var(--text); }
.sort-sep { color: var(--line-2); margin: 0 3px; }

/* 骨架屏 */
.sk-row td { padding: 13px 14px; }

.sk {
    display: block;
    height: 13px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 50%, var(--panel-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* 空状态 */
.empty-state { text-align: center; padding: 54px 20px 60px; }

.empty-ico {
    width: 44px; height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.empty-t { font-size: 14.5px; color: var(--text); font-weight: 600; margin-bottom: 6px; }
.empty-d { font-size: 12px; color: var(--muted-2); line-height: 1.7; }

.loading { text-align: center; padding: 48px; color: var(--muted); }

/* ============ 底部浮动导出坞 ============ */
.export-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 60;
    align-items: center;
    gap: 12px;
    background: rgba(17, 21, 29, 0.97);
    border: 1px solid rgba(240, 185, 11, 0.4);
    border-radius: 999px;
    padding: 9px 10px 9px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3);
    animation: dock-in 0.22s ease-out;
}

@keyframes dock-in {
    from { transform: translate(-50%, 14px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

#selectedCount { font-variant-numeric: tabular-nums; color: var(--gold-hi); font-weight: 600; white-space: nowrap; }

.export-bar button {
    padding: 7px 15px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.export-bar button:hover { color: var(--text); border-color: var(--muted); }

.export-bar #exportBtn {
    background: var(--gold-grad);
    border-color: transparent;
    color: #17130a;
}

.export-bar #exportBtn:hover { box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4); color: #000; }

/* ============ 付费墙 ============ */
.pw-cell { padding: 0 !important; }

.paywall { text-align: center; padding: 8px 24px 40px; }

.pw-ghost { position: relative; max-width: 500px; margin: 0 auto; text-align: left; }

.pw-ghost-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; }

.pwg-rank { width: 22px; color: var(--muted-2); font-size: 13px; font-family: var(--mono); }

.pwg-sym, .pwg-val { height: 12px; border-radius: 4px; background: var(--panel-3); filter: blur(4px); }
.pwg-sym { width: 40%; }
.pwg-val { width: 16%; margin-left: auto; }

.pw-ghost-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--panel) 88%); pointer-events: none; }

/* 渐变描边卡片 */
.pw-card {
    position: relative;
    max-width: 560px;
    margin: -18px auto 0;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(240, 185, 11, 0.55), rgba(240, 185, 11, 0.08) 38%, rgba(255, 255, 255, 0.06) 62%, rgba(240, 185, 11, 0.3));
}

.pw-card-in {
    background: linear-gradient(180deg, #141924, var(--panel));
    border-radius: 19px;
    padding: 26px 26px 24px;
}

.pw-lock {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 216, 117, 0.25), rgba(240, 185, 11, 0.08));
    border: 1px solid rgba(240, 185, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 24px rgba(240, 185, 11, 0.18);
}

.paywall h3 { font-size: 17.5px; margin-bottom: 12px; font-weight: 700; letter-spacing: 0.3px; }

.pw-alert {
    display: inline-block;
    background: rgba(246, 70, 93, 0.12);
    border: 1px solid rgba(246, 70, 93, 0.3);
    color: var(--down);
    font-size: 12.5px;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.pw-teaser {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 201, 138, 0.09);
    border: 1px solid rgba(16, 201, 138, 0.3);
    color: var(--up);
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.pw-teaser b { font-family: var(--mono); font-size: 14px; }

.pw-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.95;
    max-width: 440px;
    margin: 0 auto 20px;
}

.pw-desc b { color: var(--text); font-weight: 600; }

.pw-plans { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.pw-plan {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 14px 20px 12px;
    min-width: 96px;
    transition: all 0.15s;
}

.pw-best { border-color: rgba(240, 185, 11, 0.6); background: rgba(240, 185, 11, 0.05); }

.pw-tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-grad);
    color: #17130a;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.pw-p { font-size: 22px; font-weight: 800; font-family: var(--mono); }
.pw-best .pw-p { color: var(--gold-hi); }
.pw-u { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.pw-actions { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.pw-buy {
    background: var(--gold-grad);
    border: none;
    color: #17130a;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 30px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: 0 6px 22px rgba(240, 185, 11, 0.3);
}

.pw-buy:hover { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(240, 185, 11, 0.42); }

.pw-have {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 13.5px;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.pw-have:hover { border-color: var(--muted); color: var(--text); }

/* 信任徽章行 */
.pw-trust {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pw-trust span {
    font-size: 10.5px;
    color: var(--muted-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 11px;
    white-space: nowrap;
}

/* ============ 页脚 ============ */
.site-footer {
    margin-top: 26px;
    padding: 18px 0 8px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer-links { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 9px; }

.flink {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12.5px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
}

.flink:hover { color: var(--gold-hi); }

.fdot { color: var(--muted-2); font-size: 11px; }

.footer-note { font-size: 11px; color: var(--muted-2); line-height: 1.8; max-width: 640px; margin: 0 auto; }

/* ============ 弹窗（通用） ============ */
.modal {
    /* 全局 * { margin: 0 } reset 会干掉 dialog 默认 margin:auto，必须显式加回 */
    margin: auto;
    background: linear-gradient(180deg, #141924, var(--panel));
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 24px;
    width: 92%;
    max-width: 390px;
    color: var(--text);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.modal-wide { max-width: 470px; }

.modal::backdrop { background: rgba(4, 6, 9, 0.74); }

.modal h3 { font-size: 16px; margin-bottom: 10px; font-weight: 700; }

.modal-hint { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }

.modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

.spacer { flex: 1; }

.modal-actions button, .modal-actions a {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    text-align: center;
}

.btn-ghost { border: 1px solid var(--line-2); background: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.btn-danger-ghost { border: 1px solid var(--line-2); background: transparent; color: var(--muted); }
.btn-danger-ghost:hover { border-color: var(--down); color: var(--down); }

.btn-primary {
    background: var(--gold-grad);
    border: 1px solid transparent;
    color: #17130a;
    font-weight: 700;
}

.btn-primary:hover { box-shadow: 0 5px 18px rgba(240, 185, 11, 0.35); }

.modal-foot { margin-top: 13px; font-size: 11.5px; color: var(--muted-2); line-height: 1.65; }

#licenseInput {
    width: 100%;
    padding: 12px;
    background: var(--bg1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#licenseInput:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15); }

.lic-msg { font-size: 12px; min-height: 18px; margin: 9px 0 0; color: var(--muted); text-align: center; }
.lic-ok { color: var(--up); }
.lic-err { color: var(--down); }

/* 购买弹窗 */
.buy-plans { display: flex; gap: 8px; margin-bottom: 16px; }

.buy-plan {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 15px 8px 12px;
    cursor: pointer;
    text-align: center;
    color: var(--text);
    transition: all 0.15s;
}

.buy-plan:hover { border-color: var(--muted); transform: translateY(-1px); }

.bp-active {
    border-color: var(--gold) !important;
    background: rgba(240, 185, 11, 0.08);
    box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.4), 0 6px 18px rgba(240, 185, 11, 0.12);
}

.bp-tag {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-grad);
    color: #17130a;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.bp-name { font-size: 12px; color: var(--muted); }
.bp-price { font-size: 20px; font-weight: 800; font-family: var(--mono); margin: 4px 0 1px; }
.bp-active .bp-price { color: var(--gold-hi); }
.bp-per { font-size: 11px; color: var(--muted-2); }

.buy-steps { font-size: 13px; color: var(--muted); line-height: 2.05; padding-left: 20px; }
.buy-steps b { color: var(--gold); font-family: var(--mono); }

/* FAQ / 免责声明 */
.faq { max-height: 55vh; overflow-y: auto; font-size: 13px; color: var(--muted); line-height: 1.85; padding-right: 4px; }
.faq h4 { color: var(--text); font-size: 13.5px; margin: 15px 0 4px; }
.faq h4:first-child { margin-top: 0; }
.faq p { margin-bottom: 6px; }
.faq b { color: var(--text); }

/* ============ 移动端 ============ */
@media (max-width: 640px) {
    .container { padding: 0 10px 12px; }

    .head-inner { padding: 6px 12px; gap: 6px; }
    .brand-mark { width: 28px; height: 28px; }
    .brand-text h1 { font-size: 15px; }
    .tagline { display: none; }
    .head-right { gap: 6px; }
    .fresh-pill { font-size: 11px; padding: 4px 10px; }
    .fresh-next { display: none; }
    .lic-exp { display: none; }
    .lic-btn { padding: 5px 11px; font-size: 11.5px; }

    .pulse { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 10px; }
    .pulse-tile { padding: 10px 12px 9px; }
    .pulse-v { font-size: 15px; }

    .tabs { padding: 9px 10px; gap: 3px; border-radius: var(--r-md); }
    .tab-group { flex-direction: column; align-items: stretch; gap: 5px; padding: 5px 0; }
    .tab-group-label { width: auto; text-align: left; letter-spacing: 1.5px; font-size: 10.5px; }
    .tab-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(90deg, #000 92%, transparent);
        -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
        padding-bottom: 2px;
    }
    .tab-chips::-webkit-scrollbar { display: none; }
    .tab { font-size: 12px; padding: 5.5px 11px; }

    /* thead 的 sticky 偏移沿用 --head-h（JS 实测），移动端头部同样吸顶，勿覆盖为 0 */
    thead th, tbody td { padding: 9px 8px; font-size: 13px; }
    .col-value { min-width: 88px; font-size: 13.5px; }
    .col-rank { width: 38px; }
    .medal { width: 21px; height: 21px; font-size: 11px; border-radius: 6px; }
    .sub-info { font-size: 10px; }
    .tv-hint { display: none; }

    .export-bar { bottom: 12px; width: calc(100% - 20px); justify-content: space-between; padding: 8px 8px 8px 14px; }

    .paywall { padding: 4px 10px 28px; }
    .pw-card-in { padding: 20px 14px 18px; }
    .pw-plan { padding: 11px 13px 9px; min-width: 82px; }
    .pw-p { font-size: 18px; }
    .pw-desc { font-size: 12px; }

    .bp-price { font-size: 17px; }
}

/* 超窄屏（≤360px）：压缩固定列宽，避免表格 min-content 撑破容器出横向滚动 */
@media (max-width: 360px) {
    thead th, tbody td { padding: 8px 6px; }
    .col-check { width: 28px; }
    .col-check input[type="checkbox"] { width: 13px; height: 13px; }
    .col-rank { width: 30px; }
    .medal { width: 19px; height: 19px; font-size: 10.5px; }
    .col-value { min-width: 72px; font-size: 12.5px; }
    .symbol-name { font-size: 12.5px; }
    .pulse { grid-template-columns: 1fr 1fr; }
    .pulse-v { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
