:root {
  --ink: #14131a;
  --ink-soft: #2b2933;
  --paper: #f7f4ee;
  --paper-raised: #fffdf8;
  --muted: #8b8794;
  --line: #ded8cc;
  --line-strong: #14131a;
  --accent: #f04e37;
  --accent-soft: rgba(240, 78, 55, 0.12);
  --cyan: #2fa8c9;
  --cyan-soft: rgba(47, 168, 201, 0.14);
  --radius: 6px;
  --radius-sm: 4px;
  --shell-max: 1120px;
  --pad: 32px;
  --header-h: 68px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --ink: #f2efe8;
  --ink-soft: #d8d3c8;
  --paper: #14131a;
  --paper-raised: #1d1b24;
  --muted: #9a95a3;
  --line: #322f3b;
  --line-strong: #f2efe8;
  --accent: #ff6a52;
  --accent-soft: rgba(255, 106, 82, 0.16);
  --cyan: #58c4e0;
  --cyan-soft: rgba(88, 196, 224, 0.16);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --ink: #f2efe8;
    --ink-soft: #d8d3c8;
    --paper: #14131a;
    --paper-raised: #1d1b24;
    --muted: #9a95a3;
    --line: #322f3b;
    --line-strong: #f2efe8;
    --accent: #ff6a52;
    --accent-soft: rgba(255, 106, 82, 0.16);
    --cyan: #58c4e0;
    --cyan-soft: rgba(88, 196, 224, 0.16);
  }
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(139, 135, 148, 0.28) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
}

h1 {
  font-size: 34px;
  font-weight: 800;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   layout — 全站外壳
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--line-strong);
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--accent);
  vertical-align: middle;
}

.main-nav {
  margin-left: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.site-nav a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.theme-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  position: relative;
}

.theme-toggle:hover {
  background: var(--accent-soft);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}

.theme-toggle .icon-sun {
  background: var(--accent);
}

.theme-toggle .icon-moon {
  background: var(--cyan);
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel nav {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 8px var(--pad) 16px;
}

.mobile-panel ul {
  display: flex;
  flex-direction: column;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-panel a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 24px var(--pad) 64px;
}

.home-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

.content-main,
.page-content,
.content-column,
.page-main-col {
  min-width: 0;
}

.content-side,
.page-aside,
.sidebar,
.page-side-col {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

/* ============================================================
   components — 通用元件
   ============================================================ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 8px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  border-left: 6px solid var(--accent);
  padding-left: 16px;
}

.page-head {
  margin-bottom: 26px;
}

.page-tag,
.page-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  margin-bottom: 12px;
}

.page-summary,
.page-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 42em;
  margin-top: 14px;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

ul.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

ul.page-meta li {
  position: relative;
}

ul.page-meta li + li::before {
  content: "/";
  margin-right: 20px;
  color: var(--line);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--line-strong);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 42em;
}

.section-note,
.section-intro {
  color: var(--muted);
  max-width: 42em;
  margin-bottom: 18px;
}

.section-more,
.section-link {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.section-more a,
.section-link a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.section-more a:hover,
.section-link a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--line-strong);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffdf8;
}

.btn-primary:hover {
  color: #fffdf8;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-raised);
}

.tag:hover {
  background: var(--cyan-soft);
  color: var(--ink);
}

/* 通用表格 */
.compare-table,
.data-table,
.term-table {
  font-size: 15px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table caption,
.data-table caption,
.term-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 12px 14px 0;
}

.compare-table th,
.compare-table td,
.data-table th,
.data-table td,
.term-table th,
.term-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th,
.data-table thead th,
.term-table thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent-soft);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.compare-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.term-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover,
.data-table tbody tr:hover,
.term-table tbody tr:hover {
  background: var(--cyan-soft);
}

.table-scroll,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 折叠问答 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-weight: 600;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--accent-soft);
}

.faq-item > p,
.faq-body {
  padding: 0 16px 16px;
  color: var(--ink-soft);
  max-width: 42em;
}

.faq-body p {
  margin-bottom: 10px;
}

/* 侧栏目录 */
.toc,
.side-toc,
.aside-nav,
.toc-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 18px;
}

.toc h2,
.side-toc h2,
.aside-title,
.side-title,
.toc-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc ul,
.side-toc ul,
.aside-nav ul,
.toc-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a,
.side-toc a,
.aside-nav a,
.toc-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px 4px 12px;
  border-left: 3px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.toc a:hover,
.side-toc a:hover,
.aside-nav a:hover,
.toc-nav a:hover {
  border-left-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.toc a.is-active,
.side-toc a.is-active,
.aside-nav a.is-active,
.toc-nav a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-note {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 18px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.aside-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* 图片与图注 */
.hero-figure,
.feature-figure,
.section-figure,
.guide-figure,
.feedback-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}

.hero-figure img,
.feature-figure img,
.section-figure img,
.guide-figure img,
.feedback-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.feature-figure figcaption,
.section-figure figcaption,
.guide-figure figcaption,
.feedback-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* 结论块 */
.conclusion-block {
  border-left: 4px solid var(--accent);
  padding: 4px 18px 4px 18px;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 相关入口 */
.related-links {
  margin-top: 40px;
  border-top: 2px solid var(--line-strong);
  padding-top: 20px;
}

.related-links h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.related-links ul,
.related-list,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.related-links a,
.related-list a,
.link-row a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.related-links a:hover,
.related-list a:hover,
.link-row a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 0;
  border-bottom: 2px solid var(--line-strong);
  margin-bottom: 48px;
}

.hero-wide {
  padding: 40px 40px 40px 0;
  border-right: 2px solid var(--line-strong);
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 16em;
}

.hero-lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 28px;
}

.hero-figure {
  max-width: 620px;
}

.hero-index {
  padding: 40px 0 40px 32px;
  min-width: 0;
}

.hero-index-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.index-list {
  display: flex;
  flex-direction: column;
}

.index-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.index-list a:hover {
  color: var(--cyan);
}

.index-list a span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  flex: 0 0 auto;
}

.home-main > section {
  margin-bottom: 56px;
}

.genre-strip .tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  color: var(--ink);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.cover-name {
  font-size: 16px;
  padding: 12px 14px 0;
}

.cover-genre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  padding: 6px 14px 0;
  margin: 0;
}

.cover-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 4px 14px 14px;
  margin: 0;
}

.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.update-row:hover {
  background: var(--cyan-soft);
}

.update-row img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.update-name {
  font-weight: 600;
}

.update-chapter,
.update-rhythm {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.rank-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rank-table {
  font-size: 15px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 12px 14px 0;
}

.rank-table th,
.rank-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rank-table thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--accent-soft);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-table tbody tr:hover {
  background: var(--cyan-soft);
}

.rank-table tbody td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  width: 56px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.topic-card h3 {
  font-size: 19px;
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.topic-level {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.topic-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.guide-main {
  min-width: 0;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 18px;
}

.guide-toc h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.guide-toc ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px 4px 12px;
  border-left: 3px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.guide-toc a:hover {
  border-left-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

/* ============================================================
   pages — 题材索引
   ============================================================ */

.genre-table,
.genre-groups,
.genre-bridge,
.genre-related {
  margin-bottom: 48px;
}

.genre-table h2,
.genre-groups h2,
.genre-bridge h2,
.genre-related h2 {
  margin-bottom: 12px;
}

.genre-group {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.genre-group:last-child {
  border-bottom: none;
}

.genre-group h3 {
  font-size: 20px;
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 10px;
}

.genre-group > p {
  color: var(--ink-soft);
  max-width: 42em;
  margin-bottom: 18px;
}

.work-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.work-card .work-name,
.work-card h3 {
  font-size: 16px;
}

.work-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.work-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.bridge-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.bridge-list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.bridge-from,
.bridge-to {
  font-weight: 600;
}

.bridge-arrow {
  font-family: var(--font-mono);
  color: var(--accent);
}

.bridge-list p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.related-links ul {
  list-style: none;
}

/* 题材标签配色 */
.tag-fantasy {
  border-color: var(--accent);
}

.tag-adventure {
  border-color: var(--cyan);
}

.tag-romance {
  border-color: var(--accent);
}

.tag-scifi {
  border-color: var(--cyan);
}

.tag-slice {
  border-color: var(--muted);
}

.tag-mystery {
  border-color: var(--line-strong);
}

/* ============================================================
   pages — 阅读榜单
   ============================================================ */

.feature-figure {
  margin-bottom: 32px;
}

.feature-figure img {
  aspect-ratio: 16 / 7;
}

.rank-basis,
.rank-table,
.rank-list,
.rank-conclusion {
  margin-bottom: 44px;
}

.rank-basis h2,
.rank-table h2,
.rank-list h2,
.rank-conclusion h2 {
  margin-bottom: 12px;
}

.rank-basis > p,
.rank-table > p,
.rank-list > p {
  color: var(--muted);
  max-width: 42em;
  margin-bottom: 18px;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.basis-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px;
}

.basis-card h3 {
  margin-bottom: 8px;
}

.basis-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

.work-row:hover {
  background: var(--cyan-soft);
}

.work-row img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.work-info {
  min-width: 0;
}

.work-info .work-name {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.work-info p,
.work-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.rank-no {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   pages — 更新记录
   ============================================================ */

.week-strip,
.update-list,
.rhythm-notes,
.irregular-faq,
.related-links {
  margin-bottom: 44px;
}

.week-strip h2,
.update-list h2,
.rhythm-notes h2,
.irregular-faq h2 {
  margin-bottom: 12px;
}

.week-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.week-col {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.week-col h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.week-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.week-col-irregular {
  border-top-color: var(--accent);
}

.update-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-rows .update-row {
  grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
}

.rhythm-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
}

.rhythm-list dt {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
}

.rhythm-list dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}

.rhythm-list dt:last-of-type,
.rhythm-list dd:last-of-type {
  border-bottom: none;
}

/* ============================================================
   pages — 阅读指引
   ============================================================ */

.read-steps,
.concept-faq,
.term-table-section,
.device-notes {
  margin-bottom: 44px;
}

.read-steps h2,
.concept-faq h2,
.term-table-section h2,
.device-notes h2 {
  margin-bottom: 12px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item .step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.step-item h3 {
  font-size: 17px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.step-item .step-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
}

.step-item .step-link a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.guide-figure {
  margin-bottom: 40px;
}

.guide-figure img {
  aspect-ratio: 16 / 9;
}

.term-table th:first-child,
.term-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.device-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.device-card h3 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.device-list li {
  padding-left: 16px;
  position: relative;
}

.device-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

/* ============================================================
   pages — 专题路径
   ============================================================ */

.path-intro,
.path-section,
.path-compare,
.path-crosslink {
  margin-bottom: 44px;
}

.path-intro h2,
.path-compare h2,
.path-crosslink h2 {
  margin-bottom: 12px;
}

.path-intro > p,
.path-compare > p,
.path-crosslink > p {
  color: var(--muted);
  max-width: 42em;
  margin-bottom: 18px;
}

.path-intro-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--cyan);
  padding-left: 18px;
  color: var(--ink-soft);
}

.path-head {
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.path-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.path-desc {
  color: var(--ink-soft);
  max-width: 42em;
  margin-top: 10px;
}

.path-block {
  margin-bottom: 26px;
}

.path-block h3 {
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.path-section .work-card {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.path-section .work-cover {
  flex: 0 0 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.path-section .work-cover img {
  width: 96px;
  height: 128px;
  object-fit: cover;
}

.path-section .work-body {
  min-width: 0;
}

.path-section .work-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.path-section .work-list {
  border-top: none;
}

.path-section .work-list .work-row {
  grid-template-columns: 56px minmax(0, 1fr);
}

.path-bridge {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
}

.path-bridge h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.path-bridge p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.crosslink-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.crosslink-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.crosslink-name {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.crosslink-list p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.crosslink-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}

.crosslink-more a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.crosslink-more a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ============================================================
   pages — 纠错标准
   ============================================================ */

.content-section {
  margin-bottom: 44px;
}

.content-section h2 {
  margin-bottom: 12px;
}

.content-section > p {
  color: var(--muted);
  max-width: 42em;
  margin-bottom: 18px;
}

.feedback-figure {
  margin-bottom: 22px;
}

.feedback-figure img {
  aspect-ratio: 16 / 7;
}

.case-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.case-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.case-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.case-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.rule-list {
  counter-reset: rule;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  counter-increment: rule;
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 46px;
}

.rule-item::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.rule-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.rule-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
}

.cross-links {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.cross-links > p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 80px var(--pad) 100px;
}

.error-block {
  max-width: 620px;
  border-left: 6px solid var(--accent);
  padding-left: 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-text {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 16px 0 24px;
  max-width: 34em;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.error-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.error-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.error-cta a {
  display: inline-flex;
}

/* ============================================================
   layout — 页脚
   ============================================================ */

.site-footer {
  border-top: 2px solid var(--line-strong);
  background: var(--paper-raised);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 48px var(--pad) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.footer-bottom {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px var(--pad) 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --pad: 24px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-wide {
    padding-right: 28px;
  }

  .hero-index {
    padding-left: 24px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .topic-cards,
  .cover-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
    --header-h: 60px;
  }

  body.site-body {
    font-size: 15px;
    line-height: 1.8;
  }

  h1,
  .page-title {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 17px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .home-main {
    padding-bottom: 48px;
  }

  .inner-main {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 40px;
  }

  .hero-wide {
    padding: 26px 0 24px;
    border-right: none;
    border-bottom: 2px solid var(--line-strong);
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-index {
    padding: 24px 0 28px;
  }

  .home-main > section {
    margin-bottom: 44px;
  }

  .page-layout,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .content-side,
  .page-aside,
  .sidebar,
  .page-side-col,
  .guide-toc {
    position: static;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-name {
    font-size: 15px;
    padding: 10px 12px 0;
  }

  .cover-genre,
  .cover-status {
    padding-left: 12px;
    padding-right: 12px;
  }

  .update-row,
  .update-rows .update-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
  }

  .update-row img {
    width: 44px;
    height: 56px;
    grid-row: span 2;
  }

  .update-name {
    grid-column: 2;
    font-size: 15px;
  }

  .update-chapter {
    grid-column: 2;
  }

  .update-rhythm {
    grid-column: 2;
  }

  .week-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-table,
  .compare-table,
  .data-table,
  .term-table {
    font-size: 14px;
  }

  .rank-table th,
  .rank-table td,
  .compare-table th,
  .compare-table td,
  .data-table th,
  .data-table td,
  .term-table th,
  .term-table td {
    padding: 10px 12px;
  }

  .rhythm-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rhythm-list dt {
    padding: 14px 0 4px;
    border-bottom: none;
  }

  .rhythm-list dd {
    padding: 0 0 14px;
  }

  .bridge-list li {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .step-list,
  .device-grid,
  .basis-grid,
  .topic-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-section .work-card {
    flex-direction: column;
  }

  .path-section .work-cover {
    flex: 0 0 auto;
    width: 110px;
  }

  .path-section .work-cover img {
    width: 110px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .work-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 36px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .error-main {
    padding: 56px var(--pad) 72px;
  }

  .error-code {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card {
    transition: none;
  }

  .cover-card:hover {
    transform: none;
  }
}
