:root {
  --bg-page: #fbfaf7;
  --bg-panel: #ffffff;
  --bg-soft: #f4f1ea;
  --ink: #1f2429;
  --ink-soft: #4a545c;
  --ink-faint: #6d777f;
  --accent: #3f6b5c;
  --accent-soft: #e4ede9;
  --accent-2: #8a6a3b;
  --accent-2-soft: #f0e8db;
  --line: #e3ded4;
  --line-strong: #cfc7b8;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 36, 41, 0.05);
  --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, "Courier New", monospace;
  --wrap: 1120px;
  --wrap-narrow: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink-faint);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ============================================================
   layout — 全站骨架：页头 / 主导航 / 主容器 / 页脚
   ============================================================ */

.site-header {
  background: var(--bg-page);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  padding: 16px 0;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  padding-top: 32px;
}

.inner-main {
  padding-top: 24px;
}

/* 面包屑 — 全站内页统一 */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 4px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-faint);
}

/* 页面标题区 — 全站内页统一 */

.page-header {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-description {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 760px;
}

.page-layout {
  display: block;
}

.layout-main {
  min-width: 0;
}

/* 页脚 — 全站统一 */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 40px 0 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.7;
  margin: 0 0 12px;
}

.back-to-top {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  min-height: 36px;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ============================================================
   components — 通用区块、表格、卡片、清单、FAQ、状态标记
   ============================================================ */

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 24px;
  max-width: 780px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.section-lead,
.section-intro,
.section-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 780px;
}

.section-foot {
  margin: 20px 0 0;
  font-size: 0.92rem;
}

.section-foot a {
  font-weight: 600;
}

/* 数据表格 */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.data-table {
  min-width: 560px;
  font-size: 0.92rem;
}

.data-table caption,
.table-caption {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-soft);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #faf8f3;
}

/* 专题卡片 */

.collection-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.collection-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.collection-figure {
  margin: 0 0 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.collection-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-name {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 16px 8px;
}

.collection-scope {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 16px 8px;
  flex-grow: 1;
}

.collection-meta,
.collection-related {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0 16px 12px;
}

.card-link,
.collection-enter {
  display: inline-block;
  margin: 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}

.card-link:hover,
.collection-enter:hover {
  color: var(--accent-2);
}

/* 编号步骤清单 */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.step-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.step-name,
.step-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.step-result {
  font-size: 0.85rem;
  color: var(--accent-2);
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-2-soft);
}

/* 时间记录列表 */

.change-list,
.change-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.change-item {
  position: relative;
  padding: 0 0 22px 22px;
}

.change-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-page);
}

.change-item:last-child {
  padding-bottom: 0;
}

.change-date {
  display: block;
  margin-bottom: 4px;
}

.change-text,
.change-content {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.change-impact {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-2);
  background: var(--accent-2-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* FAQ 展开收起 */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 14px;
}

.faq-answer p {
  margin: 0;
}

/* 状态标记 */

.status-bar {
  margin: 20px 0 0;
  padding: 12px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.status-badge,
.status-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
}

.status-line {
  margin: 16px 0 0;
}

/* 标签筛选 */

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tag-button {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tag-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-hint {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ============================================================
   pages — 首页模块
   ============================================================ */

.hero-positioning {
  padding-bottom: 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
}

.channel-overview .section-head {
  margin-bottom: 20px;
}

.channel-table tbody th {
  white-space: nowrap;
}

.collection-preview .collection-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.field-boundary .data-table td {
  min-width: 180px;
}

.viewing-path .step-list {
  grid-template-columns: repeat(3, 1fr);
}

.range-change .change-list {
  max-width: 860px;
}

.feedback-note {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.feedback-note a {
  font-weight: 600;
}

/* ============================================================
   pages — 频道分类页
   ============================================================ */

.channel-list-section .section-lead {
  margin-bottom: 28px;
}

.channel-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.channel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.channel-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.channel-orientation {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.channel-audience {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.channel-entry {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  min-height: 40px;
  line-height: 1.5;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.channel-entry:hover,
.channel-entry:focus-visible {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.channel-map-section .data-table {
  min-width: 480px;
}

.channel-map-table tbody th {
  white-space: nowrap;
}

.filter-note-section .section-lead {
  margin-bottom: 16px;
}

.channel-status-section .channel-status-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

/* ============================================================
   pages — 专题片单页
   ============================================================ */

.collection-grid-section .section-intro {
  margin-bottom: 24px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collection-scope-section .scope-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.collection-scope-section .scope-pair:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scope-column {
  min-width: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.scope-include {
  background: var(--accent-soft);
  border-color: #cfe0d8;
}

.scope-exclude {
  background: var(--bg-soft);
  border-color: var(--line);
}

.scope-heading {
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin: 0 0 10px;
}

.scope-include .scope-heading {
  color: var(--accent);
}

.scope-exclude .scope-heading {
  color: var(--accent-2);
}

.scope-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.scope-list li {
  margin-bottom: 6px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.related-item {
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.related-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.related-reason {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.related-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.collection-change-section .change-log {
  max-width: 860px;
}

/* ============================================================
   pages — 条目字段说明页 / 观看指南页
   ============================================================ */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.layout-shell .layout-main {
  min-width: 0;
}

.layout-aside,
.page-aside {
  min-width: 0;
}

.page-toc {
  position: sticky;
  top: 84px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.aside-title {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-item {
  margin-bottom: 8px;
}

.toc-item a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  padding: 4px 0;
}

.toc-item a:hover,
.toc-item a:focus-visible {
  color: var(--accent);
}

.aside-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.section-field-intro .field-figure {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.section-field-table .table-wrap {
  margin-top: 20px;
}

.section-reading-order .reading-order-list {
  grid-template-columns: repeat(3, 1fr);
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.note-item {
  padding: 14px 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.section-missing-field .status-line {
  margin-top: 16px;
}

.section-field-faq .faq-list {
  margin-top: 4px;
}

.guide-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-media {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.guide-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.path-steps .step-list {
  grid-template-columns: repeat(3, 1fr);
}

.path-steps .step-desc a {
  font-weight: 600;
}

.entry-check .check-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}

.check-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: none;
}

.check-head {
  background: var(--bg-soft);
}

.check-cell {
  padding: 12px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.check-head .check-cell {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.check-row:not(.check-head) .check-cell:first-child {
  font-weight: 600;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.boundary-feedback .feedback-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.feedback-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.feedback-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.feedback-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feedback-item {
  padding-left: 18px;
  position: relative;
  font-size: 0.92rem;
}

.feedback-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.feedback-item a {
  font-weight: 600;
}

.boundary-feedback .feedback-note {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 64px;
  padding-bottom: 96px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--accent-2);
  margin: 0 0 8px;
  line-height: 1;
}

.error-title {
  font-size: 1.6rem;
  margin: 0 0 14px;
}

.error-desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-links a {
  display: inline-block;
  padding: 10px 20px;
  min-height: 44px;
  line-height: 1.5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 0.92rem;
  color: var(--ink);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   responsive — 1024px / 768px / 480px
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .collection-preview .collection-cards,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .viewing-path .step-list,
  .section-reading-order .reading-order-list,
  .path-steps .step-list {
    grid-template-columns: 1fr;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 12px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 4px;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 1rem;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
    padding-left: 10px;
  }

  .site-main {
    padding: 0 16px 48px;
  }

  .home-main {
    padding-top: 20px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .collection-preview .collection-cards,
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .channel-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-figure img {
    aspect-ratio: 16 / 9;
  }

  .collection-scope-section .scope-pair {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-toc {
    position: static;
  }

  .check-row {
    grid-template-columns: 1fr;
  }

  .check-row:not(.check-head) .check-cell:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 24px;
  }

  .footer-copy {
    padding: 14px 16px 20px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .error-code {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    text-align: center;
  }

  .data-table {
    min-width: 480px;
    font-size: 0.86rem;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .boundary-feedback .feedback-panel {
    padding: 18px 18px;
  }

  .step-item {
    padding: 14px 16px;
  }

  .error-links {
    flex-direction: column;
    align-items: stretch;
  }

  .error-links a {
    text-align: center;
  }
}
