/* ============================================================
   51漫画 · 全站样式表
   研究报告风：纸张底色、章节编号、图表式结构
   ============================================================ */

/* ============================================================
   1. Base —— 变量、重置、全局基础
   ============================================================ */
:root {
  --paper: #F7F3EC;
  --ink: #1F2937;
  --accent: #C0392B;
  --accent-dark: #A93226;
  --blue: #2F6D8F;
  --blue-dark: #25586F;
  --bg-gray: #E9E4DA;
  --line: #D8D0C4;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.1);
  --radius: 8px;
  --radius-sm: 4px;
  --font-serif: SimSun, Songti SC, serif;
  --font-sans: PingFang SC, Microsoft YaHei, sans-serif;
  --container: 1200px;
  --header-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* 无障碍隐藏 */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   2. Layout —— 全站骨架、容器、页头、页脚
   ============================================================ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-list li a:hover {
  background: var(--bg-gray);
  color: var(--accent);
}

.site-nav .nav-list li a.is-current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(192, 57, 43, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-nav ul li,
.footer-info ul li {
  margin-bottom: 6px;
}

.footer-nav ul li a,
.footer-info ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav ul li a:hover,
.footer-info ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* 内页统一骨架 */
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
  width: 100%;
}

.breadcrumb {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.page-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #4B5563;
  max-width: 720px;
  margin-bottom: 0;
}

/* ============================================================
   3. Components —— 通用组件
   ============================================================ */

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-gray);
}

/* 章节标题 */
.section-heading {
  margin-bottom: 32px;
}

.chapter-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  color: #4B5563;
  max-width: 720px;
  margin-bottom: 0;
}

/* 卡片链接 */
.card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.card-link::after {
  content: " →";
}

/* FAQ 手风琴 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  color: #4B5563;
  margin-bottom: 0;
}

/* ============================================================
   4. Pages —— 首页
   ============================================================ */
.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 17px;
  color: #4B5563;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-gray);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.topic-tags {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 4px;
}

.topic-tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topic-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 章节通用 */
.chapter-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.chapter-section:last-child {
  border-bottom: none;
}

/* 站点结构介绍 */
.site-intro {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.intro-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intro-card h3 {
  margin-bottom: 8px;
}

.intro-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 12px;
}

/* 分类封面墙 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card figcaption {
  padding: 16px;
}

.category-card h3 {
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: #4B5563;
  margin-bottom: 8px;
}

/* 最新词条 */
.latest-entries {
  background: var(--white);
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry-item {
  border-bottom: 1px solid var(--line);
}

.entry-item:last-child {
  border-bottom: none;
}

.entry-link {
  display: block;
  padding: 16px 8px;
  transition: background 0.2s ease;
}

.entry-link:hover {
  background: var(--bg-gray);
}

.entry-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.entry-link:hover .entry-title {
  color: var(--accent);
}

.entry-desc {
  display: block;
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 4px;
}

.entry-meta {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
}

/* 编辑推荐 */
.editor-picks {
  background: var(--paper);
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pick-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: box-shadow 0.2s ease;
}

.pick-item:hover {
  box-shadow: var(--shadow-sm);
}

.pick-rank {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  min-width: 40px;
}

.pick-content h3 {
  margin-bottom: 4px;
}

.pick-content p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 4px;
}

/* 阅读指引 */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.guide-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.guide-step h3 {
  margin-bottom: 6px;
}

.guide-step p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

/* 反馈与说明入口 */
.feedback-entry {
  background: var(--white);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.entry-card h3 {
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 12px;
}

/* ============================================================
   5. Pages —— 漫画索引
   ============================================================ */
.index-overview {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.section-head h2 {
  margin-bottom: 6px;
}

.section-desc {
  color: #4B5563;
  margin-bottom: 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.overview-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.overview-item h3 {
  margin-bottom: 6px;
}

.overview-item p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

.overview-item a {
  font-size: 14px;
}

.index-groups {
  margin-bottom: 48px;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.group-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.group-head h3 {
  margin-bottom: 4px;
}

.group-head p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 12px;
}

.group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-links li a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
}

.group-links li a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.preview-cards {
  margin-bottom: 48px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.preview-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.preview-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.preview-body {
  padding: 16px;
}

.preview-body h3 {
  margin-bottom: 6px;
}

.preview-body p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

.preview-body a {
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
}

.related-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-card p:last-child {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

/* ============================================================
   6. Pages —— 题材词条
   ============================================================ */
.term-cards {
  margin-bottom: 48px;
}

.term-cards h2,
.relation-table h2,
.reading-entry h2 {
  margin-bottom: 8px;
}

.section-intro {
  color: #4B5563;
  margin-bottom: 24px;
  max-width: 720px;
}

.term-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  scroll-margin-top: 80px;
}

.term-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.term-card-body h3 {
  margin-bottom: 8px;
}

.term-card-body p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  background: var(--bg-gray);
  border-radius: 20px;
  color: var(--ink);
}

.relation-table {
  margin-bottom: 48px;
}

.table-wrapper {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-wrapper th,
.table-wrapper td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.table-wrapper th {
  background: var(--bg-gray);
  font-weight: 600;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.reading-entry {
  margin-bottom: 20px;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.entry-cards .entry-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.entry-cards .entry-card:hover {
  box-shadow: var(--shadow-sm);
}

.entry-cards .entry-card h3 {
  margin-bottom: 6px;
}

.entry-cards .entry-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.entry-links a {
  color: var(--blue);
}

/* ============================================================
   7. Pages —— 漫读基础（文章页）
   ============================================================ */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chapter-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}

.chapter-nav a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.article-body {
  max-width: 860px;
  margin-bottom: 48px;
}

.content-chapter {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.content-chapter h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.content-chapter p {
  color: #374151;
  margin-bottom: 12px;
}

.chapter-figure {
  margin: 20px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.chapter-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.chapter-figure figcaption {
  font-size: 13px;
  color: #6B7280;
  padding: 8px 4px 0;
}

.key-points {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}

.key-points h2 {
  margin-bottom: 16px;
}

.key-points ul {
  list-style: disc;
  padding-left: 20px;
}

.key-points ul li {
  font-size: 15px;
  color: #374151;
  margin-bottom: 8px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2 {
  margin-bottom: 16px;
}

.next-step {
  margin-bottom: 40px;
}

.next-step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.next-step-card h3 {
  margin-bottom: 4px;
}

.next-step-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

.text-link {
  font-size: 14px;
  font-weight: 500;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.related-links-item {
  font-size: 14px;
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
}

.related-links-item:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ============================================================
   8. Pages —— 专题路径
   ============================================================ */
.path-cards-section {
  margin-bottom: 48px;
}

.path-cards-section h2,
.path-steps-section h2,
.other-paths-section h2 {
  margin-bottom: 8px;
}

.path-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.path-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.path-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.path-card-body {
  padding: 20px;
}

.path-card-body h3 {
  margin-bottom: 4px;
}

.path-audience {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.path-desc {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 12px;
}

.path-link {
  font-size: 14px;
  font-weight: 500;
}

.path-steps-section {
  margin-bottom: 48px;
}

.path-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-step {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.path-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 4px;
}

.step-content a {
  font-size: 14px;
}

.other-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.other-path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.other-path-card h3 {
  margin-bottom: 6px;
}

.other-path-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 8px;
}

.other-path-card a {
  font-size: 14px;
}

.section-footnote {
  margin-top: 24px;
  font-size: 14px;
  color: #4B5563;
}

.section-footnote a {
  color: var(--blue);
}

/* ============================================================
   9. Pages —— 勘误反馈
   ============================================================ */
.feedback-flow {
  margin-bottom: 48px;
}

.feedback-flow h2 {
  margin-bottom: 8px;
}

.feedback-flow > p {
  color: #4B5563;
  margin-bottom: 16px;
}

.flow-figure {
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.flow-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.flow-figure figcaption {
  font-size: 13px;
  color: #6B7280;
  padding: 8px 4px 0;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.flow-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.flow-steps li h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-steps li h3::before {
  content: "0" counter(step);
  counter-increment: step;
  color: var(--accent);
  margin-right: 8px;
}

.flow-steps {
  counter-reset: step;
}

.flow-steps li p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.principles {
  margin-bottom: 48px;
}

.principles h2 {
  margin-bottom: 8px;
}

.principles > p {
  color: #4B5563;
  margin-bottom: 16px;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principles-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.principles-list li h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 4px;
}

.principles-list li p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.entry-links {
  margin-bottom: 20px;
}

.entry-links h2 {
  margin-bottom: 8px;
}

.entry-links > p {
  color: #4B5563;
  margin-bottom: 16px;
}

.entry-links .entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entry-links .entry-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.entry-links .entry-card:hover {
  box-shadow: var(--shadow-sm);
}

.entry-links .entry-card h3 {
  margin-bottom: 6px;
}

.entry-links .entry-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

/* ============================================================
   10. Pages —— 站点说明
   ============================================================ */
.about-text {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-bottom: 48px;
}

.about-copy h2 {
  margin-bottom: 12px;
}

.about-copy p {
  color: #374151;
  margin-bottom: 12px;
}

.about-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.about-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.about-figure figcaption {
  font-size: 13px;
  color: #6B7280;
  padding: 8px 4px 0;
}

.boundary-list {
  margin-bottom: 48px;
}

.boundary-list h2 {
  margin-bottom: 8px;
}

.boundary-list .section-desc {
  margin-bottom: 16px;
}

.boundary-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.boundary-items li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: #4B5563;
}

.update-method {
  margin-bottom: 48px;
}

.update-method h2 {
  margin-bottom: 8px;
}

.update-method .section-desc {
  margin-bottom: 16px;
}

.update-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.update-steps li h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  margin-bottom: 6px;
}

.update-steps li h3::before {
  content: "0" counter(step);
  counter-increment: step;
  color: var(--blue);
  margin-right: 8px;
}

.update-steps {
  counter-reset: step;
}

.update-steps li p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

.update-note {
  margin-top: 16px;
  font-size: 14px;
  color: #4B5563;
}

.update-note a {
  color: var(--blue);
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.link-card:hover {
  box-shadow: var(--shadow-sm);
}

.link-card h3 {
  margin-bottom: 6px;
}

.link-card p {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 0;
}

/* ============================================================
   11. Pages —— 404
   ============================================================ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  margin-bottom: 12px;
}

.error-desc {
  color: #4B5563;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   12. Responsive —— 响应式断点
   ============================================================ */

/* 平板 992px */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure img {
    height: 280px;
  }

  .intro-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .path-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .other-paths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .term-card {
    grid-template-columns: 220px 1fr;
  }

  .about-text {
    grid-template-columns: 1fr;
  }

  .about-figure img {
    height: 200px;
  }
}

/* 手机 768px */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 0;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav .nav-list li:last-child a {
    border-bottom: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .home-main {
    padding: 0 16px;
  }

  .hero-section {
    padding: 32px 0 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-figure img {
    height: 200px;
  }

  .topic-tags {
    gap: 6px;
  }

  .chapter-section {
    padding: 32px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card img {
    height: 200px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .term-card {
    grid-template-columns: 1fr;
  }

  .term-card-media img {
    height: 200px;
  }

  .entry-cards {
    grid-template-columns: 1fr;
  }

  .path-cards-grid {
    grid-template-columns: 1fr;
  }

  .path-steps-list {
    gap: 12px;
  }

  .path-step {
    flex-direction: column;
    gap: 12px;
  }

  .other-paths-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .entry-links .entry-grid {
    grid-template-columns: 1fr;
  }

  .boundary-items {
    grid-template-columns: 1fr;
  }

  .update-steps {
    grid-template-columns: 1fr;
  }

  .link-cards {
    grid-template-columns: 1fr;
  }

  .chapter-nav {
    gap: 6px;
  }

  .chapter-nav a {
    padding: 4px 10px;
    font-size: 13px;
  }

  .chapter-figure img {
    height: 180px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* 小屏 480px */
@media (max-width: 480px) {
  .brand-name {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .category-card img {
    height: 180px;
  }

  .pick-item {
    padding: 14px;
  }

  .pick-rank {
    font-size: 24px;
    min-width: 32px;
  }

  .flow-figure img {
    height: 160px;
  }

  .about-figure img {
    height: 160px;
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .faq-item summary {
    padding: 14px 16px;
    padding-right: 36px;
    font-size: 15px;
  }

  .faq-item p {
    padding: 0 16px 14px;
    font-size: 14px;
  }

  .error-panel {
    padding: 24px 16px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    text-align: center;
  }
}
