/* ============================================================
   译途 · 翻译学习全路径
   全局样式表
   ============================================================ */

:root {
  --ink: #3d4a43;
  --ink-soft: #55655d;
  --ink-mute: #87948c;
  --paper: #fbf9f3;
  --paper-deep: #f4f1e8;
  --card: #fffefa;
  --line: #e9e3d7;
  --line-strong: #d8cfc0;
  --accent: #5f8b76;
  --accent-soft: #9dbfab;
  --gold: #c4a468;
  --teal: #7fa3b5;
  --teal-soft: #a3c0cd;
  --rose: #d9a8a1;
  --surface: #fffefa;
  --surface-glass: rgba(255, 255, 255, .82);
  --tint-sage: #f1f7f2;
  --tint-rose: #fbf1ef;
  --tint-blue: #eff6f8;
  --tint-honey: #faf6ea;
  --thead-bg: #edf4ee;
  --thead-text: #4c6557;
  --code-bg: #2f3d35;
  --shadow-sm: 0 4px 16px rgba(96, 120, 108, .07);
  --shadow-md: 0 18px 44px -22px rgba(96, 120, 108, .32);
  --shadow-lg: 0 30px 70px -30px rgba(96, 120, 108, .42);
  --radius: 20px;
  --radius-sm: 14px;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 66px;
}

html[data-theme="dark"] {
  --ink: #e9e6da;
  --ink-soft: #d3d0c3;
  --ink-mute: #9aa89f;
  --paper: #1a211d;
  --paper-deep: #151b17;
  --card: #222b25;
  --line: #313c34;
  --line-strong: #445247;
  --accent: #a3c7b2;
  --accent-soft: #7fa793;
  --gold: #d6b87c;
  --teal: #9cbccb;
  --teal-soft: #7fa3b5;
  --rose: #d9b0aa;
  --surface: #222b25;
  --surface-glass: rgba(34, 43, 37, .86);
  --tint-sage: #253129;
  --tint-rose: #2e2726;
  --tint-blue: #232f34;
  --tint-honey: #2d2b23;
  --thead-bg: #2a362e;
  --thead-text: #dbe6dd;
  --code-bg: #1d2621;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .28);
  --shadow-md: 0 18px 44px -22px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .72);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(181, 138, 43, .07), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(22, 98, 90, .06), transparent 38%);
  background-attachment: fixed;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
a:hover { color: var(--accent-soft); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .38em; }
li::marker { color: var(--accent); }

strong { font-weight: 600; color: var(--ink); }
em { font-style: normal; color: var(--accent); }

code, .mono {
  font-family: var(--font-mono);
  font-size: .88em;
  background: rgba(157, 191, 171, .22);
  color: var(--accent);
  padding: .12em .42em;
  border-radius: 4px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.4rem 0;
}

::selection { background: rgba(168, 67, 31, .2); }

/* ---------- 布局 ---------- */
.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow { width: min(860px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: 76px 0; }
.section-sm { padding: 44px 0; }
.section-alt {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- 顶部进度条 ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width .1s linear;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 242, 233, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
html[data-theme="dark"] .site-header { background: rgba(16, 22, 29, .86); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--ink); }

.logo-seal {
  width: 37px; height: 37px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff8ee;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), var(--shadow-sm);
  line-height: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-family: var(--font-serif); font-size: 18px; letter-spacing: .1em; }
.logo-text small {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 9px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.hamburger { display: none; }

/* 移动端抽屉 */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px 20px;
  display: none;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; animation: slideDown .25s ease; }
.mobile-nav a {
  display: block;
  padding: 11px 6px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15.5px;
}
.mobile-nav a.active { color: var(--accent); font-weight: 600; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: "譯";
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(320px, 44vw, 620px);
  line-height: 1;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .5em;
}
.hero h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}
.hero .lede {
  font-size: 17.5px;
  color: var(--ink-mute);
  max-width: 34em;
  line-height: 1.9;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .22s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent); color: #fff8ee; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* 首页右侧路线卡 */
.route-stack { display: grid; gap: 10px; }
.route-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all .25s ease;
}
.route-item:hover {
  transform: translateX(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
}
.route-item .r-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .08em;
}
.route-item .r-title { font-family: var(--font-serif); font-size: 16.5px; font-weight: 600; }
.route-item .r-sub { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }
.route-item .r-arrow { color: var(--line-strong); font-size: 18px; }
.route-item:hover .r-arrow { color: var(--accent); }

/* 首页统计条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
}
.stat-strip .stat {
  background: var(--card);
  padding: 22px 24px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--accent);
  line-height: 1.2;
}
.stat span { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .04em; }

/* ---------- 页面 Hero（内页） ---------- */
.page-hero {
  padding: 58px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(181, 138, 43, .06), transparent 70%),
    var(--paper);
}
html[data-theme="dark"] .page-hero { background: linear-gradient(180deg, rgba(212, 172, 87, .06), transparent 70%), var(--paper); }
.breadcrumb {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: .35em;
}
.page-hero h1 em { color: var(--accent); }
.page-hero .lede {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 46em;
  margin-bottom: 22px;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--card);
  letter-spacing: .02em;
}
.pill.accent { border-color: var(--accent); color: var(--accent); background: rgba(168, 67, 31, .06); }
.pill.teal { border-color: var(--teal); color: var(--teal); background: rgba(22, 98, 90, .06); }

/* ---------- 文档布局 + 侧边目录 ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 90px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13.5px;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 14px;
  color: var(--ink-mute);
  border-left: 2px solid var(--line);
  text-decoration: none;
  line-height: 1.5;
  transition: all .2s ease;
}
.toc a:hover { color: var(--accent); text-decoration: none; border-left-color: var(--line-strong); }
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(168, 67, 31, .07), transparent);
}
.toc-sub { padding-left: 12px; font-size: 12.5px; }

.doc { min-width: 0; }

.doc-section { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.doc-section h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 0;
}
.doc-section h3 {
  font-size: 1.22rem;
  margin: 2em 0 .7em;
  padding-left: 13px;
  border-left: 3px solid var(--accent);
}
.doc-section h4 {
  font-size: 1.03rem;
  margin: 1.5em 0 .5em;
  color: var(--ink-soft);
}
.doc-section > p:first-of-type { margin-top: 1.2em; }
.lead-in { font-size: 16.5px; color: var(--ink-mute); }

/* ---------- 卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}
.card-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:hover::before { transform: scaleX(1); }

.card .c-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 9px;
  display: block;
}
.card h3, .card h4 {
  font-size: 1.1rem;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  color: var(--ink);
}
.card p { font-size: 14.5px; color: var(--ink-mute); line-height: 1.75; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { font-size: 14px; color: var(--ink-mute); margin-bottom: 0; padding-left: 1.15em; }
.card li { margin-bottom: .3em; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { text-decoration: none; color: inherit; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 时间线 ---------- */
.timeline {
  position: relative;
  margin: 28px 0 34px;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--paper);
}
.tl-item .tl-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .06em;
  display: block;
  margin-bottom: 4px;
}
.tl-item h4 { margin: 0 0 5px; font-size: 1.03rem; }
.tl-item p { font-size: 14.5px; color: var(--ink-mute); margin: 0; }

/* ---------- 学期 / 模块块 ---------- */
.sem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0 30px; }

.sem {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.sem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.sem-head b { font-family: var(--font-serif); font-size: 1.02rem; }
.sem-head span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .08em; }
.sem-body { padding: 18px 20px 20px; }
.sem-body ul { font-size: 14.2px; margin-bottom: 0; color: var(--ink-soft); }
.sem-body li { margin-bottom: .3em; }
.sem-body .hl { color: var(--accent); font-size: 12.5px; display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.2px;
  min-width: 560px;
}
thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-align: left;
  padding: 13px 16px;
  font-size: 13px;
  letter-spacing: .05em;
  white-space: nowrap;
}
html[data-theme="dark"] thead th { background: #1f2b36; color: var(--ink); }
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.65;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(181, 138, 43, .035); }
tbody tr:hover { background: rgba(168, 67, 31, .05); }
td b { color: var(--ink); }
table .nowrap { white-space: nowrap; }

/* ---------- 代码块 ---------- */
pre.code-block {
  margin: 18px 0 26px;
  padding: 18px 20px;
  background: #10161d;
  color: #d8e2ea;
  border: 1px solid #26333f;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.2px;
  line-height: 1.75;
  tab-size: 2;
}
pre.code-block code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
pre.code-block .cm { color: #7f9a8e; }
pre.code-block .st { color: #d9b06c; }

/* ---------- 提示框 ---------- */
.callout {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px 16px 20px;
  margin: 22px 0 28px;
  font-size: 14.8px;
  color: var(--ink-soft);
}
.callout b { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left-color: var(--teal); }
.callout.tip b { color: var(--teal); }
.callout.warn { border-left-color: var(--gold); }
.callout.warn b { color: var(--gold); }

/* ---------- 折叠面板 ---------- */
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
}
.acc summary {
  cursor: pointer;
  padding: 14px 20px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .2s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { background: rgba(157, 191, 171, .12); }
.acc-body { padding: 0 20px 18px; font-size: 14.6px; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: 14px; }
.acc-body p:last-child, .acc-body ul:last-child { margin-bottom: 0; }

/* ---------- 标签页 ---------- */
.tabs { margin: 26px 0 34px; }
.tab-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink-mute);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s ease;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; animation: fadeUp .3s ease; }
.tab-panel.active { display: block; }

/* ---------- 资源卡 ---------- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}
.res-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: all .22s ease;
}
.res-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
}
.res-card .res-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.res-card .res-name span:last-child { color: var(--accent); font-size: 13px; flex-shrink: 0; }
.res-card .res-desc { font-size: 13.2px; color: var(--ink-mute); line-height: 1.65; }
.res-card .res-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--gold); letter-spacing: .1em; margin-top: 7px; }

/* ---------- 筛选搜索 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 18px;
}
.filter-input {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 67, 31, .12); }
.filter-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty-hint { display: none; padding: 20px; text-align: center; color: var(--ink-mute); font-size: 14px; }
.empty-hint.show { display: block; }

/* ---------- 数字列表（带编号） ---------- */
.num-list { list-style: none; padding: 0; counter-reset: n; margin: 20px 0 28px; }
.num-list > li {
  counter-increment: n;
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.num-list > li:last-child { border-bottom: 0; }
.num-list > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .06em;
}
.num-list b { display: block; font-family: var(--font-serif); font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }

/* ---------- 双栏对比 ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 24px 0 30px;
}
.split > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.split h4 { margin-top: 0; }
.split ul { font-size: 14.3px; color: var(--ink-mute); margin-bottom: 0; }

/* ---------- 首页板块导航 ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.module {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: all .28s ease;
}
.module:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.module .m-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.module h3 { font-size: 1.3rem; margin-bottom: 8px; }
.module p { font-size: 14.3px; color: var(--ink-mute); margin-bottom: 14px; line-height: 1.75; }
.module .m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module .m-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-mute);
  border: 1px solid var(--line);
}
.module .m-bg {
  position: absolute;
  right: -8px; bottom: -22px;
  font-family: var(--font-serif);
  font-size: 100px;
  line-height: 1;
  color: var(--ink);
  opacity: .035;
  pointer-events: none;
}

/* ---------- 时间轴（首页总路线） ---------- */
.path-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 30px 0 10px;
}
.path-rail::before {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 21px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong), var(--line-strong) 5px, transparent 5px, transparent 10px);
}
.path-step { position: relative; text-align: center; padding: 0 10px; }
.path-step .p-dot {
  width: 42px; height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all .25s ease;
}
.path-step:hover .p-dot { background: var(--accent); color: #fff8ee; border-color: var(--accent); transform: scale(1.08); }
.path-step b { display: block; font-family: var(--font-serif); font-size: 15px; margin-bottom: 3px; }
.path-step span { font-size: 12px; color: var(--ink-mute); }
.path-step a { position: absolute; inset: 0; z-index: 2; }

/* ---------- 首页金句 ---------- */
.quote {
  position: relative;
  margin: 0;
  padding: 34px 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.quote::before {
  content: "“";
  position: absolute;
  top: -12px; left: 22px;
  font-family: Georgia, serif;
  font-size: 78px;
  color: var(--accent);
  opacity: .25;
  line-height: 1;
}
.quote footer {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #c8c2b6;
  padding: 54px 0 26px;
  margin-top: 20px;
}
html[data-theme="dark"] .site-footer { background: #0a0f14; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .logo-seal { background: var(--accent); }
.footer-brand b { font-family: var(--font-serif); font-size: 17px; color: #f4efe4; letter-spacing: .1em; }
.footer-desc { font-size: 13.5px; line-height: 1.8; color: #928d82; max-width: 26em; margin: 0; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7d786e;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #b6b0a4;
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: #e9a87f; text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12px;
  color: #7d786e;
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: #fff8ee; border-color: var(--accent); }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .nav a { padding: 8px 8px; font-size: 13.8px; }
  .doc-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 38px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 50px; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .path-rail { grid-template-columns: repeat(5, 1fr); }
  .path-step span { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15.8px; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); margin-top: 42px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .page-hero { padding: 40px 0 34px; }
  .quote { padding: 26px 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .doc-section { margin-bottom: 48px; }
  .path-rail { grid-template-columns: repeat(5, 1fr); }
  .path-step b { font-size: 12.5px; }
  .path-step .p-dot { width: 34px; height: 34px; font-size: 10.5px; }
  .path-rail::before { top: 17px; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .table-wrap { border-radius: var(--radius-sm); }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .progress-bar, .toc, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; padding: 0; }
  .card, .res-card, .sem { break-inside: avoid; }
}

/* ============================================================
   小清新文艺主题 · Fresh & Literary Theme
   柔和鼠尾草绿 + 奶油白 + 淡粉 / 雾蓝点缀
   ============================================================ */

/* ---------- 基底与排版 ---------- */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 6% 2%, rgba(164, 198, 178, .36), transparent 30%),
    radial-gradient(circle at 96% 10%, rgba(226, 180, 172, .20), transparent 28%),
    radial-gradient(circle at 82% 92%, rgba(156, 190, 208, .18), transparent 32%),
    radial-gradient(circle at 10% 76%, rgba(222, 205, 164, .16), transparent 30%);
  background-attachment: fixed;
  line-height: 1.95;
  letter-spacing: .01em;
}
html[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 6% 2%, rgba(94, 139, 116, .20), transparent 32%),
    radial-gradient(circle at 94% 8%, rgba(160, 110, 105, .12), transparent 30%),
    radial-gradient(circle at 82% 94%, rgba(90, 130, 150, .14), transparent 34%);
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: .03em; }
.hero h1, .page-hero h1 { font-weight: 600; letter-spacing: .02em; }
.hero h1 em, .page-hero h1 em {
  font-family: var(--font-kai);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 62%, rgba(217, 168, 161, .30) 62%, rgba(217, 168, 161, .30) 90%, transparent 90%);
}
.hero h1 em { display: block; width: fit-content; }
.page-hero h1 em { display: inline; }

::selection { background: rgba(157, 191, 171, .38); }

/* ---------- 页头 ---------- */
.site-header {
  background: rgba(251, 249, 243, .8);
  border-bottom: 1px dashed var(--line-strong);
  box-shadow: 0 3px 24px rgba(96, 120, 108, .05);
}
html[data-theme="dark"] .site-header { background: rgba(26, 33, 29, .84); }
.logo-seal {
  background: linear-gradient(145deg, #abcbba, #dcebe2);
  color: #3f5c4c;
  border-radius: 50%;
  font-family: var(--font-kai);
  box-shadow: 0 7px 16px -9px rgba(70, 105, 88, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
html[data-theme="dark"] .logo-seal {
  background: linear-gradient(145deg, #8fb8a4, #c6ded0);
  color: #2c4438;
}
.logo-text b { font-weight: 600; letter-spacing: .16em; }
.nav a { border-radius: 999px; color: var(--ink-soft); }
.nav a::after { display: none; }
.nav a:hover { background: rgba(157, 191, 171, .14); color: var(--accent); }
.nav a.active { background: rgba(157, 191, 171, .20); color: var(--accent); font-weight: 600; }
.icon-btn {
  border-radius: 50%;
  border-color: var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--accent);
}
html[data-theme="dark"] .icon-btn { background: rgba(255, 255, 255, .05); }
.mobile-nav { background: var(--paper); border-bottom: 1px dashed var(--line-strong); }
.mobile-nav a { border-bottom: 1px dashed var(--line); }
.mobile-nav a.active { color: var(--accent); }

/* ---------- 首页 Hero ---------- */
.hero::before {
  font-family: var(--font-kai);
  color: var(--accent);
  opacity: .045;
}
.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(196, 164, 104, .16), rgba(197, 220, 206, .22) 46%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }
.kicker { color: var(--accent); letter-spacing: .22em; }
.kicker::before { background: linear-gradient(90deg, var(--accent), transparent); }
.hero .lede, .page-hero .lede { color: var(--ink-mute); }

.route-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(216, 207, 192, .7);
  backdrop-filter: blur(6px);
}
html[data-theme="dark"] .route-item { background: rgba(255, 255, 255, .035); }
.route-item:hover {
  transform: translateX(-6px) rotate(-.25deg);
  border-color: var(--accent-soft);
  box-shadow: 0 16px 34px -24px rgba(80, 110, 95, .55);
}
.route-item .r-arrow { color: var(--line-strong); }

.stat-strip {
  background: transparent;
  border: 0;
  overflow: visible;
  gap: 14px;
  margin-top: 62px;
}
.stat-strip .stat {
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.stat-strip .stat:nth-child(1) { background: var(--tint-sage); }
.stat-strip .stat:nth-child(2) { background: var(--tint-rose); }
.stat-strip .stat:nth-child(3) { background: var(--tint-blue); }
.stat-strip .stat:nth-child(4) { background: var(--tint-honey); }
.stat-strip .stat b { color: var(--accent); font-weight: 600; }
.stat-strip .stat span { color: var(--ink-mute); }

/* ---------- 按钮 ---------- */
.btn { border-radius: 999px; letter-spacing: .05em; }
.btn-primary {
  background: linear-gradient(135deg, #86ad99, #5f8b76);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(80, 120, 100, .85);
}
.btn-primary:hover { background: linear-gradient(135deg, #95baa6, #6d9a83); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line-strong);
  color: var(--accent);
}
html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-soft); color: var(--accent); }

/* ---------- 内页 Hero / 标签 ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(196, 220, 206, .28), rgba(251, 249, 243, 0) 74%);
  border-bottom: 1px dashed var(--line-strong);
}
html[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, rgba(94, 139, 116, .14), rgba(26, 33, 29, 0) 74%);
}
.breadcrumb { letter-spacing: .06em; }
.pill {
  background: rgba(255, 255, 255, .7);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(216, 207, 192, .6);
  border-radius: 999px;
}
html[data-theme="dark"] .pill { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); }
.pill.accent { background: var(--tint-rose); color: #b47a72; box-shadow: none; }
.pill.teal { background: var(--tint-blue); color: #6d90a2; box-shadow: none; }

/* ---------- 侧边目录 / 章节标题 ---------- */
.toc a { border-left: 2px solid transparent; border-radius: 0 10px 10px 0; }
.toc a:hover { background: rgba(157, 191, 171, .12); border-left-color: var(--accent-soft); color: var(--accent); }
.toc a.active {
  background: linear-gradient(90deg, rgba(157, 191, 171, .24), transparent);
  border-left-color: var(--accent);
  color: var(--accent);
}
.section-head { border-bottom: 1px dashed var(--line-strong); }
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #a9c9b7, #e8c6c0);
}
.doc-section h3 {
  border-left: 3px solid var(--accent-soft);
  border-radius: 2px;
  padding-left: 14px;
}
.doc-section .section-head .num { color: var(--gold); }

/* ---------- 卡片 / 模块 ---------- */
.card {
  background: var(--surface-glass);
  border-color: #ece6da;
  border-radius: 20px;
  box-shadow: 0 8px 24px -18px rgba(96, 120, 108, .4);
}
.card::before {
  height: 3px;
  background: linear-gradient(90deg, #a9c9b7, #e8c6c0);
}
.card:nth-child(3n+2)::before { background: linear-gradient(90deg, #b9d4e0, #dce9ef); }
.card:nth-child(3n)::before { background: linear-gradient(90deg, #e8c6c0, #efddc7); }
.card:hover {
  border-color: #d9e5dc;
  box-shadow: 0 24px 44px -28px rgba(80, 110, 95, .55);
}
.card .c-tag { color: var(--gold); letter-spacing: .18em; }

.module { background: var(--surface-glass); border-radius: 20px; }
.module:hover { border-color: var(--accent-soft); box-shadow: 0 24px 44px -28px rgba(80, 110, 95, .5); }
.module .m-index { color: var(--gold); }
.module .m-tag { background: var(--tint-sage); border-color: #e3eadf; color: var(--ink-mute); }
.module .m-bg { color: var(--accent); opacity: .06; font-family: var(--font-kai); }

.sem { border-radius: 18px; background: var(--surface); border-color: #ece6da; }
.sem-head { background: var(--tint-sage); border-bottom: 1px dashed var(--line); }
.sem-head span { color: var(--ink-mute); }

.path-rail::before {
  background: repeating-linear-gradient(90deg, #d9e4da 0 4px, transparent 4px 10px);
}
.path-step .p-dot {
  background: var(--surface);
  border-color: #d9e4da;
  color: var(--accent);
  box-shadow: 0 8px 16px -12px rgba(80, 110, 95, .5);
}
.path-step:hover .p-dot {
  background: linear-gradient(135deg, #a9c9b7, #7fa793);
  color: #fff;
  border-color: transparent;
}

/* ---------- 时间线 ---------- */
.timeline::before {
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent-soft) 0 6px, transparent 6px 12px);
}
.tl-item::before {
  background: var(--surface);
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(169, 201, 183, .22);
}
.tl-item .tl-time { color: var(--gold); }
.tl-item h4 { font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap {
  border-color: #ece6da;
  border-radius: 18px;
  box-shadow: 0 12px 30px -28px rgba(96, 120, 108, .55);
}
thead th {
  background: var(--thead-bg);
  color: var(--thead-text);
  border-bottom: 1px solid #dfe8df;
  font-weight: 600;
  letter-spacing: .06em;
}
html[data-theme="dark"] thead th { background: var(--thead-bg); color: var(--thead-text); border-bottom-color: var(--line); }
tbody td { border-bottom: 1px dashed #eee8dd; }
html[data-theme="dark"] tbody td { border-bottom-color: var(--line); }
tbody tr:nth-child(even) { background: rgba(169, 201, 183, .07); }
tbody tr:hover { background: rgba(232, 198, 192, .12); }

/* ---------- 提示框 ---------- */
.callout {
  background: #f7faf6;
  border: 1px solid #e3ece4;
  border-left: 4px solid var(--accent-soft);
  border-radius: 14px;
}
html[data-theme="dark"] .callout { background: var(--tint-sage); border-color: var(--line); border-left-color: var(--accent-soft); }
.callout.tip { background: #f1f8f4; border-color: #dfece3; border-left-color: #9cc4ae; }
html[data-theme="dark"] .callout.tip { background: var(--tint-sage); border-color: var(--line); }
.callout.warn { background: #fdf7ec; border-color: #f0e5cf; border-left-color: #e3c895; }
html[data-theme="dark"] .callout.warn { background: var(--tint-honey); border-color: var(--line); }
.callout b { font-weight: 600; }

/* ---------- 折叠 / 标签页 ---------- */
.acc { border-color: #ece6da; border-radius: 16px; background: var(--surface-glass); }
.acc summary { border-radius: 16px; }
.acc[open] { box-shadow: 0 16px 32px -26px rgba(96, 120, 108, .55); }
.acc summary::after { color: var(--accent-soft); }
.acc-body { border-top: 1px dashed var(--line); }
.tab-btn { border-radius: 10px 10px 0 0; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent-soft); }

/* ---------- 资源卡 / 筛选 ---------- */
.res-card {
  background: var(--surface-glass);
  border-color: #ece6da;
  border-radius: 16px;
}
.res-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 18px 34px -26px rgba(80, 110, 95, .55);
}
.res-card .res-meta { color: var(--gold); }
.filter-input {
  background: rgba(255, 255, 255, .8);
  border-color: var(--line-strong);
}
html[data-theme="dark"] .filter-input { background: rgba(255, 255, 255, .04); }
.filter-input:focus { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(157, 191, 171, .2); }
.filter-chip { background: rgba(255, 255, 255, .7); border-color: #e5ded1; }
html[data-theme="dark"] .filter-chip { background: rgba(255, 255, 255, .04); }
.filter-chip.active {
  background: linear-gradient(135deg, #8db3a0, #6c967f);
  border-color: transparent;
  color: #fff;
}

/* ---------- 其他组件 ---------- */
.split > div { background: var(--surface-glass); border-color: #ece6da; border-radius: 18px; }
.num-list > li::before { color: var(--gold); }
.num-list > li { border-bottom: 1px dashed var(--line); }
.quote {
  background: linear-gradient(135deg, #fdf7f5, #f7faf6);
  border-color: #efe5dd;
  border-radius: 22px;
  box-shadow: 0 20px 44px -34px rgba(120, 100, 90, .45);
  font-family: var(--font-kai);
}
html[data-theme="dark"] .quote {
  background: linear-gradient(135deg, var(--tint-rose), var(--tint-sage));
  border-color: var(--line);
}
.quote::before { color: var(--rose); opacity: .5; }
.quote footer { font-family: var(--font-sans); }
.back-to-top {
  background: var(--surface-glass);
  border-color: var(--line);
  color: var(--accent);
  box-shadow: 0 10px 24px -18px rgba(80, 110, 95, .6);
}
.back-to-top:hover {
  background: linear-gradient(135deg, #8db3a0, #6c967f);
  color: #fff;
  border-color: transparent;
}

/* ---------- 代码块 ---------- */
pre.code-block {
  background: var(--code-bg);
  border-color: #3c4d42;
  color: #e4ece5;
  border-radius: 16px;
  box-shadow: 0 18px 34px -30px rgba(40, 60, 50, .65);
}
pre.code-block .cm { color: #95b3a2; }
pre.code-block .st { color: #e8cfa0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #43594d, #374a40);
  color: #c2d0c5;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .site-footer { background: #121815; }
.footer-brand .logo-seal {
  background: linear-gradient(145deg, #a9c9b7, #dbe8df);
  color: #3f5c4c;
}
.footer-brand b { color: #f6f2e7; }
.footer-desc { color: #b3c3b8; }
.footer-col h5 { color: #9fb2a5; }
.footer-col a { color: #c2d0c5; }
.footer-col a:hover { color: #f0cfc7; }
.footer-bottom { color: #93a69a; border-top: 1px dashed rgba(255, 255, 255, .12); }
.footer-grid { border-bottom: 1px dashed rgba(255, 255, 255, .14); }

/* ---------- 细节动效 ---------- */
a { text-underline-offset: 4px; }
.card-more { letter-spacing: .03em; }
.card-more:hover { gap: 9px; }
