/* 考试前台页面样式：列表页左右分栏、缩略图占位、空态提示 */
.exam-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.exam-thumb-empty { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; }
.state-tip { text-align: center; color: #6b7280; padding: 80px 0; font-size: 15px; }

/* ========== 考场详情页 ========== */
.exam-detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.exam-detail-main { background: #fff; border-radius: 5px; padding: 32px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.exam-detail-title { font-size: 26px; font-weight: 700; color: #065f46; margin: 0 0 16px 0; line-height: 1.3; }
.exam-detail-desc { font-size: 15px; color: #4b5563; line-height: 1.8; margin: 0 0 24px 0; padding-bottom: 24px; border-bottom: 1px solid #e5e7eb; white-space: pre-line; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; padding: 20px; background: #f9fafb; border-radius: 8px; }
.stat-item { text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; color: #0f766e; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; white-space: nowrap; }

.exam-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.exam-tag { padding: 4px 12px; background: #f0fdf4; color: #0f766e; border-radius: 12px; font-size: 13px; }

.exam-desc-rich { font-size: 14px; color: #4b5563; line-height: 1.8; }
.exam-paper-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exam-paper-table th { text-align: left; padding: 10px 12px; background: #f9fafb; color: #6b7280; font-weight: 500; border-bottom: 1px solid #e5e7eb; }
.exam-paper-table td { padding: 12px; color: #1f2937; border-bottom: 1px solid #f3f4f6; }

.exam-detail-sidebar { background: #fff; border-radius: 5px; padding: 24px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); height: fit-content; position: sticky; top: 20px; }
.exam-price-box { padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
.exam-price-box .box-title { font-size: 14px; color: #6b7280; margin: 0 0 12px 0; }
.exam-price-box .po-empty { font-size: 13px; color: #9ca3af; padding: 8px 0; }

/* 套餐选择（pe-radio-group 内部纵向 flex 且 align-items:flex-start，需显式给 pe-radio 设 width:100%） */
.exam-price-box pe-radio-group { width: 100%; }
.exam-price-box pe-radio { display: block; width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.2s; }
.exam-price-box pe-radio:hover { border-color: #0f766e; }
.exam-price-box pe-radio[checked] { border-color: #0f766e; background: #f0fdf4; box-shadow: 0 0 0 1px #0f766e inset; }
.exam-price-box .po-amount { font-size: 20px; font-weight: 700; color: #ef4444; }
.exam-price-box .po-days { font-size: 12px; color: #6b7280; margin-top: 2px; }

.exam-buy-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-sizing: border-box; }
.exam-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3); }
.exam-sidebar-link { display: block; text-decoration: none; }

.exam-tip-box { padding: 16px; background: #fef3c7; border-radius: 8px; }
.exam-tip-box p { font-size: 13px; color: #92400e; margin: 0; line-height: 1.6; }
.exam-tip-box p + p { margin-top: 8px; }

/* 侧栏操作按钮：pe-button 用 Shadow DOM，通过 CSS 变量穿透套用考试主题渐变 */
.exam-detail-sidebar pe-button { display: block; }
.exam-detail-sidebar pe-button[type="primary"] {
    --pe-color-primary: #0f766e;
    --pe-color-primary-hover: #134e4a;
    --pe-button-bg: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    --pe-button-bg-hover: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    --pe-border-radius: 8px;
    --pe-font-size: 16px;
    --pe-font-weight: 600;
    --pe-spacing-sm: 14px;
    --pe-spacing-lg: 16px;
    border-radius: 8px;
    transition: all 0.2s;
}
.exam-detail-sidebar pe-button[type="primary"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3); }

/* ========== 练习中心（左侧公共菜单 + 知识点树） ========== */
.exam-menu .category-item.disabled a { color: #9ca3af; cursor: not-allowed; }
.exam-menu .category-item.disabled a:hover { background: #fff; color: #9ca3af; }
.exam-menu .menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-menu .menu-soon { font-size: 12px; color: #9ca3af; background: #f3f4f6; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.exam-menu .category-item.active .menu-soon { background: #d1fae5; color: #0f766e; }

.knowledge-tree { margin: 0; padding: 0; list-style: none; }
.knowledge-tree ul { margin: 0; padding: 0 0 0 20px; list-style: none; }
.tree-node { margin: 2px 0; }
.tree-node-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; font-size: 14px; color: #374151; }
.tree-node-header[data-toggle] { cursor: pointer; font-weight: 500; }
.tree-node-header[data-toggle]:hover { background: #f0fdf4; }
.tree-node-header[data-toggle]:hover .tree-toggle { color: #0f766e; }
.tree-toggle { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #9ca3af; transition: transform 0.2s; transform: rotate(180deg); }
.tree-node-header.expanded .tree-toggle { transform: rotate(0deg); }
.tree-toggle.leaf { visibility: hidden; }
.tree-node-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-count { font-size: 12px; color: #6b7280; background: #f9fafb; padding: 4px 10px; border-radius: 8px; flex-shrink: 0; }
.tree-progress { font-size: 12px; color: #0f766e; background: #d1fae5; padding: 4px 12px; border-radius: 8px; flex-shrink: 0; }
.tree-progress.state-none { color: #6b7280; background: #f3f4f6; }
.tree-progress.state-part { color: #d97706; background: #fef3c7; }
.tree-progress.state-done { color: #0f766e; background: #d1fae5; }
.tree-btn { font-size: 13px; padding: 6px 16px; border: 1px solid #0f766e; border-radius: 6px; background: #0f766e; color: #fff; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
.tree-btn:hover { background: #134e4a; border-color: #134e4a; }
.tree-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tree-children { overflow: hidden; }
.tree-children.collapsed { display: none; }

/* ========== 试题练习页 ========== */
.exercise-paper { background: #fff; border-radius: 10px; padding: 24px 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.exercise-paper .paper-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #e5e7eb; }
.exercise-paper .paper-title { font-size: 17px; font-weight: 700; color: #065f46; line-height: 1.5; }
.exercise-paper .paper-info { font-size: 13px; color: #6b7280; margin-top: 6px; }
.exercise-paper .paper-info span { margin-right: 16px; }
.exercise-paper .paper-info strong { color: #0f766e; }
.exercise-paper .paper-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #0f766e; text-decoration: none; flex-shrink: 0; }
.exercise-paper .paper-back:hover { text-decoration: underline; }

.question-type-tag { display: inline-block; padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-single { background: #dbeafe; color: #1d4ed8; }
.tag-multiple { background: #fef3c7; color: #d97706; }
.tag-judge { background: #d1fae5; color: #059669; }
.tag-fill { background: #ede9fe; color: #7c3aed; }

.progress-bar-wrap { margin-bottom: 18px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.progress-track { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #0f766e, #134e4a); border-radius: 4px; transition: width 0.3s ease; }

.question-nav-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding: 14px; background: #f9fafb; border-radius: 8px; }
.q-dot { width: 36px; height: 36px; border-radius: 6px; border: 2px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; }
.q-dot:hover { border-color: #0f766e; color: #0f766e; }
.q-dot.active { background: #0f766e; border-color: #0f766e; color: #fff; }
.q-dot.answered { background: #d1fae5; border-color: #059669; color: #059669; }
.q-dot.wrong { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.q-dot.flagged { background: #fef3c7; border-color: #d97706; color: #d97706; }

.question-area { margin-bottom: 8px; }
.question-area.hidden { display: none; }
.question-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%); color: #fff; font-size: 14px; font-weight: 700; margin-right: 10px; flex-shrink: 0; vertical-align: middle; }
.question-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.flag-btn { padding: 6px 14px; border: 1px solid #d97706; border-radius: 6px; background: transparent; color: #d97706; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s; }
.flag-btn:hover, .flag-btn.flagged { background: #fef3c7; }
.answer-toggle { padding: 6px 14px; border: 1px solid #0f766e; border-radius: 6px; background: transparent; color: #0f766e; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.answer-toggle:hover { background: #0f766e; color: #fff; }

.material-box { background: #f8fafc; border-left: 4px solid #94a3b8; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.material-label { font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 6px; }
.material-text { font-size: 14px; color: #374151; line-height: 1.8; }

.question-text { font-size: 15px; color: #1f2937; line-height: 1.8; margin-bottom: 18px; }
.options-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.option-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.15s; }
.option-item:hover { border-color: #0f766e; background: #f0fdf4; }
.option-item.selected { border-color: #0f766e; background: #ecfdf5; }
.option-item.correct { border-color: #059669; background: #d1fae5; }
.option-item.wrong { border-color: #ef4444; background: #fee2e2; }
.option-letter { width: 28px; height: 28px; border-radius: 50%; background: #f3f4f6; color: #374151; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.option-item.selected .option-letter { background: #0f766e; color: #fff; }
.option-item.correct .option-letter { background: #059669; color: #fff; }
.option-item.wrong .option-letter { background: #ef4444; color: #fff; }
.option-text { font-size: 14px; color: #374151; line-height: 1.6; padding-top: 3px; }

.question-actions { margin-top: 14px; }
.fill-box { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.fill-input { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; color: #374151; outline: none; }
.fill-input:focus { border-color: #0f766e; }
.show-answer-btn { padding: 9px 20px; border: 1px solid #0f766e; border-radius: 6px; background: transparent; color: #0f766e; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.show-answer-btn:hover { background: #0f766e; color: #fff; }

.answer-section { margin-top: 18px; padding: 14px 18px; background: #f0fdf4; border-radius: 8px; border-left: 4px solid #0f766e; display: none; }
.answer-section.show { display: block; }
.answer-label { font-size: 13px; font-weight: 700; color: #0f766e; margin-bottom: 6px; }
.answer-content { font-size: 14px; color: #374151; line-height: 1.8; }
.answer-content p { margin: 0 0 6px; }
.answer-content .correct-answer { color: #059669; font-weight: 600; }
.answer-content .answer-tip { font-size: 13px; color: #6b7280; }

.paper-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5e7eb; }
.nav-btn { padding: 10px 22px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.nav-btn.prev { background: #f3f4f6; color: #374151; }
.nav-btn.prev:hover { background: #e5e7eb; }
.nav-btn.next { background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%); color: #fff; }
.nav-btn.next:hover { box-shadow: 0 4px 12px rgba(15,118,110,0.28); }
.nav-btn.back { background: #fff; color: #0f766e; border: 1px solid #0f766e; }
.nav-btn.back:hover { background: #f0fdf4; }
.nav-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none !important; }

@media (max-width: 992px) {
    .exercise-paper { padding: 18px 16px; }
    .exercise-paper .paper-header { flex-direction: column; align-items: flex-start; }
    .paper-nav { flex-wrap: wrap; }
    .paper-nav .nav-btn { flex: 1; justify-content: center; }
}

@media (max-width: 992px) {
    .exam-layout { grid-template-columns: 1fr; }
    .sidebar { width: 100%; }
    .exam-detail-layout { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .exam-detail-sidebar { position: static; }
    .tree-node-header { flex-wrap: wrap; }
    .tree-node-label { flex-basis: 100%; white-space: normal; }
}
/* ==================== 考试记录页 ==================== */
.history-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.history-filter .filter-btn { padding: 7px 16px; border-radius: 20px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.history-filter .filter-btn:hover { border-color: #0f766e; color: #0f766e; }
.history-filter .filter-btn.active { background: #0f766e; border-color: #0f766e; color: #fff; }
.history-list { display: flex; flex-direction: column; gap: 14px; }
.history-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; transition: box-shadow 0.15s, border-color 0.15s; }
.history-card:hover { border-color: #d1fae5; box-shadow: 0 4px 16px rgba(15,118,110,0.1); }
.history-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f3f4f6; }
.history-card-title { font-size: 16px; font-weight: 700; color: #065f46; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.history-card-title .type-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.badge-mock { background: #dbeafe; color: #1d4ed8; }
.badge-formal { background: #d1fae5; color: #059669; }
.history-score { display: flex; align-items: baseline; gap: 4px; }
.score-value { font-size: 30px; font-weight: 800; line-height: 1; }
.score-pass { color: #059669; }
.score-fail { color: #ef4444; }
.score-pending { color: #d97706; }
.score-unit { font-size: 14px; color: #9ca3af; }
.history-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.history-meta-item { padding: 10px 14px; background: #f9fafb; border-radius: 8px; min-width: 0; }
.history-meta-label { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.history-meta-value { font-size: 13px; color: #374151; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.status-pass { background: #d1fae5; color: #059669; }
.status-fail { background: #fee2e2; color: #ef4444; }
.status-pending { background: #fef3c7; color: #d97706; }
.history-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid #f3f4f6; }
.history-actions .action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; }
.history-actions .action-btn.detail { background: #f0fdf4; color: #0f766e; }
.history-actions .action-btn.detail:hover { background: #0f766e; color: #fff; }
.history-actions .action-btn.analysis { background: #eff6ff; color: #1d4ed8; }
.history-actions .action-btn.analysis:hover { background: #1d4ed8; color: #fff; }
.history-actions .action-btn.retake { background: #fefce8; color: #ca8a04; }
.history-actions .action-btn.retake:hover { background: #ca8a04; color: #fff; }
.history-actions .action-btn.wrong { background: #fef2f2; color: #ef4444; }
.history-actions .action-btn.wrong:hover { background: #ef4444; color: #fff; }
.history-actions .action-btn.disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }

@media (max-width: 992px) {
    .history-meta { grid-template-columns: repeat(2, 1fr); }
    .history-card-header { flex-wrap: wrap; }
}

/* ===== 阅卷详情页 ===== */
.rd-paper { display: flex; flex-direction: column; gap: 16px; }
.rd-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.rd-summary-left { min-width: 0; }
.rd-title { font-size: 20px; font-weight: 700; color: #065f46; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-title .type-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: #374151; }
.rd-meta-item { display: inline-flex; align-items: baseline; gap: 6px; }
.rd-meta-label { font-size: 12px; color: #9ca3af; }
.rd-summary-right { flex-shrink: 0; text-align: right; }
.rd-score { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: 2px; }
.rd-score-unit { font-size: 14px; font-weight: 600; color: #9ca3af; margin-left: 6px; letter-spacing: 0; }
.rd-status { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.rd-navcard { padding: 18px 24px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.rd-navcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.rd-navcard-title { font-size: 15px; font-weight: 700; color: #065f46; }
.rd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #6b7280; }
.rd-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.rd-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid #e5e7eb; }
.rd-legend-dot.correct { background: #d1fae5; border-color: #059669; }
.rd-legend-dot.wrong { background: #fee2e2; border-color: #ef4444; }
.rd-legend-dot.partial { background: #fef3c7; border-color: #d97706; }
.rd-legend-dot.blank { background: #f3f4f6; border-color: #d1d5db; }
.rd-navgroup { margin-top: 14px; }
.rd-navgroup-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #374151; }
.rd-navgroup-count { font-size: 12px; font-weight: 400; color: #9ca3af; }
.rd-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-dot { width: 34px; height: 34px; border-radius: 7px; border: 2px solid #e5e7eb; background: #fff; color: #6b7280; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.rd-dot:hover { border-color: #0f766e; color: #0f766e; }
.rd-dot.correct { background: #d1fae5; border-color: #059669; color: #059669; }
.rd-dot.wrong { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.rd-dot.partial, .rd-dot.pending { background: #fef3c7; border-color: #d97706; color: #d97706; }
.rd-dot.blank { background: #f3f4f6; border-color: #d1d5db; color: #9ca3af; }
.rd-dot.active { box-shadow: 0 0 0 3px rgba(15,118,110,0.18); }
.rd-q { padding: 22px 24px; background: #fff; border-radius: 12px; border-left: 4px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.06); scroll-margin-top: 20px; }
.rd-q.hidden { display: none; }
.rd-q.correct { border-left-color: #059669; }
.rd-q.wrong { border-left-color: #ef4444; }
.rd-q.partial, .rd-q.pending { border-left-color: #d97706; }
.rd-q.blank { border-left-color: #d1d5db; }
.rd-q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid #f3f4f6; }
.rd-q-head-left { display: flex; align-items: center; gap: 10px; }
.rd-q-no { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.rd-q-type { padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.rd-q-head-right { display: flex; align-items: center; gap: 12px; }
.rd-badge { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rd-badge.correct { background: #d1fae5; color: #059669; }
.rd-badge.wrong { background: #fee2e2; color: #ef4444; }
.rd-badge.partial, .rd-badge.pending { background: #fef3c7; color: #d97706; }
.rd-badge.blank { background: #f3f4f6; color: #6b7280; }
.rd-q-score { font-size: 18px; font-weight: 800; color: #0f766e; }
.rd-q-score.zero { color: #ef4444; }
.rd-points { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rd-point { padding: 4px 10px; background: #ede9fe; color: #7c3aed; border-radius: 4px; font-size: 12px; font-weight: 600; }
.rd-material-tip { margin-bottom: 12px; padding: 6px 10px; background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 6px; font-size: 12px; color: #6b7280; }
.rd-q-body { margin-bottom: 16px; font-size: 15px; color: #1f2937; line-height: 1.8; }
.rd-options { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rd-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border: 2px solid #e5e7eb; border-radius: 8px; }
.rd-option.user-correct { background: #d1fae5; border-color: #059669; }
.rd-option.user-wrong { background: #fee2e2; border-color: #ef4444; }
.rd-option.correct-answer { background: #ecfdf5; border-color: #059669; }
.rd-option-letter { width: 26px; height: 26px; border-radius: 50%; background: #f3f4f6; color: #374151; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.rd-option.user-correct .rd-option-letter, .rd-option.correct-answer .rd-option-letter { background: #059669; color: #fff; }
.rd-option.user-wrong .rd-option-letter { background: #ef4444; color: #fff; }
.rd-option-text { flex: 1; padding-top: 3px; font-size: 14px; color: #374151; line-height: 1.6; }
.rd-option-badge { margin-left: auto; padding: 2px 8px; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 600; color: #6b7280; white-space: nowrap; flex-shrink: 0; }
.rd-option.user-correct .rd-option-badge, .rd-option.correct-answer .rd-option-badge { color: #059669; }
.rd-option.user-wrong .rd-option-badge { color: #ef4444; }
.rd-answers { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; padding: 14px 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; }
.rd-answer-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #374151; line-height: 1.7; }
.rd-answer-label { width: 64px; flex-shrink: 0; font-size: 13px; color: #9ca3af; }
.rd-answer-text { flex: 1; }
.rd-answer-text.right { color: #059669; font-weight: 600; }
.rd-answer-text em { color: #9ca3af; font-style: normal; }
.rd-analysis { margin-top: 16px; padding: 16px 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #0f766e; border-radius: 8px; }
.rd-analysis-label { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #0f766e; }
.rd-analysis-text { font-size: 14px; color: #374151; line-height: 1.8; }
.rd-q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.rd-error-actions { display: flex; gap: 10px; margin-top: 16px; }

@media (max-width: 768px) {
    .rd-summary { flex-direction: column; align-items: flex-start; }
    .rd-summary-right { text-align: left; }
    .rd-meta { flex-direction: column; gap: 6px; }
    .rd-q-head { flex-direction: column; align-items: flex-start; }
}

/* ===== 模拟考试页（Mock.tpl） ===== */
.mock-guide { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mock-guide-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #4b5563; line-height: 1.9; }
.mock-guide-no { flex-shrink: 0; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: #ccfbf1; color: #0f766e; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mock-guide-text { flex: 1; }
.mock-session { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 4px 2px; }
.mock-session-main { min-width: 0; }
.mock-session-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: #065f46; }
.mock-session-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 600; }
.mock-session-desc { margin-top: 10px; font-size: 13px; color: #6b7280; line-height: 1.8; }
.mock-session-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mock-paper-list { display: flex; flex-direction: column; }
.mock-paper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid #f3f4f6; }
.mock-paper:last-child { border-bottom: none; }
.mock-paper-main { min-width: 0; }
.mock-paper-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #065f46; }
.mock-paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: #6b7280; }
.mock-paper-meta b { color: #0f766e; font-weight: 700; }
.mock-paper-tag { padding: 2px 8px; border-radius: 4px; background: #ecfdf5; color: #0f766e; font-size: 11px; font-weight: 600; }
.mock-paper-action { flex-shrink: 0; }
.mock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.mock-btn.primary { background: #0f766e; color: #fff; }
.mock-btn.primary:hover { background: #115e59; }
.mock-btn.danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.mock-btn.danger:hover { background: #fef2f2; border-color: #fca5a5; }
.mock-btn.disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.mock-btn:disabled { opacity: .6; cursor: not-allowed; }
.mock-empty { padding: 50px 0; text-align: center; color: #9ca3af; }
.mock-empty p { margin: 10px 0 0; font-size: 15px; color: #6b7280; }
.mock-empty .mock-empty-tip { margin-top: 6px; font-size: 13px; color: #9ca3af; }

@media (max-width: 768px) {
    .mock-paper { flex-direction: column; align-items: flex-start; }
    .mock-paper-action { width: 100%; }
    .mock-paper-action .mock-btn { width: 100%; }
    .mock-session { flex-direction: column; align-items: flex-start; }
    .mock-session-actions { width: 100%; }
    .mock-session-actions .mock-btn { flex: 1; }
}
/* ===== 答题页（Paper.tpl） ===== */
body.paper-body-page { margin: 0; padding: 0; background: #f3f4f6; }
.paper-page { background: #f3f4f6; }
.paper-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; max-width: 1440px; margin: 0 auto; padding: 16px 24px 40px; align-items: start; }
.paper-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 100px); overflow-y: auto; }
.paper-side-user { background: #fff; border-radius: 12px; padding: 18px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; }
.paper-avatar { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.paper-user-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.paper-user-meta { margin-top: 6px; font-size: 12px; color: #9ca3af; word-break: break-all; }
.paper-user-meta b { color: #374151; font-weight: 600; }
.paper-navcard { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.paper-navcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.paper-navcard-title { font-size: 15px; font-weight: 700; color: #065f46; }
.paper-navcard-progress { font-size: 13px; color: #6b7280; }
.paper-navcard-progress b { color: #0f766e; font-weight: 700; }
.paper-navgroup { margin-top: 12px; }
.paper-navgroup-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #374151; }
.paper-navgroup-count { font-size: 12px; font-weight: 400; color: #9ca3af; }
.paper-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.paper-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #6b7280; }
.paper-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.rd-dot.flagged { background: #fef3c7; border-color: #d97706; color: #d97706; }
.paper-main { min-width: 0; }
/* 答题页专用：仅作用于 .paper-page，避免污染练习页的同名头部 */
.paper-page .paper-header { position: sticky; top: 0; z-index: 30; background: linear-gradient(135deg, #065f46, #0f766e); box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.paper-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; padding: 12px 24px; }
.paper-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.paper-type-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.paper-type-badge.mock { background: rgba(255,255,255,.2); color: #fff; }
.paper-type-badge.formal { background: #fecaca; color: #991b1b; }
.paper-exam-name { font-size: 18px; font-weight: 700; color: #fff; }
.paper-exam-meta { font-size: 12px; color: rgba(255,255,255,.75); }
.paper-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.paper-timer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 20px; font-weight: 800; font-family: monospace; letter-spacing: 1px; color: #fff; }
.paper-timer.urgent { background: #ef4444; color: #fff; }
.paper-save-state { font-size: 12px; color: rgba(255,255,255,.75); min-width: 76px; text-align: right; }
.paper-submit { padding: 9px 22px; border: none; border-radius: 8px; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; }
.paper-submit:hover { box-shadow: 0 4px 12px rgba(239,68,68,.3); }
.paper-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.paper-body { display: flex; flex-direction: column; gap: 14px; }
.paper-group { display: flex; flex-direction: column; gap: 14px; }
.paper-group-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding-left: 10px; border-left: 4px solid #0f766e; font-size: 16px; font-weight: 700; color: #065f46; }
.paper-group-count { font-size: 12px; font-weight: 400; color: #9ca3af; }
.paper-q { background: #fff; border-radius: 12px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-left: 4px solid transparent; scroll-margin-top: 96px; transition: border-color .2s; }
.paper-q.active { border-left-color: #0f766e; }
.paper-q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.paper-q-head-left { display: flex; align-items: center; gap: 10px; }
.paper-q-no { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #134e4a); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.paper-q-hint { padding: 2px 8px; border-radius: 4px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 600; }
.paper-bottom { padding: 20px 0 10px; text-align: center; }
.paper-bottom-tip { margin-top: 10px; font-size: 13px; color: #9ca3af; }
.paper-error { max-width: 560px; margin: 80px auto; padding: 40px 32px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); text-align: center; }
.paper-error-box { color: #9ca3af; }
.paper-error-title { font-size: 18px; font-weight: 700; color: #065f46; }
.paper-error-text { margin: 12px 0 0; font-size: 14px; color: #6b7280; line-height: 1.8; }
.paper-error-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

@media (max-width: 992px) {
    .paper-shell { grid-template-columns: 1fr; padding: 12px 14px 30px; }
    .paper-side { position: static; max-height: none; }
    .paper-header-inner { padding: 10px 14px; }
    .paper-exam-meta { display: none; }
}
/* ===================== 答题页：一页一题模式 ===================== */
.paper-q.hidden,
.paper-group.hidden { display: none; }
.paper-page.single-mode .paper-body { margin: 0 auto; }
.paper-page.single-mode .paper-q { min-height: 320px; }
.paper-single-bar { display: none; }
.paper-page.single-mode .paper-single-bar {
    display: flex; position: sticky; bottom: 0; z-index: 25; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 16px; padding: 12px 18px; background: #fff; border-radius: 12px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.paper-single-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.paper-single-index { font-size: 18px; font-weight: 800; color: #065f46; font-family: monospace; letter-spacing: 1px; }
.paper-single-tip { font-size: 12px; color: #9ca3af; }
.paper-page.single-mode .paper-q + .paper-single-bar { margin-bottom: 10px; }

/* ===================== 成绩单页 ===================== */
.hr-wrap { display: flex; flex-direction: column; gap: 14px; }
.hr-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 26px 28px; }
.hr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hr-exam { font-size: 22px; font-weight: 800; color: #111827; line-height: 1.5; }
.hr-verdict { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 17px; font-weight: 700; }
.hr-verdict.pass { color: #0f9d58; }
.hr-verdict.fail { color: #ef4444; }
.hr-verdict.pending { color: #d97706; }
.hr-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; font-size: 13px; color: #6b7280; }
.hr-meta b { color: #111827; font-weight: 700; }
.hr-score { text-align: center; flex-shrink: 0; }
.hr-score-value { font-size: 56px; font-weight: 900; line-height: 1; font-family: 'Mistral', Georgia, serif; letter-spacing: 2px; }
.hr-score-value.pass { color: #ef4444; }
.hr-score-value.fail { color: #ef4444; }
.hr-score-value.pending { color: #d97706; }
.hr-score-unit { font-size: 13px; color: #9ca3af; }
.hr-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-left: 10px; border-left: 4px solid #0f766e; font-size: 16px; font-weight: 700; color: #065f46; }
.hr-table-wrap { overflow-x: auto; }
.hr-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.hr-table th { padding: 10px 8px; background: #f9fafb; border: 1px solid #e5e7eb; font-weight: 700; color: #374151; white-space: nowrap; }
.hr-table td { padding: 10px 8px; border: 1px solid #e5e7eb; color: #4b5563; }
.hr-table td:first-child { text-align: left; }
.hr-table .rate-cell { font-weight: 700; color: #0f766e; }
.hr-empty { padding: 18px 0; text-align: center; font-size: 13px; color: #9ca3af; }
.hr-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hr-actions .nav-btn { display: inline-flex; align-items: center; gap: 6px; }

/* ===================== 试题收藏 ===================== */
.fv-wrap { display: flex; flex-direction: column; gap: 14px; }
.fv-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 18px 22px; }
.fv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.fv-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fv-no { width: 28px; height: 28px; border-radius: 50%; background: #0f766e; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fv-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.fv-time { font-size: 12px; color: #9ca3af; }
.fv-unfavor { padding: 5px 12px; border: 1px solid #fca5a5; border-radius: 6px; background: #fff; color: #ef4444; font-size: 12px; cursor: pointer; }
.fv-unfavor:hover { background: #fef2f2; }
.fv-material { margin-bottom: 10px; padding: 10px 14px; border-left: 4px solid #0f766e; border-radius: 0 8px 8px 0; background: #f8fafc; }
.fv-material-label { font-size: 12px; font-weight: 700; color: #0f766e; }
.fv-material-text { margin-top: 4px; font-size: 14px; color: #374151; line-height: 1.8; }
.fv-question { font-size: 15px; color: #111827; line-height: 1.9; }
.fv-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fv-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #374151; }
.fv-option.correct { border-color: #0f9d58; background: #f0fdf4; }
.fv-option-letter { width: 24px; height: 24px; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fv-option.correct .fv-option-letter { background: #0f9d58; color: #fff; }
.fv-option-badge { margin-left: auto; padding: 2px 8px; border-radius: 4px; background: #dcfce7; color: #15803d; font-size: 12px; }
.fv-answer { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #f9fafb; font-size: 14px; color: #4b5563; line-height: 1.9; }
.fv-answer b { color: #065f46; }
.fv-answer .fv-explain { display: block; margin-top: 6px; }
.fv-empty { padding: 40px 0; text-align: center; color: #9ca3af; font-size: 14px; }

/* ===================== 试题库 ===================== */
.qb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 12px; }
.qb-toolbar pe-input,
.qb-toolbar pe-select { width: 180px; }
.qb-table { width: 100%; }
.qb-empty { padding: 30px 0; text-align: center; color: #9ca3af; font-size: 13px; }
.qb-detail { padding: 4px 0; }
.qb-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.qb-detail-question { font-size: 15px; line-height: 1.9; color: #111827; }
.qb-detail-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.qb-detail-option { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; color: #374151; }
.qb-detail-answer { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f9fafb; font-size: 14px; color: #4b5563; }
.qb-detail-option.correct { border-color: #10b981; background: #ecfdf5; color: #047857; }
.qb-detail-material { white-space: pre-line; }
.qb-detail-children { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.qb-detail-child { padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.qb-detail-child-title { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #0f766e; }
.qb-detail-child .qb-detail-question { font-size: 14px; line-height: 1.8; }
.qb-detail-child .qb-detail-option { padding: 6px 10px; }
.qb-detail-child .qb-detail-answer { margin-top: 8px; background: #f3f4f6; }
/* 收藏按钮（练习页 / 阅卷页共用） */
.favor-btn { border-color: #0f766e; color: #0f766e; }
.favor-btn:hover, .favor-btn.favored { background: #ecfdf5; }
.rd-q-head-right .favor-btn { padding: 4px 10px; font-size: 12px; }
/* 已作答状态：题目卡左侧序号 + 答题卡序号点亮 */
.paper-q-no.answered { background: #ecfdf5; color: #047857; border: 2px solid #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
.rd-dot.answered { background: #ecfdf5; border-color: #10b981; color: #047857; }
.rd-dot.answered.flagged { background: #fef3c7; border-color: #d97706; color: #b45309; }

/* ===================== 正式考试页（Exam.tpl） ===================== */
.formal-number-tip {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}
.formal-start {
    padding: 36px 0 30px;
    text-align: center;
}
.formal-start-btn {
    min-width: 240px;
    height: 46px;
    font-size: 16px;
}
.formal-start-btn.disabled {
    display: inline-flex;
}
.formal-start-tip {
    margin: 16px 0 0;
    font-size: 13px;
    color: #9ca3af;
}
.formal-notice-action {
    margin-top: 18px;
}

@media (max-width: 640px) {
    .formal-start-btn { width: 100%; min-width: 0; }
}
