/* ==========================================================================
   韩漫屋漫画下载 · 全站样式
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1f2d3a;
  --coral: #b84a35;
  --coral-dark: #9a3a28;
  --slate: #4d6b73;
  --line: #dcd2c1;
  --line-soft: #e8e0d3;
  --green: #2f6b52;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 45, 58, 0.05);
  --shadow-hover: 0 4px 14px rgba(31, 45, 58, 0.1);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --w-wide: 1180px;
  --w-read: 760px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--coral-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

dl,
dt,
dd {
  margin: 0;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  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-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--slate);
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-menu-trigger:hover {
  color: var(--coral);
  background-color: rgba(184, 74, 53, 0.07);
}

.nav-item > a.is-current,
.nav-item.is-current > a {
  color: var(--coral);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--coral);
}

.nav-menu-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-menu-trigger[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 6px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: none;
}

.nav-submenu.is-open {
  display: block;
}

.nav-submenu li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  line-height: 24px;
}

.nav-submenu li a:hover,
.nav-submenu li a:focus-visible {
  background-color: var(--paper);
  color: var(--coral);
}

/* 移动汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 1px;
}

/* 主内容 */
.site-main {
  display: block;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  padding-top: 32px;
}

.inner-main {
  padding-top: 20px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--w-wide);
  margin: 0 auto 14px;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--slate);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--coral);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  max-width: var(--w-wide);
  margin: 0 auto 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

/* 通用内容容器 */
.container {
  max-width: var(--w-wide);
  margin: 0 auto;
}

.page-shell {
  max-width: var(--w-wide);
  margin: 0 auto;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 44px 24px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.footer-slogan {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--coral);
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.footer-nav li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

.footer-nav li a:hover,
.footer-nav li a:focus-visible {
  color: var(--coral);
}

.footer-about p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-color: var(--coral);
  border-color: var(--coral);
  color: #fffdf8;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
  color: #fffdf8;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--ink);
  color: var(--card);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--line);
  color: var(--slate);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--slate);
  color: var(--ink);
}

/* 文字链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
}

.text-link::after {
  content: "→";
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

/* 通用区块标题 */
.section-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.section-intro,
.section-note,
.section-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.section-head {
  margin-bottom: 20px;
}

.section-head .section-desc {
  margin-bottom: 0;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
  background-color: var(--paper);
}

.tag-genre {
  border-color: rgba(184, 74, 53, 0.4);
  color: var(--coral);
}

.tag-setting {
  border-color: rgba(77, 107, 115, 0.4);
  color: var(--slate);
}

.tag-reader {
  border-color: rgba(47, 107, 82, 0.4);
  color: var(--green);
}

.tag-shelf {
  border-color: var(--line);
  color: var(--ink);
}

/* 提示框 */
.note-box {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--card);
}

.note-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
}

.note-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.note-box-muted {
  border-left: 3px solid var(--slate);
}

.note-box-accent {
  border-left: 3px solid var(--green);
  background-color: rgba(47, 107, 82, 0.05);
}

/* 图片说明 */
figcaption,
.img-caption,
.figure-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

/* 关联卡片通用（内页多处复用，按父级限定） */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.related-card-title {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.related-card-title a {
  color: var(--ink);
}

.related-card-title a:hover,
.related-card-title a:focus-visible {
  color: var(--coral);
}

.related-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* FAQ 手风琴 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--coral);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line-soft);
}

.faq-answer {
  padding: 14px 18px 18px;
}

.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* ---------- 4.1 首页 ---------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: start;
  padding: 8px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.hero-lead h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.25;
  color: var(--ink);
}

.hero-desc {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--card);
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
}

.hero-tags li a:hover,
.hero-tags li a:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

.hero-visual {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 12px;
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
  background-color: var(--card);
}

.hero-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background-color: var(--card);
}

.hero-note-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.hero-note p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

/* 首屏三列内容带 */
.band-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.band-section .section-title {
  margin-bottom: 20px;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.band-col {
  min-width: 0;
}

.band-col-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

/* 题材封面墙 */
.cover-wall {
  display: grid;
  gap: 14px;
}

.cover-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.cover-card figure {
  margin: 0;
}

.cover-card figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cover-link {
  display: block;
  padding: 10px 12px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.cover-link:hover,
.cover-link:focus-visible {
  color: var(--coral);
}

.cover-desc {
  margin: 0;
  padding: 4px 12px 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
}

/* 最近更新观察 */
.update-brief-list {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line-soft);
}

.update-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.update-genre {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 24px;
  padding: 1px 9px;
  border: 1px solid rgba(184, 74, 53, 0.35);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--coral);
  white-space: nowrap;
}

.update-brief p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* 编辑推荐题材榜 */
.rank-list {
  counter-reset: rank;
  display: grid;
  gap: 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line-soft);
}

.rank-item {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rank-item::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
}

.rank-item a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.rank-item a:hover,
.rank-item a:focus-visible {
  color: var(--coral);
}

.rank-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--slate);
}

/* 题材图谱摘要 */
.genre-summary-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-col {
  min-width: 0;
}

.grid-col-wide {
  grid-column: span 1;
}

.grid-col-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.genre-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.genre-link-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.genre-link-list li:hover {
  border-color: var(--coral);
}

.genre-link-list a {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.genre-link-list a:hover,
.genre-link-list a:focus-visible {
  color: var(--coral);
}

.genre-link-list span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

.term-quick-list {
  display: grid;
  gap: 8px;
}

.term-quick-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  background-color: var(--card);
}

.term-quick-list a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.term-quick-list a:hover,
.term-quick-list a:focus-visible {
  color: var(--coral);
}

.term-quick-list span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate);
}

/* 新读者路径四步 */
.starter-steps-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 18px 16px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.step-card .step-num {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.step-card .step-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.step-card p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.step-card .step-check {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--green);
}

/* 术语词条目录 */
.term-directory-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.term-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 16px;
}

.term-category {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.term-category-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.term-link-list {
  display: grid;
  gap: 4px;
}

.term-link-list li a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

.term-link-list li a:hover,
.term-link-list li a:focus-visible {
  color: var(--coral);
}

/* 专题书架 */
.shelf-section {
  padding: 40px 0;
}

.shelf-list {
  display: grid;
  gap: 16px;
}

.shelf-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.shelf-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.shelf-cover {
  margin: 0;
  min-width: 0;
}

.shelf-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shelf-body {
  min-width: 0;
  padding: 18px 20px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shelf-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}

.shelf-audience,
.shelf-genres {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.shelf-link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
}

.shelf-link:hover,
.shelf-link:focus-visible {
  color: var(--coral-dark);
}

/* 内容说明带 */
.notice-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 28px;
  margin-top: 8px;
  padding: 22px 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.notice-title {
  grid-column: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.notice-text {
  grid-column: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.notice-band .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* ---------- 4.2 题材图谱页 ---------- */

.page-intro {
  margin-bottom: 28px;
}

.page-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--coral);
}

.page-lead {
  margin: 0;
  max-width: var(--w-read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

.genre-legend {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-legend-text {
  min-width: 0;
}

.genre-legend-text h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

.genre-legend-text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.legend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.genre-legend-figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.genre-legend-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.genre-legend-figure figcaption {
  padding: 8px 12px;
  margin-top: 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.genre-grid-section {
  margin-bottom: 40px;
}

.genre-grid-section h2,
.genre-quickref h2,
.genre-related h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.genre-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.genre-card-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.genre-card-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
}

.genre-card-fields dt {
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.genre-card-fields dd {
  margin: 0;
  color: var(--ink);
}

.genre-card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
}

.genre-card-link:hover,
.genre-card-link:focus-visible {
  color: var(--coral-dark);
}

.genre-quickref {
  margin-bottom: 40px;
}

.quickref-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.quickref-col {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quickref-col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.quickref-list {
  display: grid;
  gap: 0;
}

.quickref-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
  line-height: 1.7;
}

.quickref-list li:last-child {
  border-bottom: 0;
}

.quickref-term {
  font-weight: 700;
  color: var(--ink);
}

.quickref-note {
  color: var(--slate);
}

.genre-related {
  margin-bottom: 8px;
}

.genre-related .related-grid {
  margin-top: 20px;
}

/* ---------- 4.3 更新速览页 ---------- */

.page-head {
  margin-bottom: 28px;
}

.page-head-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--coral);
}

.page-head-lead {
  margin: 0;
  max-width: var(--w-read);
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

.page-updates .page-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.section {
  margin-bottom: 36px;
}

.section:last-child {
  margin-bottom: 0;
}

.section > h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
}

.updates-table {
  min-width: 520px;
  font-size: 14px;
  line-height: 1.7;
}

.updates-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.updates-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  color: var(--slate);
  border-bottom: 1px solid var(--line-soft);
}

.updates-table tbody tr:last-child td {
  border-bottom: 0;
}

.updates-table tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.rhythm-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.rhythm-item {
  padding: 14px 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--radius);
}

.rhythm-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.rhythm-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.notes-section > h2 {
  margin-bottom: 16px;
}

.notes-section .note-box + .note-box {
  margin-top: 12px;
}

.related-section > h2 {
  margin-bottom: 16px;
}

.updates-aside {
  padding: 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.updates-aside > h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.aside-figure {
  margin: 0 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.aside-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aside-figure figcaption {
  padding: 8px 12px;
  margin-top: 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.aside-method-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.aside-method-list li {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-soft);
}

.aside-method-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-method-list h3 {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.aside-method-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.aside-link {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- 4.4 术语词典页 ---------- */

.page-glossary .page-hero,
.page-shelves .page-hero,
.page-corrections .page-hero {
  margin-bottom: 28px;
  padding: 20px 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--coral);
}

.page-lede {
  margin: 0;
  max-width: var(--w-read);
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate);
}

.glossary-layout {
  display: block;
}

.glossary-index {
  margin-bottom: 36px;
  padding: 20px 24px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glossary-index > h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

.glossary-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.glossary-index-col {
  min-width: 0;
}

.glossary-index-cat {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.glossary-index-list {
  display: grid;
  gap: 2px;
}

.glossary-index-list li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

.glossary-index-list li a:hover,
.glossary-index-list li a:focus-visible {
  color: var(--coral);
}

.glossary-cards {
  margin-bottom: 36px;
}

.glossary-cards > h2,
.glossary-compare > h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.glossary-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.glossary-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}

.glossary-card-media {
  margin: 0 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.glossary-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.glossary-card-media figcaption {
  padding: 6px 10px;
  margin-top: 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.glossary-card-term {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}

.glossary-card-def {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.glossary-card-scene {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.glossary-card-link {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.glossary-compare {
  margin-bottom: 32px;
}

.compare-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.compare-row + .compare-row {
  border-top: 1px solid var(--line-soft);
}

.compare-head {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.compare-cell {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  min-width: 0;
}

.compare-cell + .compare-cell {
  border-left: 1px solid var(--line-soft);
}

.compare-head .compare-cell {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.compare-row:not(.compare-head) .compare-cell:first-child {
  font-weight: 700;
  color: var(--ink);
}

.correction-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 22px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.correction-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.glossary-aside {
  display: none;
}

.aside-link-list {
  display: grid;
  gap: 4px;
}

.aside-link-list li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

.aside-link-list li a:hover,
.aside-link-list li a:focus-visible {
  color: var(--coral);
}

/* ---------- 4.5 专题书架页 ---------- */

.shelf-list-section {
  margin-bottom: 40px;
}

.shelf-list-section .shelf-card {
  margin-bottom: 16px;
}

.shelf-list-section .shelf-card:last-child {
  margin-bottom: 0;
}

.shelf-list-section .shelf-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.shelf-list-section .shelf-cover {
  min-width: 0;
}

.shelf-list-section .shelf-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shelf-list-section .shelf-body {
  padding: 20px 22px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shelf-list-section .shelf-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}

.shelf-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.shelf-meta dt {
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.shelf-meta dd {
  margin: 0;
  color: var(--ink);
}

.shelf-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.shelf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.shelf-order-section {
  margin-bottom: 40px;
}

.shelf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.shelf-step {
  position: relative;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.shelf-step .step-no {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.shelf-step .step-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.shelf-step .step-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.shelf-related-section {
  margin-bottom: 40px;
}

.shelf-related-section .related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.related-item {
  min-width: 0;
}

.related-item > a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-item > a:hover,
.related-item > a:focus-visible {
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.related-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.related-desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--slate);
}

.shelf-next-section {
  margin-bottom: 8px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.next-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.next-link:hover,
.next-link:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- 4.6 新读者路径页 ---------- */

.page-title-block {
  margin-bottom: 32px;
  max-width: var(--w-read);
}

.path-overview {
  margin-bottom: 40px;
}

.path-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.path-fact {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius);
}

.path-fact-title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.path-fact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.path-fact-list {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.path-figure {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--card);
}

.path-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.path-figure figcaption {
  padding: 8px 14px;
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
}

.path-goals {
  margin-bottom: 40px;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.goal-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.goal-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.goal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.path-prepare {
  margin-bottom: 40px;
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 20px;
}

.prepare-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--radius);
}

.prepare-item-title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.prepare-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--slate);
}

.path-steps {
  margin-bottom: 40px;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  counter-reset: pathstep;
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
}

.step-body {
  min-width: 0;
}

.step-body .step-title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

.step-body p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.step-body .step-check {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--green);
}

.path-review {
  margin-bottom: 40px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 20px;
}

.review-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  background-color: rgba(47, 107, 82, 0.06);
  border: 1px solid rgba(47, 107, 82, 0.28);
  border-radius: var(--radius);
}

.review-status {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 24px;
  padding: 1px 9px;
  border-radius: 999px;
  background-color: var(--green);
  font-size: 12px;
  line-height: 1.5;
  color: #fffdf8;
  white-space: nowrap;
}

.review-body {
  min-width: 0;
}

.review-title {
  margin: 0 0 3px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.review-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.path-related {
  margin-bottom: 8px;
}

.path-related .related-grid {
  margin-top: 20px;
}

/* ---------- 4.7 纠错与说明页 ---------- */

.correction-scope {
  margin-bottom: 36px;
}

.correction-scope > h2,
.correction-exclude > h2,
.correction-faq > h2,
.related-entry > h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.scope-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 8px 12px;
  margin-top: 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.scope-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.scope-col-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.scope-list {
  display: grid;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--coral);
}

.correction-exclude {
  margin-bottom: 36px;
}

.notice-box {
  padding: 20px 22px;
  background-color: rgba(184, 74, 53, 0.06);
  border: 1px solid rgba(184, 74, 53, 0.3);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
}

.notice-box .notice-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.notice-list {
  display: grid;
  gap: 8px;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.notice-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--coral);
}

.correction-faq {
  margin-bottom: 36px;
}

.related-entry {
  margin-bottom: 8px;
}

/* ---------- 4.8 404 页 ---------- */

.site-error .site-main {
  padding-top: 40px;
}

.error-panel {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--line);
}

.error-inner {
  max-width: 640px;
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.error-title {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
  color: var(--ink);
}

.error-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--slate);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-guide {
  padding: 36px 0 8px;
}

.error-guide-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

.error-guide-text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.error-links li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.error-links li a:hover,
.error-links li a:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .header-inner,
  .footer-inner,
  .site-main,
  .breadcrumb,
  .page-header,
  .footer-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-item > a,
  .nav-menu-trigger {
    padding: 8px 9px;
    font-size: 14px;
  }

  .hero-section {
    gap: 32px;
  }

  .band-grid {
    gap: 22px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .page-updates .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 8px 20px 16px;
    background-color: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item > a,
  .nav-menu-trigger {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 15px;
  }

  .nav-menu-trigger::after {
    margin-left: auto;
  }

  .nav-item > a.is-current,
  .nav-item.is-current > a {
    box-shadow: inset 3px 0 0 var(--coral);
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    margin: 2px 0 6px;
    box-shadow: none;
    border-color: var(--line-soft);
    background-color: var(--paper);
  }

  .nav-submenu.is-open {
    display: block;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 32px;
  }

  .hero-lead h1 {
    font-size: 32px;
  }

  .hero-desc {
    max-width: none;
  }

  .band-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .cover-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .grid-col-wide {
    grid-column: 1 / -1;
  }

  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .shelf-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .notice-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-band .btn {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .page-title {
    font-size: 34px;
  }

  .page-layout,
  .page-updates .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside {
    order: 2;
  }

  .genre-legend {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quickref-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .glossary-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .glossary-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-list-section .shelf-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .shelf-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .shelf-related-section .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .prepare-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-figure img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
    line-height: 1.75;
  }

  .header-inner,
  .footer-inner,
  .site-main,
  .breadcrumb,
  .page-header,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .site-nav {
    padding: 6px 16px 14px;
  }

  .site-main {
    padding-bottom: 48px;
  }

  .home-main {
    padding-top: 24px;
  }

  .inner-main {
    padding-top: 14px;
  }

  .breadcrumb {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .page-header {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 30px;
    line-height: 1.3;
  }

  .section-title,
  .genre-grid-section h2,
  .genre-quickref h2,
  .genre-related h2,
  .glossary-cards > h2,
  .glossary-compare > h2,
  .correction-scope > h2,
  .correction-exclude > h2,
  .correction-faq > h2,
  .related-entry > h2,
  .error-guide-title,
  .section > h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero-section {
    padding-top: 0;
    padding-bottom: 26px;
  }

  .hero-lead h1 {
    font-size: 28px;
    line-height: 1.32;
  }

  .hero-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 132px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero-tags li a {
    min-height: 36px;
    font-size: 13px;
  }

  .hero-visual {
    gap: 14px;
  }

  .hero-note {
    padding: 14px 16px;
  }

  .band-section,
  .genre-summary-section,
  .starter-steps-section,
  .term-directory-section,
  .shelf-section {
    padding: 28px 0;
  }

  .band-col-title,
  .grid-col-title {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .cover-wall {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cover-card figure img {
    aspect-ratio: 16 / 9;
  }

  .update-brief {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-genre {
    justify-self: start;
  }

  .rank-item {
    padding: 10px 0;
  }

  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .term-category {
    padding: 14px 16px;
  }

  .shelf-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .shelf-card .shelf-cover img {
    aspect-ratio: 16 / 9;
  }

  .shelf-body {
    padding: 14px 16px 16px;
  }

  .shelf-title {
    font-size: 18px;
  }

  .notice-band {
    padding: 18px;
    gap: 8px;
  }

  .notice-title {
    font-size: 17px;
  }

  .notice-band .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav li a {
    padding: 6px 0;
    min-height: 32px;
  }

  .page-intro {
    margin-bottom: 22px;
  }

  .page-lead,
  .page-head-lead,
  .page-lede {
    font-size: 15px;
    line-height: 1.8;
  }

  .genre-legend {
    padding: 16px;
    gap: 16px;
    margin-bottom: 28px;
  }

  .genre-legend-text h2 {
    font-size: 20px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-card {
    padding: 16px;
  }

  .quickref-col {
    padding: 16px;
  }

  .quickref-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .page-glossary .page-hero,
  .page-shelves .page-hero,
  .page-corrections .page-hero {
    padding: 16px;
    margin-bottom: 22px;
  }

  .glossary-index {
    padding: 16px;
    margin-bottom: 28px;
  }

  .glossary-card {
    padding: 16px;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-cell + .compare-cell {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .compare-head {
    display: none;
  }

  .correction-banner {
    padding: 16px;
  }

  .correction-banner .text-link {
    min-height: 44px;
  }

  .shelf-list-section {
    margin-bottom: 28px;
  }

  .shelf-list-section .shelf-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .shelf-list-section .shelf-cover img {
    aspect-ratio: 16 / 9;
  }

  .shelf-list-section .shelf-body {
    padding: 14px 16px 16px;
  }

  .shelf-list-section .shelf-title {
    font-size: 18px;
  }

  .shelf-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .shelf-meta dt {
    margin-top: 6px;
  }

  .shelf-links {
    gap: 8px 16px;
  }

  .shelf-links .text-link {
    min-height: 40px;
  }

  .shelf-related-section .related-grid,
  .related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .path-figure img {
    aspect-ratio: 4 / 3;
  }

  .step-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-item .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .review-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .review-status {
    justify-self: start;
  }

  .scope-col {
    padding: 16px;
  }

  .notice-box {
    padding: 16px;
  }

  .error-title {
    font-size: 28px;
  }

  .error-panel {
    padding: 28px 0 26px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
    min-width: 132px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 12px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
