:root {
  --page-bg: #f7f8fa;
  --surface: #ffffff;
  --text-main: #1f2933;
  --text-sub: #52606d;
  --accent: #2f6f8f;
  --accent-soft: #e4eef3;
  --warm: #d97a4a;
  --line: #d9e2ec;
  --line-soft: #e8eef4;
  --radius: 6px;
  --shell-width: 1080px;
  --read-width: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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(--warm);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.6;
}

.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-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--text-main);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-slogan {
  color: var(--text-sub);
  font-size: 0.76rem;
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.nav-list a.is-current {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

.site-main {
  display: block;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.lead-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.lead-bar p {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 9px 24px;
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.6;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
}

.footer-about {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-group a:hover {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 14px 24px 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-sub);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ============================================================
   components — 通用区块与组件
   ============================================================ */

.section {
  margin-top: 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.34rem;
}

.section-head h2 {
  font-size: 1.34rem;
}

.section-intro,
.section-lead {
  margin-top: 8px;
  max-width: var(--read-width);
  color: var(--text-sub);
  font-size: 0.94rem;
}

.section-more {
  margin-top: 14px;
  font-size: 0.9rem;
}

.sub-title,
.subsection-title {
  margin-bottom: 10px;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #28607c;
  border-color: #28607c;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 面包屑与内页标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.6;
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-sub);
}

.page-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 1.62rem;
  font-weight: 700;
  color: var(--text-main);
}

.page-description {
  margin-top: 10px;
  max-width: var(--read-width);
  color: var(--text-sub);
  font-size: 0.96rem;
}

/* 表格通用 */

.channel-table,
.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.channel-table caption,
.field-table caption {
  padding: 12px 14px 0;
  color: var(--text-sub);
  font-size: 0.82rem;
  text-align: left;
}

.channel-table th,
.channel-table td,
.field-table th,
.field-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.channel-table thead th,
.field-table thead th {
  background: #eff3f7;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #fafcfd;
}

.channel-table .code,
.channel-table .cell-no {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent);
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

/* 图片容器 */

.hero-media,
.collection-media,
.section-media,
.step-figure,
.content-figure,
.page-media {
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-media img,
.collection-media img,
.section-media img,
.step-figure img,
.content-figure img,
.page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 列表与说明型条目 */

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.7;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--warm);
  border-radius: 50%;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.link-list a {
  font-size: 0.92rem;
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-title {
  font-size: 1.86rem;
  font-weight: 700;
}

.hero-desc {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  aspect-ratio: 4 / 3;
}

.hero-media figcaption {
  padding: 0 2px;
}

/* 题材频道总览 */

.section-channels .channel-table {
  table-layout: fixed;
}

.section-channels .channel-table th:nth-child(1),
.section-channels .channel-table td:nth-child(1) {
  width: 72px;
}

.section-channels .channel-table th:nth-child(2),
.section-channels .channel-table td:nth-child(2) {
  width: 22%;
}

.section-channels .channel-table th:nth-child(3),
.section-channels .channel-table td:nth-child(3) {
  width: 24%;
}

/* 专题片单入口 */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(47, 111, 143, 0.08);
}

.collection-media {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.collection-name {
  padding: 14px 16px 0;
  font-size: 1.04rem;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.collection-theme {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.collection-scope {
  padding: 8px 16px 0;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.collection-body .collection-scope {
  padding: 0;
}

.collection-meta {
  padding: 6px 16px 0;
  color: var(--text-sub);
  font-size: 0.82rem;
}

.collection-body .collection-meta {
  padding: 0;
}

.collection-link {
  margin: 12px 16px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

.collection-body .collection-link {
  margin: 8px 0 0;
}

/* 手机端播放前准备 */

.step-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step-strip .step-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-strip .step-index {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--warm);
  font-weight: 700;
}

.step-strip .step-name {
  font-size: 0.98rem;
}

.step-strip .step-note {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 0.86rem;
}

/* 字段说明与收录边界摘要 */

.field-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.field-column,
.boundary-column {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.88rem;
}

.field-list dt {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: nowrap;
}

.field-list dd {
  color: var(--text-sub);
  line-height: 1.7;
}

/* 整理记录速览 */

.record-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.record-months .record-month {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-months .month-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}

.record-months .record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-months .record-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.86rem;
  line-height: 1.65;
}

.record-months .record-date {
  font-family: var(--font-mono);
  color: var(--warm);
  white-space: nowrap;
}

.record-months .record-scope {
  color: var(--text-sub);
}

/* 站内栏目索引 */

.index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
}

.index-item a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.index-name {
  font-size: 0.96rem;
  font-weight: 700;
}

.index-item a:hover .index-name {
  color: var(--accent);
}

.index-desc {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ============================================================
   pages — 内页共用模块
   ============================================================ */

.section-media,
.step-figure,
.content-figure,
.page-media {
  margin-top: 18px;
  aspect-ratio: 16 / 7;
}

.step-figure {
  aspect-ratio: 16 / 8;
}

.content-figure {
  aspect-ratio: 16 / 6;
}

.page-media {
  margin-top: 20px;
  aspect-ratio: 16 / 6;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-list .step-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-list .step-index {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--warm);
  font-weight: 700;
}

.step-list .step-name {
  font-size: 0.98rem;
}

.step-list .step-desc {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

/* 题材频道页 */

.channel-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.section-channels .channel-table-caption {
  padding: 12px 14px 0;
  color: var(--text-sub);
  font-size: 0.82rem;
  text-align: left;
}

.section-order .step-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-order .step-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.relation-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.relation-subtitle {
  margin-bottom: 8px;
  font-size: 1rem;
}

.relation-col p {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.relation-col p + p {
  margin-top: 8px;
}

.relation-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 0.9rem;
}

.section-links .link-list {
  margin-top: 14px;
}

/* 专题片单页 */

.section-collections .collection-grid {
  margin-top: 18px;
}

.section-entry-fields .entry-field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.entry-field {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-field dt {
  margin-bottom: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.entry-field dd {
  color: var(--text-sub);
  font-size: 0.86rem;
  line-height: 1.7;
}

.entry-field-note {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.usage-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.usage-column {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-subtitle {
  margin-bottom: 8px;
  font-size: 1rem;
}

.usage-column p {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.usage-column p + p {
  margin-top: 8px;
}

.usage-compare {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.usage-link {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
}

/* 浏览指引页 */

.prep-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.prep-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prep-name {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.prep-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.check-item {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warm);
  border-radius: var(--radius);
}

.check-name {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.check-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.check-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.followup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
  counter-reset: followup;
}

.followup-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 0.88rem;
}

.followup-index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--warm);
  font-weight: 700;
}

.section-note {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

/* 字段说明页 */

.section-field-table .field-table {
  margin-top: 18px;
}

.section-field-table .table-caption {
  padding: 12px 14px 0;
  color: var(--text-sub);
  font-size: 0.82rem;
  text-align: left;
}

.misread-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.misread-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misread-title {
  margin-bottom: 6px;
  font-size: 0.96rem;
  color: var(--warm);
}

.misread-item p {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.boundary-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-col-desc p {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.boundary-col-desc p + p {
  margin-top: 8px;
}

.boundary-col-limits p {
  margin-top: 12px;
  font-size: 0.88rem;
}

.check-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.check-order-item {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-order-title {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.check-order-item p {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  font-size: 0.94rem;
  font-weight: 700;
}

.related-desc {
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* 整理记录页 */

.records-timeline {
  margin-top: 40px;
}

.records-timeline .record-month {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.records-timeline .record-month-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 1.04rem;
}

.record-item + .record-item {
  margin-top: 12px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--warm);
  font-size: 0.82rem;
}

.record-meta time {
  font-family: var(--font-mono);
}

.record-text {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.record-types {
  margin-top: 40px;
}

.type-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.type-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.type-name {
  margin-bottom: 6px;
  font-size: 0.96rem;
  font-weight: 700;
}

.type-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.record-followup {
  margin-top: 40px;
}

.followup-body {
  margin-top: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.followup-text {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.followup-text + .followup-text {
  margin-top: 10px;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 40px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warm);
}

.error-panel h1 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.error-text {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 0.94rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .hero-title {
    font-size: 1.66rem;
  }

  .field-boundary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .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-list a {
    display: block;
    padding: 12px 10px;
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .lead-bar p {
    padding: 9px 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
    padding: 20px;
  }

  .hero-title {
    font-size: 1.42rem;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .section {
    margin-top: 34px;
  }

  .section-title,
  .section-head h2 {
    font-size: 1.2rem;
  }

  .page-title {
    font-size: 1.36rem;
  }

  .collection-grid,
  .step-strip,
  .step-list,
  .prep-list,
  .misread-list,
  .related-links,
  .type-list,
  .followup-list,
  .entry-field-list,
  .record-months,
  .index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-table,
  .field-table {
    font-size: 0.86rem;
  }

  .channel-table th,
  .channel-table td,
  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .section-channels .channel-table {
    table-layout: auto;
  }

  .section-channels .channel-table th:nth-child(1),
  .section-channels .channel-table td:nth-child(1),
  .section-channels .channel-table th:nth-child(2),
  .section-channels .channel-table td:nth-child(2),
  .section-channels .channel-table th:nth-child(3),
  .section-channels .channel-table td:nth-child(3) {
    width: auto;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-list dt {
    margin-top: 8px;
  }

  .section-media,
  .step-figure,
  .content-figure,
  .page-media {
    aspect-ratio: 16 / 10;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 28px 16px 18px;
  }

  .footer-copy {
    padding: 14px 16px 22px;
  }

  .error-main {
    padding-top: 28px;
  }

  .error-panel {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}
