:root {
  --gov-blue: #0f4c81;
  --gov-blue-dark: #0a365c;
  --gov-blue-light: #e8f1fa;
  --accent-blue: #1d6fa5;
  --bg-page: #edf2f7;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-sub: #475569;
  --ok-green: #15803d;
  --ok-bg: #dcfce7;
  --err-red: #b91c1c;
  --err-bg: #fee2e2;
  --warn-orange: #c2410c;
  --warn-bg: #ffedd5;
  --font-scale: 1;
}

body.large-font {
  --font-scale: 1.18;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "SimHei", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部政务考场标题栏 */
.sys-header {
  background: linear-gradient(90deg, var(--gov-blue-dark) 0%, var(--gov-blue) 60%, #17629f 100%);
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  flex-wrap: wrap;
}

.sys-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sys-emblem {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.sys-title-main {
  font-size: calc(19px * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sys-title-sub {
  font-size: calc(13px * var(--font-scale));
  opacity: 0.88;
}

.sys-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: calc(14px * var(--font-scale));
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tool-btn.active {
  background: #f59e0b;
  color: #111827;
  border-color: #fbbf24;
}

/* 主视图容器 */
.view-section {
  display: none;
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px;
}

.view-section.active {
  display: flex;
  flex-direction: column;
}

/* ==================== 1. 考前登录确认首页 ==================== */
.home-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  margin-top: 6px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.panel-head {
  background: var(--gov-blue-light);
  border-bottom: 1px solid var(--border-color);
  color: var(--gov-blue-dark);
  font-weight: 700;
  padding: 11px 16px;
  font-size: calc(16px * var(--font-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-body {
  padding: 18px;
}

.candidate-photo-frame {
  width: 124px;
  height: 152px;
  margin: 0 auto 12px;
  border: 2px solid #94a3b8;
  background: #f8fafc;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.verify-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #15803d;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  padding: 3px 0;
  font-weight: 700;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(14px * var(--font-scale));
}

.info-table th,
.info-table td {
  padding: 8px 6px;
  border-bottom: 1px dashed #e2e8f0;
  text-align: left;
}

.info-table th {
  color: var(--text-sub);
  width: 96px;
  font-weight: 600;
}

.name-input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  font-size: calc(14px * var(--font-scale));
  font-family: inherit;
}

.rule-list {
  margin: 0 0 18px 0;
  padding-left: 20px;
  font-size: calc(15px * var(--font-scale));
}

.rule-list li {
  margin-bottom: 8px;
}

.highlight-num {
  color: var(--err-red);
  font-weight: 700;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 18px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.mode-btn:hover {
  border-color: var(--gov-blue);
  background: #f8fbff;
  transform: translateY(-1px);
}

.mode-btn.primary {
  background: linear-gradient(180deg, #1b65a6 0%, #0f4c81 100%);
  color: #ffffff;
  border-color: #0a365c;
  grid-column: span 2;
}

.mode-btn.primary:hover {
  background: linear-gradient(180deg, #1e73bd 0%, #115591 100%);
}

.mode-btn.primary .mode-desc {
  color: #dbeafe;
}

.mode-title {
  font-size: calc(19px * var(--font-scale));
  font-weight: 700;
  margin-bottom: 5px;
}

.mode-desc {
  font-size: calc(14px * var(--font-scale));
  color: var(--text-sub);
}

.exam-options-row {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: calc(14px * var(--font-scale));
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.stats-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}

.stat-val {
  font-size: calc(20px * var(--font-scale));
  font-weight: 800;
  color: var(--gov-blue);
}

.stat-lbl {
  font-size: calc(12px * var(--font-scale));
  color: var(--text-sub);
}

/* ==================== 2. 真实考场三栏布局 ==================== */
.exam-layout {
  display: grid;
  grid-template-columns: 245px 1fr 250px;
  gap: 14px;
  flex: 1;
  align-items: stretch;
}

.exam-left-col,
.exam-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-photo {
  width: 98px;
  height: 120px;
  margin: 0 auto 8px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #f8fafc;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timer-box {
  background: #ffffff;
  border: 2px solid var(--gov-blue);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.timer-label {
  font-size: calc(14px * var(--font-scale));
  color: var(--text-sub);
  font-weight: 700;
}

.timer-clock {
  font-size: calc(34px * var(--font-scale));
  font-weight: 800;
  color: var(--gov-blue-dark);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.timer-clock.urgent {
  color: var(--err-red);
  animation: pulseUrgent 1s infinite;
}

@keyframes pulseUrgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hint-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px;
  font-size: calc(14px * var(--font-scale));
  color: #78350f;
  flex: 1;
}

.hint-box-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #92400e;
}

/* 中央主答题区 */
.exam-center-col {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.q-topbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.q-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: calc(13px * var(--font-scale));
  font-weight: 700;
}

.badge-type {
  background: var(--gov-blue);
  color: #ffffff;
}

.badge-cat {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.q-progress-text {
  font-weight: 700;
  color: var(--gov-blue-dark);
  font-size: calc(16px * var(--font-scale));
}

.practice-filter-bar {
  display: none;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.practice-filter-bar.active {
  display: flex;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #94a3b8;
  background: #ffffff;
  cursor: pointer;
  font-size: calc(13px * var(--font-scale));
  font-weight: 600;
}

.filter-chip.active {
  background: var(--gov-blue);
  color: #ffffff;
  border-color: var(--gov-blue);
}

.q-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.q-stem {
  font-size: calc(21px * var(--font-scale));
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

/* 图形与动画舞台 */
.q-visual-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  min-height: 150px;
}

.flash-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flash-banner {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: calc(15px * var(--font-scale));
  font-weight: 600;
}

.flash-banner.active {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.flash-banner.done {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.flash-num-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.flash-num-card {
  width: 64px;
  height: 76px;
  background: #ffffff;
  border: 3px solid var(--gov-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.flash-item-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.flash-item-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  font-weight: 700;
  font-size: calc(15px * var(--font-scale));
}

.flash-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 128px);
  grid-template-rows: repeat(2, 108px);
  gap: 10px;
}

.grid-cell-box {
  background: #ffffff;
  border: 2px solid #64748b;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-pos-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 12px;
  color: #64748b;
}

.grid-ball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #1e293b;
}

.flash-arrow-box {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
}

.flash-hidden-placeholder {
  text-align: center;
  padding: 18px 16px;
  color: var(--text-sub);
  font-size: calc(16px * var(--font-scale));
  font-weight: 600;
}

.hidden-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.replay-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffffff;
  border: 2px solid var(--gov-blue);
  color: var(--gov-blue);
  border-radius: 6px;
  font-size: calc(14px * var(--font-scale));
  font-weight: 700;
  cursor: pointer;
}

.replay-btn:hover {
  background: var(--gov-blue-light);
}

.stroop-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px 44px;
}

.stroop-word {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
}

.compare-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  flex-wrap: wrap;
}

.compare-side {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.side-title {
  font-weight: 700;
  color: var(--gov-blue);
  margin-bottom: 8px;
}

.side-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.compare-divider {
  font-weight: 900;
  font-size: 22px;
  color: #64748b;
}

.size-signs-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.size-sign-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.size-idx {
  background: #e2e8f0;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.lines-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.line-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-tag {
  font-weight: 700;
  width: 44px;
}

.line-bar {
  height: 16px;
  border-radius: 8px;
}

.pattern-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pattern-cell,
.pattern-qmark {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pattern-qmark {
  font-size: 32px;
  font-weight: 900;
  color: var(--err-red);
  border-style: dashed;
  border-color: var(--err-red);
}

.diff-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.diff-box {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.diff-label {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--gov-blue);
}

.math-card {
  background: #ffffff;
  border: 2px solid var(--gov-blue);
  border-radius: 10px;
  padding: 18px 34px;
  font-size: 34px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  letter-spacing: 1px;
}

.anim-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.anim-status {
  font-weight: 700;
  color: var(--gov-blue-dark);
  font-size: calc(15px * var(--font-scale));
}

.tl-box {
  background: #1e293b;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  border: 3px solid #0f172a;
}

.tl-bulb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #475569;
  border: 2px solid #0f172a;
  transition: all 0.15s;
}

.tl-bulb.on-red {
  background: #ef4444;
  box-shadow: 0 0 18px #ef4444;
}

.tl-bulb.on-yellow {
  background: #facc15;
  box-shadow: 0 0 18px #facc15;
}

.tl-bulb.on-green {
  background: #22c55e;
  box-shadow: 0 0 18px #22c55e;
}

/* 选项大按钮区 */
.options-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-wrap.judge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.options-wrap.hidden-during-flash {
  opacity: 0.3;
  pointer-events: none;
}

.opt-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main);
  font-size: calc(18px * var(--font-scale));
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.opt-btn:hover:not(:disabled) {
  border-color: var(--gov-blue);
  background: #f0f7ff;
}

.opt-btn.selected {
  border-color: var(--gov-blue);
  background: #dbeafe;
  color: #1e3a8a;
}

.opt-btn.correct {
  border-color: var(--ok-green);
  background: var(--ok-bg);
  color: #14532d;
}

.opt-btn.wrong {
  border-color: var(--err-red);
  background: var(--err-bg);
  color: #7f1d1d;
}

.opt-key {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.opt-btn.selected .opt-key {
  background: var(--gov-blue);
  color: #ffffff;
}

.opt-btn.correct .opt-key {
  background: var(--ok-green);
  color: #ffffff;
}

.opt-btn.wrong .opt-key {
  background: var(--err-red);
  color: #ffffff;
}

.judge-layout .opt-btn {
  justify-content: center;
  min-height: 70px;
  font-size: calc(21px * var(--font-scale));
}

/* 解析区 */
.explain-box {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 5px solid var(--gov-blue);
  background: #f8fafc;
  font-size: calc(16px * var(--font-scale));
}

.explain-box.active {
  display: block;
}

.explain-box.is-ok {
  border-left-color: var(--ok-green);
  background: #f0fdf4;
}

.explain-box.is-err {
  border-left-color: var(--err-red);
  background: #fef2f2;
}

/* 底部操作条 */
.q-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 11px 22px;
  min-height: 48px;
  border-radius: 6px;
  border: 2px solid var(--gov-blue);
  background: #ffffff;
  color: var(--gov-blue);
  font-size: calc(16px * var(--font-scale));
  font-weight: 700;
  cursor: pointer;
}

.action-btn:hover:not(:disabled) {
  background: var(--gov-blue-light);
}

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

.action-btn.primary {
  background: var(--gov-blue);
  color: #ffffff;
}

.action-btn.primary:hover:not(:disabled) {
  background: var(--gov-blue-dark);
}

.action-btn.submit {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
}

.action-btn.submit:hover:not(:disabled) {
  background: #b91c1c;
}

/* 右侧答题卡 */
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sheet-grid.practice-many {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.sheet-cell {
  height: 42px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  font-weight: 700;
  font-size: calc(15px * var(--font-scale));
  cursor: pointer;
  color: #0f172a;
}

.sheet-cell.answered {
  background: var(--gov-blue);
  border-color: var(--gov-blue-dark);
  color: #ffffff;
}

.sheet-cell.correct {
  background: var(--ok-green);
  border-color: #14532d;
  color: #ffffff;
}

.sheet-cell.wrong {
  background: var(--err-red);
  border-color: #7f1d1d;
  color: #ffffff;
}

.sheet-cell.current {
  box-shadow: 0 0 0 3px #f59e0b;
  border-color: #d97706;
}

.sheet-legend {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

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

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #94a3b8;
  display: inline-block;
}

/* ==================== 3. 成绩结算页 ==================== */
.result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  max-width: 780px;
  margin: 16px auto;
  width: 100%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.result-status {
  display: inline-block;
  padding: 8px 26px;
  border-radius: 30px;
  font-size: calc(22px * var(--font-scale));
  font-weight: 800;
  margin-bottom: 12px;
}

.result-status.pass {
  background: var(--ok-bg);
  color: var(--ok-green);
  border: 2px solid var(--ok-green);
}

.result-status.fail {
  background: var(--err-bg);
  color: var(--err-red);
  border: 2px solid var(--err-red);
}

.result-score {
  font-size: 56px;
  font-weight: 900;
  color: var(--gov-blue-dark);
  margin: 6px 0;
}

.result-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
  font-size: calc(16px * var(--font-scale));
  color: var(--text-sub);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 10px;
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.modal-title {
  font-size: calc(20px * var(--font-scale));
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 10px;
}

.modal-msg {
  font-size: calc(16px * var(--font-scale));
  margin-bottom: 20px;
  color: var(--text-main);
}

.modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .exam-layout {
    grid-template-columns: 1fr;
  }
  .exam-left-col {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .exam-left-col > * {
    flex: 1;
    min-width: 220px;
  }
  .sheet-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}

@media (max-width: 640px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .mode-btn.primary {
    grid-column: span 1;
  }
  .options-wrap.judge-layout {
    grid-template-columns: 1fr;
  }
  .sheet-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
