/* 大学生心理健康教育随堂测验-模拟 清爽蓝绿高校教务测验风格 (800题全库升级版) */
:root {
  --brand-primary: #168799;
  --brand-primary-dark: #0f6c7b;
  --brand-primary-light: #2aa3b5;
  --brand-tint: #e8f6f8;
  --brand-tint-border: #9fd6df;
  --bg-page: #f2f6f9;
  --bg-card: #ffffff;
  --bg-subtle: #f5f8fa;
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #dce5ec;
  --border-medium: #cbd5e1;
  --timer-red: #dc2626;
  --timer-border: #ef4444;
  --timer-bg: #fff5f5;
  --khaki-btn: #b99765;
  --khaki-btn-hover: #a38252;
  --correct-green: #16a34a;
  --correct-bg: #f0fdf4;
  --correct-border: #86efac;
  --wrong-red: #dc2626;
  --wrong-bg: #fef2f2;
  --wrong-border: #fca5a5;
  --flag-amber: #f59e0b;
  --shadow-soft: 0 4px 20px rgba(15, 52, 67, 0.06);
  --radius-lg: 14px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部高校教务青蓝导航栏 */
.top-navbar {
  background: linear-gradient(125deg, #158294 0%, #249eb0 55%, #19899b 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 76, 92, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-navbar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-title-top {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.paper-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  padding: 3px 8px 3px 10px;
}

.paper-selector-label {
  font-size: 12.5px;
  opacity: 0.94;
  white-space: nowrap;
}

.paper-select {
  background: #ffffff;
  color: #0f525e;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.btn-top {
  border: none;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-top-reroll {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-top-reroll:hover {
  background: rgba(255, 255, 255, 0.32);
}

.btn-top-reset {
  background: rgba(15, 45, 55, 0.22);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-top-reset:hover {
  background: rgba(15, 45, 55, 0.36);
}

.btn-top-submit {
  background: #ffffff;
  color: #0f6c7b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-top-submit:hover {
  background: #f0fdfa;
  transform: translateY(-1px);
}

/* 面包屑与大标题区 */
.page-header-band {
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px 8px;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.breadcrumb-links .crumb-link {
  color: var(--brand-primary);
  font-weight: 500;
}

.breadcrumb-links .crumb-sep {
  margin: 0 6px;
  color: #94a3b8;
}

.save-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  padding: 2px 10px;
  border-radius: 999px;
}

.exam-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exam-hero-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f43f5e, #ef4444);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.28);
  flex-shrink: 0;
}

.exam-main-heading {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.2px;
}

.bank-scale-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0f6c7b;
  background: #e0f4f7;
  border: 1px solid #a5dce6;
  padding: 2px 9px;
  border-radius: 999px;
}

.mobile-nav-toggle {
  display: none;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 核心双栏主体：左侧主答题区 + 右侧固定答题导航页（贴合参考截图视觉习惯） */
.workspace-container {
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 20px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 20px;
  align-items: start;
  flex: 1;
}

/* 左侧答题导航栏（深度优化适配100题与800题全库） */
.left-nav-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 66px;
  max-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-panel-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-light);
  background: #fafcfd;
}

.nav-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.nav-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-locate-current {
  border: 1px solid #9fd6df;
  background: #e8f6f8;
  color: #0f6c7b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-locate-current:hover {
  background: #d2eef3;
}

.nav-paper-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-tint);
  padding: 2px 7px;
  border-radius: 4px;
}

.nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.swatch-unanswered { background: #ffffff; border: 1.5px solid #cbd5e1; }
.swatch-answered { background: var(--brand-primary); border: 1.5px solid var(--brand-primary-dark); }
.swatch-current { background: #ffffff; border: 2px solid #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); }
.swatch-flagged { background: #fffbeb; border: 1.5px solid var(--flag-amber); }
.swatch-correct { background: var(--correct-green); }
.swatch-wrong { background: var(--wrong-red); }

/* 左侧导航快速筛选条（适配800题高速定位与状态过滤） */
.nav-quick-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.nav-status-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.btn-nav-filter {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 4px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.btn-nav-filter.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #ffffff;
}

.nav-range-select {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.nav-scroll-body {
  padding: 11px 13px;
  overflow-y: auto;
  flex: 1;
}

.nav-section-block {
  margin-bottom: 14px;
}

.nav-section-block:last-child {
  margin-bottom: 4px;
}

.nav-section-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-section-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.q-nav-btn {
  position: relative;
  height: 31px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.q-nav-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.q-nav-btn.is-answered {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #ffffff;
  font-weight: 700;
}

.q-nav-btn.is-answered:hover {
  background: var(--brand-primary-dark);
  color: #ffffff;
}

.q-nav-btn.is-current {
  border: 2px solid #0f172a;
  box-shadow: 0 0 0 2.5px #38bdf8;
  z-index: 2;
}

.q-nav-btn.is-correct {
  background: var(--correct-green);
  border-color: #15803d;
  color: #ffffff;
  font-weight: 700;
}

.q-nav-btn.is-wrong {
  background: var(--wrong-red);
  border-color: #b91c1c;
  color: #ffffff;
  font-weight: 700;
}

.q-nav-btn .flag-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flag-amber);
  border: 1.5px solid #ffffff;
}

.nav-empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 6px;
  background: #f8fafc;
  border-radius: 6px;
}

.nav-panel-footer {
  padding: 11px 14px 13px;
  border-top: 1px solid var(--border-light);
  background: #fafcfd;
}

.nav-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.nav-stats-row strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #168799, #2dd4bf);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.btn-nav-submit {
  width: 100%;
  padding: 9.5px 14px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #168799, #127180);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(22, 135, 153, 0.22);
}

.btn-nav-submit:hover {
  background: linear-gradient(135deg, #127180, #0d5966);
}

/* 右侧主答题卡片容器 */
.right-main-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  padding: 22px 26px 28px;
  min-height: 540px;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.module-crumb-tag {
  font-size: 13px;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 4px 11px;
  border-radius: 6px;
  font-weight: 500;
}

.timer-widget-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.timer-box {
  border: 1.5px solid var(--timer-border);
  background: var(--timer-bg);
  color: var(--timer-red);
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 全库800题正向计时清爽青蓝样式 */
.timer-box.is-stopwatch {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0369a1;
}

.timer-box.is-urgent {
  background: #fee2e2;
  border-color: #dc2626;
  color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: pulseUrgent 1.2s infinite;
}

@keyframes pulseUrgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

.timer-box.is-hidden-val {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}

.btn-timer-toggle {
  background: var(--khaki-btn);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-timer-toggle:hover {
  background: var(--khaki-btn-hover);
}

/* 考前说明引导卡 */
.start-guide-box {
  max-width: 780px;
  margin: 16px auto 10px;
  background: linear-gradient(180deg, #f8fcfd 0%, #ffffff 100%);
  border: 1px solid #cde6ec;
  border-radius: 12px;
  padding: 26px 30px;
}

.start-guide-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f525e;
  margin-bottom: 6px;
}

.start-guide-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.difficulty-ratio-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 13px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-size: 12.5px;
  color: #0f525e;
}

.diff-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.diff-pill.basic { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.diff-pill.inter { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }
.diff-pill.adv   { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

.start-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.start-metric-item {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.start-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-primary);
}

.start-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.start-rules-list {
  background: #f1f8fa;
  border-left: 4px solid var(--brand-primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 22px;
}

.start-rules-list li {
  margin-left: 18px;
  margin-bottom: 6px;
}

.start-rules-list li:last-child {
  margin-bottom: 0;
}

.btn-start-exam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #168799, #1e9db1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 135, 153, 0.28);
  transition: all 0.18s ease;
}

.btn-start-exam:hover {
  background: linear-gradient(135deg, #127180, #168799);
  transform: translateY(-1px);
}

/* 试题顶部灰底信息条 */
.q-meta-strip {
  background: #f3f6f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 13px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: #475569;
}

.q-meta-num {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.q-meta-num span {
  font-size: 18px;
  color: #0f525e;
}

.q-meta-divider {
  color: #cbd5e1;
}

.q-meta-status.unanswered { color: #64748b; }
.q-meta-status.answered { color: #0f766e; font-weight: 600; }

.btn-flag-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: #168799;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-flag-toggle:hover { background: #e0f2fe; }
.btn-flag-toggle.is-flagged {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

/* 题干与选项主框 */
.question-body-box {
  background: #f9fcfd;
  border: 1px solid #d8eaf0;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.q-stem-line {
  font-size: 16.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 16px;
}

.q-type-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: 1px;
}

.q-type-badge.single { background: #e0f4f7; color: #0f6c7b; border: 1px solid #a5dce6; }
.q-type-badge.multi  { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }

.q-select-hint {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
}

.option-row:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
}

.option-row.is-selected {
  border-color: var(--brand-primary);
  background: #e6f6f9;
  box-shadow: 0 2px 6px rgba(22, 135, 153, 0.08);
}

.opt-indicator {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opt-indicator.radio { border-radius: 50%; }
.opt-indicator.checkbox { border-radius: 4px; }

.option-row.is-selected .opt-indicator {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
}

.opt-indicator-inner {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  opacity: 0;
}

.option-row.is-selected .opt-indicator-inner { opacity: 1; }

.opt-letter {
  font-weight: 700;
  color: #1e293b;
  min-width: 22px;
  font-size: 15px;
}

.opt-text {
  font-size: 15px;
  color: #1e293b;
  flex: 1;
  line-height: 1.55;
}

/* 「显示答案」开启时的选项实时正误高亮提示 */
.option-row.is-peek-correct {
  border-color: var(--correct-green);
  background: var(--correct-bg);
}

.option-row.is-peek-wrong {
  border-color: var(--wrong-red);
  background: var(--wrong-bg);
}

.opt-peek-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}

.opt-peek-tag.right {
  background: #dcfce7;
  color: #15803d;
}

.opt-peek-tag.wrong {
  background: #fee2e2;
  color: #b91c1c;
}

/* 题干下方即刻展开的标准答案与详细解析面板 */
.inline-answer-panel {
  margin-top: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border: 1.5px solid #86efac;
  border-radius: 8px;
  animation: fadeSlideDown 0.18s ease;
}

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

.inline-ans-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 14.5px;
}

.inline-ans-std {
  color: #15803d;
  font-weight: 800;
  font-size: 16px;
}

.inline-ans-user.ok {
  color: #15803d;
  font-weight: 700;
}

.inline-ans-user.err {
  color: #dc2626;
  font-weight: 700;
}

.inline-ans-user.empty {
  color: #64748b;
  font-weight: 600;
}

.inline-ans-exp {
  font-size: 14px;
  color: #0c4a6e;
  line-height: 1.68;
  padding-top: 8px;
  border-top: 1px dashed #bae6fd;
}

/* 「显示答案 / 隐藏答案」醒目按钮 */
.btn-peek-answer {
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #f59e0b;
  background: #fffbeb;
  color: #b45309;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-peek-answer:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.btn-peek-answer.is-open {
  background: #0f766e;
  border-color: #0d9488;
  color: #ffffff;
}

.q-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.shortcut-tip { font-size: 12.5px; color: var(--text-muted); }

.pager-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-pager {
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.btn-pager:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-pager:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-pager-primary {
  background: #1698ad;
  border-color: #138496;
  color: #ffffff;
}

.btn-pager-primary:hover:not(:disabled) {
  background: #127e90;
  color: #ffffff;
}

/* 成绩报告与错题解析复盘区 */
.result-report-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 60%, #eff6ff 100%);
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.result-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px dashed #cbd5e1;
  margin-bottom: 18px;
}

.score-hero-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.score-big-num {
  font-size: 48px;
  font-weight: 800;
  color: #0f766e;
  line-height: 1;
}

.score-big-num.is-fail { color: #dc2626; }

.score-total-unit {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

.grade-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
}

.grade-pill.pass { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.grade-pill.fail { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.result-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-result-action {
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
}

.btn-result-action:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-result-action.primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #ffffff;
}

.btn-result-action.primary:hover {
  background: var(--brand-primary-dark);
  color: #ffffff;
}

.result-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.breakdown-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.breakdown-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.breakdown-val { font-size: 18px; font-weight: 700; color: #1e293b; }
.breakdown-sub { font-size: 12px; color: #0f766e; margin-top: 2px; }

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 8px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-filter-tab {
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-filter-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #ffffff;
}

.review-selects-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-type-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  color: #334155;
  background: #ffffff;
}

.review-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 13px;
  color: #0c4a6e;
}

.review-page-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-rev-page {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #93c5fd;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-rev-page.active {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-q-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  background: #ffffff;
  transition: box-shadow 0.25s ease;
}

.review-q-card.is-wrong-card { border-left: 4px solid var(--wrong-red); }
.review-q-card.is-correct-card { border-left: 4px solid var(--correct-green); }
.review-q-card.flash-focus { box-shadow: 0 0 0 3px #38bdf8; }

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}

.review-result-tag {
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
}

.review-result-tag.ok { background: #dcfce7; color: #15803d; }
.review-result-tag.err { background: #fee2e2; color: #b91c1c; }

.review-stem {
  font-size: 15.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.review-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.review-opt-item {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-opt-item.opt-right {
  background: var(--correct-bg);
  border-color: var(--correct-border);
  color: #14532d;
  font-weight: 600;
}

.review-opt-item.opt-user-wrong {
  background: var(--wrong-bg);
  border-color: var(--wrong-border);
  color: #7f1d1d;
}

.opt-tag-mini { font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.review-answer-compare {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}

.ans-yours-wrong { color: var(--wrong-red); font-weight: 800; }
.ans-yours-right { color: var(--correct-green); font-weight: 800; }
.ans-standard-right { color: var(--correct-green); font-weight: 800; }

.review-explanation-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #0c4a6e;
  line-height: 1.65;
}

.empty-review-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.page-footer {
  background: linear-gradient(90deg, #0b5e6f 0%, #13768a 100%);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 14px 20px;
  font-size: 12.5px;
  margin-top: auto;
}

/* 模态框与 Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
}

.modal-backdrop.is-open { display: flex; }

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #e2e8f0;
}

.modal-title { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.modal-message { font-size: 14.5px; color: #475569; line-height: 1.65; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.btn-modal {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.btn-modal.confirm {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
  color: #ffffff;
}

.toast-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 350;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast-banner.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

@media (max-width: 980px) {
  .workspace-container { grid-template-columns: 1fr; }
  .mobile-nav-toggle { display: inline-flex; align-items: center; gap: 5px; }
  .left-nav-panel {
    position: fixed;
    top: 0; right: 0; left: auto; bottom: 0;
    width: min(340px, 90vw);
    max-height: 100vh;
    border-radius: 14px 0 0 14px;
    z-index: 250;
    transform: translateX(105%);
    transition: transform 0.24s ease;
  }
  .left-nav-panel.mobile-open { transform: translateX(0); }
  .mobile-drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 240;
    display: none;
  }
  .mobile-drawer-mask.open { display: block; }
  .start-metrics-grid, .result-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .right-main-card { padding: 16px 14px 22px; }
  .start-guide-box { padding: 20px 16px; }
  .question-body-box { padding: 16px 14px; }
  .exam-main-heading { font-size: 18px; }
}
