/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  background: #f0f4f8;
  color: #2d3748;
  min-height: 100vh;
}

/* ── App shell: center on desktop, full-width on mobile ── */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ════════════════════════════
   HOME PAGE
════════════════════════════ */
.home-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 24px 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.home-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.home-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 2px;
}

.home-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #718096;
}

.task-box {
  background: #edf2ff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0 32px;
  text-align: left;
}

.task-label {
  font-size: 11px;
  font-weight: 600;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.task-poem {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
}

.task-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #718096;
}

/* ── Primary button ── */
.btn-start {
  display: block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-start:active { opacity: 0.85; }

/* ════════════════════════════
   QUIZ PAGE
════════════════════════════ */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 18px;
}

.quiz-poem-name {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
}

.quiz-count {
  font-size: 13px;
  color: #718096;
  background: #e2e8f0;
  border-radius: 20px;
  padding: 3px 10px;
}

.question-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.q-num {
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

.q-poem {
  font-size: 14px;
  color: #a0aec0;
}

.q-source {
  font-size: 11px;
  color: #cbd5e0;
}

.question-text {
  font-size: 17px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
}

/* ── Option cards ── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.option-label:active {
  background: #f7fafc;
}

.option-label.selected {
  border-color: #667eea;
  background: #ebf4ff;
}

.option-label input[type="radio"] {
  /* visually hidden but accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-key {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #4a5568;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.option-label.selected .option-key {
  background: #667eea;
  color: #fff;
}

.option-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.4;
}

/* ── Submit bar ── */
.submit-bar {
  padding: 8px 0 16px;
  text-align: center;
}

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-submit:active { opacity: 0.85; }

/* v4.8-f：篇目页「开始练习」按钮为 <a>，需居中文本 */
.lesson-start-btn { text-align: center; }

/* ════════════════════════════
   RESULT PAGE
════════════════════════════ */
.result-score-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.35);
}

.score-emoji {
  font-size: 52px;
  margin-bottom: 10px;
}

.score-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
}

.score-label {
  margin-top: 8px;
  font-size: 16px;
  opacity: 0.9;
}

/* ── Result list ── */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.result-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  border-left: 4px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-item.correct { border-left-color: #48bb78; }
.result-item.wrong   { border-left-color: #fc8181; }

.result-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.r-num {
  background: #667eea;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

.wb-bank-badge {
  background: #edf2f7;
  color: #5a67d8;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

/* 已被去重合并掉的题：仍可查看与操作，但刷题时不再抽到 */
.wb-dedup-badge {
  background: #fefcbf;
  color: #975a16;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 6px;
}

.r-type {
  font-size: 12px;
  color: #a0aec0;
  flex: 1;
}

.r-mark {
  font-size: 18px;
  font-weight: 800;
}

.result-item.correct .r-mark { color: #48bb78; }
.result-item.wrong   .r-mark { color: #fc8181; }

.r-question {
  font-size: 15px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.r-detail {
  font-size: 14px;
  color: #4a5568;
  margin-top: 4px;
  display: flex;
  gap: 4px;
}

.r-label { color: #a0aec0; }

.ans-correct { color: #2f855a; font-weight: 600; }
.ans-wrong   { color: #c53030; font-weight: 600; }

/* ════════════════════════════
   HOME v0.2 — POEM SELECTION
════════════════════════════ */
.home-header {
  text-align: center;
  padding: 32px 0 24px;
}

.poem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poem-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #667eea;
  transition: box-shadow 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.poem-card:active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: scale(0.98);
}

.poem-card-body {
  flex: 1;
}

.poem-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: 1px;
}

.poem-card-author {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 2px;
}

.poem-card-preview {
  font-size: 13px;
  color: #718096;
  margin-top: 6px;
  letter-spacing: 1px;
}

.poem-card-arrow {
  font-size: 18px;
  color: #667eea;
  margin-left: 12px;
  font-weight: 700;
}

/* ── Level buttons inside poem card ── */
.poem-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

.btn-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 7px 14px;
  text-align: center;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-level-main {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.btn-level-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 2px;
  line-height: 1.2;
}

.btn-level:active { opacity: 0.8; }

.btn-junior {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 1.5px solid #bee3f8;
}

.btn-senior {
  background: #faf5ff;
  color: #6b46c1;
  border: 1.5px solid #e9d8fd;
}

.btn-advanced {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fde68a;
}

/* ── Level badge in quiz header ── */
.quiz-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-tag {
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
}

.level-tag.level-junior {
  background: #ebf8ff;
  color: #2b6cb0;
}

.level-tag.level-senior {
  background: #faf5ff;
  color: #6b46c1;
}

/* ── Daily card on home page ── */
.daily-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.daily-card-title {
  font-size: 16px;
  font-weight: 700;
}

.daily-card-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 3px;
}

.daily-card-btn {
  display: inline-block;
  width: auto;
  background: white;
  color: #667eea;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.entry-challenge {
  background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-card-title {
  font-size: 16px;
  font-weight: 700;
}

.entry-card-sub {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 3px;
}

.entry-challenge-btn {
  background: white;
  color: #2193b0;
}

/* ── Challenge page back link ── */
.challenge-back {
  display: inline-block;
  font-size: 13px;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 6px;
}

/* ════════════════════════════
   COMPETITION ENTRY CARD
════════════════════════════ */
.entry-competition {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-competition-btn {
  background: white;
  color: #b7530a;
}

/* ════════════════════════════
   COMPETITION LANDING PAGE
════════════════════════════ */
.comp-intro-card {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comp-intro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a5568;
}

/* ════════════════════════════
   COMPETITION RESULT PAGE
════════════════════════════ */
.comp-result-banner {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comp-result-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.comp-result-text {
  font-size: 16px;
  color: #2d3748;
  line-height: 1.7;
}

.r-explanation {
  font-size: 12px;
  color: #718096;
  background: #f7fafc;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ── Secondary button (less prominent) ── */
.btn-submit.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

/* ── Button hint text (below mode-select buttons) ── */
.btn-hint {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* ── Wrong-character reinforcement hint ── */
.cuozi-hint {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── Topic specialty section divider ── */
.comp-divider {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
  margin: 16px 0 12px;
  letter-spacing: 1px;
}

/* ── Topic specialty button ── */
.btn-topic {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ── Competition mode card (landing page) ── */
.comp-mode-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comp-mode-label {
  font-size: 13px;
  font-weight: 600;
  color: #a0aec0;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.comp-mode-desc {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Coming soon hints ── */
.comp-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.comp-coming-soon span {
  font-size: 11px;
  color: #cbd5e0;
}

/* ── Text-only link (lightest action) ── */
.btn-text-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #a0aec0;
  padding: 8px 0;
  text-decoration: none;
}

/* ── Bank select page (大会题库 选库页) ── */
.bank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.bank-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.bank-card-active {
  position: relative;
  border: 2px solid #667eea;
  background: linear-gradient(135deg, #f3f4ff 0%, #ffffff 60%);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.22);
}

.bank-card-active .bank-card-arrow {
  color: #fff;
  background: #667eea;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
}

/* 江湖流传题库：橙色主题 + 「扩展题库」角标 */
.bank-card-advanced::before {
  content: "扩展题库";
  background: #ed8936;
  box-shadow: 0 2px 6px rgba(237, 137, 54, 0.35);
}
.bank-card-advanced .bank-card-arrow {
  background: #ed8936;
  box-shadow: 0 4px 10px rgba(237, 137, 54, 0.3);
}

.bank-card-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.bank-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 4px;
}

.bank-card-sub {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

.bank-card-arrow {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #667eea;
}

.bank-card-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #a0aec0;
  background: #edf2f7;
  border-radius: 10px;
  padding: 4px 10px;
}

.brush-bank-card {
  gap: 16px;
}

.brush-progress-count {
  flex-shrink: 0;
  min-width: 78px;
  text-align: right;
  color: #4a5568;
  font-size: 13px;
  font-weight: 700;
}

.brush-progress-count strong {
  color: #4c51bf;
  font-size: 20px;
}

.brush-progress-count span {
  display: block;
  margin-top: 2px;
  color: #718096;
  font-size: 11px;
  font-weight: 600;
}

.brush-progress-track {
  height: 7px;
  margin: 0 4px 12px;
  overflow: hidden;
  border-radius: 4px;
  background: #e2e8f0;
}

.brush-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #4c51bf;
}

.brush-mode-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0 4px 12px;
}

.brush-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #fff;
  color: #2d3748;
  text-decoration: none;
}

.brush-mode-new {
  border-color: #667eea;
  background: #f3f4ff;
}

.brush-mode-random {
  border-color: #38a169;
  background: #f0fff4;
}

.brush-mode-disabled {
  border-color: #cbd5e0;
  background: #f7fafc;
  color: #718096;
}

.brush-mode-icon {
  flex: 0 0 25px;
  font-size: 20px;
  text-align: center;
}

.brush-mode-copy {
  min-width: 0;
}

.brush-mode-copy strong,
.brush-mode-copy small {
  display: block;
  letter-spacing: 0;
}

.brush-mode-copy strong {
  font-size: 14px;
}

.brush-mode-copy small {
  margin-top: 3px;
  color: #718096;
  font-size: 10px;
  line-height: 1.3;
}

.brush-mode-badge,
.summary-mode-label {
  display: inline-block;
  border-radius: 6px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brush-mode-badge {
  padding: 4px 7px;
}

.summary-mode-label {
  margin-right: 4px;
  padding: 3px 6px;
  vertical-align: 1px;
}

/* ── Home "coming soon" entry (模拟考试) — same big card as 大会题库, greyed ── */
.entry-soon {
  background: linear-gradient(135deg, #b8c0cc 0%, #d6dce5 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.entry-soon-badge {
  flex-shrink: 0;
  font-size: 12px;
  color: #a0aec0;
  background: #edf2f7;
  border-radius: 10px;
  padding: 6px 12px;
}

/* coming-soon button (same shape as 大会题库 button, greyed) */
.entry-soon-btn {
  background: white;
  color: #8a94a6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Outlined button (secondary action, e.g. 完成本次刷题) ── */
.btn-outline {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: #667eea;
  border: 2px solid #c3cfe2;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:active {
  background: #f7fafc;
  border-color: #667eea;
}

/* ── Brush mode (一页一题) ── */
.brush-stat {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #718096;
}

.brush-stat-item strong {
  color: #2d3748;
}

.brush-stat-item.ok strong {
  color: #38a169;
}

.brush-stat-item.no strong {
  color: #e53e3e;
}

/* brush options are <button> elements; reset native styles */
.options-list .option-label {
  width: 100%;
  text-align: left;
  background: white;
  font-family: inherit;
}

.option-label.locked {
  cursor: default;
}

.option-label.opt-correct {
  border-color: #38a169;
  background: #f0fff4;
}

.option-label.opt-correct .option-key {
  background: #38a169;
  color: #fff;
}

.option-label.opt-wrong {
  border-color: #e53e3e;
  background: #fff5f5;
}

.option-label.opt-wrong .option-key {
  background: #e53e3e;
  color: #fff;
}

.brush-explain {
  font-size: 13px;
  color: #4a5568;
  background: #f7fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── 加入错题本 按钮（刷题页） ── */
.btn-fav {
  display: inline-block;
  margin-top: 12px;
  background: #fff;
  color: #d69e2e;
  border: 2px solid #f6e05e;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-fav:active {
  background: #fffbeb;
}

.btn-fav.faved {
  background: #fffbeb;
  color: #b7791f;
  border-color: #d69e2e;
}

/* ── 刷题页操作按钮行（错题本 + 已掌握） ── */
.brush-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.brush-actions .btn-fav,
.brush-actions .btn-master {
  flex: 1;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  text-align: center;
}

.brush-actions .btn-main {
  font-size: 13px;
  line-height: 1.3;
}

.brush-actions .btn-hint {
  font-size: 11px;
  font-weight: 400;
  color: #a0aec0;
  line-height: 1.3;
}

/* ── 已掌握 按钮（刷题页） ── */
.btn-master {
  display: inline-block;
  background: #fff;
  color: #38a169;
  border: 2px solid #9ae6b4;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-master:active {
  background: #f0fff4;
}

.btn-master.mastered {
  background: #f0fff4;
  color: #2f855a;
  border-color: #38a169;
}

/* ════════════════════════════
   RESPONSIVE (v4.6)
   移动优先 + 断点：小屏刷题页单屏压缩 / 平板·桌面加宽居中
════════════════════════════ */

/* ── 平板 / 桌面：加宽留白、居中（移动端不受影响） ── */
@media (min-width: 768px) {
  .app-shell {
    max-width: 600px;
    padding: 28px 24px 48px;
  }
}

/* ── 窄屏手机：刷题页单屏压缩 ── */
@media (max-width: 480px) {
  /* 头部与统计行收紧 */
  .quiz-header { padding: 6px 0 10px; }
  .brush-stat { margin-bottom: 8px; gap: 14px; }

  /* 题卡与题干 */
  .question-card { padding: 14px 14px; margin-bottom: 10px; }
  .question-text { font-size: 16px; margin-bottom: 12px; }

  /* 选项更紧凑 */
  .options-list { gap: 8px; }
  .option-label { padding: 10px 12px; gap: 10px; }
  .option-key { width: 24px; height: 24px; }

  /* 操作按钮行（错题本 / 已掌握）收紧：隐藏副提示省高度 */
  .brush-actions { margin-top: 8px; }
  .brush-actions .btn-hint { display: none; }

  /* 解析块收紧 */
  .brush-explain { margin-top: 8px; padding: 8px 10px; }

  /* 底部主按钮：正常竖排（两行），不吸底，稳定优先 */
  #brush-area .submit-bar {
    padding: 4px 0 8px;
  }
  #brush-area .submit-bar .btn-submit,
  #brush-area .submit-bar .btn-outline {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    font-size: 15px;
  }
}

/* ════════════════════════════
   2026 比赛专辑（v4.8-c）
════════════════════════════ */

/* 主页专辑入口卡（在 base 卡与即将上线之间，可点） */
.bank-card-album {
  position: relative;
  border: 2px solid #38a169;
  background: linear-gradient(135deg, #f0fff6 0%, #ffffff 60%);
  box-shadow: 0 8px 20px rgba(56, 161, 105, 0.18);
}
.bank-card-album .bank-card-arrow {
  color: #fff;
  background: #38a169;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(56, 161, 105, 0.32);
}
.bank-card-tag {
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #38a169;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 2px 6px rgba(56, 161, 105, 0.4);
}

/* 返回链接 */
.album-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
}

/* 测试版说明 */
.album-testnote {
  background: #f0fff6;
  border: 1px solid #c6f6d5;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.album-testnote-title {
  font-size: 15px;
  font-weight: 700;
  color: #276749;
  margin-bottom: 6px;
}
.album-testnote-body {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* 章节 / 板块 / 篇目 */
.album-section { margin-bottom: 22px; }
.album-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #2d3748;
  margin: 0 0 12px;
  padding-left: 8px;
  border-left: 4px solid #667eea;
}
.album-block { margin-bottom: 16px; }
.album-block-name {
  font-size: 14px;
  font-weight: 700;
  color: #5a67d8;
  margin-bottom: 8px;
}
.album-title-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.album-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.album-title-main {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}
.album-title-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: #718096;
}
.album-score {
  font-weight: 800;
}
.album-score-mastered { color: #d69e2e; }
.album-score-learned { color: #4c8ef7; }
.album-title-soon {
  opacity: 0.55;
  cursor: not-allowed;
}
.album-title-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: #a0aec0;
  background: #edf2f7;
  border-radius: 8px;
  padding: 3px 8px;
}

/* 专辑学习进度（中性展示，不催促） */
.album-progress {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.album-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.album-progress-count {
  font-size: 16px;
  font-weight: 800;
  color: #2d3748;
}
.album-progress-mastered {
  font-size: 13px;
  font-weight: 600;
  color: #b7791f;
}
.album-progress-bar {
  margin: 10px 0 8px;
  height: 10px;
  background: #edf2f7;
  border-radius: 6px;
  overflow: hidden;
}
.album-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #63b3ed 0%, #4c8ef7 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}
.album-progress-note {
  margin: 0;
  font-size: 12px;
  color: #a0aec0;
}
/* 每篇状态标记 */
.album-state-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
}
.badge-mastered { color: #d69e2e; }
.badge-learned { color: #4c8ef7; }
.album-state-mastered {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
  border: 2px solid #f6d36b;
}
.album-state-learned {
  background: linear-gradient(135deg, #ebf3ff 0%, #ffffff 60%);
  border: 2px solid #90cdf4;
}

/* 专辑页底部支持入口（低调展示，不干扰主流程） */
.album-support {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
.album-support-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
}
.album-support-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 116, 139, 0.35);
}
.album-support-link:hover {
  color: #475569;
  border-bottom-color: rgba(71, 85, 105, 0.55);
}
.album-support-note {
  margin: 6px 0 0;
  font-size: 11px;
  color: #a0aec0;
}
.lesson-mastery {
  background: #ebf3ff;
  color: #4c8ef7;
}
.lesson-mastery-on {
  background: #fff6da;
  color: #b7791f;
}

/* 单篇学习页 */
.lesson-head { margin-bottom: 16px; }
.lesson-title {
  font-size: 22px;
  font-weight: 800;
  color: #2d3748;
  margin: 0 0 8px;
}
.lesson-meta {
  font-size: 13px;
  color: #718096;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lesson-tag {
  background: #edf2f7;
  border-radius: 8px;
  padding: 2px 8px;
  color: #5a67d8;
}
.lesson-card {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.lesson-card-label {
  font-size: 12px;
  font-weight: 700;
  color: #5a67d8;
  margin-bottom: 8px;
}
.lesson-intro {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}
.lesson-original {
  background: linear-gradient(135deg, #f3f4ff 0%, #ffffff 60%);
  border: 1px solid #e2e8f0;
}
.lesson-original-text {
  font-size: 15px;
  color: #2d3748;
  line-height: 1.8;
  letter-spacing: 0.3px;
  margin: 0;
}
.lesson-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lesson-note {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.7;
}
.lesson-note-word {
  font-weight: 700;
  color: #2d3748;
  margin-right: 4px;
}
.lesson-note-pinyin {
  color: #a0aec0;
  margin-right: 6px;
}
.lesson-famous {
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 60%);
  border: 1px solid #fbd38d;
}
/* v4.8-g：一句话主旨栏（清爽，对应主题情感题） */
.lesson-theme {
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 60%);
  border: 1px solid #e2e8f0;
}
.lesson-theme-text {
  font-size: 13px;
  font-weight: 400;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}
/* v4.8-g：必考点/常识栏（备赛核心价值，重点色突出） */
.lesson-exam {
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 55%);
  border: 1px solid #f6c177;
  box-shadow: 0 4px 14px rgba(214, 158, 46, 0.14);
}
.lesson-exam-group {
  margin-top: 10px;
}
.lesson-exam-group:first-of-type {
  margin-top: 0;
}
.lesson-exam-head {
  font-size: 12px;
  font-weight: 800;
  color: #b7791f;
  margin-bottom: 4px;
}
.lesson-exam-author {
  font-size: 14px;
  color: #2d3748;
  line-height: 1.7;
  margin: 0;
}
.lesson-exam-list {
  margin: 0;
  padding-left: 18px;
}
.lesson-exam-line {
  font-size: 13px;
  font-weight: 400;
  color: #4a5568;
  line-height: 1.7;
}
.lesson-exam-fact {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.7;
}
/* 必背名句：不加粗（保留金色标记） */
.lesson-famous .lesson-exam-line,
.lesson-famous .star-hot {
  font-weight: 400;
}
/* v4.8 七部分：易错辨析（拉分点，视觉突出） */
.lesson-traps {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 60%);
  border: 1px solid #fc8181;
  box-shadow: 0 4px 14px rgba(229, 62, 62, 0.16);
}
.lesson-traps .lesson-card-label {
  color: #c53030;
}
.lesson-trap-item {
  font-size: 13px;
  color: #9b2c2c;
  font-weight: 400;
  line-height: 1.7;
}
.star-label {
  color: #c53030;
  font-weight: 700;
}
.star-hot {
  color: #d69e2e;
}
/* v4.8 七部分：顶部导航按钮组 */
.lesson-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.lesson-nav a {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #4c51bf;
  background: #ffffff;
  border: 1px solid #d6dcff;
  border-radius: 10px;
  padding: 9px 4px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.lesson-nav a:active {
  background: #eef2ff;
  transform: translateY(1px);
}
/* v4.8 七部分：折叠卡片 summary */
details.lesson-card > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.lesson-card > summary::-webkit-details-marker {
  display: none;
}
details.lesson-card > summary::after {
  content: "\25BE";
  color: #a0aec0;
  font-size: 11px;
}
details.lesson-card:not([open]) > summary::after {
  content: "\25B8";
}
/* v4.8-g：冷门篇「内容校对中」小标 */
.lesson-tag-review {
  background: #fffaf0;
  color: #b7791f;
  border: 1px solid #fbd38d;
}
.lesson-famous-line {
  font-size: 16px;
  font-weight: 700;
  color: #b7791f;
  margin: 0 0 6px;
}
.lesson-famous-note {
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
  margin: 0;
}
.lesson-pending {
  text-align: center;
  color: #718096;
  font-size: 14px;
}
.lesson-practice { margin-top: 18px; }
.lesson-practice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lesson-practice-title {
  font-size: 16px;
  font-weight: 800;
  color: #2d3748;
}
.lesson-practice-sub {
  font-size: 12px;
  color: #a0aec0;
}
.lesson-ai-tag {
  margin-top: 8px;
  font-size: 11px;
  color: #a0aec0;
  text-align: right;
}


/* ── 错题本入口（选库页） ── */
/* ── 我的学习（账号全局数据，轻量次级入口） ── */
.learn-section {
  margin-top: 26px;
}

/* v4.8-f：基础题库卡 + 我的学习 组成一个分组块（group block 感） */
.bank-group {
  display: flex;
  flex-direction: column;
  padding: 6px 14px 14px;
  background: linear-gradient(135deg, #f0f2ff 0%, #ffffff 60%);
  border: 2px solid #667eea;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.22);
}
/* 江湖流传题库分组：橙色边框 + 柔和橙底，样式同基础题库分组 */
.bank-group-advanced {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
  border-color: #ed8936;
  box-shadow: 0 8px 20px rgba(237, 137, 54, 0.18);
}
/* 2026 专辑分组：绿色边框 + 柔和绿底，样式同基础题库分组 */
.bank-group-album {
  background: linear-gradient(135deg, #f0fff6 0%, #ffffff 60%);
  border-color: #38a169;
  box-shadow: 0 8px 20px rgba(56, 161, 105, 0.18);
}
/* 组内专辑卡：去掉自身边框/阴影/底色，融入面板（同基础题库卡处理） */
.bank-group-album .bank-card-album {
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 14px 4px;
}
/* 组内基础题库卡：去掉自身边框/阴影/底色，融入面板 */
.bank-group .bank-card-active {
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 14px 4px;
}
/* 「我的学习」入口接在卡片下方，用细分隔线连成一组 */
.bank-group .learn-under-base {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px dashed #e2e6f3;
}

.learn-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.learn-title {
  font-size: 14px;
  font-weight: 700;
  color: #718096;
}

.learn-note {
  font-size: 12px;
  color: #a0aec0;
}

.learn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learn-item {
  flex: 1 1 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
}

.learn-item:active {
  background: #edf2f7;
}

.learn-item-icon {
  font-size: 20px;
}

.learn-item-text {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
}
.achievement-strip-wrap {
  padding: 0 4px 4px;
  border-top: 1px dashed #c8e7d4;
}
.achievement-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.achievement-strip-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: #fff7dc;
  border: 1px solid #f2d789;
  box-shadow: 0 3px 8px rgba(194, 140, 36, 0.16);
  font-size: 21px;
}
.achievement-strip-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.achievement-strip-title {
  color: #276749;
  font-size: 15px;
  font-weight: 800;
}
.achievement-strip-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #5f806d;
  font-size: 11px;
  font-weight: 600;
}
.achievement-strip-arrow {
  color: #38a169;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.achievement-strip:hover {
  background: rgba(198, 246, 213, 0.42);
  transform: translateX(2px);
}
.achievement-strip:focus-visible {
  outline: 2px solid #38a169;
  outline-offset: 2px;
}
.rec-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.rec-clear {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rec-clear:active {
  background: #fed7d7;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.rec-bank {
  font-size: 14px;
  font-weight: 700;
  color: #2b6cb0;
}

.rec-mode {
  padding: 3px 7px;
  border-radius: 6px;
  background: #edf2f7;
  color: #4a5568;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.rec-stat {
  font-size: 14px;
  color: #4a5568;
}

.rec-stat strong {
  color: #2d3748;
}

.rec-stat.ok strong {
  color: #38a169;
}

.rec-stat.no strong {
  color: #e53e3e;
}

/* ── 已掌握题 恢复按钮 ── */
.mk-restore {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
}

.mk-restore:active {
  background: #c6f6d5;
}

/* ── 错题本页面 ── */
.wb-empty {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 36px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wb-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.wb-empty-text {
  font-size: 14px;
  color: #718096;
  line-height: 1.8;
  margin-bottom: 18px;
}

.wb-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.wb-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
}

.wb-opt-correct {
  border-color: #38a169;
  background: #f0fff4;
}

.wb-opt-correct .option-key {
  background: #38a169;
  color: #fff;
}

.wb-remove {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wb-remove:active {
  background: #fed7d7;
}

/* ── 错题本单项操作（我会了 + 移除）── */
.wb-item-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.wb-master {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wb-master:active {
  background: #c6f6d5;
}

/* ════════════════════════════
   账号：登录 / 注册 / 登录状态条
════════════════════════════ */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-user {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
}

.auth-user-guest {
  color: #a0aec0;
  font-weight: 600;
}

.auth-link-primary {
  background: #667eea;
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 8px;
}

.guest-tip {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fffaf0;
  border: 1px solid #fbd38d;
  border-radius: 8px;
  font-size: 13px;
  color: #975a16;
}

.guest-tip a {
  color: #c05621;
  font-weight: 700;
}

.auth-links {
  display: flex;
  gap: 12px;
}

.auth-link {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  text-decoration: none;
}

.auth-logout-form {
  margin: 0;
}

.auth-logout-btn {
  background: #fff5f5;
  color: #e53e3e;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-logout-btn:active {
  background: #fed7d7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
}

.auth-input {
  font-family: inherit;
  font-size: 16px;
  color: #2d3748;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.auth-input:focus {
  border-color: #667eea;
}

.auth-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ── 账号找回（v4.4） ── */
.auth-success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #9ae6b4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

.auth-hint {
  background: #fffaf0;
  color: #975a16;
  border: 1px solid #fbd38d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.temp-pass {
  display: inline-block;
  background: #1a202c;
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 15px;
  letter-spacing: 1px;
  margin-left: 4px;
}

.btn-reset {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.btn-reset:hover {
  background: #fed7d7;
}

.btn-delete {
  background: #fff;
  color: #718096;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.btn-delete:hover {
  background: #c53030;
  color: #fff;
  border-color: #c53030;
}

.reset-form {
  margin: 0;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-more {
  margin-top: 10px;
}

.admin-more > summary {
  cursor: pointer;
  color: #4a5568;
  font-size: 13px;
  padding: 4px 0;
}

/* ── 运营看板（管理员，v4.2） ── */
.auth-links {
  align-items: center;
}

.stat-group {
  margin-bottom: 22px;
}

.stat-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #718096;
  margin-bottom: 10px;
}

/* v4.8-h：DB 备份状态行 */
.backup-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.backup-ok { color: #2f855a; font-weight: 600; }
.backup-bad { color: #c53030; font-weight: 700; }
.backup-none { color: #a0aec0; }
.backup-sub { color: #718096; font-size: 12px; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-card {
  flex: 1 1 90px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #2d3748;
}

.stat-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #718096;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #edf2f7;
  padding: 8px 6px;
  text-align: center;
  color: #4a5568;
}

.admin-table th {
  background: #f7fafc;
  font-weight: 700;
  color: #718096;
}

/* v4.8-e 专辑篇目明细：分组小标题行 + 零学习篇目弱化 */
.album-breakdown .album-group-row td {
  background: #f0fff6;
  font-weight: 700;
  color: #2f855a;
  text-align: left;
}
.album-breakdown .album-zero-row td {
  color: #a0aec0;
}
.album-breakdown td:first-child {
  text-align: left;
}

.admin-empty,
.admin-denied {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #718096;
  font-size: 14px;
}

/* v4.7-c 转化漏斗（游客） */
.funnel-card {
  flex: 1 1 80px;
}

.funnel-rate {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38a169;
}

.funnel-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #a0aec0;
}

.trend-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.trend-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
}

.trend-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .trend-canvas-wrap {
    height: 220px;
  }
}

/* ════════════════════════════
   成就系统 · 篇目花园（批次1）
════════════════════════════ */

/* 专辑首页入口按钮 */
.garden-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff1f6 0%, #fff8fb 100%);
  border: 1.5px solid #f1bfd2;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(183, 77, 122, 0.14);
}
.garden-entry-icon { font-size: 30px; line-height: 1; }
.garden-entry-text { display: flex; flex-direction: column; flex: 1; }
.garden-entry-title { font-size: 16px; font-weight: 800; color: #b83280; }
.garden-entry-sub { font-size: 12px; color: #9d6b8a; margin-top: 2px; }
.garden-entry-arrow { font-size: 20px; color: #d670a5; font-weight: 700; }

/* 花园页整体 */
.garden-shell {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 225, 237, 0.62) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 241, 247, 0.72) 0%, transparent 45%);
}
.garden-header { text-align: center; margin: 6px 0 18px; }
.garden-title {
  font-size: 24px;
  font-weight: 800;
  color: #b83280;
  letter-spacing: 1px;
}
.garden-subtitle { margin-top: 6px; font-size: 13px; color: #8a7a86; }

/* 顶部进度 */
.garden-progress {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.garden-progress-count { font-size: 16px; font-weight: 800; color: #2d3748; }
.garden-progress-count strong { color: #d53f8c; }
.garden-progress-bar {
  margin-top: 10px;
  height: 10px;
  background: #fdeef4;
  border-radius: 6px;
  overflow: hidden;
}
.garden-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #efadc5 0%, #d979a0 100%);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* 注册引导（温柔一行，可关闭，非弹窗） */
.garden-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff3f7;
  border: 1px solid #f1bfd2;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.garden-nudge-text { flex: 1; font-size: 13px; color: #8f3f67; }
.garden-nudge-link {
  font-size: 13px;
  font-weight: 700;
  color: #8f3f67;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 63, 103, 0.35);
}
.garden-nudge-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #d99ab5;
  cursor: pointer;
  line-height: 1;
}

/* 分区 / 花田 / 花朵 */
.garden-section { margin-bottom: 20px; }
.garden-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #6b4557;
  margin: 0 0 12px;
  padding-left: 8px;
  border-left: 4px solid #f6a5c8;
}
.garden-field {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 12px 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.garden-field-name {
  font-size: 13px;
  font-weight: 700;
  color: #a05580;
  margin-bottom: 10px;
}
.garden-flowers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.garden-flower {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s;
}
.garden-flower:active { transform: scale(0.96); }
.garden-flower.is-bloom {
  background: linear-gradient(160deg, #fff0f6 0%, #ffe3ef 100%);
  border: 1.5px solid #f8b4d2;
}
.garden-flower.is-bud {
  background: #f7f7f8;
  border: 1.5px dashed #d8d8de;
}
.garden-flower-icon { font-size: 26px; line-height: 1; }
.garden-flower.is-bud .garden-flower-icon { filter: grayscale(1); opacity: 0.5; }
.garden-flower-name {
  font-size: 11px;
  line-height: 1.3;
  color: #4a5568;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.garden-flower.is-bud .garden-flower-name { color: #a0aec0; }
.garden-foot-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #a0aec0;
  text-align: center;
  line-height: 1.6;
}

/* ── 成就解锁弹窗（仪式感 + 轻动效） ── */
.unlock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 30, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.unlock-overlay.show { opacity: 1; }
.unlock-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #fffdfe 0%, #fff2f8 100%);
  border-radius: 22px;
  padding: 30px 24px 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(180, 50, 128, 0.35);
  transform: scale(0.8) translateY(10px);
  transition: transform 0.32s cubic-bezier(0.18, 1.2, 0.4, 1);
  overflow: hidden;
}
.unlock-overlay.show .unlock-card { transform: scale(1) translateY(0); }
.unlock-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 165, 200, 0.5) 0%, transparent 65%);
  animation: unlock-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes unlock-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
.unlock-flower {
  position: relative;
  font-size: 58px;
  line-height: 1;
  animation: unlock-bloom 0.6s cubic-bezier(0.18, 1.4, 0.4, 1) both;
}
@keyframes unlock-bloom {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.unlock-badge {
  position: relative;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #d670a5;
  text-transform: uppercase;
}
.unlock-heading {
  position: relative;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  color: #b83280;
}
.unlock-piece {
  position: relative;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #2d3748;
}
.unlock-cheer {
  position: relative;
  margin-top: 10px;
  font-size: 14px;
  color: #7a6070;
  line-height: 1.6;
}
.unlock-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  background: linear-gradient(135deg, #fbd3df 0%, #efadc5 100%);
  color: #7d3655;
  box-shadow: 0 5px 14px rgba(183, 88, 126, 0.16);
}
.unlock-close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 4px rgba(125, 54, 85, 0.12);
  font-size: 17px;
  line-height: 1;
}
.unlock-register-nudge {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #8a7a86;
}
.unlock-register-nudge[hidden] { display: none; }
.unlock-register-nudge a {
  color: #718096;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ── 勋章墙入口（花园页） ── */
.medal-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #fff1f6 0%, #fff8fb 100%);
  border: 1.5px solid #f1bfd2;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(183, 77, 122, 0.13);
}
.medal-entry-left { display: flex; align-items: center; gap: 10px; }
.medal-entry-icon { font-size: 26px; line-height: 1; }
.medal-entry-text { display: flex; flex-direction: column; }
.medal-entry-title { font-size: 15px; font-weight: 800; color: #8f3f67; }
.medal-entry-sub { font-size: 12px; color: #a66a87; margin-top: 2px; }
.medal-entry-preview { display: flex; align-items: center; gap: 2px; }
.medal-entry-chip { font-size: 18px; }
.medal-entry .garden-entry-arrow { color: #d979a0; margin-left: 4px; }

/* ── 勋章墙页 ── */
.medal-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 225, 237, 0.62) 0%, transparent 45%),
    radial-gradient(circle at 88% 26%, rgba(255, 241, 247, 0.72) 0%, transparent 45%);
}
.medal-section { margin-bottom: 22px; }
.medal-section-note {
  margin: -4px 0 12px;
  font-size: 12px;
  color: #9b7287;
  line-height: 1.6;
}
.medal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.medal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.medal-item.is-earned {
  background: linear-gradient(160deg, #fff8fb 0%, #ffeaf2 100%);
  border: 1.5px solid #efadc5;
}
.medal-item.is-locked {
  background: #f6f6f7;
  border: 1.5px dashed #d8d8de;
}
.medal-badge {
  font-size: 40px;
  line-height: 1;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 8px;
}
.medal-item.is-earned .medal-badge {
  background: radial-gradient(circle, #fff7fa 0%, #fbd3df 100%);
  box-shadow: 0 4px 14px rgba(183, 77, 122, 0.22);
}
.medal-item.is-locked .medal-badge {
  background: #ececf0;
  filter: grayscale(0.85);
  opacity: 0.6;
}
.medal-name {
  font-size: 14px;
  font-weight: 800;
  color: #75405a;
}
.medal-item.is-locked .medal-name { color: #9aa0aa; }
.medal-cond {
  margin-top: 4px;
  font-size: 11px;
  color: #9b7287;
  line-height: 1.4;
}
.medal-cond-done { color: #b64d7a; font-weight: 700; }
.medal-item.is-locked .medal-cond { color: #a0aec0; }
.medal-mini-bar {
  width: 80%;
  height: 6px;
  background: #e2e2e8;
  border-radius: 4px;
  margin: 8px auto 4px;
  overflow: hidden;
}
.medal-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #efadc5 0%, #d979a0 100%);
  border-radius: 4px;
}
.medal-mini-num { font-size: 11px; color: #a0aec0; }

/* ── 解锁弹窗 · 勋章同系粉色变体 ── */
.unlock-card.is-medal {
  background: linear-gradient(160deg, #fffdfe 0%, #fff1f6 100%);
  box-shadow: 0 18px 50px rgba(183, 77, 122, 0.3);
}
.unlock-card.is-medal .unlock-glow {
  background: radial-gradient(circle, rgba(239, 173, 197, 0.5) 0%, transparent 65%);
}
.unlock-card.is-medal .unlock-badge { color: #d979a0; }
.unlock-card.is-medal .unlock-heading { color: #b64d7a; }
.unlock-card.is-medal .unlock-close {
  background: linear-gradient(135deg, #fbd3df 0%, #efadc5 100%);
  color: #7d3655;
}

/* ════════════════════════════
   打卡陪伴（批次3）
════════════════════════════ */

/* 打卡入口（花园页） */
.checkin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #fff1f6 0%, #fff8fb 100%);
  border: 1.5px solid #f1bfd2;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(183, 77, 122, 0.13);
}
.checkin-entry-title { font-size: 15px; font-weight: 800; color: #8f3f67; }
.checkin-entry-sub { font-size: 12px; color: #a66a87; margin-top: 2px; }
.checkin-entry .garden-entry-arrow { color: #d979a0; }

/* 打卡页 */
.checkin-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 225, 237, 0.62) 0%, transparent 45%),
    radial-gradient(circle at 85% 26%, rgba(255, 241, 247, 0.72) 0%, transparent 45%);
}
.checkin-today {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.checkin-today.is-done {
  background: linear-gradient(135deg, #fff8fb 0%, #ffeaf2 100%);
  border: 1.5px solid #efadc5;
  color: #8f3f67;
}
.checkin-today.is-todo {
  background: #fff3f7;
  border: 1.5px solid #f1bfd2;
  color: #8f3f67;
}
.checkin-today-icon { font-size: 26px; line-height: 1; }
.checkin-today-text { font-size: 15px; }

.checkin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.checkin-stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.checkin-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #b64d7a;
  line-height: 1.1;
}
.checkin-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: #718096;
}

.checkin-calendar-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.checkin-cal-head,
.checkin-cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.checkin-cal-head { margin-bottom: 8px; }
.checkin-cal-wd {
  text-align: center;
  font-size: 11px;
  color: #a0aec0;
}
.checkin-cal-row { margin-bottom: 6px; }
.checkin-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 13px;
  color: #a0aec0;
  background: #f4f5f7;
}
.checkin-cell.is-active {
  background: linear-gradient(160deg, #fff0f6 0%, #ffe3ef 100%);
  border: 1px solid #f8b4d2;
  font-size: 15px;
}
.checkin-cell.is-empty { color: #cbd5e0; }
.checkin-cell.is-future { background: transparent; color: #e2e8f0; }
.checkin-cell.is-today {
  outline: 2px solid #d979a0;
  outline-offset: 1px;
  color: #8f3f67;
  font-weight: 800;
}
.checkin-note {
  margin: 12px 0 4px;
  font-size: 12px;
  color: #a0aec0;
  text-align: center;
  line-height: 1.6;
}
.checkin-go {
  display: block;
  margin: 14px 0 10px;
  text-align: center;
  background: linear-gradient(135deg, #fbd3df 0%, #efadc5 100%);
  color: #7d3655;
}
.checkin-medal-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #9b5878;
  text-decoration: none;
}

/* ── 解锁弹窗 · 打卡同系粉色变体（最轻量） ── */
.unlock-card.is-checkin {
  background: linear-gradient(160deg, #fffdfe 0%, #fff1f6 100%);
  box-shadow: 0 18px 50px rgba(183, 77, 122, 0.3);
}
.unlock-card.is-checkin .unlock-glow {
  background: radial-gradient(circle, rgba(239, 173, 197, 0.5) 0%, transparent 65%);
}
.unlock-card.is-checkin .unlock-badge { color: #d979a0; }
.unlock-card.is-checkin .unlock-heading { color: #b64d7a; }
.unlock-card.is-checkin .unlock-close {
  background: linear-gradient(135deg, #fbd3df 0%, #efadc5 100%);
  color: #7d3655;
}

/* ── 勋章墙总入口页（三栏目 hub） ── */
.hub-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 225, 237, 0.62) 0%, transparent 45%),
    radial-gradient(circle at 85% 26%, rgba(255, 241, 247, 0.72) 0%, transparent 45%);
}
.hub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.hub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1.5px solid transparent;
}
.hub-card-garden,
.hub-card-medal,
.hub-card-checkin {
  border-color: #f1bfd2;
  background: linear-gradient(135deg, #fff1f6 0%, #ffffff 65%);
}
.hub-card-icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
}
.hub-card-text { display: flex; flex-direction: column; flex: 1; }
.hub-card-title { font-size: 17px; font-weight: 800; color: #2d3748; }
.hub-card-sub { font-size: 12px; color: #718096; margin-top: 3px; line-height: 1.5; }
.hub-card-arrow { font-size: 22px; font-weight: 700; color: #cbd5e0; flex-shrink: 0; }
.hub-card-garden .hub-card-arrow,
.hub-card-medal .hub-card-arrow,
.hub-card-checkin .hub-card-arrow { color: #d979a0; }

/* ── 模拟考试（v5.8） ── */
/* 入口卡：与「2026 专辑」「历年比赛题库」同构（分组面板 + 内嵌卡），配色用橙色与绿/蓝紫拉开区分 */
.bank-group-mock {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
  border-color: #ed8936;
  box-shadow: 0 8px 20px rgba(237, 137, 54, 0.20);
}
.bank-card-mock {
  position: relative;
  border: 2px solid #ed8936;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
  box-shadow: 0 8px 20px rgba(237, 137, 54, 0.20);
}
.bank-card-mock .bank-card-arrow {
  color: #fff;
  background: #ed8936;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(237, 137, 54, 0.35);
}
/* 组内模拟考试卡：去掉自身边框/阴影/底色，融入面板（同另两张卡的处理） */
.bank-group-mock .bank-card-mock {
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 14px 4px;
}

/* 入口页 */
.mock-hero {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 14px;
  color: #c05621;
}
.mock-hero-num { font-size: 42px; font-weight: 800; line-height: 1; }
.mock-hero-unit { font-size: 15px; font-weight: 700; }
.mock-hero-sep { font-size: 22px; color: #f6ad55; margin: 0 4px; }
.mock-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 15px;
  margin-bottom: 16px;
}
.mock-rule { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #4a5568; line-height: 1.55; }
.mock-rule-icon { flex-shrink: 0; font-size: 16px; }
.mock-empty { text-align: center; color: #a0aec0; font-size: 13px; margin: 18px 0; }
.mock-history { margin-top: 22px; }
.mock-history-title { font-size: 15px; font-weight: 800; color: #2d3748; margin-bottom: 10px; }
.mock-best {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #b7791f;
  background: #fefcbf;
  border-radius: 999px;
  padding: 2px 9px;
}
.mock-history-list { display: flex; flex-direction: column; gap: 8px; }
.mock-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
}
.mock-history-score { font-size: 21px; font-weight: 800; color: #c05621; flex-shrink: 0; }
.mock-history-score-unit { font-size: 11px; margin-left: 1px; }
.mock-history-meta { flex: 1; font-size: 12px; color: #718096; line-height: 1.5; }
.mock-history-auto { color: #c05621; margin-left: 5px; }
.mock-history-time { font-size: 11px; color: #a0aec0; flex-shrink: 0; }

/* 考试进行中 */
.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 8px;
}
.mock-timer {
  font-size: 26px;
  font-weight: 800;
  color: #2d3748;
  font-variant-numeric: tabular-nums;
}
.mock-timer.urgent { color: #e53e3e; animation: mockPulse 1s ease-in-out infinite; }
@keyframes mockPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.mock-progress { font-size: 13px; color: #718096; }
.mock-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 14px;
}
.mock-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ed8936, #f6ad55);
  transition: width 0.2s;
}
.mock-actions { display: flex; gap: 10px; margin-top: 14px; }
.mock-actions .btn-outline { flex: 1; }

/* 成绩与回顾 */
.mock-score { margin: 6px 0 4px; color: #c05621; }
.mock-score span:first-child { font-size: 46px; font-weight: 800; line-height: 1; }
.mock-score-unit { font-size: 16px; font-weight: 700; margin-left: 3px; }
.mock-stat-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.mock-stat {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 4px;
  text-align: center;
}
.mock-stat-num { font-size: 19px; font-weight: 800; color: #2d3748; font-variant-numeric: tabular-nums; }
.mock-stat-num.ok { color: #38a169; }
.mock-stat-num.no { color: #e53e3e; }
.mock-stat-label { font-size: 11px; color: #a0aec0; margin-top: 3px; }
.mock-review { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mock-review-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 12px;
  padding: 12px 13px;
}
.mock-review-item.ok { border-left-color: #48bb78; }
.mock-review-item.no { border-left-color: #f56565; }
.mock-review-item.blank { border-left-color: #cbd5e0; }
.mock-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mock-review-idx { font-size: 12px; font-weight: 800; color: #a0aec0; }
.mock-review-flag { font-size: 12px; font-weight: 700; color: #718096; }
.mock-review-q { font-size: 14px; color: #2d3748; line-height: 1.6; margin-bottom: 7px; }
.mock-review-line { font-size: 13px; color: #4a5568; line-height: 1.6; }
.mock-review-mine { font-weight: 700; }
.mock-review-right { font-weight: 700; color: #2f855a; }
.mock-review-exp {
  font-size: 12px;
  color: #718096;
  line-height: 1.65;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
}








