:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --bg: #f4f6f9;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #ecfdf5;
  --amber: #b45309;
  --red: #dc2626;
  --green: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 8% -10%, rgba(15, 118, 110, .10), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(30, 58, 138, .07), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

[v-cloak] { display: none; }

button, input, select { font-family: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f766e, #115e59);
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
  flex: 0 0 auto;
}

.brand-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .5px;
  line-height: 1.2;
}

.brand-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; letter-spacing: .2px; }

.top-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.stat {
  min-width: 66px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.stat b { display: block; font-size: 15px; color: var(--teal-dark); letter-spacing: .5px; }
.stat span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: .4px; }

.tabs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 6px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: .18s ease;
}
.tabs button:hover { color: var(--teal-dark); background: rgba(15, 118, 110, .06); }
.tabs button.active { color: #fff; background: var(--teal); box-shadow: 0 6px 14px rgba(15, 118, 110, .22); }

.layout {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 132px;
  max-height: calc(100vh - 154px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.side-title { font-size: 11px; letter-spacing: 1.6px; color: var(--muted); padding: 4px 8px 10px; }
.chapter-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: .15s ease;
}
.chapter-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item em { font-style: normal; font-size: 11px; color: var(--muted); background: #f1f5f9; padding: 1px 6px; border-radius: 20px; flex: 0 0 auto; }
.chapter-item:hover { background: #f8fafc; color: var(--teal-dark); }
.chapter-item.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.chapter-item.active em { background: #d1fae5; color: var(--teal-dark); }

.main-col { min-width: 0; }

.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.search-box {
  flex: 1 1 280px;
  position: relative;
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  height: 42px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}
.search-icon { color: var(--muted); font-size: 17px; margin-right: 8px; }
.search-box input { border: 0; outline: 0; flex: 1; font-size: 13px; color: var(--ink); background: transparent; }
.toolbar select {
  height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 11px;
  padding: 0 12px; font-size: 13px; color: var(--ink-2); outline: none; cursor: pointer;
}
.ghost-btn, .primary-btn {
  height: 42px; border-radius: 11px; padding: 0 15px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .16s ease;
}
.ghost-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.ghost-btn:disabled { opacity: .38; cursor: not-allowed; }
.primary-btn { background: var(--teal); border-color: var(--teal); color: #fff; }
.primary-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.progress-line { margin: 4px 2px 12px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.bar { height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #0f766e, #14b8a6); border-radius: 4px; transition: width .25s ease; }

.q-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 26px 20px;
  box-shadow: var(--shadow);
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pill { font-size: 11px; line-height: 1; padding: 6px 9px; border-radius: 20px; letter-spacing: .2px; }
.pill-set { background: #eef2ff; color: #3730a3; }
.pill-ch { background: #f1f5f9; color: #475569; }
.pill-level { background: #fff7ed; color: var(--amber); }
.pill-topic { background: var(--teal-soft); color: var(--teal-dark); }

.q-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.q-no { font-family: var(--serif); font-size: 30px; color: var(--teal-dark); line-height: 1; }
.q-id { font-size: 11.5px; color: var(--muted); }
.q-text { font-size: 16.5px; line-height: 1.85; color: #1e293b; margin: 12px 0 20px; }
.q-text strong { color: #0f172a; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 13px 15px;
  font-size: 14.2px;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
  transition: .16s ease;
}
.option:hover:not(:disabled) { border-color: #94a3b8; background: #fbfdff; transform: translateY(-1px); }
.option:disabled { cursor: default; }
.opt-key {
  flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f1f5f9; color: #475569; font-weight: 700; font-size: 13px;
  transition: .16s ease;
}
.opt-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.opt-text { flex: 1; min-width: 180px; }
.opt-tag { font-size: 10.5px; color: var(--green); background: #dcfce7; border: 1px solid #bbf7d0; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.opt-tag.tag-wrong { color: var(--red); background: #fee2e2; border-color: #fecaca; }

.option.is-correct { background: #e8f5e9; border-color: #16a34a; color: #14532d; box-shadow: 0 4px 14px rgba(22, 163, 74, .10); }
.option.is-correct .opt-key { background: #16a34a; color: #fff; }
.option.is-wrong { background: #ffebee; border-color: #dc2626; color: #7f1d1d; }
.option.is-wrong .opt-key { background: #dc2626; color: #fff; }
.option.is-dim { opacity: .52; }

.feedback {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.feedback.ok { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.feedback.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.feedback strong { font-size: 13.5px; }

.actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.actions .spacer { flex: 1 1 20px; }

.analysis { margin-top: 22px; border-top: 1px dashed #dbe3ec; padding-top: 18px; animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* === 答案徽章区 === */
.answer-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%); border: 1px solid #ccfbf1; border-radius: 14px; }
.answer-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--teal-dark); color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 700; box-shadow: 0 4px 12px rgba(15, 118, 110, .25); flex: 0 0 auto; }
.answer-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.answer-topic { font-size: 13.5px; font-weight: 600; color: #134e4a; }
.answer-chapter { font-size: 12px; color: #0f766e; }
.answer-level { font-size: 11px; color: #64748b; }

/* === 三段解析卡片 === */
.std-block { margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.std-label-wrap { margin-bottom: 8px; }
.std-label { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 700; letter-spacing: .3px; }
.label-point { background: #eef2ff; color: #4338ca; }
.label-basis { background: #ecfdf5; color: #047857; }
.label-dist { background: #fef2f2; color: #b91c1c; }
.label-trap { background: #fff7ed; color: #c2410c; }

.block-point { border-color: #e0e7ff; background: linear-gradient(180deg, #fafbff 0%, #fff 60%); }
.block-basis { border-color: #d1fae5; background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%); }
.block-dist  { border-color: #fee2e2; background: linear-gradient(180deg, #fef2f2 0%, #fff 60%); }
.block-trap  { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed 0%, #fff 60%); }

/* 易错提醒：本题主考核章节 · 知识点 */
.kp-line {
  margin: 0 0 9px; padding: 6px 10px;
  font-size: 12.5px; line-height: 1.65; color: #7c2d12;
  background: #fff; border-left: 3px solid #f59e0b; border-radius: 6px;
}
.kp-line b { color: #b45309; }

.std-block .md ul li { color: #1f2937; }
.block-dist .md strong { color: #b91c1c; }
.block-basis .md strong { color: #047857; }

/* === 通用 Markdown === */
.md { color: #1f2937; font-size: 14px; line-height: 1.85; }
.md h3 { margin: 18px 0 10px; font-size: 15.5px; color: var(--teal-dark); letter-spacing: .3px; }
.md h3:first-child { margin-top: 0; }
.md p { margin: 8px 0; }
.md strong { color: #0f172a; }
.md ul { margin: 8px 0; padding-left: 20px; }
.md li { margin: 5px 0; }
.md table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 13px; }
.md th, .md td { border: 1px solid #e2e8f0; padding: 9px 11px; text-align: left; vertical-align: top; }
.md th { background: #f1f5f9; color: #334155; font-weight: 600; }
.md tr:nth-child(even) td { background: #fbfcfd; }

.opt-correct { color: #16a34a; background: #ecfdf5; padding: 3px 8px; border-radius: 6px; }
.opt-wrong { color: #dc2626; background: #fef2f2; padding: 3px 8px; border-radius: 6px; }

/* === 四段式全景卡折叠区 === */
.panorama-details { margin-top: 14px; border: 1px solid #edf1f5; border-radius: 12px; background: #fff; }
.panorama-details summary { cursor: pointer; padding: 11px 14px; font-size: 12.5px; color: var(--teal-dark); font-weight: 600; list-style: none; }
.panorama-details summary::-webkit-details-marker { display: none; }
.panorama-details summary::before { content: '▸ '; color: var(--teal); }
.panorama-details[open] summary::before { content: '▾ '; }
.analysis-md { background: #fbfcfd; border: 1px solid #edf1f5; border-radius: 14px; padding: 18px 20px; margin: 0; border-top: none; border-left: none; border-right: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

.empty { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 48px 24px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.page { max-width: 1240px; margin: 22px auto 0; padding: 0 24px; }
.page-head h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; letter-spacing: .5px; }
.page-head p { margin: 0 0 18px; color: var(--muted); font-size: 12.8px; line-height: 1.7; }

.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.summary-card b { display: block; font-size: 18px; color: var(--teal-dark); letter-spacing: .4px; }
.summary-card span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

.audit-note { display: flex; gap: 10px; align-items: baseline; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 12px; padding: 11px 14px; font-size: 12.3px; line-height: 1.7; margin-bottom: 18px; flex-wrap: wrap; }
.audit-note strong { flex: 0 0 auto; }

/* 真题解析：超长解析折叠 + 展开按钮 */
.rc-analysis { position: relative; }
.rc-analysis.clipped > div { max-height: 7.2em; overflow: hidden; }
.rc-analysis.clipped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 80%); pointer-events: none; }
.analysis-more { margin-top: 4px; font-size: 12.3px; }

.audit-set { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(15, 23, 42, .03); }
.audit-set-head { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: #fff; padding: 13px 16px; cursor: pointer; text-align: left; font-size: 13.2px; color: var(--ink); }
.audit-set-head:hover { background: #f8fafc; }
.audit-set-head .chev { color: var(--teal); width: 12px; }
.audit-set-head .muted { margin-left: auto; color: var(--muted); font-size: 11.5px; }

.table-wrap { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 12.6px; }
.audit-table th, .audit-table td { border-top: 1px solid #eef2f7; padding: 9px 14px; text-align: left; white-space: nowrap; }
.audit-table th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 11.8px; }
.audit-table td:nth-child(1) { color: var(--muted); width: 96px; }
.audit-table td:nth-child(2) { min-width: 220px; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--red); font-weight: 600; }

.dist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); margin-bottom: 14px; }
.panel h3 { margin: 0 0 14px; font-size: 14px; color: var(--ink); letter-spacing: .4px; }
.hbar { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.hbar-label { width: 38px; font-size: 12px; color: var(--ink-2); flex: 0 0 auto; }
.hbar-track { flex: 1; height: 10px; background: #eef2f7; border-radius: 8px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, #0f766e, #2dd4bf); border-radius: 8px; }
.hbar-track.alt i { background: linear-gradient(90deg, #1e3a8a, #60a5fa); }
.hbar-val { width: 30px; text-align: right; font-size: 12px; color: var(--muted); flex: 0 0 auto; }

.chapter-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.chapter-bar { display: flex; align-items: center; gap: 9px; }
.cb-name { width: 178px; font-size: 11.6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; }
.cb-track { flex: 1; height: 7px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.cb-track i { display: block; height: 100%; background: #94a3b8; border-radius: 6px; }
.cb-val { width: 24px; text-align: right; font-size: 11px; color: var(--muted); }

.foot { max-width: 1240px; margin: 28px auto 0; padding: 18px 24px 34px; display: flex; justify-content: space-between; gap: 12px; color: #94a3b8; font-size: 11.5px; border-top: 1px solid #e8edf3; flex-wrap: wrap; }

/* === 历年真题 / 案例实战 === */
.side-note {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #dbe3ec;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}
.side-note b { color: var(--teal-dark); font-size: 13px; }

.pill-real { background: #eef2ff; color: #3730a3; }
.pill-mock { background: #fff7ed; color: var(--amber); }
.pill-bank { background: #f1f5f9; color: #475569; }

.option.is-picked { background: #e0f2fe; border-color: #0284c7; color: #0c4a6e; }
.option.is-picked .opt-key { background: #0284c7; color: #fff; }

.feedback.neutral { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

.case-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.case-toolbar select {
  height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0 12px; font-size: 12.8px; color: var(--ink-2); outline: none; cursor: pointer;
}
.case-toolbar .spacer { flex: 1 1 20px; }
.case-progress { font-size: 11.8px; color: var(--muted); }

.case-list { display: grid; gap: 12px; }
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
  overflow: hidden;
}
.case-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  transition: background .15s ease;
}
.case-head:hover { background: #f8fafc; }
.case-head .chev { color: var(--teal); font-size: 13px; line-height: 1.6; flex: 0 0 auto; }
.case-title { flex: 1; min-width: 0; }
.case-title h3 { margin: 0 0 7px; font-size: 14.5px; letter-spacing: .3px; color: var(--ink); line-height: 1.5; }
.case-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.case-meta .muted { color: var(--muted); font-size: 11.5px; }
.case-rate { display: flex; gap: 5px; flex: 0 0 auto; }
.case-rate button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 11.5px; padding: 5px 9px; border-radius: 20px; cursor: pointer;
  transition: .15s ease;
}
.case-rate button:hover { border-color: #cbd5e1; color: var(--teal-dark); }
.case-rate button.on { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 3px 10px rgba(15, 118, 110, .2); }

.case-body { border-top: 1px dashed #e2e8f0; padding: 16px 18px 18px; }
.case-bg {
  background: #fbfcfd; border: 1px solid #edf1f5; border-radius: 12px;
  padding: 14px 16px; font-size: 13.4px; line-height: 1.85; color: var(--ink-2);
  margin-bottom: 16px;
}
.case-bg p { margin: 0 0 8px; }
.case-bg p:last-child { margin-bottom: 0; }
.case-q { padding: 12px 0; border-top: 1px dashed #eef2f7; }
.case-q:first-of-type { border-top: 0; }
.case-q-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.case-q-head b { font-size: 13.2px; color: var(--teal-dark); }
.case-points {
  font-size: 11px; color: var(--amber); background: #fff7ed;
  border: 1px solid #fde68a; padding: 2px 8px; border-radius: 20px;
}
.case-q .md { font-size: 13.6px; line-height: 1.85; color: var(--ink-2); }
.case-answer {
  margin-top: 10px; padding: 13px 15px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1px solid #ccfbf1; border-radius: 12px;
  animation: fade .25s ease both;
}
.case-answer-label {
  font-size: 11px; letter-spacing: 1px; color: var(--teal-dark);
  font-weight: 700; margin-bottom: 8px;
}
.case-answer .md { font-size: 13.2px; line-height: 1.85; }
.case-answer-toggle { margin-top: 9px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; }

.side-warn { display: block; margin-top: 4px; color: var(--amber); }

/* === 学习总览 === */
.home-page { margin-top: 20px; }
.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0f766e 0%, #115e59 48%, #0f172a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .35), transparent 65%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker { font-size: 11px; letter-spacing: 2.2px; color: rgba(255, 255, 255, .72); }
.hero-copy h2 { margin: 10px 0 10px; font-family: var(--serif); font-size: 30px; letter-spacing: 1px; line-height: 1.25; }
.hero-copy p { margin: 0 0 18px; max-width: 580px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero .primary-btn { background: #fff; border-color: #fff; color: var(--teal-dark); }
.home-hero .primary-btn:hover { background: #f0fdfa; border-color: #f0fdfa; }
.home-hero .ghost-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .38); color: #fff; }
.home-hero .ghost-btn:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .55); }
.hero-ring {
  position: relative; z-index: 1;
  width: 136px; height: 136px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .09);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ring-num { font-family: var(--serif); font-size: 38px; line-height: 1; }
.ring-num span { font-size: 15px; margin-left: 1px; }
.ring-label { font-size: 10.5px; letter-spacing: 1.4px; color: rgba(255, 255, 255, .72); margin-top: 7px; }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.module-card {
  display: flex; flex-direction: column; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.module-head { display: flex; align-items: center; gap: 11px; }
.module-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--serif); font-size: 18px; flex: 0 0 auto;
}
.module-head h3 { margin: 0; font-size: 15px; color: var(--ink); }
.module-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.module-stats { display: flex; gap: 9px; }
.module-stats > div { flex: 1; min-width: 0; background: #f8fafc; border-radius: 10px; padding: 8px 5px; text-align: center; }
.module-stats b { display: block; font-size: 15px; color: var(--teal-dark); }
.module-stats span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.module-bar { height: 6px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.module-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0f766e, #14b8a6); border-radius: 6px; transition: width .3s ease; }
.module-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.module-foot .btn-sm { flex: 0 0 auto; }

.home-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 16px; }
.home-lower .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.link-btn { border: 0; background: transparent; color: var(--teal-dark); font-size: 12px; cursor: pointer; padding: 2px 3px; border-radius: 6px; }
.link-btn:hover { background: rgba(15, 118, 110, .08); }

.wrong-list { display: flex; flex-direction: column; gap: 8px; }
.wrong-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 9px 11px; text-align: left; cursor: pointer;
  transition: .15s ease;
}
.wrong-item:hover { border-color: #fca5a5; background: #fff5f5; }
.wrong-kind { flex: 0 0 auto; font-size: 10.5px; padding: 2px 7px; border-radius: 20px; background: #fee2e2; color: #b91c1c; }
.wrong-title { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrong-tag { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); }
.wrong-empty { font-size: 12.5px; color: var(--muted); padding: 18px 4px; line-height: 1.8; }
.coverage { margin: 0; padding-left: 18px; font-size: 12.3px; line-height: 1.85; color: var(--ink-2); }
.coverage li { margin-bottom: 6px; }
.coverage b { color: var(--ink); }
.coverage-links { display: flex; gap: 14px; margin-top: 10px; }

/* === 分段筛选 / 答题卡 === */
.segmented {
  display: inline-flex; align-items: center; gap: 3px;
  height: 42px; padding: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
}
.segmented button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; padding: 0 12px; height: 34px; border-radius: 8px; cursor: pointer;
  white-space: nowrap; transition: .15s ease;
}
.segmented button:hover { color: var(--teal-dark); }
.segmented button.on { background: var(--teal); color: #fff; box-shadow: 0 4px 10px rgba(15, 118, 110, .2); }

.answer-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.sheet-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.sheet-head b { color: var(--ink); }
.sheet-head .spacer { flex: 1 1 12px; }
.sheet-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.sheet-legend .lg { display: inline-flex; align-items: center; gap: 4px; }
.sheet-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.lk-correct { background: #dcfce7; border: 1px solid #86efac; }
.lk-wrong { background: #fee2e2; border: 1px solid #fca5a5; }
.lk-blank { background: #fff; border: 1px solid #cbd5e1; }
.lk-unmarked { background: #e0f2fe; border: 1px solid #7dd3fc; }
.sheet-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px; max-height: 268px; overflow: auto; padding-right: 4px;
}
.sheet-cell {
  height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #f8fafc; color: var(--ink-2); font-size: 11.5px; cursor: pointer;
  transition: .15s ease;
}
.sheet-cell:hover { border-color: #94a3b8; }
.sheet-cell.is-blank { background: #fff; color: #94a3b8; }
.sheet-cell.is-correct { background: #dcfce7; border-color: #86efac; color: #15803d; font-weight: 600; }
.sheet-cell.is-wrong { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; font-weight: 600; }
.sheet-cell.is-unmarked { background: #e0f2fe; border-color: #7dd3fc; color: #0c4a6e; }
.sheet-cell.is-current { outline: 2px solid var(--teal); outline-offset: 1px; font-weight: 700; }

.foot-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot .link-btn { color: #64748b; font-size: 11.5px; }
.foot .link-btn:hover { color: var(--teal-dark); background: transparent; text-decoration: underline; }
.foot .foot-clear { color: #94a3b8; }
.foot .foot-clear:hover { color: var(--red); }

.kbd-hint { font-size: 11.5px; color: #94a3b8; white-space: nowrap; }

.case-toolbar .search-box { flex: 1 1 220px; height: 38px; }
.case-toolbar .ghost-btn { height: 38px; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; padding: 26px 24px; }
  .hero-ring { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .home-lower { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 9px; }
  .side-title { display: none; }
  .chapter-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .chapter-item em { display: none; }
  .side-note { display: none; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dist-grid, .chapter-bars { grid-template-columns: 1fr; }
  .top-stats { display: none; }
  .kbd-hint { display: none; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 14px 16px 10px; }
  .tabs { padding: 0 16px 10px; overflow-x: auto; }
  .brand-copy h1 { font-size: 19px; }
  .brand-copy p { font-size: 11px; }
  .brand-mark { width: 40px; height: 40px; font-size: 21px; }
  .layout, .page { padding: 0 14px; }
  .q-card { padding: 18px 16px; }
  .q-text { font-size: 15.5px; }
  .option { font-size: 13.6px; }
  .options .opt-body { align-items: flex-start; }
  .actions .spacer { display: none; }
  .analysis-md { padding: 14px; }
  .case-head { flex-wrap: wrap; }
  .case-rate { flex: 0 0 100%; margin-left: 22px; margin-top: 2px; }
  .case-body { padding: 14px; }
  .home-hero { padding: 22px 18px; border-radius: 18px; }
  .hero-copy h2 { font-size: 24px; }
  .hero-copy p { font-size: 12.5px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 0 6px; }
  .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); }
  .case-toolbar .search-box { flex: 1 1 100%; }
}


/* ==== Papers (论文) ==== */
.paper-list { display: grid; gap: 16px; }
.paper-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; transition: box-shadow .2s; }
.paper-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.paper-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.paper-batch { font-size: 13px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 4px; }
.paper-topic { font-size: 12px; color: var(--primary); font-weight: 600; background: rgba(var(--primary-rgb),.1); padding: 2px 8px; border-radius: 4px; }
.paper-title { font-size: 17px; font-weight: 700; margin: 0 0 10px 0; color: var(--fg); }
.paper-outline { font-size: 13px; color: var(--muted); margin: 0 0 10px 0; line-height: 1.7; }
.paper-foot { border-top: 1px solid var(--border); padding-top: 10px; }
.paper-src { font-size: 11px; color: var(--dim); }
.filter-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar label { font-size: 13px; color: var(--muted); }
.filter-bar select { font-size: 13px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--fg); }
.tip { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* ==== 错题模式 ==== */
.wf-sidebar { padding: 16px 10px 18px; }
.wf-summary { margin: 0 8px 14px; padding: 12px 14px; background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%); border: 1px solid #fee2e2; border-radius: 12px; }
.wf-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: #475569; }
.wf-sum-row b { font-size: 15px; color: #b91c1c; font-weight: 700; }
.wf-sum-row b.wf-ok { color: #059669; }
.wf-round-guide { margin: 0 8px 14px; padding: 10px 12px; background: #fff; border: 1px dashed #e2e8f0; border-radius: 10px; font-size: 11.5px; color: #64748b; line-height: 1.65; }
.wf-round-guide p { margin: 0; }
.wf-round-guide p + p { margin-top: 4px; }
.wf-exit-btn { width: 100%; margin: 6px 8px 0; }

.wf-banner { background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 40%, #fff7ed 100%); border: 1px solid #fecaca; border-radius: 14px; padding: 14px 16px 12px; margin-bottom: 6px; box-shadow: 0 2px 10px rgba(239, 68, 68, .06); }
.wf-banner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.wf-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #dc2626; background: #fff; border: 1px solid #fecaca; padding: 3px 10px; border-radius: 20px; letter-spacing: .4px; }
.wf-sub { font-size: 12.5px; color: #991b1b; }
.wf-rounds { display: flex; gap: 10px; }
.wf-round { flex: 1 1 0; background: #fff; border: 2px solid #fecaca; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; transition: all .18s; display: flex; flex-direction: column; gap: 3px; font-family: inherit; }
.wf-round span { font-size: 13px; font-weight: 600; color: #7f1d1d; letter-spacing: .3px; }
.wf-round em { font-style: normal; font-size: 20px; font-weight: 700; color: #dc2626; line-height: 1; }
.wf-round-tip { font-style: normal; font-size: 10.5px; color: #b91c1c; opacity: .75; }
.wf-round:hover { border-color: #dc2626; box-shadow: 0 2px 10px rgba(220, 38, 38, .10); }
.wf-round.on { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); border-color: #dc2626; color: #fff; box-shadow: 0 4px 14px rgba(220, 38, 38, .25); }
.wf-round.on span { color: #fff; }
.wf-round.on em { color: #fff; }
.wf-round.on .wf-round-tip { color: rgba(255,255,255,.8); opacity: 1; }
.wf-round.empty { opacity: .5; cursor: not-allowed; }
.wf-round.empty:hover { box-shadow: none; border-color: #fecaca; }

.wf-progress .bar i { background: linear-gradient(90deg, #dc2626, #ef4444); }
.wf-progress .progress-meta { color: #7f1d1d; }

/* ==== 错题集（独立 tab）==== */
.nav-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  color: #fff; background: #dc2626;
  padding: 1px 6px; border-radius: 10px;
  margin-left: 4px;
}

.wrong-layout .sidebar { padding: 14px 10px 18px; }
.wrong-summary { margin: 0 8px 14px; padding: 12px 14px; background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%); border: 1px solid #fee2e2; border-radius: 12px; }
.wrong-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: #475569; }
.wrong-sum-row b { font-size: 14px; color: #b91c1c; font-weight: 700; }
.wrong-sum-row b.wrong-ok { color: #059669; }
.wrong-empty-note { margin: 0 8px 14px; padding: 14px; background: #fff; border: 1px dashed #e2e8f0; border-radius: 12px; font-size: 12px; color: #64748b; text-align: center; }
.wrong-empty-note b { display: block; font-size: 15px; color: #334155; margin-bottom: 6px; }
.wrong-empty-note p { margin: 0; }
.wrong-rule { margin: 0 8px 14px; padding: 10px 12px; background: #fff; border: 1px dashed #e2e8f0; border-radius: 10px; font-size: 11.5px; color: #64748b; line-height: 1.7; }
.wrong-rule p { margin: 0; }
.wrong-clear { width: calc(100% - 16px); margin: 6px 8px 0; }
.wrong-clear:disabled { opacity: .4; cursor: not-allowed; }

.wrong-hint { margin-right: 10px; }

/* 答题卡格子样式 */
.wrong-cell.wrong-p { border-left: 3px solid #3b82f6; }  /* 章测 蓝色条 */
.wrong-cell.wrong-r { border-left: 3px solid #f97316; }  /* 真题 橙色条 */
.wrong-cell.wrong-a1 { background: #fef9c3; border-color: #eab308; color: #854d0e; }
.wrong-cell.wrong-a2 { background: #fce7f3; border-color: #ec4899; color: #9d174d; }
.wrong-cell.active { outline: 2px solid #dc2626; outline-offset: -2px; }
.wrong-cell-dot { font-size: 11px; margin-left: 1px; }
.wrong-legend { display: flex; gap: 14px; justify-content: center; padding-top: 8px; font-size: 11.5px; color: #64748b; }
.lk-wrong-a1 { background: #fef9c3; border-color: #eab308; }
.lk-wrong-a2 { background: #fce7f3; border-color: #ec4899; }

/* 错题 pill */
.wrong-pill-kind { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; font-size: 11.5px; font-weight: 600; }
.wrong-pill-w { background: #fef2f2; color: #b91c1c; font-size: 11px; }
.wrong-pill-s1 { background: #fef9c3; color: #854d0e; font-size: 11px; border: 1px solid #eab308; }
.wrong-pill-s2 { background: #fce7f3; color: #9d174d; font-size: 11px; border: 1px solid #ec4899; }

/* progress-line 错题集样式 */
.wrong-layout .progress-line .bar i { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* 通关提示条 */
.wrong-pass-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #86efac;
  border-radius: 11px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}
.wrong-pass-banner .link-btn { flex: 0 0 auto; }
/* ==== 考点精讲（章节知识点笔记）==== */
.nav-badge-teal { background: var(--teal); }

.notes-layout .sidebar { padding: 14px 10px 18px; }
.notes-item .notes-check {
  display: inline-block;
  font-style: normal;
  color: var(--teal);
  font-weight: 700;
  margin-right: 5px;
  font-size: 12px;
}
.notes-item.read span { color: var(--muted); }
.notes-item.read.active span { color: var(--teal-dark); }

.notes-card { padding: 26px 30px 22px; }
.notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--teal-soft);
}
.notes-index {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--teal); background: var(--teal-soft);
  border: 1px solid #99f6e4;
  padding: 2px 10px; border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.notes-title-wrap h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); font-family: var(--serif); }
.notes-intro { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

.notes-read-btn {
  flex: 0 0 auto;
  border: 1.5px solid var(--teal);
  background: #fff;
  color: var(--teal);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.notes-read-btn:hover { background: var(--teal-soft); }
.notes-read-btn.done { background: var(--teal); color: #fff; }

.notes-section { margin-top: 20px; }
.notes-h {
  font-size: 15px; font-weight: 700; color: var(--teal-dark);
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3.5px solid var(--teal);
  line-height: 1.4;
}
.notes-card .md { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.notes-card .md h3 { font-size: 14px; color: var(--ink); margin: 14px 0 8px; }
.notes-card .md table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 12.5px; }
.notes-card .md th { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }
.notes-card .md th, .notes-card .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.notes-card .md code { background: #f1f5f9; color: var(--teal-dark); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.notes-card .md ul { padding-left: 20px; margin: 8px 0; }
.notes-card .md li { margin: 4px 0; }
.notes-card .md li.sub { color: var(--muted); font-size: 12.5px; }

.notes-extra {
  margin-top: 22px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
}
.notes-extra .notes-h { border-left-color: var(--amber); color: var(--amber); }
.notes-pitfalls { margin: 0; padding-left: 18px; }
.notes-pitfalls li { font-size: 13px; color: #78350f; line-height: 1.8; margin: 4px 0; }

.notes-extra:has(.notes-mnemonics) { background: var(--teal-soft); border-color: #99f6e4; }
.notes-extra:has(.notes-mnemonics) .notes-h { border-left-color: var(--teal); color: var(--teal-dark); }
.notes-mnemonics { display: flex; flex-wrap: wrap; gap: 8px; }
.mnemonic-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #99f6e4;
  color: var(--teal-dark);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.notes-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.notes-pos { font-size: 12px; color: var(--muted); flex: 1; text-align: center; }

@media (max-width: 720px) {
  .notes-card { padding: 18px 16px 16px; }
  .notes-head { flex-direction: column; }
  .notes-read-btn { align-self: flex-start; }
  .notes-foot { flex-wrap: wrap; }
  .notes-pos { order: -1; width: 100%; }
}
/* ==== 精讲：自动进度 + 章测错题自动关联 ==== */
.notes-status {
  flex: 0 0 auto;
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 7px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
.notes-status.done {
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  font-weight: 600;
}

.notes-item .notes-wq {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0 4px;
  border-radius: 4px;
  margin-left: 5px;
}
.notes-item .notes-wq.high { color: #fff; background: #dc2626; border-color: #dc2626; }

.notes-consolidate {
  margin: 14px 0 4px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
}
.nc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nc-title { font-size: 14px; font-weight: 700; color: #9a3412; }
.nc-count { font-size: 11.5px; font-weight: 600; color: #b45309; }
.nc-tip { margin: 6px 0 8px; font-size: 12px; line-height: 1.75; color: #92400e; }
.nc-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nc-chip { font-size: 11.5px; color: #9a3412; background: #fff; border: 1px solid #fed7aa; padding: 2px 9px; border-radius: 20px; }
.nc-list { list-style: none; margin: 0; padding: 0; }
.nc-list li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px dashed #fde68a; }
.nc-w { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #b45309; background: #fff; border: 1px solid #fde68a; border-radius: 4px; padding: 1px 6px; margin-top: 1px; }
.nc-w.high { color: #fff; background: #dc2626; border-color: #dc2626; }
.nc-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nc-body b { font-size: 12px; color: #7c2d12; font-weight: 600; }
.nc-body em { font-style: normal; font-size: 11.5px; color: #a16207; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nc-more { margin: 6px 0 0; font-size: 11.5px; color: #b45309; }

.notes-section.notes-hot {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 16px;
}
.notes-section.notes-hot .notes-h { border-left-color: #f59e0b; color: #9a3412; }

.notes-end { height: 1px; }

.weak-note { color: var(--amber); font-weight: 700; }

.note-tip {
  margin: 10px 0 4px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--teal-dark);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
}
.note-tip b { font-weight: 700; }

@media (max-width: 720px) {
  .notes-status { align-self: flex-start; margin-top: 4px; }
  .notes-consolidate { padding: 12px 12px 10px; }
}
/* 侧栏错题计数（与题数合并展示，避免“错11题”歧义） */
.notes-item .notes-wq-em { color: #b45309; font-style: normal; font-weight: 600; font-size: 11px; }
.notes-item .notes-wq-em.high { color: #dc2626; }
.notes-item.active .notes-wq-em.high { color: #b91c1c; }
/* 精讲头部：本章练习掌握度（自动关联） */
.notes-practice {
  display: inline-block;
  margin: 8px 0 0;
  padding: 2px 10px;
  font-size: 11.5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #99f6e4;
  border-radius: 20px;
}

/* 章测侧栏：章节错题徽标（仍在错题集、未通关） */
.chapter-item .practice-wq-em { color: #b45309; background: #fff7ed; cursor: pointer; }
.chapter-item .practice-wq-em.high { color: #dc2626; background: #fef2f2; }
.chapter-item.active .practice-wq-em { color: #b45309; background: #fed7aa; }
.chapter-item.active .practice-wq-em.high { color: #b91c1c; background: #fecaca; }
.chapter-item .practice-wq-em:hover { text-decoration: underline; }

/* 章测：本章错题关联提示条 */
.chapter-wrong-tip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 12px; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.7; color: #92400e;
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
}
.chapter-wrong-tip b { color: #b45309; }
.chapter-wrong-tip .link-btn { color: #b45309; font-weight: 600; }

/* 章测：从错题集定位到原题 */
.locate-tip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 12px; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.7; color: var(--teal-dark);
  background: var(--teal-soft); border: 1px solid #99f6e4; border-radius: 10px;
}
.locate-tip .link-btn { color: var(--teal-dark); font-weight: 600; }

/* 章测解析：本题在错题集中的状态 */
.bank-tip {
  margin: 4px 0 6px; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.7; color: #991b1b;
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: 10px;
}
.bank-tip .link-btn { color: #991b1b; font-weight: 600; }

/* 错题集：薄弱章节列表 */
.side-sub { font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.wrong-chapter-list { display: flex; flex-direction: column; gap: 4px; margin: 0 8px 12px; padding: 0; }
.wrong-chapter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 7px 9px;
  border: 1px solid transparent; border-radius: 8px;
  background: #fff; color: var(--ink);
  font-size: 12.5px; text-align: left; cursor: pointer;
}
.wrong-chapter-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrong-chapter-item em {
  font-style: normal; font-size: 11px; font-weight: 600;
  color: #b45309; background: #fff7ed; padding: 1px 7px; border-radius: 20px;
}
.wrong-chapter-item em.high { color: #dc2626; background: #fef2f2; }
.wrong-chapter-item:hover { border-color: #fecdd3; background: #fff7f7; }
.wrong-chapter-item.active { border-color: #fca5a5; background: #fff1f2; color: #991b1b; font-weight: 600; }

.wrong-pill-high { background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 600; }

@media (max-width: 720px) {
  .wrong-chapter-list { flex-direction: row; flex-wrap: wrap; margin: 0 0 10px; }
  .wrong-chapter-item { width: auto; }
  .chapter-item .practice-wq-em { display: inline-block; }
}

/* ---------------- 论文评分 ---------------- */
.score-page { max-width: 980px; }
.score-disclaimer {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 12px 14px; margin: 0 0 14px;
}
.score-disclaimer b { color: #92400e; font-size: 13px; }
.score-disclaimer p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.75; color: #78350f; }
.score-label { display: block; font-size: 12.5px; color: #4b5563; margin: 10px 0 6px; }
.score-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px;
  color: #111827; background: #fff; font-family: inherit;
}
.score-input:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.score-textarea {
  width: 100%; box-sizing: border-box; min-height: 320px; padding: 12px;
  border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px;
  line-height: 1.8; font-family: inherit; resize: vertical;
  color: #111827; background: #fff;
}
.score-textarea:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.score-textarea-sm { min-height: 88px; }
.score-count { font-size: 12px; font-weight: 400; color: #6b7280; margin-left: 8px; }
.score-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.score-status { font-size: 12.5px; color: #0f766e; }
.score-error {
  margin: 10px 0 0; font-size: 13px; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px;
}
.score-report { margin-top: 14px; }
.score-report-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.score-report-head h3 { margin: 0; }
.score-run { font-size: 11.5px; font-weight: 400; color: #6b7280; font-family: ui-monospace, Consolas, monospace; }
.score-downloads { display: flex; gap: 8px; }
.score-md { font-size: 14.5px; }
.score-md table { font-size: 13px; }

@media (max-width: 720px) {
  .score-textarea { min-height: 240px; }
  .score-downloads { width: 100%; }
}