/* ============================================================
   午夜神马影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   base · 变量与重置
   ------------------------------------------------------------ */
:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #1C1C1C;
  --ink-soft: #5A5A5A;
  --ink-faint: #7C7C78;
  --line: #DCDCD6;
  --line-strong: #C4C4BC;
  --line-1: #C0392B;
  --line-2: #2C6E9B;
  --line-3: #2E7D5B;
  --line-4: #B7791F;
  --line-5: #6B4C9A;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --gap: 28px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--line-2);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   layout · 全站骨架：页头 / 主导航 / 主容器 / 页脚
   ------------------------------------------------------------ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: break-word;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 4px 0;
}

.brand-mark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--line-1);
  border-radius: 2px;
  vertical-align: baseline;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover {
  color: var(--ink);
  background: #F1F1EC;
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--line-1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

.nav-toggle-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 页头右侧查阅入口 */
.header-entry {
  flex: 0 0 auto;
}

.entry-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FCFCFA;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.entry-link:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

.entry-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.entry-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* 主内容 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: #F0F0EB;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--gap);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.back-top:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.copyright {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------
   layout · 内页统一：面包屑 / 页标题区 / 两列布局 / 侧栏
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  max-width: 72ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 72fr) minmax(240px, 28fr);
  gap: var(--gap);
  align-items: start;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 72fr) minmax(240px, 28fr);
  gap: var(--gap);
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside,
.page-aside {
  min-width: 0;
}

/* 侧栏在左的兼容分支（真实 DOM 未使用，保留结构安全） */
.sidebar-left .page-layout,
.sidebar-left .layout-shell {
  grid-template-columns: minmax(240px, 28fr) minmax(0, 72fr);
}

.sidebar-left .page-layout .layout-aside,
.sidebar-left .layout-shell .layout-aside {
  order: -1;
}

/* ------------------------------------------------------------
   components · 通用区块 / 标题 / 按钮 / 表格 / 步骤 / 卡片
   ------------------------------------------------------------ */
.section,
.content-section,
.channel-overview,
.channel-advice,
.path-steps,
.path-io,
.path-faq {
  margin-bottom: 36px;
}

.section:last-child,
.content-section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--ink);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  max-width: 72ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.section-foot a,
.section-more a,
.more-link,
.advice-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.section-foot a:hover,
.section-more a:hover,
.more-link:hover,
.advice-foot a:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  color: #FFFFFF;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-primary:hover {
  background: #A62F23;
  border-color: #A62F23;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #F1F1EC;
}

.btn-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.btn-plain:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

/* 表格 */
.field-table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table {
  min-width: 100%;
  font-size: 15px;
}

.field-caption,
.field-table-caption,
.table-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: left;
  caption-side: top;
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #F2F2ED;
  white-space: nowrap;
}

.field-table tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: #FBFBF8;
}

.field-table tbody td {
  color: var(--ink-soft);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 编号步骤（通用） */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num,
.step-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-2);
}

.step-name,
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.step-desc,
.step-text,
.step-input,
.step-output {
  font-size: 15px;
  color: var(--ink-soft);
}

.step-input,
.step-output {
  display: flex;
  gap: 6px;
}

.step-input::before {
  content: "输入";
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0 4px;
  line-height: 1.5;
}

.step-output::before {
  content: "结果";
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--line-3);
  border: 1px solid var(--line-3);
  border-radius: 2px;
  padding: 0 4px;
  line-height: 1.5;
}

.step-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.step-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 侧栏区块 */
.aside-block {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.aside-list li + li {
  margin-top: 10px;
}

.aside-list a,
.aside-link {
  display: block;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.18s ease;
}

.aside-list a:hover,
.aside-link:hover {
  color: var(--line-2);
}

.aside-note,
.aside-desc,
.aside-text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.7;
}

.aside-text a {
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.aside-media,
.aside-figure .aside-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.aside-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.aside-media figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink-faint);
}

.aside-more {
  margin-top: 12px;
  font-size: 14px;
}

.aside-more a {
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

/* 图片容器通用约束 */
.section-media,
.hero-media,
.channel-figure,
.zhuanti-media,
.field-figure,
.path-figure,
.media-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-media img,
.hero-media img,
.channel-figure img,
.zhuanti-media img,
.field-figure img,
.path-figure img,
.media-figure img {
  width: 100%;
  object-fit: cover;
}

.section-media figcaption,
.hero-media figcaption,
.zhuanti-caption,
.figure-caption,
.media-caption,
.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   pages · 首页
   ------------------------------------------------------------ */
.hero-section {
  margin-bottom: 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--gap);
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-intro {
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 2px;
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  color: var(--ink);
}

.hero-desc {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 16px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

/* 首屏线路式入口 */
.hero-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.line-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.line-item:hover {
  box-shadow: 0 2px 10px rgba(28, 28, 28, 0.07);
}

.line-pindao {
  border-top-color: var(--line-1);
}

.line-zhuanti {
  border-top-color: var(--line-3);
}

.line-ziduan {
  border-top-color: var(--line-5);
}

.line-badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.line-pindao .line-badge {
  color: var(--line-1);
}

.line-zhuanti .line-badge {
  color: var(--line-3);
}

.line-ziduan .line-badge {
  color: var(--line-5);
}

.line-title {
  font-size: 17px;
  font-weight: 600;
}

.line-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.line-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.line-link:hover {
  border-bottom-color: var(--ink);
}

.hero-next {
  margin-top: 16px;
  font-size: 14px;
}

.hero-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.hero-next a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 首页 · 题材频道方向总览 */
.channel-list {
  display: grid;
  gap: 12px;
}

.channel-list .channel-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.channel-list .channel-row:hover {
  border-color: var(--line-strong);
  background: #FCFCFA;
}

.channel-color {
  display: block;
  width: 8px;
  height: 100%;
  min-height: 40px;
  border-radius: 2px;
  background: var(--line-strong);
}

.channel-drama .channel-color {
  background: var(--line-1);
}

.channel-suspense .channel-color {
  background: var(--line-2);
}

.channel-city .channel-color {
  background: var(--line-3);
}

.channel-family .channel-color {
  background: var(--line-4);
}

.channel-era .channel-color {
  background: var(--line-5);
}

.channel-main {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
}

.channel-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.channel-list .channel-row:hover .channel-link {
  border-color: var(--ink);
  background: #F1F1EC;
}

/* 首页 · 专题片单速览 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.topic-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
}

.topic-scope,
.topic-struct {
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-struct {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.topic-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.topic-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section-topics .section-media {
  margin-top: 20px;
}

.section-topics .section-media img {
  aspect-ratio: 21 / 9;
}

/* 首页 · 浏览路径要点 */
.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-step {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.path-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-2);
}

.path-name {
  font-size: 16px;
  font-weight: 600;
}

.path-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.path-body {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 首页 · 站内更新记录 */
.update-list {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.update-item {
  display: grid;
  grid-template-columns: 108px 148px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.update-item:last-child {
  border-bottom: 0;
}

.update-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-faint);
}

.update-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.update-scope {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages · 题材频道
   ------------------------------------------------------------ */
.channel-overview .channel-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.channel-overview .channel-row:last-of-type {
  margin-bottom: 0;
}

.channel-overview .channel-plot {
  border-left-color: var(--line-1);
}

.channel-overview .channel-suspense {
  border-left-color: var(--line-2);
}

.channel-overview .channel-city {
  border-left-color: var(--line-3);
}

.channel-overview .channel-family {
  border-left-color: var(--line-4);
}

.channel-overview .channel-era {
  border-left-color: var(--line-5);
}

.channel-overview .channel-figure {
  min-width: 0;
}

.channel-overview .channel-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.channel-body {
  min-width: 0;
}

.channel-overview .channel-name {
  font-size: 18px;
}

.channel-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.channel-meta dt {
  color: var(--ink-faint);
}

.channel-meta dd {
  color: var(--ink-soft);
}

.channel-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.channel-enter:hover {
  border-color: var(--ink);
  background: #F1F1EC;
}

.channel-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--line-strong);
}

/* 首页频道行与内页频道行的色块映射 */
.channel-plot .channel-swatch {
  background: var(--line-1);
}

.channel-suspense .channel-swatch {
  background: var(--line-2);
}

.channel-city .channel-swatch {
  background: var(--line-3);
}

.channel-family .channel-swatch {
  background: var(--line-4);
}

.channel-era .channel-swatch {
  background: var(--line-5);
}

/* 频道选择建议 */
.advice-list {
  display: grid;
  gap: 12px;
}

.advice-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.advice-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-2);
}

.advice-body {
  min-width: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.advice-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.advice-foot {
  margin-top: 16px;
  font-size: 14px;
}

/* ------------------------------------------------------------
   pages · 专题片单
   ------------------------------------------------------------ */
.section-zhuanti-list .zhuanti-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-zhuanti-list .zhuanti-card:last-of-type {
  margin-bottom: 0;
}

.zhuanti-media {
  min-width: 0;
}

.zhuanti-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.zhuanti-body {
  min-width: 0;
}

.zhuanti-name {
  font-size: 18px;
  font-weight: 600;
}

.zhuanti-topic {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.zhuanti-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.meta-key {
  color: var(--ink-faint);
}

.meta-val {
  color: var(--ink-soft);
}

.zhuanti-enter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.zhuanti-enter:hover {
  border-color: var(--ink);
  background: #F1F1EC;
}

.section-zhuanti-compare .section-intro a {
  color: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.section-zhuanti-order .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-zhuanti-order .step-item {
  border-left-color: var(--line-3);
}

.section-zhuanti-order .step-num {
  color: var(--line-3);
}

.aside-block-note .aside-text {
  margin-top: 0;
}

/* ------------------------------------------------------------
   pages · 条目字段说明
   ------------------------------------------------------------ */
.field-figure {
  margin-bottom: 24px;
}

.field-figure img {
  aspect-ratio: 21 / 9;
}

.section-field-table .field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.section-field-table .field-table-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: left;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.rule-name {
  font-size: 16px;
  font-weight: 600;
}

.rule-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.boundary-name {
  font-size: 16px;
  font-weight: 600;
}

.boundary-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-note {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.boundary-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.boundary-note a:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

.aside-terms .aside-list a {
  font-size: 14px;
}

/* ------------------------------------------------------------
   pages · 浏览路径
   ------------------------------------------------------------ */
.path-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-steps .step-item {
  border-left-color: var(--line-2);
}

.path-steps .step-index {
  color: var(--line-2);
}

.path-figure {
  margin-top: 20px;
}

.path-figure img {
  aspect-ratio: 21 / 9;
}

.io-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.io-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.io-heading {
  font-size: 16px;
  font-weight: 600;
}

.io-list {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.io-term {
  color: var(--ink-faint);
}

.io-desc {
  color: var(--ink-soft);
}

/* FAQ 折叠 */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "问";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0 4px;
  line-height: 1.5;
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
  background: #FBFBF8;
}

.faq-answer {
  padding: 14px 16px 16px 42px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages · 收录边界与反馈
   ------------------------------------------------------------ */
.range-figure {
  margin-bottom: 20px;
}

.range-figure img {
  aspect-ratio: 21 / 9;
}

.range-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.range-column {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.range-include {
  border-top: 3px solid var(--line-3);
}

.range-exclude {
  border-top: 3px solid var(--line-1);
}

.range-heading {
  font-size: 16px;
  font-weight: 600;
}

.range-list {
  margin-top: 12px;
}

.range-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.range-item + .range-item {
  margin-top: 8px;
}

.range-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--line-strong);
}

.range-include .range-item::before {
  background: var(--line-3);
}

.range-exclude .range-item::before {
  background: var(--line-1);
}

.correct-list,
.feedback-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.correct-list .step-item,
.feedback-list .step-item {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-left-color: var(--line-2);
}

.feedback-list .step-item {
  border-left-color: var(--line-3);
}

.feedback-list .step-index {
  color: var(--line-3);
}

.step-body {
  min-width: 0;
}

.feedback-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note-title {
  font-size: 16px;
  font-weight: 600;
}

.note-text {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-section .section-more {
  margin-top: 18px;
}

/* ------------------------------------------------------------
   pages · 404
   ------------------------------------------------------------ */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-block {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-1);
  border-radius: var(--radius);
  background: var(--surface);
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line-1);
}

.error-block h1 {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.error-text {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  margin-top: 28px;
}

.error-links h2 {
  font-size: 18px;
  font-weight: 600;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.error-link-list a:hover {
  border-color: var(--line-2);
  background: #F4F7FA;
}

/* ------------------------------------------------------------
   responsive · 960px / 768px / 480px
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .header-inner {
    gap: 14px;
    padding: 10px 18px;
  }

  .brand-sub {
    display: none;
  }

  .nav-list a {
    padding: 0 9px;
    font-size: 14px;
  }

  .home-main,
  .inner-main {
    padding: 20px 18px 48px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 18px 22px;
  }

  .copyright {
    padding: 14px 18px 18px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .hero-lines,
  .topic-grid,
  .path-list,
  .section-zhuanti-order .step-list,
  .path-steps .step-list,
  .io-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid > :last-child:nth-child(odd),
  .path-list > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .header-entry {
    flex: 0 0 auto;
  }

  .entry-desc {
    display: none;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .page-layout,
  .sidebar-left .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .page-layout .layout-aside,
  .sidebar-left .layout-shell .layout-aside {
    order: 0;
  }

  .channel-overview .channel-row,
  .section-zhuanti-list .zhuanti-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-overview .channel-figure img,
  .zhuanti-media img {
    aspect-ratio: 16 / 9;
  }

  .rule-list,
  .boundary-grid,
  .range-columns,
  .correct-list,
  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: 96px minmax(0, 1fr);
    row-gap: 4px;
  }

  .update-scope {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .entry-link {
    padding: 6px 10px;
  }

  .entry-label {
    font-size: 13px;
  }

  .home-main,
  .inner-main {
    padding: 16px 14px 40px;
  }

  .hero-inner {
    padding: 18px;
  }

  .hero-lines,
  .topic-grid,
  .path-list,
  .section-zhuanti-order .step-list,
  .path-steps .step-list,
  .io-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid > :last-child:nth-child(odd),
  .path-list > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .channel-list .channel-row {
    grid-template-columns: 8px minmax(0, 1fr);
    row-gap: 10px;
  }

  .channel-list .channel-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .advice-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .channel-meta,
  .zhuanti-meta,
  .io-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-meta dd,
  .zhuanti-meta dd,
  .io-desc {
    margin-bottom: 6px;
  }

  .error-main {
    padding: 32px 14px 48px;
  }

  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 14px 18px;
  }

  .copyright {
    padding: 12px 14px 16px;
  }

  .faq-answer {
    padding-left: 16px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
