/* ==========================================================================
   秋霞理论电影 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --ink-mute: #6f6f6f;
  --line: #d9d9d9;
  --line-strong: #b4b4b4;
  --paper: #f4f4f2;
  --paper-raise: #ffffff;
  --paper-sink: #ececea;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1180px;
  --gap: 28px;
  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --shadow-hover: 0 2px 10px rgba(17, 17, 17, 0.08);
}

*,
*::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-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  z-index: 60;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、主容器、内页骨架、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 页头与主导航（全站统一） --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 242, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  color: var(--ink-mute);
  font-size: 12px;
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-item a:hover {
  color: var(--ink);
  background: var(--paper-sink);
  text-decoration: none;
}

.nav-item.is-current a,
.nav-item a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  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);
}

/* --- 主容器 --- */

.site-main {
  flex: 1 0 auto;
}

.home-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* --- 面包屑与页面标题区（内页统一） --- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--ink-mute);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  max-width: 780px;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-description {
  color: var(--ink-mute);
  font-size: 15px;
}

/* --- 内页两栏布局骨架 --- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.page-content,
.content-column {
  min-width: 0;
}

/* --- 页脚（全站统一） --- */

.site-footer {
  background: #1a1a1a;
  color: #c9c9c9;
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333333;
}

.footer-brand-name {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand-text {
  color: #a5a5a5;
  font-size: 14px;
  max-width: 420px;
}

.footer-nav-title,
.footer-note-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: #b8b8b8;
  font-size: 14px;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-note p {
  color: #a5a5a5;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.footer-copy {
  color: #8d8d8d;
  font-size: 13px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #3d3d3d;
  border-radius: var(--radius-sm);
  color: #d0d0d0;
  font-size: 13px;
}

.back-to-top:hover {
  color: #ffffff;
  border-color: #7a7a7a;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-raise);
}

/* --- 区块与标题 --- */

.section {
  margin-bottom: 64px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-desc,
.section-lead,
.section-intro {
  color: var(--ink-mute);
  font-size: 15px;
  max-width: 760px;
}

.section-more {
  margin-top: 22px;
  font-size: 15px;
}

.section-more a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.section-more a:hover {
  border-bottom-color: var(--ink);
  text-decoration: none;
}

.subsection-title {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 12px;
}

.text-link {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--ink);
  text-decoration: none;
}

/* --- 图片容器与图形 --- */

.hero-media,
.topic-media,
.side-rail-figure,
.section-figure,
.content-figure,
.guide-figure,
.boundary-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-sink);
  overflow: hidden;
}

.hero-media img,
.topic-media img,
.side-rail-figure img,
.section-figure img,
.content-figure img,
.guide-figure img,
.boundary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-sink);
}

.hero-media figcaption,
.topic-media figcaption,
.side-rail-figure figcaption,
.section-figure figcaption,
.content-figure figcaption,
.guide-figure figcaption,
.boundary-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper-raise);
}

/* --- 字段说明表 --- */

.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raise);
  font-size: 14px;
  overflow: hidden;
}

.field-table caption,
.field-table-caption {
  caption-side: top;
  padding: 12px 16px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  padding: 12px 16px;
  background: var(--paper-sink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.field-table tbody th,
.field-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.field-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- 编号步骤清单 --- */

.step-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 16px 20px 16px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--ink-mute);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-title,
.step-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text,
.step-desc,
.step-item p {
  color: var(--ink-mute);
  font-size: 14px;
}

/* 步骤条目带独立序号容器时，隐藏自动计数 */

.step-item .step-index {
  display: inline-block;
  min-width: 28px;
  color: var(--ink-mute);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
}

.step-item:has(.step-index)::before {
  display: none;
}

.step-body {
  min-width: 0;
}

/* --- 相关链接 --- */

.related-section,
.related-links {
  margin-bottom: 40px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item a,
.related-list a {
  display: block;
  padding: 14px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  min-height: 44px;
}

.related-item a:hover,
.related-list a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* --- 侧栏（分类目录 / 专题目录 / 本页目录） --- */

.side-rail,
.page-sidebar,
.side-toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-rail-title,
.sidebar-title,
.side-toc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.side-rail-list,
.sidebar-list,
.side-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-rail-list a,
.sidebar-list a,
.side-toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
}

.side-rail-list a:hover,
.sidebar-list a:hover,
.side-toc-list a:hover {
  background: var(--paper-sink);
  color: var(--ink);
  text-decoration: none;
}

.side-rail-figure {
  margin-top: 18px;
  border-radius: var(--radius-sm);
}

.side-rail-figure img {
  aspect-ratio: 4 / 3;
}

.side-toc-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  background: var(--paper-sink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --- 对照双列块 --- */

.compare-grid,
.exclude-columns,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-col,
.exclude-column,
.boundary-col {
  padding: 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-title,
.exclude-title,
.boundary-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.compare-list,
.exclude-list,
.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-list li,
.exclude-list li,
.boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.compare-list li::before,
.exclude-list li::before,
.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--line-strong);
}

/* --- 编号清单（无卡片背景） --- */

.criteria-list,
.rule-list,
.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.criteria-item,
.rule-item,
.scope-item {
  padding: 12px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.criteria-name,
.rule-name {
  color: var(--ink);
  font-weight: 600;
}

/* --- 反馈区块附注 --- */

.section-note {
  margin-top: 20px;
  color: var(--ink-mute);
  font-size: 14px;
}

/* --- FAQ --- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   4. pages —— 页面级模块
   -------------------------------------------------------------------------- */

/* --- 首页：首屏 --- */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raise);
}

.hero-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.hero-facts dt {
  color: var(--ink-mute);
  white-space: nowrap;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
}

.hero-media {
  border-radius: var(--radius);
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

/* --- 首页：分类栏目方向总览 --- */

.section-categories .category-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.category-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.category-name {
  font-size: 17px;
  font-weight: 600;
}

.category-scope {
  color: var(--ink-mute);
  font-size: 14px;
}

.category-link {
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.category-link:hover {
  border-bottom-color: var(--ink);
  text-decoration: none;
}

/* --- 首页：专题索引速览 --- */

.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.topic-media {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.topic-media img {
  aspect-ratio: 3 / 2;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-scope {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 8px;
}

.topic-compose,
.topic-basis {
  color: var(--ink-mute);
  font-size: 13px;
  margin-bottom: 6px;
}

.topic-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  border-bottom: none;
  align-self: flex-start;
}

.topic-link::after {
  content: " →";
}

/* --- 首页：浏览路径 --- */

.section-path .step-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --- 首页：收录边界 --- */

.section-boundary .boundary-media {
  margin-top: 24px;
}

.section-boundary .boundary-media img {
  aspect-ratio: 21 / 9;
}

/* --- 分类栏目页 --- */

.page-categories .category-overview-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-overview-item {
  padding: 16px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-overview-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-overview-desc {
  color: var(--ink-mute);
  font-size: 14px;
}

.category-block {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.category-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-block-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-block-scope {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 14px;
}

/* --- 专题索引页 --- */

.page-topics .section-figure {
  margin-bottom: 8px;
}

.page-topics .section-figure img {
  aspect-ratio: 21 / 9;
}

.page-topics .section-topic-list .topic-card {
  margin-bottom: 20px;
}

.page-topics .topic-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.page-topics .meta-label {
  color: var(--ink-mute);
  white-space: nowrap;
}

.page-topics .meta-value {
  margin: 0;
  color: var(--ink-soft);
}

.page-topics .topic-entry {
  margin-top: 14px;
  font-size: 14px;
}

.mapping-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raise);
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mapping-row + .mapping-row {
  border-top: 1px solid var(--line);
}

.mapping-cell {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.mapping-cell + .mapping-cell {
  border-left: 1px solid var(--line);
}

.mapping-head .mapping-cell {
  background: var(--paper-sink);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

/* --- 更新记录页 --- */

.page-updates .content-figure {
  margin-bottom: 26px;
}

.page-updates .content-figure img {
  aspect-ratio: 21 / 9;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.record-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.record-meta time {
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 600;
}

.record-type {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-mute);
  font-size: 12px;
}

.record-body {
  min-width: 0;
}

.record-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.record-body p {
  color: var(--ink-mute);
  font-size: 14px;
}

/* --- 浏览指南页 --- */

.page-guide .guide-section {
  margin-bottom: 48px;
}

.page-guide .guide-section:last-of-type {
  margin-bottom: 36px;
}

.page-guide .guide-figure {
  margin-bottom: 20px;
}

.page-guide .guide-figure img {
  aspect-ratio: 16 / 9;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.scope-card {
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scope-card p {
  color: var(--ink-mute);
  font-size: 14px;
}

/* --- 收录边界与反馈页 --- */

.page-feedback .section-figure {
  margin-bottom: 22px;
}

.page-feedback .section-figure img {
  aspect-ratio: 21 / 9;
}

.page-feedback .scope-list {
  gap: 12px;
}

.page-feedback .scope-item {
  padding: 14px 18px;
}

.page-feedback .section-note a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.page-feedback .section-note a:hover {
  border-bottom-color: var(--ink);
  text-decoration: none;
}

.submit-steps,
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.submit-step,
.process-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step {
  grid-template-columns: minmax(0, 1fr);
}

.process-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--ink-mute);
  font-size: 14px;
}

.exclude-covered {
  border-left: 3px solid var(--ink);
}

.exclude-uncovered {
  border-left: 3px solid var(--line-strong);
}

/* --- 404 --- */

.error-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.error-hero {
  max-width: 640px;
  margin-bottom: 48px;
}

.error-code {
  color: var(--ink-mute);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-main h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.error-text {
  color: var(--ink-mute);
  font-size: 15px;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.error-path-list a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.error-path-list a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1024px 与 768px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 44px 24px 48px;
  }

  .hero-title {
    font-size: 34px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .side-rail,
  .page-sidebar,
  .side-toc {
    position: static;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .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-item a {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-item.is-current a,
  .nav-item a.is-current {
    border-bottom-color: var(--line);
    background: var(--paper-sink);
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .page-header {
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 25px;
  }

  .hero-inner {
    padding: 32px 16px 36px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-media img {
    aspect-ratio: 16 / 11;
  }

  .section {
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 21px;
  }

  .category-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  .category-link {
    justify-self: start;
  }

  .topic-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-path .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-grid,
  .exclude-columns,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .record-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 10px 12px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .mapping-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-cell + .mapping-cell {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .mapping-head {
    display: none;
  }

  .side-toc-toggle {
    display: block;
  }

  .side-toc-list {
    display: none;
  }

  .side-toc-list.is-open {
    display: flex;
  }

  .submit-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .footer-inner {
    padding: 34px 16px 20px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-main {
    padding: 48px 16px 48px;
  }

  .error-main h1 {
    font-size: 26px;
  }

  .error-path-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
