:root {
  --red: #c0392b;
  --red-2: #9c2418;
  --red-soft: #fbece9;
  --gold: #d99a2b;
  --gold-soft: #fbf2e0;
  --ink: #1c2230;
  --ink-2: #2b3344;
  --ink-soft: #5b6577;
  --bg: #f3f4f7;
  --bg-2: #eef0f4;
  --card: #ffffff;
  --line: #e7e9ee;
  --line-2: #eef0f3;
  --green: #21a366;
  --blue: #2f7fc1;
  --purple: #8e44ad;
  --orange: #e0762a;
  --radius: 16px;
  --radius-sm: 11px;
  --topbar-h: 60px;
  --shadow: 0 1px 2px rgba(20,28,46,.04), 0 6px 18px rgba(20,28,46,.06);
  --shadow-h: 0 10px 30px rgba(20,28,46,.13);
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(217,154,43,.10), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(192,57,43,.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: .2px; }
a { color: var(--red); }
::selection { background: rgba(217,154,43,.28); }

.fade-in, .chapter, .kw-cat, .paper, .dw-card, .subject-card, .school, .tech, .plan, .result-group, .prop, .tomb, .ref, .confuse, .arsenal-ch, .test-pool {
  animation: viewIn .32s var(--ease) both;
}
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--topbar-h); padding: 0 18px;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(140,29,24,.28);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), #f4c87a, var(--gold));
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: #fff; color: var(--red); font-weight: 900; font-size: 22px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.brand-text { min-width: 0; }
.brand-text h1 { font-size: 17px; line-height: 1.12; letter-spacing: .5px; }
.brand-text p { font-size: 11px; opacity: .9; margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle {
  display: none; border: none; background: rgba(255,255,255,.18); color: #fff;
  font-size: 20px; width: 42px; height: 42px; border-radius: 11px; cursor: pointer; transition: background .15s;
}
.menu-toggle:hover { background: rgba(255,255,255,.3); }

/* ===== 布局：侧边栏 + 内容 ===== */
.layout { display: flex; align-items: flex-start; }
.sidebar {
  position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h));
  width: 234px; flex: 0 0 234px; overflow-y: auto;
  background: rgba(255,255,255,.62); border-right: 1px solid var(--line);
  padding: 14px 11px; backdrop-filter: blur(8px);
}
.nav-groups { display: flex; flex-direction: column; gap: 14px; }
.nav-group-title {
  font-size: 11px; font-weight: 800; color: var(--ink-soft); letter-spacing: 1px;
  padding: 0 10px 6px; text-transform: none; position: relative;
}
.nav-group-title::before { content: ""; display: inline-block; width: 4px; height: 11px; background: var(--red); border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.navbtn {
  display: block; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700;
  transition: all .16s var(--ease); margin-bottom: 3px; line-height: 1.3;
}
.navbtn:hover { background: rgba(192,57,43,.07); color: var(--red); }
.navbtn.active {
  background: linear-gradient(120deg, var(--red), var(--red-2)); color: #fff;
  box-shadow: 0 6px 14px rgba(192,57,43,.3);
}
.nav-backdrop { display: none; }

.content { flex: 1; min-width: 0; position: relative; }

/* ===== 全局搜索 ===== */
.global-search {
  position: sticky; top: var(--topbar-h); z-index: 49;
  max-width: var(--maxw); margin: 13px auto 0; padding: 0 16px;
  display: flex; gap: 8px;
}
.global-search input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 15px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.global-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
#searchClear {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; width: 46px;
  cursor: pointer; color: var(--ink-soft); font-size: 16px; transition: all .15s;
}
#searchClear:hover { color: var(--red); border-color: var(--red); }

/* ===== 容器 ===== */
.app { max-width: var(--maxw); margin: 16px auto 0; padding: 0 16px; }

/* ===== 通用区块标题 ===== */
.section-title { font-size: 17px; margin: 26px 0 14px; display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 5px; height: 19px; border-radius: 3px; background: linear-gradient(var(--red), var(--gold)); }
.cat-title { font-size: 14px; font-weight: 700; color: var(--red); margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--gold); letter-spacing: .5px; }
.search-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.7; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(192,57,43,.10), rgba(217,154,43,.14));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin-bottom: 16px;
}
.hero::before { content: "📕"; position: absolute; right: 16px; top: 12px; font-size: 62px; opacity: .08; transform: rotate(-8deg); }
.hero h2 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.hero p { color: var(--ink-soft); margin: 0; max-width: 92%; }
.hero .quick { margin-top: 15px; display: flex; gap: 9px; flex-wrap: wrap; }
.hero .quick button, .ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--red); color: var(--red); background: #fff;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13.5px;
  text-decoration: none; transition: all .18s var(--ease);
}
.hero .quick button:hover, .ghost-btn:hover { background: linear-gradient(120deg,var(--red),var(--red-2)); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(192,57,43,.3); }
.ghost-btn { margin-top: 14px; }
.danger-btn { border-color: var(--red); color: var(--red); background: #fff; }
.danger-btn:hover { background: var(--red); color: #fff; }

/* ===== 统计条 ===== */
.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 16px 0 4px; }
.stat {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 6px; text-align: center; box-shadow: var(--shadow); overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--red),var(--gold)); }
.stat b { display: block; font-size: 22px; color: var(--red); line-height: 1.2; font-weight: 900; }
.stat span { font-size: 11.5px; color: var(--ink-soft); }

/* ===== 模块卡 ===== */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.subject-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s;
  border-top: 4px solid var(--c, var(--red)); position: relative; overflow: hidden;
}
.subject-card::after { content: "→"; position: absolute; right: 16px; bottom: 12px; font-size: 20px; color: var(--c, var(--red)); opacity: 0; transform: translateX(-6px); transition: all .2s var(--ease); }
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.subject-card:hover::after { opacity: .8; transform: translateX(0); }
.subject-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.subject-card .badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--c, var(--red)); }
.subject-card p { color: var(--ink-soft); font-size: 13px; margin: 11px 0 0; min-height: 40px; }
.subject-card .chapters { margin-top: 12px; font-size: 12.5px; color: var(--c, var(--red)); font-weight: 800; }

/* ===== 知识点视图 ===== */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: all .15s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 4px 12px rgba(28,34,48,.22); }

.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar input { flex: 1; min-width: 220px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s; }
.filter-bar input:focus { outline: none; border-color: var(--red); }
.filter-count { font-size: 13px; color: var(--ink-soft); }

.chapter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s; }
.chapter:hover { box-shadow: var(--shadow-h); }
.chapter-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; cursor: pointer; user-select: none; background: linear-gradient(90deg, rgba(192,57,43,.06), #fff); }
.chapter-head .num { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 9px; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; background: var(--c, var(--red)); }
.chapter-head h3 { font-size: 15.5px; flex: 1; }
.chapter-head .arrow { color: var(--ink-soft); transition: transform .22s var(--ease); font-size: 12px; }
.chapter.open .arrow { transform: rotate(90deg); color: var(--c, var(--red)); }
.chapter-body { display: none; padding: 4px 17px 16px; border-top: 1px dashed var(--line); }
.chapter.open .chapter-body { display: block; animation: viewIn .25s var(--ease) both; }

.point { padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.point:last-child { border-bottom: none; }
.point-q { font-weight: 800; font-size: 14.5px; display: flex; gap: 9px; align-items: flex-start; }
.point-q .dot { color: var(--c, var(--red)); font-weight: 900; }
.point-p { margin: 7px 0 0; padding-left: 23px; }
.point-p li { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.point-p li::marker { color: var(--c, var(--red)); }

/* ===== 知识点关键词彩色标注 ===== */
.kw { padding: 0 2px; border-radius: 4px; font-weight: 700; }
.kw-gold  { color: #9a6a00; background: linear-gradient(transparent 62%, rgba(241,196,15,.42) 0); }   /* 帽子词/定位词 */
.kw-blue  { color: #1f5fb0; background: rgba(41,128,185,.12); }                                         /* 核心概念/原理 */
.kw-teal  { color: #0f7d6b; background: rgba(22,160,133,.14); }                                         /* 方法论/易混辨析 */
.kw-red   { color: #b3322a; background: rgba(192,57,43,.12); text-decoration: underline dotted rgba(192,57,43,.5); text-underline-offset: 3px; } /* 墓碑/敏感词 */
/* 已掌握划线态下，关键词不再用删除线干扰阅读 */
.done .kw { text-decoration: none !important; }

.mark-btn {
  margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink-soft); white-space: nowrap; font-weight: 700; transition: all .15s;
}
.mark-btn:hover { border-color: var(--green); color: var(--green); }
.mark-btn.done { background: var(--green); color: #fff; border-color: var(--green); }
.mark-btn.mini { padding: 3px 9px; font-size: 11.5px; }

/* ===== 关键词视图 ===== */
.kw-cat { margin-bottom: 20px; }
.kw-cat h3 { font-size: 15px; margin-bottom: 11px; color: var(--red); border-left: 4px solid var(--red); padding-left: 11px; }
.kw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 11px; }
.kw-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .12s, box-shadow .2s; }
.kw-item:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-h); }
.kw-word { font-weight: 800; font-size: 15px; color: var(--red); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kw-sub { font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: #9a6b14; }
.kw-answer { font-size: 13.5px; margin-top: 7px; color: var(--ink); display: none; }
.kw-example { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; display: none; background: var(--gold-soft); border-radius: 9px; padding: 8px 11px; }
.kw-item.open .kw-answer, .kw-item.open .kw-example { display: block; animation: viewIn .22s var(--ease) both; }

/* ===== 一页纸 ===== */
.pager-tools { display: flex; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.pager-tools button { border: 1px solid var(--red); background: #fff; color: var(--red); border-radius: 11px; padding: 9px 16px; cursor: pointer; font-weight: 700; font-size: 13.5px; transition: all .16s; }
.pager-tools button:hover { background: linear-gradient(120deg,var(--red),var(--red-2)); color: #fff; box-shadow: 0 6px 16px rgba(192,57,43,.3); }
.btn-download { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #2f7fc1; background: #2f7fc1; color: #fff; border-radius: 11px; padding: 9px 16px; cursor: pointer; font-weight: 800; font-size: 13.5px; text-decoration: none; transition: all .16s; box-shadow: 0 6px 16px rgba(47,127,193,.3); }
.btn-download:hover { background: #256aa3; transform: translateY(-1px); }
.paper-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 18px; }
.paper-preview embed { border: 1px solid var(--line); border-radius: 8px; background: #525252; min-height: 920px; }
.preview-fallback { font-size: 12.5px; color: var(--ink-soft); margin: 10px 2px 0; text-align: center; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 22px; box-shadow: var(--shadow); margin-bottom: 14px; break-inside: avoid; border-left: 5px solid var(--red); }
.paper h3 { font-size: 16px; color: var(--red); margin-bottom: 11px; display: flex; align-items: center; gap: 9px; }
.paper h3 .tag { font-size: 11px; background: var(--red); color: #fff; padding: 2px 9px; border-radius: 999px; font-weight: 800; }
.paper ul { margin: 0; padding-left: 21px; }
.paper li { font-size: 14px; margin: 7px 0; color: var(--ink-2); }
.paper li::marker { color: var(--red); }

/* ===== 方法技巧 ===== */
.method-hero { background: linear-gradient(135deg, rgba(47,127,193,.10), rgba(142,68,173,.12)); border-color: #dde6f0; }
.method-hero::before { content: "🧭"; }
.method-hero h2 { color: var(--ink); }
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 13px; margin-bottom: 6px; }
.school { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--red)); transition: transform .2s, box-shadow .2s; }
.school:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.school h3 { font-size: 15.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.school .s-badge { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--c, var(--red)); }
.school p { color: var(--ink-soft); font-size: 13.2px; margin: 10px 0 0; }

.tech-list { display: flex; flex-direction: column; gap: 11px; }
.tech { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.tech:hover { border-color: var(--red); box-shadow: var(--shadow-h); }
.tech-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none; }
.tech-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(120deg,var(--red),var(--red-2)); white-space: nowrap; }
.tech-badge.ana { background: linear-gradient(120deg,var(--blue),#1f5e96); }
.tech-title { font-weight: 800; font-size: 15px; flex: 1; }
.tech-from { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.tech-head .arrow { color: var(--ink-soft); transition: transform .22s var(--ease); font-size: 12px; }
.tech.open .arrow { transform: rotate(90deg); color: var(--red); }
.tech-body { display: none; padding: 2px 18px 16px 18px; border-top: 1px dashed var(--line); }
.tech.open .tech-body { display: block; animation: viewIn .24s var(--ease) both; }
.tech-body ul { margin: 8px 0 0; padding-left: 20px; }
.tech-body li { font-size: 13.8px; margin: 6px 0; color: var(--ink-2); }
.tech-body li::marker { color: var(--red); }
.tech-note { font-size: 12.8px; color: #8a5a12; background: var(--gold-soft); border-radius: 10px; padding: 9px 12px; margin-top: 10px; }

/* 冲刺计划（旧网格，保留） */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.plan::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: linear-gradient(var(--red), var(--gold)); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan-phase { font-size: 15px; font-weight: 900; color: var(--red); }
.plan-day { font-size: 12px; font-weight: 800; color: #9a6b14; background: var(--gold-soft); padding: 2px 9px; border-radius: 999px; }
.plan-theme { font-size: 13.5px; font-weight: 800; color: var(--ink); margin: 8px 0 10px; }
.plan ul { margin: 0; padding-left: 19px; }
.plan li { font-size: 13px; margin: 6px 0; color: var(--ink-soft); }

/* ===== 搜索结果 ===== */
.result-group { margin-bottom: 18px; }
.result-group h3 { font-size: 15px; margin-bottom: 9px; color: var(--ink); }
.rule { height: 1px; background: var(--line); border: none; margin: 6px 0; }
mark { background: var(--gold); color: #5a3a00; padding: 0 3px; border-radius: 4px; font-weight: 700; }
.empty { text-align: center; color: var(--ink-soft); padding: 44px 16px; font-size: 14px; }

/* ===== 页脚 ===== */
.footer { max-width: var(--maxw); margin: 32px auto 0; padding: 20px 16px; text-align: center; color: var(--ink-soft); font-size: 12.5px; border-top: 1px solid var(--line); }
.footer-tip { font-size: 11.5px; opacity: .8; margin-top: 5px; }

/* ===== 危险词 ===== */
.dw-hero { background: linear-gradient(135deg, rgba(192,57,43,.10), rgba(217,154,43,.10)); }
.dw-hero::before { content: "⛔"; }
.dw-hero .c-danger { color: var(--red); }
.dw-hero .c-care { color: #b8860b; }
.dw-hero .c-safe { color: var(--green); }
.dw-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.dw-fbtn { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 7px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: all .15s; }
.dw-fbtn:hover { border-color: var(--red); color: var(--red); }
.dw-fbtn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dw-count { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.dw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dw-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 17px 13px 15px; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; border-top: 3px solid var(--line); }
.dw-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.dw-card.danger { border-top-color: var(--red); }
.dw-card.care { border-top-color: var(--gold); }
.dw-card.safe { border-top-color: var(--green); }
.dw-word { font-size: 23px; font-weight: 900; text-align: center; letter-spacing: 1px; line-height: 1.3; }
.dw-card.danger .dw-word { color: var(--red); }
.dw-card.care .dw-word { color: #a97b10; }
.dw-card.safe .dw-word { color: var(--green); }
.dw-tag { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 7px; line-height: 1.4; }
.dw-detail { display: none; margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 11px; }
.dw-card.open .dw-detail { display: block; animation: viewIn .22s var(--ease) both; }
.dw-row { font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 6px; }
.dw-row b { color: var(--ink); }

/* 易混辨析 */
.confuse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.confuse { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.confuse:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.cf-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 900; }
.cf-a { color: var(--red); }
.cf-b { color: var(--blue); }
.cf-vs { font-size: 11px; font-weight: 800; color: #fff; background: var(--ink-soft); border-radius: 999px; padding: 1px 8px; }
.cf-tip { font-size: 13px; color: var(--ink-soft); margin-top: 9px; line-height: 1.7; }

/* ===== 首页仪表盘 ===== */
.home-hero { background: linear-gradient(135deg, rgba(192,57,43,.13), rgba(217,154,43,.16)); }
.home-prog { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.home-prog-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.home-prog-head a { font-size: 13px; text-decoration: none; }
.home-prog-bar { height: 13px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin: 12px 0 9px; }
.home-prog-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 999px; transition: width .6s var(--ease); }
.home-prog-text { font-size: 13px; color: var(--ink-soft); }
.home-today { background: linear-gradient(135deg, rgba(47,127,193,.07), rgba(142,68,173,.07)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.home-today-head { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.home-today-list { margin: 0; padding-left: 22px; }
.home-today-list li { font-size: 13.5px; color: var(--ink-2); margin: 7px 0; }

/* ===== 命题手法 ===== */
.prop-hero { background: linear-gradient(135deg, rgba(192,57,43,.12), rgba(142,68,173,.10)); }
.prop-hero::before { content: "🕳"; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 13px; }
.prop { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.prop:hover { border-color: var(--red); box-shadow: var(--shadow-h); }
.prop-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none; }
.prop-no { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: linear-gradient(120deg,var(--red),var(--red-2)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.prop-name { font-weight: 800; font-size: 14.5px; flex: 1; }
.prop-freq { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.freq-high { background: #fde8e6; color: var(--red); }
.freq-mid { background: var(--gold-soft); color: #9a6b14; }
.freq-low { background: #e7f5ee; color: var(--green); }
.prop-head .arrow { color: var(--ink-soft); transition: transform .22s var(--ease); font-size: 12px; }
.prop.open .arrow { transform: rotate(90deg); color: var(--red); }
.prop-body { display: none; padding: 2px 18px 16px; border-top: 1px dashed var(--line); }
.prop.open .prop-body { display: block; animation: viewIn .24s var(--ease) both; }
.prop-row { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin: 9px 0; }
.prop-row b { color: var(--ink); }
.prop-signs { color: var(--red); font-weight: 700; }

/* ===== 墓碑词 ===== */
.tomb-hero { background: linear-gradient(135deg, rgba(47,127,193,.10), rgba(192,57,43,.08)); }
.tomb-hero::before { content: "🪦"; }
.tomb-legend { margin: 12px 0 16px; }
.tl-yellow { display: inline-block; font-size: 13px; font-weight: 800; color: #9a6b14; background: var(--gold-soft); border-radius: 999px; padding: 6px 14px; }
.tomb-group { font-size: 15px; margin: 18px 0 11px; color: var(--ink); border-left: 4px solid var(--gold); padding-left: 11px; }
.tomb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.tomb { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px 12px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s, transform .15s; border-top: 3px solid var(--gold); }
.tomb:hover { border-color: var(--gold); box-shadow: var(--shadow-h); transform: translateY(-2px); }
.tomb-word { font-size: 19px; font-weight: 900; text-align: center; color: #9a6b14; }
.tomb-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; margin-top: 9px; display: none; }
.tomb.open .tomb-note { display: block; animation: viewIn .22s var(--ease) both; }

/* ===== 排除法 ===== */
.excl-hero { background: linear-gradient(135deg, rgba(33,163,102,.10), rgba(47,127,193,.10)); }
.excl-hero::before { content: "🧹"; }
.excl-flow { display: flex; flex-direction: column; gap: 12px; }
.excl-step { display: flex; gap: 13px; align-items: stretch; }
.excl-badge { flex: 0 0 64px; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-2)); border-radius: 13px; padding: 8px; }
.excl-card { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; box-shadow: var(--shadow); }
.excl-title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.excl-time { font-size: 12px; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 2px 9px; border-radius: 999px; }
.excl-card ul { margin: 9px 0 0; padding-left: 20px; }
.excl-card li { font-size: 13.5px; margin: 5px 0; color: var(--ink-2); }
.excl-card li::marker { color: var(--red); }
.excl-tip { font-size: 12.5px; color: #8a5a12; background: var(--gold-soft); border-radius: 10px; padding: 8px 11px; margin-top: 10px; }
.excl-traps { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; }
.excl-trap { background: #fdecea; border: 1px solid #f5c6c0; border-radius: 11px; padding: 11px 14px; font-size: 13.3px; color: #7a2419; line-height: 1.6; }

/* ===== 知识弹药库 ===== */
.arsenal-hero { background: linear-gradient(135deg, rgba(142,68,173,.10), rgba(192,57,43,.08)); }
.arsenal-hero::before { content: "🎒"; }
.arsenal-ch { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.arsenal-ch-title { font-weight: 900; font-size: 15px; color: var(--ink); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--red-soft); }
.arsenal-item { padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.arsenal-item:last-child { border-bottom: none; }
.arsenal-q { display: flex; align-items: flex-start; gap: 9px; font-weight: 800; font-size: 14px; }
.arsenal-q > span { flex: 1; }
.arsenal-item.done .arsenal-q > span { color: var(--green); text-decoration: line-through; text-decoration-color: rgba(33,163,102,.5); }
.arsenal-item .point-p { margin-top: 6px; }

/* ===== 自测 ===== */
.test-hero { background: linear-gradient(135deg, rgba(47,127,193,.10), rgba(33,163,102,.10)); }
.test-hero::before { content: "✍️"; }
.test-pools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.test-pool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s, border-color .15s; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.test-pool:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: var(--red); }
.test-pool b { font-size: 15.5px; color: var(--ink); }
.test-pool span { font-size: 12.5px; color: var(--ink-soft); }
.test-best { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.test-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.test-progress { flex: 1; background: var(--ink); color: #fff; border-radius: 11px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; }
.test-exit { flex: none; background: #fff; color: var(--red); border: 1px solid var(--line); border-radius: 11px; padding: 9px 13px; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.test-exit:hover { background: #fdecea; }
.test-q { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 16px; font-weight: 800; line-height: 1.7; color: var(--ink); }
.test-q-type { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--red); padding: 2px 9px; border-radius: 999px; margin-bottom: 9px; }
.test-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 13px; }
.test-opt { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .15s; box-shadow: var(--shadow); }
.test-opt:hover:not(:disabled) { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.test-opt:disabled { cursor: default; }
.test-feedback { margin-top: 14px; border-radius: 13px; padding: 13px 16px; font-size: 13.5px; line-height: 1.7; }
.test-feedback.ok { background: #e7f5ee; border: 1px solid #9fd9bb; color: #14532d; }
.test-feedback.no { background: #fdecea; border: 1px solid #f5c6c0; color: #7a2419; }
/* 多选 */
.test-q-type.ty-multi { background: var(--blue); }
.test-opts.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.test-opt.picked { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.test-opt.correct { border-color: var(--green); background: #e7f5ee; color: #14532d; }
.test-opt.wrong { border-color: var(--red); background: #fdecea; color: #7a2419; }
.test-submit { margin-top: 14px; width: 100%; padding: 13px; border: none; border-radius: 12px; background: var(--red); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.test-submit:hover { background: var(--red-2); }
.test-submit:disabled { opacity: .55; cursor: default; }

/* 全真模拟考入口 + 倒计时 */
.mock-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: linear-gradient(120deg, #c0392b, #e67e22); color: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 26px rgba(192,57,43,.28); margin: 16px 0; }
.mock-banner-text { display: flex; flex-direction: column; gap: 4px; }
.mock-banner-text b { font-size: 17px; }
.mock-banner-text span { font-size: 13px; opacity: .92; }
.mock-banner .big-btn { background: #fff; color: var(--red); border: none; }
.mock-banner .big-btn:hover { background: #fff7f0; }
.mock-timer { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 15px; font-weight: 800; margin-bottom: 13px; font-variant-numeric: tabular-nums; }
.mock-timer.warn { background: #b3322a; animation: pulseWarn 1s infinite; }
@keyframes pulseWarn { 0%,100% { box-shadow: 0 0 0 0 rgba(179,50,42,.5); } 50% { box-shadow: 0 0 0 8px rgba(179,50,42,0); } }
.mock-timer #mockTimer { font-size: 18px; letter-spacing: 1px; }
.mock-bar { flex: 1; height: 8px; background: rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; min-width: 60px; }
.mock-bar-fill { height: 100%; background: #ffd479; border-radius: 999px; transition: width 1s linear; }

/* 科目专项 */
.drill-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.drill-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--red)); border-radius: 13px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .16s, box-shadow .2s; }
.drill-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.drill-btn b { font-size: 16px; color: var(--ink); }
.drill-btn span { font-size: 12px; color: var(--ink-soft); }

/* 记忆口诀 */
.mn-group { margin: 8px 0 18px; }
.mn-group-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 16px 0 10px; padding-left: 11px; border-left: 5px solid var(--gold); }
.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 11px; }
.mn-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; box-shadow: var(--shadow); }
.mn-k { font-size: 14.5px; font-weight: 800; color: var(--red); margin-bottom: 6px; line-height: 1.5; }
.mn-v { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* 速记卡（翻转） */
.fc-hero { background: linear-gradient(135deg, rgba(142,68,173,.14), rgba(192,57,43,.08)); }
.fc-progress { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; margin: 4px 0 12px; }
.fc-card { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--red)); border-radius: 18px; padding: 34px 26px; box-shadow: var(--shadow-h); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; margin-bottom: 14px; }
.fc-tag { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 800; color: var(--c, var(--red)); background: color-mix(in srgb, var(--c, var(--red)) 12%, #fff); padding: 3px 10px; border-radius: 999px; }
.fc-front { font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.5; }
.fc-back { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 92%; }
.fc-flip-hint { position: absolute; bottom: 12px; right: 14px; font-size: 12px; color: var(--ink-soft); }
.fc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
.fc-actions .big-btn { flex: 1; min-width: 110px; border: none; }
.fc-actions .big-btn.alt { background: var(--blue); }
.fc-actions .big-btn.alt:hover { background: var(--blue-2); }

/* 历年真题模考 */
.paper-hero { background: linear-gradient(135deg, rgba(47,127,193,.13), rgba(192,57,43,.08)); }
.paper-filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pf-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 8px 0; }
.pf-label { font-size: 13px; font-weight: 800; color: var(--ink-soft); width: 38px; flex: none; }
.pf-btn { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.pf-btn:hover { border-color: var(--red); color: var(--red); }
.pf-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.paper-info { font-size: 14px; color: var(--ink-2); margin: 4px 2px 16px; }
.paper-info b { color: var(--red); font-size: 16px; }
.big-btn { display: block; width: 100%; padding: 15px; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--red), var(--gold)); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.big-btn:hover { box-shadow: var(--shadow-h); transform: translateY(-1px); }
.big-btn:disabled { opacity: .5; cursor: default; transform: none; }
.paper-search-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.psi-head { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.6; }
.paper-search-item ul { margin: 0; padding-left: 18px; }
.paper-search-item li { font-size: 13px; color: var(--ink-2); margin: 3px 0; }
.paper-search-item li.right { color: var(--green); font-weight: 800; }
.test-result { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; box-shadow: var(--shadow); }
.test-result h2 { font-size: 22px; }
.test-score { font-size: 40px; font-weight: 900; color: var(--red); margin: 14px 0 6px; }
.test-msg { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.review-item { text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 14px 16px; margin-bottom: 11px; box-shadow: var(--shadow); }
.review-q { font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.review-a { font-size: 13.5px; color: var(--green); font-weight: 800; margin-bottom: 5px; }
.review-e { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

/* ===== 学习进度 ===== */
.prog-hero { background: linear-gradient(135deg, rgba(47,127,193,.10), rgba(192,57,43,.08)); }
.prog-hero::before { content: "📊"; }
.prog-overall { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.prog-ring { --p: 0; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--bg-2) 0); position: relative; }
.prog-ring::after { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.prog-ring span { position: relative; z-index: 1; font-size: 22px; font-weight: 900; color: var(--red); }
.prog-overall-text { font-size: 16px; font-weight: 800; color: var(--ink); }
.prog-list { display: flex; flex-direction: column; gap: 11px; }
.prog-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 15px; box-shadow: var(--shadow); }
.prog-name { flex: 1; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.prog-name .badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; }
.prog-bar { flex: 2; height: 11px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 999px; transition: width .6s var(--ease); }
.prog-num { flex: 0 0 64px; text-align: right; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.prog-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 16px 0; }
.prog-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.prog-card b { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.prog-card span { font-size: 16px; font-weight: 900; color: var(--red); }

/* ===== 提分计划（时间轴） ===== */
.plan-hero { background: linear-gradient(135deg, rgba(192,57,43,.12), rgba(217,154,43,.12)); }
.plan-hero::before { content: "🚀"; }
.plan-timeline { position: relative; margin-top: 8px; padding-left: 26px; }
.plan-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--red), var(--gold)); border-radius: 3px; }
.plan-node { position: relative; margin-bottom: 16px; }
.plan-dot { position: absolute; left: -26px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 4px rgba(192,57,43,.15); }
.plan-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.plan-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.plan-box .plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan-box .plan-phase { font-size: 15px; font-weight: 900; color: var(--red); }
.plan-box .plan-day { font-size: 12px; font-weight: 800; color: #9a6b14; background: var(--gold-soft); padding: 2px 9px; border-radius: 999px; }
.plan-box .plan-theme { font-size: 13.5px; font-weight: 800; color: var(--ink); margin: 8px 0 10px; }
.plan-box ul { margin: 0; padding-left: 19px; }
.plan-box li { font-size: 13px; margin: 6px 0; color: var(--ink-soft); }

/* ===== 政治选择六讲 ===== */
.ref-hero { background: linear-gradient(135deg, rgba(142,68,173,.10), rgba(47,127,193,.10)); }
.ref-hero::before { content: "📖"; }
.ref { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .2s; margin-bottom: 12px; }
.ref:hover { border-color: var(--red); box-shadow: var(--shadow-h); }
.ref-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; cursor: pointer; user-select: none; }
.ref-no { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; background: linear-gradient(135deg, var(--purple), #5e2d75); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.ref-title { font-weight: 800; font-size: 15px; flex: 1; }
.ref-head .arrow { color: var(--ink-soft); transition: transform .22s var(--ease); font-size: 12px; }
.ref.open .arrow { transform: rotate(90deg); color: var(--red); }
.ref-body { display: none; padding: 2px 18px 16px; border-top: 1px dashed var(--line); }

/* ===== 马原原理（分析题34题） ===== */
.my-hero { background: linear-gradient(135deg, rgba(192,57,43,.12), rgba(241,196,15,.12)); }
.my-hero::before { content: "📐"; }
.my-list { display: flex; flex-direction: column; gap: 12px; }
.my-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 17px; border-left: 4px solid var(--red); }
.my-name { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--red); }
.my-no { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.my-row { display: flex; gap: 10px; margin: 5px 0; font-size: 13.5px; line-height: 1.6; }
.my-row > b { flex: 0 0 64px; color: var(--ink-soft); font-weight: 800; }
.my-row > span { flex: 1; color: var(--ink-2); }
.my-exam > span { color: #8a5a00; background: rgba(241,196,15,.12); padding: 4px 8px; border-radius: 7px; }

/* ===== 澄潇宇方法 + 基础 ===== */
.cx-hero { background: linear-gradient(135deg, rgba(224,169,59,.16), rgba(192,57,43,.10)); }
.cx-hero::before { content: "🧩"; }
.cx-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 6px; }
.cx { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.cx:hover { border-color: var(--gold, #e0a93b); box-shadow: var(--shadow-h); }
.cx-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer; user-select: none; }
.cx-star { color: #e0a93b; font-size: 13px; letter-spacing: 1px; flex: 0 0 auto; }
.cx-title { font-weight: 800; font-size: 14.5px; flex: 1; }
.cx-head .arrow { color: var(--ink-soft); transition: transform .22s var(--ease); font-size: 12px; }
.cx.open .arrow { transform: rotate(90deg); color: var(--red); }
.cx-body { display: none; padding: 2px 18px 15px; border-top: 1px dashed var(--line); }
.cx.open .cx-body { display: block; }

.ref.open .ref-body { display: block; animation: viewIn .24s var(--ease) both; }
.ref-body ul { margin: 8px 0 0; padding-left: 20px; }
.ref-body li { font-size: 13.8px; margin: 6px 0; color: var(--ink-2); line-height: 1.7; }
.ref-body li::marker { color: var(--purple); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0; height: auto;
    width: 264px; flex: none; transform: translateX(-110%); transition: transform .26s var(--ease);
    z-index: 56; box-shadow: var(--shadow-h); background: rgba(255,255,255,.97);
  }
  body.nav-open .sidebar { transform: none; }
  .nav-backdrop { display: none; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(10,14,24,.38); z-index: 55; }
  body.nav-open .nav-backdrop { display: block; }
  .brand-text p { display: none; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .dw-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: 1fr; }
  .tomb-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dw-grid { grid-template-columns: 1fr; }
  .excl-step { flex-direction: column; gap: 8px; }
  .excl-badge { flex: none; width: auto; }
  .prog-overall { flex-direction: column; text-align: center; gap: 12px; }
  .prog-extra { grid-template-columns: 1fr; }
  .hero::before { font-size: 46px; }
  .hero h2 { font-size: 20px; }
  .test-q { font-size: 15px; }
  .test-opts.multi { grid-template-columns: 1fr; }
}

/* ===== 分析题实战 ===== */
.tmpl-toggle { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; font-weight: 700; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.04); margin-bottom: 14px; }
.tmpl-toggle .arrow { transition: transform .2s; color: var(--red); }
.tmpl-toggle.open .arrow { transform: rotate(90deg); }
.tmpl-wrap { margin-bottom: 16px; display: grid; gap: 12px; }
.tmpl-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 14px 16px; }
.tmpl-head { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.tmpl-core { font-weight: 600; color: var(--red); font-size: 13px; margin-left: 6px; }
.tmpl-steps { margin: 0; padding-left: 20px; color: #4a4a4a; font-size: 14px; line-height: 1.7; }
.tmpl-tip { margin-top: 8px; font-size: 13px; color: #8a6d3b; background: #fdf3e3; border-radius: 8px; padding: 7px 10px; }
.analysis-list { display: grid; gap: 14px; }
.ana-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.ana-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ana-no { background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 8px; }
.ana-sub { font-weight: 700; color: var(--ink); }
.ana-material { background: #f8f9fb; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.8; color: #3a3a3a; border: 1px solid #eef0f4; }
.ana-m-label { display: inline-block; font-weight: 800; color: var(--red); margin-right: 6px; }
.ana-q { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.ana-q-head { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 6px 0; }
.ana-q-score { flex: none; background: #eaf3ff; color: #1f6feb; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.ana-q-text { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.ana-q-btn { flex: none; color: var(--red); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ana-q-ans { display: none; margin-top: 6px; background: #f3faf5; border-radius: 10px; padding: 12px 14px; }
.ana-q.open .ana-q-ans { display: block; }
.ana-ans-label { font-weight: 800; color: #1d7a45; font-size: 13px; margin-bottom: 6px; }
.ana-keys { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.85; color: #2f4a3a; }
.ana-tip { margin-top: 12px; font-size: 13px; color: #8a6d3b; background: #fdf3e3; border-radius: 8px; padding: 8px 11px; }

/* ===== 错题本 ===== */
.wrong-meta { font-size: 14px; color: #555; margin-bottom: 12px; }
.wrong-meta b { color: var(--red); font-size: 17px; }
.wrong-meta .prac-n { color: var(--green, #27ae60); font-weight: 700; }
#retryWrong { margin: 6px 0 14px; }
.wrong-list { display: grid; gap: 12px; }
.wrong-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.wrong-card.multi { border-left: 4px solid #1f6feb; }
.wrong-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wrong-type { font-weight: 700; color: var(--red); font-size: 13px; }
.wrong-toggle { color: var(--red); font-size: 13px; font-weight: 700; cursor: pointer; }
.wrong-q { font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.wrong-ans { margin-top: 10px; font-size: 14px; background: #f3faf5; border-radius: 8px; padding: 9px 12px; }
.wa-label { font-weight: 800; color: #1d7a45; margin-right: 6px; }
.wrong-explain { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: #4a4a4a; }

@media print {
  .topbar, .sidebar, .nav-backdrop, .global-search, .footer, .pager-tools, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .layout { display: block; }
  .app { max-width: 100%; }
  .paper { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .chapter-body, .kw-item.open .kw-answer, .kw-item.open .kw-example, .tech.open .tech-body, .prop.open .prop-body, .ref.open .ref-body, .dw-card.open .dw-detail { display: block !important; }
}

/* ===== 党史时间轴（深色金边 · 中国地图联动版） ===== */
.tl-dark {
  --td-bg: #0e1116; --td-bg2: #161a22; --td-card: #1b212c; --td-line: #2c3340;
  --td-ink: #e9e4d6; --td-soft: #9aa3b2; --gold: #d4af37; --gold-soft: rgba(212,175,55,.16);
  --green: #2ecc71; --amber: #f1c40f; --red: #ff5b5b;
  background: var(--td-bg); color: var(--td-ink); border-radius: 14px;
  padding: 14px; min-height: 72vh;
}
.tl-dark .tl-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 12px; border-bottom: 1px solid var(--td-line); }
.tl-dark .tl-yearbox { display: flex; align-items: baseline; gap: 12px; }
.tl-dark .tl-bigyear { font-size: 46px; font-weight: 900; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.tl-dark .tl-period { font-size: 13px; color: var(--td-soft); }
.tl-dark .tl-topctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-dark .tl-tab { background: var(--td-card); color: var(--td-soft); border: 1px solid var(--td-line); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.tl-dark .tl-tab.active { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.tl-dark .tl-sep { width: 1px; height: 22px; background: var(--td-line); margin: 0 4px; }
.tl-dark .tl-btn { background: var(--td-card); color: var(--td-ink); border: 1px solid var(--td-line); padding: 7px 13px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.tl-dark .tl-btn.primary { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.tl-dark .tl-speed { display: inline-flex; gap: 4px; }
.tl-dark .tl-spd { background: var(--td-bg2); color: var(--td-soft); border: 1px solid var(--td-line); padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tl-dark .tl-spd.active { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }

.tl-dark .tl-grid { display: grid; grid-template-columns: 300px 1fr 320px; gap: 12px; margin-top: 12px; align-items: stretch; }
.tl-dark .tl-left, .tl-dark .tl-right { background: var(--td-card); border: 1px solid var(--td-line); border-radius: 12px; padding: 14px; overflow: auto; max-height: 560px; }
.tl-dark .tl-mapwrap { position: relative; background: radial-gradient(circle at 50% 40%, #11202b, #0b1118); border: 1px solid var(--td-line); border-radius: 12px; overflow: hidden; min-height: 460px; }
.tl-dark .tl-map-title { position: absolute; top: 8px; left: 12px; z-index: 3; font-size: 12px; color: var(--gold); letter-spacing: 1px; opacity: .85; }
.tl-dark .tl-map { width: 100%; height: 100%; display: block; min-height: 460px; touch-action: none; cursor: grab; }
.tl-dark .tl-map:active { cursor: grabbing; }
.tl-dark .tl-prov { fill: #2a2418; stroke: #b0914f; stroke-width: 1.3; stroke-linejoin: round; }
.tl-dark .tl-mapctrl { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.tl-dark .tl-mapctrl button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--td-line); background: var(--td-card); color: var(--td-ink); font-size: 16px; cursor: pointer; }
.tl-dark .tl-maplabel { position: absolute; left: 12px; bottom: 10px; z-index: 3; font-size: 12px; color: var(--td-soft); background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 8px; max-width: 60%; }
.tl-dark .tl-marker { cursor: pointer; }
.tl-dark .tl-mk-dot { stroke: #0e1116; stroke-width: 1.5; transition: r .15s; }
.tl-dark .tl-mk-dot.type-promote { fill: var(--green); }
.tl-dark .tl-mk-dot.type-hinder { fill: var(--amber); }
.tl-dark .tl-mk-dot.type-setback { fill: var(--red); }
.tl-dark .tl-marker.cur .tl-mk-dot { stroke: var(--gold); stroke-width: 2.5; }
.tl-dark .tl-mk-txt { fill: var(--td-soft); font-size: 12px; text-anchor: middle; paint-order: stroke; stroke: #0b1118; stroke-width: 3px; font-weight: 700; }
.tl-dark .tl-marker.cur .tl-mk-txt { fill: var(--gold); }

.tl-dark .tl-panel-h, .tl-dark .tl-card-h { font-size: 13px; font-weight: 900; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--td-line); }
.tl-dark .tl-bg-title { font-size: 20px; font-weight: 900; color: var(--td-ink); margin-bottom: 4px; }
.tl-dark .tl-tag { font-size: 12px; color: var(--td-soft); margin-bottom: 12px; }
.tl-dark .tl-block { margin-bottom: 14px; }
.tl-dark .tl-block-h { display: inline-block; font-size: 12.5px; font-weight: 900; color: var(--gold); background: var(--gold-soft); padding: 2px 10px; border-radius: 6px; margin-bottom: 6px; }
.tl-dark .tl-block p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--td-ink); }

.tl-dark .tl-card { margin-bottom: 14px; }
.tl-dark .tl-locate { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tl-dark .tl-locate-year { font-size: 24px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.tl-dark .tl-locate-title { font-size: 16px; font-weight: 800; }
.tl-dark .tl-locate-tag { font-size: 12px; color: var(--td-soft); margin-top: 6px; }
.tl-dark .tl-chip { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tl-dark .tl-chip.type-promote { background: var(--green); color: #06210f; }
.tl-dark .tl-chip.type-hinder { background: var(--amber); color: #2a2000; }
.tl-dark .tl-chip.type-setback { background: var(--red); color: #2a0606; }
.tl-dark .tl-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.tl-dark .tl-dot.type-promote { background: var(--green); }
.tl-dark .tl-dot.type-hinder { background: var(--amber); }
.tl-dark .tl-dot.type-setback { background: var(--red); }
.tl-dark .tl-regime { font-size: 13px; color: var(--td-ink); background: rgba(212,175,55,.08); border: 1px solid var(--td-line); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.tl-dark .tl-assoc { display: flex; flex-direction: column; gap: 6px; }
.tl-dark .tl-assoc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--td-soft); }
.tl-dark .tl-assoc-row b.on { margin-left: auto; color: var(--gold); font-weight: 800; }
.tl-dark .tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-dark .tl-rel { font-size: 12px; font-weight: 700; color: var(--td-ink); background: var(--td-bg2); border: 1px solid var(--td-line); border-left-width: 3px; border-radius: 8px; padding: 5px 9px; cursor: pointer; }
.tl-dark .tl-rel.type-promote { border-left-color: var(--green); }
.tl-dark .tl-rel.type-hinder { border-left-color: var(--amber); }
.tl-dark .tl-rel.type-setback { border-left-color: var(--red); }

.tl-dark .tl-bottom { margin-top: 12px; }
.tl-dark .tl-bottom-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-dark .tl-bottom-title { font-size: 13px; color: var(--td-soft); font-weight: 700; }
.tl-dark .tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--td-soft); margin-left: auto; }
.tl-dark .tl-lg { display: inline-flex; align-items: center; gap: 5px; }
.tl-dark .tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--td-card); border: 1px solid var(--td-line); border-radius: 12px; padding: 10px 0; }
.tl-dark .tl-track { position: relative; height: 96px; margin: 0 40px; }
.tl-dark .tl-band { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--td-line); border-right: 1px dashed var(--td-line); opacity: .5; }
.tl-dark .tl-band:nth-child(1) { background: rgba(192,57,43,.08); }
.tl-dark .tl-band:nth-child(2) { background: rgba(41,128,185,.08); }
.tl-dark .tl-band:nth-child(3) { background: rgba(212,175,55,.06); }
.tl-dark .tl-band-name { position: absolute; top: 6px; left: 10px; font-size: 13px; font-weight: 900; color: rgba(233,228,214,.4); letter-spacing: 2px; }
.tl-dark .tl-tick { position: absolute; top: 64px; bottom: 0; border-left: 1px solid var(--td-line); }
.tl-dark .tl-tick span { position: absolute; top: 9px; left: 4px; font-size: 11px; color: var(--td-soft); font-weight: 700; }
.tl-dark .tl-axis { position: absolute; left: 0; right: 0; top: 64px; height: 3px; background: var(--td-soft); border-radius: 2px; opacity: .5; }
.tl-dark .tl-ev { position: absolute; top: 64px; width: 0; cursor: pointer; z-index: 2; }
.tl-dark .tl-ev .tl-dot { width: 13px; height: 13px; border-radius: 50%; position: absolute; left: -6.5px; top: -6.5px; border: 2px solid #0e1116; box-shadow: 0 1px 4px rgba(0,0,0,.5); transition: transform .15s; }
.tl-dark .tl-ev.passed .tl-dot { box-shadow: 0 0 0 4px rgba(212,175,55,.15), 0 1px 4px rgba(0,0,0,.5); }
.tl-dark .tl-ev.cur .tl-dot { transform: scale(1.6); border-color: var(--gold); }
.tl-dark .tl-label { position: absolute; bottom: 14px; white-space: nowrap; background: var(--td-card); border: 1px solid var(--td-line); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; box-shadow: 0 1px 4px rgba(0,0,0,.4); display: none; }
.tl-dark .tl-label b { color: var(--td-ink); font-weight: 700; }
.tl-dark .tl-label span { display: block; font-size: 10.5px; color: var(--td-soft); font-weight: 700; }
.tl-dark .tl-ev:hover .tl-label, .tl-dark .tl-ev.cur .tl-label { display: block; border-color: var(--gold); background: rgba(212,175,55,.12); z-index: 5; }
.tl-dark .tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,.7); z-index: 3; left: 0; }
.tl-dark .tl-playhint { font-size: 12px; color: var(--td-soft); margin-top: 10px; }

/* ===== 时间轴全屏观看（原生 :fullscreen + CSS 回退 .tl-fullscreen） ===== */
.tl-dark.tl-fullscreen,
.tl-dark:fullscreen {
  position: fixed; inset: 0; left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh; min-height: 0; z-index: 9999;
  display: flex; flex-direction: column; border-radius: 0; padding: 12px 16px; margin: 0;
  overflow: auto;
}
.tl-dark.tl-fullscreen .tl-topbar,
.tl-dark:fullscreen .tl-topbar { flex: 0 0 auto; flex-wrap: nowrap; }
.tl-dark.tl-fullscreen .tl-grid,
.tl-dark:fullscreen .tl-grid {
  flex: 1 1 auto; min-height: 0; margin-top: 12px; height: auto;
}
.tl-dark.tl-fullscreen .tl-left,
.tl-dark.tl-fullscreen .tl-right,
.tl-dark:fullscreen .tl-left,
.tl-dark:fullscreen .tl-right { max-height: none; }
.tl-dark.tl-fullscreen .tl-mapwrap,
.tl-dark:fullscreen .tl-mapwrap { min-height: 0; }
.tl-dark.tl-fullscreen .tl-bottom,
.tl-dark:fullscreen .tl-bottom { flex: 0 0 auto; }
.tl-dark.tl-fullscreen .tl-track,
.tl-dark:fullscreen .tl-track { height: 120px; }
.tl-dark.tl-fullscreen .tl-map,
.tl-dark:fullscreen .tl-map { min-height: 100%; }

.tl-dark .tl-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.tl-dark .tl-modal-card { background: var(--td-card); border: 1px solid var(--td-line); border-radius: 16px; max-width: 460px; width: 100%; padding: 24px; position: relative; max-height: 86vh; overflow-y: auto; }
.tl-dark .tl-modal-close { position: absolute; top: 12px; right: 14px; border: none; background: var(--td-bg2); width: 30px; height: 30px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--td-soft); }
.tl-dark .tl-modal-tag { font-size: 12.5px; color: var(--td-soft); font-weight: 700; }
.tl-dark .tl-modal-title { font-size: 20px; margin: 6px 0 10px; color: var(--td-ink); display: flex; align-items: center; gap: 8px; }
.tl-dark .tl-modal-title .tl-dot { position: static; width: 13px; height: 13px; border: none; }
.tl-dark .tl-modal-type { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tl-dark .tl-modal-type.type-promote { background: rgba(46,204,113,.15); color: var(--green); }
.tl-dark .tl-modal-type.type-hinder { background: rgba(241,196,15,.18); color: var(--amber); }
.tl-dark .tl-modal-type.type-setback { background: rgba(255,91,91,.15); color: var(--red); }

@media (max-width: 1080px) {
  .tl-dark .tl-grid { grid-template-columns: 1fr; }
  .tl-dark .tl-left, .tl-dark .tl-right { max-height: none; }
  .tl-dark .tl-mapwrap { min-height: 360px; }
}

/* 内嵌卡片 */
.deck-frame{width:100%;height:78vh;min-height:660px;border:0;border-radius:0;
  background:transparent;box-shadow:none;display:block;margin:6px 0 10px}

/* ===========================================================
   主题覆盖：纸质讲义
   米白纸感 + 墨蓝主色 + 朱红强调；标题宋体，正文黑体；结构装饰只保留竖线与虚线。
   =========================================================== */
:root{
  --navy:#1C3A5E;
  --navy-2:#152C49;
  --navy-soft:#EDF1F6;

  --red:#9E1B32;          /* 朱红：只用于关键判断 */
  --red-2:#82152A;
  --red-soft:#F8EBEE;

  --gold:#8C6A2F;
  --gold-soft:#F7F1E4;

  --bg:#FAF8F5;
  --bg-2:#F3EEE4;
  --card:#FFFDF9;
  --line:#E6DED0;
  --line-2:#F1EADC;

  --ink:#1F2226;
  --ink-2:#2A2E33;
  --ink-soft:#6E6A61;

  --green:#2F6B4F;
  --purple:#5B4B8A;

  --radius:8px;
  --radius-sm:6px;

  --shadow:0 1px 0 rgba(120,100,70,.06), 0 2px 6px rgba(120,100,70,.05);
  --shadow-h:0 6px 16px rgba(120,100,70,.10);
}

/* 纸感底：米白 + 极淡横纹 */
body{
  background-color: var(--bg);
  background-image: repeating-linear-gradient(180deg,
      rgba(120,100,70,.022) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
}

/* 顶栏：纸白 + 细线，标题宋体 */
.topbar{
  background:#FBF8F2;
  color: var(--ink);
  border-bottom:1px solid var(--line);
  box-shadow:none;
}
.topbar::after{ display:none; }
.brand-mark{
  background: linear-gradient(160deg,#F2C14E,#E0A32B); color:#3B2A0B; border-radius:4px; box-shadow:none;
  font-family:"Songti SC","SimSun",serif; font-size:19px; font-weight:900;
}
.brand-text h1{
  color: var(--navy);
  font-family:"Songti SC","STSong","SimSun",serif;
  font-weight:700; letter-spacing:.8px; font-size:18px;
}
.brand-text p{ color: var(--ink-soft); }
.menu-toggle{ color: var(--navy); }

/* 侧栏：分组标题左侧 3px 墨蓝竖线 */
.sidebar{ background: transparent; }
.nav-group-title{
  color: var(--navy); font-weight:700; letter-spacing:.5px;
}
.nav-group-title::before{
  content:""; display:inline-block; width:3px; height:13px;
  background: var(--navy); margin-right:8px; vertical-align:-2px; border-radius:1px;
}
.navbtn{
  color: var(--ink-soft); border-radius:6px; border:1px solid transparent;
  font-weight:500;
}
.navbtn:hover{ background:#FBF8F2; color: var(--navy); border-color: var(--line); }
.navbtn.active{
  background: var(--navy-soft); color: var(--navy);
  border-color:#CFD9E5; font-weight:700; box-shadow:none;
  border-left:3px solid var(--navy);
}

/* Hero：白纸卡片 */
.hero{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero::before{ content:none; }
.hero h2{
  color: var(--navy);
  font-family:"Songti SC","STSong","SimSun",serif;
  letter-spacing:.6px;
}
.hero p{ color: var(--ink-soft); }

/* 按钮：墨蓝主按钮，描边次按钮 */
.hero .quick button, .ghost-btn{
  background:#FFFDF9; border:1px solid var(--line); color: var(--navy);
  font-weight:600; border-radius:6px;
}
.hero .quick button:hover, .ghost-btn:hover{
  background: var(--navy-soft); color: var(--navy); border-color:#CFD9E5;
  box-shadow:none; transform:none;
}
.btn-download{
  background: var(--navy); border:1px solid var(--navy); color:#fff;
  border-radius:6px; box-shadow:none; font-weight:600;
}
.btn-download:hover{ background: var(--navy-2); }

/* chip */
.chip{
  background:#FFFDF9; border:1px solid var(--line); color: var(--ink-soft);
  border-radius:999px; font-weight:500;
}
.chip:hover{ border-color:#CFD9E5; color: var(--navy); }
.chip.active{
  background: var(--navy); border-color: var(--navy); color:#fff; box-shadow:none;
}

/* 卡片 */
.paper, .prog-card, .tmpl-card, .ana-card, .wrong-card, .my-card,
.excl-card, .kw-card, .tomb-card, .danger-card, .kpi{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 章节标题：宋体 + 竖线，不用方块徽章 */
h2.section-title{
  color: var(--navy);
  font-family:"Songti SC","STSong","SimSun",serif;
  letter-spacing:.5px;
}
h2.section-title::before{
  content:""; display:inline-block; width:3px; height:16px;
  background: var(--navy); margin-right:9px; vertical-align:-2px; border-radius:1px;
}

/* 序号/徽章：等宽小字，方形标 */
.paper h3 .tag{
  background: transparent; color: var(--navy);
  border:1px solid #CFD9E5; border-radius:4px;
  font-family:"SFMono-Regular","Consolas","Courier New",monospace;
  font-size:11px; letter-spacing:.5px; padding:1px 6px;
}
.paper h3{
  color: var(--navy);
  font-family:"Songti SC","STSong","SimSun",serif;
}

/* 进度条：实心、细 */
.progress-bar, .bar{ background: var(--line-2); border-radius:3px; }
.progress-bar > i, .bar > i{ background: var(--green); border-radius:3px; }

/* 数字用等宽 */
.kpi b, .stat b, .num, .fc-progress{
  font-family:"SFMono-Regular","Consolas","Courier New",monospace;
  letter-spacing:.4px; color: var(--navy);
}

/* 纸感细节：知识点分隔用虚线 */
.paper li{ line-height:1.8; }


/* 章节容器：去掉红色渐变底与彩色圆角徽章，改成纸页式 */
.chapter{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chapter-head{
  background: transparent;
  border-bottom: 1px solid var(--line-2);
}
.chapter-head h3{
  color: var(--navy);
  font-family: "Songti SC","STSong","SimSun",serif;
  letter-spacing: .4px;
}
.chapter-head .num{
  background: transparent;
  color: var(--navy);
  border: 1px solid #CFD9E5;
  border-radius: 4px;
  font-family: "SFMono-Regular","Consolas","Courier New",monospace;
  font-weight: 700;
  font-size: 12px;
}
.chapter.open .arrow{ color: var(--navy); }
.paper{ border-left: 1px solid var(--line); }


/* 手机端：标题不折行，副标题隐藏 */
@media (max-width: 640px){
  .brand-text h1{
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }
  .brand-text p{ display:none; }
  .toolbar{ overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .toolbar::-webkit-scrollbar{ display:none; }
}

/* ============ 统一本子：错题本 / 收藏（2026-11-14） ============ */
.bk-hero h2{ margin:0 0 8px; }
.bk-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin:0 0 12px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.bk-count{ font-size:13px; color:var(--muted); }
.bk-count b{ color:var(--red); font-size:15px; }
.bk-tools{ display:flex; gap:8px; flex-wrap:wrap; }
.bk-btn{ border:1px solid var(--line); background:var(--card); color:var(--ink2); border-radius:8px;
  padding:7px 13px; font:500 12.5px/1 var(--sans,system-ui,sans-serif); cursor:pointer; transition:all .15s; }
.bk-btn:hover{ border-color:var(--red); color:var(--red); }
.bk-btn[disabled]{ opacity:.42; cursor:not-allowed; }
.bk-btn[disabled]:hover{ border-color:var(--line); color:var(--ink2); }
.bk-btn.danger{ color:#A63F33; }
.bk-filters{ margin:0 0 14px; }
.bk-list{ display:flex; flex-direction:column; gap:12px; }
.bk-item{ border:1px solid var(--line); border-radius:13px; background:var(--card); padding:14px 16px 15px; }
.bk-hd{ display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.bk-src{ font-size:11px; line-height:1; color:var(--red); background:rgba(196,87,74,.08);
  border:1px solid rgba(196,87,74,.2); border-radius:5px; padding:3.5px 7px; }
.bk-g{ font-size:11.5px; color:var(--muted); }
.bk-rm{ margin-left:auto; border:0; background:transparent; color:var(--muted); font-size:11.5px;
  cursor:pointer; padding:3px 5px; border-radius:5px; }
.bk-rm:hover{ color:#A63F33; background:rgba(196,87,74,.07); }
.bk-q{ font:500 14.5px/1.85 var(--sans,system-ui,sans-serif); color:var(--ink); margin-bottom:10px; }
.bk-opts{ display:flex; flex-direction:column; gap:5px; margin:0 0 11px; }
.bk-opt{ display:flex; gap:8px; font-size:13px; line-height:1.75; color:var(--ink2);
  padding:6px 10px; border-radius:8px; background:var(--panel); }
.bk-opt i{ font-style:normal; color:var(--muted); flex:0 0 auto; }
.bk-opt.right{ background:rgba(46,125,91,.09); color:#2E6B4F; }
.bk-opt.right i{ color:#2E7D5B; font-weight:600; }
.bk-ans{ font-size:13.2px; line-height:1.85; color:var(--ink); margin:0 0 7px;
  padding:9px 11px; border-left:3px solid var(--red); border-radius:0 8px 8px 0; background:rgba(196,87,74,.05); }
.bk-ans b{ display:inline-block; margin-right:7px; font-size:11.5px; color:var(--red); font-weight:600; }
.bk-exp{ font-size:12.8px; line-height:1.9; color:var(--ink2); margin-top:8px; padding-top:9px;
  border-top:1px dashed var(--line); }
.bk-exp b{ color:var(--muted); font-weight:600; margin-right:7px; font-size:11.5px; }
.bk-empty{ padding:52px 20px; text-align:center; font-size:13.5px; line-height:1.9; color:var(--muted);
  border:1px dashed var(--line); border-radius:13px; background:var(--panel); }
@media (max-width:640px){
  .bk-bar{ padding:9px 11px; }
  .bk-btn{ padding:6px 10px; font-size:12px; }
  .bk-item{ padding:12px 13px; }
  .bk-q{ font-size:14px; }
}

/* ============ 首页资料包卡片 + 二维码弹层（2026-11-14） ============ */
.hm-pack{ display:flex; align-items:center; gap:11px; width:100%; margin:0 0 14px; padding:12px 16px;
  border:1px solid var(--line); border-radius:13px; cursor:pointer; text-align:left; font-family:inherit;
  background:linear-gradient(100deg, rgba(196,87,74,.07), rgba(214,166,74,.12));
  transition:border-color .15s, transform .15s, box-shadow .15s; }
.hm-pack:hover{ border-color:var(--red); transform:translateY(-1px); box-shadow:0 6px 18px rgba(196,87,74,.08); }
.hm-pack-ico{ font-size:20px; line-height:1; }
.hm-pack-main{ display:flex; align-items:center; min-width:0; }
.hm-pack-main b{ font:600 15px/1.3 var(--sans,system-ui,sans-serif); color:var(--ink); }
.pk-mask{ position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center;
  padding:18px; background:rgba(24,20,16,.45); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  animation:pkIn .18s ease both; overflow:auto; box-sizing:border-box; }
@keyframes pkIn{ from{opacity:0} to{opacity:1} }
.pk-card{ position:relative; margin:auto; width:min(360px,100%); box-sizing:border-box; text-align:center;
  background:var(--card,#FFFDF9); color:var(--ink,#2B2B2B); border:1px solid var(--line,#E7DFD2);
  border-radius:18px; padding:24px 22px 18px; box-shadow:0 24px 60px rgba(30,22,12,.28);
  font-family:var(--sans,system-ui,"PingFang SC","Microsoft YaHei",sans-serif); }
.pk-x{ position:absolute; right:10px; top:8px; border:0; background:transparent; color:var(--muted,#A69C8B);
  font-size:20px; line-height:1; cursor:pointer; padding:4px 7px; border-radius:6px; }
.pk-x:hover{ background:var(--panel); color:var(--ink); }
.pk-card h3{ margin:0 0 8px; font:600 19px/1.45 var(--sans,"Songti SC",SimSun,serif); color:var(--ink); }
.pk-sub{ margin:0 0 12px; font-size:12.5px; line-height:1.8; color:var(--muted,#8A8378); }
.pk-qrbox{ position:relative; width:196px; height:196px; margin:2px auto 10px; border-radius:12px;
  border:1px dashed var(--line,#E7DFD2); background:var(--panel,#F7F2E8); display:grid; place-items:center; overflow:hidden; }
.pk-qr{ width:100%; height:100%; object-fit:contain; display:block; }
.pk-tip{ font-size:12px; color:var(--muted,#8A8378); line-height:1.9; padding:0 14px; }
.pk-tip span{ font-size:10.5px; color:#A69C8B; }
.pk-note{ margin:4px 0 0; font-size:11.5px; line-height:1.7; color:var(--muted,#9A8C72); }
@media (max-width:640px){
  .pk-card{ padding:22px 16px 16px; border-radius:16px; }
  .pk-qrbox{ width:172px; height:172px; }
}
