/* =========================================================
   无码影院 · hi-dingle.com
   目录刊物式视频频道导航站样式
   ========================================================= */

/* =========================================================
   1. BASE — 变量、重置、排版基础
   ========================================================= */
:root {
  --ink: #16211f;
  --ink-soft: #4a5754;
  --brand: #0f3d3e;
  --brand-deep: #0a2b2c;
  --accent: #c8622a;
  --accent-soft: #e8a37c;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --line: #d8d2c4;
  --line-soft: #e7e2d6;
  --tag: #e8e2d4;
  --shell-max: 1120px;
  --read-max: 720px;
  --radius: 4px;
  --radius-card: 6px;
  --header-h: 72px;
  --header-h-compact: 56px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  --shadow-soft: 0 1px 2px rgba(22, 33, 31, 0.06);
  --shadow-lift: 0 4px 14px rgba(22, 33, 31, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.25;
}

h2 {
  font-size: 24px;
  line-height: 1.35;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  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;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* =========================================================
   2. LAYOUT — 外壳、页头、导航、页脚、内页骨架
   ========================================================= */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  display: block;
  padding-bottom: 56px;
}

.inner-main {
  padding-top: 8px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--brand);
  color: #f3efe6;
  border-bottom: 1px solid var(--brand-deep);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}

.site-header.is-compact {
  box-shadow: 0 2px 10px rgba(10, 43, 44, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}

.site-header.is-compact .header-inner {
  min-height: var(--header-h-compact);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f6f2e9;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: #ffffff;
}

.brand-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  color: #a9c3bf;
  font-weight: 400;
}

/* ---------- 主导航 ---------- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  display: flex;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #d7e2de;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- 汉堡按钮 ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #ffffff;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 移动抽屉 ---------- */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  overflow-y: auto;
  background: var(--brand-deep);
  padding: 20px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-nav {
  display: block;
}

.drawer-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.drawer-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: #e6eeea;
  font-size: 16px;
}

.drawer-list a:hover,
.drawer-list a:focus-visible {
  color: #ffffff;
}

.drawer-note {
  margin: 0;
  color: #9db6b2;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--brand);
  color: #c9d6d2;
  border-top: 1px solid var(--brand-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
}

.footer-desc {
  margin: 0 0 10px;
  color: #c9d6d2;
  font-size: 14px;
  line-height: 1.75;
}

.footer-scope {
  margin: 0;
  color: #93aca7;
  font-size: 13px;
  line-height: 1.7;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  margin: 0 0 12px;
  color: #f2f6f4;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin-bottom: 4px;
}

.footer-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #b9cbc6;
  font-size: 14px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: #8fa8a3;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.breadcrumb-sep {
  color: #b3ab99;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 18px 24px 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.breadcrumb-list li + li::before {
  content: "/";
  color: #b3ab99;
  margin-right: 6px;
}

/* ---------- 页面标题区（H1 在 page-header 内） ---------- */
.page-header {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 24px 0;
}

.page-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.26;
  color: var(--ink);
}

/* 内页 page-title 区块（导语区） */
section.page-title {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 12px 24px 0;
}

section.page-title.shell {
  padding-left: 24px;
  padding-right: 24px;
}

.page-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  background: var(--tag);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.page-lead {
  margin: 0;
  max-width: var(--read-max);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-lead a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.page-lead a:hover,
.page-lead a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ---------- 内页通用 section 标题 ---------- */
.section-intro,
.section-note {
  margin: 0 0 18px;
  max-width: var(--read-max);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.section-intro a,
.section-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.section-intro a:hover,
.section-note a:hover,
.section-intro a:focus-visible,
.section-note a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ---------- 双栏内页布局 ---------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 24px 24px 0;
  align-items: start;
}

.layout-shell {
  padding-top: 24px;
}

.method-layout,
.glossary-body,
.method-body {
  min-width: 0;
}

/* =========================================================
   3. COMPONENTS — 按钮、文本链接、标签、表格、图卡、FAQ
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #a94f1f;
  border-color: #a94f1f;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brand);
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.text-link::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.18s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}

.entry-link::after {
  content: "→";
  font-size: 13px;
}

.entry-link:hover,
.entry-link:focus-visible {
  color: var(--brand);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.18s ease;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--brand);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: translateX(3px);
}

/* ---------- 表格 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 15px;
  line-height: 1.65;
}

.data-table caption {
  caption-side: top;
  padding: 0;
  text-align: left;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--tag);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
  background: #fbf9f4;
}

.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.data-table tbody td a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody td a:hover,
.data-table tbody td a:focus-visible {
  color: var(--brand);
}

.table-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.table-note a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.table-note a:hover,
.table-note a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ---------- 内容图 ---------- */
.content-figure img,
.origin-start-media img,
.term-figure img,
.aside-figure img,
.lookback-figure img,
.method-figure img,
.hero-figure img,
.scene-figure img,
.topic-media img,
.topic-figure img {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: cover;
}

/* ---------- 术语名（首页与术语页共用） ---------- */
.term-name {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

/* =========================================================
   4. PAGES — 首页
   ========================================================= */
.home-main {
  padding-top: 8px;
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 10px;
  background: var(--tag);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.24;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 22px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* ---------- 近期编排成果带 ---------- */
.recent-batches {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-sub {
  margin: 0;
  max-width: var(--read-max);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.batch-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.batch-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.batch-no {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: #fbeee4;
  padding: 2px 8px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.batch-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.batch-item .text-link {
  margin-top: auto;
}

/* ---------- 频道总表 ---------- */
.channel-table {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- 专题场景卡 ---------- */
.topic-cards {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scene-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.scene-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lift);
}

.scene-figure {
  margin: 0;
}

.scene-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
}

.scene-card h3 {
  margin: 16px 20px 8px;
  font-size: 18px;
}

.scene-need {
  margin: 0 20px 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.scene-topic {
  margin: 0 20px 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  padding: 8px 12px;
  background: #faf7f0;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.scene-card .text-link {
  margin: 0 20px;
  margin-top: auto;
}

/* ---------- 术语提示条 ---------- */
.term-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.term-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.term-bubble {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.term-bubble .term-name {
  margin-bottom: 6px;
}

.term-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.term-note {
  margin: 0;
  max-width: var(--read-max);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 编排方法入口 ---------- */
.method-entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.method-figure {
  min-width: 0;
}

.method-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.method-copy {
  min-width: 0;
}

.method-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.method-copy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.78;
}

.method-copy .btn-outline {
  margin-top: 4px;
}

/* ---------- 近期调整摘要 ---------- */
.journal-brief {
  padding: 40px 0;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.brief-col {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.brief-col h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--brand);
}

.brief-col p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

/* ---------- 首页相关链接条 ---------- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.related-links-item {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* =========================================================
   5. PAGES — 站点缘起 origin.html
   ========================================================= */
.origin-start {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}

.origin-start-text {
  min-width: 0;
}

.origin-start-text h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.origin-start-text p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.82;
}

.origin-start-media {
  min-width: 0;
}

.origin-start-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.scope-and-drop {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.scope-and-drop h2 {
  margin: 0 0 8px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.scope-col {
  min-width: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.scope-col-in {
  border-top: 3px solid var(--brand);
}

.scope-col-out {
  border-top: 3px solid var(--accent);
}

.scope-col h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--brand);
}

.scope-col-out h3 {
  color: var(--accent);
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  border-bottom: 1px dashed var(--line-soft);
}

.scope-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.scope-col-out .scope-list li::before {
  background: var(--accent);
}

.structure-timeline {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.structure-timeline h2 {
  margin: 0 0 8px;
}

.timeline-list {
  position: relative;
  margin: 20px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 8px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.timeline-item .batch-no {
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.timeline-item p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.start-here {
  padding: 40px 0 8px;
}

.start-here h2 {
  margin: 0 0 8px;
}

.start-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.start-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.start-item h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.start-item p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.start-item .entry-link {
  margin-top: auto;
}

/* =========================================================
   6. PAGES — 编排方法 method.html
   ========================================================= */
.method-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.method-section:first-child {
  padding-top: 12px;
}

.method-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.method-section > p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.method-section .content-figure {
  margin: 18px 0 0;
}

.method-section .content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* 任务三条 */
.task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: task;
}

.task-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-card);
}

.task-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand);
}

.task-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

/* 五步过程 */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 18px 0 18px 56px;
  border-bottom: 1px dashed var(--line);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .step-no {
  position: absolute;
  left: 0;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.process-step p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.process-step .step-output {
  margin: 0;
  padding: 6px 10px;
  display: inline-block;
  background: #faf7f0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

/* 结果对照 */
.result-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.result-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.result-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand);
}

.result-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

/* 经验 */
.lesson-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

.lesson-item {
  min-width: 0;
  padding: 14px 18px;
  background: #fbf9f4;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.lesson-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.lesson-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.section-tail {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.section-tail a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  margin-right: 8px;
}

.section-tail a:hover,
.section-tail a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 注记栏 */
.method-notes {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.note-group {
  min-width: 0;
}

.note-group h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.03em;
}

.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  margin-bottom: 2px;
}

.note-list a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed transparent;
}

.note-list a:hover,
.note-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.note-group.note-back {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.note-group.note-back .btn-outline {
  width: 100%;
  min-height: 40px;
  font-size: 14px;
}

/* =========================================================
   7. PAGES — 频道与专题 catalog.html
   ========================================================= */
.channel-table,
.topic-list,
.field-cards,
.precheck {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.channel-table h2,
.topic-list h2,
.field-cards h2,
.precheck h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.topic-list .section-intro,
.channel-table .section-intro,
.field-cards .section-intro,
.precheck .section-intro {
  margin-bottom: 18px;
}

.topic-figure {
  margin: 0 0 24px;
}

.topic-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
}

.topic-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item-reverse {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
}

.topic-item-reverse .topic-media {
  order: 2;
}

.topic-item-reverse .topic-body {
  order: 1;
}

.topic-media {
  min-width: 0;
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.topic-body {
  min-width: 0;
}

.topic-no {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 8px;
  background: #fbeee4;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius);
}

.topic-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.topic-body > p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.topic-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
}

.topic-meta dt {
  color: var(--ink-soft);
  font-weight: 500;
}

.topic-meta dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

/* 字段卡 */
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.field-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.field-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: var(--brand);
}

.field-card > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.field-sample {
  margin: 0;
  padding: 8px 10px;
  background: #faf7f0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.field-value {
  font-family: var(--font-mono);
  color: var(--brand);
  font-weight: 600;
}

/* 进入前核对 */
.precheck-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: precheck;
}

.precheck-list li {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  counter-increment: precheck;
}

.precheck-list li::before {
  content: counter(precheck);
  position: absolute;
  left: 16px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}

.precheck-list h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.precheck-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.precheck-list p a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.precheck-list p a:hover,
.precheck-list p a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* =========================================================
   8. PAGES — 术语与标注 glossary.html
   ========================================================= */
.term-list,
.field-rules,
.misuse {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.term-list h2,
.field-rules h2,
.misuse h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.term-defs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 16px 0 0;
}

.term-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.term-item:last-child {
  border-bottom: none;
}

.term-item .term-name {
  font-size: 15px;
  color: var(--brand);
  align-self: start;
  padding-top: 1px;
}

.term-body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.78;
}

.term-body .term-example {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.term-figure {
  margin: 22px 0 0;
}

.term-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* 字段规范表 */
.field-rules .table-scroll {
  margin-top: 14px;
}

/* 误用对照 */
.misuse-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.misuse-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.misuse-wrong,
.misuse-right,
.misuse-reason {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.65;
}

.misuse-wrong {
  color: #a13a1a;
  padding-left: 20px;
  position: relative;
}

.misuse-wrong::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #c05a35;
  font-weight: 700;
}

.misuse-right {
  color: var(--brand);
  font-weight: 600;
  padding-left: 20px;
  position: relative;
}

.misuse-right::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.misuse-reason {
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--line-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* 速查栏 */
.glossary-index {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.glossary-index h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.aside-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list li {
  border-bottom: 1px dashed var(--line-soft);
}

.index-list li:last-child {
  border-bottom: none;
}

.index-list a {
  display: block;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--accent);
}

.aside-figure {
  margin: 4px 0 0;
}

.aside-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* =========================================================
   9. PAGES — 近期动态 journal.html
   ========================================================= */
.batch-index {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
}

.batch-index-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.batch-index-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.batch-index-item .batch-no {
  margin-bottom: 6px;
}

.batch-index-scope {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
}

.batch-detail {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.batch-head {
  margin-bottom: 20px;
}

.batch-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  background: #fbeee4;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius);
}

.batch-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.batch-summary {
  margin: 0;
  max-width: var(--read-max);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.batch-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.batch-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.batch-col-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--brand);
}

.batch-records {
  margin: 0;
  padding: 0;
  list-style: none;
}

.batch-record {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.batch-record:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.batch-record-text {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.batch-record-scope {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.how-to-look-back {
  padding: 32px 0 8px;
}

.lookback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  margin-top: 18px;
}

.lookback-figure {
  min-width: 0;
}

.lookback-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.lookback-text {
  min-width: 0;
}

.lookback-text p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}

.lookback-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lookback-links li {
  margin-bottom: 6px;
}

.lookback-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.lookback-links a:hover,
.lookback-links a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* =========================================================
   10. PAGES — 问题与反馈 faq.html
   ========================================================= */
.qa-list {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.qa-item {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.qa-item:last-child {
  margin-bottom: 0;
}

.qa-summary {
  position: relative;
  display: block;
  padding: 14px 44px 14px 18px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.qa-summary::-webkit-details-marker {
  display: none;
}

.qa-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.qa-item[open] .qa-summary::after {
  content: "−";
}

.qa-item[open] .qa-summary {
  border-bottom: 1px solid var(--line-soft);
  background: #fbf9f4;
}

.qa-summary:hover {
  color: var(--brand);
}

.qa-body {
  padding: 14px 18px;
}

.qa-body p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.78;
}

.qa-body p:last-child {
  margin-bottom: 0;
}

.qa-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.qa-body a:hover,
.qa-body a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 自查 */
.self-check {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.check-item:last-child {
  border-bottom: none;
}

.check-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
}

.check-text {
  min-width: 0;
}

.check-text h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}

.check-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.check-text p a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.check-text p a:hover,
.check-text p a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 反馈信息组织 */
.feedback-shape {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.feedback-media {
  min-width: 0;
}

.feedback-media .content-figure {
  margin: 0;
}

.feedback-media .content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.feedback-text {
  min-width: 0;
}

.feedback-text > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.78;
}

.shape-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shape-item {
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.shape-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.shape-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* 相关页面 */
.related-pages {
  padding: 28px 0 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.related-item {
  min-width: 0;
}

.related-item > a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-item > a:hover,
.related-item > a:focus-visible {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lift);
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--brand);
}

.related-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   11. PAGES — 404
   ========================================================= */
.site-error {
  background: var(--paper);
}

.error-main {
  padding: 48px 0 56px;
}

.error-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.error-panel {
  min-width: 0;
}

.error-code {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0;
}

.error-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
}

.error-lead {
  margin: 0 0 20px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.78;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-hints {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.error-hints h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  color: var(--brand);
}

.error-hint-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-hint-list li {
  border-bottom: 1px dashed var(--line-soft);
}

.error-hint-list li:last-child {
  border-bottom: none;
}

.error-hint-list a {
  display: block;
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.error-hint-list a:hover,
.error-hint-list a:focus-visible {
  color: var(--accent);
}

/* =========================================================
   12. RESPONSIVE — 960 / 720 / 480
   ========================================================= */
@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 14px;
  }

  .nav-link.is-current::after {
    left: 9px;
    right: 9px;
  }

  .hero-grid {
    gap: 32px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .card-grid,
  .brief-grid,
  .batch-strip,
  .term-row,
  .start-list,
  .field-grid,
  .result-compare,
  .precheck-list,
  .batch-columns {
    gap: 16px;
  }

  .batch-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }

  .shell {
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .mobile-drawer {
    top: var(--header-h-compact);
  }

  .site-header.is-compact .mobile-drawer {
    top: var(--header-h-compact);
  }

  .breadcrumb,
  .breadcrumb-inner,
  .page-header,
  section.page-title,
  section.page-title.shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-header {
    padding-top: 16px;
  }

  section.page-title {
    padding-top: 10px;
  }

  .page-title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .recent-batches,
  .channel-table,
  .topic-cards,
  .term-strip,
  .journal-brief {
    padding: 28px 0;
  }

  .method-entry {
    padding: 32px 0;
  }

  .batch-strip,
  .card-grid,
  .brief-grid,
  .term-row,
  .start-list,
  .field-grid,
  .result-compare,
  .precheck-list,
  .batch-columns,
  .scope-columns,
  .misuse-list,
  .related-list {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .method-figure {
    order: -1;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 18px 0;
  }

  .layout-shell {
    padding-top: 20px;
  }

  .method-notes,
  .glossary-index {
    position: static;
    top: auto;
  }

  .origin-start {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0 32px;
  }

  .origin-start-media {
    order: 2;
  }

  .origin-start-media img {
    aspect-ratio: 16 / 10;
  }

  .scope-and-drop,
  .structure-timeline,
  .start-here {
    padding: 28px 0;
  }

  .start-here {
    padding-bottom: 8px;
  }

  .timeline-list {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -28px;
  }

  .method-section {
    padding: 22px 0;
  }

  .task-list {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 16px 0 16px 48px;
  }

  .process-step .step-no {
    top: 16px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .term-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .term-item .term-name {
    padding-top: 0;
  }

  .topic-item,
  .topic-item-reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-item-reverse .topic-media,
  .topic-item-reverse .topic-body {
    order: 0;
  }

  .topic-figure img {
    aspect-ratio: 16 / 10;
  }

  .channel-table,
  .topic-list,
  .field-cards,
  .precheck,
  .term-list,
  .field-rules,
  .misuse,
  .batch-index,
  .batch-detail,
  .qa-list,
  .self-check,
  .feedback-shape,
  .related-pages {
    padding: 24px 0;
  }

  .batch-index-list {
    grid-template-columns: 1fr;
  }

  .lookback-layout,
  .feedback-inner,
  .error-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lookback-figure {
    order: 2;
  }

  .feedback-media {
    order: 2;
  }

  .error-main {
    padding: 32px 0 40px;
  }

  .error-code {
    font-size: 56px;
  }

  .related-links {
    padding: 16px 18px;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .footer-bottom {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .footer-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
  }

  /* 表格改为字段对照块 */
  .table-scroll {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .data-table {
    min-width: 0;
    display: block;
    font-size: 14.5px;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .data-table tbody {
    display: block;
  }

  .data-table tbody tr {
    display: block;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
  }

  .data-table tbody tr:nth-child(even) {
    background: var(--surface);
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    line-height: 1.65;
    white-space: normal;
  }

  .data-table tbody td:last-child {
    border-bottom: none;
  }

  .data-table tbody td:first-child {
    background: #faf7f0;
    font-weight: 700;
    color: var(--brand);
    white-space: normal;
  }

  .data-table tbody td:first-child::before {
    content: "频道";
    color: var(--ink-soft);
    font-weight: 500;
  }

  .data-table tbody td:nth-child(2)::before {
    content: "覆盖题材";
  }

  .data-table tbody td:nth-child(3)::before {
    content: "条目字段";
  }

  .data-table tbody td:nth-child(4)::before {
    content: "适合场景";
  }

  .data-table tbody td:nth-child(5)::before {
    content: "入口";
  }

  .data-table tbody td::before {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 13px;
  }

  .data-table tbody td:first-child::before {
    display: none;
  }

  .data-table tbody td:nth-child(1) {
    grid-template-columns: 1fr;
  }

  /* 字段规范表（glossary）改为纵向 */
  .field-rules .data-table tbody td:first-child::before {
    content: "字段名";
  }

  .field-rules .data-table tbody td:nth-child(2)::before {
    content: "允许写法";
  }

  .field-rules .data-table tbody td:nth-child(3)::before {
    content: "需要避免";
  }

  .field-rules .data-table tbody td:nth-child(3) {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .shell {
    padding: 0 14px;
  }

  .breadcrumb,
  .breadcrumb-inner,
  .page-header,
  section.page-title,
  section.page-title.shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 11px 18px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .method-copy .btn-outline,
  .note-group.note-back .btn-outline {
    width: 100%;
  }

  .error-actions .btn {
    width: 100%;
  }

  .related-links {
    padding: 14px;
  }

  .related-links-label {
    flex-basis: 100%;
  }

  .data-table tbody td {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 9px 12px;
  }

  .data-table tbody td:first-child {
    grid-template-columns: 1fr;
  }

  .field-rules .data-table tbody td:nth-child(3) {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .error-code {
    font-size: 48px;
  }

  .qa-summary {
    padding: 13px 40px 13px 14px;
    font-size: 15px;
  }

  .qa-body {
    padding: 12px 14px;
  }

  .check-item {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
