/**
 * =====================================================
 * C++打字闯关系统 - 全局豪华样式表 v2.0
 * 现代科技风 · 玻璃态卡片 · 深色编辑器 · 完美适配
 * =====================================================
 */

/* ============================================
 * 1. CSS 变量 & 根配置
 * ============================================ */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #c4b5fd;
    --success: #10b981;
    --success-light: #6ee7b7;
    --warning: #f59e0b;
    --warning-light: #fcd34d;
    --danger: #ef4444;
    --danger-light: #fca5a5;

    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-editor-dark: #1e2233;

    --border-subtle: rgba(226, 232, 240, 0.65);
    --border-normal: #e2e8f0;
    --border-focus: #bae6fd;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-placeholder: #cbd5e1;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.10);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.18);
    --shadow-modal: 0 24px 64px rgba(15, 23, 42, 0.18);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
 * 2. 滚动条美化（全局）
 * ============================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* ============================================
 * 3. 全局基础
 * ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

::selection {
    background: rgba(14, 165, 233, 0.2);
    color: #0c4a6e;
}

/* ============================================
 * 4. 通用组件
 * ============================================ */

/* 4.1 玻璃态卡片 */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* 4.2 标准卡片 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* 4.3 统计卡片 */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}
.stat-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

/* 4.4 会员卡片 */
.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.member-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.member-card.recommended {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.10);
}
.member-card.recommended:hover {
    box-shadow: 0 16px 48px rgba(245, 158, 11, 0.18);
    transform: translateY(-6px);
}

/* 4.5 按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-normal);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--border-focus);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

/* 4.6 徽章标签 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-blue   { background: #e0f2fe; color: #0369a1; }
.badge-green  { background: #d1fae5; color: #047857; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-slate  { background: #f1f5f9; color: #475569; }
.badge-teal   { background: #ccfbf1; color: #0f766e; }
.badge-rose   { background: #ffe4e6; color: #be123c; }

/* 4.7 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-emerald {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 4.8 标题装饰 */
.section-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 900;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 4.9 Hero 光效背景 */
.hero-glow {
    position: relative;
    overflow: hidden;
}
.hero-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(14, 165, 233, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* 4.10 分割线 */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-normal), transparent);
    border: none;
}

/* ============================================
 * 5. 动画关键帧
 * ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 28px rgba(245, 158, 11, 0.5); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes successBounce {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes confettiFall {
    0% { transform: translateY(-30px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes borderPulse {
    0%, 100% { border-color: rgba(59, 130, 246, 0.4); }
    50% { border-color: rgba(59, 130, 246, 0.85); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* 动画工具类 */
.animate-fadeIn      { animation: fadeIn 0.5s ease-out; }
.animate-fadeInUp    { animation: fadeInUp 0.6s ease-out; }
.animate-fadeInScale { animation: fadeInScale 0.35s ease-out; }
.animate-float       { animation: float 4s ease-in-out infinite; }
.animate-shimmer     { animation: shimmer 3s infinite; }

/* ============================================
 * 6. 表单与输入
 * ============================================ */
input, select, textarea {
    font-family: inherit;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-input::placeholder {
    color: var(--text-placeholder);
}

/* ============================================
 * 7. 练习页专属样式
 * ============================================ */

/* 7.1 练习页顶部标题卡片 */
.practice-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 40%, #f5f3ff 100%);
    border: 1px solid #e0f2fe;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
.practice-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.practice-header::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 7.2 代码标题 */
.code-title-text {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 7.3 统计卡片 */
.stat-card-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-hover);
}
.stat-card-item .stat-value {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    transition: transform var(--transition-fast);
}
.stat-card-item:hover .stat-value {
    transform: scale(1.06);
}
.stat-card-item .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* 7.4 编辑器面板标题 */
.editor-panel-title {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-normal);
}
.editor-panel-title .icon-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.editor-panel-title .icon-dot.reference {
    background: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}
.editor-panel-title .icon-dot.input {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* 7.5 编辑器容器（深色主题 - 修复C++显示） */
.editor-wrapper {
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-normal);
    border-top: 0;
    background: var(--bg-editor-dark);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.editor-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
}

/* ★ CodeMirror 深色编辑器 - 修复C++不显示问题 ★ */
.editor-wrapper .cm-editor {
    background: var(--bg-editor-dark) !important;
}
.editor-wrapper .cm-editor .cm-gutters {
    background: #252836 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #636d83 !important;
}
.editor-wrapper .cm-editor .cm-activeLineGutter {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* 7.6 进度条 */
.progress-bar-wrap {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid var(--border-normal);
}
.progress-track {
    background: var(--border-subtle);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #10b981, #0ea5e9, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 16px; height: 16px;
    background: #fff;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.2);
}

/* 7.7 操作按钮 */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
}
.btn-action:hover { transform: translateY(-2px); }
.btn-action:active { transform: translateY(0) scale(0.97); }

.btn-reset {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border-normal);
}
.btn-reset:hover {
    background: #f8fafc;
    border-color: var(--border-focus);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.btn-pause {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.btn-pause:hover { box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35); }
.btn-pause.playing {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.btn-pause.playing:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); }

.btn-back {
    background: #fff;
    color: var(--text-muted);
    border: 1px solid var(--border-normal);
}
.btn-back:hover {
    background: #f8fafc;
    border-color: var(--border-focus);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

/* 7.8 代码解析面板 */
.code-analysis-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-normal);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}
.code-analysis-panel:hover {
    box-shadow: var(--shadow-card);
}
.code-analysis-panel .panel-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-normal);
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.code-analysis-panel .panel-body {
    padding: 20px;
}
.analysis-block {
    margin-bottom: 18px;
}
.analysis-block:last-child {
    margin-bottom: 0;
}
.analysis-block h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.analysis-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.analysis-block .tip-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-xs);
    padding: 12px 14px;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ★ 打字高亮：正确/错误/当前（浅色主题） ★ */
.typed-correct {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border-radius: 2px;
}
.typed-wrong {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
    text-decoration: underline wavy #ef4444;
    border-radius: 2px;
}
.typed-current {
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-radius: 2px;
    animation: borderPulse 1.2s infinite;
}

/* 7.9 完成弹窗 */
.complete-overlay {
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    background: rgba(15, 23, 42, 0.5);
}
.complete-dialog {
    background: linear-gradient(155deg, #ffffff 0%, #f0f9ff 35%, #f5f3ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    animation: successBounce 0.55s ease-out;
    max-width: 440px;
    width: 92%;
    position: relative;
    overflow: hidden;
}
.complete-dialog::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #0ea5e9, #8b5cf6, #f59e0b, #10b981);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
.complete-dialog .star-display {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 6px;
}
.complete-dialog .star-display span {
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.3));
}
.complete-dialog .result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(241, 245, 249, 0.65);
    border-radius: var(--radius-xs);
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.complete-dialog .result-row .label {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.complete-dialog .result-row .value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================================
 * 8. 表格样式（通用）
 * ============================================ */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-normal);
}
.table-modern thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border-normal);
    text-align: left;
}
.table-modern tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.table-modern tbody tr:last-child td {
    border-bottom: none;
}
.table-modern tbody tr:hover td {
    background: rgba(14, 165, 233, 0.02);
}
.table-modern tbody tr:first-child td {
    padding-top: 14px;
}

/* ============================================
 * 9. 响应式适配
 * ============================================ */
@media (max-width: 1024px) {
    :root {
        --radius-lg: 18px;
        --radius: 14px;
    }
}

@media (max-width: 768px) {
    :root {
        --radius-lg: 16px;
        --radius: 12px;
        --radius-sm: 10px;
    }
    .practice-header {
        padding: 16px 18px;
        border-radius: var(--radius);
    }
    .stat-card-item .stat-value {
        font-size: 1.5rem;
    }
    .stat-card-item {
        padding: 12px 8px;
    }
    .code-title-text {
        font-size: 1.05rem;
    }
    .complete-dialog {
        width: 94%;
        padding: 1.25rem;
    }
    .editor-panel-title {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .btn-action {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stat-card-item .stat-value {
        font-size: 1.3rem;
    }
    .stat-card-item {
        padding: 10px 6px;
    }
    .practice-header {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
    }
    .code-title-text {
        font-size: 1rem;
    }
    .editor-panel-title {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .btn-action {
        padding: 7px 12px;
        font-size: 0.76rem;
    }
    .progress-bar-wrap {
        padding: 12px 14px;
    }
    .complete-dialog .star-display {
        gap: 8px;
    }
}

/* ============================================
 * 10. 打印样式
 * ============================================ */
@media print {
    .nav-glass, .btn-action, .progress-bar-wrap, .complete-overlay {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .editor-wrapper {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}
