/* ==========================================================================
   手机光棍影院 · 全站样式表
   校园刊物风：纸感底色、栏目色标签、索引式排版
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版基调
   -------------------------------------------------------------------------- */

:root {
  --ink: #1f2a44;
  --ink-soft: #3d4a68;
  --ink-mute: #6b7488;
  --teal: #2f7f7a;
  --teal-dark: #24605c;
  --orange: #e08a3c;
  --paper: #f7f5f0;
  --paper-raise: #fffdf9;
  --line: #d9d5cc;
  --line-soft: #e8e4da;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 0 #e4dfd4, 0 6px 18px rgba(31, 42, 68, 0.05);
  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Songti SC", serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --wrap: 1120px;
  --sidebar-w: 232px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 通用文字链接：带下划线的站内指引 */
.text-link {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* --------------------------------------------------------------------------
   2. layout — 页头、侧栏、主内容、页脚骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 ---------------------------------------------------------------- */

.site-header {
  background: var(--paper-raise);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateY(-2px);
}

.brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0;
}

/* 主导航 -------------------------------------------------------------- */

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  top: 25px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 15px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--teal-dark);
  background: var(--paper);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--orange);
}

/* 顶部线索说明条 ------------------------------------------------------- */

.clue-bar {
  background: var(--ink);
  color: #e9e6de;
}

.clue-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* 页面布局：桌面侧栏 + 主内容 ------------------------------------------ */

.page-layout {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* 侧栏在左：真实 DOM 中 .sidebar-left 位于布局容器自身 */
.page-layout.sidebar-left {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

/* 侧栏在左：.sidebar-left 位于 body 或祖先节点时 */
.sidebar-left .page-layout {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

/* 侧栏 -------------------------------------------------------------- */

.site-sidebar,
.sidebar {
  min-width: 0;
}

.sidebar-title,
.sidebar-heading,
.tree-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.sidebar-tree,
.tree-nav {
  font-size: 15px;
}

.tree-group {
  margin-bottom: 4px;
}

.tree-head,
.tree-link {
  display: block;
  padding: 8px 10px;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tree-head:hover,
.tree-link:hover,
.tree-head:focus-visible,
.tree-link:focus-visible {
  color: var(--teal-dark);
  background: var(--paper-raise);
  text-decoration: none;
}

.tree-group.is-open > .tree-head,
.tree-group.is-open > .tree-link,
.tree-link.is-current {
  color: var(--ink);
  font-weight: 700;
  background: var(--paper-raise);
  border-left-color: var(--orange);
}

.tree-list,
.tree-sub,
.tree-sub-list,
.tree-sublist {
  margin: 4px 0 10px;
  padding: 0 0 0 10px;
  list-style: none;
  border-left: 1px dashed var(--line);
}

.tree-list li,
.tree-sub li,
.tree-sublist li {
  margin: 0 0 2px;
}

.tree-list .tree-link,
.tree-sub-link,
.tree-sublink {
  display: block;
  padding: 5px 8px;
  color: var(--ink-mute);
  font-size: 14px;
  border-left: 0;
}

.tree-sub-link:hover,
.tree-sublink:hover,
.tree-sub-link:focus-visible,
.tree-sublink:focus-visible {
  color: var(--teal-dark);
  background: var(--paper-raise);
  text-decoration: none;
}

.tree-label {
  display: block;
  padding: 6px 10px;
  color: var(--ink-mute);
  font-size: 14px;
}

/* 主内容 -------------------------------------------------------------- */

.site-main {
  min-width: 0;
}

.inner-main {
  min-width: 0;
}

/* 面包屑 -------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--ink-mute);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ink-mute);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--teal-dark);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页标题区 ---------------------------------------------------------- */

.page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.page-description {
  max-width: 760px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.page-meta {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
}

.page-meta a {
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.page-meta a:hover,
.page-meta a:focus-visible {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

/* 内容区块通用 -------------------------------------------------------- */

.section {
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--teal);
  line-height: 1.4;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.section-lead a {
  border-bottom: 1px solid var(--line);
}

.section-lead a:hover,
.section-lead a:focus-visible {
  border-bottom-color: var(--orange);
}

.section-foot,
.section-footnote {
  margin: 16px 0 0;
  color: var(--ink-mute);
  font-size: 14px;
}

.section-foot a,
.section-footnote a {
  border-bottom: 1px solid var(--line);
}

/* 页脚 -------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  background: var(--paper-raise);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0 0 6px;
}

.footer-col a {
  color: var(--ink-mute);
  font-size: 14px;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--teal-dark);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line-soft);
}

.footer-copy {
  margin: 0;
  color: var(--ink-mute);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   3. components — 通用组件：按钮、卡片、表格、步骤、FAQ、提示块
   -------------------------------------------------------------------------- */

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: #fbf9f3;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fbf9f3;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--paper-raise);
  color: var(--orange);
  border-color: var(--orange);
  text-decoration: none;
}

/* 图片容器统一约束 ---------------------------------------------------- */

.section-figure,
.field-figure,
.guide-figure,
.note-figure,
.record-figure {
  margin: 0 0 20px;
}

.section-figure img,
.field-figure img,
.guide-figure img,
.note-figure img,
.record-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line-soft);
}

.figure-caption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* 数据表格 ------------------------------------------------------------ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raise);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

.data-table caption {
  caption-side: top;
  padding: 10px 14px;
  color: var(--ink-mute);
  font-size: 14px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fbf8f1;
}

.data-table .col-code,
.data-table .field-name {
  width: 120px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.data-table .col-label {
  width: 140px;
  color: var(--ink);
  font-weight: 600;
}

.table-caption {
  caption-side: top;
  padding: 12px 14px;
  color: var(--ink-mute);
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

/* 步骤条 -------------------------------------------------------------- */

.step-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.step-index {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.step-name {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}

.step-need {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 14px;
}

.step-desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

/* 提示块 -------------------------------------------------------------- */

.notice-block {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #fdf6ec;
  border: 1px solid #f0d9b8;
  border-radius: var(--radius);
}

.notice-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #8a5615;
}

.notice-list {
  margin: 0;
  padding-left: 1.2em;
  color: #7a5a2b;
  font-size: 14px;
  line-height: 1.7;
}

/* 相关入口 ------------------------------------------------------------ */

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  margin: 0;
}

.related-item a {
  display: block;
  padding: 14px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-left-color: var(--teal);
  color: var(--teal-dark);
  text-decoration: none;
}

/* FAQ ---------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  padding: 14px 34px 14px 4px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--orange);
}

.faq-answer {
  margin: 0;
  padding: 0 4px 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   4. pages — 首页与各内页专属模块
   -------------------------------------------------------------------------- */

/* ===== 首页 ========================================================== */

.home-main {
  min-width: 0;
}

/* 首屏 ---------------------------------------------------------------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 10px;
  display: inline-block;
  padding: 3px 10px;
  background: #eaf4f3;
  color: var(--teal-dark);
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.hero-title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-points {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.hero-points li {
  margin-bottom: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 场景选择 ------------------------------------------------------------ */

.scene-section {
  margin-bottom: 44px;
}

.scene-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.scene-item {
  margin: 0;
}

.scene-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.scene-card:hover,
.scene-card:focus-visible {
  border-left-color: var(--teal);
  background: #fdfbf6;
}

.scene-card[aria-expanded="true"] {
  border-left-color: var(--teal);
  background: #f2f8f7;
}

.scene-name {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
}

.scene-desc {
  display: block;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.scene-panel {
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--paper-raise);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.scene-panel[hidden] {
  display: none;
}

.scene-panel p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.scene-panel .text-link {
  font-size: 14px;
}

/* 题材频道总览 -------------------------------------------------------- */

.channel-section {
  margin-bottom: 44px;
}

.channel-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raise);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row > span {
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
  border-right: 1px solid var(--line-soft);
  min-width: 0;
}

.channel-row > span:last-child {
  border-right: 0;
}

.channel-head {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.channel-head > span {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}

.channel-row .col-no {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.channel-row .col-desc {
  color: var(--ink-soft);
}

.channel-row .col-type,
.channel-row .col-adj {
  color: var(--ink-mute);
  font-size: 14px;
}

/* 专题片单入口 -------------------------------------------------------- */

.playlist-section {
  margin-bottom: 44px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.playlist-media,
.playlist-cover {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.playlist-media img,
.playlist-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.playlist-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.playlist-name {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

.playlist-meta,
.playlist-theme {
  margin: 0;
  color: var(--teal-dark);
  font-size: 14px;
}

.playlist-scope {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.playlist-body .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
}

/* 字段说明与收录边界摘要 ---------------------------------------------- */

.field-section {
  margin-bottom: 44px;
}

.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.field-list {
  margin: 0;
}

.field-list dt {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

/* 整理记录速览 -------------------------------------------------------- */

.record-section {
  margin-bottom: 44px;
}

.record-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.record-group {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.record-month {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
}

.record-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.record-date {
  display: block;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
}

.record-target {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.record-reason {
  display: block;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.65;
}

/* 站内栏目索引 -------------------------------------------------------- */

.index-section {
  margin-bottom: 8px;
}

.index-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.index-item {
  margin: 0;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.index-item a:hover,
.index-item a:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  text-decoration: none;
}

.index-item span {
  color: var(--ink-mute);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* ===== 内页：题材频道 ================================================ */

.section-channel-table {
  margin-bottom: 40px;
}

.section-channel-table .channel-table {
  min-width: 0;
}

.section-channel-table .data-table {
  min-width: 620px;
}

.section-adjacent {
  margin-bottom: 40px;
}

.adjacent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.adjacent-card {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.adjacent-title {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.adjacent-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adjacent-col {
  min-width: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.section-filter {
  margin-bottom: 40px;
}

.filter-steps {
  margin-bottom: 18px;
}

.section-related {
  margin-bottom: 8px;
}

/* ===== 内页：专题片单 ================================================ */

.playlist-section .playlist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.playlist-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 2px 10px;
  color: var(--ink-mute);
  font-size: 14px;
}

.playlist-meta dt {
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

.playlist-meta dd {
  margin: 0;
  color: var(--ink-mute);
}

.compare-section {
  margin-bottom: 40px;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-heading {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-col p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.compare-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.order-section {
  margin-bottom: 8px;
}

.order-steps {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.order-step {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.order-index {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.order-name {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}

.order-desc {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.order-extend {
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.extend-title {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.extend-text {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.extend-links {
  margin: 0;
  padding-left: 1.2em;
  font-size: 15px;
}

.extend-links a {
  border-bottom: 1px solid var(--line);
}

/* ===== 内页：字段说明 ================================================ */

.field-figure {
  margin: 0 0 24px;
}

.field-section .table-wrap {
  margin-bottom: 0;
}

.boundary-section {
  margin-bottom: 40px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-col--yes {
  border-top: 3px solid var(--teal);
}

.boundary-col--no {
  border-top: 3px solid var(--orange);
}

.subsection-title {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.boundary-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.misread-section {
  margin-bottom: 8px;
}

.misread-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.misread-item {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
}

.misread-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.misread-item p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== 内页：浏览指引 ================================================ */

.guide-steps {
  margin-bottom: 40px;
}

.guide-steps .step-list {
  margin-bottom: 24px;
}

.guide-figure {
  margin: 0;
}

.reading-notes {
  margin-bottom: 40px;
}

.note-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.note-item {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}

.note-name {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.note-text {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.note-figure {
  margin: 0;
}

.guide-faq {
  margin-bottom: 40px;
}

.related-entry {
  margin-bottom: 8px;
}

/* ===== 内页：整理记录 ================================================ */

.record-figure {
  margin: 0 0 24px;
}

.record-months {
  margin-bottom: 40px;
}

.month-block {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.month-block:last-child {
  margin-bottom: 0;
}

.month-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.month-block .record-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.month-block .record-list li {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-soft);
}

.month-block .record-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.record-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 14px;
  align-items: baseline;
}

.record-scope {
  margin-bottom: 40px;
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.scope-item {
  margin: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}

.scope-name {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.scope-range {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.record-read {
  margin-bottom: 40px;
}

.read-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.read-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.read-title {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.read-text {
  margin: 0 0 10px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.7;
}

.read-steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.record-links {
  margin-bottom: 8px;
}

.link-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.link-cell {
  margin: 0;
}

.link-cell a {
  display: block;
  padding: 14px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
}

.link-cell a:hover,
.link-cell a:focus-visible {
  border-left-color: var(--orange);
  color: var(--teal-dark);
  text-decoration: none;
}

/* ===== 404 页 ======================================================== */

.error-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  text-align: center;
}

.error-block {
  margin-bottom: 40px;
}

.error-code {
  margin: 0 0 8px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.error-main h1 {
  margin: 0 0 12px;
  font-size: 28px;
}

.error-text {
  margin: 0 0 20px;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.75;
}

.error-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fbf9f3;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
}

.error-action:hover,
.error-action:focus-visible {
  background: var(--teal-dark);
  color: #fbf9f3;
  text-decoration: none;
}

.error-links h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.error-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.error-links li {
  margin: 0;
}

.error-links a {
  display: block;
  padding: 12px 14px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive — 960px 与 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .page-layout,
  .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-sidebar,
  .sidebar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .sidebar-tree,
  .tree-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 16px;
  }

  .tree-group {
    margin-bottom: 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-media {
    order: -1;
  }

  .hero-title {
    font-size: 26px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .channel-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }

  .channel-row .col-adj {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 8px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--orange);
  }

  .clue-text {
    padding: 8px 16px;
    font-size: 13px;
  }

  .page-layout {
    padding: 20px 16px 36px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 18px;
  }

  .scene-list,
  .playlist-grid,
  .field-columns,
  .record-groups,
  .adjacent-grid,
  .adjacent-cols,
  .compare-columns,
  .boundary-columns,
  .misread-list,
  .note-list,
  .order-steps,
  .read-columns,
  .scope-list,
  .link-grid,
  .related-list,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
    gap: 4px;
  }

  .channel-head {
    display: none;
  }

  .channel-row > span {
    padding: 0;
    border-right: 0;
  }

  .channel-row > span::before {
    display: inline-block;
    min-width: 68px;
    margin-right: 8px;
    color: var(--ink-mute);
    font-family: var(--font-title);
    font-size: 13px;
  }

  .channel-row .col-no::before {
    content: "编号";
  }

  .channel-row .col-desc::before {
    content: "方向";
  }

  .channel-row .col-type::before {
    content: "覆盖";
  }

  .channel-row .col-adj {
    display: block;
  }

  .channel-row .col-adj::before {
    content: "相邻";
  }

  .table-wrap {
    border: 0;
    background: transparent;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .data-table tbody th,
  .data-table tbody td {
    display: block;
    width: auto;
    padding: 4px 0;
    border-bottom: 0;
  }

  .data-table .col-code,
  .data-table .col-label,
  .data-table .field-name {
    width: auto;
    font-size: 15px;
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .scope-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .playlist-meta {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 16px 20px;
  }

  .footer-bottom {
    padding: 12px 16px 20px;
  }

  .error-main {
    padding: 48px 16px 56px;
  }

  .error-main h1 {
    font-size: 22px;
  }

  .error-links ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
