/* ==========================================================================
   51吃瓜轻量版 · 全站样式
   摄影档案风：灰白画布、统一 3:4 缩略图、编号角标与等宽数字
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量、重置、排版基准
   -------------------------------------------------------------------------- */

:root {
  --canvas: #F4F3F1;
  --paper: #FFFFFF;
  --ink: #1B1B19;
  --ink-soft: #6E6C67;
  --line: #D9D7D2;
  --accent: #2F4A47;
  --accent-soft: #E3E9E7;
  --code: #A5703C;
  --state-ongoing: #4C7A63;
  --state-done: #8A8781;
  --state-irregular: #A8865C;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --shell: 1120px;
  --read: 760px;
  --gap: 24px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 等宽数字：编目编号、话数、日期、取值 */
.entry-code,
.entry-progress,
.entry-meta,
.timeline-date,
.log-date,
.thumb-code,
.anchor-count,
.block-count,
.section-count,
.cell-mono,
.error-code,
.meta-item {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：页头、导航、主容器、面包屑、页标题区、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

/* --- 页头 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  font-size: 15px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  line-height: 1.5;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--canvas);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--paper);
  background: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- 主容器 --- */

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  padding-bottom: 0;
}

/* --- 面包屑 --- */

.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* --- 页标题区 --- */

.page-header {
  padding: 16px 0 0;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-hero {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-lead,
.page-lede {
  max-width: var(--read);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.page-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.page-meta a {
  color: var(--accent);
}

.page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.page-hero-text {
  flex: 1 1 420px;
  min-width: 280px;
}

.page-hero-media {
  flex: 0 0 260px;
  max-width: 260px;
  margin: 0;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.page-hero-media figcaption,
.figure-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.page-hero-figure {
  margin: 18px 0 0;
  max-width: 420px;
}

.page-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* --- 页脚 --- */

.site-footer {
  margin-top: 56px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-brand {
  margin: 0;
  color: var(--ink);
}

.footer-note {
  margin: 0;
}

/* --- 通用文本链接 --- */

.text-link {
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 1px;
}

.text-link:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover {
  background: #253B38;
  border-color: #253B38;
}

.btn-ghost {
  background: var(--paper);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   components · 通用组件：分区标题组、缩略图框、条目行、状态点、标签、表格、折叠
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.section-note,
.section-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.section-lead,
.section-intro {
  max-width: var(--read);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.section {
  padding: 34px 0 0;
}

.content-wrap {
  max-width: var(--read);
}

.content-narrow {
  max-width: 640px;
}

/* --- 统一缩略图框：3:4 比例 + 左上角编目编号角标 --- */

.thumb-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.thumb-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.thumb-code {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--code);
  border-radius: 4px;
}

/* --- 题材锚点标签 --- */

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--code);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.anchor-tag:hover {
  background: #FBF4EC;
  text-decoration: none;
}

.anchor-count {
  font-size: 12px;
  color: var(--ink-soft);
}

/* --- 条目行：编号 / 名称 / 题材 / 状态 / 话数与节奏 --- */

.entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1.6fr) 96px 108px minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}

.entry-code {
  font-size: 13px;
  color: var(--code);
}

.entry-name {
  color: var(--ink);
  font-weight: 600;
}

.entry-theme {
  color: var(--ink-soft);
}

.entry-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.entry-meta,
.entry-progress {
  font-size: 13px;
  color: var(--ink-soft);
}

.dot,
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--state-done);
}

.dot-ongoing,
.status-dot.dot-ongoing {
  background: var(--state-ongoing);
}

.dot-done,
.dot-completed,
.status-dot.dot-completed {
  background: var(--state-done);
}

.dot-paused {
  background: var(--state-done);
}

.dot-irregular,
.status-dot.dot-irregular {
  background: var(--state-irregular);
}

/* --- 表格 --- */

.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.data-table {
  min-width: 560px;
  font-size: 14px;
}

.data-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 14px 0;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--canvas);
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* --- 问答折叠块 --- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.faq-question {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
  margin-left: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-answer {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--read);
}

/* --- 返回路径 / 相关内容 --- */

.return-nav,
.return-links,
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.related-links-label {
  color: var(--ink-soft);
  font-size: 13px;
}

.related-links-item {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* --- 首屏 --- */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-lead {
  max-width: 34em;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  margin: 0;
}

.hero-figure .thumb-frame img {
  aspect-ratio: 4 / 3;
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* --- 题材锚点条 --- */

.anchor-strip {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 30px 24px 8px;
}

.anchor-strip-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

/* --- 题材分区条目速览 --- */

.theme-preview {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.theme-block {
  margin-bottom: 34px;
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.block-head h3 {
  font-size: 17px;
  margin: 0;
}

.block-count {
  font-size: 13px;
  color: var(--ink-soft);
}

.preview-more {
  margin: 0 0 8px;
}

/* --- 字段释义卡组 --- */

.field-cards {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-card .field-name {
  font-size: 16px;
  margin: 0;
}

.field-card .field-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.field-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* --- 近期编目更新时间线 --- */

.recent-updates {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 106px 108px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}

.timeline-date {
  font-size: 13px;
  color: var(--code);
}

.timeline-type {
  font-size: 13px;
  color: var(--accent);
}

.timeline-target {
  color: var(--ink);
}

.timeline-note {
  color: var(--ink-soft);
  font-size: 14px;
}

/* --- 题材图谱入口 --- */

.theme-gallery {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}

.gallery-card:hover {
  text-decoration: none;
}

.gallery-card:hover .gallery-name {
  color: var(--accent);
}

.gallery-name {
  font-size: 16px;
  margin: 0;
}

.gallery-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- 使用约定提示条 --- */

.notice-strip {
  max-width: var(--shell);
  margin: 44px auto 0;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-text {
  flex: 1 1 420px;
  min-width: 260px;
}

.notice-text h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.notice-text p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 作品编目
   -------------------------------------------------------------------------- */

.anchor-bar {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 16px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.theme-section {
  padding: 34px 0 0;
}

.theme-section .section-head {
  margin-bottom: 18px;
}

.theme-figure {
  margin: 0 0 18px;
  max-width: 320px;
}

.theme-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.theme-section .entry-row {
  grid-template-columns: 92px minmax(0, 1.6fr) 96px 108px minmax(0, 1fr);
}

/* --- 字段列说明 --- */

.field-columns {
  padding: 38px 0 0;
}

.field-columns .section-head {
  margin-bottom: 18px;
}

.field-column-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.field-column-item {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-column-name {
  font-size: 15px;
  margin: 0 0 6px;
}

.field-column-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- 连载状态图例 --- */

.status-legend {
  padding: 38px 0 0;
}

.status-legend .section-head {
  margin-bottom: 18px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.legend-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-name {
  font-size: 15px;
  font-weight: 600;
}

.legend-desc {
  margin: 0;
  flex: 1 1 100%;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 题材图谱
   -------------------------------------------------------------------------- */

.theme-summary .section-head,
.theme-detail .section-head,
.cross-find .section-head,
.merge-rules .section-head {
  margin-bottom: 18px;
}

.theme-detail .theme-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.theme-detail .theme-block:last-child {
  border-bottom: 0;
}

.theme-detail .thumb-frame {
  max-width: 220px;
}

.theme-name {
  font-size: 17px;
  margin: 0 0 8px;
}

.theme-def {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.theme-criteria {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  padding-left: 0;
}

.theme-criteria li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.theme-criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--code);
  border-radius: 50%;
}

.theme-link {
  margin: 0;
}

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cross-item {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cross-scene {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.cross-advice {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-item {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-name,
.rule-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.rule-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 字段说明
   -------------------------------------------------------------------------- */

.field-table {
  min-width: 520px;
}

.section-fields .field-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.section-fields .field-item:last-child {
  border-bottom: 0;
}

.field-def {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--ink);
}

.field-read {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.example-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.thumb-figure {
  margin: 0;
}

.thumb-figure .thumb-frame {
  display: block;
}

.thumb-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.example-title {
  font-size: 16px;
  margin: 0 0 10px;
}

.example-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.example-point {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.point-label {
  color: var(--ink);
  font-weight: 600;
}

.misread-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.misread-item {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--code);
  border-radius: var(--radius);
}

.misread-wrong {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.misread-right {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 更新记录
   -------------------------------------------------------------------------- */

.updates-summary .section-head,
.updates-log .section-head,
.revision-types .section-head {
  margin-bottom: 18px;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-text {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.summary-item .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.log-group {
  margin-bottom: 26px;
}

.log-month {
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.log-list {
  display: flex;
  flex-direction: column;
}

.log-row {
  display: grid;
  grid-template-columns: 106px 108px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: 12px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.log-date {
  font-size: 13px;
  color: var(--code);
}

.log-type {
  font-size: 13px;
  color: var(--accent);
}

.log-target {
  color: var(--ink);
}

.log-note {
  color: var(--ink-soft);
}

.revision-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.revision-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.revision-name {
  font-size: 16px;
  margin: 0 0 8px;
}

.revision-desc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.revision-desc:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · 纠错与引用
   -------------------------------------------------------------------------- */

.section-correction .section-head,
.section-citation .section-head,
.section-boundary .section-head,
.section-faq .section-head {
  margin-bottom: 18px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.flow-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-step {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
}

.flow-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.flow-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.boundary-item::before {
  content: "—";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--code);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--code);
}

.error-title {
  font-size: 26px;
  margin: 0 0 12px;
}

.error-text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   interaction · 轻量增强（不影响初始可见性）
   -------------------------------------------------------------------------- */

.theme-block:target .block-head,
.theme-section:target .section-head {
  background: var(--accent-soft);
  border-radius: var(--radius);
}

.theme-block:target .block-head h3,
.theme-section:target .section-head h2 {
  color: var(--accent);
}

.entry-row:hover {
  background: #FBFAF8;
}

.gallery-card .thumb-frame {
  transition: border-color 0.18s ease;
}

.gallery-card:hover .thumb-frame {
  border-color: var(--code);
}

.faq-question:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   responsive · 1080px / 820px / 560px
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    gap: 32px;
  }

  .card-grid,
  .gallery-grid,
  .summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-row,
  .theme-section .entry-row {
    grid-template-columns: 84px minmax(0, 1.4fr) 92px 108px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .inner-main {
    padding: 0 18px 52px;
  }

  .page-title {
    font-size: 27px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 18px 36px;
    gap: 26px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .anchor-strip,
  .theme-preview,
  .field-cards,
  .recent-updates,
  .theme-gallery {
    padding-left: 18px;
    padding-right: 18px;
  }

  .notice-strip {
    padding: 22px 18px;
  }

  .anchor-bar {
    top: 64px;
    overflow-x: auto;
  }

  .anchor-list {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .anchor-tag {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* 条目行折叠为两行 */
  .entry-row,
  .theme-section .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px 12px;
  }

  .entry-code {
    grid-column: 1;
    grid-row: 1;
  }

  .entry-name {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
  }

  .entry-theme {
    grid-column: 1;
    grid-row: 3;
    font-size: 13px;
  }

  .entry-status {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .entry-meta,
  .entry-progress {
    grid-column: 2;
    grid-row: 2 / span 2;
    text-align: right;
    align-self: start;
  }

  .timeline-row,
  .log-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px 12px;
  }

  .timeline-date,
  .log-date {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-type,
  .log-type {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .timeline-target,
  .log-target {
    grid-column: 1 / -1;
    grid-row: 2;
    font-weight: 600;
  }

  .timeline-note,
  .log-note {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .theme-detail .theme-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .theme-detail .thumb-frame {
    max-width: 200px;
  }

  .theme-figure {
    max-width: 240px;
  }

  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero-media {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 18px 22px;
  }

  .footer-bottom {
    padding: 14px 18px 20px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .inner-main {
    padding: 0 16px 44px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-lead,
  .page-lede {
    font-size: 15px;
  }

  .section-head h2,
  .section-title {
    font-size: 20px;
  }

  .hero-inner {
    padding: 26px 16px 30px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .anchor-strip,
  .theme-preview,
  .field-cards,
  .recent-updates,
  .theme-gallery {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-grid,
  .gallery-grid,
  .summary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .notice-strip {
    padding: 20px 16px;
    margin-top: 34px;
  }

  .theme-detail .theme-block {
    padding: 18px 0;
  }

  .example-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .thumb-figure {
    max-width: 200px;
  }

  .data-table {
    min-width: 480px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 20px;
  }

  .footer-bottom {
    padding: 12px 16px 18px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-actions .btn {
    flex: 1 1 100%;
  }
}
