:root {
  --navy-950: #09192b;
  --navy-900: #0f2942;
  --navy-800: #163a5f;
  --navy-700: #1e4e7f;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50: #eff6ff;
  --gold-500: #d99b26;
  --gold-100: #fef3c7;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 41, 66, 0.09);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.55;
  overscroll-behavior-y: none;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  position: relative;
}

/* 顶部导航栏 */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(9, 25, 43, 0.18);
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.back-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-title {
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

.engine-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 155, 38, 0.22);
  border: 1px solid rgba(217, 155, 38, 0.55);
  color: #fde68a;
  white-space: nowrap;
  cursor: pointer;
}

/* 主内容区 */
.main-content {
  flex: 1;
  padding: 14px 14px calc(78px + var(--safe-bottom));
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 6px 2px calc(6px + var(--safe-bottom));
  z-index: 45;
}

.nav-item {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-sub);
  font-size: 11px;
  padding: 4px 2px;
  cursor: pointer;
  position: relative;
}

.nav-item .nav-icon {
  font-size: 19px;
  line-height: 1.15;
}

.nav-item.active {
  color: var(--navy-800);
  font-weight: 700;
}

.nav-badge {
  position: absolute;
  top: 0;
  right: 16%;
  background: var(--red-600);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 锁屏密码页 */
.lock-screen {
  min-height: 100dvh;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.lock-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 28px 22px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.shield-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.38);
}

.lock-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 18px;
  letter-spacing: 4px;
  text-align: center;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(9, 25, 43, 0.55);
  color: #fff;
  outline: none;
  margin: 16px 0 12px;
}

.lock-input:focus {
  border-color: #fbbf24;
}

/* 通用卡片与按钮 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-stats-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #fde68a;
}

.stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 14px;
}

.mode-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 15px 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mode-card:active {
  transform: scale(0.98);
}

.mode-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.mode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.mode-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.4;
}

/* 按钮体系 */
.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid #cbd5e1;
}

.btn-soft {
  background: var(--blue-50);
  color: var(--blue-600);
}

.btn-block {
  width: 100%;
}

/* 案情与情境上下文框 */
.context-box {
  background: #f8fafc;
  border-left: 4px solid var(--navy-700);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
  font-size: 13.8px;
  color: #1e293b;
}

.context-box.scenario-active {
  background: #fffbeb;
  border-left-color: var(--gold-500);
}

.context-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: var(--navy-800);
  color: #fff;
}

.context-box.scenario-active .context-tag {
  background: var(--amber-600);
}

/* 题目卡片 */
.question-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.q-meta-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  background: #e0e7ff;
  padding: 3px 10px;
  border-radius: 999px;
}

.q-sim-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #9a3412;
  background: #ffedd5;
  padding: 2px 8px;
  border-radius: 999px;
}

.question-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 6px 0 12px;
  line-height: 1.5;
}

/* 语音录制与答题区 */
.voice-textarea {
  width: 100%;
  min-height: 104px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.55;
  font-family: inherit;
  resize: vertical;
  outline: none;
  background: #fcfdff;
  color: var(--text-main);
}

.voice-textarea:focus {
  border-color: var(--blue-600);
  background: #fff;
}

.mic-action-bar {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mic-btn {
  border: none;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mic-btn.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-ring 1.3s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.interim-preview {
  font-size: 13px;
  color: var(--blue-600);
  margin-top: 6px;
  min-height: 20px;
}

.fallback-tip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  margin-top: 8px;
}

/* 评分结果展示 */
.score-banner {
  border-radius: 14px;
  padding: 14px 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-banner.excellent { background: var(--green-50); border: 1px solid #bbf7d0; }
.score-banner.good { background: var(--blue-50); border: 1px solid #bfdbfe; }
.score-banner.fair { background: var(--amber-50); border: 1px solid #fde68a; }
.score-banner.low, .score-banner.empty { background: var(--red-50); border: 1px solid #fecaca; }

.score-big {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.score-banner.excellent .score-big { color: var(--green-600); }
.score-banner.good .score-big { color: var(--blue-600); }
.score-banner.fair .score-big { color: var(--amber-600); }
.score-banner.low .score-big { color: var(--red-600); }

.point-item {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  background: #fff;
}

.point-item.hit { border-left: 4px solid var(--green-600); background: #f8fef9; }
.point-item.partial { border-left: 4px solid var(--amber-600); background: #fffdf5; }
.point-item.optional_skip { border-left: 4px solid #94a3b8; background: #f8fafc; opacity: 0.86; }
.point-item.missed, .point-item.wrong_polarity { border-left: 4px solid var(--red-600); background: #fffafa; }

.point-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.example-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 11px;
  padding: 11px 13px;
  margin-top: 10px;
  font-size: 14px;
  color: #78350f;
}

/* 遮挡背题毛玻璃 */
.answer-mask {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.answer-mask.blurred .mask-inner {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.mask-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.45);
  cursor: pointer;
}

/* 40套案例列表与搜索框 */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 14.5px;
  outline: none;
  background: #fff;
}

.exam-list-item {
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.tag-chip {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  margin-right: 5px;
  margin-top: 4px;
}

.round-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.round-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 9px;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  text-align: center;
}

.round-tab.active {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.ios-pwa-banner {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 14px;
  background: #fff;
}

/* 开发者与内部学习版权署名样式 */
.author-credit-banner {
  background: linear-gradient(90deg, #eff6ff, #f8fafc);
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--navy-800);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.global-footer-credit {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  padding: 16px 8px 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* 赞赏支持入口与弹窗样式 */
.reward-entry-card {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 155, 38, 0.12);
}

.reward-entry-card:active {
  transform: scale(0.99);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 25, 43, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.16s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reward-modal {
  background: #18181b;
  color: #fff;
  width: 100%;
  max-width: 340px;
  border-radius: 22px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-qr-img {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  display: block;
  margin: 10px auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* 精细化评分拆解标签 */
.detail-breakdown {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-hit-line {
  color: #15803d;
  margin-bottom: 3px;
}

.detail-miss-line {
  color: #dc2626;
  font-weight: 600;
}

/* 考场双抽签台卡片 */
.draw-stage-card {
  background: linear-gradient(135deg, #0f2942, #1e3a8a);
  color: #fff;
  border-radius: 16px;
  padding: 14px 15px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.slot-num-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.slot-num-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 9px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.slot-num-btn.active {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #09192b;
}

/* 多题库切换条 */
.bank-switcher-bar {
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

/* 增强搜索框包裹层（避免重绘失焦，带一键清除按钮） */
.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-input {
  width: 100%;
  padding-right: 36px;
}

.search-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 顺序背题：轮次下方直接展示 问1~问5 与全展切换条 */
.q-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.q-sub-pill {
  flex: 1;
  min-width: 48px;
  padding: 7px 4px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--text-sub);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.q-sub-pill.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.q-sub-pill.done-good:not(.active) {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.q-sub-pill.all-toggle {
  flex: 1.25;
  background: #f8fafc;
  color: var(--navy-800);
}

.q-sub-pill.all-toggle.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #fff;
}

/* 学习技巧与答题规律模块样式 */
.tips-cat-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.tips-cat-bar::-webkit-scrollbar {
  display: none;
}

.tips-cat-pill {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.tips-cat-pill.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.tip-mnemonic-box {
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 9px 12px;
  margin: 8px 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #92400e;
}

.tip-point-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 7px;
  font-size: 13.8px;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-line;
}

.hl-key {
  color: #1d4ed8;
  font-weight: 800;
  background: #dbeafe;
  padding: 0 4px;
  border-radius: 4px;
}

.tip-trap-box {
  background: #fef2f2;
  border: 1px dashed #f87171;
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 8px;
  font-size: 12.8px;
  color: #991b1b;
  line-height: 1.5;
}

/* 客观题（单选 / 多选 / 判断题）选项样式 */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0;
}

.opt-btn {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14.5px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.12s ease;
  line-height: 1.45;
}

.opt-btn:active {
  transform: scale(0.99);
}

.opt-key-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e2e8f0;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opt-btn.selected {
  border-color: var(--blue-600);
  background: #eff6ff;
}

.opt-btn.selected .opt-key-badge {
  background: var(--blue-600);
  color: #fff;
}

.opt-btn.correct {
  border-color: var(--green-600);
  background: #f0fdf4;
}

.opt-btn.correct .opt-key-badge {
  background: var(--green-600);
  color: #fff;
}

.opt-btn.wrong {
  border-color: var(--red-600);
  background: #fef2f2;
}

.opt-btn.wrong .opt-key-badge {
  background: var(--red-600);
  color: #fff;
}

.q-type-tag {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
}

.q-type-tag.multiple {
  background: #fef3c7;
  color: #b45309;
}

.q-type-tag.boolean {
  background: #dcfce7;
  color: #15803d;
}


/* =========================================================
 * v4 新增：2085题理论题库专属样式（双库速切 / 四大板块 / 学习长图查看器 / 80题模考答题卡与诊断报告）
 * ========================================================= */

.dual-bank-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e2e8f0;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.dual-bank-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.dual-bank-btn.active {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(15, 41, 66, 0.12);
}

.dual-bank-btn .sub-cnt {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-600);
}

/* 四大板块 2x2 导航卡 */
.cat-4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.cat-4-btn {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  border-radius: 12px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.12s ease;
}

.cat-4-btn.active {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.cat-4-btn .cat-title {
  font-size: 13.5px;
  font-weight: 800;
}

.cat-4-btn .cat-cnt {
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}

.cat-4-btn.active .cat-cnt {
  background: rgba(255, 255, 255, 0.2);
  color: #fde68a;
}

/* 紧凑筛选胶囊行 */
.mini-pill-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.mini-pill-row::-webkit-scrollbar {
  display: none;
}

.mini-pill {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text-sub);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.mini-pill.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* 法规依据条 */
.basis-box {
  background: #eff6ff;
  border-left: 3.5px solid var(--blue-600);
  border-radius: 8px;
  padding: 8px 11px;
  margin-bottom: 8px;
  font-size: 12.8px;
  color: #1e3a8a;
  font-weight: 600;
}

.exclude-trap-box {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  font-size: 12.8px;
  color: #92400e;
  font-weight: 700;
}

/* 学习图与法规对比图画廊 */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 380px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.chart-thumb-box {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.chart-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.chart-zoom-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(9, 25, 43, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.chart-card-body {
  padding: 10px 11px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 全屏高清长图缩放查看器 */
.chart-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 25, 43, 0.96);
  display: flex;
  flex-direction: column;
}

.chart-viewer-top {
  padding: calc(var(--safe-top) + 10px) 14px 10px;
  background: rgba(15, 41, 66, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.chart-viewer-scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  text-align: center;
}

.chart-viewer-img {
  display: inline-block;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: width 0.15s ease;
}

.chart-viewer-bottom {
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(15, 41, 66, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 80题模拟考答题卡网格 */
.exam-sheet-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy-800);
  margin: 10px 0 6px;
}

.exam-sheet-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.exam-sheet-dot {
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--text-main);
  border-radius: 8px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.exam-sheet-dot.answered {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.exam-sheet-dot.current {
  background: #f59e0b;
  border-color: #d97706;
  color: #09192b;
}

/* 模考成绩报告分题型三宫格与错题章节条 */
.report-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

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

.chapter-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  margin-bottom: 6px;
  font-size: 13px;
}
