/* ==========================================================================
   天美麻花 · 档案馆索引风样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg: #f4f2ec;
  --bg-panel: #fbfaf6;
  --ink: #1f3a34;
  --ink-soft: #3c4f49;
  --accent: #a35a2a;
  --line: #d8d3c6;
  --line-strong: #c3bcab;
  --muted: #6b6a63;
  --ok: #2f6b4f;
  --pending: #a35a2a;
  --off: #7a7a72;
  --radius: 3px;
  --radius-lg: 4px;
  --shell: 1080px;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   layout · 全站骨架
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.brand-slogan {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  color: var(--ink);
  font-size: 14px;
}

.menu-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--ink);
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: var(--ink);
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-group-toggle,
.nav-single {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
}

.nav-group-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.16s ease;
}

.nav-group-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-group-toggle:hover,
.nav-single:hover,
.nav-group-toggle:focus-visible,
.nav-single:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-single.is-current,
.nav-group-toggle.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 168px;
  padding: 6px 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-group-toggle[aria-expanded="true"] + .nav-sub {
  display: block;
}

.nav-sub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background-color: #eeeae0;
  color: var(--ink);
}

.nav-sub a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 22px 0 6px;
}

.page-title {
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

.page-heading,
.page-title-block {
  padding: 10px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-task,
.page-lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meta-label {
  color: var(--muted);
}

.meta-value,
.meta-num,
.num {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.meta-sep {
  color: var(--line-strong);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-top: 24px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.site-footer {
  background-color: #eeeae0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-about p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.footer-copy {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease;
}

.btn-primary {
  background-color: var(--ink);
  color: #f7f5ef;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #162d28;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  color: var(--accent);
}

/* 区块标题组 */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  color: var(--ink);
}

.section-head p,
.section-lead,
.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.section-lead {
  margin-bottom: 16px;
}

/* 筛选条件条 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 20px;
  padding: 14px 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.filter-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #f7f5ef;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.4;
  transition: border-color 0.16s ease, color 0.16s ease,
    background-color 0.16s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #f7f5ef;
}

.filter-clear,
.filter-reset button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.filter-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-reset {
  margin-left: auto;
}

.filter-result,
.filter-summary {
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 13.5px;
}

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--off);
  flex: 0 0 auto;
}

.status-ok .status-dot,
.status-dot.status-ok,
.status-dot.status-consistent {
  background-color: var(--ok);
}

.status-consistent {
  background-color: var(--ok);
}

.status-review .status-dot,
.status-dot.status-review,
.status-dot.status-pending {
  background-color: var(--pending);
}

.status-pending {
  background-color: var(--pending);
}

.status-offline .status-dot,
.status-dot.status-offline,
.status-dot.status-off {
  background-color: var(--off);
}

.status-off {
  background-color: var(--off);
}

/* 定义列表 */
.field-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
}

.field-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.field-item dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.field-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.def-list,
.define-list {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.def-list-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.def-list-inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.define-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.def-item,
.define-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.def-item dt,
.define-item dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.def-item dd,
.define-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* 编号步骤 */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background-color: var(--accent);
  border-radius: 2px;
  color: #fdfbf6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 12px;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item .step-action {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.7;
}

.step-item .step-rule,
.step-item .step-standard {
  flex: 1 1 100%;
  min-width: 0;
  padding-left: 38px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

/* 相关条目 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-links-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.related-links-item:hover {
  border-color: var(--ink);
  color: var(--accent);
}

/* 右侧栏 */
.page-aside,
.content-aside {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 16px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-lead,
.aside-note,
.aside-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.aside-links,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.aside-link-item,
.aside-item {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.aside-link-item:last-child,
.aside-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-link-item a,
.aside-item a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.aside-link-item a:hover,
.aside-item a:hover {
  color: var(--accent);
}

.aside-link-item p,
.aside-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* 通用图片容器 */
.content-media,
.guide-figure,
.page-figure,
.log-figure,
.section-media,
.section-figure,
.topic-figure,
.channel-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #e6e1d5;
}

.content-media img,
.guide-figure img,
.page-figure img,
.log-figure img,
.section-media img,
.section-figure img,
.topic-figure img,
.channel-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-media figcaption,
.guide-figure figcaption,
.page-figure figcaption,
.log-figure figcaption,
.section-media figcaption,
.section-figure figcaption,
.topic-figure figcaption {
  padding: 8px 12px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

.home-main {
  padding-top: 30px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 420px);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
}

.hero-text {
  min-width: 0;
  padding-top: 6px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  background-color: #eae5d8;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e6e1d5;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 10px 14px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.index-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background-color: rgba(31, 58, 52, 0.92);
  border-radius: 2px;
  color: #f4f2ec;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.content-media-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.content-media-primary img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
}

/* 四格事实带 */
.fact-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-item {
  min-width: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line-strong);
}

.fact-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.fact-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.fact-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.fact-link:hover {
  color: var(--ink);
}

/* 频道索引总表 */
.channel-table-section {
  padding: 36px 0 8px;
}

.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.channel-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 2fr) 96px 96px;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.16s ease, background-color 0.16s ease,
    transform 0.16s ease;
}

.channel-row:hover {
  background-color: var(--bg-panel);
  border-bottom-color: var(--ink);
  transform: translateY(-1px);
}

.channel-code {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.channel-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 600;
}

.channel-scope {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.channel-enter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 32px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}

.channel-enter::after {
  content: "→";
  margin-left: 4px;
}

.channel-enter:hover {
  color: var(--ink);
}

/* 字段口径说明 */
.field-definition-section {
  padding: 36px 0 8px;
}

/* 近期收录批次 */
.recent-batch-section {
  padding: 36px 0 8px;
}

.batch-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.batch-date {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.batch-rows {
  display: flex;
  flex-direction: column;
}

.batch-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.6fr) minmax(0, 2fr);
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.batch-row:last-child {
  border-bottom: 0;
}

.batch-channel {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.batch-title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}

.batch-title:hover {
  color: var(--accent);
}

.batch-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 观看前核对三步 */
.check-steps-section {
  padding: 36px 0 8px;
}

.check-steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.check-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.check-step:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.check-step .step-action {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}

.check-step .step-rule {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.boundary-note {
  min-width: 0;
  padding: 16px;
  background-color: #efe9dc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.boundary-note h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.boundary-note p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.note-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.note-link:hover {
  color: var(--ink);
}

/* 索引常见疑问 */
.faq-section {
  padding: 36px 0 8px;
}

/* 下一步带 */
.next-step-band {
  margin-top: 36px;
  padding: 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-step-band h2 {
  margin-bottom: 16px;
  font-size: 19px;
  color: var(--ink);
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.next-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  padding: 14px;
  background-color: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.next-link:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.next-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.next-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 内页通用结构
   ========================================================================== */

.inner-main > section,
.page-content > section {
  padding-top: 28px;
}

.inner-main > section:first-of-type,
.page-content > section:first-of-type {
  padding-top: 0;
}

.content-section h2,
.symptom-section h2,
.cross-section h2,
.no-action-section h2,
.log-section h2,
.section h2 {
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--ink);
}

.content-section > p,
.symptom-section > p,
.cross-section > p,
.log-section > p,
.section > p {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

/* ==========================================================================
   pages · 频道索引
   ========================================================================== */

.page-channel-index .filter-bar {
  margin-top: 4px;
}

.page-channel-index .filter-summary {
  margin: 14px 0 6px;
}

.channel-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.channel-table .channel-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.35fr) 96px 72px;
  gap: 14px;
  align-items: start;
  min-height: 0;
  padding: 16px 12px;
  background-color: transparent;
  border-bottom: 1px solid var(--line);
  transform: none;
}

.channel-table .channel-row:hover {
  background-color: var(--bg-panel);
  border-bottom-color: var(--ink);
  transform: none;
}

.channel-cell {
  min-width: 0;
}

.code-tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: #efe9dc;
  border-radius: 2px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.channel-title {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.channel-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.channel-genre p,
.channel-org p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.channel-table .field-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.channel-table .channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.status-text {
  color: var(--ink-soft);
  font-size: 13px;
}

.channel-enter .row-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}

.channel-enter .row-link::after {
  content: "→";
  margin-left: 4px;
}

.channel-enter .row-link:hover {
  color: var(--ink);
}

.page-channel-index .rule-block {
  margin-top: 32px;
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-channel-index .rule-block h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.page-channel-index .rule-block > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.85;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item {
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.compare-block {
  margin-top: 32px;
}

.compare-block h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.compare-block > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.compare-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-pair + .compare-pair {
  margin-top: 12px;
}

.compare-names {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.compare-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: #f7f5ef;
}

.compare-desc {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 专题档案
   ========================================================================== */

.page-topic-archive .page-title-block {
  padding-bottom: 22px;
}

.archive-index {
  padding-top: 24px;
}

.archive-index .section-title {
  margin-bottom: 6px;
  font-size: 18px;
}

.archive-index .section-lead {
  margin-bottom: 12px;
}

.archive-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #f7f5ef;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.archive-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.topic-list {
  padding-top: 30px;
}

.topic-list .section-title {
  margin-bottom: 6px;
  font-size: 20px;
}

.archive-group {
  margin-top: 26px;
  scroll-margin-top: 96px;
}

.group-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.topic-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.topic-card + .topic-card {
  margin-top: 14px;
}

.topic-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.topic-figure {
  min-width: 0;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-figure figcaption {
  padding: 6px 10px;
  font-size: 12px;
}

.topic-head {
  min-width: 0;
}

.topic-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.topic-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.topic-fields .field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topic-fields .field-key {
  color: var(--muted);
}

.topic-fields .field-val {
  color: var(--ink);
  font-weight: 600;
}

.topic-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.entry-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 84px 92px 72px;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13.5px;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-title {
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.7;
}

.entry-genre {
  color: var(--muted);
}

.entry-duration {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.entry-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.entry-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--off);
}

.entry-status.status-ok::before {
  background-color: var(--ok);
}

.entry-status.status-pending::before {
  background-color: var(--pending);
}

.entry-status.status-off::before {
  background-color: var(--off);
}

.entry-fields {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.entry-fields .section-title {
  margin-bottom: 6px;
  font-size: 20px;
}

.topic-diff {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.topic-diff .section-title {
  margin-bottom: 6px;
  font-size: 20px;
}

.diff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.diff-item {
  min-width: 0;
  padding: 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.diff-item h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.diff-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 观看指南
   ========================================================================== */

.page-viewing-guide .page-title-block {
  padding-bottom: 20px;
}

.guide-figure {
  margin-top: 22px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.guide-overview {
  padding-top: 28px;
}

.guide-overview h2,
.guide-scenes h2,
.guide-mismatch h2,
.guide-notice h2 {
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--ink);
}

.guide-overview > p,
.guide-scenes > p,
.guide-mismatch > p,
.guide-notice > p {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.cond-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cond-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cond-item dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
}

.cond-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.guide-scenes {
  padding-top: 32px;
}

.scene-block {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-block + .scene-block {
  margin-top: 14px;
}

.scene-block h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

/* 观看指南步骤：步骤号独立列，正文占满剩余宽度 */
.scene-block .step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-block .step-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas:
    "num action"
    ". standard";
  gap: 4px 12px;
  align-items: start;
  padding: 10px 12px;
  background-color: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scene-block .step-item .step-num {
  grid-area: num;
  align-self: start;
}

.scene-block .step-item .step-action {
  grid-area: action;
  min-width: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}

.scene-block .step-item .step-standard {
  grid-area: standard;
  min-width: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.guide-mismatch {
  padding-top: 32px;
}

.mismatch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mismatch-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
}

.mismatch-item h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.mismatch-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.guide-notice {
  padding-top: 32px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-notice .boundary-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: #efe9dc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-notice .boundary-item dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
}

.guide-notice .boundary-item dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 入口核验
   ========================================================================== */

.page-entry-check .page-head {
  padding-top: 22px;
  border-bottom: 1px solid var(--line);
}

.page-entry-check .page-head .page-title-block {
  border-bottom: 0;
  padding-bottom: 16px;
}

.page-content {
  min-width: 0;
}

.page-entry-check .page-layout {
  padding-top: 20px;
}

.page-entry-check .page-header {
  padding-bottom: 2px;
}

.section-media {
  margin: 6px 0 18px;
}

.section-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.field-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.3fr) minmax(0, 1.5fr);
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-panel);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row.field-head {
  background-color: #eae5d8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.field-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.field-judge,
.field-note {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}

.field-head .field-name,
.field-head .field-judge,
.field-head .field-note {
  color: var(--ink);
  font-weight: 600;
}

.page-entry-check .step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-entry-check .step-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-body {
  min-width: 0;
}

.step-body .step-action {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
}

.step-body .step-rule {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-item {
  min-width: 0;
  padding: 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-item .status-dot {
  margin-bottom: 8px;
}

.status-item h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.status-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: flow;
}

.flow-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: var(--ink);
  border-radius: 2px;
  color: #f4f2ec;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.flow-body {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 问题分类
   ========================================================================== */

.page-troubleshooting .page-title-block {
  padding-bottom: 20px;
}

.page-figure {
  margin-top: 22px;
}

.page-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.symptom-section {
  padding-top: 30px;
}

.symptom-group {
  min-width: 0;
  margin-top: 16px;
  padding: 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 96px;
}

.symptom-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.symptom-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  background-color: #efe9dc;
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.symptom-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.symptom-list dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.symptom-list dd {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.symptom-list dd:last-child {
  margin-bottom: 0;
}

.cross-section {
  padding-top: 32px;
}

.cross-section .rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cross-section .rule-list li {
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.cross-section .rule-list strong {
  color: var(--ink);
}

.no-action-section {
  padding-top: 32px;
}

.no-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.no-action-list li {
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.no-action-list strong {
  color: var(--ink);
}

/* ==========================================================================
   pages · 维护记录
   ========================================================================== */

.page-feedback-log .page-head {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.log-figure {
  margin-top: 22px;
}

.log-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.log-section {
  padding-top: 32px;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-item:hover {
  border-color: var(--ink);
}

.timeline-date {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.date-num {
  display: inline-block;
  padding: 2px 8px;
  background-color: #efe9dc;
  border-radius: 2px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.timeline-body {
  min-width: 0;
}

.timeline-body h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.timeline-desc,
.timeline-scope,
.timeline-status {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.timeline-scope {
  margin-top: 4px;
}

.timeline-scope .field-label,
.timeline-status .field-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-status {
  margin-top: 4px;
  color: var(--ink-soft);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  padding: 12px 14px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-item h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.result-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 站点说明
   ========================================================================== */

.page-site-notes .page-head {
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-head-main {
  min-width: 0;
}

.content-main {
  min-width: 0;
}

.section {
  padding-top: 30px;
}

.section-scope {
  padding-top: 4px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.scope-col {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-in {
  border-top: 3px solid var(--ok);
}

.scope-out {
  border-top: 3px solid var(--off);
}

.scope-col h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.scope-in .scope-list li::before {
  background-color: var(--ok);
}

.scope-out .scope-list li::before {
  background-color: var(--off);
}

.section-figure {
  margin: 4px 0 16px;
}

.section-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

.section-maintain .define-list {
  margin-top: 14px;
}

.section-fields .define-list {
  margin-top: 6px;
}

.page-site-notes .boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.page-site-notes .boundary-list li {
  padding: 12px 14px;
  background-color: #efe9dc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 32px 28px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 26px;
  color: var(--ink);
}

.error-text {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.error-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.error-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  background-color: var(--ink);
  color: #f4f2ec;
  border-radius: var(--radius);
  font-size: 13.5px;
}

.skip-link:focus {
  top: 12px;
}

/* 内容区滚动出现动画（仅作为增强，不影响初始可见） */
@media (prefers-reduced-motion: no-preference) {
  .batch-date,
  .group-title {
    animation: rise-in 0.4s ease both;
  }

  @keyframes rise-in {
    from {
      transform: translateY(8px);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .page-layout,
  .layout-shell {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 272px;
  }

  .channel-table .channel-row {
    grid-template-columns: 62px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 88px 64px;
    gap: 10px;
  }

  .timeline-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 12px 20px;
    gap: 10px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-group-toggle,
  .nav-single {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .nav-single.is-current,
  .nav-group-toggle.is-current {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
    padding-left: 10px;
  }

  .nav-group-toggle::after {
    margin-left: auto;
  }

  .nav-sub {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 6px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
  }

  .nav-group:hover .nav-sub,
  .nav-group:focus-within .nav-sub {
    display: none;
  }

  .nav-group-toggle[aria-expanded="true"] + .nav-sub {
    display: block;
  }

  .nav-sub a {
    min-height: 44px;
    padding: 6px 4px 6px 20px;
    border-left: 2px solid var(--line);
  }

  .nav-sub a.is-current {
    border-left-color: var(--accent);
    padding-left: 20px;
  }

  .site-main {
    padding: 0 20px 44px;
  }

  .inner-main {
    padding-top: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .page-aside,
  .content-aside {
    position: static;
    top: auto;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 27px;
  }

  .content-media-primary img {
    aspect-ratio: 16 / 8;
  }

  .fact-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .channel-rows {
    border-top: 0;
  }

  .channel-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 84px;
    grid-template-areas:
      "code name status"
      "code scope scope"
      "code enter enter";
    gap: 6px 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background-color: var(--bg-panel);
  }

  .channel-row .channel-code {
    grid-area: code;
    align-self: start;
    padding-top: 2px;
  }

  .channel-row .channel-name {
    grid-area: name;
  }

  .channel-row .channel-scope {
    grid-area: scope;
  }

  .channel-row .channel-status {
    grid-area: status;
    justify-self: end;
  }

  .channel-row .channel-enter {
    grid-area: enter;
    justify-content: flex-start;
  }

  .channel-row:hover {
    transform: none;
  }

  .channel-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 0;
  }

  .channel-table .channel-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "code name"
      "genre genre"
      "org org"
      "status enter";
    gap: 8px 12px;
    padding: 14px;
    background-color: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .channel-table .channel-row .channel-code {
    grid-area: code;
  }

  .channel-table .channel-row .channel-name {
    grid-area: name;
  }

  .channel-table .channel-row .channel-genre {
    grid-area: genre;
  }

  .channel-table .channel-row .channel-org {
    grid-area: org;
  }

  .channel-table .channel-row .channel-status {
    grid-area: status;
    justify-self: start;
    padding-top: 6px;
  }

  .channel-table .channel-row .channel-enter {
    grid-area: enter;
    justify-self: end;
  }

  .channel-table .channel-row:hover {
    border-bottom-color: var(--line);
  }

  .batch-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .batch-note {
    grid-column: 2 / 3;
  }

  .check-steps-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .check-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-link {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .def-list-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 20px 26px;
  }

  .topic-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-figure img {
    aspect-ratio: 16 / 8;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) 76px;
    grid-template-areas:
      "title title"
      "genre duration"
      "status status";
    gap: 4px 10px;
    padding: 9px 0;
  }

  .entry-row .entry-title {
    grid-area: title;
  }

  .entry-row .entry-genre {
    grid-area: genre;
  }

  .entry-row .entry-duration {
    grid-area: duration;
    text-align: right;
  }

  .entry-row .entry-status {
    grid-area: status;
  }

  .diff-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .compare-vs {
    justify-self: start;
    min-width: 44px;
    padding: 0 8px;
  }

  .guide-figure img,
  .page-figure img,
  .log-figure img,
  .section-figure img {
    aspect-ratio: 16 / 8;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px;
  }

  .field-row.field-head {
    display: none;
  }

  .field-name {
    padding-bottom: 4px;
    border-bottom: 1px dashed var(--line);
  }

  .field-judge::before {
    content: "判断：";
    color: var(--muted);
    font-size: 12px;
  }

  .field-note::before {
    content: "示例：";
    color: var(--muted);
    font-size: 12px;
  }

  .status-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-item::before {
    left: -26px;
  }

  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-panel h1 {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-slogan {
    font-size: 11.5px;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .home-main {
    padding-top: 22px;
  }

  .hero-section {
    gap: 20px;
    padding-bottom: 24px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .fact-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .fact-item {
    padding-left: 12px;
  }

  .section-head h2,
  .section-title,
  .content-section h2,
  .symptom-section h2,
  .cross-section h2,
  .no-action-section h2,
  .log-section h2,
  .section h2,
  .guide-overview h2,
  .guide-scenes h2,
  .guide-mismatch h2,
  .guide-notice h2 {
    font-size: 19px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .filter-options {
    width: 100%;
  }

  .filter-chip {
    min-height: 40px;
    flex: 1 1 auto;
  }

  .filter-reset {
    margin-left: 0;
  }

  .filter-reset button,
  .filter-clear {
    width: 100%;
    min-height: 40px;
  }

  .channel-row {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "code name"
      "code status"
      "scope scope"
      "enter enter";
    gap: 6px 10px;
  }

  .channel-row .channel-status {
    justify-self: start;
  }

  .channel-table .channel-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "code"
      "name"
      "genre"
      "org"
      "status"
      "enter";
  }

  .channel-table .channel-row .channel-enter {
    justify-self: start;
  }

  .batch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .batch-note {
    grid-column: auto;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .def-list-two-col,
  .def-list-inline,
  .define-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cond-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-block {
    padding: 12px;
  }

  .scene-block .step-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 10px;
  }

  .scene-block .step-item .step-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .page-entry-check .step-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .flow-item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .flow-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .timeline-list {
    padding-left: 16px;
  }

  .timeline-item {
    padding: 12px;
  }

  .timeline-item::before {
    left: -22px;
  }

  .topic-card {
    padding: 12px;
  }

  .archive-index-list {
    padding: 10px;
  }

  .archive-chip {
    min-height: 40px;
    flex: 1 1 auto;
    justify-content: center;
  }

  .next-step-band {
    padding: 18px;
  }

  .next-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .related-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .related-links-item {
    justify-content: center;
    min-height: 44px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 10px 12px;
  }

  .faq-answer {
    padding: 0 12px 12px;
  }

  .page-aside,
  .content-aside {
    padding: 14px;
  }

  .aside-link-item a,
  .aside-item a {
    min-height: 32px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 24px;
  }

  .footer-links a {
    min-height: 44px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 44px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }
}
