
        /* ============ 设计 Token（日间模式） ============ */
        :root {
            color-scheme: light;
            --bg-deep: #eef2f7;
            --bg-panel: rgba(255, 255, 255, 0.82);
            --bg-panel-solid: #ffffff;
            --cyan: #0ea5c4;
            --cyan-bright: #16b8d8;
            --blue: #2b7de0;
            --text: #16233a;
            --text-dim: #3c4f6b;
            --text-muted: #6b7d96;
            --border: rgba(20, 50, 90, 0.14);
            --border-bright: rgba(20, 50, 90, 0.30);
            --glow-cyan: 0 0 22px rgba(14, 165, 196, 0.18);

            /* 浅色面板 Token */
            --light-card: #ffffff;
            --light-card-2: #f4f7fb;
            --light-card-3: #e9eef5;
            --light-header: rgba(255, 255, 255, 0.94);
            --light-hover: rgba(14, 165, 196, 0.10);
            --light-text-strong: #0c1729;
            --light-text: #1f2c44;
            --light-text-dim: #43556f;
            --light-text-muted: #6f8298;
            --light-border: rgba(20, 50, 90, 0.14);
            --light-border-strong: rgba(20, 50, 90, 0.28);
            --light-shadow: 0 6px 24px rgba(20, 50, 90, 0.10);
            --light-input-bg: #ffffff;
            --light-code-bg: #f3f6fb;

            /* 动效 */
            --ease: cubic-bezier(0.22, 1, 0.36, 1);
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
            /* 字号阶梯 */
            --fs-display: clamp(2.4rem, 5vw, 3.6rem);
            --fs-h1: 1.9rem;
            --fs-h2: 1.5rem;
            --fs-h3: 1.15rem;
            --fs-body: 0.95rem;
            --fs-small: 0.82rem;
            /* 间距节奏 */
            --space-1: 8px;
            --space-2: 16px;
            --space-3: 24px;
            --space-4: 40px;
            --space-5: 64px;
        }

        /* Header / 导航 */
        header { background: var(--light-header) !important; border-bottom-color: var(--light-border) !important; }
        header.scrolled { background: rgba(255,255,255,0.98) !important; border-bottom-color: var(--light-border-strong) !important; }
        .logo span,
        .logo { color: var(--light-text-strong) !important; }
        .nav-btn { color: var(--light-text-dim) !important; border-color: var(--light-border) !important; }
        .nav-btn:hover { background: var(--light-hover) !important; color: #0e7490 !important; }

        /* 登录卡 / 卡片背景 */
        .login-card,
        .question-card,
        .answer-sheet,
        .practice-sidebar,
        .filter-bar,
        .grade-card,
        .sidebar-select,
        .sidebar-level-grid button,
        .sheet-cell,
        .modal-content,
        .stats-card {
            background: var(--light-card) !important;
            color: var(--light-text) !important;
            border-color: var(--light-border) !important;
            box-shadow: var(--light-shadow) !important;
        }
        .filter-bar { background: transparent !important; box-shadow: none !important; }

        /* 刷题顶栏徽章（与页面融为一体） */
        .practice-top-bar { background: transparent !important; box-shadow: none !important; border: none !important; }
        .practice-badge {
            background: rgba(14,165,196,0.08) !important;
            color: #0e7490 !important;
            border: 1px solid rgba(14,165,196,0.22) !important;
            text-shadow: none !important;
        }

        /* 等级卡（带半透明深色） */
        .grade-card { background: var(--light-card) !important; }
        .grade-card:hover { background: var(--light-card-2) !important; }

        /* 副背景 */
        .question-type,
        .question-tag,
        .badge,
        .sidebar-section-title,
        .answer-sheet-title,
        .answer-sheet .sheet-type-title {
            background: var(--light-card-2) !important;
            color: var(--light-text-dim) !important;
            border-color: var(--light-border) !important;
        }

        /* 题号（深色模式用渐变 text-clip，日间模式取消渐变直接用实色） */
        .question-number {
            background: none !important;
            background-clip: unset !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0e7490 !important;
            color: #0e7490 !important;
        }

        /* 选项 .option */
        .option {
            background: var(--light-card-2) !important;
            color: var(--light-text) !important;
            border-color: var(--light-border) !important;
        }
        .option .letter,
        .option .key { background: var(--light-card-3) !important; color: var(--cyan) !important; }
        .option.selected { background: var(--light-hover) !important; border-color: var(--cyan) !important; color: var(--light-text-strong) !important; }
        .option.correct { background: rgba(34,197,94,0.18) !important; border-color: #16a34a !important; color: #15803d !important; }
        .option.wrong { background: rgba(239,68,68,0.18) !important; border-color: #dc2626 !important; color: #b91c1c !important; }

        /* 输入框 / 选择框 / textarea */
        input[type="text"],
        input[type="password"],
        textarea,
        select,
        .sidebar-select,
        .form-input,
        .code-editor,
        .code-area {
            background: var(--light-input-bg) !important;
            color: var(--light-text-strong) !important;
            border-color: var(--light-border) !important;
        }
        input::placeholder,
        textarea::placeholder { color: var(--light-text-muted) !important; }
        .code-editor,
        .code-area { background: var(--light-code-bg) !important; }

        /* 按钮 (submit, login, nav) */
        .submit-btn,
        .btn-primary,
        .login-btn,
        .primary-btn {
            background: linear-gradient(135deg, #0ea5c4 0%, #2b7de0 100%) !important;
            color: #ffffff !important;
        }
        .btn-secondary,
        .secondary-btn {
            background: var(--light-card-2) !important;
            color: var(--light-text) !important;
            border-color: var(--light-border) !important;
        }
        .btn-disabled,
        .submit-btn:disabled,
        button:disabled {
            background: var(--light-card-3) !important;
            color: var(--light-text-muted) !important;
        }

        /* 侧边栏：选中态、悬停态 */
        .sidebar-select { background: var(--light-card-2) !important; }
        .sidebar-select:hover { background: var(--light-hover) !important; }
        .sidebar-level-grid button { background: var(--light-card-2) !important; color: var(--light-text) !important; }
        .sidebar-level-grid button:hover { background: var(--light-hover) !important; }
        .sidebar-level-grid button.active { background: var(--light-hover) !important; border-color: var(--cyan) !important; color: #0e7490 !important; }

        /* 等级选择按钮（侧边栏 level-btn） */
        .level-btn {
            background: var(--light-card-2) !important;
            color: var(--light-text) !important;
            border-color: var(--light-border) !important;
        }
        .level-btn:hover {
            background: var(--light-hover) !important;
            color: #0e7490 !important;
            border-color: var(--cyan) !important;
            box-shadow: 0 0 14px rgba(14,165,196,0.25) !important;
        }
        .level-btn.active {
            background: #e0f2fb !important;
            color: #0e7490 !important;
            border-color: var(--cyan-bright) !important;
            box-shadow: 0 0 16px rgba(14,165,196,0.35) !important;
        }
        .level-btn.no-data { opacity: 0.3; }

        /* 我的统计卡片 */
        .my-stats-card {
            background: var(--light-card) !important;
            box-shadow: 0 0 18px rgba(43,125,224,0.10) !important;
        }
        .my-stats-card::before {
            background: linear-gradient(180deg, var(--cyan-bright), var(--blue)) !important;
        }
        .my-stats-title { color: #0e7490 !important; text-shadow: none !important; }
        .my-stat-item {
            background: var(--light-card-2) !important;
            border-color: var(--light-border) !important;
        }
        .my-stat-item:hover {
            background: var(--light-hover) !important;
            border-color: var(--cyan) !important;
            box-shadow: 0 0 14px rgba(14,165,196,0.18) !important;
        }
        .my-stat-label { color: var(--light-text-dim) !important; }
        .stats-toggle {
            background: rgba(14,165,196,0.08) !important;
            color: #0e7490 !important;
        }
        .stats-toggle:hover {
            background: rgba(14,165,196,0.18) !important;
            box-shadow: 0 0 12px rgba(14,165,196,0.22) !important;
        }

        /* 上一题 / 下一题（nav-btn 补充完整背景覆盖） */
        .nav-btn { background: var(--light-card-2) !important; }
        .nav-btn:hover { background: var(--light-hover) !important; color: #0e7490 !important; }
        .nav-btn:disabled { background: var(--light-card-3) !important; color: var(--light-text-muted) !important; }

        /* 答题卡：格子 */
        .sheet-cell { background: var(--light-card-2) !important; color: var(--light-text) !important; }
        .sheet-cell.answered { background: rgba(43,125,224,0.12) !important; color: #1d4ed8 !important; border-color: #93c5fd !important; }
        .sheet-cell.correct { background: rgba(34,197,94,0.18) !important; color: #15803d !important; border-color: #86efac !important; }
        .sheet-cell.wrong { background: rgba(239,68,68,0.18) !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
        .sheet-cell.active {
            border: 2px solid #2563eb !important;
            box-shadow: 0 0 18px rgba(37,99,235,0.65) !important;
            transform: scale(1.08) !important;
            color: #1d4ed8 !important;
            background: #dbeafe !important;
        }
        .legend-unanswered { background: var(--light-card-3) !important; border-color: var(--light-border-strong) !important; color: var(--light-text-dim) !important; }

        /* OJ 评判区域 */
        .judge-btn {
            background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(22,163,74,0.14)) !important;
            border-color: rgba(34,197,94,0.45) !important; color: #16a34a !important;
        }
        .judge-btn:hover { background: linear-gradient(135deg, rgba(34,197,94,0.35), rgba(22,163,74,0.25)) !important; }
        .judge-btn.running {
            background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(217,119,6,0.14)) !important;
            border-color: rgba(245,158,11,0.45) !important; color: #d97706 !important;
        }
        .judge-detail,
        .ce-simplified,
        .ce-raw {
            background: var(--light-code-bg) !important; border-color: var(--light-border) !important;
        }
        .ce-simplified { color: #b45309 !important; }
        .ce-raw { color: #b45309 !important; }
        .ce-hint { background: rgba(14,165,196,0.08) !important; color: #0e7490 !important; border-color: rgba(14,165,196,0.25) !important; }
        .judge-detail-value { color: var(--light-text) !important; }
        .judge-detail-label { color: var(--light-text-dim) !important; }

        /* 题目/解析/答案区 */
        .question-title,
        .question-content,
        .explanation,
        .answer-box,
        .code-display,
        .pre-block,
        code,
        pre {
            color: var(--light-text) !important;
            background: transparent !important;
        }
        .explanation,
        .answer-box { background: var(--light-card-2) !important; border-color: var(--light-border) !important; }

        /* 提示/警告/Toast */
        .toast,
        .alert,
        .notification { background: var(--light-card) !important; color: var(--light-text) !important; border-color: var(--light-border) !important; }
        .alert-success { background: rgba(34,197,94,0.18) !important; color: #15803d !important; }
        .alert-error { background: rgba(239,68,68,0.18) !important; color: #b91c1c !important; }
        .alert-warn { background: rgba(245,158,11,0.18) !important; color: #b45309 !important; }

        /* Modal 遮罩 */
        .modal-mask { background: rgba(20, 30, 50, 0.35) !important; }

        /* 文本颜色（最高优先级兜底） */
        body,
        /* 键盘可达性：清晰的聚焦环 */
        *:focus-visible {
            outline: 2px solid var(--cyan);
            outline-offset: 2px;
            border-radius: 4px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Sora', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: var(--bg-deep);
            color: var(--text);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            --mx: 50vw;
            --my: 50vh;
        }

        /* 网格背景 */
        body::before {
            content: '';
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-image:
                linear-gradient(rgba(14,165,196,0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(14,165,196,0.05) 1px, transparent 1px);
            background-size: 56px 56px;
            z-index: 0; pointer-events: none;
            will-change: transform;
            transform: translate(calc(var(--mx) * -0.01), calc(var(--my) * -0.01));
        }

        /* 扫描线 */
        body::after {
            content: '';
            position: fixed; top: 0; left: 0; width: 100%; height: 200%;
            background: repeating-linear-gradient(
                0deg, transparent, transparent 3px,
                rgba(14, 165, 196, 0.022) 3px, rgba(14, 165, 196, 0.022) 4px
            );
            z-index: 0; pointer-events: none;
            will-change: transform;
            animation: scanlines 14s linear infinite;
        }
        @keyframes scanlines { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
        html.tab-hidden body::after,
        html.tab-hidden body::before { animation-play-state: paused !important; transition: none !important; }

        #particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

        /* 鼠标光晕 */
        #cursor-glow {
            position: fixed; left: 0; top: 0;
            width: 360px; height: 360px; border-radius: 50%;
            background: radial-gradient(circle, rgba(14,165,196,0.10) 0%, rgba(43,125,224,0.04) 40%, transparent 65%);
            pointer-events: none; z-index: 1; mix-blend-mode: screen;
            transform: translate(calc(var(--mx) - 50%), calc(var(--my) - 50%));
            transition: opacity 0.4s ease;
            will-change: transform;
        }

        /* ============ 顶部导航 ============ */
        header {
            background: rgba(2, 6, 15, 0.7);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--border);
            padding: 18px 0;
            position: sticky; top: 0;
            z-index: 1000;
            transition: background 0.3s, border-color 0.3s;
        }
        header.scrolled { background: rgba(2, 6, 15, 0.92); border-bottom-color: var(--border-bright); }
        header::after {
            content: ''; position: absolute; left: 0; bottom: -1px;
            height: 1px; width: 30%;
            background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
            box-shadow: 0 0 12px var(--cyan);
            will-change: transform;
            animation: headerScan 5s ease-in-out infinite;
        }
        @keyframes headerScan {
            0%, 100% { transform: translateX(-30vw); }
            50% { transform: translateX(100vw); }
        }
        .header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
        .logo {
            font-size: 1.4rem; font-weight: 700;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            cursor: pointer; letter-spacing: 0.5px;
            display: flex; align-items: center; gap: 10px;
        }
        .logo::before {
            content: ''; width: 12px; height: 12px;
            background: var(--cyan); border-radius: 2px;
            box-shadow: 0 0 12px var(--cyan), inset 0 0 4px rgba(255,255,255,0.6);
            animation: logoPulse 2s ease-in-out infinite;
        }
        @keyframes logoPulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--cyan), inset 0 0 4px rgba(255,255,255,0.6); }
            50% { opacity: 0.5; box-shadow: 0 0 4px var(--cyan), inset 0 0 2px rgba(255,255,255,0.3); }
        }
        .header-right { display: flex; align-items: center; gap: 16px; }
        .nav-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; transition: all 0.3s; position: relative; }
        .nav-btn:hover { color: var(--cyan-bright); border-color: var(--border-bright); box-shadow: 0 0 12px rgba(14,165,196,0.2); }
        .nav-btn i { margin-right: 4px; }
        .nav-btn-primary {
            background: linear-gradient(135deg, var(--cyan), var(--blue));
            color: #fff; border-color: transparent; font-weight: 700;
            box-shadow: 0 4px 14px rgba(14,165,196,0.35);
        }
        .nav-btn-primary:hover {
            color: #fff; border-color: transparent; filter: brightness(1.06);
            box-shadow: 0 6px 20px rgba(14,165,196,0.5);
        }
        .back-btn { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; position: relative; }
        .back-btn::after {
            content: ''; position: absolute; bottom: -6px; left: 0;
            width: 0; height: 2px; background: var(--cyan);
            box-shadow: 0 0 8px var(--cyan);
            transition: width 0.3s ease;
        }
        .back-btn:hover { color: var(--cyan-bright); text-shadow: 0 0 10px rgba(14,165,196,0.5); }
        .back-btn:hover::after { width: 100%; }
        .user-badge { font-size: 0.9rem; color: var(--cyan-bright); font-weight: 600; text-shadow: 0 0 10px rgba(14,165,196,0.4); }
        .logout-btn {
            background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4);
            color: #ef4444; padding: 6px 14px; border-radius: 8px;
            cursor: pointer; font-size: 0.85rem; transition: all 0.3s;
        }
        .logout-btn:hover { background: rgba(239,68,68,0.25); box-shadow: 0 0 14px rgba(239,68,68,0.3); }

        .container { max-width: 1400px; margin: 0 auto; padding: 30px 16px; position: relative; z-index: 10; }

        /* ============ 学习平台首页（整合自 xx.html） ============ */
        .platform-hero { padding: 56px 0 24px; text-align: center; position: relative; z-index: 10; }
        .platform-title {
            font-size: 2.4rem; font-weight: 800; letter-spacing: 2px;
            background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text; color: transparent;
            text-shadow: var(--glow-cyan);
        }
        .platform-sub { color: var(--text-dim); margin: 14px 0 32px; font-size: 1.05rem; }
        .grade-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 18px; max-width: 880px; margin: 0 auto;
        }
        .grade-card {
            background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px;
            padding: 22px 14px; cursor: pointer; transition: all 0.25s ease;
            backdrop-filter: blur(6px); text-align: center;
        }
        .grade-card:hover { border-color: var(--border-bright); transform: translateY(-4px); box-shadow: var(--glow-cyan); }
        .grade-card .lv { font-size: 1.6rem; font-weight: 800; color: var(--cyan-bright); }
        .grade-card .nm { color: var(--text); margin-top: 6px; font-size: 0.95rem; }
        .grade-card .meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
        .grade-card.coming-soon { cursor: default; opacity: 0.45; filter: grayscale(0.6); }
        .grade-card.coming-soon:hover { border-color: var(--border); transform: none; box-shadow: none; }
        .grade-card.coming-soon .lv { color: var(--text-dim); }
        .grade-card .soon-badge { display: none; font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; background: rgba(255,255,255,0.04); padding: 2px 8px; border-radius: 4px; }
        .grade-card.coming-soon .soon-badge { display: inline-block; }
        .platform-hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 28px; }

        /* ============ 独立视图页（弹窗形式弹出） ============ */
        .screen-view { display: none; }
        .screen-view.show {
            display: flex;
            position: fixed;
            inset: 0;
            z-index: 2000;
            align-items: flex-start;
            justify-content: center;
            padding: 48px 16px 48px;
            background: rgba(15, 23, 42, 0.55);
            backdrop-filter: blur(4px);
            overflow-y: auto;
            animation: modalFadeIn 0.22s var(--ease);
        }
        .screen-view.show > .db-wrapper,
        .screen-view.show > .container {
            position: relative;
            width: 100%;
            max-width: 1040px;
            background: var(--light-card);
            border: 1px solid var(--border);
            border-radius: 18px;
            box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
            animation: modalSlideUp 0.28s var(--ease);
        }
        .modal-close-btn {
            position: absolute;
            top: 14px;
            right: 16px;
            z-index: 5;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border);
            border-radius: 50%;
            background: var(--light-card);
            color: var(--text-muted);
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .modal-close-btn:hover { color: var(--cyan); border-color: rgba(14,165,196,0.4); background: rgba(14,165,196,0.08); }
        @keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes modalSlideUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .stats-entry-hint { text-align: center; color: var(--text-dim); font-size: 0.9rem; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; margin: 16px 0; }
        .stats-entry-hint { text-align: center; color: var(--text-dim); font-size: 0.9rem; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; margin: 16px 0; }

        /* ============ 题目分类总览 ============ */
        .catalog-section { padding: 24px 0 56px; position: relative; z-index: 10; }
        .catalog-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
        .catalog-section h2 { font-size: var(--fs-h2); color: var(--text); margin: 0; }
        .catalog-section h2 i { color: var(--cyan); margin-right: 6px; }
        .catalog-section .catalog-sub { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
        .catalog-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-panel); }
        .catalog-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
        .catalog-table thead th { text-align: left; padding: 14px 18px; background: rgba(14,165,196,0.06); color: var(--text-dim); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); white-space: nowrap; text-transform: uppercase; }
        .catalog-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
        .catalog-table tbody tr:last-child { border-bottom: none; }
        .catalog-table tbody tr:hover { background: rgba(14,165,196,0.05); }
        .catalog-table td { padding: 12px 18px; color: var(--text); vertical-align: middle; }
        .exam-tag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
        .lv-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; background: rgba(14,165,196,0.12); color: var(--cyan); }

        /* 考试时间标签配色 */
        .exam-2026-3 { background: #dbeafe; color: #1e3a8a; }
        .exam-2026-6 { background: #e0f2fe; color: #075985; }
        .exam-2025-12 { background: #fef3c7; color: #92400e; }

        /* ============ 筛选区 ============ */
        .filter-bar { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
        .filter-bar select {
            padding: 11px 16px; background: var(--bg-panel);
            border: 1px solid var(--border); border-radius: 10px;
            color: var(--text); font-size: 0.95rem; cursor: pointer;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .filter-bar select:focus, .filter-bar select:hover {
            outline: none; border-color: var(--cyan);
            box-shadow: 0 0 14px rgba(14,165,196,0.2);
        }
        .filter-bar select option { background: var(--bg-panel-solid); color: var(--text); }

        /* ============ 题目卡片（HUD 风格） ============ */
        .question-card {
            /* 纯色渐变 + 边框，避免 backdrop-filter 性能问题 */
            background: linear-gradient(160deg, rgba(240,248,255,0.92), rgba(235,242,250,0.92));
            border: 1px solid var(--border);
            border-radius: 14px; overflow: hidden;
            padding: 36px; margin-bottom: 20px;
            position: relative;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        /* hover 扫描光线 */
        .question-card::after {
            content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
            background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
            box-shadow: 0 0 14px var(--cyan);
            opacity: 0; pointer-events: none;
            will-change: transform;
        }
        .question-card:hover::after { opacity: 0.9; animation: cardScan 1.4s ease; }
        @keyframes cardScan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(120vh); opacity: 0; } }
        /* HUD 四角装饰 */
        .question-card::before {
            content: ''; position: absolute; inset: 0; border-radius: 14px;
            pointer-events: none; color: var(--cyan);
            background-image:
                linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
                linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
                linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
                linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
            background-size: 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px, 2px 12px, 12px 2px;
            background-position:
                8px 8px, 8px 8px, calc(100% - 10px) 8px, calc(100% - 20px) 8px,
                8px calc(100% - 10px), 8px calc(100% - 20px), calc(100% - 10px) calc(100% - 10px), calc(100% - 20px) calc(100% - 10px);
            background-repeat: no-repeat;
            opacity: 0.45; transition: opacity 0.3s;
        }
        .question-card:hover { border-color: var(--border-bright); box-shadow: 0 12px 40px rgba(14,165,196,0.15), 0 0 0 1px rgba(14,165,196,0.25) inset; }
        .question-card:hover::before { opacity: 0.85; }

        .question-meta { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
        .tag { padding: 5px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
        .tag-level { background: rgba(43,125,224,0.15); color: var(--blue); border: 1px solid rgba(43,125,224,0.35); }
        .tag-subject { background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.35); }
        .tag-type { background: rgba(14,165,196,0.15); color: var(--cyan-bright); border: 1px solid rgba(14,165,196,0.35); text-shadow: 0 0 8px rgba(14,165,196,0.3); }

        .question-body { font-size: 1.15rem; line-height: 2.0; margin-bottom: 22px; color: var(--text); }
        .question-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
        .question-number {
            font-size: 1.3rem; font-weight: 700;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .question-short-title {
            font-size: 0.8rem; color: var(--text-muted);
            background: rgba(14,165,196,0.06); border: 1px solid rgba(14,165,196,0.15);
            padding: 2px 10px; border-radius: 6px;
            max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }

        /* ============ 选项 ============ */
        .options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
        .option {
            display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
            background: linear-gradient(160deg, rgba(240,248,255,0.85), rgba(235,242,250,0.85));
            border: 1px solid var(--border); border-radius: 10px;
            cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s, background 0.3s;
            font-size: 1rem; line-height: 1.6; position: relative; overflow: hidden;
        }
        .option::after {
            content: ''; position: absolute; top: 0; left: -120%;
            width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(103,232,249,0.18), transparent);
            transform: skewX(-20deg); transition: left 0.6s ease;
        }
        .option:hover {
            border-color: var(--border-bright);
            box-shadow: 0 0 18px rgba(14,165,196,0.15);
            transform: translateY(-2px);
        }
        .option:hover::after { left: 130%; }
        .option.selected {
            background: linear-gradient(160deg, rgba(14,165,196,0.18), rgba(43,125,224,0.10));
            border-color: var(--cyan);
            box-shadow: 0 0 22px rgba(14,165,196,0.35), inset 0 0 0 1px rgba(14,165,196,0.3);
        }
        .option.correct {
            background: linear-gradient(160deg, rgba(34,197,94,0.18), rgba(22,163,74,0.10));
            border-color: #22c55e;
            box-shadow: 0 0 22px rgba(34,197,94,0.3);
        }
        .option.wrong {
            background: linear-gradient(160deg, rgba(239,68,68,0.18), rgba(220,38,38,0.10));
            border-color: #ef4444;
            box-shadow: 0 0 22px rgba(239,68,68,0.3);
        }
        .option-letter {
            flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
            background: rgba(14,165,196,0.15); border: 1px solid rgba(14,165,196,0.45);
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.9rem; color: var(--cyan-bright);
            transition: all 0.3s;
        }
        .option.selected .option-letter {
            background: linear-gradient(135deg, var(--cyan), var(--blue));
            color: #02060f; border-color: var(--cyan);
            box-shadow: 0 0 12px rgba(14,165,196,0.5);
        }
        .option.correct .option-letter {
            background: rgba(34,197,94,0.6); border-color: #22c55e; color: #02060f;
            box-shadow: 0 0 12px rgba(34,197,94,0.5);
        }
        .option.wrong .option-letter {
            background: rgba(239,68,68,0.6); border-color: #ef4444; color: #02060f;
            box-shadow: 0 0 12px rgba(239,68,68,0.5);
        }

        /* ============ 提交/评判按钮（扫光波） ============ */
        .submit-btn {
            padding: 12px 36px; margin: 0;
            background: linear-gradient(135deg, rgba(14,165,196,0.25), rgba(43,125,224,0.15));
            border: 1px solid var(--border-bright); border-radius: 10px;
            color: var(--cyan-bright); font-size: 1rem; font-weight: 600;
            cursor: pointer; transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
            position: relative; overflow: hidden; letter-spacing: 1px;
        }
        .submit-btn::before {
            content: ''; position: absolute; top: 0; left: -120%;
            width: 60%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(103,232,249,0.4), transparent);
            transform: skewX(-20deg); transition: left 0.6s ease;
        }
        .submit-btn:hover {
            background: linear-gradient(135deg, rgba(14,165,196,0.4), rgba(43,125,224,0.28));
            box-shadow: 0 0 28px rgba(14,165,196,0.45);
            transform: translateY(-2px);
        }
        .submit-btn:hover::before { left: 130%; }
        .submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
        .submit-btn:disabled::before { display: none; }

        /* ============ 题目导航 + 提交按钮 行 ============ */
        .nav-submit-row {
            display: flex; align-items: center; justify-content: center; gap: 16px;
            margin-top: 24px; padding-top: 16px;
            border-top: 1px solid var(--border);
        }
        .nav-btn {
            padding: 10px 18px; margin: 0;
            background: rgba(255,255,255,0.7); border: 1px solid rgba(14,165,196,0.3);
            border-radius: 10px; color: #0e7490; cursor: pointer;
            font-size: 0.9rem; transition: all 0.3s;
            display: inline-flex; align-items: center; gap: 4px;
        }
        .nav-btn:hover { background: rgba(14,165,196,0.15); border-color: rgba(14,165,196,0.6); box-shadow: 0 0 16px rgba(14,165,196,0.2); }
        .nav-btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
        .nav-progress-hint {
            color: rgba(103,232,249,0.6); font-size: 0.9rem; font-weight: 500;
            min-width: 80px; text-align: center;
        }

        /* ============ 解析 ============ */
        .explanation {
            margin-top: 20px; padding: 18px;
            background: linear-gradient(160deg, rgba(240,248,255,0.85), rgba(235,242,250,0.85));
            border: 1px solid var(--border); border-left: 3px solid var(--cyan);
            border-radius: 10px; display: none;
            box-shadow: 0 0 18px rgba(14,165,196,0.1);
        }
        .explanation.show { display: block; animation: fadeIn 0.3s; }
        .explanation h4 {
            color: var(--cyan-bright); margin-bottom: 10px; font-size: 1rem;
            text-shadow: 0 0 10px rgba(14,165,196,0.4);
        }
        .explanation-content { color: var(--text-dim); line-height: 1.8; font-size: 0.95rem; }
        .option-text code {
            background: rgba(14,165,196,0.12);
            color: #0e7490;
            padding: 1px 5px;
            border-radius: 3px;
            font-family: 'Consolas', monospace;
            font-size: 0.92em;
        }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

        /* 加载提示 */
        .loading { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 1.1rem; }
        .no-questions { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 1.1rem; display: none; }

        /* ============ 统一加载组件 ============ */
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes loaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
        @keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

        /* 页面级加载遮罩 */
        .page-loader {
            position: fixed; inset: 0; z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            background: radial-gradient(1200px 600px at 80% -10%, rgba(14,165,196,0.08), transparent 60%),
                        radial-gradient(900px 500px at -10% 30%, rgba(43,125,224,0.06), transparent 55%),
                        var(--bg-deep);
            transition: opacity .4s ease, visibility .4s ease;
        }
        .page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
        .page-loader-inner { text-align: center; }
        .page-loader-logo { font-size: 3rem; animation: floatY 1.8s ease-in-out infinite; }
        .page-loader-track { width: 220px; height: 6px; border-radius: 99px; background: rgba(14,165,196,0.15); overflow: hidden; margin: 20px auto 14px; }
        .page-loader-fill { height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--blue)); animation: loaderSlide 1.2s ease-in-out infinite; }
        .page-loader-text { color: var(--text-muted); font-size: .9rem; letter-spacing: .5px; }

        /* 按钮 loading：伪元素 spinner，不引起文字跳动 */
        .btn-loading { position: relative; pointer-events: none; opacity: .85; cursor: wait; }
        .btn-loading::before {
            content: ''; display: inline-block; width: 1em; height: 1em; margin-right: .5em;
            border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
            animation: spin .7s linear infinite; vertical-align: -.15em;
        }

        /* 题目加载中（居中大 spinner） */
        .q-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--text-muted); font-size: .95rem; }
        .q-loading .spinner-lg { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(14,165,196,0.18); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
        .q-loading .retry-btn { margin-top: 6px; padding: 8px 20px; border: 1px solid var(--border-bright); border-radius: 10px; background: var(--bg-panel); color: var(--cyan); font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; }
        .q-loading .retry-btn:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(14,165,196,0.2); }

        /* 判题进度条（不定式） */
        .judge-progress { margin: 14px 0; height: 5px; border-radius: 99px; background: rgba(14,165,196,0.12); overflow: hidden; }
        .judge-progress-fill { height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--blue)); animation: loaderSlide 1.1s ease-in-out infinite; }

        /* ============ 进度条 ============ */
        .progress-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
        .progress-text { font-size: 0.9rem; color: var(--text-dim); }
        .progress-track {
            flex: 1; height: 6px; background: rgba(14,165,196,0.08);
            border-radius: 3px; overflow: hidden;
            box-shadow: inset 0 0 4px rgba(14,165,196,0.1);
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--cyan), var(--blue));
            border-radius: 3px; transition: width 0.3s;
            box-shadow: 0 0 12px rgba(14,165,196,0.6);
            will-change: width;
        }
        .reset-btn {
            display: none; padding: 6px 14px; font-size: 0.8rem;
            background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35);
            border-radius: 8px; color: #ef4444; cursor: pointer;
            transition: all 0.3s; white-space: nowrap;
        }
        .reset-btn:hover { background: rgba(239,68,68,0.22); border-color: rgba(239,68,68,0.6); box-shadow: 0 0 12px rgba(239,68,68,0.3); }
        .reset-btn.show { display: inline-block; }

        /* ============ 内容布局 ============ */
        .content-wrapper {
            display: flex; gap: 32px; align-items: stretch;
        }
        .content-wrapper #questionList {
            flex: 1; min-width: 0;
            display: flex; flex-direction: column;
        }
        .content-wrapper #questionList .question-card {
            flex: 1; margin-bottom: 0;
        }
        .content-wrapper #noQuestions {
            flex: 1; min-width: 0;
        }
        .content-wrapper .score-card,
        .content-wrapper .answer-sheet {
            width: 260px; flex-shrink: 0; position: sticky; top: 80px;
            align-self: flex-start;
        }
        @media (max-width: 900px) {
            .content-wrapper { flex-direction: column; gap: 24px; }
            .content-wrapper .score-card,
            .content-wrapper .answer-sheet { width: 100%; position: static; }
        }

        /* ============ 答题卡（替代旧得分卡片） ============ */
        .answer-sheet {
            background: linear-gradient(160deg, rgba(240,248,255,0.92), rgba(235,242,250,0.92));
            border: 1px solid var(--border); border-radius: 14px;
            padding: 16px; animation: fadeIn 0.3s;
            box-shadow: 0 0 18px rgba(14,165,196,0.08);
        }
        .sheet-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 14px; padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        .sheet-title { font-size: 0.95rem; font-weight: 600; color: var(--cyan-bright); }
        .sheet-progress { font-size: 0.85rem; color: var(--text-muted); }
        .sheet-section { margin-bottom: 12px; }
        .sheet-section:last-of-type { margin-bottom: 0; }
        .sheet-section-label {
            font-size: 0.75rem; font-weight: 600; color: rgba(103,232,249,0.8);
            margin-bottom: 6px; padding-left: 2px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .sheet-section-label span { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
        .sheet-grid {
            display: grid; grid-template-columns: repeat(5, 1fr);
            gap: 6px;
        }
        .sheet-cell {
            aspect-ratio: 1; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75rem; font-weight: 600; cursor: pointer;
            transition: all 0.2s; position: relative;
        }
        .sheet-cell.correct { background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.5); color: #16a34a; }
        .sheet-cell.correct:hover { background: rgba(34,197,94,0.35); transform: scale(1.08); }
        .sheet-cell.wrong { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.5); color: #f87171; }
        .sheet-cell.wrong:hover { background: rgba(239,68,68,0.35); transform: scale(1.08); }
        .sheet-cell.answered { background: rgba(43,125,224,0.12); border: 1px solid rgba(43,125,224,0.3); color: #0e7490; }
        .sheet-cell.unanswered { background: rgba(148,163,184,0.08); border: 1px solid rgba(148,163,184,0.2); color: var(--text-muted); }
        .sheet-cell.unanswered:hover { background: rgba(148,163,184,0.18); transform: scale(1.08); }
        .sheet-cell.active {
            border: 2px solid var(--cyan-bright); box-shadow: 0 0 14px rgba(14,165,196,0.5);
            transform: scale(1.05);
        }
        .sheet-summary {
            padding-top: 12px; border-top: 1px solid var(--border);
        }
        .sheet-score-row {
            display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px;
        }
        .sheet-score-label { font-size: 0.8rem; color: var(--text-muted); }
        .sheet-score-value {
            font-size: 1.6rem; font-weight: 700;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .sheet-score-total { font-size: 0.85rem; color: var(--text-muted); }
        .sheet-bar {
            height: 6px; background: rgba(14,165,196,0.08); border-radius: 3px;
            overflow: hidden; margin-bottom: 10px;
        }
        .sheet-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
            border-radius: 3px; transition: width 0.5s ease-out;
        }
        .sheet-legend {
            display: flex; gap: 14px; flex-wrap: wrap;
        }
        .legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-muted); }
        .legend-dot { width: 10px; height: 10px; border-radius: 3px; }
        .legend-correct { background: rgba(34,197,94,0.6); border: 1px solid rgba(34,197,94,0.8); }
        .legend-wrong { background: rgba(239,68,68,0.6); border: 1px solid rgba(239,68,68,0.8); }
        .legend-unanswered { background: rgba(148,163,184,0.2); border: 1px solid rgba(148,163,184,0.3); }

        /* 旧得分卡片样式保留兼容（统计页可能用到） */
        .score-card {
            background: linear-gradient(160deg, rgba(240,248,255,0.92), rgba(235,242,250,0.92));
            border: 1px solid var(--border); border-radius: 14px;
            padding: 20px; margin-bottom: 30px; animation: fadeIn 0.3s;
            position: relative; overflow: hidden;
            box-shadow: 0 0 18px rgba(14,165,196,0.08);
        }
        .score-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
            background: linear-gradient(180deg, var(--cyan-bright), var(--blue));
            box-shadow: 0 0 8px var(--cyan);
        }
        .score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .score-title { font-size: 1rem; font-weight: 600; color: var(--cyan-bright); text-shadow: 0 0 10px rgba(14,165,196,0.4); }
        .score-detail { font-size: 0.85rem; color: var(--text-muted); }
        .score-body { }
        .score-main { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
        .score-value {
            font-size: 2.5rem; font-weight: 700;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 24px rgba(14,165,196,0.4);
        }
        .score-total { font-size: 1.1rem; color: var(--text-muted); }
        .score-bar {
            height: 10px; background: rgba(14,165,196,0.08); border-radius: 5px;
            overflow: hidden; margin-bottom: 16px;
            box-shadow: inset 0 0 4px rgba(14,165,196,0.1);
        }
        .score-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
            border-radius: 5px; transition: width 0.5s ease-out;
            box-shadow: 0 0 14px rgba(14,165,196,0.6);
            will-change: width;
        }
        .score-breakdown { display: flex; gap: 16px; flex-wrap: wrap; }
        .breakdown-item {
            flex: 1; min-width: 140px; padding: 10px 14px;
            background: rgba(240,248,255,0.5); border: 1px solid var(--border);
            border-radius: 10px; display: flex; justify-content: space-between; align-items: center;
        }
        .breakdown-label { font-size: 0.8rem; color: var(--text-muted); }
        .breakdown-value { font-size: 0.95rem; font-weight: 700; color: var(--cyan-bright); }

        footer { text-align: center; padding: 36px 20px; color: var(--text-muted); font-size: 0.9rem; margin-top: 50px; position: relative; z-index: 10; }
        footer::before { content: ''; display: block; width: 120px; height: 1px; margin: 0 auto 20px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 8px var(--cyan); }
        footer .beian-links { margin-top: 10px; font-size: 0.82rem; line-height: 1.8; }
        footer .beian-links a { color: var(--text-muted); text-decoration: none; margin: 0 6px; transition: color .2s; }
        footer .beian-links a:hover { color: var(--cyan-bright); }

        /* ====== OJ 编程题上下布局（题目信息在上，代码编辑器在下） ====== */
        .coding-split-layout {
            display: flex; flex-direction: column; gap: 20px; margin: 16px 0;
        }
        .coding-left-pane {
            flex: none; min-width: 0;
        }
        .coding-right-pane {
            flex: none; min-width: 0; display: flex; flex-direction: column;
        }
        .coding-right-pane .code-editor-wrapper { margin: 0; flex: 1; display: flex; flex-direction: column; }
        .coding-right-pane .vscode-editor { flex: 1; min-height: 380px; }
        .coding-right-pane .code-editor-vscode { flex: 1; min-height: 380px; resize: vertical; }
        .coding-right-pane .judge-btn { margin-top: 12px; }
        .coding-right-pane .judge-results { margin-top: 12px; }
        .coding-section-title {
            color: #0e7490; font-size: 0.95rem; font-weight: 600;
            margin-bottom: 8px; margin-top: 16px; display: flex; align-items: center; gap: 6px;
        }
        .coding-section-title:first-child { margin-top: 0; }
        .coding-section-body { color: #3c4f6b; line-height: 1.7; font-size: 0.9rem; }
        /* 参考程序按钮 */
        .coding-left-pane .ref-program-toggle {
            margin-top: 16px;
        }
        .coding-left-pane .ref-program-toggle button {
            padding: 8px 20px; background: rgba(34,197,94,0.15);
            border: 1px solid rgba(34,197,94,0.4); border-radius: 8px;
            color: #16a34a; cursor: pointer; font-size: 0.9rem;
            transition: background 0.3s, box-shadow 0.3s;
        }
        .coding-left-pane .ref-program-toggle button:hover {
            background: rgba(34,197,94,0.25); box-shadow: 0 0 12px rgba(34,197,94,0.2);
        }
        @media (max-width: 900px) {
            .coding-right-pane .vscode-editor { min-height: 280px; flex-direction: column; }
            .vscode-linenums { display: none; }
            .code-editor-vscode { padding: 12px; font-size: 0.82rem; }
        }

        /* ====== OJ 代码编辑器（VSCode 风格） ====== */
        .code-editor-wrapper { margin: 16px 0; }
        .code-editor-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 0; background: #252526; border-radius: 10px 10px 0 0;
            padding: 8px 16px; border: 1px solid #3e3e42; border-bottom: none;
        }
        .code-lang-badge {
            padding: 4px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
            background: rgba(86,156,214,0.15); color: #569cd6;
            border: 1px solid rgba(86,156,214,0.3);
        }
        .code-editor-header-hint {
            font-size: 0.75rem; color: #858585; display: flex; align-items: center; gap: 6px;
        }
        /* VSCode 编辑器容器（行号 + 代码区） */
        .vscode-editor {
            display: flex; position: relative; font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
            font-size: 0.88rem; line-height: 1.65;
            border: 1px solid #3e3e42; border-top: none; border-radius: 0 0 10px 10px;
            background: #1e1e1e; overflow: hidden; min-height: 380px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .vscode-editor:focus-within {
            border-color: #007acc; border-top-color: #3e3e42;
            box-shadow: 0 0 0 1px rgba(0,122,204,0.3);
        }
        /* 行号区域 —— 用纯文本渲染，和 textarea 的行高完全一致 */
        .vscode-linenums {
            flex-shrink: 0; width: 54px; min-width: 54px; background: #1e1e1e;
            border-right: 1px solid #2d2d2d; padding: 14px 12px 14px 0;
            overflow: hidden; user-select: none; text-align: right; color: #858585;
            font-family: 'Consolas', 'Courier New', 'Fira Code', 'Source Code Pro', monospace;
            font-size: 0.82rem; line-height: 1.65;
            white-space: pre;
            box-sizing: border-box;
        }
        /* 代码文本区 */
        .code-editor-vscode {
            flex: 1; padding: 14px 18px; background: #1e1e1e; border: none;
            color: #d4d4d4;
            font-family: 'Consolas', 'Courier New', 'Fira Code', 'Source Code Pro', monospace;
            font-size: 0.82rem; line-height: 1.65;
            resize: vertical; outline: none; tab-size: 4;
            white-space: pre; overflow: auto; min-height: 380px;
            caret-color: #aeafad;
            box-sizing: border-box;
        }
        .code-editor-vscode::selection { background: rgba(38,79,120,0.6); color: #ffffff; }
        .code-editor-vscode::placeholder { color: #5a5a5a; }
        .code-editor-vscode::-webkit-scrollbar { width: 10px; height: 10px; }
        .code-editor-vscode::-webkit-scrollbar-track { background: #1e1e1e; }
        .code-editor-vscode::-webkit-scrollbar-thumb { background: #424242; border-radius: 5px; }
        .code-editor-vscode::-webkit-scrollbar-thumb:hover { background: #4f4f4f; }
        .code-editor-vscode::-webkit-scrollbar-corner { background: #1e1e1e; }
        .code-editor-vscode:disabled { opacity: 0.7; cursor: not-allowed; }
        /* 行号区域滚动条隐藏 */
        .vscode-linenums::-webkit-scrollbar { display: none; }

        /* 旧版 code-editor 兼容（已弃用但保留以防引用） */
        .code-editor { display: none; }

        .judge-btn {
            display: block; width: 100%; padding: 14px; margin-top: 16px;
            background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(22,163,74,0.2));
            border: 1px solid rgba(34,197,94,0.55); border-radius: 10px;
            color: #16a34a; font-size: 1rem; font-weight: 600; cursor: pointer;
            transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
            position: relative; overflow: hidden; letter-spacing: 1px;
        }
        .judge-btn::before {
            content: ''; position: absolute; top: 0; left: -120%;
            width: 60%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(74,222,128,0.4), transparent);
            transform: skewX(-20deg); transition: left 0.6s ease;
        }
        .judge-btn:hover {
            background: linear-gradient(135deg, rgba(34,197,94,0.45), rgba(22,163,74,0.3));
            box-shadow: 0 0 28px rgba(34,197,94,0.4); transform: translateY(-2px);
        }
        .judge-btn:hover::before { left: 130%; }
        .judge-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
        .judge-btn:disabled::before { display: none; }
        .judge-btn.running {
            background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(217,119,6,0.2));
            border-color: rgba(245,158,11,0.55); color: #fbbf24;
        }
        .judge-btn.running::before { background: linear-gradient(90deg, transparent, rgba(251,191,36,0.4), transparent); }

        /* 评判结果 */
        .judge-results { margin-top: 20px; display: none; }
        .judge-results.show { display: block; }
        .judge-summary {
            text-align: center; padding: 14px; margin-bottom: 12px; border-radius: 10px;
            font-weight: 700; font-size: 1rem;
        }
        .judge-summary.all-pass {
            background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.4);
            color: #16a34a; box-shadow: 0 0 18px rgba(34,197,94,0.2);
        }
        .judge-summary.partial {
            background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.4);
            color: #f87171; box-shadow: 0 0 18px rgba(239,68,68,0.2);
        }
        .judge-summary.compile-err {
            background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.4);
            color: #fbbf24; box-shadow: 0 0 18px rgba(245,158,11,0.2);
        }
        .judge-result-item {
            padding: 12px 16px; margin-bottom: 8px; border-radius: 10px;
            border: 1px solid; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
        }
        .judge-result-item.pass { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.35); }
        .judge-result-item.fail { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.35); }
        .judge-result-icon {
            width: 28px; height: 28px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
        }
        .judge-result-item.pass .judge-result-icon { background: rgba(34,197,94,0.2); color: #16a34a; }
        .judge-result-item.fail .judge-result-icon { background: rgba(239,68,68,0.2); color: #f87171; }
        .judge-result-text { flex: 1; min-width: 120px; font-size: 0.9rem; }
        .judge-result-item.pass .judge-result-text { color: #16a34a; }
        .judge-result-item.fail .judge-result-text { color: #f87171; }
        .judge-detail-toggle {
            color: var(--cyan-bright); cursor: pointer; font-size: 0.82rem; text-decoration: none;
            padding: 4px 12px; background: rgba(14,165,196,0.1); border-radius: 6px;
            border: 1px solid rgba(14,165,196,0.25); transition: all 0.3s;
        }
        .judge-detail-toggle:hover { background: rgba(14,165,196,0.22); border-color: var(--border-bright); box-shadow: 0 0 10px rgba(14,165,196,0.25); }
        .judge-detail {
            display: none; margin-top: 8px; padding: 12px;
            background: rgba(5,15,30,0.7); border: 1px solid var(--border);
            border-radius: 8px; font-family: 'Consolas', monospace;
            font-size: 0.82rem; width: 100%;
        }
        .judge-detail.show { display: block; }
        .judge-detail-row { margin-bottom: 6px; }
        .judge-detail-label { color: var(--text-muted); }
        .judge-detail-value { color: var(--text-dim); white-space: pre-wrap; }

        /* OJ 新增：编译错误友好提示 */
        .ce-simplified {
            background: rgba(5,15,30,0.8); border: 1px solid rgba(245,158,11,0.3);
            border-radius: 8px; padding: 12px 14px; font-family: 'Consolas', monospace;
            font-size: 0.82rem; color: #fbbf24; white-space: pre-wrap; margin-top: 10px;
            max-height: 120px; overflow-y: auto;
        }
        .ce-hint {
            background: rgba(14,165,196,0.08); border: 1px solid rgba(14,165,196,0.2);
            border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; color: #0e7490;
            margin-top: 8px; line-height: 1.6;
        }
        .ce-raw-toggle {
            margin-top: 8px; color: var(--cyan-bright); cursor: pointer; font-size: 0.8rem;
            display: inline-block; padding: 4px 12px; border-radius: 6px;
            background: rgba(14,165,196,0.08); border: 1px solid rgba(14,165,196,0.2);
        }
        .ce-raw-toggle:hover { background: rgba(14,165,196,0.15); }
        .ce-raw {
            display: none; margin-top: 8px; padding: 12px;
            background: rgba(5,15,30,0.9); border: 1px solid rgba(245,158,11,0.2);
            border-radius: 8px; font-family: 'Consolas', monospace;
            font-size: 0.78rem; color: #fbbf24; white-space: pre-wrap;
            max-height: 250px; overflow-y: auto;
        }
        .ce-raw.show { display: block; }
        
        /* OJ 新增：运行时间 & diff */
        .judge-time { font-size: 0.75rem; opacity: 0.7; margin-left: 8px; }
        .diff-highlight-wrong {
            background: rgba(239,68,68,0.35); border-radius: 3px; padding: 1px 2px;
            text-decoration: underline wavy rgba(239,68,68,0.5);
        }
        .judge-diff-row { margin-bottom: 4px; }
        .judge-diff-hint {
            font-size: 0.75rem; color: #fbbf24; margin-top: 4px; padding: 2px 8px;
            background: rgba(251,191,36,0.1); border-radius: 4px; display: inline-block;
        }
        .g { color: #16a34a !important; }
        .r { color: #f87171 !important; }
        .y { color: #fbbf24 !important; }

        /* ============ 登录页 ============ */
        .login-overlay {
            display: flex; align-items: center; justify-content: center;
            min-height: 60vh; position: relative; z-index: 10;
        }
        .login-card {
            background: linear-gradient(160deg, rgba(240,248,255,0.95), rgba(235,242,250,0.95));
            border: 1px solid var(--border-bright); border-radius: 18px;
            padding: 40px; width: 100%; max-width: 420px; text-align: center;
            position: relative;
            box-shadow: 0 0 60px rgba(14,165,196,0.25), 0 0 0 1px rgba(14,165,196,0.12) inset;
        }
        .login-card h2 {
            font-size: 1.6rem; margin-bottom: 8px;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 18px rgba(14,165,196,0.3);
        }
        .login-card .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }

        /* 登录引导：页面震动提示 + 右上角登录入口高亮 */
        @keyframes jc-shake {
            0%, 100% { transform: translateX(0); }
            15% { transform: translateX(-10px); }
            30% { transform: translateX(9px); }
            45% { transform: translateX(-7px); }
            60% { transform: translateX(6px); }
            75% { transform: translateX(-4px); }
            90% { transform: translateX(2px); }
        }
        .jc-shake { animation: jc-shake 0.6s ease; }
        @keyframes jc-entry-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); transform: scale(1); }
            50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); transform: scale(1.06); }
        }
        .nav-login-entry.jc-entry-pulse { animation: jc-entry-pulse 0.8s ease 2; }
        .nav-login-entry {
            background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
            color: #fff !important; border-color: transparent !important; font-weight: 700;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
        }
        .nav-login-entry:hover { color: #fff !important; filter: brightness(1.06); }
        @media (prefers-reduced-motion: reduce) {
            .jc-shake, .nav-login-entry.jc-entry-pulse { animation: none; }
        }

        /* ============ 离开确认弹窗 ============ */
        .leave-overlay {
            position: fixed; inset: 0; z-index: 3000;
            background: rgba(10, 20, 30, 0.55);
            display: flex; align-items: center; justify-content: center;
            padding: 20px;
        }
        .leave-card {
            background: linear-gradient(160deg, #fdfdff, #f2f8fd);
            border: 1px solid rgba(14,165,196,0.35);
            border-radius: 18px; padding: 34px 38px;
            max-width: 420px; width: 100%; text-align: center;
            box-shadow: 0 18px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(14,165,196,0.12) inset;
            animation: leavePop 0.25s ease;
        }
        @keyframes leavePop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .leave-card .leave-icon { font-size: 2.4rem; margin-bottom: 8px; }
        .leave-card h2 { font-size: 1.35rem; color: var(--text); margin-bottom: 10px; }
        .leave-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
        .leave-actions { display: flex; gap: 12px; }
        .leave-btn {
            flex: 1; padding: 12px 16px; border-radius: 10px;
            font-size: 0.95rem; font-weight: 600; cursor: pointer;
            border: 1px solid var(--border); transition: all 0.2s;
        }
        .leave-cancel { background: #fff; color: var(--text-dim); }
        .leave-cancel:hover { border-color: var(--cyan); color: var(--cyan); }
        .leave-ok {
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            border-color: transparent; color: #fff;
            box-shadow: 0 6px 18px rgba(14,165,196,0.35);
        }
        .leave-ok:hover { filter: brightness(1.08); }
        @media (max-width: 560px) { .leave-card { padding: 26px 18px; } .leave-actions { flex-direction: column; } }
        .login-input {
            width: 100%; padding: 12px 16px; margin-bottom: 14px;
            background: rgba(240,248,255,0.6); border: 1px solid var(--border);
            border-radius: 10px; color: var(--text); font-size: 1rem;
            outline: none; transition: border-color 0.3s, box-shadow 0.3s;
        }
        .login-input:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 16px rgba(14,165,196,0.25), inset 0 0 12px rgba(14,165,196,0.05);
        }
        .login-input::placeholder { color: var(--text-muted); }
        .login-btn {
            width: 100%; padding: 14px; margin-top: 8px;
            background: linear-gradient(135deg, var(--cyan), var(--blue));
            border: none; border-radius: 10px;
            color: #02060f; font-size: 1rem; font-weight: 700;
            cursor: pointer; transition: box-shadow 0.3s, transform 0.2s;
            position: relative; overflow: hidden; letter-spacing: 1px;
        }
        .login-btn::before {
            content: ''; position: absolute; top: 0; left: -120%;
            width: 60%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: skewX(-20deg); transition: left 0.6s ease;
        }
        .login-btn:hover { box-shadow: 0 0 30px rgba(14,165,196,0.5); transform: translateY(-1px); }
        .login-btn:hover::before { left: 130%; }
        .login-error { color: #ef4444; font-size: 0.85rem; margin-top: 12px; display: none; }
        .login-switch { color: var(--text-muted); font-size: 0.85rem; margin-top: 20px; }
        .login-switch a { color: var(--cyan-bright); cursor: pointer; text-decoration: none; }

        /* ============ 我的统计仪表盘 ============ */
        .db-wrapper { max-width: 960px; margin: 0 auto; padding: 40px 20px 60px; }

        /* ============ 错题本面板 ============ */
        .wb-filters {
            display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
        }
        .wb-filter-tag {
            font-size: 0.75rem; padding: 4px 14px; border-radius: 8px;
            border: 1px solid var(--border); background: transparent;
            color: var(--text-dim); cursor: pointer; transition: all 0.2s;
            white-space: nowrap;
        }
        .wb-filter-tag:hover { border-color: var(--cyan); color: var(--cyan); }
        .wb-filter-tag.active {
            background: var(--cyan); color: #fff; border-color: var(--cyan);
        }
        .wb-list-full {
            display: flex; flex-direction: column; gap: 8px;
        }
        .wb-item {
            background: var(--light-card); border: 1px solid var(--border);
            border-radius: 12px; padding: 14px 16px;
            cursor: pointer; transition: all 0.2s var(--ease);
        }
        .wb-item:hover { border-color: var(--cyan); box-shadow: 0 2px 12px rgba(14,165,196,0.1); }
        .wb-item-top {
            display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
        }
        .wb-item-type {
            font-size: 0.68rem; padding: 2px 8px; border-radius: 4px;
            font-weight: 600; white-space: nowrap;
        }
        .wb-item-type.单选 { background: rgba(14,165,196,0.12); color: var(--cyan-bright); }
        .wb-item-type.判断 { background: rgba(245,158,11,0.12); color: #d97706; }
        .wb-item-type.编程 { background: rgba(139,92,246,0.12); color: #7c3aed; }
        .wb-item-level {
            font-size: 0.68rem; color: var(--text-muted); white-space: nowrap;
        }
        .wb-item-title {
            font-size: 0.85rem; color: var(--text); line-height: 1.4;
            margin-bottom: 8px;
        }
        .wb-item-answers {
            display: flex; gap: 16px; font-size: 0.75rem;
        }
        .wb-item-my { color: #ef4444; }
        .wb-item-my span { font-weight: 700; }
        .wb-item-correct { color: #16a34a; }
        .wb-item-correct span { font-weight: 700; }
        .wb-item-date {
            font-size: 0.7rem; color: var(--text-muted); margin-top: 4px;
        }
        .wb-no-data { text-align: center; color: var(--text-muted); padding: 48px 16px; font-size: 0.9rem; }
        .wb-no-data .emoji { font-size: 2.5rem; display: block; margin-bottom: 12px; }

        /* ============ 错题本：左侧分类目录 + 右侧列表 ============ */
        .wb-layout { display: flex; gap: 20px; align-items: flex-start; }
        .wb-toc {
            width: 200px; flex-shrink: 0; position: sticky; top: 84px;
            align-self: flex-start; max-height: calc(100vh - 110px); overflow-y: auto;
            background: linear-gradient(160deg, rgba(240,248,255,0.92), rgba(235,242,250,0.92));
            border: 1px solid var(--border); border-radius: 14px; padding: 14px;
        }
        .wb-toc-title {
            font-size: 0.85rem; font-weight: 700; color: var(--text-dim);
            margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
        }
        .wb-toc-group { margin-bottom: 14px; }
        .wb-toc-group-label {
            font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
            margin-bottom: 6px; letter-spacing: 0.5px;
        }
        .wb-toc-list { display: flex; flex-direction: column; gap: 4px; }
        .wb-toc-item {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            padding: 7px 10px; border-radius: 8px; cursor: pointer;
            font-size: 0.82rem; color: var(--text-dim); transition: all 0.18s; border: 1px solid transparent;
        }
        .wb-toc-item:hover { background: rgba(14,165,196,0.08); }
        .wb-toc-item.active {
            background: rgba(14,165,196,0.15); border-color: rgba(14,165,196,0.4);
            color: var(--cyan); font-weight: 600;
        }
        .wb-toc-count {
            font-size: 0.7rem; padding: 1px 7px; border-radius: 10px;
            background: rgba(148,163,184,0.18); color: var(--text-muted);
        }
        .wb-toc-item.active .wb-toc-count { background: rgba(14,165,196,0.25); color: var(--cyan); }
        .wb-toc-empty { font-size: 0.75rem; color: var(--text-muted); padding: 4px 10px; }
        .wb-main { flex: 1; min-width: 0; }
        @media (max-width: 820px) {
            .wb-layout { flex-direction: column; }
            .wb-toc { width: 100%; position: static; max-height: none; }
        }
        
        /* ============ LeetCode 式编程题分栏布局 ============ */
        .lc-split-layout {
            display: flex; gap: 0; min-height: 500px;
            border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
            margin: 16px 0;
        }
        .lc-left-pane {
            flex: 1; min-width: 0; padding: 24px;
            background: var(--light-card); overflow-y: auto;
            border-right: 1px solid var(--border);
        }
        .lc-left-pane::-webkit-scrollbar { width: 4px; }
        .lc-left-pane::-webkit-scrollbar-thumb { background: rgba(14,165,196,0.2); border-radius: 2px; }
        .lc-desc { color: var(--text); line-height: 1.8; font-size: 0.9rem; margin-bottom: 16px; }
        .lc-desc p { margin-bottom: 8px; }
        .lc-section-title {
            color: #0e7490; font-size: 0.88rem; font-weight: 700;
            margin: 16px 0 6px; padding-bottom: 4px;
            border-bottom: 1px solid rgba(14,165,196,0.15);
        }
        .lc-section-title:first-child { margin-top: 0; }
        .lc-section-body { color: var(--text-dim); line-height: 1.7; font-size: 0.85rem; }
        .lc-sample-row { display: flex; gap: 8px; margin-bottom: 8px; }
        .lc-sample-box {
            flex: 1; min-width: 0; padding: 10px 12px;
            background: rgba(240,248,255,0.5); border: 1px solid rgba(14,165,196,0.2);
            border-radius: 8px;
        }
        .lc-sample-label { color: var(--text-muted); font-size: 0.7rem; margin-bottom: 4px; font-weight: 600; }
        .lc-sample-box pre { 
            color: var(--text); font-family: 'Consolas','Courier New',monospace;
            font-size: 0.82rem; white-space: pre-wrap; margin: 0; line-height: 1.5; word-break: break-all;
        }
        .lc-limits {
            display: flex; gap: 12px; margin-top: 14px;
        }
        .lc-limits span {
            font-size: 0.78rem; padding: 4px 12px;
            background: rgba(14,165,196,0.08); color: #0e7490;
            border-radius: 6px; border: 1px solid rgba(14,165,196,0.2);
            display: flex; align-items: center; gap: 4px;
        }
        .lc-right-pane {
            width: 50%; min-width: 400px; display: flex; flex-direction: column;
            background: #f8f9fa; border-left: 1px solid #e9ecef;
        }
        .lc-code-tabs {
            display: flex; align-items: center; gap: 12px;
            border-bottom: 1px solid #e9ecef;
            padding: 8px 14px; background: #fff;
        }
        .lc-tab {
            font-size: 0.8rem; padding: 5px 12px; color: #495057;
            border: 1px solid #dee2e6; border-radius: 6px; cursor: default;
            background: #f8f9fa; transition: all 0.2s;
        }
        .lc-tab.active { color: #fff; background: var(--cyan); border-color: var(--cyan); }
        .lc-editor {
            flex: 1; display: flex; border-radius: 0 !important;
            border: none !important; background: #fff;
        }
        /* 浅色编辑器行号 */
        .lc-linenums {
            flex: none; width: 48px; padding: 14px 10px 14px 0;
            text-align: right; overflow: hidden; background: #fff;
            border-right: 1px solid #e9ecef;
            font-family: 'Consolas','Courier New',monospace; font-size: 0.82rem;
            line-height: 1.65; color: #adb5bd; user-select: none;
            white-space: pre; box-sizing: border-box;
        }
        .lc-code-pre {
            flex: 1; min-width: 0; padding: 14px 16px; margin: 0;
            background: #fff; color: #212529;
            font-family: 'Consolas','Courier New',monospace; font-size: 0.85rem;
            line-height: 1.65; white-space: pre; overflow: auto;
            border: none; border-radius: 0;
        }
        /* 浅色代码编辑区 textarea */
        .lc-code-area {
            flex: 1; min-width: 0; padding: 14px 16px; margin: 0;
            background: #fff; color: #212529; border: none;
            font-family: 'Consolas','Courier New',monospace; font-size: 0.85rem;
            line-height: 1.65; white-space: pre; overflow: auto;
            outline: none; resize: none; tab-size: 4;
            caret-color: #0ea5c4;
        }
        .lc-code-area::selection { background: rgba(14,165,196,0.2); }
        .lc-code-area::placeholder { color: #adb5bd; }
        .lc-code-area:disabled { opacity: 0.6; cursor: not-allowed; background: #f8f9fa; }
        /* 底部操作栏 */
        .lc-action-bar {
            display: flex; gap: 10px; padding: 10px 14px;
            background: #fff; border-top: 1px solid #e9ecef;
        }
        .lc-btn-run {
            flex: 1; padding: 10px 20px;
            background: linear-gradient(135deg, #0ea5c4, #0891b2);
            border: none; border-radius: 8px; color: #fff;
            font-size: 0.9rem; font-weight: 600; cursor: pointer;
            transition: all 0.2s; text-align: center;
        }
        .lc-btn-run:hover { background: linear-gradient(135deg, #14b8d6, #0ea5c4); box-shadow: 0 4px 14px rgba(14,165,196,0.35); }
        .lc-btn-run:disabled { opacity: 0.5; cursor: not-allowed; }
        .lc-btn-run.running {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        
        /* ============ 错题回顾卡片 ============ */
        .wb-answer-cmp {
            margin: 16px 0; padding: 16px;
            background: var(--light-card); border: 1px solid var(--border);
            border-radius: 12px;
        }
        .wb-answer-row {
            display: flex; align-items: center; gap: 12px; padding: 6px 0;
        }
        .wb-answer-label {
            font-size: 0.8rem; font-weight: 700; min-width: 72px;
        }
        .wb-answer-label.wrong { color: #ef4444; }
        .wb-answer-label.correct { color: #16a34a; }
        .wb-answer-val {
            font-size: 0.9rem; font-weight: 700; padding: 3px 12px;
            border-radius: 6px;
        }
        .wb-answer-val.wrong { background: rgba(239,68,68,0.1); color: #ef4444; }
        .wb-answer-val.correct { background: rgba(34,197,94,0.1); color: #16a34a; }
        .wb-explanation {
            margin: 16px 0; padding: 16px;
            background: rgba(14,165,196,0.04); border: 1px solid rgba(14,165,196,0.15);
            border-radius: 12px;
        }
        .wb-expl-title { font-size: 0.9rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
        .wb-expl-content { color: var(--text-dim); line-height: 1.7; font-size: 0.88rem; }
        .wb-nav-row {
            display: flex; align-items: center; justify-content: center;
            gap: 20px; margin: 24px 0;
        }
        .wb-nav-hint {
            font-size: 0.9rem; color: var(--text-dim); min-width: 60px; text-align: center;
        }
        
        .lc-right-pane .judge-btn { width: auto; margin: 12px; }
        .lc-right-pane .judge-results { margin: 0 12px; }
        
        @media (max-width: 900px) {
            .lc-split-layout { flex-direction: column; min-height: auto; }
            .lc-left-pane { border-right: none; border-bottom: 1px solid var(--border); max-height: 50vh; }
            .lc-right-pane { width: 100%; min-width: 100%; min-height: 350px; }
        }

        /* 仪表盘卡片 */
        .db-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
        .db-card {
            background: var(--light-card); border: 1px solid var(--border);
            border-radius: 14px; padding: 18px; text-align: center;
            transition: all 0.25s var(--ease); position: relative; overflow: hidden;
        }
        .db-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(14,165,196,0.12); }
        .db-card.cyan { border-top: 3px solid var(--cyan-bright); }
        .db-card.green { border-top: 3px solid #22c55e; }
        .db-card.purple { border-top: 3px solid var(--blue); }
        .db-card.blue { border-top: 3px solid var(--cyan); }
        .db-card-icon { font-size: 1.6rem; margin-bottom: 6px; }
        .db-card-value {
            font-size: 1.8rem; font-weight: 900;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .db-card-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }

        /* 仪表盘图表行 */
        .db-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
        .db-chart-card {
            background: var(--light-card); border: 1px solid var(--border);
            border-radius: 14px; padding: 20px;
        }
        .db-chart-title {
            font-size: 0.9rem; font-weight: 700; color: var(--text);
            margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
        }
        .db-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
        .db-dot.cyan { background: var(--cyan-bright); box-shadow: 0 0 6px rgba(14,165,196,0.4); }
        .db-dot.blue { background: var(--blue); box-shadow: 0 0 6px rgba(43,125,224,0.4); }
        .db-dot.green { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }

        /* 仪表盘柱状图 */
        .db-bars { display: flex; flex-direction: column; gap: 7px; }
        .db-bar-row { display: flex; align-items: center; gap: 10px; }
        .db-bar-label { width: 56px; font-size: 0.8rem; color: var(--text-dim); text-align: right; flex-shrink: 0; white-space: nowrap; }
        .db-bar-track { flex: 1; height: 20px; background: rgba(14,165,196,0.06); border-radius: 6px; overflow: hidden; }
        .db-bar-fill { height: 100%; border-radius: 6px; transition: width 0.7s var(--ease); min-width: 2px; }
        .db-bar-fill.high { background: linear-gradient(90deg, #22c55e, #16a34a); }
        .db-bar-fill.mid { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
        .db-bar-fill.low { background: linear-gradient(90deg, #f59e0b, #ef4444); }
        .db-bar-val { width: 48px; font-size: 0.76rem; font-weight: 700; color: var(--text); text-align: left; flex-shrink: 0; }

        /* 仪表盘圆环 */
        .db-ring-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; flex-direction: column; padding: 10px 0; }
        .db-ring {
            width: 100px; height: 100px; border-radius: 50%; position: relative;
            display: flex; align-items: center; justify-content: center;
            background: conic-gradient(#22c55e var(--rpct, 0deg), rgba(14,165,196,0.08) var(--rpct, 0deg));
            transition: background 0.7s var(--ease);
        }
        .db-ring::before {
            content: ''; width: 74px; height: 74px; border-radius: 50%;
            background: var(--light-card); position: absolute;
        }
        .db-ring-pct { position: relative; z-index: 1; font-size: 1.3rem; font-weight: 900; color: #16a34a; }
        .db-ring-label { font-size: 0.75rem; color: var(--text-dim); }

        /* 仪表盘区域标题 */
        .db-section-title {
            font-size: 1rem; font-weight: 700; color: var(--text);
            margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
        }
        .db-section-title i { color: var(--cyan); }

        /* 仪表盘套题记录 */
        #dbSetList { display: flex; flex-direction: column; gap: 8px; }
        .db-set-card {
            background: var(--light-card); border: 1px solid var(--border);
            border-radius: 12px; padding: 14px 16px; transition: all 0.2s var(--ease);
        }
        .db-set-card:hover { border-color: var(--border-bright); box-shadow: 0 2px 12px rgba(14,165,196,0.08); }
        .db-set-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .db-set-name { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text); min-width: 140px; }
        .db-set-badge {
            font-size: 0.72rem; padding: 3px 10px; border-radius: 6px;
            background: rgba(14,165,196,0.1); color: var(--cyan-bright); white-space: nowrap;
        }
        .db-set-best { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
        .db-set-best.high { color: #16a34a; }
        .db-set-best.mid { color: #f59e0b; }
        .db-set-best.low { color: #ef4444; }
        .db-set-attempts { width: 100%; margin-top: 10px; padding-left: 8px; border-left: 2px solid rgba(14,165,196,0.12); }
        .db-attempt-row {
            display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.8rem;
        }
        .db-attempt-num { color: var(--text-dim); min-width: 52px; font-weight: 600; }
        .db-attempt-score { color: var(--text); min-width: 60px; font-weight: 600; }
        .db-attempt-bar { width: 64px; height: 5px; background: rgba(14,165,196,0.08); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
        .db-attempt-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width 0.5s; }
        .db-attempt-pct { color: var(--text-muted); min-width: 64px; text-align: right; font-size: 0.76rem; }
        .no-data { text-align: center; color: var(--text-muted); padding: 16px; font-size: 0.85rem; }

        /* 保留旧样式兼容（不再显示）—— 后续可清理 */
        .my-stats-card, .my-stats-row, .my-stat-item, .my-stat-num, .my-stat-label,
        .stats-toggle, .stats-detail, .stats-section-title, .set-row, .set-header,
        .set-name, .set-badge, .set-best, .attempt-list, .attempt-row, .attempt-num,
        .attempt-score, .set-score-bar, .set-score-fill, .attempt-pct,
        .level-row, .level-label, .level-bar-track, .level-bar-fill, .level-pct,
        .level-detail { display: none; }

        /* ============ 侧边栏 + 主内容布局 ============ */
        .main-layout {
            display: flex; min-height: calc(100vh - 70px);
            max-width: 100%; margin: 0 auto; padding: 12px 16px; gap: 16px;
        }
        /* ============ 侧边栏折叠 ============ */
        .practice-sidebar.collapsed { width: 52px; min-width: 52px; padding: 16px 8px; overflow: hidden; }
        .practice-sidebar.collapsed .sidebar-title,
        .practice-sidebar.collapsed .sidebar-section,
        .practice-sidebar.collapsed .sidebar-collapse-label { display: none; }
        .sidebar-toggle-btn {
            display: flex; align-items: center; justify-content: center; gap: 7px;
            width: 100%; padding: 10px 12px; margin-bottom: 14px;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            border: none; border-radius: 12px; cursor: pointer;
            color: #fff; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.5px;
            transition: all 0.25s ease; position: relative;
            box-shadow: 0 4px 14px rgba(14,165,196,0.30), inset 0 1px 0 rgba(255,255,255,0.28);
        }
        .sidebar-toggle-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(14,165,196,0.42), inset 0 1px 0 rgba(255,255,255,0.32);
        }
        .sidebar-toggle-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(14,165,196,0.30); }
        .sidebar-toggle-btn .st-icon { font-size: 1.05rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }
        .practice-sidebar.collapsed .sidebar-toggle-btn { padding: 10px; margin-bottom: 12px; }
        .practice-sidebar.collapsed .st-text { display: none; }
        .sidebar-vertical-label {
            display: none; writing-mode: vertical-rl; text-orientation: mixed;
            background: linear-gradient(180deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
            text-align: center; user-select: none; padding-top: 8px;
        }
        .practice-sidebar.collapsed .sidebar-vertical-label { display: block; }
        .practice-sidebar {
            width: 260px; min-width: 260px;
            background: linear-gradient(180deg, rgba(240,248,255,0.95), rgba(235,242,250,0.95));
            border: 1px solid var(--border-bright); border-radius: 18px;
            padding: 28px 20px; position: sticky; top: 90px; align-self: flex-start;
            box-shadow: 0 0 40px rgba(14,165,196,0.15), 0 0 0 1px rgba(14,165,196,0.08) inset;
            height: fit-content; overflow-y: auto; max-height: calc(100vh - 110px);
        }
        .sidebar-title {
            font-size: 1.1rem; margin-bottom: 20px; text-align: center;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .sidebar-section { margin-bottom: 16px; }
        .sidebar-label {
            display: block; font-size: 0.78rem; color: var(--text-muted);
            margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
        }
        .sidebar-select {
            width: 100%; padding: 10px 14px;
            background: rgba(255,255,255,0.7); border: 1px solid var(--border);
            border-radius: 10px; color: var(--text); font-size: 0.95rem;
            cursor: pointer; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
        }
        .sidebar-select:focus, .sidebar-select:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 12px rgba(14,165,196,0.18);
        }
        .sidebar-select option { background: var(--bg-panel-solid); color: var(--text); }
        .sidebar-level-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
        }
        .level-btn {
            padding: 14px 8px 12px; text-align: center;
            background: rgba(255,255,255,0.6); border: 1px solid var(--border);
            border-radius: 12px; color: var(--text); cursor: pointer;
            transition: all 0.25s ease; position: relative; overflow: hidden;
        }
        .level-btn::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0;
            height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blue));
            opacity: 0; transition: opacity 0.25s;
        }
        .level-btn .lv-title {
            font-weight: 700; font-size: 1rem; letter-spacing: 0.5px;
        }
        .level-btn .lv-meta {
            font-size: 0.66rem; color: var(--text-muted); margin-top: 4px;
            transition: color 0.25s;
        }
        .level-btn:hover {
            border-color: var(--cyan);
            box-shadow: 0 0 18px rgba(14,165,196,0.2);
            transform: translateY(-2px);
        }
        .level-btn:hover::before { opacity: 1; }
        .level-btn.active {
            border-color: var(--cyan-bright);
            background: rgba(14,165,196,0.14);
            box-shadow: 0 0 22px rgba(14,165,196,0.32);
            color: var(--cyan-bright);
        }
        .level-btn.active .lv-title { color: var(--cyan-bright); }
        .level-btn.active .lv-meta { color: var(--cyan); }
        .level-btn.active::before { opacity: 1; }
        .level-btn.active::after {
            content: '✓'; position: absolute; top: 6px; right: 8px;
            font-size: 0.8rem; color: var(--cyan-bright); font-weight: 700;
        }
        .level-btn.no-data {
            opacity: 0.35; cursor: not-allowed; pointer-events: none;
        }

        /* 主内容区 */
        .main-content {
            flex: 1; min-width: 0; position: relative;
        }
        .welcome-state {
            display: flex; flex-direction: column; gap: 28px;
            padding: 32px 8px; animation: fadeInUp 0.5s ease;
        }
        .welcome-guide {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; min-height: 18vh; gap: 12px;
            color: var(--text-muted); font-size: 1.05rem; text-align: center;
        }
        .welcome-guide i { font-size: 2.5rem; color: var(--cyan); opacity: 0.5; }

        /* ============ 刷题界面 ============ */
        .practice-screen { display: none; position: relative; z-index: 10; }
        .practice-screen.show { display: block; animation: fadeIn 0.3s; }

        .practice-top-bar {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
        }
        .practice-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        .practice-badge {
            padding: 5px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
            background: rgba(14,165,196,0.12); color: var(--cyan-bright);
            border: 1px solid rgba(14,165,196,0.3);
            text-shadow: 0 0 8px rgba(14,165,196,0.3);
        }

        /* ===== Markdown 渲染样式 ===== */
        /* KaTeX 数学公式 - 保持原样即可，KaTeX 自动生成 inline/block 样式 */
        .katex { font-size: 1.05em !important; }
        .katex-display { margin: 12px 0; overflow-x: auto; overflow-y: hidden; }
        .katex-display > .katex { font-size: 1.2em !important; }

        .md-sample-pair {
            display: flex;
            gap: 12px;
            margin: 12px 0;
            flex-wrap: wrap;
        }
        .md-sample-in, .md-sample-out {
            flex: 1;
            min-width: 200px;
            background: rgba(240, 248, 255, 0.6);
            border: 1px solid rgba(14, 165, 196, 0.2);
            border-radius: 8px;
            padding: 12px;
        }
        .md-sample-in strong { color: #0e7490; font-size: 0.85rem; }
        .md-sample-out strong { color: #16a34a; font-size: 0.85rem; }
        .md-sample-in pre, .md-sample-out pre {
            background: transparent; color: #1f2c44;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.9rem; margin: 6px 0 0 0; padding: 0;
            white-space: pre-wrap;
        }

        /* Markdown 代码块（围栏 ``` 与行内 `） */
        .md-code-block {
            display: flex; align-items: stretch;
            background: rgba(240, 248, 255, 0.8);
            border: 1px solid rgba(14, 165, 196, 0.25);
            border-radius: 8px;
            color: #1f2c44;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.88rem;
            line-height: 1.6;
            margin: 10px 0;
            overflow: hidden;
        }
        .md-code-gutter {
            flex: none; min-width: 40px; padding: 12px 8px 12px 12px;
            text-align: right; user-select: none;
            background: rgba(0,0,0,0.03);
            border-right: 1px solid rgba(14,165,196,0.12);
            border-top: none; border-bottom: none; border-left: none;
            margin: 0; border-radius: 0;
            color: #94a3b8;
            font-family: inherit;
            font-size: inherit;
            line-height: inherit;
            white-space: pre;
        }
        .md-code-body {
            flex: 1; min-width: 0; padding: 12px 16px;
            margin: 0; background: transparent;
            border: none; border-radius: 0;
            color: inherit; font-family: inherit;
            font-size: inherit; line-height: inherit;
            white-space: pre; overflow-x: auto;
        }
        .md-code-body code { background: transparent; color: inherit; padding: 0; font-family: inherit; font-size: inherit; }
        .md-inline-code {
            background: rgba(14, 165, 196, 0.12);
            color: #0e7490;
            padding: 1px 6px;
            border-radius: 4px;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.9em;
        }

        .question-body pre, .explanation-content pre, .coding-content pre {
            background: rgba(240, 248, 255, 0.8) !important;
            border: 1px solid rgba(14, 165, 196, 0.25) !important;
            border-radius: 8px !important;
            padding: 12px 16px !important;
            color: #1f2c44 !important;
            font-family: 'Consolas', 'Courier New', monospace !important;
            font-size: 0.88rem !important;
            overflow-x: auto;
            line-height: 1.6;
            margin: 10px 0 !important;
        }
        .question-body code, .explanation-content code, .coding-content code {
            background: rgba(14, 165, 196, 0.12);
            color: #0e7490;
            padding: 1px 6px;
            border-radius: 4px;
            font-family: 'Consolas', 'Courier New', monospace;
            font-size: 0.9em;
        }
        .question-body pre code, .explanation-content pre code, .coding-content pre code {
            background: transparent !important;
            padding: 0 !important;
            color: #1f2c44 !important;
        }
        .question-body ul, .question-body ol,
        .explanation-content ul, .explanation-content ol,
        .coding-content ul, .coding-content ol {
            margin: 8px 0;
            padding-left: 24px;
            color: #3c4f6b;
            line-height: 1.8;
        }
        .question-body p, .explanation-content p, .coding-content p {
            margin: 6px 0;
            line-height: 1.75;
        }
        .question-body strong, .explanation-content strong, .coding-content strong {
            color: #1f2c44;
        }

        /* 减少动画偏好 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
        }

        /* ========== 移动端适配 ========== */
        @media (max-width: 768px) {
            /* Header */
            html { font-size: 14px; }
            .header-inner { padding: 0 12px; flex-wrap: wrap; gap: 8px; }
            .logo { font-size: 1.1rem; }
            .header-right { flex-wrap: wrap; gap: 4px; }
            .header-right .nav-btn { font-size: 0.75rem; padding: 6px 10px; }
            .header-right .logout-btn { font-size: 0.75rem; padding: 6px 10px; }
            header::after { width: 60%; }
            @keyframes headerScan { 0%,100% { transform: translateX(-50vw); } 50% { transform: translateX(120vw); } }

            /* 主布局：侧边栏置顶 + 内容全宽 */
            .main-layout { flex-direction: column; padding: 8px 10px; gap: 12px; min-height: auto; }
            .main-content { min-width: 0; }
            .practice-sidebar {
                width: 100%; min-width: 0; max-width: 100%;
                position: static; max-height: none; padding: 20px 16px;
                border-radius: 14px; margin-bottom: 4px;
            }
            .sidebar-title { font-size: 0.95rem; margin-bottom: 14px; }
            .sidebar-section { margin-bottom: 10px; }
            .sidebar-level-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
            .level-btn { padding: 10px 4px; border-radius: 8px; }
            .level-btn .lv-title { font-size: 0.85rem; }
            .level-btn .lv-meta { font-size: 0.6rem; }

            /* 刷题界面 */
            .practice-top-bar { flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
            .practice-info { gap: 6px; }
            .practice-badge { padding: 4px 10px; font-size: 0.78rem; }
            .progress-bar { flex-wrap: wrap; gap: 8px; }
            .progress-text { font-size: 0.8rem; }
            .reset-btn { font-size: 0.78rem; padding: 6px 12px; }

            /* 题目列表 + 答题卡 */
            .content-wrapper { flex-direction: column; gap: 16px; }
            .content-wrapper .score-card,
            .content-wrapper .answer-sheet { width: 100%; position: static; }
            .answer-sheet { padding: 12px; border-radius: 12px; }
            .sheet-header { margin-bottom: 10px; }
            .sheet-title { font-size: 0.85rem; }
            .sheet-grid { gap: 4px; }
            .sheet-cell { width: 32px; height: 32px; font-size: 0.75rem; border-radius: 6px; }
            .question-card { padding: 16px 14px; border-radius: 14px; }
            .question-body { font-size: 1rem; line-height: 1.7; }
            .question-number { font-size: 1.8rem; }
            .option { padding: 10px 12px; font-size: 0.92rem; border-radius: 10px; }
            .option-letter { width: 26px; height: 26px; font-size: 0.8rem; }
            .tag-level, .tag-subject, .tag-type { font-size: 0.7rem; padding: 3px 8px; }

            /* 导航按钮 */
            .submit-btn, .judge-btn, .nav-btn { font-size: 0.85rem; padding: 8px 14px; }

            /* coding 区域 */
            .coding-left-pane .ref-program-toggle { flex-direction: column; }
            .coding-right-pane .vscode-editor { min-height: 220px; }
            .coding-right-pane textarea { font-size: 0.82rem; }
            .vscode-linenums { width: 44px; }
            .vscode-linenums .ln { padding-right: 8px; }

            /* 登录卡 */
            .login-card { padding: 28px 18px; max-width: 100%; margin: 0 8px; border-radius: 14px; }
            .login-card h2 { font-size: 1.3rem; }
            .login-input { padding: 10px 14px; font-size: 0.95rem; }
            .login-btn { padding: 12px; font-size: 0.95rem; }

            /* 欢迎态 */
            .welcome-state { padding: 20px 8px; }
            .welcome-guide { min-height: 12vh; }
            .welcome-guide i { font-size: 2rem; }
            .welcome-guide p { font-size: 0.9rem; }

            /* 统计仪表盘 */
            .db-wrapper { padding: 24px 12px 40px; }
            .db-title { font-size: 1.2rem; }
            .db-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
            .db-card-value { font-size: 1.4rem; }
            .db-charts { grid-template-columns: 1fr; }
            .db-ring { width: 85px; height: 85px; }
            .db-ring::before { width: 62px; height: 62px; }
            .db-ring-pct { font-size: 1.1rem; }
            .db-bar-label { width: 44px; font-size: 0.72rem; }
            .db-bar-val { width: 40px; font-size: 0.7rem; }
            .catalog-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
            .catalog-table { min-width: 600px; font-size: 0.82rem; }
            .catalog-table thead th { padding: 10px 12px; font-size: 0.72rem; }
            .catalog-table td { padding: 10px 12px; }

            /* 得分卡片 */
            .score-card { padding: 14px; }
            .score-breakdown { gap: 8px; }
            .breakdown-item { min-width: 100px; padding: 8px 10px; }

            /* 解析区域 */
            .explanation-content { padding: 12px; font-size: 0.88rem; }
            .answer-box { padding: 12px; }

            /* 代码块 */
            .md-code-block { font-size: 0.82rem; }
            .md-code-gutter { padding: 8px 6px 8px 8px; min-width: 32px; }
            .md-code-body { padding: 8px 10px; }
            .question-body pre, .explanation-content pre, .coding-content pre { padding: 10px 12px !important; font-size: 0.82rem !important; }

            /* OJ 评判结果 */
            .judge-detail { padding: 12px; font-size: 0.85rem; }
            .judge-btn { width: 100%; text-align: center; }
            .code-editor-wrapper { margin: 12px 0; }

            /* Toast */
            .toast { max-width: 90vw; font-size: 0.85rem; }

            /* Footer */
            footer { padding: 24px 16px; font-size: 0.8rem; margin-top: 30px; }
        }

        @media (max-width: 480px) {
            html { font-size: 13px; }
            .header-inner { padding: 0 8px; }
            .logo { font-size: 1rem; }
            .header-right .nav-btn { font-size: 0.7rem; padding: 4px 8px; }

            .main-layout { padding: 6px 6px; }
            .practice-sidebar { padding: 14px 12px; border-radius: 12px; }
            .sidebar-level-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
            .level-btn { padding: 8px 4px; }
            .level-btn .lv-title { font-size: 0.78rem; }
            .sidebar-select { padding: 8px 10px; font-size: 0.85rem; }

            .question-card { padding: 12px 10px; }
            .question-body { font-size: 0.9rem; }
            .option { padding: 8px 10px; font-size: 0.85rem; border-radius: 8px; }
            .option-letter { width: 24px; height: 24px; font-size: 0.75rem; }

            .sheet-cell { width: 28px; height: 28px; font-size: 0.7rem; border-radius: 5px; }
            .sheet-title { font-size: 0.8rem; }
            .sheet-header { margin-bottom: 8px; }

            .login-card { padding: 22px 14px; margin: 0 4px; }
            .login-card h2 { font-size: 1.15rem; }
            .login-input { margin-bottom: 10px; }

            .practice-badge { font-size: 0.7rem; padding: 3px 8px; }

            .score-card { padding: 10px; }
            .breakdown-item { min-width: 80px; padding: 6px 8px; }

            .db-wrapper { padding: 16px 8px 30px; }
            .db-cards { grid-template-columns: 1fr; }
            .db-card { padding: 14px; }
            .db-card-value { font-size: 1.3rem; }
            .catalog-table { min-width: 520px; font-size: 0.75rem; }

            .md-code-block { font-size: 0.78rem; }
            .md-code-gutter { padding: 6px 4px 6px 6px; min-width: 28px; }
            .md-code-body { padding: 6px 8px; }
        }

        /* 减弱动效（用户系统偏好） */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            #cursor-glow { display: none !important; }
        }

        /* ============ AI 编程思路提示面板 ============ */
        .ai-hint-backdrop {
            position: fixed; inset: 0; background: rgba(0,0,0,0.3);
            z-index: 9998; opacity: 0; pointer-events: none;
            transition: opacity 0.3s;
        }
        .ai-hint-backdrop.show { opacity: 1; pointer-events: auto; }
        .ai-hint-panel {
            position: fixed; top: 0; right: 0; width: 380px; height: 100vh;
            background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.12);
            z-index: 9999; transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex; flex-direction: column;
        }
        .ai-hint-panel.open { transform: translateX(0); }
        .ai-hint-panel-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 20px; border-bottom: 1px solid #e9ecef;
            background: linear-gradient(135deg, #f0f9ff, #f5f3ff);
            flex-shrink: 0;
        }
        .ai-hint-panel-title {
            font-size: 1rem; font-weight: 700; color: #1e293b;
            display: flex; align-items: center; gap: 8px;
        }
        .ai-hint-panel-title .ai-icon { font-size: 1.3rem; }
        .ai-hint-panel-close {
            width: 32px; height: 32px; border-radius: 50%;
            background: rgba(0,0,0,0.05); border: 1px solid #e2e8f0;
            color: #64748b; font-size: 1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s;
        }
        .ai-hint-panel-close:hover { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.3); }
        .ai-hint-panel-body {
            flex: 1; overflow-y: auto; padding: 20px;
        }
        .ai-hint-empty {
            text-align: center; padding: 40px 20px; color: #94a3b8; font-size: 0.9rem;
        }
        .ai-hint-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; }
        .ai-hint-loading {
            text-align: center; padding: 40px 20px;
        }
        .ai-hint-loading .spinner {
            display: inline-block; width: 36px; height: 36px;
            border: 3px solid #e2e8f0; border-top-color: #7c3aed;
            border-radius: 50%; animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .ai-hint-step {
            margin-bottom: 14px; padding: 12px 16px;
            background: #f8fafc; border-radius: 10px;
            border-left: 3px solid #7c3aed;
            font-size: 0.88rem; line-height: 1.75; color: #334155;
        }
        .ai-hint-step .step-num {
            display: inline-block; background: #7c3aed; color: #fff;
            width: 22px; height: 22px; line-height: 22px; text-align: center;
            border-radius: 50%; font-size: 0.72rem; font-weight: 700;
            margin-right: 8px; flex-shrink: 0;
        }
        .ai-hint-warning {
            margin-top: 8px; padding: 12px 16px;
            background: rgba(245,158,11,0.08); border-radius: 10px;
            border-left: 3px solid #f59e0b;
            font-size: 0.85rem; line-height: 1.75; color: #92400e;
        }
        .ai-hint-btn {
            display: inline-flex; align-items: center; gap: 5px;
            padding: 5px 12px; border-radius: 6px;
            background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(14,165,196,0.1));
            border: 1px solid rgba(124,58,237,0.25);
            color: #7c3aed; font-size: 0.78rem; font-weight: 600;
            cursor: pointer; transition: all 0.2s;
        }
        .ai-hint-btn:hover {
            background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(14,165,196,0.2));
            border-color: rgba(124,58,237,0.4);
        }
        .ai-hint-btn.loading-btn { pointer-events: none; opacity: 0.7; }
        @media (max-width: 768px) {
            .ai-hint-panel { width: 100%; }
        }

        /* ============ 首页四宫格菜单 ============ */
        .home-screen { max-width: 920px; margin: 0 auto; padding: 48px 16px 60px; animation: fadeIn 0.3s; }
        .home-hero { text-align: center; margin-bottom: 40px; }
        .home-title {
            font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: 1px;
            background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
            -webkit-background-clip: text; background-clip: text; color: transparent;
            text-shadow: var(--glow-cyan); margin-bottom: 12px;
        }
        .home-sub { color: var(--text-muted); font-size: 1.05rem; }
        .home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .home-card {
            background: var(--bg-panel); border: 1px solid var(--border); border-radius: 18px;
            padding: 28px 24px; cursor: pointer; transition: all 0.25s var(--ease);
            backdrop-filter: blur(8px); position: relative; overflow: hidden;
            box-shadow: 0 0 18px rgba(14, 165, 196, 0.06);
        }
        .home-card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: var(--glow-cyan); }
        .home-card-icon { font-size: 2.4rem; margin-bottom: 14px; }
        .home-card-name { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
        .home-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
        .home-card-primary {
            background: linear-gradient(160deg, rgba(14, 165, 196, 0.12), rgba(43, 125, 224, 0.12));
            border-color: var(--cyan);
        }
        .home-card-primary .home-card-name { color: var(--cyan); }
        .home-card-primary::after {
            content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
            box-shadow: inset 0 0 0 1px var(--cyan); opacity: 0.5;
        }
        @media (max-width: 640px) {
            .home-grid { grid-template-columns: 1fr; }
            .home-screen { padding: 28px 14px 40px; }
        }

        /* ============ 内嵌视图（iframe 原地切换） ============ */
        .embed-screen { display: flex; flex-direction: column; height: calc(100vh - 64px); animation: fadeIn 0.3s; }
        .embed-bar {
            display: flex; align-items: center; gap: 14px; padding: 12px 18px;
            background: var(--bg-panel); border-bottom: 1px solid var(--border); flex-shrink: 0;
        }
        .embed-back {
            display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
            background: var(--bg-panel-solid, #fff); border: 1px solid var(--border); border-radius: 10px;
            color: var(--text-dim); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
        }
        .embed-back:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(14, 165, 196, 0.2); }
        .embed-title { font-size: 1rem; font-weight: 700; color: var(--text); }
        .embed-frame { flex: 1; width: 100%; border: none; background: var(--bg-deep); }
        .embed-loading {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 16px; flex: 1; color: var(--text-muted); font-size: 0.95rem;
        }
        .embed-spinner {
            width: 42px; height: 42px; border-radius: 50%;
            border: 4px solid rgba(14, 165, 196, 0.2);
            border-top-color: var(--cyan);
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ============ GESP 官方考试风格 - 编程题 ============ */
        .gesp-prog { margin: 4px 0; }
        .gesp-prog-upper {
            display: grid;
            grid-template-columns: 1.25fr 0.85fr;
            gap: 16px;
            align-items: stretch;
        }
        .gesp-prog-left {
            background: var(--light-card, #fff);
            border: 1px solid var(--light-border, var(--border));
            border-radius: 12px;
            padding: 18px 20px;
            max-height: 52vh;
            overflow-y: auto;
        }
        .gesp-prog-right {
            background: var(--light-card, #fff);
            border: 1px solid var(--light-border, var(--border));
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            flex-direction: column;
            max-height: 52vh;
        }
        .gesp-prog-title {
            font-size: 1.15rem; font-weight: 700; color: var(--light-text-strong, #0c1729);
            margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--light-border-strong, var(--border));
        }
        .gesp-desc { font-size: 0.95rem; line-height: 1.75; color: var(--light-text, #1f2c44); }
        .gesp-sec-title {
            margin: 18px 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--cyan, #0ea5c4);
            display: flex; align-items: center; gap: 6px;
        }
        .gesp-sec-title::before { content: ''; width: 4px; height: 14px; background: var(--cyan, #0ea5c4); border-radius: 2px; }
        .gesp-sec-body { font-size: 0.9rem; line-height: 1.7; color: var(--light-text-dim, #43556f); }
        .gesp-sample-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
        .gesp-sample-box {
            background: var(--light-card-2, #f4f7fb); border: 1px solid var(--light-border, var(--border));
            border-radius: 8px; overflow: hidden;
        }
        .gesp-sample-label {
            background: var(--light-card-3, #e9eef5); padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--light-text-dim, #43556f);
        }
        .gesp-sample-box pre {
            margin: 0; padding: 10px 12px; font-size: 0.82rem; line-height: 1.5; color: var(--light-text, #1f2c44);
            white-space: pre-wrap; word-break: break-all; font-family: 'Consolas', 'Courier New', monospace;
        }
        .gesp-sample-box pre.ok { color: #16a34a; }
        .gesp-limits { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 4px; font-size: 0.84rem; color: var(--light-text-muted, #6f8298); }
        .gesp-limits span { display: inline-flex; align-items: center; gap: 5px; }
        .gesp-ai-btn { margin-top: 16px; }

        /* 递交历史 */
        .gesp-hist-head {
            font-size: 0.95rem; font-weight: 700; color: var(--light-text-strong, #0c1729);
            padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--light-border-strong, var(--border));
            display: flex; align-items: center; gap: 6px;
        }
        .gesp-hist-count { font-size: 0.8rem; font-weight: 600; color: var(--light-text-muted, #6f8298); }
        .gesp-hist-body { flex: 1; overflow-y: auto; }
        .gesp-hist-empty { color: var(--light-text-muted, #6f8298); font-size: 0.85rem; padding: 20px 6px; text-align: center; }
        .gesp-hist-row {
            display: grid; grid-template-columns: 28px 1fr 46px 1fr; align-items: center; gap: 8px;
            padding: 9px 6px; border-bottom: 1px solid var(--light-border, var(--border)); font-size: 0.84rem;
        }
        .gesp-hist-idx { color: var(--light-text-muted, #6f8298); text-align: center; font-weight: 600; }
        .gesp-hist-status { font-weight: 600; }
        .gesp-hist-status.ac { color: #16a34a; }
        .gesp-hist-status.wa { color: #ef4444; }
        .gesp-hist-status.ce { color: #f59e0b; }
        .gesp-hist-score { font-weight: 600; color: var(--light-text-dim, #43556f); text-align: center; }
        .gesp-hist-time { color: var(--light-text-muted, #6f8298); font-size: 0.78rem; text-align: right; }
        .gesp-hist-pager { display: flex; gap: 6px; padding-top: 10px; justify-content: center; }
        .gesp-page-num {
            min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
            border: 1px solid var(--light-border, var(--border)); border-radius: 6px; font-size: 0.8rem; color: var(--light-text-dim, #43556f); cursor: pointer;
        }
        .gesp-page-num.active { background: var(--cyan, #0ea5c4); color: #fff; border-color: var(--cyan, #0ea5c4); }

        /* 下栏：编译选项 + 编辑器 + 提交 */
        .gesp-prog-lower {
            margin-top: 16px; background: var(--light-card, #fff); border: 1px solid var(--light-border, var(--border));
            border-radius: 12px; padding: 14px 16px;
        }
        .gesp-judge-rule {
            display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
            margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
            background: rgba(14,165,196,0.08); border: 1px solid rgba(14,165,196,0.25);
            font-size: 0.88rem; color: #0e7490; line-height: 1.5;
        }
        .gesp-judge-rule b { color: #0c4a6e; font-weight: 700; }
        .gesp-compile-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--light-border, var(--border)); margin-bottom: 12px; }
        .gesp-lang-select { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--light-text-dim, #43556f); }
        .gesp-lang-select select {
            padding: 6px 12px; border: 1px solid var(--light-border-strong, var(--border)); border-radius: 8px;
            background: var(--light-card, #fff); color: var(--light-text, #1f2c44); font-size: 0.88rem; font-weight: 600; cursor: pointer;
        }
        .gesp-compile-info { display: flex; gap: 16px; font-size: 0.8rem; color: var(--light-text-muted, #6f8298); flex-wrap: wrap; }
        .gesp-editor { border-radius: 10px; overflow: hidden; border: 1px solid var(--light-border-strong, var(--border)); height: 480px; }
        .gesp-editor .lc-editor { height: 100%; }
        @media (max-width: 860px) { .gesp-editor { height: 360px; } }
        /* 编程题评测后的详细解析 */
        .gesp-expl-box {
            margin-top: 14px; padding: 16px 18px;
            background: linear-gradient(160deg, rgba(240,248,255,0.9), rgba(235,242,250,0.9));
            border: 1px solid rgba(14,165,196,0.25); border-radius: 12px;
            box-shadow: 0 0 18px rgba(14,165,196,0.08);
        }
        .gesp-expl-title { color: var(--cyan-bright); margin: 0 0 10px; font-size: 1rem; }
        .gesp-action-bar { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
        .gesp-submit-btn {
            display: inline-flex; align-items: center; gap: 8px; padding: 11px 34px;
            background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; border: none; border-radius: 10px;
            font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 14px rgba(22,163,74,0.3);
        }
        .gesp-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22,163,74,0.4); }
        .gesp-submit-btn.running { opacity: 0.7; pointer-events: none; }
        .gesp-shortcut { font-size: 0.82rem; color: var(--light-text-muted, #6f8298); }
        .gesp-passed-badge {
            margin: 4px 0 14px; padding: 12px; text-align: center; border-radius: 10px;
            background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #16a34a; font-weight: 600; font-size: 0.95rem;
        }

        @media (max-width: 860px) {
            .gesp-prog-upper { grid-template-columns: 1fr; }
            .gesp-prog-left, .gesp-prog-right { max-height: none; }
        }

        /* ============ 开始刷题按钮 + 2 小时倒计时 ============ */
        .start-panel {
            display: flex; flex-direction: column; align-items: center; gap: 18px;
            padding: 36px 28px; border-radius: 20px;
            background: linear-gradient(135deg, #ffffff, var(--light-card-2));
            border: 1px solid var(--light-border); box-shadow: var(--light-shadow);
            animation: fadeInUp 0.5s ease;
        }
        .start-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
        .start-tip { color: var(--light-text-dim); font-size: 0.9rem; text-align: center; margin: 0; }
        .start-tip b { color: var(--cyan-bright); }
        .start-btn {
            padding: 14px 46px; font-size: 1.1rem; font-weight: 800; letter-spacing: 1px;
            color: #fff; border: none; border-radius: 999px; cursor: pointer;
            background: linear-gradient(135deg, var(--cyan-bright), var(--blue));
            box-shadow: 0 10px 28px rgba(14,165,196,0.35);
            transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
        }
        .start-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14,165,196,0.5); filter: brightness(1.05); }
        .start-btn:active { transform: translateY(0) scale(.98); }
        .practice-badge.practice-timer {
            font-variant-numeric: tabular-nums; font-weight: 700;
            background: rgba(239,68,68,0.1) !important; color: #ef4444 !important;
            border-color: rgba(239,68,68,0.3) !important;
        }
        .practice-badge.practice-timer.urgent { animation: timerPulse 1s infinite; }
        @keyframes timerPulse { 0%,100% { box-shadow: 0 0 0 rgba(239,68,68,0); } 50% { box-shadow: 0 0 14px rgba(239,68,68,0.5); } }

        /* 切换套题加载动画 + 本题库做题记录 */
        .start-loading { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; color: var(--light-text-dim); font-size: .95rem; }
        .start-panel.loading .start-loading { display: flex; }
        .start-panel.loading .start-content { display: none; }
        #practiceSidebar.loading .sidebar-level-grid,
        #practiceSidebar.loading .sidebar-select { pointer-events: none; opacity: .55; transition: opacity .2s; }

        .set-history { width: 100%; max-width: 540px; margin-top: 4px; text-align: left; }
        .set-history-empty { color: var(--light-text-dim); font-size: .85rem; text-align: center; padding: 12px; }
        .set-history-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: var(--light-text-dim); font-size: .85rem; }
        .set-history-loading .spinner-sm { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(14,165,196,0.18); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
        .set-history-title { font-size: .9rem; font-weight: 700; color: var(--cyan-bright); margin: 12px 0 8px; }
        .set-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 250px; overflow-y: auto; padding-right: 4px; }
        .set-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--light-card-2); border: 1px solid var(--light-border); }
        .set-history-item.best { border-color: var(--cyan-bright); box-shadow: 0 0 12px rgba(14,165,196,0.18); }
        .set-history-item .sh-main { display: flex; flex-direction: column; gap: 2px; }
        .set-history-item .sh-idx { font-weight: 700; color: var(--light-text-dim); }
        .set-history-item.best .sh-idx { color: var(--cyan-bright); }
        .set-history-item .sh-time { font-size: .76rem; color: var(--light-text-dim); }
        .set-history-item .sh-right { text-align: right; }
        .set-history-item .sh-score { font-weight: 800; font-size: 1.05rem; color: var(--cyan-bright); font-variant-numeric: tabular-nums; }
        .set-history-item.best .sh-score { color: #f59e0b; }
        .set-history-item .sh-meta { font-size: .76rem; color: var(--light-text-dim); }
    