/* ============================================
   趣考汇 - 全局样式
   ============================================ */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

/* ====== 导航栏 ====== */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    white-space: nowrap;
}
.navbar-nav a:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}
.navbar-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* 移动端导航文字：默认显示长文字，隐藏短文字 */
.nav-short { display: none; }
.nav-full { display: inline; }

/* 汉堡按钮：桌面端隐藏 */
.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 4px;
    flex-shrink: 0;
}
.navbar-toggle .hamburger,
.navbar-toggle .hamburger::before,
.navbar-toggle .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.navbar-toggle .hamburger {
    position: relative;
}
.navbar-toggle .hamburger::before,
.navbar-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}
.navbar-toggle .hamburger::before { top: -7px; }
.navbar-toggle .hamburger::after  { top: 7px; }
/* 激活态：变 ✕ */
.navbar-toggle.active .hamburger { background: transparent; }
.navbar-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active .hamburger::after  { transform: translateY(-7px) rotate(-45deg); }

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-user .btn {
    white-space: nowrap;
}

.navbar-user .points-badge {
    background: var(--warning-light);
    color: var(--warning);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}

/* 性别头像配色：男蓝女红，保密保持默认紫色 */
.user-avatar.avatar-male,
.account-entry-avatar.avatar-male,
.account-avatar-text.avatar-male,
.lb-podium-avatar.avatar-male,
.lb-rank-avatar.avatar-male {
    background: #dbeafe !important;
    color: #2563eb !important;
}
.user-avatar.avatar-female,
.account-entry-avatar.avatar-female,
.account-avatar-text.avatar-female,
.lb-podium-avatar.avatar-female,
.lb-rank-avatar.avatar-female {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
/* 有头像图片时不覆盖背景，只改文字色（fallback） */
.lb-podium-avatar.avatar-male:has(img),
.lb-podium-avatar.avatar-female:has(img) {
    background: transparent !important;
}

/* ====== 容器 ====== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}

.container-narrow {
    max-width: 640px;
}

/* ====== 按钮 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}
.btn-secondary:hover {
    background: var(--gray-200);
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
}
.btn-block {
    width: 100%;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== 卡片 ====== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ====== 表单 ====== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 14px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}
.form-control::placeholder {
    color: var(--gray-400);
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}
select.form-control {
    cursor: pointer;
}

/* ====== 闪存消息 ====== */
.flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeIn 0.3s;
}
.flash-success {
    background: var(--success-light);
    color: var(--success);
}
.flash-error {
    background: var(--danger-light);
    color: var(--danger);
}
.flash-info {
    background: var(--info-light);
    color: var(--info);
}
.flash-warning {
    background: var(--warning-light);
    color: var(--warning);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== 首页Hero ====== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.hero p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ====== 特性卡片 ====== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    text-align: center;
    padding: 32px 20px;
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

/* ====== 主题网格 ====== */
.exam-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
}
.exam-search-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.exam-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.6;
    pointer-events: none;
}
.exam-search-input {
    padding-left: 40px;
    padding-right: 36px;
}
.exam-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-200);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.exam-search-clear:hover {
    background: var(--gray-300);
}
.exam-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.sort-btn {
    background: var(--gray-100);
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.sort-btn:hover {
    background: var(--gray-200);
}
.sort-btn.active {
    background: var(--primary);
    color: #fff;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.topic-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
}
.topic-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.topic-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}
.topic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.topic-card:hover .topic-thumb img {
    transform: scale(1.05);
}
.topic-card h3,
.topic-card .topic-desc,
.topic-card .topic-meta,
.topic-card .progress-bar,
.topic-card .text-muted {
    padding-left: 24px;
    padding-right: 24px;
}
.topic-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-top: 0;
}
.topic-card .topic-desc {
    margin-bottom: 16px;
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-card .topic-meta,
.topic-card .progress-bar {
    padding-left: 24px;
    padding-right: 24px;
}
.topic-card .text-muted.text-sm {
    padding-bottom: 20px;
    padding-top: 8px;
    margin: 0;
    display: block;
}

/* 主题详情页封面图横幅（小尺寸，不占用首屏） */
.topic-cover-banner {
    width: 100%;
    max-height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
    background: var(--gray-100);
}
.topic-cover-banner img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}
.topic-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}
.topic-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ====== 进度条 ====== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

/* ====== 答题页 ====== */
.exam-header {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 18px;
    margin-bottom: 24px;
    position: sticky;
    top: 60px;
    z-index: 50;
}
.exam-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.exam-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-600);
}
.exam-progress-stat strong {
    color: var(--primary);
    font-size: 16px;
}
.exam-timer-wrap {
    font-variant-numeric: tabular-nums;
    color: var(--gray-600);
}
.exam-timer-wrap strong {
    color: var(--gray-900);
}
.exam-mark-count strong {
    color: var(--warning);
}
.exam-progress-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--gray-100);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.exam-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transition: width 0.3s;
}
.exam-nav-toggle {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.exam-nav-toggle:hover {
    background: var(--gray-200);
}
.exam-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    gap: 2px;
}
.exam-nav-grid span {
    width: 4px;
    height: 4px;
    background: var(--gray-600);
    border-radius: 1px;
}

/* 答题卡浮动按钮（右下角） */
.answer-card-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 45;
    opacity: 0.85;
    transition: all 0.2s;
}
.answer-card-fab:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
}
.answer-card-fab .exam-nav-grid span {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 1px;
}

/* ====== 答题卡（侧边抽屉） ====== */
.answer-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
}
.answer-card-overlay.show {
    opacity: 1;
    visibility: visible;
}
.answer-card {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.25s ease;
}
.answer-card.open {
    right: 0;
}
.answer-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.answer-card-header h3 {
    font-size: 17px;
    font-weight: 700;
}
.answer-card-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.answer-card-close:hover {
    color: var(--gray-700);
}
.answer-card-legend {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    font-size: 12px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--gray-300);
    background: #fff;
}
.legend-dot.answered {
    background: var(--primary);
    border-color: var(--primary);
}
.legend-dot.unanswered {
    background: #fff;
}
.legend-dot.marked {
    background: var(--warning);
    border-color: var(--warning);
}
.answer-card-grid {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-content: start;
}
.answer-card-cell {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--warning-light);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.answer-card-cell:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}
.answer-card-cell.answered {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.answer-card-cell.marked::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
}
.answer-card-cell.current {
    box-shadow: 0 0 0 3px var(--primary-light);
}
.answer-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}

/* ====== 题目卡片顶部（含标记按钮） ====== */
.question-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.mark-btn {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mark-btn:hover {
    border-color: var(--warning);
    color: var(--warning);
}
.mark-btn.active {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}
.mark-icon {
    font-size: 14px;
}

/* ====== 提交确认弹窗 ====== */
.submit-confirm-stats {
    margin: 20px 0;
}
.confirm-stat-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}
.confirm-stat {
    text-align: center;
}
.confirm-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}
.confirm-stat-label {
    font-size: 13px;
    color: var(--gray-500);
}
.confirm-warning {
    text-align: center;
    color: var(--danger);
    font-size: 14px;
    padding: 10px;
    background: var(--danger-light);
    border-radius: var(--radius-sm);
}
.confirm-ok {
    text-align: center;
    color: var(--success);
    font-size: 14px;
    padding: 10px;
    background: var(--success-light);
    border-radius: var(--radius-sm);
}

.question-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
}
.question-number {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.question-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
}
.question-type-badge.single { background: var(--info-light); color: var(--info); }
.question-type-badge.multiple { background: var(--warning-light); color: var(--warning); }
.question-type-badge.judge { background: var(--success-light); color: var(--success); }

.question-content {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.7;
}

.option-list {
    list-style: none;
}
.option-item {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.option-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.option-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.option-item.correct {
    border-color: var(--success);
    background: var(--success-light);
}
.option-item.wrong {
    border-color: var(--danger);
    background: var(--danger-light);
}
.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.option-item.selected .option-letter {
    background: var(--primary);
    color: #fff;
}
.option-item.correct .option-letter {
    background: var(--success);
    color: #fff;
}
.option-item.wrong .option-letter {
    background: var(--danger);
    color: #fff;
}

.option-input {
    position: absolute;
    opacity: 0;
}

/* 判断题选项 */
.judge-options {
    display: flex;
    gap: 16px;
}
.judge-options .option-item {
    flex: 1;
    justify-content: center;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
}

/* ====== 结果页 ====== */
.result-summary {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    margin-bottom: 24px;
}
.result-score-wrap {
    position: relative;
    display: inline-block;
    margin: 16px 0 8px;
}
.result-ring {
    display: block;
}
.result-score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.result-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.result-score.pass { color: var(--success); }
.result-score.fail { color: var(--danger); }
.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 24px;
}
.result-stat {
    text-align: center;
}
.result-stat .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
}
.result-stat .label {
    font-size: 13px;
    color: var(--gray-500);
}

/* 结果页-查看解析引导 */
.analysis-guide-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
    border: 1px solid var(--primary-light);
    margin-bottom: 24px;
}
.analysis-guide-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.analysis-guide-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}
.analysis-guide-emoji {
    font-size: 28px;
    line-height: 1;
}
.analysis-guide-body {
    flex: 1;
    min-width: 0;
}
.analysis-guide-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.analysis-guide-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* 结果页-筛选Tab和锚点导航 */
.result-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.result-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tab {
    background: var(--gray-100);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover {
    background: var(--gray-200);
}
.filter-tab.active {
    background: var(--primary);
    color: #fff;
}
.result-anchor-nav {
    position: sticky;
    top: 60px;
    z-index: 40;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.result-anchor-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.result-anchor-inner::-webkit-scrollbar {
    height: 4px;
}
.result-anchor-inner::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}
/* 解析页题目卡片：左侧色条区分结果 */
.result-q-card {
    border-left: 4px solid var(--gray-200);
}
.result-q-card.result-correct {
    border-left-color: var(--success);
}
.result-q-card.result-wrong {
    border-left-color: var(--danger);
}
.result-q-card.result-unanswered {
    border-left-color: var(--warning);
}

.result-anchor-cell {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    border: 2px solid transparent;
}
.result-anchor-cell.correct {
    background: var(--success-light);
    color: var(--success);
}
.result-anchor-cell.wrong {
    background: var(--danger-light);
    color: var(--danger);
}
.result-anchor-cell.unanswered {
    background: var(--warning-light);
    color: var(--warning);
}
.result-anchor-cell:hover {
    transform: translateY(-1px);
}
.result-anchor-cell.current {
    box-shadow: 0 0 0 2px var(--primary);
}

/* 结果页-答案对比摘要（判断/多选） */
.result-answer-summary {
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.ras-item {
    font-size: 14px;
}
.ras-value {
    font-weight: 700;
    font-size: 16px;
}
.ras-note {
    font-size: 13px;
    color: var(--gray-600);
}

/* 结果页-判断题选项与徽章 */
.judge-result-options {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.judge-result-options .option-item {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    cursor: default;
}
.judge-option-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.option-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.option-list .option-badges {
    justify-content: flex-end;
}
.option-text {
    flex: 1;
    min-width: 0;
}

/* 结果页-底部操作按钮 */
.result-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

/* 结果页-顶部操作按钮 */
.result-top-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* 结果页-题卡折叠交互（details/summary） */
.result-q-card {
    scroll-margin-top: 136px; /* 锚点跳转避开 sticky 导航栏 */
}
.result-q-summary {
    list-style: none;
    cursor: pointer;
    display: block;
    user-select: none;
}
.result-q-summary::-webkit-details-marker { display: none; }
.result-q-summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
.result-q-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.result-q-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.2s, color 0.2s;
}
.result-q-summary:hover .result-q-toggle {
    background: var(--gray-200);
    color: var(--gray-700);
}
.result-q-card[open] > .result-q-summary .result-q-toggle {
    transform: rotate(180deg);
    background: var(--primary-light);
    color: var(--primary);
}
/* 折叠时：题干两行截断、弱化 */
.result-q-card:not([open]) > .result-q-summary .question-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--gray-600);
    font-size: 14px;
}
/* 展开时：题干正常显示 */
.result-q-card[open] > .result-q-summary .question-content {
    margin-bottom: 14px;
}
/* 展开内容淡入 */
.result-q-body {
    animation: resultQBodyIn 0.25s ease;
}
@keyframes resultQBodyIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
/* 解析块（原内联样式改类） */
.result-explanation {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 12px;
}
/* 筛选区的"全部展开"操作按钮 */
.filter-tab-action {
    border: 1px dashed var(--gray-300);
    background: #fff;
    color: var(--gray-600);
}
.filter-tab-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ====== 表格 ====== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.table th {
    background: var(--gray-50);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.table tr:hover td {
    background: var(--gray-50);
}

/* ====== 徽章 ====== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* ====== 奖牌 ====== */
.medal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.medal-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.medal-card.earned {
    border: 2px solid var(--warning);
}
.medal-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}
.medal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
    background: var(--warning-light);
}
.medal-card.earned .medal-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}
.medal-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.medal-card p {
    font-size: 12px;
    color: var(--gray-500);
}

/* ====== 主题满分勋章 ====== */
.topic-medal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.topic-medal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.topic-medal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.topic-medal-card.earned {
    border-color: var(--warning);
}
.topic-medal-card.locked {
    opacity: 0.65;
    filter: grayscale(0.5);
}
.topic-medal-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}
.topic-medal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.topic-medal-card:hover .topic-medal-thumb img {
    transform: scale(1.05);
}
.topic-medal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
}
.topic-medal-icon {
    font-size: 32px;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    line-height: 1;
}
.topic-medal-card.locked .topic-medal-icon {
    color: rgba(255,255,255,0.5);
}
.topic-medal-body {
    padding: 12px 14px 16px;
    text-align: center;
}
.topic-medal-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topic-medal-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 主题详情页-满分勋章横幅 */
.topic-medal-banner {
    padding: 20px 24px;
    border-left: 4px solid var(--gray-300);
    transition: all 0.2s;
}
.topic-medal-banner.earned {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, var(--warning-light) 0%, #fff 60%);
}
.topic-medal-banner.locked {
    background: var(--gray-50);
}
.topic-medal-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.topic-medal-banner-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.topic-medal-banner.earned .topic-medal-banner-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.topic-medal-banner-star {
    font-size: 32px;
    color: var(--gray-400);
    line-height: 1;
}
.topic-medal-banner.earned .topic-medal-banner-star {
    color: #fff;
}
.topic-medal-banner-content {
    flex: 1;
    min-width: 0;
}
.topic-medal-banner-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.topic-medal-banner-status {
    flex-shrink: 0;
}

/* ====== 统计卡片 ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
}
.stat-card .stat-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ====== 任务系统 ====== */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    background: #fff;
}
.task-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.task-item.task-done {
    background: var(--success-light);
    border-color: var(--success);
}
.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.task-icon-done {
    background: var(--success) !important;
    color: #fff !important;
}
.task-body {
    flex: 1;
    min-width: 0;
}
.task-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.task-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}
.task-reward {
    font-size: 13px;
    font-weight: 600;
    color: var(--warning);
    background: var(--warning-light);
    padding: 2px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}
.task-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.task-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.task-progress-bar {
    flex: 1;
    height: 8px;
}
.task-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}
.task-badge {
    flex-shrink: 0;
}
.task-tips {
    list-style: none;
    padding: 0;
}
.task-tips li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 20px;
    position: relative;
}
.task-tips li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 6px;
    font-weight: 700;
}

/* 个人中心-任务迷你卡片 */
.task-mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.task-mini-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
}
.task-mini-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.task-mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.task-mini-icon-done {
    background: var(--success) !important;
    color: #fff !important;
}
.task-mini-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
}
.task-mini-reward {
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
}
.task-mini-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.task-mini-text {
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* ====== 页脚 ====== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    text-align: center;
    padding: 24px;
    font-size: 14px;
    margin-top: auto;
}
.footer-icp {
    margin-top: 8px;
    font-size: 13px;
}
.footer-icp a {
    color: var(--gray-400);
    text-decoration: none;
}
.footer-icp a:hover {
    color: var(--gray-200);
    text-decoration: underline;
}

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* ====== 分享按钮 ====== */
.share-box {
    text-align: center;
}
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
    background: none;
    border: none;
    padding: 0;
}
.share-btn:hover {
    transform: translateY(-3px);
}
.share-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.share-wechat .share-icon { background: #07c160; }
.share-weibo .share-icon { background: #e6162d; }
.share-qq .share-icon { background: #12b7f5; }
.share-link .share-icon { background: var(--gray-500); }
.share-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}
.share-link-box {
    max-width: 400px;
    margin: 0 auto;
}
.share-link-box .form-control {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    cursor: pointer;
}

/* ====== 排行榜徽章 ====== */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.rank-badge.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #f97316, #ea580c); }
.rank-normal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
}

/* ====== 排行榜页 ====== */
.rank-rule-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-left: 2px;
}
.leaderboard-header {
    margin-bottom: 16px;
}

/* 我考过的主题快捷入口 */
.lb-my-topics {
    padding: 16px 20px;
}
.lb-my-topics-header {
    margin-bottom: 12px;
}
.lb-my-topics-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}
.lb-my-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lb-my-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 100%;
}
.lb-my-topic-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}
.lb-my-topic-chip.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.lb-my-topic-chip.current .lb-my-topic-score {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.lb-my-topic-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.lb-my-topic-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
}
.lb-my-topic-score.good {
    background: var(--success-light);
    color: var(--success);
}
.lb-my-topic-score.mid {
    background: var(--warning-light);
    color: var(--warning);
}
.lb-my-topic-score.low {
    background: var(--danger-light);
    color: var(--danger);
}
.lb-my-topics-empty {
    padding: 16px 20px;
    text-align: center;
}

/* 主题选择器 */
.lb-topic-picker .exam-search-wrap {
    margin-bottom: 16px;
}
/* 折叠式主题切换器 */
.lb-picker-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lb-picker-toggle .exam-search-wrap {
    margin-bottom: 0;
    flex: 1;
}
.lb-picker-expand-btn {
    width: 100%;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.lb-picker-expand-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}
.lb-picker-expand-btn .lb-picker-expand-icon {
    font-size: 18px;
}
.lb-picker-expand-btn .lb-picker-expand-arrow {
    transition: transform 0.2s;
    font-size: 12px;
    margin-left: 4px;
}
.lb-picker-expand-btn.expanded .lb-picker-expand-arrow {
    transform: rotate(180deg);
}
.lb-picker-collapse {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.lb-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.lb-picker-label {
    font-weight: 600;
}
.lb-category-select {
    width: auto;
    min-width: 160px;
    padding: 6px 12px;
    font-size: 13px;
}
.lb-topic-group {
    margin-bottom: 16px;
}
.lb-topic-group:last-child {
    margin-bottom: 0;
}
.lb-topic-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
    padding-left: 4px;
}
.lb-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lb-topic-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.lb-topic-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.lb-topic-chip.current {
    background: var(--primary);
    color: #fff;
}

/* sticky 我的排名浮动条 */
.lb-my-rank-bar {
    position: sticky;
    top: 68px;
    z-index: 50;
    margin-bottom: 20px;
}
.lb-my-rank-inner {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.lb-my-rank-label {
    font-size: 13px;
    opacity: 0.9;
}
.lb-my-rank-num {
    font-size: 18px;
    font-weight: 800;
}
.lb-my-rank-score {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}
.lb-my-rank-gap {
    font-size: 13px;
    opacity: 0.95;
}
.lb-my-rank-gap strong {
    font-size: 16px;
}
.lb-my-rank-jump {
    margin-left: auto;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
}
.lb-my-rank-jump:hover {
    background: #fff;
}
.lb-login-hint {
    margin-bottom: 20px;
}

/* Top3 颁奖台 */
.lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}
.lb-podium-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 20px 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.2s;
}
.lb-podium-item:hover {
    transform: translateY(-2px);
}
.lb-podium-item.rank-1 {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
    padding-top: 28px;
    padding-bottom: 28px;
}
.lb-podium-item.rank-2 {
    border-color: #d1d5db;
    background: linear-gradient(180deg, #f9fafb 0%, #fff 60%);
}
.lb-podium-item.rank-3 {
    border-color: #f97316;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 60%);
}
.lb-podium-item.is-me {
    box-shadow: 0 0 0 3px var(--primary), var(--shadow-md);
}
.lb-podium-medal {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}
.lb-podium-item.rank-1 .lb-podium-medal {
    font-size: 40px;
}
.lb-podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 8px;
    overflow: hidden;
}
.lb-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lb-podium-item.rank-1 .lb-podium-avatar {
    width: 64px;
    height: 64px;
    font-size: 24px;
}
.lb-podium-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.lb-podium-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.lb-podium-meta {
    font-size: 12px;
}

/* 王者荣耀风格排行列表 */
.lb-rank-list-card {
    padding: 8px 0;
}
.lb-rank-list {
    display: flex;
    flex-direction: column;
}
.lb-rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
    position: relative;
}
.lb-rank-item:last-child {
    border-bottom: none;
}
.lb-rank-item:nth-child(odd) {
    background: var(--gray-50);
}
.lb-rank-item:hover {
    background: var(--primary-light);
}
.lb-rank-item.is-me {
    background: linear-gradient(90deg, var(--primary-light) 0%, rgba(224, 231, 255, 0.3) 100%);
    box-shadow: inset 4px 0 0 var(--primary);
}
.lb-rank-item.is-me:hover {
    background: linear-gradient(90deg, var(--primary-light) 0%, rgba(224, 231, 255, 0.5) 100%);
}
.lb-rank-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.lb-rank-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}
.lb-rank-info {
    flex: 1;
    min-width: 0;
}
.lb-rank-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-rank-meta {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}
.lb-rank-score {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    text-align: right;
}
.lb-rank-score.good {
    color: var(--success);
}
.lb-rank-score.mid {
    color: var(--warning);
}
.lb-rank-score.low {
    color: var(--danger);
}
.lb-rank-me-tip {
    text-align: center;
    padding: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* 行高亮闪烁 */
.lb-row-flash {
    animation: lbRowFlash 2s ease;
}
@keyframes lbRowFlash {
    0%, 100% { background: linear-gradient(90deg, var(--primary-light) 0%, rgba(224, 231, 255, 0.3) 100%); }
    25%, 75% { background: linear-gradient(90deg, var(--warning-light) 0%, rgba(254, 243, 199, 0.3) 100%); }
}

/* ====== 首页：排行榜入口 + 最近动态 ====== */
.home-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.rank-list,
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--gray-100);
}
.rank-item:last-child { border-bottom: none; }
.rank-item .rank-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-600);
    flex-shrink: 0;
}
.rank-item.rank-1 .rank-no { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-item.rank-2 .rank-no { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #fff; }
.rank-item.rank-3 .rank-no { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.rank-item .rank-name {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-item .rank-score {
    font-weight: 700;
    color: var(--primary);
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }
.activity-body {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}
.activity-body .activity-name { font-weight: 600; color: var(--gray-800); }
.activity-body .activity-score { font-weight: 700; margin-left: 4px; }
.activity-body .text-muted { font-size: 13px; }
.activity-body a { font-weight: 500; }

/* ====== 复制成功提示 ====== */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    animation: fadeInUp 0.3s;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ====== 游客注册引导卡片（结果页） ====== */
.guest-cta-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    padding: 28px 32px;
}
.guest-cta-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.guest-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.guest-cta-text { flex: 1; }
.guest-cta-text h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.guest-cta-text > p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 14px;
}
.guest-cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}
.guest-cta-benefits li {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    padding-left: 18px;
    position: relative;
}
.guest-cta-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: 700;
}
.guest-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ====== 注册引导弹窗 ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.modal-close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}
.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.modal-desc {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}
.modal-desc strong { color: var(--primary); }
.modal-actions { margin-bottom: 14px; }
.modal-dismiss {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
}
.modal-dismiss:hover { color: var(--gray-600); }

/* ====== SEO内链：面包屑、分类导航、相关推荐、相邻导航 ====== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0 20px;
    font-size: 14px;
    color: var(--gray-500);
}
.breadcrumb a {
    color: var(--gray-600);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb-sep {
    color: var(--gray-400);
}
.breadcrumb-current {
    color: var(--gray-800);
    font-weight: 600;
}

/* 分类导航 */
.category-nav {
    margin-bottom: 20px;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-item {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.category-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.category-item.active {
    background: var(--primary);
    color: #fff;
}

/* 同类推荐网格 */
.related-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.related-topic-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.related-topic-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.related-topic-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}
.related-topic-card:hover h4 {
    color: var(--primary);
}

/* 上一个/下一个导航 */
.adjacent-nav {
    padding: 16px 24px;
}
.adjacent-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.adjacent-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    max-width: 48%;
}
.adjacent-link:hover {
    background: var(--gray-50);
}
.adjacent-next {
    text-align: right;
    margin-left: auto;
}
.adjacent-label {
    font-size: 12px;
    color: var(--gray-400);
}
.adjacent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ====== 主题详情页：游客温和引导条 ====== */
.guest-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--info-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray-600);
}
.guest-hint-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--info);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    flex-shrink: 0;
}
.guest-hint-text a { font-weight: 600; }

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
        height: 52px;
        flex-wrap: wrap;
        align-items: center;
    }
    .navbar-brand {
        font-size: 17px;
        gap: 6px;
    }
    .navbar-brand .logo-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
        border-radius: 6px;
    }
    /* 显示汉堡按钮 */
    .navbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }
    /* 导航默认隐藏，下拉展开 */
    .navbar-nav {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fff;
        border-top: 1px solid var(--gray-200);
        margin: 0 -12px;
    }
    .navbar-nav.open {
        max-height: 480px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    }
    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    .navbar-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 0;
    }
    .navbar-nav a.active {
        border-left: 3px solid var(--primary);
        padding-left: 13px;
    }
    /* 移动端精简用户区 */
    .navbar-user {
        gap: 6px;
        margin-left: auto;
        order: 2;
    }
    .navbar-user .btn {
        padding: 4px 10px;
        font-size: 13px;
    }
    .navbar-user .points-badge {
        display: none;
    }
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .container {
        padding: 20px 16px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .home-side-grid {
        grid-template-columns: 1fr;
    }
    .guest-cta-body {
        flex-direction: column;
        gap: 14px;
    }
    .guest-cta-benefits {
        grid-template-columns: 1fr;
    }
    .result-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 28px;
        margin-top: 18px;
    }
    .result-stat .num {
        font-size: 22px;
    }
    .result-stat .label {
        font-size: 12px;
    }
    .result-summary {
        padding: 28px 16px;
    }
    .result-summary h2 {
        font-size: 22px;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .table {
        font-size: 13px;
    }
    .table th, .table td {
        padding: 10px 8px;
    }
    .exam-header {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .exam-header-left,
    .exam-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .exam-header-right {
        font-size: 13px;
        gap: 10px;
    }
    .answer-card {
        width: 100%;
        max-width: 100%;
        right: -100vw;
    }
    .answer-card.open {
        right: 0;
    }
    .answer-card-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    .exam-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .exam-sort-wrap {
        justify-content: center;
    }
    .result-detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .analysis-guide-inner {
        flex-direction: column;
        text-align: center;
    }
    .analysis-guide-actions {
        justify-content: center;
    }
    .result-anchor-cell {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .result-anchor-nav {
        top: 60px;
        padding: 8px;
    }
    /* 结果页移动端体验优化 */
    .result-ring { width: 116px; height: 116px; }
    .result-score { font-size: 36px; }
    .result-summary h2 { font-size: 20px; }
    /* 顶部操作按钮全宽纵向（手机上3个按钮网格不美观） */
    .result-top-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        display: flex;
    }
    .result-top-actions .btn {
        width: 100%;
        font-size: 15px;
        padding: 12px 16px;
    }
    /* 底部操作按钮全宽纵向 */
    .result-bottom-actions {
        flex-direction: column;
        gap: 10px;
        margin: 24px 0;
    }
    .result-bottom-actions .btn {
        width: 100%;
    }
    /* 筛选Tab一行横向滚动，不换行 */
    .result-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .result-filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab {
        flex-shrink: 0;
        padding: 5px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    /* 分享链接输入框在手机上难操作，隐藏（保留复制链接按钮） */
    .share-link-box { display: none; }
    .result-q-card { scroll-margin-top: 122px; }
    .result-q-toggle { width: 26px; height: 26px; }
    .result-explanation { padding: 12px 14px; }
    /* 题目卡片 */
    .result-q-card {
        padding: 16px 14px;
        overflow: hidden;
    }
    .result-q-meta {
        gap: 6px;
        margin-bottom: 6px;
    }
    .result-q-card .question-content {
        font-size: 15px;
        margin-bottom: 14px;
        word-break: break-word;
    }
    .result-q-card .question-number {
        font-size: 13px;
        padding: 2px 8px;
    }
    .result-q-card .question-type-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
    .result-q-card .badge {
        font-size: 11px;
        padding: 2px 6px;
    }
    /* 选项 */
    .result-q-card .option-item {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
        font-size: 14px;
    }
    .result-q-card .option-text {
        flex-basis: calc(100% - 40px);
        word-break: break-word;
    }
    .result-q-card .option-list .option-badges {
        margin-left: 36px;
        justify-content: flex-start;
        width: 100%;
    }
    .result-q-card .option-letter {
        width: 28px;
        height: 28px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .judge-result-options {
        flex-direction: column;
        gap: 8px;
    }
    .judge-result-options .option-item {
        flex: none;
        padding: 12px;
    }
    /* 答案对比摘要 */
    .result-answer-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 14px;
    }
    /* 游客CTA */
    .guest-cta-card {
        padding: 20px 16px;
    }
    .guest-cta-body {
        flex-direction: column;
        gap: 14px;
    }
    .guest-cta-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .guest-cta-text h3 { font-size: 17px; }
    .guest-cta-actions {
        flex-direction: column;
        gap: 8px;
    }
    .guest-cta-actions .btn {
        width: 100%;
    }
    /* 弹窗 */
    .modal-overlay { padding: 16px; }
    .modal-box {
        padding: 28px 18px 20px;
        border-radius: 14px;
    }
    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
        margin-bottom: 12px;
    }
    .modal-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .modal-desc {
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: break-word;
        margin-bottom: 18px;
    }
    .modal-actions .btn {
        font-size: 15px;
        padding: 12px 16px;
    }
    /* 解析引导 */
    .analysis-guide-card { padding: 20px 16px; }
    .analysis-guide-icon {
        width: 48px;
        height: 48px;
    }
    .analysis-guide-emoji { font-size: 24px; }
    .analysis-guide-body h3 { font-size: 15px; }
    .analysis-guide-actions .btn {
        font-size: 14px;
        padding: 8px 14px;
    }
    /* 分享按钮 */
    .share-buttons { gap: 12px; }
    .share-btn {
        width: 52px;
    }
    .share-btn .share-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .share-btn .share-label {
        font-size: 11px;
    }
    .confirm-stat-row {
        gap: 20px;
    }
    .confirm-stat-num {
        font-size: 26px;
    }

    /* 排行榜移动端 */
    .lb-podium {
        gap: 8px;
    }
    .lb-podium-item {
        padding: 14px 8px;
    }
    .lb-podium-item.rank-1 {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .lb-podium-medal {
        font-size: 24px;
    }
    .lb-podium-item.rank-1 .lb-podium-medal {
        font-size: 30px;
    }
    .lb-podium-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .lb-podium-item.rank-1 .lb-podium-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .lb-podium-name {
        font-size: 13px;
    }
    .lb-podium-score {
        font-size: 17px;
    }
    .lb-podium-meta {
        font-size: 11px;
    }
    .lb-my-rank-inner {
        padding: 10px 14px;
        gap: 10px;
        font-size: 13px;
    }
    .lb-my-rank-num {
        font-size: 16px;
    }
    .lb-my-rank-jump {
        margin-left: 0;
        margin-left: auto;
    }
    .lb-category-select {
        flex: 1;
        min-width: 0;
    }
    /* 移动端折叠切换器：搜索框和按钮上下排列 */
    .lb-picker-toggle {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .lb-picker-expand-btn {
        width: 100%;
        justify-content: center;
    }

    /* 排行榜列表移动端优化 */
    .lb-rank-item {
        gap: 10px;
        padding: 10px 14px;
    }
    .lb-rank-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
        border-radius: 6px;
    }
    .lb-rank-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .lb-rank-name {
        font-size: 14px;
    }
    .lb-rank-meta {
        font-size: 11px;
    }
    .lb-rank-score {
        font-size: 18px;
        min-width: 40px;
    }
}

/* ====== 个人信息页 ====== */
.account-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* ====== 注册/登录表单增强 ====== */
.text-danger {
    color: var(--danger);
}
.field-hint {
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
    line-height: 18px;
}
.field-hint.error {
    color: var(--danger);
}
.field-hint.success {
    color: var(--success);
}

/* 密码强度条 */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.pwd-strength-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.pwd-strength-fill {
    height: 100%;
    width: 0;
    background: var(--danger);
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}
.pwd-strength-text {
    font-size: 12px;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

/* 密码要求 checklist */
.pwd-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
}
.pwd-check-item {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pwd-check-item::before {
    content: "○";
    font-size: 14px;
    color: var(--gray-400);
}
.pwd-check-item.ok {
    color: var(--success);
}
.pwd-check-item.ok::before {
    content: "✓";
    color: var(--success);
}

/* 移动端 checklist 单列 */
@media (max-width: 480px) {
    .pwd-checklist {
        grid-template-columns: 1fr;
    }
    /* 结果页超小屏适配（iPhone SE 等 320-375px） */
    .result-summary {
        padding: 20px 12px;
    }
    .result-summary h2 {
        font-size: 18px;
    }
    .result-ring {
        width: 100px;
        height: 100px;
    }
    .result-score {
        font-size: 30px;
    }
    .result-stats {
        gap: 8px 20px;
        margin-top: 14px;
    }
    .result-stat .num {
        font-size: 20px;
    }
    .result-stat .label {
        font-size: 11px;
    }
    /* 顶部按钮已在768px下为纵向，480px下仅收紧字号 */
    .result-top-actions {
        gap: 8px;
        margin-top: 16px;
    }
    .result-top-actions .btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    .result-q-card {
        padding: 12px 10px;
    }
    .result-q-card .question-content {
        font-size: 14px;
        line-height: 1.6;
    }
    .result-q-card .option-item {
        padding: 8px 10px;
        font-size: 13px;
    }
    .result-q-card .option-letter {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .result-q-card .option-text {
        flex-basis: calc(100% - 34px);
    }
    .result-q-card .option-list .option-badges {
        margin-left: 34px;
    }
    .result-q-card .badge {
        font-size: 10px;
        padding: 1px 5px;
    }
    .result-answer-summary {
        padding: 8px 12px;
        font-size: 13px;
    }
    .ras-value {
        font-size: 14px;
    }
    .result-explanation {
        padding: 10px 12px;
        font-size: 13px;
    }
    .result-explanation .text-sm {
        font-size: 13px;
    }
    /* 弹窗再收紧 */
    .modal-overlay { padding: 12px; }
    .modal-box {
        padding: 24px 14px 16px;
        border-radius: 12px;
    }
    .modal-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 12px;
        margin-bottom: 10px;
    }
    .modal-title {
        font-size: 17px;
    }
    .modal-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .modal-actions .btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    /* 解析引导 */
    .analysis-guide-card {
        padding: 16px 12px;
    }
    .analysis-guide-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .analysis-guide-emoji { font-size: 20px; }
    .analysis-guide-body h3 { font-size: 14px; }
    .analysis-guide-body p { font-size: 12px; }
    .analysis-guide-actions { gap: 8px; }
    .analysis-guide-actions .btn {
        font-size: 13px;
        padding: 7px 12px;
    }
    /* 题号锚点 */
    .result-anchor-cell {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .result-anchor-nav {
        padding: 6px;
    }
    /* 游客CTA */
    .guest-cta-card {
        padding: 16px 12px;
    }
    .guest-cta-body {
        flex-direction: column;
        gap: 12px;
    }
    .guest-cta-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
        border-radius: 10px;
    }
    .guest-cta-text h3 { font-size: 16px; }
    .guest-cta-text > p { font-size: 13px; }
    .guest-cta-benefits li { font-size: 12px; }
    /* 分享按钮 */
    .share-buttons { gap: 8px; }
    .share-btn {
        width: 48px;
    }
    .share-btn .share-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .share-btn .share-label {
        font-size: 10px;
    }
    /* 容器水平边距收紧 */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    /* 筛选Tab */
    .filter-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    /* 底部分享卡 */
    .card-header {
        padding: 14px 12px;
        font-size: 14px;
    }
}

/* 头部信息卡 */
.account-header-card {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.account-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.account-avatar-img,
.account-avatar-text {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}
.account-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.account-avatar-edit:hover {
    transform: scale(1.1);
}
.account-header-info {
    flex: 1;
    min-width: 0;
}
.account-username {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.account-email {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 10px;
}
.account-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.account-bio {
    margin-top: 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* 数据概览网格 */
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.account-stat-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 8px;
    text-align: center;
}
.account-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}
.account-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* 双栏布局 */
.account-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}
.account-main,
.account-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 头像输入区 */
.avatar-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}
.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}
.password-strength,
.password-match {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

/* 会员卡片 */
.membership-card-premium {
    background: linear-gradient(135deg, var(--warning-light) 0%, #fff 100%);
    border: 2px solid var(--warning);
}
.membership-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.membership-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.membership-badge.premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}
.membership-badge.normal {
    background: var(--gray-100);
    color: var(--gray-500);
}
.membership-detail h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}
.membership-upgrade-box {
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    text-align: center;
}
.membership-upgrade-box p {
    margin-bottom: 8px;
}

/* 成就摘要 */
.achievement-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.achievement-item {
    text-align: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}
.achievement-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
}
.achievement-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* 快捷入口 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: all 0.15s;
}
.quick-link-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.quick-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.quick-link-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.quick-link-arrow {
    color: var(--gray-400);
    font-size: 18px;
}

/* profile 页-个人信息入口卡 */
.account-entry-card {
    padding: 20px 24px;
}
.account-entry-body {
    display: flex;
    align-items: center;
    gap: 16px;
}
.account-entry-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.account-entry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.account-entry-info {
    flex: 1;
    min-width: 0;
}
.account-entry-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}
.account-entry-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* 个人信息页-移动端响应式 */
@media (max-width: 768px) {
    .account-header-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .account-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .account-layout {
        grid-template-columns: 1fr;
    }
    .achievement-summary {
        grid-template-columns: 1fr 1fr;
    }
    .account-entry-body {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   首页炫酷样式
   ============================================ */

/* ====== Hero 区域 ====== */
.hero-pro {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 64px;
    margin: -32px -24px 48px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(135deg, #0f0a3d 0%, #1e1b4b 40%, #312e81 70%, #4338ca 100%);
    color: #fff;
}
.hero-pro-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-pro-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: -100px; left: -80px;
}
.orb-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 40%; right: -120px;
    animation-delay: -4s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: -80px; left: 40%;
    animation-delay: -8s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-pro-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-pro-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-pro-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-pro-title-line {
    display: block;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 8px;
}
.hero-pro-title-grad {
    display: block;
    background: linear-gradient(90deg, #a78bfa 0%, #f472b6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-pro-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
}
.hero-pro-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-pro-cta {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    border: none !important;
    padding: 14px 32px !important;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s !important;
}
.hero-pro-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.55) !important;
}
.hero-pro-cta-arrow {
    transition: transform 0.3s;
}
.hero-pro-cta:hover .hero-pro-cta-arrow {
    transform: translateX(4px);
}
.hero-pro-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    backdrop-filter: blur(10px);
}
.hero-pro-secondary:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* 动态统计条 */
.hero-pro-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}
.hero-pro-stat {
    flex: 1;
    text-align: center;
    padding: 0 12px;
}
.hero-pro-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-pro-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.hero-pro-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}

/* ====== 特性卡片 ====== */
.features-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}
.feature-card-pro {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.feature-card-pro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.feature-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}
.feature-card-pro:hover::before {
    transform: scaleX(1);
}
.feature-icon-pro {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.feature-card-pro:hover .feature-icon-pro {
    transform: scale(1.1) rotate(-5deg);
}
.icon-grad-1 { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.icon-grad-2 { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.icon-grad-3 { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.icon-grad-4 { background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%); }
.feature-card-pro h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ====== 通用 section ====== */
.home-section {
    margin-bottom: 56px;
}
.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.home-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

/* 主题卡片占位图 */
.topic-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fce7f3 100%);
    color: var(--primary);
    font-size: 48px;
    font-weight: 800;
}

/* ====== 双栏区 ====== */
.home-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 56px;
}
.home-side-card {
    margin-bottom: 0;
}

/* 排行榜列表（首页版） */
.rank-list-pro {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rank-item-pro {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}
.rank-item-pro:last-child {
    border-bottom: none;
}
.rank-item-pro:hover {
    background: var(--gray-50);
}
.rank-no-pro {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    background: var(--gray-200);
    color: var(--gray-600);
    flex-shrink: 0;
}
.rank-pro-1 .rank-no-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.rank-pro-2 .rank-no-pro {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    color: #fff;
}
.rank-pro-3 .rank-no-pro {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    color: #fff;
}
.rank-avatar-pro {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%) !important;
    color: #fff !important;
}
.rank-name-pro {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-score-pro {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* 活动动态（首页版） */
.activity-list-pro {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-item-pro {
    display: flex;
    gap: 12px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--gray-100);
}
.activity-item-pro:last-child {
    border-bottom: none;
}
.activity-item-pro .user-avatar {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%) !important;
    color: #fff !important;
}
.activity-body {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.5;
}
.activity-name {
    font-weight: 600;
    color: var(--gray-800);
}
.activity-score-pro {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}
.activity-score-pro.good {
    background: var(--success-light);
    color: var(--success);
}
.activity-score-pro.low {
    background: var(--danger-light);
    color: var(--danger);
}
.activity-time {
    margin-top: 2px;
    font-size: 12px;
}

/* ====== CTA 行动召唤 ====== */
.home-cta {
    margin: 0 -24px -32px;
    padding: 64px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #7c3aed 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
}
.home-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.home-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}
.home-cta p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    font-size: 16px;
}
.home-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-cta .btn-primary {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%) !important;
    border: none !important;
    padding: 14px 32px !important;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4) !important;
}
.home-cta .btn-outline {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.home-cta .btn-outline:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ====== 首页响应式 ====== */
@media (max-width: 768px) {
    .hero-pro {
        padding: 56px 20px 40px;
        margin: -24px -16px 32px;
        border-radius: 0 0 20px 20px;
    }
    .hero-pro-title-line {
        font-size: 22px;
    }
    .hero-pro-title {
        font-size: 36px;
    }
    .hero-pro-desc {
        font-size: 15px;
    }
    .hero-pro-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }
    .hero-pro-stat {
        flex: 0 0 45%;
        padding: 8px;
    }
    .hero-pro-stat-num {
        font-size: 26px;
    }
    .hero-pro-stat-divider {
        display: none;
    }
    .home-side-grid {
        grid-template-columns: 1fr;
    }
    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-section-title {
        font-size: 22px;
    }
    .home-cta {
        margin: 0 -16px -24px;
        padding: 48px 20px;
    }
    .home-cta h2 {
        font-size: 24px;
    }
}
@media (max-width: 480px) {
    .hero-pro-title {
        font-size: 30px;
    }
    .hero-pro-title-line {
        font-size: 18px;
    }
    .hero-pro-stat {
        flex: 0 0 100%;
    }
    .features-pro {
        grid-template-columns: 1fr;
    }
}

/* ====== 性别单选按钮组 ====== */
.gender-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gender-radio {
    cursor: pointer;
    flex: 1;
    min-width: 80px;
}
.gender-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gender-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-600);
    background: #fff;
    transition: all 0.2s;
}
.gender-radio input[type="radio"]:checked + .gender-radio-label.gender-male {
    border-color: #2563eb;
    background: #dbeafe;
    color: #2563eb;
}
.gender-radio input[type="radio"]:checked + .gender-radio-label.gender-female {
    border-color: #dc2626;
    background: #fee2e2;
    color: #dc2626;
}
.gender-radio input[type="radio"]:checked + .gender-radio-label.gender-secret {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.gender-radio:hover .gender-radio-label {
    border-color: var(--gray-400);
}

/* ==========================================
   考试结果页 · 极简风格（mr- = minimal result）
   ========================================== */
.minimal-result {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 0 60px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

/* 成绩头部 */
.mr-header {
    text-align: center;
    padding: 40px 20px 32px;
}
.mr-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}
.mr-score-num {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -2px;
}
.mr-score-num.is-pass { color: var(--success); }
.mr-score-num.is-fail { color: var(--danger); }
.mr-score-unit {
    font-size: 18px;
    color: #999;
    margin-left: 6px;
    font-weight: 400;
}
.mr-word {
    margin-top: 8px;
    font-size: 15px;
    color: #111;
    letter-spacing: 2px;
}
.mr-word.is-pass { color: var(--success); }
.mr-word.is-fail { color: var(--danger); }
.mr-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

/* 统计数据 */
.mr-stats {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.mr-stat {
    flex: 1;
    text-align: center;
    position: relative;
}
.mr-stat + .mr-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #eee;
}
.mr-stat-num {
    font-size: 22px;
    font-weight: 500;
    color: #111;
    line-height: 1;
}
.mr-stat-num.is-ok { color: var(--success); }
.mr-stat-num.is-err { color: var(--danger); }
.mr-stat-num.is-warn { color: var(--warning); }
.mr-stat-time { font-variant-numeric: tabular-nums; }
.mr-stat-label {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
}

/* 游客提示 */
.mr-guest {
    margin: 0 20px;
    padding: 16px;
    background: #fafafa;
    border-left: 2px solid var(--primary);
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}
.mr-guest a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 操作按钮组 */
.mr-actions {
    display: flex;
    gap: 10px;
    padding: 24px 20px 8px;
}
.mr-actions-bottom {
    padding-top: 32px;
    padding-bottom: 0;
}
.mr-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 0;
    border: 1px solid #111;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    font-weight: 400;
    background: #fff;
    color: #111;
    letter-spacing: 1px;
}
.mr-btn:hover { opacity: 0.85; }
.mr-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.mr-btn-primary:hover { background: #4338ca; border-color: #4338ca; opacity: 1; }
.mr-btn-ghost {
    background: #fff;
    color: #111;
    border-color: #ddd;
}
.mr-btn-ghost:hover { border-color: #111; opacity: 1; }
.mr-btn-block {
    width: 100%;
    flex: none;
}

/* 错题引导 */
.mr-guide {
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    color: #666;
}
.mr-guide a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 2px;
}

/* 题目详情区标题 */
.mr-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 20px 12px;
    font-size: 13px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mr-section-head > span {
    font-weight: 500;
}
.mr-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.mr-filter {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: color 0.15s;
    letter-spacing: 0;
}
.mr-filter:hover { color: #111; }
.mr-filter.active {
    color: #111;
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 3px;
}

/* 题目卡片 */
.mr-q {
    border-bottom: 1px solid #eee;
    margin: 0 20px;
}
.mr-q-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.mr-q-head::-webkit-details-marker { display: none; }
.mr-q-idx {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    background: #f5f5f5;
    border-radius: 50%;
    margin-top: 1px;
}
.mr-q-type {
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
    padding: 3px 6px;
    border: 1px solid #eee;
    margin-top: 3px;
    letter-spacing: 1px;
}
.mr-q-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.65;
    color: #111;
    word-break: break-word;
    min-width: 0;
}
.mr-q-mark {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 16px;
    margin-top: 2px;
}
.mr-q-correct .mr-q-mark { color: var(--success); }
.mr-q-wrong .mr-q-mark { color: var(--danger); }
.mr-q-unanswered .mr-q-mark { color: var(--warning); }

/* 题卡展开内容 */
.mr-q-body {
    padding: 0 0 20px 34px;
}

/* 答案对比行 */
.mr-ans-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #999;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #eee;
}
.mr-ans-val {
    font-weight: 500;
    font-size: 14px;
}
.mr-ans-val.is-ok { color: var(--success); }
.mr-ans-val.is-err { color: var(--danger); text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, 0.4); }
.mr-ans-val.is-warn { color: var(--warning); }
.mr-ans-sep { color: #ddd; }

/* 选项 */
.mr-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.mr-opt-mark {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: #111;
    margin-top: 1px;
}
.mr-opt.is-correct .mr-opt-mark { color: var(--success); }
.mr-opt.is-wrong .mr-opt-mark { color: var(--danger); }
.mr-opt-letter {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}
.mr-opt.is-correct .mr-opt-letter { color: var(--success); }
.mr-opt.is-wrong .mr-opt-letter { color: var(--danger); }
.mr-opt-text {
    flex: 1;
    word-break: break-word;
    min-width: 0;
}
.mr-opt.is-correct .mr-opt-text { color: #111; }
.mr-opt.is-wrong .mr-opt-text { color: #999; text-decoration: line-through; }
.mr-opt-tag {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 6px;
    margin-top: 2px;
    letter-spacing: 1px;
}
.mr-opt-tag.is-ok { color: var(--success); }
.mr-opt-tag.is-err { color: var(--danger); }
.mr-opt-tag.is-warn { color: var(--warning); }

/* 解析 */
.mr-exp {
    margin-top: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    display: flex;
    gap: 8px;
}
.mr-exp-label {
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
    padding-top: 2px;
    letter-spacing: 1px;
}
.mr-exp-text {
    flex: 1;
    color: #666;
}

/* 弹窗 */
.mr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
    animation: mr-fade 0.2s ease;
}
@keyframes mr-fade { from { opacity: 0; } to { opacity: 1; } }
.mr-modal-box {
    background: #fff;
    width: 100%;
    max-width: 340px;
    padding: 32px 24px 24px;
    position: relative;
}
.mr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
}
.mr-modal-close:hover { color: #111; }
.mr-modal-title {
    font-size: 17px;
    font-weight: 500;
    color: #111;
    margin: 0 0 12px;
    text-align: center;
    letter-spacing: 0.5px;
}
.mr-modal-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    text-align: center;
    margin: 0 0 24px;
}
.mr-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mr-modal-later {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: none;
    border: none;
    font-size: 12px;
    color: #bbb;
    cursor: pointer;
    letter-spacing: 1px;
}
.mr-modal-later:hover { color: #666; }

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .minimal-result { padding: 8px 0 40px; }
    .mr-header { padding: 28px 16px 24px; }
    .mr-score-num { font-size: 60px; }
    .mr-score-unit { font-size: 15px; }
    .mr-word { font-size: 14px; }
    .mr-hint { font-size: 12px; }
    .mr-stats { margin-top: 24px; padding: 16px 0; }
    .mr-stat-num { font-size: 18px; }
    .mr-stat-label { font-size: 11px; }
    .mr-guest { margin: 0 16px; padding: 12px 14px; font-size: 12px; }
    .mr-actions { padding: 20px 16px 8px; gap: 8px; }
    .mr-btn { height: 42px; font-size: 13px; padding: 0 14px; letter-spacing: 0; }
    .mr-guide { padding: 12px 16px; font-size: 12px; }
    .mr-section-head {
        padding: 24px 16px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        font-size: 12px;
    }
    .mr-filters { gap: 14px; }
    .mr-filter { font-size: 12px; }
    .mr-q { margin: 0 16px; }
    .mr-q-head { padding: 14px 0; gap: 8px; }
    .mr-q-idx { width: 22px; height: 22px; font-size: 11px; }
    .mr-q-text { font-size: 14px; line-height: 1.6; }
    .mr-q-type { font-size: 10px; padding: 2px 5px; }
    .mr-q-body { padding: 0 0 16px 30px; }
    .mr-ans-line { font-size: 12px; gap: 6px; }
    .mr-ans-val { font-size: 13px; }
    .mr-opt { padding: 8px 0; font-size: 13px; gap: 8px; }
    .mr-exp { font-size: 12px; padding: 10px 0 4px; gap: 6px; }
    .mr-exp-label { font-size: 11px; }
    .mr-modal-box { padding: 28px 20px 20px; }
    .mr-modal-title { font-size: 16px; }
}

@media (max-width: 360px) {
    .mr-score-num { font-size: 54px; }
    .mr-header { padding: 20px 12px 20px; }
    .mr-guest { margin: 0 12px; }
    .mr-actions { padding: 16px 12px 4px; }
    .mr-q { margin: 0 12px; }
    .mr-section-head { padding: 20px 12px 8px; }
    .mr-q-body { padding-left: 0; }
    .mr-q-idx { width: 20px; height: 20px; font-size: 10px; }
    .mr-stat-num { font-size: 16px; }
    .mr-q-text { font-size: 13px; }
    .mr-btn { height: 40px; font-size: 13px; }
}

/* ==========================================
   随机刷题模式（rd- = random drill）
   ========================================== */
.rd-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

/* 顶部统计条 */
.rd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.rd-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rd-back {
    font-size: 18px;
    color: #999;
    text-decoration: none;
    padding: 4px 6px;
    margin-left: -6px;
    line-height: 1;
}
.rd-back:hover { color: #111; }
.rd-topbar-title {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.rd-mode-badge {
    font-size: 11px;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 1px 6px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.rd-topbar-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}
.rd-stat-chip strong {
    color: #111;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* 游客提示 */
.rd-guest-hint {
    margin: 0 20px 8px;
    font-size: 12px;
    color: #999;
}
.rd-guest-hint a { color: var(--primary); }

/* 加载/错误态 */
.rd-loading, .rd-error {
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}
.rd-error a { color: var(--primary); }

/* 题目卡片 */
.rd-card {
    padding: 24px 20px;
}
.rd-q-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.rd-q-type {
    font-size: 11px;
    color: #bbb;
    border: 1px solid #eee;
    padding: 2px 6px;
    letter-spacing: 1px;
}
.rd-q-num {
    font-size: 12px;
    color: #999;
}
.rd-q-content {
    font-size: 16px;
    line-height: 1.7;
    color: #111;
    margin-bottom: 20px;
    word-break: break-word;
}

/* 选项列表 */
.rd-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rd-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.rd-opt:hover:not(:disabled) { border-color: #111; }
.rd-opt:disabled { cursor: default; }
.rd-opt-letter {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    border: 1px solid #eee;
    border-radius: 50%;
    font-weight: 500;
    margin-top: 1px;
}
.rd-opt-text {
    flex: 1;
    word-break: break-word;
    min-width: 0;
}

/* 选中态（多选） */
.rd-opt.is-selected {
    border-color: var(--primary);
    background: #f5f4ff;
}
.rd-opt.is-selected .rd-opt-letter {
    border-color: var(--primary);
    color: var(--primary);
}

/* 判断题按钮 */
.rd-judge-opts {
    flex-direction: row;
    gap: 12px;
}
.rd-judge-btn {
    flex: 1;
    padding: 16px 0;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 1px solid #eee;
    cursor: pointer;
    transition: border-color 0.15s;
    font-family: inherit;
    letter-spacing: 2px;
}
.rd-judge-btn:hover:not(:disabled) { border-color: #111; }
.rd-judge-btn:disabled { cursor: default; }

/* 判分后选项标记
   is-picked=用户所选 is-mark-ok=选对 is-mark-correct=正确答案
   is-mark-miss=漏选 is-mark-err=错选 is-mark-none=无关项 */
.rd-opt.is-picked, .rd-judge-btn.is-picked { border-width: 2px; }

.rd-opt.is-mark-ok, .rd-judge-btn.is-mark-ok {
    border-color: var(--success);
    background: #f0faf3;
}
.rd-opt.is-mark-ok .rd-opt-letter {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}
.rd-opt.is-mark-correct, .rd-judge-btn.is-mark-correct {
    border-color: var(--success);
}
.rd-opt.is-mark-correct .rd-opt-letter {
    border-color: var(--success);
    color: var(--success);
}
.rd-opt.is-mark-miss, .rd-judge-btn.is-mark-miss {
    border-color: var(--warning);
    background: #fdf9f0;
}
.rd-opt.is-mark-miss .rd-opt-letter {
    border-color: var(--warning);
    color: var(--warning);
}
.rd-opt.is-mark-err, .rd-judge-btn.is-mark-err {
    border-color: var(--danger);
    background: #fdf3f3;
}
.rd-opt.is-mark-err .rd-opt-letter {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}
.rd-opt.is-mark-err .rd-opt-text {
    color: #999;
    text-decoration: line-through;
}
.rd-opt.is-mark-none { opacity: 0.55; }

/* 操作按钮 */
.rd-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.rd-actions .rd-btn { flex: 1; }
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    font-size: 15px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: 2px;
    padding: 0 20px;
}
.rd-btn:hover:not(:disabled) { background: #4338ca; border-color: #4338ca; }
.rd-btn:disabled {
    background: #eee;
    border-color: #eee;
    color: #bbb;
    cursor: not-allowed;
}

.rd-multiple-tip {
    margin-top: 10px;
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

/* 结果区 */
.rd-result { margin-top: 4px; }
.rd-verdict {
    font-size: 18px;
    font-weight: 500;
    padding: 16px 0 12px;
    letter-spacing: 1px;
}
.rd-verdict.rd-ok { color: var(--success); }
.rd-verdict.rd-err { color: var(--danger); }
.rd-verdict.rd-warn { color: var(--warning); }
.rd-ans-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #999;
    padding-bottom: 14px;
    border-bottom: 1px dashed #eee;
}
.rd-ans-val { font-weight: 500; font-size: 14px; }
.rd-ans-val.is-ok { color: var(--success); }
.rd-ans-val.is-err { color: var(--danger); }
.rd-ans-val.is-warn { color: var(--warning); }
.rd-ans-sep { color: #ddd; }

.rd-exp {
    margin-top: 14px;
    padding: 14px;
    background: #fafafa;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    display: flex;
    gap: 8px;
}
.rd-exp-label {
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
    padding-top: 2px;
    letter-spacing: 1px;
}
.rd-exp-text { flex: 1; word-break: break-word; }

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .rd-topbar { padding: 12px 16px; }
    .rd-topbar-title { font-size: 14px; max-width: 120px; }
    .rd-topbar-stats { gap: 10px; font-size: 11px; }
    .rd-guest-hint { margin: 0 16px 6px; font-size: 11px; }
    .rd-card { padding: 18px 16px; }
    .rd-q-content { font-size: 15px; }
    .rd-opt { padding: 12px 10px; font-size: 14px; gap: 10px; }
    .rd-opt-letter { width: 20px; height: 20px; font-size: 11px; }
    .rd-judge-btn { padding: 14px 0; font-size: 14px; }
    .rd-btn { height: 44px; font-size: 14px; letter-spacing: 1px; }
    .rd-verdict { font-size: 16px; }
    .rd-ans-line { font-size: 12px; }
    .rd-ans-val { font-size: 13px; }
    .rd-exp { font-size: 12px; padding: 12px; }
}

@media (max-width: 360px) {
    .rd-mode-badge { display: none; }
    .rd-topbar-title { max-width: 90px; }
    .rd-judge-opts { flex-direction: column; }
    .rd-q-content { font-size: 14px; }
    .rd-opt { font-size: 13px; }
}
