/* ============================================================
   刘诗白政治经济学查询系统 · 样式表
   学术纸感 × 现代信息界面
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --card-soft: #faf6ee;
  --ink: #1c2530;
  --ink-2: #3c4653;
  --muted: #6d746c;
  --line: #e3d9c7;
  --line-strong: #d2c5ab;
  --navy: #132c45;
  --navy-soft: #1d3d5c;
  --crimson: #9e1f2d;
  --crimson-soft: #f3e3e0;
  --gold: #b98b3e;
  --gold-soft: #f1e5ca;
  --green: #3f6b53;
  --green-soft: #e4eee5;
  --blue-soft: #e3ebf3;
  --shadow: 0 10px 30px rgba(28, 37, 48, 0.08);
  --shadow-sm: 0 2px 8px rgba(28, 37, 48, 0.07);
  --radius: 14px;
  --radius-sm: 9px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-h: 66px;
  --side-w: 250px;
}

[data-theme="dark"] {
  --paper: #0f1720;
  --paper-2: #131e29;
  --card: #172431;
  --card-soft: #1b2a38;
  --ink: #e8e3d8;
  --ink-2: #c8c3b7;
  --muted: #96a0a8;
  --line: #2b3a49;
  --line-strong: #3c4c5c;
  --navy: #dfe8f2;
  --navy-soft: #2a4b6b;
  --crimson: #e0777f;
  --crimson-soft: #3a2226;
  --gold: #d8b471;
  --gold-soft: #352c1c;
  --green: #8ab99b;
  --green-soft: #1f3227;
  --blue-soft: #1c2f42;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(185, 139, 62, 0.10), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(19, 44, 69, 0.07), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(120, 100, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 100, 70, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--crimson); }

strong { font-weight: 650; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-seal {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #f3e6c8;
  font-family: var(--serif);
  font-size: 23px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px rgba(201, 164, 92, 0.55), var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-text strong { font-family: var(--serif); font-size: 17.5px; letter-spacing: 0.02em; color: var(--ink); }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.16em; }

.global-search {
  flex: 1 1 auto;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px 0 15px;
  height: 42px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.global-search:focus-within {
  border-color: var(--gold);
  background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}
.gs-icon { color: var(--muted); font-size: 19px; line-height: 1; transform: translateY(-1px); }
.global-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 14px; min-width: 0;
}
.global-search input::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--muted);
  white-space: nowrap;
}
.gs-kbd { flex: 0 0 auto; }

.topbar-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--ink-2);
  font-size: 17px;
  cursor: pointer;
  transition: 0.18s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--crimson); background: var(--card); }
.menu-btn { display: none; }

/* ---------------- 布局 ---------------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: 30px;
  padding: 26px 22px 60px;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 44px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.nav { display: flex; flex-direction: column; gap: 3px; margin-bottom: 24px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: 0.16s;
}
.nav-item:hover { background: var(--card-soft); color: var(--ink); }
.nav-item.active {
  background: var(--navy);
  color: #f4ead4;
  box-shadow: var(--shadow-sm);
}
.nav-item.active .nav-ico { color: var(--gold); }
.nav-ico { width: 20px; text-align: center; color: var(--muted); font-size: 15px; }

.sidebar-block {
  border-top: 1px dashed var(--line-strong);
  padding-top: 16px;
  margin-top: 16px;
}
.sidebar-block h3 {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 11px;
  border-radius: 8px; color: var(--ink-2); font-size: 13.5px;
}
.cat-link:hover { background: var(--card-soft); color: var(--crimson); }
.cat-link .count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--paper-2); border-radius: 99px; padding: 0 8px;
}
.sidebar-tip p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.sidebar-tip .kbd-line { display: flex; gap: 6px; align-items: center; }
.sidebar-foot { margin-top: 18px; color: var(--muted); font-size: 11.5px; letter-spacing: 0.04em; }

.main { min-width: 0; }
.view { min-height: 60vh; }
.site-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.site-foot p { margin: 0 0 6px; }
.foot-meta { letter-spacing: 0.05em; }

/* ---------------- 通用元件 ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em; color: var(--crimson);
  font-weight: 600; text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--crimson); display: inline-block; }

.page-head { margin-bottom: 26px; }
.page-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.page-title .accent { color: var(--crimson); }
.page-sub { color: var(--muted); max-width: 820px; margin: 0; font-size: 14.5px; }

.section-title {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  margin: 38px 0 16px;
  color: var(--ink);
}
.section-title small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.12em; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); transform: translateY(-5px); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--line-strong);
  background: var(--card-soft);
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.16s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--gold); color: var(--crimson); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #f4ead4; }
.chip.small { padding: 2px 9px; font-size: 11.5px; cursor: default; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; padding: 1px 9px; border-radius: 99px;
  background: var(--gold-soft); color: #7c5a1d; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  white-space: nowrap;
}
.badge.blue { background: var(--blue-soft); color: #2c5478; border-color: #c3d4e3; }
.badge.crimson { background: var(--crimson-soft); color: var(--crimson); border-color: #e3bdb8; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: #c2d8c7; }
[data-theme="dark"] .badge { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit; font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: 0.16s;
}
.btn:hover { border-color: var(--gold); background: var(--card-soft); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #f7eeda; }
.btn.primary:hover { background: var(--navy-soft); color: #fff; }
.btn.crimson { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

mark { background: linear-gradient(transparent 48%, color-mix(in srgb, var(--gold) 42%, transparent) 48%); color: inherit; padding: 0 1px; border-radius: 2px; }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card-soft);
}
.empty-state .big { font-size: 40px; margin-bottom: 10px; opacity: 0.7; }

/* ---------------- 首页 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--navy) 96%, #000) 0%, #1c3b5a 62%, #24496b 100%);
  color: #f3ecdc;
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "政治经济学";
  position: absolute;
  right: -16px; bottom: -38px;
  font-family: var(--serif);
  font-size: clamp(70px, 12vw, 150px);
  color: rgba(201, 164, 92, 0.10);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.28;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
.hero h1 .gold { color: #e6c989; }
.hero p.lead {
  max-width: 760px;
  color: rgba(243, 236, 220, 0.82);
  font-size: 15px;
  margin: 0 0 24px;
  position: relative; z-index: 1;
}
.hero-search {
  display: flex; gap: 8px;
  max-width: 680px;
  position: relative; z-index: 1;
}
.hero-search input {
  flex: 1;
  height: 50px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.hero-search input:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.15); }
.hero-search .btn { height: 50px; border-radius: 11px; background: var(--gold); border-color: var(--gold); color: #2a2113; font-weight: 600; }
.hero-search .btn:hover { background: #d8b471; }
.hot-terms {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  position: relative; z-index: 1;
  font-size: 12.5px; color: rgba(243, 236, 220, 0.62);
}
.hot-terms .hot-link {
  color: rgba(243, 236, 220, 0.92);
  border-bottom: 1px dashed rgba(243, 236, 220, 0.4);
  cursor: pointer;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  font: inherit; padding: 0 0 1px;
}
.hot-terms .hot-link:hover { color: #e6c989; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
  position: relative;
  overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); opacity: 0.7; }
.stat-card .num { font-family: var(--serif); font-size: 27px; color: var(--navy); line-height: 1.2; }
.stat-card .lbl { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }
.stat-card .hint { font-size: 11.5px; color: var(--muted); }

.home-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 22px; margin-top: 20px; align-items: start; }

.entry-mini {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.16s;
  background: transparent;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.entry-mini:hover { background: var(--card-soft); border-color: var(--line); transform: translateX(2px); }
.entry-mini .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); margin-top: 9px; }
.entry-mini .em-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.entry-mini .em-desc { color: var(--muted); font-size: 12.8px; line-height: 1.55; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.timeline-mini { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 0; position: relative; }
.tl-item + .tl-item { border-top: 1px dashed var(--line); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--crimson); padding-top: 2px; letter-spacing: 0.02em; }
.tl-title { font-weight: 600; font-size: 13.8px; }
.tl-text { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 1px; }

.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px 16px;
  background: var(--card);
  display: flex; flex-direction: column; gap: 3px;
  transition: 0.16s;
}
.quick-link:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick-link b { font-size: 14px; font-weight: 600; color: var(--ink); }
.quick-link span { color: var(--muted); font-size: 12.3px; line-height: 1.5; }
.quick-link .ql-ico { font-size: 17px; color: var(--gold); }

.day-question { border-left: 3px solid var(--crimson); }
.day-question .dq-type { font-size: 12px; color: var(--crimson); letter-spacing: 0.1em; }
.day-question .dq-q { font-family: var(--serif); font-size: 17px; margin: 6px 0 12px; line-height: 1.55; }

/* ---------------- 搜索页 ---------------- */
.search-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; align-items: center; }
.filter-bar .flabel { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; margin-right: 2px; }
.result-meta { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 16px 18px;
  cursor: pointer;
  transition: 0.16s;
  color: inherit;
  width: 100%;
  text-align: left;
  font: inherit;
}
.result-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.result-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.result-title { font-weight: 650; font-size: 15.5px; color: var(--ink); }
.result-type { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; }
.result-snippet { color: var(--ink-2); font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-foot { margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 词条详情 ---------------- */
.detail-hero { padding: 30px 32px; position: relative; overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--crimson), var(--gold)); }
.detail-hero .crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.detail-hero h1 { font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); margin: 0 0 8px; line-height: 1.3; }
.detail-hero .summary { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 880px; }
.detail-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; margin-top: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.block h2 {
  font-family: var(--serif);
  font-size: 17.5px;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.block h2 .b-dot { width: 6px; height: 16px; border-radius: 2px; background: var(--crimson); display: inline-block; }
.block p { margin: 0 0 10px; }
.block p:last-child { margin-bottom: 0; }
.block .lead-text { font-size: 14.8px; line-height: 1.85; }
.point-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.point-list li { position: relative; padding-left: 24px; line-height: 1.75; font-size: 14.3px; }
.point-list li::before {
  content: attr(data-idx);
  position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold-soft); color: #7c5a1d;
  font-size: 10.5px; font-family: var(--mono);
  display: grid; place-items: center;
}
[data-theme="dark"] .point-list li::before { color: var(--gold); }
.formula {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 4px 0 10px;
  color: var(--ink-2);
  overflow-x: auto;
}
.source-line { font-size: 12.3px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }
.modern-box {
  background: linear-gradient(135deg, var(--green-soft), transparent 130%);
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line));
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.8px;
}
.modern-box .mb-title { font-weight: 650; color: var(--green); font-size: 12.5px; letter-spacing: 0.08em; margin-bottom: 5px; }

.exam-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: var(--card-soft); }
.exam-item:last-child { margin-bottom: 0; }
.exam-q {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 15px; cursor: pointer; width: 100%;
  background: transparent; border: 0; font: inherit; color: inherit; text-align: left;
}
.exam-q:hover { background: var(--paper-2); }
.exam-q .etype { flex: 0 0 auto; margin-top: 2px; }
.exam-q .qtext { flex: 1; font-size: 14px; line-height: 1.65; }
.exam-q .caret { flex: 0 0 auto; color: var(--muted); font-size: 12px; transition: transform 0.18s; margin-top: 4px; }
.exam-item.open .caret { transform: rotate(90deg); }
.exam-a { display: none; padding: 0 15px 14px 15px; border-top: 1px dashed var(--line); }
.exam-item.open .exam-a { display: block; }
.exam-a .aa-title { font-size: 12px; color: var(--crimson); letter-spacing: 0.1em; margin: 10px 0 6px; }
.exam-a ul { margin: 0; padding-left: 18px; }
.exam-a li { font-size: 13.5px; line-height: 1.7; margin-bottom: 5px; }
.exam-a .tips { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; }
.side-card h3 { font-family: var(--serif); font-size: 14.5px; margin: 0 0 10px; color: var(--ink); }
.side-card .meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.6px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.side-card .meta-row:last-child { border-bottom: 0; }
.side-card .meta-row span:first-child { color: var(--muted); flex: 0 0 auto; }
.side-card .meta-row span:last-child { text-align: right; color: var(--ink-2); }
.rel-list { display: flex; flex-direction: column; gap: 2px; }
.rel-item { padding: 7px 9px; border-radius: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.rel-item:hover { background: var(--card-soft); color: var(--crimson); }
.rel-item::before { content: "→"; color: var(--gold); font-size: 12px; }

/* ---------------- 大纲页 ---------------- */
.syllabus-group { margin-bottom: 30px; }
.group-head {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-family: var(--serif); font-size: 19px;
}
.group-head .group-tag { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.1em; color: var(--crimson); border: 1px solid var(--crimson); border-radius: 99px; padding: 1px 10px; }
.group-head .group-line { flex: 1; height: 1px; background: var(--line-strong); }
.syl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.syl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; transition: 0.16s; display: flex; flex-direction: column; gap: 6px;
  text-align: left; font: inherit; color: inherit;
}
.syl-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.syl-card .syl-no { font-family: var(--mono); font-size: 11.5px; color: var(--crimson); letter-spacing: 0.08em; }
.syl-card .syl-title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.4; }
.syl-card .syl-desc { font-size: 12.7px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.syl-card .syl-foot { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

.syl-detail .req-box {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.8;
}
.syl-detail .req-box ul { margin: 0; padding-left: 19px; }
.syl-detail .req-box li { margin-bottom: 5px; }
.syl-detail .req-box li:last-child { margin-bottom: 0; }
.qa-item { border-top: 1px dashed var(--line); padding: 15px 0; }
.qa-item:first-child { border-top: 0; padding-top: 0; }
.qa-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.qa-q { font-weight: 600; font-size: 14.6px; line-height: 1.65; }
.qa-a { margin: 6px 0 0; padding-left: 19px; }
.qa-a li { font-size: 13.3px; line-height: 1.72; margin-bottom: 4px; color: var(--ink-2); }

/* ---------------- 历年真题 ---------------- */
.real-exam-list { display: flex; flex-direction: column; }
.real-exam {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.real-exam:last-child { border-bottom: 0; padding-bottom: 2px; }
.re-year {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--crimson); background: var(--crimson-soft);
  border-radius: 5px; padding: 1px 7px; margin-top: 2px;
}
.re-q { flex: 1; min-width: 230px; font-size: 13.8px; line-height: 1.72; }
.real-exam .chip { margin-left: auto; }
.real-exam .badge { flex: 0 0 auto; margin-top: 1px; }

/* ---------------- 理论联系 / 高分范文 ---------------- */
.graph-card { overflow-x: auto; }
.link-graph { width: 100%; height: auto; display: block; min-width: 680px; }
.link-graph .ln-node rect { transition: stroke-width 0.15s, filter 0.15s; }
.link-graph .ln-node:hover rect { stroke-width: 3.2; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 12.2px; color: var(--muted); align-items: center; }
.lg-line { display: inline-block; width: 26px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.lg-core { border-color: var(--crimson); opacity: 0.7; }
.lg-ext { border-color: var(--gold); border-top-width: 2px; }
.matrix-card { overflow-x: auto; }
.matrix-table { border-collapse: collapse; width: 100%; min-width: 780px; }
.matrix-table th, .matrix-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; font-size: 12px; white-space: nowrap; }
.matrix-table thead th { font-weight: 600; color: var(--navy); font-size: 11.3px; line-height: 1.3; vertical-align: bottom; }
.matrix-table tbody th { text-align: left; font-weight: 500; }
.matrix-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.matrix-table a { color: inherit; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.dot-core { background: var(--crimson); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crimson) 16%, transparent); }
.dot-ext { border: 2.5px solid var(--gold); background: transparent; }
.dot-none { background: var(--line); opacity: 0.55; width: 5px; height: 5px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
}
.lc-title { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.lc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-k { display: inline-block; font-size: 11px; letter-spacing: 0.08em; color: var(--crimson); font-weight: 600; margin-bottom: 3px; }
.link-card p { margin: 0; font-size: 12.6px; color: var(--ink-2); line-height: 1.65; }
.lc-q { font-size: 12.8px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 8px; line-height: 1.65; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.figure-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.link-fig { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-sm); }
.link-fig img { width: 100%; height: auto; display: block; border-radius: 8px; }
.link-fig figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.essay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.essay-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
  transition: 0.16s; position: relative; overflow: hidden;
}
.essay-card::before {
  content: "范文"; position: absolute; right: -8px; top: -13px;
  font-family: var(--serif); font-size: 44px;
  color: color-mix(in srgb, var(--gold) 16%, transparent);
}
.essay-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.ec-no { font-size: 11.5px; color: var(--crimson); letter-spacing: 0.06em; }
.essay-card h3 { font-family: var(--serif); font-size: 17px; margin: 0; line-height: 1.45; color: var(--ink); }
.ec-q { font-size: 12.8px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.essay-sec { margin-bottom: 12px; }
.essay-sec:last-child { margin-bottom: 0; }
.es-label { font-family: var(--serif); font-weight: 600; color: var(--crimson); font-size: 14px; margin-bottom: 3px; }
.essay-sec p { margin: 0; font-size: 14.2px; line-height: 1.88; color: var(--ink); }
.mini-link { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--card-soft); }
.ml-title { font-weight: 600; color: var(--navy); font-size: 13.8px; margin-bottom: 5px; }
.ml-row { display: flex; gap: 8px; font-size: 12.7px; line-height: 1.65; margin-bottom: 3px; }
.ml-row .lc-k { flex: 0 0 30px; margin: 0; line-height: 1.65; }
.ml-row span:last-child { color: var(--ink-2); }
.ml-q { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 4px; }
.ref-frame { font-size: 12px; color: var(--gold); margin-top: 8px; letter-spacing: 0.02em; }
.ref-answer { margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); overflow: hidden; }
.ref-answer summary { cursor: pointer; padding: 9px 13px; font-size: 12.5px; color: var(--crimson); font-weight: 600; background: var(--card-soft); list-style: none; }
.ref-answer summary::-webkit-details-marker { display: none; }
.ref-answer summary::before { content: "▸ "; }
.ref-answer[open] summary::before { content: "▾ "; }
.ref-answer .ref-text { padding: 11px 14px; font-size: 13.2px; line-height: 1.9; color: var(--ink); }
.ref-answer .ref-text br { display: block; content: ""; margin-top: 5px; }
/* 时政分析 */
.policy-aspect { scroll-margin-top: 90px; }
.pa-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pa-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; color: var(--ink); }
.pa-no { font-family: var(--mono); font-size: 11.5px; color: var(--crimson); background: var(--crimson-soft); border-radius: 5px; padding: 2px 8px; }
.pa-basis { margin-top: 8px; font-size: 12px; color: var(--muted); font-family: var(--sans); }
.pa-section { margin-top: 13px; }
.pa-text { font-size: 14px; line-height: 1.85; color: var(--ink); margin: 0; }
.pa-paper { border-left: 3px solid var(--gold); background: var(--card-soft); border-radius: 0 9px 9px 0; padding: 10px 14px; margin-top: 8px; }
.pa-paper-title { font-weight: 600; color: var(--navy); font-size: 13.5px; line-height: 1.55; }
.pa-cite { font-size: 11.5px; color: var(--muted); margin: 2px 0 5px; }
.pa-paper p { margin: 0; font-size: 12.8px; color: var(--ink-2); line-height: 1.7; }
.scholar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.scholar-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; }
.sc-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--navy); }
.sc-unit { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sc-metrics { font-size: 12.2px; color: var(--crimson); margin: 8px 0 5px; line-height: 1.5; }
.sc-field { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.sc-rel { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.paper-card { border: 1px solid var(--line); border-radius: 11px; background: var(--card); margin-bottom: 9px; overflow: hidden; }
.paper-card summary { cursor: pointer; padding: 12px 15px; font-size: 13.5px; line-height: 1.6; list-style: none; }
.paper-card summary::-webkit-details-marker { display: none; }
.paper-card summary::before { content: "▸ "; color: var(--gold); }
.paper-card[open] summary::before { content: "▾ "; }
.pc-authors { font-weight: 650; color: var(--navy); }
.pc-journal { color: var(--muted); font-size: 12px; margin-left: 8px; }
.pc-cite { display: block; color: var(--crimson); font-size: 11.5px; margin-top: 2px; }
.paper-body { border-top: 1px dashed var(--line); padding: 12px 15px; }
.paper-body p { margin: 0 0 9px; font-size: 13px; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 900px) { .scholar-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .link-grid, .essay-grid, .figure-gallery { grid-template-columns: 1fr; }
  .lc-cols { grid-template-columns: 1fr; }
}

/* ---------------- 近年发展 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.topic-card {
  border: 1px solid var(--line); border-radius: 13px; background: var(--card);
  padding: 19px 20px; cursor: pointer; transition: 0.16s; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 7px; position: relative; overflow: hidden;
}
.topic-card::before { content: attr(data-index); position: absolute; right: 14px; top: 8px; font-family: var(--serif); font-size: 44px; color: color-mix(in srgb, var(--gold) 22%, transparent); line-height: 1; }
.topic-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.topic-card .tc-kicker { font-size: 11.5px; letter-spacing: 0.14em; color: var(--crimson); }
.topic-card .tc-title { font-family: var(--serif); font-size: 18.5px; font-weight: 600; line-height: 1.4; }
.topic-card .tc-sum { font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic-card .tc-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.full-timeline { position: relative; margin-top: 8px; padding-left: 8px; }
.ftl-item { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 0 0 22px; position: relative; }
.ftl-item::before { content: ""; position: absolute; left: 92px; top: 7px; bottom: -2px; width: 1px; background: var(--line-strong); }
.ftl-item:last-child::before { display: none; }
.ftl-date { font-family: var(--mono); font-size: 12px; color: var(--crimson); text-align: right; padding-top: 1px; letter-spacing: 0.02em; }
.ftl-body { position: relative; padding-left: 20px; }
.ftl-body::before { content: ""; position: absolute; left: -3px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--crimson); }
.ftl-title { font-weight: 650; font-size: 14.5px; }
.ftl-text { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 2px; }
.ftl-tag { font-size: 11px; color: var(--gold); letter-spacing: 0.08em; margin-left: 8px; font-weight: 500; }

.fact-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fact-list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.72; }
.fact-list li::before { content: "◆"; position: absolute; left: 2px; top: 2px; color: var(--gold); font-size: 9px; }
.official-quote {
  border-left: 3px solid var(--crimson);
  background: var(--card-soft);
  padding: 13px 17px;
  border-radius: 0 9px 9px 0;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
}
.link-cluster { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------------- 自测 ---------------- */
.quiz-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.quiz-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.quiz-panel h2 { font-family: var(--serif); font-size: 17px; margin: 0 0 14px; }
.quiz-panel .field { margin-bottom: 15px; }
.quiz-panel .field label { display: block; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.quiz-panel select {
  width: 100%; height: 38px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--card-soft); color: var(--ink);
  padding: 0 10px; font: inherit; font-size: 13.5px; outline: none;
}
.quiz-panel select:focus { border-color: var(--gold); }
.quiz-progress { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 14px; }
.progress-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); border-radius: 99px; transition: width 0.3s; }
.quiz-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.quiz-stat { background: var(--card-soft); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.quiz-stat b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--navy); }
.quiz-stat span { font-size: 11.5px; color: var(--muted); }

.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 38px); min-height: 360px; }
.quiz-card .qc-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.quiz-card .qc-q { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.6; margin: 0 0 22px; }
.quiz-card .qc-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.quiz-answer { border-top: 1px dashed var(--line-strong); padding-top: 16px; }
.quiz-answer .aa-title { font-size: 12px; letter-spacing: 0.12em; color: var(--crimson); margin-bottom: 8px; }
.quiz-answer ul { margin: 0; padding-left: 19px; }
.quiz-answer li { font-size: 14px; line-height: 1.8; margin-bottom: 7px; }
.quiz-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.quiz-actions .spacer { flex: 1; }
.quiz-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---------------- 收藏 / 关于 ---------------- */
.fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fav-card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; position: relative; }
.fav-card .fav-remove { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 3px 6px; border-radius: 6px; }
.fav-card .fav-remove:hover { background: var(--crimson-soft); color: var(--crimson); }
.fav-card .fc-title { font-family: var(--serif); font-size: 16.5px; font-weight: 600; padding-right: 22px; }
.fav-card .fc-type { font-size: 11px; letter-spacing: 0.1em; color: var(--crimson); }
.fav-card .fc-desc { font-size: 12.8px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.about-card h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 12px; }
.about-card p { font-size: 13.8px; color: var(--ink-2); }
.about-card ul { padding-left: 19px; margin: 8px 0; }
.about-card li { font-size: 13.6px; line-height: 1.75; margin-bottom: 6px; }
.src-list { display: flex; flex-direction: column; gap: 7px; }
.src-item { font-size: 12.8px; line-height: 1.6; padding: 9px 12px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 8px; word-break: break-all; }
.src-item b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 1px; }

/* ---------------- 浮层 / 提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--navy); color: #f7eeda;
  padding: 10px 20px; border-radius: 99px;
  font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: 0.24s; z-index: 120;
  box-shadow: var(--shadow); max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side > * { flex: 1 1 260px; }
  .home-grid { grid-template-columns: 1fr; }
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-panel { position: static; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --side-w: 0px; }
  .shell { display: block; padding: 18px 16px 50px; }
  .sidebar {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); z-index: 55;
    padding: 18px 22px 40px; max-height: none; overflow-y: auto;
  }
  .sidebar.open { display: block; }
  .menu-btn { display: grid; }
  .global-search { max-width: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .syl-grid, .topic-grid, .fav-grid, .quick-links { grid-template-columns: 1fr; }
  .detail-hero { padding: 24px 22px; }
  .detail-tags { margin-left: 0; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
}
@media (max-width: 620px) {
  .topbar-inner { gap: 10px; padding: 0 14px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15.5px; }
  .gs-kbd { display: none; }
  .global-search { height: 38px; padding: 0 10px; }
  .topbar-actions .icon-btn { width: 36px; height: 36px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-card .num { font-size: 23px; }
  .ftl-item { grid-template-columns: 64px 1fr; gap: 10px; }
  .ftl-item::before { left: 72px; }
  .detail-toolbar .btn span.long { display: none; }
  .page-title { font-size: 24px; }
}

/* ---------------- 打印 ---------------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  body::before, .topbar, .sidebar, .site-foot, .detail-side, .detail-toolbar, .toast, .exam-q .caret { display: none !important; }
  .shell { display: block; padding: 0; max-width: none; }
  .view { min-height: 0; }
  .detail-body { display: block; }
  .detail-main { gap: 12px; }
  .block, .card { break-inside: avoid; box-shadow: none; }
  .exam-a { display: block !important; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 习近平经济思想专题 */
.xi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; margin-top: 14px; }
.xi-card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; }
.xi-no { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.xi-body { min-width: 0; }
.xi-title { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.xi-sum { margin: 4px 0 5px; font-size: 12.4px; color: var(--ink-2); line-height: 1.65; }
.xi-exam { font-size: 11.5px; color: var(--crimson); line-height: 1.5; }
.xi-doc-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.xi-doc { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; }
.xd-year { flex: 0 0 56px; font-family: var(--mono); font-size: 13px; color: var(--gold); font-weight: 700; padding-top: 2px; }
.xd-body { min-width: 0; }
.xd-title { font-family: var(--serif); font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.xd-date { font-size: 11.5px; color: var(--muted); margin: 2px 0 5px; }
.xd-body p { margin: 0 0 6px; font-size: 12.8px; color: var(--ink-2); line-height: 1.7; }
.xd-rel { font-size: 12.2px; color: var(--green); line-height: 1.65; }
.xi-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; margin-top: 10px; }
.xi-feature { background: var(--card-soft); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 12.4px; line-height: 1.65; color: var(--ink-2); }
.xi-feature b { display: block; color: var(--navy); font-family: var(--serif); font-size: 14px; margin-bottom: 3px; }
.xi-latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 9px; margin-top: 10px; }
.xi-latest { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.xi-latest b { color: var(--navy); font-size: 13px; }
.xi-latest p { margin: 3px 0 4px; font-size: 12.3px; color: var(--ink-2); line-height: 1.65; }
.plain-table { width: 100%; border-collapse: collapse; font-size: 12.6px; line-height: 1.65; }
.plain-table th { background: var(--navy); color: #fff; text-align: left; padding: 8px 10px; font-weight: 500; }
.plain-table td { border-top: 1px solid var(--line); padding: 8px 10px; vertical-align: top; color: var(--ink-2); }
.plain-table tr:nth-child(even) td { background: var(--card-soft); }
@media (max-width: 700px) { .xi-card, .xi-doc { flex-direction: column; gap: 6px; } .xd-year { flex-basis: auto; } }

/* ============================================================
   明前奶绿 · 奶糖花自习室主题（原创视觉，不使用直播切片/立绘）
   茶绿 × 奶白 × 麦芽金；背景为 CSS 渐变与原创 SVG 线稿
   ============================================================ */
:root {
  --paper: #f5f0e4;
  --paper-2: #ede4d2;
  --card: #fffdf7;
  --card-soft: #fbf6e9;
  --ink: #2c342d;
  --ink-2: #465047;
  --muted: #7c8377;
  --line: #e2d7c2;
  --line-strong: #d2c3a8;
  --navy: #3f5a49;
  --navy-soft: #55705c;
  --crimson: #a65e63;
  --crimson-soft: #f4e4e1;
  --gold: #c39a55;
  --gold-soft: #f2e6cb;
  --green: #6e8f70;
  --green-soft: #e6efe4;
  --blue-soft: #e6ebe7;
  --shadow: 0 16px 40px rgba(63, 90, 73, 0.12);
  --shadow-sm: 0 3px 12px rgba(63, 90, 73, 0.08);
  --radius: 18px;
  --radius-sm: 11px;
  --header-h: 72px;
}
[data-theme="dark"] {
  --paper: #1b241e;
  --paper-2: #202c24;
  --card: #243128;
  --card-soft: #2a382e;
  --ink: #f1ebdd;
  --ink-2: #d8d2c3;
  --muted: #a8b0a3;
  --line: #3a493c;
  --line-strong: #4b5c4d;
  --navy: #c7d8c8;
  --navy-soft: #314a3a;
  --crimson: #e0a0a4;
  --crimson-soft: #3b2729;
  --gold: #d8b87a;
  --gold-soft: #352d1e;
  --green: #9dbe9f;
  --green-soft: #203228;
  --blue-soft: #1e3026;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
}
body {
  background:
    radial-gradient(1100px 620px at 6% -8%, rgba(110, 143, 112, 0.20), transparent 62%),
    radial-gradient(900px 520px at 98% 0%, rgba(255, 250, 238, 0.92), transparent 60%),
    radial-gradient(760px 520px at 82% 106%, rgba(195, 154, 85, 0.11), transparent 62%),
    linear-gradient(180deg, #f8f3e7 0%, var(--paper) 46%, #f2ebdc 100%);
}
[data-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(110, 143, 112, 0.20), transparent 62%),
    radial-gradient(800px 500px at 100% 0%, rgba(195, 154, 85, 0.08), transparent 58%),
    linear-gradient(180deg, #1d2821 0%, var(--paper) 50%, #18211b 100%);
}
body::before {
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(110, 143, 112, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 143, 112, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgba(195, 154, 85, 0.10) 0 1.5px, transparent 2px);
  background-size: 30px 30px, 30px 30px, 110px 110px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(340px 340px at 3% 82%, rgba(110, 143, 112, 0.10), transparent 68%),
    radial-gradient(300px 300px at 97% 24%, rgba(255, 251, 240, 0.75), transparent 70%),
    radial-gradient(240px 240px at 90% 88%, rgba(195, 154, 85, 0.10), transparent 72%);
}
.topbar, .tea-ticker, .shell, .site-foot { position: relative; z-index: 1; }
.topbar {
  background: rgba(255, 252, 244, 0.84);
  border-bottom: 1px dashed var(--line);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
[data-theme="dark"] .topbar { background: rgba(27, 36, 30, 0.86); }
.brand-seal {
  width: 42px; height: 42px;
  border-radius: 52% 48% 46% 54%;
  background: linear-gradient(145deg, #7fa181, #4f6a57);
  color: #fffaf0;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(79, 106, 87, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transform: rotate(-4deg);
}
.brand-seal svg { display: block; }
.brand-text strong { letter-spacing: 0.01em; }
.brand-text small { letter-spacing: 0.12em; color: var(--green); }
.tea-ticker {
  display: flex; align-items: center; gap: 9px;
  padding: 8px clamp(16px, 3vw, 40px);
  background: rgba(255, 250, 239, 0.82);
  border-bottom: 1px solid rgba(226, 215, 194, 0.7);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .tea-ticker { background: rgba(32, 44, 36, 0.86); }
.tt-leaf { color: var(--green); font-size: 17px; line-height: 1; }
#teaTip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-meta { margin-left: auto; color: var(--gold); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em; white-space: nowrap; }
.sidebar { background: rgba(255, 252, 245, 0.58); border-right: 1px dashed var(--line); }
[data-theme="dark"] .sidebar { background: rgba(27, 36, 30, 0.55); }
.nav-item { border-radius: 12px; margin: 1px 0; }
.nav-item:hover { background: rgba(110, 143, 112, 0.10); }
.nav-item.active { background: var(--green-soft); color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
.nav-item.active .nav-ico { color: var(--green); }
.sidebar-block h3 { color: var(--green); letter-spacing: 0.08em; }
.card, .quick-link, .entry-mini, .exam-item, .paper-card, .xi-card, .xi-doc {
  border-color: var(--line);
}
.card { background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 251, 242, 0.92)); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .card { background: linear-gradient(180deg, rgba(36, 49, 40, 0.98), rgba(31, 43, 35, 0.96)); }
.section-title { color: var(--ink); letter-spacing: 0.01em; }
.section-title::before { content: "❧"; color: var(--green); font-family: var(--serif); font-size: 17px; margin-right: 7px; transform: translateY(1px); display: inline-block; }
.section-title::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.stat-card {
  position: relative; overflow: hidden;
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(63, 90, 73, 0.07);
}
[data-theme="dark"] .stat-card { background: rgba(36, 49, 40, 0.92); }
.stat-card::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--green), var(--gold)); opacity: 0.55; }
.stat-card .num { color: var(--green); }
.stat-card .lbl { color: var(--ink); }
.btn { border-radius: 999px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, #6e8f70, #4f6a57); border-color: #4f6a57; color: #fffaf0; }
.btn.primary:hover { background: linear-gradient(135deg, #7fa181, #55705c); color: #fff; }
.btn.crimson { background: var(--crimson); border-color: var(--crimson); }
.quick-link { background: rgba(255, 253, 247, 0.82); border-radius: 15px; box-shadow: 0 4px 14px rgba(63, 90, 73, 0.05); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.quick-link:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: 0 10px 24px rgba(63, 90, 73, 0.12); }
.ql-ico { color: var(--green); }
.hot-link { border-radius: 999px; background: rgba(255, 253, 247, 0.8); border: 1px solid var(--line); }
.hot-link:hover { background: var(--green-soft); border-color: var(--green); }
a { color: var(--green); }
a:hover { color: var(--crimson); }

/* 首页：茶绿 hero */
.hero.tea-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(250px, 0.68fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(520px 280px at 88% 12%, rgba(110, 143, 112, 0.18), transparent 68%),
    linear-gradient(135deg, #fffdf7 0%, #f4ecdc 56%, #e8f0e5 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(63, 90, 73, 0.13);
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 26px;
}
[data-theme="dark"] .hero.tea-hero {
  background:
    radial-gradient(520px 280px at 88% 12%, rgba(110, 143, 112, 0.18), transparent 68%),
    linear-gradient(135deg, #26342a 0%, #202c24 58%, #1d2a20 100%);
}
.hero.tea-hero::after { content: "明前奶绿"; color: rgba(110, 143, 112, 0.10); font-size: clamp(62px, 9vw, 120px); }
.hero.tea-hero .eyebrow { color: var(--green); }
.hero.tea-hero .eyebrow::before { background: var(--green); }
.hero.tea-hero h1 { color: var(--ink); font-size: clamp(29px, 3.8vw, 45px); }
.hero.tea-hero h1 .gold { color: var(--green); position: relative; }
.hero.tea-hero h1 .gold::after { content: ""; position: absolute; left: 0; right: 2px; bottom: 2px; height: 6px; border-radius: 6px; background: rgba(195, 154, 85, 0.22); z-index: -1; }
.hero.tea-hero p.lead { color: var(--ink-2); max-width: 640px; }
.hero.tea-hero .hero-search input { background: rgba(255, 253, 247, 0.95); color: var(--ink); border-color: var(--line); }
.hero.tea-hero .hero-search input::placeholder { color: var(--muted); }
.hero.tea-hero .hero-search .btn { height: 50px; border-radius: 12px; background: linear-gradient(135deg, #6e8f70, #4f6a57); border-color: #4f6a57; color: #fffaf0; }
.hero.tea-hero .hot-terms { color: var(--muted); }
.hero.tea-hero .hot-link { color: var(--ink-2); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.hero-tags span { font-size: 11.5px; color: var(--green); background: rgba(230, 239, 228, 0.8); border: 1px solid rgba(110, 143, 112, 0.22); border-radius: 999px; padding: 3px 9px; }
.tea-stage { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.tea-card {
  width: min(260px, 88%);
  background: rgba(255, 253, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 36px rgba(63, 90, 73, 0.16);
  transform: rotate(2.2deg);
  position: relative;
}
[data-theme="dark"] .tea-card { background: rgba(36, 49, 40, 0.96); }
.tea-card::before {
  content: ""; position: absolute; top: -9px; left: 26%; width: 48%; height: 18px;
  background: rgba(195, 154, 85, 0.24); border: 1px solid rgba(195, 154, 85, 0.18);
  transform: rotate(-2deg); border-radius: 3px;
}
.tea-card-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--green); }
.tea-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 85, 0.13); }
.donut {
  width: 148px; height: 148px; border-radius: 50%;
  margin: 13px auto 9px; position: relative;
  background: conic-gradient(#6e8f70 0 11.1%, #c39a55 11.1% 44.4%, #a65e63 44.4% 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(63, 90, 73, 0.10);
}
.donut::after { content: ""; position: absolute; inset: 19px; border-radius: 50%; background: var(--card); }
.donut-hole { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.donut-hole b { display: block; font-family: var(--serif); font-size: 33px; color: var(--ink); }
.donut-hole span { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.donut-legend { display: grid; gap: 4px; font-size: 11.5px; color: var(--ink-2); }
.donut-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.donut-legend .l1 { background: #6e8f70; }
.donut-legend .l2 { background: #c39a55; }
.donut-legend .l3 { background: #a65e63; }
.tea-tag {
  position: absolute; right: 2px; bottom: 20px; transform: rotate(-3deg);
  background: var(--green); color: #fffaf0; font-size: 11px; letter-spacing: 0.04em;
  border-radius: 4px 10px 10px 10px; padding: 6px 10px; box-shadow: 0 6px 14px rgba(63, 90, 73, 0.2);
}
.tea-steam { position: absolute; top: 25px; right: 28%; display: flex; gap: 7px; opacity: 0.5; }
.tea-steam i { display: block; width: 8px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, transparent, rgba(110, 143, 112, 0.36)); filter: blur(2px); animation: steam 4.8s ease-in-out infinite; }
.tea-steam i:nth-child(2) { height: 46px; animation-delay: 0.7s; opacity: 0.75; }
.tea-steam i:nth-child(3) { height: 28px; animation-delay: 1.2s; }
@keyframes steam { 0%, 100% { transform: translateY(3px) scaleY(0.96); opacity: 0.25; } 50% { transform: translateY(-5px) scaleY(1.08); opacity: 0.55; } }
.tea-dashboard { display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; gap: 12px; margin-top: 16px; }
.tea-panel {
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line); border-radius: 17px;
  padding: 17px 18px 15px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .tea-panel { background: rgba(36, 49, 40, 0.9); }
.tea-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--green), var(--gold)); opacity: 0.65; }
.tea-panel h3 { margin: 2px 0 9px; font-family: var(--serif); font-size: 16.5px; color: var(--ink); }
.tp-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--green); }
.tea-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tea-check li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.8px; color: var(--ink-2); line-height: 1.6; }
.tea-check li::before { content: "✓"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; display: grid; place-items: center; margin-top: 2px; }
.tea-check b { color: var(--ink); }
.tea-steps { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.tea-steps span { background: var(--card-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.tea-steps b { color: var(--green); font-family: var(--mono); font-size: 10px; margin-right: 3px; }
.tea-note p { margin: 0 0 9px; font-size: 12.6px; line-height: 1.7; color: var(--ink-2); }
.tea-note a { font-size: 12px; color: var(--green); border-bottom: 1px dashed var(--green); }
.tea-quote { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(242, 230, 203, 0.36); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* 图表：拍立得 + 纸胶带 */
.link-fig {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 12px;
  box-shadow: 0 10px 26px rgba(63, 90, 73, 0.10);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .link-fig { background: #243128; }
.link-fig::before { content: ""; position: absolute; top: -7px; left: 34%; width: 32%; height: 14px; background: rgba(195, 154, 85, 0.22); border: 1px solid rgba(195, 154, 85, 0.12); transform: rotate(-1.5deg); border-radius: 2px; }
.link-fig:nth-child(even) { transform: rotate(0.35deg); }
.link-fig:hover { transform: translateY(-3px) rotate(0); box-shadow: 0 16px 34px rgba(63, 90, 73, 0.16); }
.link-fig img { border-radius: 9px; }
.link-fig figcaption { color: var(--muted); font-size: 11.5px; }
.paper-card, .exam-item { background: rgba(255, 253, 247, 0.86); }
[data-theme="dark"] .paper-card, [data-theme="dark"] .exam-item { background: rgba(36, 49, 40, 0.9); }
.paper-card summary, .exam-q { border-radius: 10px; }
table th { background: linear-gradient(135deg, #4f6a57, #6e8f70) !important; color: #fffaf0 !important; }
table tr:nth-child(even) td { background: rgba(251, 246, 233, 0.7); }
[data-theme="dark"] table tr:nth-child(even) td { background: rgba(42, 56, 46, 0.6); }
.plain-table th { background: linear-gradient(135deg, #4f6a57, #6e8f70); }
.about-card, .policy-aspect, .xi-card { border-radius: 15px; }
.site-foot { border-top: 1px dashed var(--line); color: var(--muted); }
.gold { color: var(--green); }

@media (max-width: 1050px) {
  .hero.tea-hero { grid-template-columns: 1fr; }
  .tea-stage { min-height: 250px; order: -1; }
  .tea-card { transform: rotate(1.2deg) scale(0.92); }
  .tea-dashboard { grid-template-columns: 1fr 1fr; }
  .tea-note { grid-column: span 2; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tea-ticker { font-size: 11.5px; padding: 7px 12px; }
  .tt-meta { display: none; }
  .tea-dashboard { grid-template-columns: 1fr; }
  .tea-note { grid-column: auto; }
  .hero.tea-hero { padding: 20px 18px; border-radius: 20px; overflow: hidden; }
  .tea-stage { min-height: 235px; }
  .tea-card { transform: none; width: min(240px, 92%); }
  .donut { width: 132px; height: 132px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .global-search { display: none; }
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .brand-text strong { font-size: 14.5px; }
  .tea-tag { right: -2px; }
}
/* 8 张数据卡：四列两行，避免孤卡 */
@media (min-width: 1051px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 交互联系图：默认核心联系，全部联系折叠 */
.lg-core { border-color: #4f6a57; }
.lg-ext { border-color: #c39a55; }
.graph-details { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.graph-details summary { cursor: pointer; font-size: 12.5px; color: var(--green); list-style: none; }
.graph-details summary::-webkit-details-marker { display: none; }
.graph-details summary::before { content: "▸ "; }
.graph-details[open] summary::before { content: "▾ "; }
.graph-details .link-graph { margin-top: 8px; }
.graph-details .graph-legend { margin-top: 6px; }
