/* ===== 90天数学总复习 · 样式 ===== */
:root {
  --paper: #F6F1E4;
  --paper-light: #FCF9F1;
  --paper-deep: #EFE8D6;
  --ink: #2A3240;
  --ink-soft: #575E6B;
  --ink-muted: #8A8474;
  --line: #E4DCC8;
  --red: #C8442E;
  --red-soft: #F7E7E1;
  --red-line: #E3B8AC;
  --blue: #3B6FB6;
  --green: #4E8A5E;
  --orange: #C97B2D;
  --purple: #7A5FA8;
  --teal: #2F8F86;
  --shadow: 0 2px 10px rgba(60, 52, 32, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(59, 111, 182, 0.05) 0, transparent 240px),
    radial-gradient(circle at 90% 30%, rgba(200, 68, 46, 0.05) 0, transparent 260px),
    var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 38%; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 32px;
  background: linear-gradient(to top, rgba(246, 241, 228, 0.97) 0%, rgba(246, 241, 228, 0.72) 42%, rgba(246, 241, 228, 0.05) 78%);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--red);
}
.hero-kicker::before { content: ''; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
.hero-title {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 42px; font-weight: 900; line-height: 1.25;
  color: var(--ink); margin-top: 6px; letter-spacing: 0.02em;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { margin-top: 8px; font-size: 15px; color: var(--ink-soft); max-width: 640px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-stats span {
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
  padding: 5px 13px; border-radius: 999px;
}

/* ===== 计划说明条 ===== */
.plan-note {
  background: var(--paper-light); border: 1px solid var(--line);
  border-radius: 14px; margin: 26px 0 8px; padding: 20px 22px;
  box-shadow: var(--shadow);
}
.plan-note h2 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.plan-note h2::after { content: '——'; color: var(--red); margin-left: 6px; }
.plan-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 18px; }
.plan-note-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.plan-note-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; margin-top: 8px; }

/* ===== 高效法则 ===== */
.law-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 6px; }
.law-card {
  background: var(--paper-light); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.law-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.law-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 总进度 ===== */
.progress-panel {
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: #F4EFE2;
  border-radius: 14px; padding: 16px 22px; margin: 26px 0 10px;
}
.progress-label { font-size: 14px; font-weight: 500; white-space: nowrap; }
.progress-label b { color: #F2B8A9; font-size: 17px; }
.progress-track { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.16); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #D95B41, #C8442E); border-radius: 999px; transition: width 0.35s ease; }
.progress-pct { font-size: 13px; color: #D8D2C2; min-width: 44px; text-align: right; }

/* ===== Day 标签页 ===== */
.day-tabs {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin: 14px -20px 0; padding: 10px 20px 12px;
  display: flex; gap: 6px; overflow-x: auto;
}
.day-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-light);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all 0.18s ease;
}
.day-tab .d-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-deep); color: var(--ink-soft);
  font-size: 12px; font-weight: 700;
}
.day-tab:hover { border-color: var(--red-line); color: var(--red); }
.day-tab.active { background: var(--ink); border-color: var(--ink); color: #F4EFE2; }
.day-tab.active .d-num { background: var(--red); color: #fff; }
.day-tab.done .d-num { background: var(--green); color: #fff; }
.day-tab.done:not(.active) { border-color: #B9C9BC; }

/* ===== Day 视图 ===== */
.day-head { margin: 26px 0 4px; }
.day-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--red); text-transform: uppercase;
}
.day-head h2 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 26px; font-weight: 800; margin-top: 4px;
}
.day-head .tagline { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.day-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--red-soft); border: 1px dashed var(--red-line);
  border-radius: 10px; padding: 10px 14px; margin-top: 14px;
  font-size: 13.5px; color: #8E3A28;
}
.day-tip svg { flex: none; margin-top: 3px; }

/* ===== 学科卡片（笔记本纸张） ===== */
.subject-card {
  position: relative;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px 22px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sc, var(--blue));
}
.subject-card::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(228, 220, 200, 0.35) 33px 34px);
  pointer-events: none;
}
.subject-card > * { position: relative; z-index: 1; }

.subject-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.subject-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sc, var(--blue)); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.subject-chip svg { width: 15px; height: 15px; }
.subject-time { font-size: 13px; color: var(--ink-muted); }
.subject-time b { color: var(--ink-soft); font-weight: 600; }

.goal-box { margin: 12px 0 4px; }
.goal-box h4 {
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.goal-box h4::before { content: ''; width: 16px; height: 3px; background: var(--red); border-radius: 2px; }
.goal-list { list-style: none; margin-top: 8px; }
.goal-list li {
  position: relative; padding-left: 26px; margin: 5px 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.goal-list li::before {
  content: '';
  position: absolute; left: 2px; top: 5px;
  width: 13px; height: 13px;
  border: 2px solid var(--sc, var(--blue)); border-radius: 4px;
  background: transparent;
}

.explain-block { margin-top: 14px; }
.explain-block h4 {
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--line); padding-bottom: 5px;
}
.explain-block h4 .mark {
  width: 7px; height: 7px; border-radius: 2px; background: var(--sc, var(--blue));
}
.explain-block ul { list-style: none; margin-top: 8px; }
.explain-block li {
  position: relative; padding-left: 18px; margin: 6px 0;
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.8;
}
.explain-block li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sc, var(--blue)); opacity: 0.55;
}

/* 红笔批注（签名元素） */
.key-note {
  margin-top: 14px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 4px 10px 10px 4px;
  padding: 11px 15px;
  font-size: 14px; color: #8E3A28; line-height: 1.8;
}
.key-note b { color: var(--red); }

/* 例题 */
.example-box {
  margin-top: 16px; border: 1.5px dashed #C9C0A8; border-radius: 10px;
  padding: 14px 16px; background: rgba(255, 255, 255, 0.45);
}
.example-box .ex-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: var(--sc, var(--blue));
  padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.example-box .ex-q { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.sol-toggle {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0;
  font-size: 13.5px; font-weight: 700; color: var(--red); cursor: pointer;
}
.sol-toggle svg { transition: transform 0.2s ease; }
.sol-toggle.open svg { transform: rotate(90deg); }
.sol-content { margin-top: 8px; font-size: 14px; color: #7A3426; background: rgba(255,255,255,0.6); border-radius: 8px; padding: 10px 12px; display: none; }
.sol-content.show { display: block; }
.sol-content::before { content: '解析 '; font-weight: 700; color: var(--red); }

/* 习题 */
.exercise-box { margin-top: 16px; }
.exercise-box h4 {
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.exercise-box h4::before { content: ''; width: 16px; height: 3px; background: var(--red); border-radius: 2px; }
.exercise-item {
  margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
}
.exercise-item .ex-q {
  display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.7;
}
.exercise-item .ex-q .no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-deep); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 2px;
}
.ex-tag {
  flex: none; align-self: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px; line-height: 1.5;
}
.tag-压轴 { color: #B23A26; background: var(--red-soft); border: 1px solid var(--red-line); }
.tag-奥数 { color: #8A5A12; background: #F7ECD9; border: 1px solid #E4CE9E; }
.answer-toggle {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--red); cursor: pointer;
  background: none; border: none; padding: 0;
}
.answer-toggle svg { transition: transform 0.2s ease; }
.answer-toggle.open svg { transform: rotate(90deg); }
.answer-content { display: none; margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: var(--red-soft); font-size: 13.5px; color: #7A3426; line-height: 1.75; }
.answer-content.show { display: block; }
.answer-content::before { content: '答案 '; font-weight: 700; color: var(--red); }

/* ===== 听力模块 ===== */
.listening-box {
  margin-top: 16px; border: 1.5px solid var(--orange);
  border-radius: 12px; padding: 14px 16px;
  background: rgba(255, 249, 240, 0.6);
}
.listening-head h4 {
  font-size: 14px; font-weight: 700; color: var(--orange);
  display: flex; align-items: center; gap: 8px;
}
.listening-head h4::before { content: ''; width: 16px; height: 3px; background: var(--orange); border-radius: 2px; }
.listen-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.listen-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--orange); background: #fff; color: var(--orange);
  transition: all 0.16s ease;
}
.listen-btn:hover { background: var(--orange); color: #fff; }
.listen-state { font-size: 12.5px; color: var(--ink-muted); }
.listen-tip { font-size: 12.5px; color: var(--ink-muted); margin-top: 8px; }
.listening-box .exercise-box { margin-top: 12px; }
.listening-box .exercise-box h4 { color: var(--orange); }
.listening-box .exercise-box h4::before { background: var(--orange); }
.script-toggle {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--orange); cursor: pointer;
  background: none; border: none; padding: 0;
}
.script-toggle svg { transition: transform 0.2s ease; }
.script-toggle.open svg { transform: rotate(90deg); }
.script-content {
  display: none; margin-top: 10px; padding: 12px 14px;
  border-radius: 8px; background: #FFF6EA; border: 1px dashed #E4CE9E;
  font-size: 14px; color: #6E4A14; line-height: 1.85;
}
.script-content.show { display: block; }
.script-content::before { content: '听力原文 '; font-weight: 700; color: var(--orange); }

/* 学科完成勾选 */
.subject-done-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.subject-done-check {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid var(--sc, var(--blue));
  background: transparent; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: all 0.18s ease;
}
.subject-done-check.checked { background: var(--sc, var(--blue)); color: #fff; }
.subject-done-check svg { width: 12px; height: 12px; }
.subject-done-label { font-size: 13.5px; color: var(--ink-muted); cursor: pointer; }

/* ===== 底部 ===== */
.footer {
  margin: 40px 0 0; padding: 34px 0 46px;
  background: var(--ink); color: #C9C2B0;
}
.footer .container { max-width: 1040px; }
.footer h3 { font-family: 'Noto Serif SC', 'Songti SC', serif; color: #F4EFE2; font-size: 18px; margin-bottom: 10px; }
.footer p { font-size: 13.5px; line-height: 1.9; margin-top: 6px; }
.footer .reset-btn {
  margin-top: 16px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35); background: transparent;
  color: #F4EFE2; font-size: 13px; cursor: pointer; transition: all 0.18s;
}
.footer .reset-btn:hover { background: rgba(255,255,255,0.1); border-color: #F2B8A9; color: #F2B8A9; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .hero-img { height: 210px; }
  .hero-overlay { padding: 18px 22px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 13.5px; }
  .hero-stats { gap: 7px; }
  .hero-stats span { font-size: 12px; padding: 4px 10px; }
  .progress-panel { flex-wrap: wrap; gap: 10px; }
  .day-tabs { margin: 10px -20px 0; }
  .subject-card { padding: 16px 16px 18px; }
  .law-bar { grid-template-columns: 1fr; }
}

/* ===== v2 新增：画图 / 选择 / 填空 / 计分 / 动画 / 错题巩固 ===== */
.diagram-wrap { margin: 10px 0 6px; text-align: center; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.diagram-wrap svg { width: 100%; height: auto; display: block; max-width: 560px; margin: 0 auto; }
.ex-diagram svg, .sol-diagram svg { max-width: 460px; }
.ex-kp { display: inline-block; font-size: 11px; color: #8a6d3b; background: #fdf3dc; border: 1px solid #ecd9a8; border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }

.life-box { margin: 10px 0 0; padding: 12px 14px; background: #f7fbf4; border-left: 4px solid #4E8A5E; border-radius: 0 8px 8px 0; }
.life-box h4 { font-size: 15px; color: #3c6e4c; margin-bottom: 8px; }
.life-mark { background: #4E8A5E !important; }
.life-box ul { margin: 0; padding-left: 18px; }
.life-box li { font-size: 13.5px; line-height: 1.75; margin: 4px 0; }

.demo-box { margin: 12px 0 0; padding: 12px 14px; background: #f4f6fb; border-left: 4px solid #3B6FB6; border-radius: 0 8px 8px 0; }
.demo-box h4 { font-size: 15px; color: #2c4f86; margin-bottom: 8px; }
.demo-mark { background: #3B6FB6 !important; }
.demo-canvas { width: 100%; height: auto; max-width: 560px; background: #fff; border: 1px solid #e3e8f2; border-radius: 8px; display: block; margin: 0 auto; }
.demo-tip { font-size: 12px; color: #7a86a0; margin: 6px 2px 0; }

.fill-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.fill-input { flex: 1 1 180px; min-width: 160px; padding: 7px 10px; font-size: 13.5px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.fill-input:focus { outline: none; border-color: var(--sc, #3B6FB6); box-shadow: 0 0 0 2px rgba(59,111,182,0.12); }
.fill-submit { padding: 7px 14px; font-size: 13px; border: none; border-radius: 6px; background: var(--sc, #3B6FB6); color: #fff; cursor: pointer; transition: opacity 0.15s; }
.fill-submit:hover { opacity: 0.85; }
.fill-result { font-size: 13px; font-weight: 600; }
.fill-result.ok { color: #2e7d32; }
.fill-result.bad { color: #c62828; }
.self-rate, .self-rate-wrong { padding: 6px 12px; font-size: 13px; border-radius: 6px; cursor: pointer; border: 1px solid #ddd; background: #fff; transition: all 0.15s; }
.self-rate { color: #2e7d32; border-color: #a5d6a7; }
.self-rate:hover { background: #e8f5e9; }
.self-rate-wrong { color: #c62828; border-color: #ef9a9a; }
.self-rate-wrong:hover { background: #ffebee; }

.choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
@media (max-width: 560px) { .choice-list { grid-template-columns: 1fr; } }
.choice-opt { text-align: left; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; border: 1.5px solid #d5dbe5; border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.15s; }
.choice-opt:hover:not([data-locked]) { border-color: var(--sc, #3B6FB6); background: #f4f7fc; }
.choice-opt.correct { border-color: #2e7d32; background: #e8f5e9; color: #1b5e20; font-weight: 600; }
.choice-opt.wrong { border-color: #c62828; background: #ffebee; color: #b71c1c; }
.choice-result { font-size: 13.5px; font-weight: 600; margin: 4px 0 6px; }
.choice-result.ok { color: #2e7d32; }
.choice-result.bad { color: #c62828; }

.score-panel { margin: 12px 0 0; padding: 9px 12px; background: #fffbe9; border: 1px solid #f0e2b6; border-radius: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #8a6d3b; }
.score-panel svg { color: #e8b93c; }
.score-c { color: #2e7d32; }
.score-w { color: #c62828; }
.score-wrong { color: #c62828; font-size: 12.5px; }
.total-score { margin-left: auto; font-size: 13px; color: #8a6d3b; background: #fffbe9; border: 1px solid #f0e2b6; padding: 4px 12px; border-radius: 20px; }
@media (max-width: 640px) { .total-score { margin-left: 0; } }

.extra-overlay { position: fixed; inset: 0; background: rgba(30,32,40,0.55); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.extra-panel { background: #fff; border-radius: 14px; max-width: 640px; width: 100%; padding: 20px 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.25); animation: extraIn 0.22s ease; }
@keyframes extraIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.extra-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.extra-head h3 { margin: 0; font-size: 17px; color: #c62828; }
.extra-close { border: none; background: none; font-size: 18px; color: #999; cursor: pointer; padding: 4px 8px; }
.extra-close:hover { color: #333; }
.extra-tip { font-size: 13px; color: #777; margin: 6px 0 12px; }
.extra-item { border: 1px solid #f0e2b6; background: #fffdf6; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.extra-done { display: block; width: 100%; margin-top: 8px; padding: 10px; border: none; border-radius: 8px; background: #4E8A5E; color: #fff; font-size: 14px; cursor: pointer; }
.extra-done:hover { opacity: 0.9; }

/* ===== v3 新增：知识点例题 / 解答题（豆包批改）/ 板块综合测试卷 ===== */
.sec-example { background: rgba(255, 252, 244, 0.6); border-color: #D8CFB2; margin-top: 12px; }
.sec-example .ex-label { background: #8A6D3B; }

.score-solve { color: #2c4f86; font-size: 12.5px; }

/* 解答题作答区（写过程 / 证明题 / 综合测试卷大题） */
.solve-area { margin-top: 10px; border: 1.5px dashed #C9C0A8; border-radius: 10px; padding: 12px 14px; background: rgba(255, 255, 255, 0.55); }
.solve-input { width: 100%; min-height: 88px; padding: 9px 11px; font-size: 14px; line-height: 1.7; font-family: inherit; border: 1px solid #D5D5C8; border-radius: 8px; background: #FFFEF8; resize: vertical; color: var(--ink); }
.solve-input:focus { outline: none; border-color: var(--sc, #3B6FB6); box-shadow: 0 0 0 2px rgba(59, 111, 182, 0.12); }
.solve-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--sc, #3B6FB6); border-radius: 999px;
  background: #fff; color: var(--sc, #3B6FB6); cursor: pointer; transition: all 0.16s ease;
}
.upload-btn:hover { background: var(--sc, #3B6FB6); color: #fff; }
.upload-btn input { display: none; }
.solve-status { font-size: 12.5px; color: var(--ink-muted); }
.solve-status.pending { color: #C97B2D; font-weight: 600; }
.solve-status.bad { color: #c62828; font-weight: 600; }
.copy-q {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  border: 1px solid #D5D5C8; border-radius: 999px; background: #fff;
  color: var(--ink-soft); cursor: pointer; transition: all 0.16s ease;
}
.copy-q:hover { border-color: var(--red-line); color: var(--red); }
.solve-preview { margin-top: 8px; }
.solve-shot { max-width: 100%; max-height: 260px; border: 1px solid var(--line); border-radius: 8px; display: block; }
.doubao-guide {
  margin-top: 10px; padding: 9px 12px;
  background: #EAF2FB; border-left: 4px solid #3B6FB6; border-radius: 0 8px 8px 0;
  font-size: 13px; color: #2c4f86; line-height: 1.7;
}
.doubao-guide svg { vertical-align: -2px; margin-right: 5px; }
.score-reg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.solve-score { width: 108px; padding: 6px 9px; font-size: 13.5px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.solve-score:focus { outline: none; border-color: var(--sc, #3B6FB6); }
.solve-reg { padding: 6px 13px; font-size: 13px; font-weight: 600; border: none; border-radius: 6px; background: var(--sc, #3B6FB6); color: #fff; cursor: pointer; transition: opacity 0.15s; }
.solve-reg:hover { opacity: 0.85; }
.solve-reg-result { font-size: 12.5px; font-weight: 600; }
.solve-reg-result.ok { color: #2e7d32; }
.solve-reg-result.bad { color: #c62828; }

/* 板块综合测试卷 / 高考模拟卷 */
.exam-box {
  margin-top: 18px; border: 2px solid #B9B09A; border-radius: 14px;
  padding: 16px 18px 14px; background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}
.exam-head h4 {
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 17px; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.exam-head h4::before { content: ''; width: 18px; height: 4px; background: var(--red); border-radius: 2px; }
.exam-note { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 5px; }
.exam-score-map { margin-top: 8px; padding: 7px 11px; background: var(--paper-deep); border-radius: 8px; font-size: 12.5px; color: var(--ink-soft); }
.exam-live { margin-top: 9px; font-size: 13px; color: #2c4f86; background: #EAF2FB; border-radius: 8px; padding: 7px 11px; }
.exam-live b { color: var(--red); font-size: 15px; }
.exam-part {
  margin: 14px 0 6px; font-size: 14px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.exam-part::before { content: ''; width: 14px; height: 3px; background: var(--sc, #3B6FB6); border-radius: 2px; }
.exam-q { margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.55); }
.exam-q .ex-q { margin: 0; padding: 0; border: none; }
.exam-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 2px; }
@media (max-width: 560px) { .exam-choice { grid-template-columns: 1fr; } }
.exam-opt {
  text-align: left; padding: 8px 12px; font-size: 13.5px; line-height: 1.5;
  border: 1.5px solid #D5DBE5; border-radius: 8px; background: #fff;
  cursor: pointer; transition: all 0.15s;
}
.exam-opt:hover:not(:disabled) { border-color: var(--sc, #3B6FB6); background: #F4F7FC; }
.exam-opt.correct { border-color: #2e7d32; background: #e8f5e9; color: #1b5e20; font-weight: 600; }
.exam-opt.wrong { border-color: #c62828; background: #ffebee; color: #b71c1c; }
.exam-opt:disabled { cursor: default; opacity: 1; }
.exam-res { display: block; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.exam-res.ok { color: #2e7d32; }
.exam-res.bad { color: #c62828; }
.exam-fill-row .exam-fill-submit { padding: 7px 14px; font-size: 13px; border: none; border-radius: 6px; background: var(--sc, #3B6FB6); color: #fff; cursor: pointer; transition: opacity 0.15s; }
.exam-fill-submit:hover { opacity: 0.85; }
.exam-fill-submit:disabled { opacity: 0.6; cursor: default; }
.exam-solve-q .answer-toggle { color: var(--blue); }
.exam-total {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #FFF8E7; border: 1px solid #F0DCA8;
  font-size: 13.5px; color: var(--ink-soft);
}
.exam-total b { color: var(--red); font-size: 19px; margin-right: 10px; }
.exam-total span { display: block; margin-top: 2px; font-size: 12.5px; }
.exam-total.hint { background: var(--paper-deep); border: 1px dashed #C9C0A8; color: var(--ink-muted); }
.exam-wrong { margin-top: 8px; font-size: 13px; color: #c62828; }
.exam-actions { display: flex; gap: 10px; margin-top: 14px; }
.exam-submit {
  padding: 9px 26px; font-size: 14px; font-weight: 700;
  border: none; border-radius: 999px; background: var(--red); color: #fff;
  cursor: pointer; transition: all 0.16s ease;
}
.exam-submit:hover { opacity: 0.88; }
.exam-submit:disabled { background: #C9C0B0; cursor: default; }
.exam-reset {
  padding: 9px 18px; font-size: 13.5px; font-weight: 600;
  border: 1px solid #C9C0A8; border-radius: 999px; background: #fff;
  color: var(--ink-soft); cursor: pointer; transition: all 0.16s ease;
}
.exam-reset:hover { border-color: var(--red); color: var(--red); }
/* ===== v3 新增：板块综合卷 / 高考模拟卷 ===== */
.paper-card { border: 2px solid var(--sc, #B9B09A); }
.paper-card .exam-box { margin-top: 4px; border: none; background: transparent; box-shadow: none; padding: 4px 0 0; }
.exam-lock-hint {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: var(--paper-deep); border: 1px dashed #C9C0A8;
  border-left: 4px solid var(--sc, var(--blue));
  font-size: 13px; color: var(--ink-soft);
}
.exam-multi-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
@media (max-width: 560px) { .exam-multi-opts { grid-template-columns: 1fr; } }
.exam-multi-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: 13.5px; line-height: 1.5;
  border: 1.5px solid #D5DBE5; border-radius: 8px; background: #fff; cursor: pointer;
  transition: all 0.15s;
}
.exam-multi-opt input { flex: none; width: 15px; height: 15px; }
.exam-multi-opt.correct { border-color: #2e7d32; background: #e8f5e9; color: #1b5e20; font-weight: 600; }
.exam-multi-opt.wrong { border-color: #c62828; background: #ffebee; color: #b71c1c; }
.multi-submit {
  margin-top: 8px; padding: 7px 18px; font-size: 13px; font-weight: 600;
  border: none; border-radius: 999px; background: var(--sc, var(--blue)); color: #fff;
  cursor: pointer; transition: opacity 0.15s;
}
.multi-submit:hover { opacity: 0.85; }
.multi-submit:disabled { background: #C9C0B0; cursor: default; }
.gaokao-progress { margin-top: 8px; font-size: 13px; color: #2c4f86; }
.gaokao-banner {
  margin-top: 10px; padding: 12px 16px; border-radius: 10px;
  background: linear-gradient(90deg, #F5D27A, #E9B949);
  border: 1.5px solid #C99A2E; color: #6E4A10;
  font-size: 14.5px; font-weight: 700; text-align: center;
}
.paper-extra-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; font-size: 13.5px; font-weight: 700;
  border: none; border-radius: 999px; background: var(--green); color: #fff;
  cursor: pointer; transition: opacity 0.15s;
}
.paper-extra-btn:hover { opacity: 0.88; }
.paper-extra-btn svg { width: 14px; height: 14px; }