/* =========================================================
   天美传媒一线二线 · 全站样式
   摄影档案风 / 灰白纸面 / 暗房棕红强调
   ========================================================= */

/* ---------- base：变量与重置 ---------- */
:root {
  --canvas: #f5f4f1;
  --paper: #ffffff;
  --ink: #17181a;
  --ink-soft: #3d3f42;
  --muted: #6a6d70;
  --rule: #d7d4cd;
  --rule-strong: #b9b5ac;
  --accent: #8c3b2e;
  --accent-soft: #a9503f;
  --paper-alt: #efede8;

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shell: 1120px;
  --measure: 680px;
  --gutter: 24px;
  --radius: 2px;
  --header-h: 64px;
  --space-section: 56px;
  --space-section-sm: 40px;
}

:root[data-theme="dark"] {
  --canvas: #141416;
  --paper: #1d1e21;
  --ink: #e8e6e1;
  --ink-soft: #cfccc5;
  --muted: #9a9b98;
  --rule: #33353a;
  --rule-strong: #4a4c52;
  --accent: #c96a55;
  --accent-soft: #db8168;
  --paper-alt: #232428;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #141416;
    --paper: #1d1e21;
    --ink: #e8e6e1;
    --ink-soft: #cfccc5;
    --muted: #9a9b98;
    --rule: #33353a;
    --rule-strong: #4a4c52;
    --accent: #c96a55;
    --accent-soft: #db8168;
    --paper-alt: #232428;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
figure {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 12px;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.3;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 5px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

/* 可访问性工具类 */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 140ms ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--canvas);
  text-decoration: none;
}

/* ---------- layout：全站骨架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.brand-mark:hover {
  color: var(--accent);
  text-decoration: none;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.primary-nav a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--rule-strong);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  bottom: 16px;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.mobile-nav ul {
  padding: 8px var(--gutter) 20px;
  max-width: var(--shell);
  margin: 0 auto;
}

.mobile-nav li {
  border-bottom: 1px solid var(--rule);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  min-height: 44px;
  font-size: 15px;
}

.mobile-nav a.is-current {
  color: var(--accent);
}

.mobile-nav .nav-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-section);
}

/* 面包屑与页面标题区（全站统一） */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--rule-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 18px 0 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.page-title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22em;
}

.page-head,
.page-title-block {
  max-width: var(--measure);
  margin-bottom: 32px;
}

.page-subtitle {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.meta-line,
.page-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item + .meta-item::before {
  content: "—";
  color: var(--rule-strong);
}

.meta-sep {
  color: var(--rule-strong);
}

/* ---------- components：通用 ---------- */
.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  margin-bottom: 6px;
}

.section-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46em;
  margin: 0;
}

.section-more {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section-more a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.section-more a:hover {
  text-decoration: none;
  color: var(--accent-soft);
}

.section-note,
.section-lead {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 20px;
}

.note-line {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

.note-line a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* 层级标签 */
.tier-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  white-space: nowrap;
}

a.tier-tag:hover {
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
}

/* 条目列表（首页 + 频道索引共用） */
.entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.entry-item {
  display: grid;
  grid-template-columns: 96px 160px minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.entry-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
  word-break: break-all;
}

.entry-thumb {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 160ms ease;
}

.entry-item:hover .entry-thumb img {
  filter: saturate(1.06);
}

.entry-item:hover {
  border-bottom-color: var(--rule-strong);
}

.entry-item:hover .entry-code {
  text-decoration: underline;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.entry-body h3 a {
  color: var(--ink);
}

.entry-body h3 a:hover {
  color: var(--accent);
}

.entry-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.entry-body .meta-line {
  margin-top: 8px;
}

.entry-item > .tier-tag {
  align-self: start;
  margin-top: 2px;
}

/* 图片说明 */
figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 8px 0 0;
}

/* 通用表格 */
.spec-table,
.rule-table,
.quick-table,
.order-table {
  font-size: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.spec-table caption,
.rule-table caption,
.quick-table caption,
.order-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 8px;
}

.spec-table th,
.spec-table td,
.rule-table th,
.rule-table td,
.quick-table th,
.quick-table td,
.order-table th,
.order-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.65;
}

.spec-table thead th,
.rule-table thead th,
.quick-table thead th,
.order-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}

.spec-table tbody th,
.rule-table tbody th,
.quick-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td,
.rule-table tbody tr:last-child th,
.rule-table tbody tr:last-child td,
.quick-table tbody tr:last-child th,
.quick-table tbody tr:last-child td,
.order-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 相关链接组 */
.related-links,
.related-list,
.link-list,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
}

.related-links a,
.related-list a,
.link-list a,
.link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

.related-links a:hover,
.related-list a:hover,
.link-list a:hover,
.link-row a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ---------- pages：首页 ---------- */
.home-main {
  padding-bottom: 0;
}

.hero-section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
}

.issue-number {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero-lead h1 {
  margin: 0 0 14px;
  max-width: 16em;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.hero-summary {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.issue-toc {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

.toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.issue-toc ol {
  border-top: 1px solid var(--rule);
}

.issue-toc li {
  border-bottom: 1px solid var(--rule);
}

.issue-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.issue-toc a:hover {
  color: var(--accent);
  text-decoration: none;
}

.issue-toc a::before {
  content: counter(toc-item, decimal-leading-zero);
  counter-increment: toc-item;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.issue-toc ol {
  counter-reset: toc-item;
}

.hero-figure {
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

/* 首页各区块间距 */
.tier-brief,
.channel-brief,
.playlist-brief,
.watch-brief,
.log-brief,
.map-brief {
  padding: var(--space-section) 0 0;
}

.tier-brief {
  margin-top: var(--space-section);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-section);
}

.tier-brief .section-inner {
  max-width: var(--shell);
}

.tier-brief h2 {
  margin-bottom: 10px;
}

.tier-definition {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 16px;
}

.tier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.tier-tags li {
  display: inline-flex;
}

.tier-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0;
}

.tier-more a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.tier-more a:hover {
  text-decoration: none;
}

/* 频道索引速览 */
.count-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  margin: 0 0 18px;
}

/* 专题片单预览 */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-thumb {
  margin: 0 0 12px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 160ms ease;
}

.playlist-card:hover .card-thumb img {
  filter: saturate(1.06);
}

.playlist-card:hover .card-thumb {
  border-color: var(--rule-strong);
}

.card-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 6px;
}

.playlist-card h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.playlist-card h3 a {
  color: var(--ink);
}

.playlist-card h3 a:hover {
  color: var(--accent);
}

.playlist-card > p:last-child {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.reading-order {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* 观看准备摘要 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.step-item .step-body {
  min-width: 0;
}

.step-item .step-body h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.step-item .step-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

/* 更订记录摘要 */
.timeline {
  border-top: 1px solid var(--rule);
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 140px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.timeline-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.timeline-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  min-width: 0;
}

/* 内容地图入口 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 8px;
}

.map-group h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}

.map-group ul {
  display: flex;
  flex-direction: column;
}

.map-group li {
  border-bottom: 1px solid var(--rule);
}

.map-group li:last-child {
  border-bottom: 0;
}

.map-group a {
  display: block;
  padding: 9px 0;
  min-height: 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

.map-group a:hover {
  color: var(--accent);
}

/* ---------- pages：频道索引 ---------- */
.group-condition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.group-condition-text {
  min-width: 0;
}

.group-condition-text h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.group-condition-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.group-condition-text p:last-child {
  margin-bottom: 0;
}

.group-condition-figure {
  margin: 0;
  min-width: 0;
}

.group-condition-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.group-anchor {
  margin-bottom: 24px;
}

.group-anchor ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-bottom: 1px solid var(--rule);
}

.group-anchor a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.group-anchor a:hover {
  color: var(--accent);
  text-decoration: none;
}

.group-anchor a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.channel-index-page .count-note,
.page-channel-index .count-note {
  padding: 20px 24px;
  margin-bottom: 32px;
}

.count-note h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.count-note > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 14px;
  letter-spacing: normal;
}

.prefix-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}

.prefix-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.prefix-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.prefix-item dd {
  margin: 0;
}

.tier-group {
  margin-bottom: 40px;
}

.tier-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 0;
}

.tier-group-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.tier-group-head .meta-line {
  margin: 0;
}

.meta-spec {
  margin-bottom: 40px;
}

.meta-spec h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.meta-spec > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 16px;
}

.related-links {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.related-links h2 {
  flex: 0 0 100%;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

/* ---------- pages：专题片单 ---------- */
.playlist-hero {
  margin-bottom: 40px;
}

.media-block {
  margin: 0 0 18px;
}

.media-block img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.playlist-scope {
  max-width: var(--measure);
}

.playlist-scope h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.playlist-scope p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.playlist-editorial {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.playlist-editorial > h2,
.playlist-entries > h2,
.playlist-rules > h2,
.playlist-links > h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.two-col-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.col-reason,
.col-structure {
  min-width: 0;
}

.col-reason h3,
.col-structure h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.col-reason p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.structure-list {
  display: flex;
  flex-direction: column;
}

.structure-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.structure-list li:last-child {
  border-bottom: 0;
}

.structure-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.playlist-entries {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.entry-sequence {
  border-top: 1px solid var(--rule);
}

.entry-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.entry-order {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.entry-row .entry-code {
  padding-top: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.entry-row .entry-body h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.entry-row .entry-body h3 a {
  color: var(--ink);
}

.entry-row .entry-body h3 a:hover {
  color: var(--accent);
}

.entry-row .entry-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.playlist-rules {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.rule-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.rule-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rule-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.rule-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: var(--measure);
}

.playlist-links {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

/* ---------- pages：分层口径 ---------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.article-body {
  min-width: 0;
}

.content-section {
  margin-bottom: 40px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.content-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: var(--measure);
}

.tier-tag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
}

.tier-tag-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}

.tier-tag-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1 1 220px;
  min-width: 0;
}

.rule-table {
  margin: 14px 0 0;
}

.quick-table {
  margin: 0 0 16px;
}

.misread-list {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
}

.misread-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.misread-item:last-child {
  border-bottom: 0;
}

.misread-wrong {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 4px;
}

.misread-wrong::before {
  content: "误读";
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.misread-fix {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

.misread-fix::before {
  content: "纠正";
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.page-aside {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-title {
  font-size: 1rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.aside-figure {
  margin: 0 0 14px;
}

.aside-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.quick-table {
  font-size: 12px;
}

.quick-table th,
.quick-table td {
  padding: 7px 8px;
}

.quick-table thead th {
  font-size: 10px;
}

.aside-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.aside-links ul {
  display: flex;
  flex-direction: column;
}

.aside-links li {
  border-bottom: 1px solid var(--rule);
}

.aside-links li:last-child {
  border-bottom: 0;
}

.aside-links a {
  display: block;
  padding: 8px 0;
  min-height: 44px;
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-links a:hover {
  color: var(--accent);
}

.section-narrow {
  max-width: var(--measure);
}

.change-rules {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
}

.change-rules li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- pages：观看准备 ---------- */
.guide-section {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.guide-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.guide-section .section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.guide-section .section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lead-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 16px;
}

.guide-figure {
  margin: 0 0 20px;
  max-width: var(--measure);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.checklist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  counter-reset: check-item;
}

.checklist li {
  counter-increment: check-item;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.checklist li::before {
  content: counter(check-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.checklist li h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.checklist li p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

.spec-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.spec-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.spec-list li h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.spec-list li p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

.order-table {
  max-width: var(--measure);
}

.order-table .col-order {
  width: 72px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0;
}

.guide-feedback .lead-text {
  margin-bottom: 14px;
}

/* ---------- pages：来源与更订 ---------- */
.section {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.section h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.col-types-list h3,
.col-types-media h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.col-types-list > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

.type-list {
  display: flex;
  flex-direction: column;
}

.type-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.type-list li:last-child {
  border-bottom: 0;
}

.type-list strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.media-figure {
  margin: 0 0 12px;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.col-types-media p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.log-timeline {
  border-top: 1px solid var(--rule);
}

.log-item {
  display: grid;
  grid-template-columns: 110px 150px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.log-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-all;
}

.log-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  min-width: 0;
}

.revision-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.revision-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.revision-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.revision-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 6px;
  max-width: var(--measure);
}

.revision-item p:last-child {
  margin-bottom: 0;
}

.section-usage > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 12px;
}

.usage-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.usage-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-related {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.section-related h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

/* ---------- pages：内容地图 ---------- */
.map-groups {
  margin-bottom: 40px;
}

.map-groups > h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.map-group {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.map-group:last-child {
  margin-bottom: 0;
}

.map-groups .map-group h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
}

.map-entry-list {
  display: flex;
  flex-direction: column;
}

.map-entry {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 220px);
  gap: 20px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.map-entry:last-child {
  border-bottom: 0;
}

.map-entry-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.map-entry-name a {
  color: var(--ink);
}

.map-entry-name a:hover {
  color: var(--accent);
}

.map-entry-role {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  min-width: 0;
}

.map-entry-path {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  word-break: break-all;
  min-width: 0;
}

.path-rules {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.path-rules > h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.rules-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.rules-text {
  min-width: 0;
}

.rules-text .rule-item {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}

.rules-text .rule-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rule-example {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 6px 0 0;
  word-break: break-all;
}

.rules-figure {
  margin: 0;
  min-width: 0;
}

.rules-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.map-maintenance {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.map-maintenance > h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.maintenance-item {
  min-width: 0;
}

.maintenance-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.maintenance-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- pages：反馈与更正 ---------- */
.feedback-types,
.feedback-detail,
.feedback-flow,
.feedback-exclude {
  margin-bottom: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.feedback-types {
  padding-top: 0;
  border-top: 0;
}

.feedback-types > h2,
.feedback-detail > h2,
.feedback-flow > h2,
.feedback-exclude > h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.type-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.type-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.type-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.detail-col {
  min-width: 0;
}

.detail-col h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.detail-col > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.points-list {
  display: flex;
  flex-direction: column;
  counter-reset: point-item;
}

.points-list li {
  counter-increment: point-item;
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.points-list li:last-child {
  border-bottom: 0;
}

.points-list li::before {
  content: counter(point-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.points-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.detail-figure {
  margin: 0 0 12px;
}

.detail-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

.flow-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.flow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.flow-step .step-body {
  min-width: 0;
}

.flow-step .step-body h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.flow-step .step-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

.exclude-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}

.exclude-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.exclude-list li h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.exclude-list li p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 46em;
}

.related-links {
  margin-bottom: 0;
}

/* ---------- pages：404 ---------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}

.error-inner {
  max-width: var(--measure);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 12px;
}

.error-title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  margin: 0 0 14px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-home,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.btn-home {
  background: var(--ink);
  color: var(--canvas);
}

.btn-home:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-link {
  color: var(--ink);
}

.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- layout：页脚 ---------- */
.site-footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--rule);
  background: var(--canvas);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  max-width: 30em;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-col li a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--gutter) 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  max-width: 60em;
}

.footer-copy {
  flex: 0 0 auto;
}

/* ---------- responsive：1024px ---------- */
@media (max-width: 1024px) {
  :root {
    --space-section: 48px;
  }

  .header-inner {
    gap: 14px;
  }

  .primary-nav a {
    padding: 0 8px;
    font-size: 13px;
  }

  .hero-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
  }

  .entry-item {
    grid-template-columns: 84px 140px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .group-condition {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .rules-body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .map-entry {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 180px);
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---------- responsive：720px ---------- */
@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --header-h: 56px;
    --space-section: 40px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: var(--header-h);
    gap: 10px;
  }

  .brand-mark {
    font-size: 0.95rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
    order: 2;
  }

  .theme-toggle {
    order: 1;
    font-size: 10px;
    padding: 4px 8px;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .inner-main {
    padding-bottom: var(--space-section-sm);
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 11px;
    gap: 6px;
  }

  .page-header {
    padding-top: 14px;
    margin-bottom: 18px;
  }

  .page-title {
    margin-bottom: 14px;
  }

  .page-head,
  .page-title-block {
    margin-bottom: 24px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  /* 首页 */
  .hero-section {
    padding-top: 24px;
  }

  .hero-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
  }

  .hero-lead {
    order: 1;
    width: 100%;
  }

  .hero-lead h1 {
    max-width: none;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    padding: 0 16px;
  }

  .issue-toc {
    order: 2;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 14px;
    width: 100%;
  }

  .hero-figure {
    order: 3;
    width: 100%;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .tier-brief,
  .channel-brief,
  .playlist-brief,
  .watch-brief,
  .log-brief,
  .map-brief {
    padding-top: var(--space-section-sm);
  }

  .tier-brief {
    margin-top: var(--space-section-sm);
  }

  /* 条目列表改为缩略图在上 */
  .entry-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code tag"
      "thumb thumb"
      "body body";
    gap: 10px 12px;
    padding: 16px 0;
  }

  .entry-item .entry-code {
    grid-area: code;
    padding-top: 0;
    align-self: center;
  }

  .entry-item .entry-thumb {
    grid-area: thumb;
  }

  .entry-item .entry-body {
    grid-area: body;
  }

  .entry-item > .tier-tag {
    grid-area: tag;
    justify-self: end;
    margin-top: 0;
  }

  .entry-body p {
    font-size: 13.5px;
  }

  .playlist-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .step-item .step-num {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .timeline-date {
    font-size: 11px;
  }

  .timeline-note {
    font-size: 13.5px;
  }

  .map-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 频道索引 */
  .group-condition {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .group-anchor ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 16px;
    -webkit-overflow-scrolling: touch;
  }

  .group-anchor li {
    flex: 0 0 auto;
  }

  .channel-index-page .count-note,
  .page-channel-index .count-note {
    padding: 16px;
  }

  .prefix-list {
    flex-direction: column;
    gap: 6px;
  }

  .spec-table,
  .rule-table,
  .quick-table,
  .order-table {
    font-size: 13px;
  }

  .spec-table th,
  .spec-table td,
  .rule-table th,
  .rule-table td,
  .quick-table th,
  .quick-table td,
  .order-table th,
  .order-table td {
    padding: 8px 10px;
  }

  /* 专题片单 */
  .media-block img {
    aspect-ratio: 16 / 9;
  }

  .two-col-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0;
  }

  .entry-order {
    gap: 8px;
  }

  /* 分层口径：侧栏移出，排在主内容之后 */
  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .article-body {
    order: 1;
    width: 100%;
  }

  .page-aside {
    order: 2;
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .content-section {
    margin-bottom: 32px;
  }

  .content-section > p {
    font-size: 14.5px;
  }

  .tier-tag-item {
    padding: 10px 12px;
  }

  .tier-tag-desc {
    flex-basis: 100%;
  }

  /* 观看准备 */
  .guide-section {
    margin-bottom: 32px;
    padding-top: 22px;
  }

  .guide-section .section-head {
    gap: 8px;
  }

  .checklist li {
    padding: 12px 0 12px 28px;
  }

  .checklist li::before {
    top: 14px;
  }

  .lead-text {
    font-size: 14.5px;
  }

  /* 来源与更订 */
  .section {
    margin-bottom: 32px;
    padding-top: 22px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .log-date {
    font-size: 11px;
  }

  .log-summary {
    font-size: 13.5px;
  }

  /* 内容地图 */
  .map-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .map-entry-role {
    font-size: 13.5px;
  }

  .rules-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .maintenance-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 反馈与更正 */
  .type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .detail-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .flow-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .flow-step .step-num {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  /* 404 */
  .error-main {
    padding: 48px var(--gutter) 64px;
  }

  .error-actions {
    gap: 10px;
  }

  .btn-home,
  .btn-link {
    flex: 1 1 auto;
    padding: 0 16px;
  }

  /* 页脚 */
  .site-footer {
    margin-top: var(--space-section-sm);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px var(--gutter) 20px;
  }

  .footer-col li a {
    min-height: 44px;
    font-size: 14px;
  }

  .footer-bottom {
    padding: 14px var(--gutter) 28px;
    flex-direction: column;
    gap: 6px;
  }

  .footer-bottom p {
    font-size: 10.5px;
  }
}

/* ---------- 主题切换按钮文字（由 JS 写入 aria-pressed，样式保持一致） ---------- */
.theme-toggle[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 锚点高亮（JS 添加类，不影响初始可见性） ---------- */
.tier-group-head.is-flash h2,
.group-anchor a.is-flash {
  color: var(--accent);
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
