:root {
  --bg: #f5f2ec;
  --ink: #111111;
  --accent: #c8452f;
  --muted: #5b6b5a;
  --panel: #ffffff;
  --line: #111111;
  --line-soft: #cbc4b6;
  --radius: 6px;
  --wrap: 1120px;
  --gap: 28px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* =========================================================
   base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

time,
.channel-code,
.channel-no,
.record-date,
.records-date,
.related-code,
.step-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   layout — 全站骨架
   ========================================================= */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  padding-top: 28px;
}

/* 顶部线索说明条 */
.topline {
  background: var(--ink);
  color: #f5f2ec;
}

.topline-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: none;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.brand:hover .brand-name {
  color: var(--accent);
}

/* 主导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: var(--line);
  color: var(--accent);
}

.nav-link.is-current {
  background: var(--ink);
  color: #f5f2ec;
  border-color: var(--ink);
}

.nav-link.is-current:hover {
  color: #f5f2ec;
  border-bottom-color: var(--ink);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb-sep {
  color: var(--line-soft);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  padding: 18px 0 26px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 74ch;
  font-size: 16px;
  color: #33312c;
}

.page-description a {
  color: var(--accent);
  border-bottom-color: var(--line-soft);
}

/* 通用 section */
.section {
  margin-bottom: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.section-title {
  font-size: 24px;
  font-weight: 800;
}

.section-desc,
.section-note,
.section-intro,
.section-lead {
  max-width: 78ch;
  font-size: 15px;
  color: var(--muted);
}

.section-head .section-desc {
  flex: 1 1 320px;
}

.section-note,
.section-intro,
.section-lead {
  margin-bottom: 20px;
}

.section-note a,
.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom-color: var(--line-soft);
}

.section-foot {
  margin-top: 18px;
  font-size: 15px;
}

.subsection-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.link-more {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--line-soft);
}

.link-more:hover {
  border-bottom-color: var(--accent);
}

/* =========================================================
   components — 通用组件
   ========================================================= */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #f5f2ec;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: #f5f2ec;
  border-bottom-color: var(--ink);
}

/* 图片容器统一约束 */
.hero-media,
.collection-media,
.collection-cover,
.channel-figure,
.guide-figure,
.records-figure {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.hero-media img,
.collection-media img,
.collection-cover img,
.channel-figure img,
.guide-figure img,
.records-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption,
.channel-figure-caption,
.guide-figure figcaption,
.records-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}

/* 表格基础 */
.field-table,
.channel-table {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table th,
.field-table td,
.channel-table th,
.channel-table td {
  padding: 13px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.field-table thead th,
.channel-table thead th {
  background: var(--ink);
  color: #f5f2ec;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table tbody th {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* FAQ 原生展开收起 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--line-soft);
}

.faq-item[open] .faq-question::after {
  content: "收起";
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 15px;
  color: #33312c;
  border-top: 1px solid var(--line-soft);
}

.faq-answer a {
  color: var(--accent);
  border-bottom-color: var(--line-soft);
}

/* 相关列表（指引页 / 记录页共用，按父级限定） */
.guide-related .related-list,
.records-related .related-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-related .related-item,
.records-related .related-item {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.guide-related .related-item a {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.guide-related .related-item a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.guide-related .related-note,
.records-related .related-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.records-related .related-code {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.records-related .related-object {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: #e9e4da;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 26px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.6fr repeat(4, 1fr);
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #b9b3a6;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a382f;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: #cfc9bc;
  border-bottom: 1px solid transparent;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px 34px;
  border-top: 1px solid #3a382f;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-note,
.footer-copy {
  font-size: 13px;
  line-height: 1.7;
  color: #9d9789;
}

.footer-note {
  max-width: 70ch;
}

/* =========================================================
   pages — 首页
   ========================================================= */

/* 首屏定位区 */
.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-text {
  max-width: 62ch;
  font-size: 16px;
  color: #33312c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 30px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.hero-fact dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.hero-fact dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

/* 首页题材频道总览表 */
.channel-table {
  display: block;
  border: none;
  background: transparent;
  overflow: visible;
}

.channel-table .channel-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.channel-table .channel-row:first-child {
  border-top: 2px solid var(--line);
}

.channel-table .channel-row:last-child {
  border-bottom: 2px solid var(--line);
}

.channel-table .channel-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.channel-table .channel-name {
  font-size: 17px;
  font-weight: 800;
}

.channel-table .channel-scope,
.channel-table .channel-adjacent {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

.channel-table .channel-adjacent {
  color: var(--muted);
}

/* 首页专题片单入口 */
.collection-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.collection-card:hover {
  border-color: var(--accent);
}

.collection-media img,
.collection-cover img {
  aspect-ratio: 16 / 10;
}

.collection-name {
  font-size: 18px;
  font-weight: 800;
}

.collection-channels,
.collection-count,
.collection-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.collection-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
}

/* 首页字段说明与收录边界 */
.fields-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.fields-col {
  min-width: 0;
}

.fields-col-boundary p {
  font-size: 15px;
  color: #33312c;
  margin-bottom: 14px;
}

.link-row {
  font-size: 15px;
}

/* 首页整理记录速览 */
.record-groups {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.record-month {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.record-month-title {
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-item {
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.record-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.record-target {
  font-size: 14px;
  font-weight: 700;
}

.record-text {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 首页站内栏目索引 */
.index-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.index-col {
  padding: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  font-size: 17px;
  font-weight: 800;
}

.index-name a {
  border-bottom: 1px solid var(--line-soft);
}

.index-name a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.index-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   pages — 题材频道
   ========================================================= */

.channel-overview .channel-table {
  display: table;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-table-caption {
  caption-side: top;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}

.channel-overview .channel-no {
  width: 76px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.channel-overview .channel-name {
  font-size: 16px;
  font-weight: 800;
  min-width: 150px;
}

.channel-overview .channel-name a {
  border-bottom: 1px solid var(--line-soft);
}

.channel-overview .channel-name a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.channel-overview .channel-scope {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

.channel-overview .channel-adjacent {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  min-width: 160px;
}

.channel-figure {
  margin-top: 26px;
}

.channel-figure img {
  aspect-ratio: 21 / 9;
}

/* 相邻频道关系 */
.relation-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.relation-item {
  padding: 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.relation-heading {
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.relation-detail {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
}

.relation-detail dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.relation-detail dd {
  font-size: 14px;
  line-height: 1.7;
  color: #33312c;
}

/* 频道选择建议 */
.advice-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.advice-item {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel);
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-radius: var(--radius);
}

.advice-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.advice-text {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

/* =========================================================
   pages — 专题片单
   ========================================================= */

.page-layout.collections-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  align-items: start;
}

.collections-layout > section {
  min-width: 0;
}

.collections-list-section .collection-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.collections-list-section .collection-card {
  padding: 14px;
}

.collections-list-section .collection-name a {
  border-bottom: 1px solid var(--line-soft);
}

.collections-list-section .collection-name a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.collection-meta {
  display: grid;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.collection-meta dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.collection-meta dd {
  font-size: 14px;
  color: #33312c;
}

/* 片单口径 */
.scope-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.scope-item {
  padding: 16px 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.scope-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.scope-text {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

/* 片单浏览顺序 */
.order-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.order-item {
  padding: 16px 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.order-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.order-text {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

.order-text a {
  color: var(--accent);
  border-bottom-color: var(--line-soft);
}

/* 侧栏 */
.collections-aside {
  padding: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.aside-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.aside-links a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   pages — 浏览指引
   ========================================================= */

.guide-figure {
  margin-bottom: 28px;
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.step-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
}

.step-title {
  font-size: 17px;
  font-weight: 800;
}

.step-need,
.step-done {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

.step-done {
  color: var(--muted);
}

.step-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
}

.step-link a {
  color: var(--accent);
  border-bottom: 1px solid var(--line-soft);
}

/* 字段清单 */
.checklist {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.checklist-item {
  padding: 16px 18px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--muted);
}

.checklist-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.checklist-note {
  font-size: 14px;
  line-height: 1.75;
  color: #33312c;
}

/* =========================================================
   pages — 整理记录
   ========================================================= */

.records-figure {
  margin-bottom: 32px;
}

.records-figure img {
  aspect-ratio: 21 / 9;
}

.records-group {
  padding: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.records-group-title {
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.records-item {
  display: grid;
  gap: 4px 14px;
  grid-template-columns: auto minmax(0, 1fr);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-soft);
}

.records-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.records-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.records-target {
  font-size: 15px;
  font-weight: 700;
}

.records-detail {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 归档 */
.archive-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.archive-column {
  padding: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.archive-column-title {
  font-size: 17px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-list a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   pages — 404
   ========================================================= */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
}

.error-block {
  width: 100%;
  padding: 34px 30px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.error-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
}

.error-text {
  max-width: 70ch;
  font-size: 16px;
  color: #33312c;
}

.error-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 24px;
}

.error-link {
  display: block;
  min-height: 46px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.error-link:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.error-note {
  margin-top: 20px;
  padding-top: 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 900px) {
  .home-main,
  .inner-main,
  .error-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 46px;
    padding: 12px 14px;
    border-color: var(--line-soft);
  }

  .hero {
    padding-top: 26px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title {
    font-size: 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    margin-bottom: 26px;
  }

  .section {
    margin-bottom: 42px;
  }

  .channel-table .channel-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .channel-table .channel-scope,
  .channel-table .channel-adjacent {
    grid-column: 1 / -1;
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .page-layout.collections-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .channel-overview .channel-table {
    display: block;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .channel-overview .channel-table thead {
    display: none;
  }

  .channel-overview .channel-table tbody,
  .channel-overview .channel-table tr,
  .channel-overview .channel-table th,
  .channel-overview .channel-table td {
    display: block;
    width: 100%;
  }

  .channel-overview .channel-table tr {
    padding: 16px;
    margin-bottom: 14px;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: var(--radius);
  }

  .channel-overview .channel-table th,
  .channel-overview .channel-table td {
    padding: 0;
    border-bottom: none;
  }

  .channel-overview .channel-no {
    margin-bottom: 6px;
  }

  .channel-overview .channel-scope,
  .channel-overview .channel-adjacent {
    margin-top: 8px;
  }

  .channel-table-caption {
    padding: 0 0 12px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .topline-text {
    padding: 10px 18px;
    font-size: 12px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 21px;
  }

  .section-head {
    gap: 4px 12px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .collection-grid,
  .record-groups,
  .index-grid,
  .relation-grid,
  .advice-list,
  .scope-list,
  .order-list,
  .step-list,
  .checklist,
  .archive-columns,
  .guide-related .related-list,
  .records-related .related-list,
  .error-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 11px 12px;
    font-size: 14px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .record-item,
  .records-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .relation-detail,
  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 18px 20px;
  }

  .footer-bottom {
    padding: 16px 18px 28px;
    flex-direction: column;
  }

  .error-block {
    padding: 24px 18px;
  }
}
