:root {
  --line-blue: #1f4fa8;
  --line-blue-dark: #16397c;
  --line-orange: #d97706;
  --ink: #16202e;
  --ink-soft: #3d4a5c;
  --ink-mute: #6b7686;
  --bg-page: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-line: #e6eaf0;
  --border: #d8dee7;
  --border-strong: #b9c2cf;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(22, 32, 46, 0.06);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", "DejaVu Sans Mono", Consolas, "Courier New", monospace;
  --container: 1160px;
  --gutter: 20px;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--line-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--line-blue-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

time {
  font-style: normal;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin-top: 8px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--line-blue);
  outline-offset: 2px;
}

/* ============================================================
   layout — 全站骨架
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
  padding: 10px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--line-blue-dark);
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--line-blue);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 6px 0 #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-mute);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list > li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--line-blue);
  border-bottom-color: var(--border-strong);
}

.nav-link.is-current {
  color: var(--line-blue);
  font-weight: 700;
  border-bottom-color: var(--line-blue);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 18px 0 0;
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--line-blue);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.page-description {
  margin-top: 12px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-media {
  margin-top: 20px;
  max-width: 720px;
}

.page-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--line-blue);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: baseline;
}

.footer-about {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 720px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-mute);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--line-blue);
  color: #ffffff;
  border-color: var(--line-blue);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--line-blue-dark);
  border-color: var(--line-blue-dark);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--line-blue);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue-dark);
  background: #f7f9fc;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
}

.link-inline::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.link-inline:hover,
.link-inline:focus-visible {
  color: var(--line-blue-dark);
}

/* 通用区块标题 */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-desc {
  margin-top: 8px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-intro {
  margin-top: 8px;
  margin-bottom: 20px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-lead {
  margin-top: 8px;
  margin-bottom: 20px;
  max-width: 860px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-foot {
  margin-top: 20px;
}

.sub-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

/* FAQ 通用 */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--line-blue);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ============================================================
   components — 首页
   ============================================================ */

.home-main {
  display: block;
}

/* 首屏：左侧文案 + 右侧主视觉 */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--line-orange);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 560px;
}

.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
}

/* 频道线路总览 */
.section-channels {
  border-top: 0;
}

.channel-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.channel-feature-body {
  min-width: 0;
}

.channel-line-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-orange);
  margin-bottom: 8px;
}

.channel-feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.channel-feature-text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.channel-points {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-points > li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-points > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-blue);
}

.channel-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.channel-feature-figure {
  min-width: 0;
}

.channel-feature-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.channel-rows {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 56px minmax(120px, 0.8fr) minmax(0, 1.6fr) minmax(88px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--bg-line);
  background: #ffffff;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-row:hover {
  background: #f9fbfd;
}

.channel-row-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-orange);
}

.channel-row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.channel-row-name:hover,
.channel-row-name:focus-visible {
  color: var(--line-blue);
}

.channel-row-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-row-tag {
  justify-self: end;
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  white-space: nowrap;
}

/* 专题片单速览 */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.special-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.special-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffffff;
  background: var(--line-orange);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.special-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.special-scope,
.special-basis,
.special-channels {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.special-channels {
  color: var(--ink-mute);
}

.special-card .link-inline {
  margin-top: 14px;
}

/* 条目字段与收录边界摘要 */
.field-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.field-col {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.field-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bg-line);
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.7;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-blue);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  text-align: center;
  white-space: nowrap;
}

.field-text {
  color: var(--ink-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.7;
}

.boundary-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-orange);
  background: #fdf6ec;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  text-align: center;
  white-space: nowrap;
}

.boundary-text {
  color: var(--ink-soft);
}

/* 查阅路径三步概览 */
.path-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: path;
}

.path-item {
  display: grid;
  grid-template-columns: 56px minmax(140px, 0.55fr) minmax(0, 1.45fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.path-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  background: var(--line-blue);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  text-align: center;
}

.path-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.path-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 收录范围调整记录摘要 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: grid;
  grid-template-columns: 108px minmax(120px, 0.6fr) minmax(0, 1.4fr) minmax(120px, 0.6fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-orange);
  border-radius: var(--radius-sm);
}

.update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.update-target {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.update-reason {
  font-size: 14px;
  color: var(--ink-soft);
}

.update-scope {
  font-size: 13px;
  color: var(--ink-mute);
}

/* 站内页面索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.index-col {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.index-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--bg-line);
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--line-blue);
}

/* ============================================================
   pages — 内页两栏结构
   ============================================================ */

.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
}

.page-layout.sidebar-left > aside {
  order: 1;
}

.page-layout.sidebar-left > .layout-content,
.page-layout.sidebar-left > .special-content,
.page-layout.sidebar-left > .page-content,
.page-layout.sidebar-left > .content-column {
  order: 2;
}

/* 频道分类页：分类树 aside */
.channel-tree {
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.sidebar-note {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.tree-group {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}

.tree-group:first-of-type {
  border-top: 0;
}

.tree-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.tree-summary::-webkit-details-marker {
  display: none;
}

.tree-summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--line-blue);
}

.tree-group[open] .tree-summary::after {
  content: "−";
}

.tree-name {
  font-size: 14px;
}

.tree-tag {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0 8px 12px;
}

.tree-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 13px;
  color: var(--ink-soft);
}

.tree-list a:hover,
.tree-list a:focus-visible {
  color: var(--line-blue);
}

/* 频道详情区块 */
.layout-content {
  min-width: 0;
}

.channel-block {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.channel-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.channel-figure {
  margin: 16px 0 20px;
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.channel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.channel-col {
  min-width: 0;
}

.dot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dot-list > li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.dot-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-blue);
}

.field-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.field-inline > li {
  font-size: 13px;
}

.field-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-blue);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.channel-boundary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-left: 3px solid var(--line-orange);
  border-radius: var(--radius-sm);
}

.channel-entry {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.channel-faq {
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

/* 专题片单页 */
.special-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.72fr);
}

.special-directory {
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.aside-note {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.directory-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

.directory-link:hover,
.directory-link:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

.directory-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-orange);
  flex: 0 0 auto;
}

.directory-name {
  font-weight: 600;
  color: var(--ink);
}

.directory-tag {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-mute);
  white-space: nowrap;
}

.aside-foot {
  margin-top: 14px;
  font-size: 13px;
}

.special-content {
  min-width: 0;
}

.special-details {
  padding-bottom: 8px;
}

.special-details .special-card {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.special-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-line);
  background: var(--bg-soft);
}

.special-head .special-no {
  margin-bottom: 0;
  align-self: center;
}

.special-head-text {
  min-width: 0;
}

.special-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.special-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-mute);
}

.special-figure {
  margin: 0;
  padding: 20px 20px 0;
}

.special-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.special-body {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.special-block {
  min-width: 0;
}

.block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--line-blue);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--bg-line);
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.meta-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-orange);
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.special-faq,
.special-related {
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.related-link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* 条目字段说明页 */
.field-aside {
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.aside-nav {
  margin-top: 12px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-list a:hover,
.aside-list a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

.aside-figure {
  margin-top: 16px;
}

.aside-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.content-column {
  min-width: 0;
}

.field-table-section,
.boundary-section,
.misread-section,
.related-section {
  padding: 0 0 28px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.field-table-section {
  border-top: 0;
  padding-top: 0;
}

.section-figure {
  margin: 16px 0 20px;
}

.section-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--bg-line);
}

.field-table {
  min-width: 560px;
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--bg-line);
  line-height: 1.7;
}

.field-table thead th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.field-table tbody th {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-blue);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody td {
  color: var(--ink-soft);
}

.rule-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-orange);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.rule-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.rule-item .rule-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 14px;
  color: var(--ink-soft);
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

/* 查阅路径指引页 */
.page-aside {
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 84px;
}

.aside-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}

.steps-nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.steps-nav-item a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

.steps-nav-item a:hover,
.steps-nav-item a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

.page-content {
  min-width: 0;
}

.phenomena-section,
.steps-section,
.faq-section {
  padding: 0 0 28px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.phenomena-section {
  border-top: 0;
  padding-top: 0;
}

.phenomena-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phenomenon-item {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.phenomenon-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.phenomenon-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  flex: 1 1 auto;
}

.phenomenon-link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--line-blue);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.step-block {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--line-orange);
  border-radius: var(--radius-sm);
}

.step-key {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.75;
}

.step-key + .step-key {
  margin-top: 8px;
}

.step-key-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-orange);
  white-space: nowrap;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 收录范围调整记录页 */
.section-log,
.section-feedback {
  border-top: 0;
  padding: 0 0 32px;
}

.section-feedback {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.log-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 18px;
}

.log-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.log-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.log-tag {
  font-size: 12px;
  color: var(--line-orange);
  background: #fdf6ec;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.log-subject {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.log-reason {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.log-impact {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.log-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--line-blue);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  margin-right: 8px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feedback-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bg-line);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-list > li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.feedback-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-blue);
}

.feedback-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 404 页 */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
}

.error-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 720px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--line-orange);
  margin-bottom: 10px;
}

.error-main .error-panel h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.error-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints {
  margin-top: 32px;
  max-width: 720px;
}

.error-hints h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.hint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hint-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
}

.hint-list a:hover,
.hint-list a:focus-visible {
  border-color: var(--line-blue);
  color: var(--line-blue);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure {
    order: -1;
  }

  .channel-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .special-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout.sidebar-left,
  .special-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-tree,
  .special-directory,
  .field-aside,
  .page-aside {
    position: static;
    top: auto;
  }

  .page-layout.sidebar-left > aside {
    order: 0;
  }

  .page-layout.sidebar-left > .layout-content,
  .page-layout.sidebar-left > .special-content,
  .page-layout.sidebar-left > .page-content,
  .page-layout.sidebar-left > .content-column {
    order: 1;
  }

  .page-layout.sidebar-left > .page-content {
    order: 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    padding: 4px 0 6px;
    border-top: 1px solid var(--bg-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0 10px;
  }

  .field-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .path-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .path-item .path-text {
    grid-column: 2 / -1;
  }

  .channel-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .channel-row-desc {
    grid-column: 2 / -1;
  }

  .phenomena-list,
  .feedback-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .inner-main {
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 14px;
  }

  .hero-inner {
    padding: 28px var(--gutter) 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section {
    padding: 28px 0;
  }

  .section-title {
    font-size: 19px;
  }

  .channel-feature {
    padding: 18px;
  }

  .channel-feature-title {
    font-size: 18px;
  }

  .special-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .special-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .special-figure {
    padding: 16px 16px 0;
  }

  .special-head {
    padding: 14px 16px;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-item,
  .boundary-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-name,
  .boundary-name {
    justify-self: start;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-index {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .step-key {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .error-main {
    padding: 36px var(--gutter) 48px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-main .error-panel h1 {
    font-size: 22px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .aside-toggle {
    display: block;
  }

  .steps-nav {
    display: none;
  }

  .steps-nav.is-open {
    display: flex;
  }
}
