html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { background: linear-gradient(180deg, var(--bg) 0%, #f7f9fc 100%); }
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(180deg, var(--bg) 0%, #0a1020 100%); }
}
html[data-theme="dark"] body { background: linear-gradient(180deg, var(--bg) 0%, #0a1020 100%); }
html[data-theme="light"] body { background: linear-gradient(180deg, var(--bg) 0%, #f7f9fc 100%); }
html[data-theme="black"] body,
html[data-theme="forest"] body,
html[data-theme="slate"] body,
html[data-theme="purple"] body { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%); }
html[data-theme="sepia"] body { background: linear-gradient(180deg, var(--bg) 0%, #f4eee1 100%); }
main { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }
/* 桌面端：给右侧设置面板留 240px，避免遮挡；窄屏还原。 */
@media (min-width: 1100px) {
  main { padding-right: 240px; }
}
header {
  margin-bottom: 32px;
  padding: 36px 36px 32px;
  border: 1px solid var(--header-border);
  border-radius: 22px;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  position: relative;
  overflow: hidden;
}
/* header 右上角装饰：主题色光晕 */
header::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--link) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
/* header 左下角装饰：浅色光晕 */
header::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #7c3aed 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
header h1 {
  margin-top: 0;
  font-size: 2rem;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in srgb, var(--link) 70%, var(--text)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
header p {
  color: var(--hero-text);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 0;
  max-width: 760px;
}
header .small {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
  color: var(--link);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
header .small::before {
  content: "✦";
  font-size: 0.9em;
}
nav { margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 12px; }
nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--nav-border); border-radius: 999px; text-decoration: none; color: var(--link); background: var(--nav-bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.card { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 16px; padding: 22px 22px 20px; box-shadow: var(--shadow); height: 100%; box-sizing: border-box; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; display: flex; flex-direction: column; gap: 8px; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); border-color: color-mix(in srgb, var(--link) 28%, var(--panel-border)); }
.card h2 { margin-top: 0; line-height: 1.35; font-size: 1.45rem; }
.card p { font-size: 0.96rem; }
.card a { text-decoration: none; }
.card .actions { margin-top: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.actions a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-text); text-decoration: none; font-size: 0.88rem; transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease; }
.actions a:hover { background: color-mix(in srgb, var(--link) 18%, var(--pill-bg)); color: var(--link-hover); transform: translateY(-1px); }

/* 紧凑型链接集合：用于「从 new/ 整合」等专题的 actions 行 */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--panel-border); }
.chip-row a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--panel-bg) 60%, transparent); border: 1px solid var(--panel-border); color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.14s ease; }
.chip-row a:hover { background: var(--pill-bg); color: var(--link-hover); border-color: color-mix(in srgb, var(--link) 30%, var(--panel-border)); transform: translateY(-1px); }
.chip-row .chip-label { padding-left: 4px; padding-right: 4px; color: var(--muted); font-size: 0.78rem; }

/* 顶部四把尺子总览图 */
.hero-figure {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}
.hero-figure object {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* 卡片化 SVG 配图 */
.card-figure {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-figure object {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  border-radius: 10px;
}

/* 内联图标统一风格：currentColor 继承文字色 */
.icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
.icon-lg { width: 1.6em; height: 1.6em; vertical-align: -0.3em; }

/* 分组标题：左侧色条 + 标题 + 副标题 */
.group { margin: 28px 0 8px; }
.group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0 4px;
}
.group-bar { width: 6px; height: 22px; border-radius: 3px; }
.group-title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.group-hint { color: var(--muted); font-size: 0.92rem; }

/* 分组标题旁的计数标签（如 4 步 / 7 个） */
.group-count {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.group-count::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; opacity: 0.65; }
.group.theme-1 .group-count { background: color-mix(in srgb, #2563eb 14%, var(--panel-bg)); color: #1d4ed8; }
.group.theme-2 .group-count { background: color-mix(in srgb, #7c3aed 14%, var(--panel-bg)); color: #7c3aed; }
.group.theme-3 .group-count { background: color-mix(in srgb, #ea580c 14%, var(--panel-bg)); color: #ea580c; }
.group.theme-4 .group-count { background: color-mix(in srgb, #059669 14%, var(--panel-bg)); color: #059669; }
.group.theme-5 .group-count { background: color-mix(in srgb, #b45309 14%, var(--panel-bg)); color: #b45309; }
.group.theme-6 .group-count { background: color-mix(in srgb, #4c1d95 14%, var(--panel-bg)); color: #4c1d95; }
/* 紫色补充专题计数 */
.supplement-section .group-count { background: color-mix(in srgb, #7c3aed 14%, var(--panel-bg)); color: #7c3aed; }

@media (max-width: 720px) {
  .group-hint { display: none; }
}

/* 四个分组主题色 */
.group.theme-1 .group-bar { background: linear-gradient(180deg, #2563eb, #06b6d4); }
.group.theme-2 .group-bar { background: linear-gradient(180deg, #7c3aed, #a855f7); }
.group.theme-3 .group-bar { background: linear-gradient(180deg, #ea580c, #f59e0b); }
.group.theme-4 .group-bar { background: linear-gradient(180deg, #059669, #10b981); }
/* 经典重述：六家主题色（古典金） */
.group.theme-5 .group-bar { background: linear-gradient(180deg, #b45309, #d97706); }
.group.theme-6 .group-bar { background: linear-gradient(180deg, #4c1d95, #7c3aed); }
.group.theme-5 .card-icon { background: linear-gradient(135deg, #b45309, #d97706); }
.group.theme-6 .card-icon { background: linear-gradient(135deg, #4c1d95, #7c3aed); }

/* 卡片：图标头 + 标题 + 描述 + 动作 */
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.card-icon svg { width: 22px; height: 22px; }
.card .small { color: var(--muted); font-size: 0.82rem; margin: 0; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.35; }
.card p { font-size: 0.95rem; margin: 0 0 4px; }

/* 主题色对应的卡片图标底色 */
.theme-1 .card-icon { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.theme-2 .card-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.theme-3 .card-icon { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.theme-4 .card-icon { background: linear-gradient(135deg, #059669, #10b981); }
/* 经典重述：古典金（儒家 / 法家 / 佛家共用一色，靠图标区分） */
.theme-5 .card-icon { background: linear-gradient(135deg, #b45309, #d97706); }

/* 子专题卡片：嵌套在主卡片里，视觉降级（更浅底色、更细描边） */
.card.card-subtopic {
  background: color-mix(in srgb, var(--panel-bg) 78%, var(--bg));
  border-style: dashed;
  padding: 16px 18px 14px;
  gap: 6px;
}
.card.card-subtopic:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06); }
.card.card-subtopic .card-head { margin-bottom: 4px; }
.card.card-subtopic .card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.18);
}
.card.card-subtopic .card-icon svg { width: 18px; height: 18px; color: #ffffff; }
.card.card-subtopic h3 { font-size: 1rem; }
.card.card-subtopic p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* 子专题 2×2 网格：用于「从 new/ 整合」这种「主卡 + 4 子专题」结构 */
.subtopic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .subtopic-grid { grid-template-columns: 1fr; }
}

/* ============== 应用与专题：左侧大 feature 卡 + 右侧两个子卡 ============== */
.apps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.apps-layout .card-subtopic {
  background: var(--panel-bg);
  border-style: solid;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.apps-layout .card-subtopic .actions { margin-top: auto; }
.apps-layout .card-subtopic:nth-child(2),
.apps-layout .card-subtopic:nth-child(3) { background: color-mix(in srgb, var(--panel-bg) 88%, var(--bg)); }
@media (max-width: 880px) {
  .apps-layout { grid-template-columns: 1fr; }
}

/* 突出卡：左侧公司治理主卡 */
.card.card-feature {
  background: linear-gradient(135deg,
    color-mix(in srgb, #ea580c 8%, var(--panel-bg)) 0%,
    var(--panel-bg) 70%);
  border: 1px solid color-mix(in srgb, #ea580c 28%, var(--panel-border));
  position: relative;
  overflow: hidden;
}
.card.card-feature::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #ea580c 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.card.card-feature .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(234, 88, 12, 0.22);
}
.card.card-feature .card-icon svg { width: 24px; height: 24px; color: #ffffff; }
.card.card-feature h3 { font-size: 1.2rem; }
.card.card-feature p { color: var(--text); opacity: 0.85; }
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.feature-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.feature-link:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, #ea580c 36%, var(--panel-border));
  background: color-mix(in srgb, #ea580c 6%, var(--panel-bg));
}
.feature-link .fl-num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-link .fl-text { flex: 1; font-weight: 600; }
.feature-link .fl-arrow {
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 0.14s ease, color 0.14s ease;
}
.feature-link:hover .fl-arrow {
  color: #ea580c;
  transform: translateX(2px);
}

/* ============== 工具与资源 2×2 网格 ============== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
  align-items: stretch;
}
@media (max-width: 720px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tools-grid .card-subtopic {
  background: color-mix(in srgb, var(--panel-bg) 88%, var(--bg));
  border-style: solid;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  position: relative;
  overflow: hidden;
}
.tools-grid .card-subtopic::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981);
  opacity: 0.7;
}
.tools-grid .card-subtopic:nth-child(2)::before { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.tools-grid .card-subtopic:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tools-grid .card-subtopic:nth-child(4)::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.tools-grid .card-subtopic .actions { margin-top: auto; }
.tools-grid .card-subtopic .card-icon {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.18);
}
.tools-extra {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, #059669 22%, var(--panel-border));
}
.tools-extra .chip-label { color: #059669; font-weight: 600; }

/* 经典重述：六家 3×2 网格，强调整体仪式感 */
.classics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .classics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .classics-grid { grid-template-columns: 1fr; }
}
.classics-grid .card {
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
}
.classics-grid .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #d97706);
  opacity: 0.75;
  transition: opacity 0.18s ease, height 0.18s ease;
}
.classics-grid .card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  padding: 4px 10px 4px 14px;
  border-bottom-left-radius: 12px;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
}
.classics-grid .card.cg-cn::after { content: "中国哲学"; }
.classics-grid .card.cg-west::after {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  content: "世界哲学";
}
/* 第二行卡：颜色略不同以分组（中三家 / 西三家） */
.classics-grid .card:nth-child(n+4)::before { background: linear-gradient(90deg, #4c1d95, #7c3aed); }

.classics-grid .card .card-head {
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.classics-grid .card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.classics-grid .card .actions { margin-top: auto; position: relative; z-index: 2; }
.classics-grid .card .card-icon {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.classics-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.14);
  border-color: color-mix(in srgb, #b45309 40%, var(--panel-border));
}
.classics-grid .card:nth-child(n+4):hover {
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.14);
  border-color: color-mix(in srgb, #4c1d95 40%, var(--panel-border));
}
.classics-grid .card:hover::before { opacity: 1; height: 4px; }
.classics-grid .card:hover .card-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.28);
}
.classics-grid .card:nth-child(n+4):hover .card-icon {
  box-shadow: 0 4px 10px rgba(76, 29, 149, 0.28);
}

/* 快速入口：6 个图标大按钮（替代顶部 nav） */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  color: var(--link);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }
.quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.quick-icon svg { width: 28px; height: 28px; }
.quick-card .quick-title { font-weight: 700; font-size: 1rem; }
.quick-card .quick-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

/* 快速入口 7 张卡的图标配色 */
.quick-card.q1 .quick-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); } /* 转发 */
.quick-card.q2 .quick-icon { background: linear-gradient(135deg, #06b6d4, #0ea5e9); } /* 超短 */
.quick-card.q3 .quick-icon { background: linear-gradient(135deg, #10b981, #34d399); } /* 通俗 */
.quick-card.q4 .quick-icon { background: linear-gradient(135deg, #2563eb, #6366f1); } /* 母本 */
.quick-card.q5 .quick-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); } /* 技术 */
.quick-card.q6 .quick-icon { background: linear-gradient(135deg, #db2777, #f43f5e); } /* 导航 */
.quick-card.q7 .quick-icon { background: linear-gradient(135deg, #0d9488, #14b8a6); } /* 故事 */

/* 链接颜色：变量缺失时使用主题蓝 */
:root { --link: #1d4ed8; }
html[data-theme="dark"] :root, html[data-theme="black"] :root, html[data-theme="forest"] :root,
html[data-theme="slate"] :root, html[data-theme="purple"] :root { --link: #93c5fd; }
html[data-theme="sepia"] :root { --link: #b45309; }

/* ============== v25 速览 banner ============== */
.highlight-banner {
  display: grid;
  grid-template-columns: 1.05fr 2.95fr;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--link) 24%, var(--panel-border));
  border-radius: 18px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--link) 8%, var(--panel-bg)) 0%,
      var(--panel-bg) 60%);
  box-shadow: var(--shadow);
}
.highlight-banner .hb-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px dashed var(--panel-border);
}
.highlight-banner .hb-eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.highlight-banner .hb-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.highlight-banner .hb-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.highlight-banner .hb-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}
.hb-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-bg) 70%, transparent);
  border: 1px solid var(--panel-border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.hb-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--link) 36%, var(--panel-border));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.hb-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 700;
}
.hb-item-head svg { color: var(--link); }
.hb-item-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .highlight-banner { grid-template-columns: 1fr; }
  .highlight-banner .hb-left { border-right: 0; border-bottom: 1px dashed var(--panel-border); padding: 0 0 12px; }
  .highlight-banner .hb-right { grid-template-columns: 1fr; }
}

/* ============== 本节目录（Page TOC）============== */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-bg) 60%, transparent);
}
.page-toc .toc-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  padding-right: 4px;
}
.page-toc .toc-label svg { color: var(--link); }
.page-toc a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.page-toc a:hover {
  background: var(--pill-bg);
  color: var(--link-hover);
  border-color: color-mix(in srgb, var(--link) 30%, var(--panel-border));
  transform: translateY(-1px);
}
.page-toc a .toc-num {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.page-toc a:hover .toc-num { color: var(--link-hover); }
.page-toc a.is-active {
  background: var(--pill-bg);
  color: var(--link-hover);
  border-color: color-mix(in srgb, var(--link) 36%, var(--panel-border));
  transform: translateY(-1px);
}
.page-toc a.is-active .toc-num { color: var(--link-hover); }
@media (max-width: 720px) {
  .page-toc { padding: 10px 12px; }
  .page-toc a { padding: 4px 9px; font-size: 0.8rem; }
}

/* ============== 推荐阅读路径 ============== */
.reading-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}
.rp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.rp-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: color-mix(in srgb, var(--link) 36%, var(--panel-border));
}
.rp-step .rp-num {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.rp-step .rp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-weight: 700;
  font-size: 0.95rem;
}
.rp-step .rp-head svg { color: var(--link); }
.rp-step .rp-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.rp-step .rp-time {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
/* 步骤之间的连接线（小屏隐藏） */
.rp-step::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-top: 2px solid color-mix(in srgb, var(--link) 40%, var(--panel-border));
  border-right: 2px solid color-mix(in srgb, var(--link) 40%, var(--panel-border));
  transform: translateY(-50%) rotate(45deg);
  background: transparent;
  pointer-events: none;
}
.rp-step:last-child::after { display: none; }
@media (max-width: 1080px) {
  .reading-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-step::after { display: none; }
}
@media (max-width: 540px) {
  .reading-path { grid-template-columns: 1fr; }
}

/* 步骤图标主题色：与快速入口保持一致 */
.rp-step.rp-1 .rp-head { color: #f59e0b; }
.rp-step.rp-1 .rp-head svg { color: #f59e0b; }
.rp-step.rp-2 .rp-head { color: #0ea5e9; }
.rp-step.rp-2 .rp-head svg { color: #0ea5e9; }
.rp-step.rp-3 .rp-head { color: #10b981; }
.rp-step.rp-3 .rp-head svg { color: #10b981; }
.rp-step.rp-4 .rp-head { color: #2563eb; }
.rp-step.rp-4 .rp-head svg { color: #2563eb; }

/* ============== section 锚点 ============== */
/* 让 anchor 跳转后不被 sticky / fixed 元素遮挡，留 16px 间隙。 */
:target { scroll-margin-top: 24px; }
section.group { scroll-margin-top: 24px; }

/* ============== 补充专题（v24 补丁）独立 section ============== */
.supplement-section {
  display: block;
  margin: 32px 0 12px;
  padding: 26px 24px 22px;
  border: 1px solid color-mix(in srgb, #7c3aed 28%, var(--panel-border));
  border-radius: 20px;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, #7c3aed 8%, var(--panel-bg)) 0%,
      var(--panel-bg) 70%);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
  position: relative;
  overflow: hidden;
}
/* 右上角装饰：紫色光晕 */
.supplement-section::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, #7c3aed 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.supplement-section .group-head { margin: 0 0 14px; padding: 0; }
.supplement-section .group-bar { background: linear-gradient(180deg, #7c3aed, #a855f7) !important; }
.supplement-section .intro {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  background: color-mix(in srgb, var(--panel-bg) 70%, transparent);
  border-left: 3px solid #7c3aed;
  padding: 10px 14px;
  border-radius: 6px;
}
.supplement-section .subtopic-grid { gap: 14px; }
.supplement-section .chip-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, #7c3aed 22%, var(--panel-border));
}
.supplement-section .chip-label { color: #7c3aed; font-weight: 600; }

/* 补充专题：主入口按钮高亮（"打开全部 27 个专题 →"） */
.supplement-section .chip-row a.chip-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}
.supplement-section .chip-row a.chip-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.supplement-section .chip-row a.chip-primary svg { color: #ffffff; }

/* 补充专题：分类小标题（认知 / 制度 / 方法） */
.supplement-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-bg) 60%, transparent);
  border: 1px dashed color-mix(in srgb, #7c3aed 22%, var(--panel-border));
}
.supplement-cats .sc-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-bg) 80%, transparent);
}
.supplement-cats .sc-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c3aed;
  font-size: 0.82rem;
  font-weight: 700;
}
.supplement-cats .sc-head svg { color: #7c3aed; }
.supplement-cats .sc-desc {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .supplement-cats { grid-template-columns: 1fr; }
}

/* 补充专题：子卡片等高 + 顶部色条 */
.supplement-section .subtopic-grid .card-subtopic {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 168px;
}
.supplement-section .subtopic-grid .card-subtopic::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  opacity: 0.7;
}
.supplement-section .subtopic-grid .card-subtopic:nth-child(2)::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(3)::before { background: linear-gradient(90deg, #db2777, #f472b6); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(4)::before { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(5)::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(6)::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(7)::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(8)::before { background: linear-gradient(90deg, #7c2d12, #ea580c); }
.supplement-section .subtopic-grid .card-subtopic:nth-child(9)::before { background: linear-gradient(90deg, #be123c, #fb7185); }
.supplement-section .subtopic-grid .card-subtopic .actions { margin-top: auto; }

/* ============== 通用 section divider ============== */
.section-divider {
  height: 1px;
  margin: 36px 8px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--link) 22%, var(--panel-border)) 50%,
    transparent 100%);
  border: 0;
}

/* ============== footer 增强 ============== */
footer.reading-footer {
  margin-top: 32px;
  padding: 18px 20px;
  border-top: 1px dashed var(--panel-border);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
footer.reading-footer a { color: var(--link); text-decoration: none; }
footer.reading-footer a:hover { color: var(--link-hover); text-decoration: underline; }
footer.reading-footer .ft-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
}
footer.reading-footer .ft-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-bg) 60%, transparent);
  border: 1px solid var(--panel-border);
}
