/* ==========================================================================
   吃瓜51网站 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #faf8f3;
  --ink: #1c1a17;
  --muted: #6f6860;
  --brick: #a83f2a;
  --teal: #2e5c56;
  --line: #ded7c9;
  --th-bg: #f0ece1;
  --radius: 2px;
  --maxw: 1120px;
  --gutter: 24px;
  --serif: Georgia, "Times New Roman", "Songti SC", STSong, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brick);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--brick);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link:hover {
  text-decoration: none;
}

.nav-link.is-current {
  font-weight: 700;
}

.nav-link.is-current::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 8px var(--gutter) 20px;
}

.nav-drawer[hidden] {
  display: none;
}

.drawer-nav {
  max-width: var(--maxw);
  margin: 0 auto;
}

.drawer-list {
  display: flex;
  flex-direction: column;
}

.drawer-list > li {
  border-bottom: 1px solid var(--line);
}

.drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}

.drawer-link:hover {
  text-decoration: none;
  color: var(--brick);
}

.drawer-link.is-current {
  font-weight: 700;
  color: var(--brick);
}

.drawer-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
}

.drawer-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.drawer-shortcut:hover {
  text-decoration: none;
  border-color: var(--brick);
  color: var(--brick);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--ink);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb-item a {
  color: var(--muted);
}

.breadcrumb-item a:hover {
  color: var(--brick);
}

.breadcrumb-item.is-current {
  color: var(--ink);
}

.page-header {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.page-head {
  padding: 20px 0 8px;
}

.page-lead,
.page-summary {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 46em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item + .meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 28px 0 8px;
}

.content-column,
.content-main,
.page-body,
.article-column {
  min-width: 0;
}

.content-column,
.content-main,
.page-body {
  max-width: 720px;
}

.page-aside,
.content-aside {
  min-width: 0;
  font-family: var(--sans);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.footer-mark:hover {
  text-decoration: none;
  color: var(--brick);
}

.footer-slogan {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-nav {
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: inline-block;
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--brick);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   components · 通用
   -------------------------------------------------------------------------- */

.section-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.section-kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 6px;
}

.section-head h2,
.section-title,
.related-title,
.aside-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 22px;
  line-height: 1.4;
}

.section-lead {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52em;
}

.section-more {
  margin-top: 18px;
}

.text-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover {
  text-decoration: none;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--brick);
  color: #fff;
  border: 1px solid var(--brick);
}

.btn-primary:hover {
  text-decoration: none;
  background: #8f331f;
  border-color: #8f331f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--brick);
  color: var(--brick);
}

.conclusion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--brick);
  margin-top: 22px;
}

.conclusion-text {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.conclusion-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brick);
  white-space: nowrap;
}

.conclusion-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--brick);
  margin-top: 22px;
}

.conclusion-bar p {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* 数据表 */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.data-table {
  min-width: 560px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--th-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th {
  background: var(--th-bg);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink);
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 图片容器 */

.hero-figure,
.puxi-figure,
.figure-block,
.table-figure,
.route-figure,
.media-figure,
.content-figure,
.article-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  overflow: hidden;
}

.hero-figure img,
.puxi-figure img,
.figure-block img,
.table-figure img,
.route-figure img,
.media-figure img,
.content-figure img,
.article-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.hero-figure figcaption,
.puxi-figure figcaption,
.figure-block figcaption,
.table-figure figcaption,
.route-figure figcaption,
.media-figure figcaption,
.content-figure figcaption,
.article-media figcaption {
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 状态胶囊 */

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 600;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-pill.status-ongoing {
  color: var(--teal);
  background: #eef2ef;
}

.status-pill.status-finished {
  color: #3d4a3a;
  background: #eef0e8;
}

.status-pill.status-paused {
  color: #8a5a1c;
  background: #f7efe2;
}

.status-pill.status-short {
  color: var(--brick);
  background: #f8ece7;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 600;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.status-badge--serial {
  color: var(--teal);
  background: #eef2ef;
}

.status-badge--finished {
  color: #3d4a3a;
  background: #eef0e8;
}

.status-badge--paused {
  color: #8a5a1c;
  background: #f7efe2;
}

.status-badge--short {
  color: var(--brick);
  background: #f8ece7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏 */

.hero {
  padding: 32px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero-judge {
  min-width: 0;
  border-left: 3px solid var(--brick);
  padding-left: 20px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 10px;
}

.hero-judge h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 40em;
}

.hero-lead + .hero-lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  min-width: 0;
}

/* 方法目录 */

.method-index {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.method-item {
  border-right: 1px solid var(--line);
  min-width: 0;
}

.method-item:last-child {
  border-right: 0;
}

.method-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  min-height: 44px;
  color: var(--ink);
}

.method-link:hover {
  text-decoration: none;
  background: #fffdf8;
}

.method-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.04em;
}

.method-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.method-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* 题材谱系 */

.puxi,
.rhythm,
.routes,
.status,
.pair {
  padding: 48px 0 8px;
}

.puxi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.puxi-figure {
  min-width: 0;
}

.puxi-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.puxi-col {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.zone-bar {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 1px;
  margin-bottom: 10px;
  transition: width 0.2s ease;
}

.zone-bar-a {
  background: var(--teal);
}

.zone-bar-b {
  background: var(--brick);
}

.zone-bar-c {
  background: #8a7a4e;
}

.puxi-col:hover .zone-bar {
  width: 32px;
}

.puxi-name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.tag {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--teal);
  background: #eef2ef;
  border: 1px solid #d5e0da;
  border-radius: var(--radius);
  padding: 1px 8px;
}

.puxi-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 篇幅节奏 */

.rhythm .table-scroll {
  margin-top: 4px;
}

/* 选读路线 */

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-width: 0;
}

.route-col {
  min-width: 0;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brick);
}

.route-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}

.route-fit {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.route-how {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.route-col .text-link {
  margin-top: auto;
}

/* 归档条 */

.archive-strip {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.archive-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-item {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.archive-item:last-child {
  border-right: 0;
}

.archive-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  min-height: 44px;
  color: var(--ink);
}

.archive-link:hover {
  text-decoration: none;
  background: #fffdf8;
}

.archive-month {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
}

.archive-topic {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* 连载状态读法 */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.status-desc {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.status-side {
  min-width: 0;
}

.status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* 两栏入口 */

.pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  min-width: 0;
}

.pair-col {
  min-width: 0;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.pair-col-a {
  border-top: 3px solid var(--brick);
}

.pair-col-b {
  border-top: 3px solid var(--teal);
}

.pair-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.pair-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.pair-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 内页通用模块
   -------------------------------------------------------------------------- */

.section,
.content-section,
.body-section,
.content-block,
.route-section,
.archive-section,
.cross-section {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.section:last-child,
.content-section:last-child,
.body-section:last-child,
.content-block:last-child,
.route-section:last-child,
.archive-section:last-child,
.cross-section:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.section-num,
.sec-num,
.block-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.section-desc,
.section-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 46em;
}

.section > p,
.content-section > p,
.body-section > p,
.content-block > p,
.route-section > p,
.archive-section > p,
.cross-section > p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 12px;
}

.section > p:last-child,
.content-section > p:last-child,
.body-section > p:last-child,
.content-block > p:last-child {
  margin-bottom: 0;
}

/* 标签筛选条 */

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-filter > li {
  min-width: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffdf8;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
  text-decoration: none;
  border-color: var(--brick);
  color: var(--brick);
}

.tag-chip--qing {
  color: var(--teal);
  border-color: #cbd9d3;
  background: #eef2ef;
}

.tag-chip--qing:hover {
  color: var(--brick);
  border-color: var(--brick);
}

/* 题材分区卡 */

.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.zone-card {
  min-width: 0;
  padding: 20px 22px 22px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
}

.zone-card:nth-child(2n) {
  border-right: 0;
}

.zone-swatch {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 1px;
  margin-bottom: 10px;
  transition: width 0.2s ease;
}

.zone-swatch--qing {
  background: var(--teal);
}

.zone-swatch--hong {
  background: var(--brick);
}

.zone-card:hover .zone-swatch {
  width: 32px;
}

.zone-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.zone-tags > li {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--teal);
  background: #eef2ef;
  border: 1px solid #d5e0da;
  border-radius: var(--radius);
  padding: 1px 8px;
}

.zone-summary {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 相邻题材对照 */

.adjacent-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adjacent-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.adjacent-title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.adjacent-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.adjacent-col {
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.adjacent-col:first-child {
  border-left-color: var(--teal);
}

.adjacent-col:last-child {
  border-left-color: var(--brick);
}

.adjacent-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 分区阅读顺序 */

.order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: order;
}

.order-item {
  min-width: 0;
  padding-left: 34px;
  position: relative;
  counter-increment: order;
}

.order-item::before {
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
}

.order-name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.order-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 字段读法 */

.field-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.field-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: #fffdf8;
}

.field-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.field-warn {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a1c;
}

.footnote-ref {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footnote-ref a {
  color: var(--brick);
}

/* 场景选择 */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.scene-card {
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  border-top: 3px solid var(--teal);
}

.scene-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.scene-advice {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 6px;
}

.scene-reason {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 选读路线卡（内页） */

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.route-card {
  min-width: 0;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-index {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brick);
}

.route-card .route-name {
  font-size: 17px;
}

.route-scene {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.route-mix {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.route-link {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.route-link::after {
  content: "→";
  margin-left: 6px;
}

/* 归档表（内页） */

.archive-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.archive-table {
  min-width: 520px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}

.archive-table caption {
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.archive-table thead th {
  background: var(--th-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.archive-table tbody th {
  background: var(--th-bg);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.archive-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.archive-table tbody tr:last-child th,
.archive-table tbody tr:last-child td {
  border-bottom: 0;
}

.archive-note {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 交叉说明 */

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.cross-item {
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid var(--teal);
}

.cross-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.cross-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 状态标记释义 */

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.content-section .status-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.status-body {
  flex: 1 1 260px;
  min-width: 0;
}

.status-body h3 {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.status-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.status-misread {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a1c;
}

.table-caption {
  text-align: left;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* 选题标准 */

.standard-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: standard;
}

.standard-item {
  min-width: 0;
  counter-increment: standard;
  padding-left: 34px;
  position: relative;
}

.standard-item::before {
  content: counter(standard, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
}

.standard-name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.standard-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 整理流程 */

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.flow-step {
  min-width: 0;
  padding-top: 12px;
  border-top: 2px solid var(--teal);
}

.flow-num {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brick);
  margin-bottom: 6px;
}

.flow-name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.flow-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 来源与更正 */

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.compare-col {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.compare-col:first-child {
  border-top: 3px solid var(--teal);
}

.compare-col:last-child {
  border-top: 3px solid var(--brick);
}

.compare-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-item {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.compare-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--brick);
}

/* 备注 */

.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.note-item {
  min-width: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.note-name {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

/* 适合 / 不适合 */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.col {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.col-suitable {
  border-top: 3px solid var(--teal);
}

.col-unsuitable {
  border-top: 3px solid var(--brick);
}

.col-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.check-list,
.cross-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--teal);
}

.cross-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--brick);
}

/* 材料清单 */

.material-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: material;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.material-item {
  min-width: 0;
  counter-increment: material;
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.material-item::before {
  content: counter(material, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
}

.material-name {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.material-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 四步流程（竖排） */

.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.step-item {
  min-width: 0;
  counter-increment: step;
  padding: 16px 0 16px 40px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
}

.step-num {
  display: none;
}

.step-name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 反馈规则 */

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.rule-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  background: #fffdf8;
}

.rule-name {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rule-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 侧栏
   -------------------------------------------------------------------------- */

.aside-toc,
.aside-quick,
.aside-links,
.aside-related,
.aside-block {
  min-width: 0;
  padding: 18px 0 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}

.aside-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item,
.toc-list > li {
  min-width: 0;
}

.toc-list a {
  display: block;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.toc-list a:hover {
  color: var(--brick);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-item {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.quick-term {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex: 0 0 auto;
}

.quick-def {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1 1 140px;
  min-width: 0;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-link-list > li {
  min-width: 0;
}

.aside-link-list a {
  display: block;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--brick);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-list > li {
  min-width: 0;
}

.aside-list a {
  display: block;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.aside-list a:hover {
  color: var(--brick);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   pages · 页尾关联
   -------------------------------------------------------------------------- */

.related,
.related-pages,
.related-section,
.page-notes {
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.related-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.related-item a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--brick);
}

.related-item p {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-name {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.related-desc {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.related-card-link {
  display: block;
  padding: 14px 16px;
  color: var(--ink);
}

.related-card-link:hover {
  text-decoration: none;
  border-color: var(--brick);
}

.related-card-name {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.related-card-desc {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
}

.related-card:hover {
  text-decoration: none;
  border-color: var(--brick);
}

/* 页尾注释 */

.page-notes .note-list {
  counter-reset: footnote;
  gap: 8px;
}

.page-notes .note-item {
  counter-increment: footnote;
  padding-left: 26px;
  position: relative;
  border-left: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-notes .note-item::before {
  content: "[" counter(footnote) "]";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brick);
}

.page-notes .note-item a {
  margin-left: 8px;
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px var(--gutter) 64px;
}

.error-block {
  max-width: 640px;
  padding-left: 20px;
  border-left: 3px solid var(--brick);
}

.error-code {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brick);
  margin-bottom: 8px;
}

.error-block h1 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.error-lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.error-note {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
}

.error-btn:hover {
  text-decoration: none;
  border-color: var(--brick);
  color: var(--brick);
}

.error-btn-primary {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}

.error-btn-primary:hover {
  color: #fff;
  background: #8f331f;
  border-color: #8f331f;
}

.error-routes {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-routes h2 {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.error-route-item {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.error-route-item a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.error-route-item a:hover {
  color: var(--brick);
  text-decoration: none;
}

.error-route-item span {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-column,
  .content-main,
  .page-body,
  .article-column {
    max-width: none;
  }

  .page-aside,
  .content-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 28px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .aside-toc,
  .aside-quick,
  .aside-links,
  .aside-related,
  .aside-block {
    margin-bottom: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure {
    max-width: 620px;
  }

  .puxi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .puxi-figure {
    max-width: 620px;
  }

  .puxi-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-item:nth-child(3n) {
    border-right: 0;
  }

  .method-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .archive-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-item:nth-child(3n) {
    border-right: 0;
  }

  .archive-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .status-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .scene-grid,
  .route-grid,
  .routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    padding-top: 4px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .header-inner {
    height: 60px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .home-main,
  .inner-main {
    padding-bottom: 48px;
  }

  .inner-main {
    padding-top: 14px;
  }

  .page-header {
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .page-head {
    padding: 16px 0 6px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-judge {
    padding-left: 16px;
  }

  .hero-judge h1 {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
  }

  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .method-item:nth-child(2n) {
    border-right: 0;
  }

  .method-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .method-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .method-item:last-child,
  .method-item:nth-last-child(2) {
    border-bottom: 0;
  }

  .puxi,
  .rhythm,
  .routes,
  .status,
  .pair {
    padding-top: 32px;
  }

  .puxi-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .routes-grid,
  .route-grid,
  .scene-grid,
  .flow-list,
  .zone-grid,
  .two-col,
  .compare-columns,
  .pair-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .zone-card {
    border-right: 0;
  }

  .adjacent-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .archive-list {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
  }

  .archive-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .archive-item:last-child {
    border-bottom: 0;
  }

  .archive-link {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 12px 14px;
  }

  .archive-month {
    flex: 0 0 72px;
  }

  .status-item {
    gap: 6px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .related-list,
  .related-card-list,
  .related-grid,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-aside,
  .content-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .conclusion,
  .conclusion-bar {
    padding-left: 14px;
  }

  .conclusion-text,
  .conclusion-bar p {
    flex: 1 1 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 24px var(--gutter) 28px;
  }

  .footer-links {
    gap: 4px 20px;
  }

  .footer-links a {
    padding: 8px 0;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .error-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 400px) {
  .method-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-item {
    border-right: 0;
  }

  .method-item:nth-child(3n) {
    border-right: 0;
  }

  .method-item:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-judge h1 {
    font-size: 25px;
  }

  .page-title {
    font-size: 22px;
  }

  .data-table,
  .archive-table {
    min-width: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
