    /* ── 顶部加载条 ── */
    #navBar {
        position: fixed; top: 0; left: 0; height: 3px; width: 0;
        background: linear-gradient(90deg, #dc2626, #f87171);
        z-index: 9999; transition: width 0.3s ease, opacity 0.3s;
        opacity: 0;
    }
    #navBar.show { opacity: 1; }
    #navBar.done { opacity: 0; transition: opacity 0.3s; }
    :root {
        --bg:        #f5f6f8;
        --bg2:       #eef0f4;
        --card:      #ffffff;
        --card-hover:#f8f9fc;
        --border:    #e2e5ea;
        --text:      #1a1a2e;
        --text2:     #4a4a5a;
        --muted:     #8a8a9a;
        --accent:    #dc2626;
        --accent-light: #fef2f2;
        --red:       #dc2626;
        --red-bg:    #fef2f2;
        --green:     #16a34a;
        --green-bg:  #f0fdf4;
        --gold:      #d97706;
        --gold-bg:   #fffbeb;
        --blue:      #2563eb;
        --blue-bg:   #eff6ff;
        --radius:    10px;
        --shadow:    0 1px 3px rgba(0,0,0,0.06);
    }
    /* ── 锁标全局组件（定位P1：灰色🔒 + 跳商城，不弹窗不阻断） ── */
    .lock-badge {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 2px 8px; border-radius: 6px;
        background: #f1f2f6; color: #8a8a9a;
        font-size: 0.72rem; font-weight: 600;
        border: 1px dashed #c9ccd4; cursor: pointer;
        transition: background .2s;
        user-select: none;
    }
    .lock-badge:hover { background: #e5e7eb; }
    .lock-badge.lock-lg { padding: 6px 16px; font-size: 0.85rem; border-radius: 8px; }
    .lock-card {
        position: relative; border: 1px dashed #c9ccd4 !important;
        background: #fafbfc !important; color: #8a8a9a;
        filter: grayscale(0.3); cursor: pointer;
    }
    .lock-card:hover { background: #f1f2f6 !important; }
    .lock-card .lock-overlay {
        position: absolute; inset: 0; z-index: 2;
        display: flex; align-items: center; justify-content: center;
        background: rgba(250,251,252,0.55); border-radius: inherit;
    }
    body {
        background: var(--bg);
        color: var(--text);
        font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, system-ui, sans-serif;
        font-size: 15px;
        line-height: 1.6;
    }
    .navbar {
        background: var(--card);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .navbar-brand {
        font-weight: 700;
        font-size: 1.3rem;
        color: var(--red) !important;
    }
    .nav-link {
        color: var(--muted) !important;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem !important;
        border-radius: 6px;
    }
    .nav-link:hover {
        color: var(--text) !important;
        background: var(--bg);
    }
    .nav-link.active {
        color: var(--red) !important;
        background: #fef2f2;
        font-weight: 600;
    }
    /* 下拉菜单与顶层菜单字体统一（全站导航规范：0.85rem） */
    .dropdown-menu {
        font-size: 0.85rem;
    }
    .dropdown-item {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text);
        padding: 0.45rem 0.9rem;
        border-radius: 6px;
    }
    .dropdown-item:hover,
    .dropdown-item:focus {
        color: var(--red);
        background: var(--bg);
    }
    .dropdown-item.active {
        color: var(--red);
        background: #fef2f2;
        font-weight: 600;
    }
    .dropdown-divider { margin: 0.35rem 0; }
    .card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .card-header {
        background: transparent;
        border-bottom: 1px solid var(--border);
        font-weight: 600;
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
        color: var(--text);
    }
    /* ── PWA 版本更新横幅 ── */
    #versionBanner {
        display: none; position: fixed; top: 58px; left: 0; right: 0; z-index: 9998;
        background: #fef3c7; color: #92400e; text-align: center; font-size: 0.8rem;
        padding: 8px 16px; cursor: pointer; border-bottom: 1px solid #fde68a;
        transition: opacity 0.3s;
    }
    #versionBanner:hover { background: #fde68a; }
    #versionBanner .close-ban { float: right; background: none; border: none; color: #92400e; font-size: 1rem; cursor: pointer; padding: 0 4px; opacity: 0.5; }
    #versionBanner .close-ban:hover { opacity: 1; }
    .btn-red {
        background: var(--red);
        border: none;
        color: #fff !important;
        font-weight: 600;
        padding: 0.5rem 1.25rem;
        border-radius: 8px;
        font-size: 0.88rem;
        transition: 0.15s;
    }
    .btn-red:hover {
        background: #b91c1c;
    }
    .btn-outline-red {
        background: transparent;
        border: 1px solid var(--red);
        color: var(--red);
        font-weight: 600;
        padding: 0.5rem 1.25rem;
        border-radius: 8px;
        font-size: 0.88rem;
        transition: 0.15s;
    }
    .btn-outline-red:hover {
        background: var(--red-bg);
    }
    /* A股：红涨绿跌 */
    .up   { color: var(--red);   font-weight: 600; }
    .down { color: var(--green); font-weight: 600; }
    .badge-up   { background: var(--red-bg);   color: var(--red);   font-weight: 600; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }
    .badge-down { background: var(--green-bg); color: var(--green); font-weight: 600; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }
    .badge-gold { background: var(--gold-bg);  color: var(--gold);  font-weight: 600; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }
    .badge-blue { background: var(--blue-bg);  color: var(--blue);  font-weight: 600; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }
    .score-high { background: var(--red);   color: #fff; width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
    .score-mid  { background: var(--gold);  color: #fff; width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
    .score-low  { background: #d1d5db;      color: #555; width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
    .hero-section {
        background: var(--card);
        padding: 2.5rem 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--red); }
    .stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
    .table-stockeye {
        --bs-table-bg: transparent;
        --bs-table-color: var(--text);
        --bs-table-border-color: var(--border);
    }
    .table-stockeye thead th {
        border-bottom: 2px solid var(--border);
        color: var(--muted);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 0.6rem 0.5rem;
    }
    .table-stockeye tbody td {
        padding: 0.6rem 0.5rem;
        vertical-align: middle;
        font-size: 0.88rem;
        border-bottom: 1px solid var(--border);
        color: var(--text);
    }
    .table-stockeye tbody tr:hover {
        background: var(--bg);
    }
    .form-control, .form-select {
        background: var(--card) !important;
        color: var(--text) !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        font-size: 0.88rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    .form-control:focus, .form-select:focus {
        border-color: var(--red) !important;
        box-shadow: 0 0 0 2px var(--red-bg) !important;
    }
    .form-label {
        color: var(--text2);
        font-size: 0.82rem;
        font-weight: 500;
    }
    .input-group-text {
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--muted);
        font-size: 0.82rem;
    }
    .loading-spinner {
        display: inline-block;
        width: 2rem; height: 2rem;
        border: 3px solid var(--border);
        border-top-color: var(--red);
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .footer {
        text-align: center;
        padding: 2rem 0;
        color: var(--muted);
        font-size: 0.78rem;
        border-top: 1px solid var(--border);
        margin-top: 3rem;
    }
    .footer-brand {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 0.4rem;
    }
    .footer-links {
        font-size: 0.72rem;
        color: var(--muted);
        margin-top: 4px;
        line-height: 1.9;
    }
    .footer-links a {
        color: var(--muted);
        text-decoration: underline;
    }
    .footer-links a:hover { color: var(--primary); }
    .disclaimer {
        font-size: 0.72rem;
        color: #9ca3af;
        line-height: 1.8;
        margin: 0.75rem 0 0;
    }
    .breadcrumb-item a { color: var(--red); text-decoration: none; }
    .breadcrumb-item.active { color: var(--muted); }
    .breadcrumb-item+.breadcrumb-item::before { color: var(--muted); }
    canvas { border-radius: 8px; }
    @media (max-width: 768px) {
        /* iOS Safari 聚焦自动缩放防护：input/textarea 字号必须 ≥16px（否则键盘弹出页面放大错位） */
        .form-control, .form-select, input[type="text"], input[type="number"], input[type="password"], input[type="tel"], textarea {
            font-size: 16px !important;
        }
        .table-stockeye tbody td { font-size: 0.78rem; padding: 0.4rem 0.3rem; }
        .table-stockeye thead th { font-size: 0.6rem; }
        .stat-value { font-size: 1.3rem; }
        .card { margin-bottom: 12px; }
        .card-body { padding: 0.8rem; }
        .index-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
        .levels-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
        .holding-input-group { flex-direction: column; }
        .holding-input-group .field { min-width: 100%; }
        .scenario-card { padding: 14px; }
        .pl-display { font-size: 1.6rem; }
        .diag-header .price { font-size: 1.4rem; }
        .section-title { font-size: 0.9rem; }
        .container { padding-left: 12px; padding-right: 12px; }
        .mover-table { font-size: 0.78rem; }
        .mover-table td, .mover-table th { padding: 6px 8px; }
        /* 管理后台表格（JS动态生成，无包裹容器）：移动端自动横向滚动 */
        .ops-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
        .tx-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    }
    /* Mobile: faster navbar responsiveness */
    .navbar-collapse { transition: none !important; }
    .navbar-collapse.collapsing { display: none; }
    .navbar-toggler { border-color: #e2e5ea; }
    .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,26,46,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
    .nav-link { transition: none !important; }
    .navbar { transition: none !important; }
    /* content-visibility: skip off-screen rendering */
    .footer { content-visibility: auto; contain-intrinsic-size: 100px; }
    /* ─── 复盘卡片（战绩页/历史复盘页共用） ─── */
    .review-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }
    .review-header h2 {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .rv-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
    .rv-empty i { font-size: 2.5rem; margin-bottom: 12px; }
    .rv-card {
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--card);
        padding: 16px 20px;
        margin-bottom: 14px;
    }
    .rv-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }
    .rv-date { font-weight: 700; font-size: 1.02rem; }
    .rv-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; }
    .rv-stat .num { font-weight: 700; font-size: 0.98rem; }
    .rv-picks { border-top: 1px dashed var(--border); padding-top: 10px; }
    /* 2026-10-25：明细默认折叠 —— 复盘看「为什么赢/输」，逐笔收益去历史信号库看 */
    .rv-toggle {
        border: 1px solid var(--border);
        background: transparent;
        color: var(--muted);
        border-radius: 8px;
        padding: 3px 10px;
        font-size: 0.78rem;
        cursor: pointer;
        flex-shrink: 0;
    }
    .rv-toggle:hover { color: var(--text); border-color: var(--muted); }
    .rv-toggle i { transition: transform .18s; margin-left: 3px; }
    .rv-toggle.on i { transform: rotate(180deg); }
    .rv-foot { margin-top: 8px; font-size: 0.78rem; }
    .rv-foot a { color: var(--muted); text-decoration: none; }
    .rv-foot a:hover { color: var(--red); }
    .rv-pick {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 6px 0;
        font-size: 0.9rem;
    }
    .rv-pick .name { font-weight: 600; }
    .rv-pick .code { color: var(--muted); font-size: 0.78rem; margin-left: 6px; }
    .badge-status {
        display: inline-block;
        padding: 1px 8px;
        border-radius: 10px;
        font-size: 0.72rem;
        font-weight: 600;
    }
    .badge-win { background: #fee2e2; color: #dc2626; }
    .badge-loss { background: #dcfce7; color: #16a34a; }
    .badge-flat { background: #f3f4f6; color: #6b7280; }
    .flat { color: #6b7280; }
    /* 复盘因子归因（批3-4） */
    .rv-summary {
        border-top: 1px dashed var(--border);
        margin-top: 10px;
        padding-top: 8px;
        font-size: 0.8rem;
        line-height: 1.7;
        color: #374151;
    }
    .rv-summary .tag { font-weight: 600; margin-right: 4px; }
    .rv-summary .tag.win { color: #dc2626; }
    .rv-summary .tag.loss { color: #16a34a; }
    .rv-summary .muted { color: var(--muted); }
    .rv-attrib {
        margin-top: 4px;
        font-size: 0.78rem;
        line-height: 1.5;
        padding: 5px 10px;
        border-radius: 8px;
        background: #f9fafb;
        border: 1px solid var(--border);
    }
    .rv-attrib + .rv-attrib { margin-top: 4px; }
    .rv-attrib .tag { font-weight: 600; }
    .rv-attrib.win .tag { color: #dc2626; }
    .rv-attrib.loss .tag { color: #16a34a; }
    .wl-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 6px 12px;
        margin: 4px 6px 4px 0;
        font-size: 0.85rem;
    }
    .pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
    .pager button {
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--text);
        border-radius: 8px;
        padding: 6px 14px;
        font-size: 0.85rem;
        cursor: pointer;
    }
    .pager button:disabled { opacity: 0.45; cursor: not-allowed; }
    .pager .page-info { align-self: center; font-size: 0.85rem; color: var(--muted); }

/* ── 骨架屏（2026-12-06）：内容没到位时先给出结构，避免空白/转圈闪烁 ──
   只做观感，不改变加载速度；JS 拿到数据后由各页面自行隐藏（#picksLoading 等）。 */
.skb { display: block; background: linear-gradient(90deg, #ebedf1 25%, #f6f7f9 37%, #ebedf1 63%);
       background-size: 400% 100%; animation: skShine 1.4s ease infinite; border-radius: 6px; }
@keyframes skShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skb { animation: none; } }
.skt { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.skr { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-top: 1px solid var(--border); }
.skr:first-child { border-top: 0; }
.skrh { padding: 11px 14px; background: #fafbfc; }
.skr .skb { height: 12px; }
.skrh .skb { height: 9px; }
@media (max-width: 768px) { .skr .skb.hidesm { display: none; } }
