/* =========================================================
   秋霞电视剧影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base
   --------------------------------------------------------- */
:root {
  --brand: #1F4E45;
  --brand-dark: #163A33;
  --accent: #B5533C;
  --bg: #F5F3EF;
  --card: #FFFFFF;
  --text: #2E2E2E;
  --text-soft: #6B6B6B;
  --line: #D9D4CC;
  --border: #C9C3B8;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 78, 69, 0.06);
  --content-width: 1120px;
  --read-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--read-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* 字号档位：只作用于正文阅读区域 */
.site-body.font-small {
  --read-size: 15px;
}

.site-body.font-large {
  --read-size: 18px;
}

/* ---------------------------------------------------------
   2. layout — 全站骨架
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 0;
}

.brand:hover,
.brand:focus-visible {
  color: #F2D9C9;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  color: #E4EDEA;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link.is-current {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.font-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.font-control-label {
  font-size: 13px;
  color: #C9DAD5;
  margin-right: 4px;
}

.font-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: transparent;
  color: #E4EDEA;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.font-btn:hover,
.font-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.font-btn.is-active {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.site-footer {
  background: #1B3B35;
  color: #C9DAD5;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-group-title {
  font-size: 15px;
  color: #fff;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: #C9DAD5;
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-about {
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #B7CCC6;
  margin: 0;
  max-width: 780px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #9DB8B1;
}

.back-to-top {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 内页公共外壳 */
.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--brand);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text-soft);
}

.page-header {
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 10px;
}

.page-description {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
  max-width: 820px;
}

/* 内页两栏：正文在前，aside 在后（默认） */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
}

/* 侧栏在前的内页 */
.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

/* ---------------------------------------------------------
   3. components — 通用模块
   --------------------------------------------------------- */
.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 8px;
}

.section-desc,
.section-intro {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0 0 12px;
  max-width: 820px;
}

.section-note {
  font-size: 14px;
  color: var(--text-soft);
  margin: 14px 0 0;
}

.section-note a {
  margin-right: 14px;
}

.section-media,
.channel-figure,
.prepare-media,
.scope-media,
.hero-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-media img,
.channel-figure img,
.prepare-media img,
.scope-media img,
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #E7E3DC;
}

.section-media figcaption,
.channel-figure figcaption,
.prepare-media figcaption,
.scope-media figcaption,
.hero-media figcaption,
.media-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: #FBFAF7;
}

/* 表格 */
.catalog-table-wrap,
.field-table-caption + * {
  width: 100%;
}

.catalog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.catalog-table,
.field-table,
.relation-table {
  width: 100%;
  font-size: 15px;
  background: var(--card);
}

.catalog-table caption,
.field-table-caption,
.relation-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-soft);
  background: #FBFAF7;
  border-bottom: 1px solid var(--line);
}

.catalog-table th,
.catalog-table td,
.field-table th,
.field-table td,
.relation-table th,
.relation-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

.catalog-table thead th,
.field-table thead th,
.relation-table thead th {
  background: #EFEBE4;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.catalog-table tbody th,
.field-table tbody th {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.catalog-table tbody tr:last-child th,
.catalog-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.relation-table tbody tr:last-child th,
.relation-table tbody tr:last-child td {
  border-bottom: 0;
}

.catalog-note {
  font-size: 14px;
  color: var(--text-soft);
  margin: 12px 0 0;
}

/* 入口卡片（内页通用） */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.entry-card {
  display: block;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

a.entry-card:hover,
a.entry-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.entry-card-title,
.entry-name {
  font-size: 18px;
  color: var(--brand);
  margin: 0 0 8px;
}

.entry-card-text,
.entry-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 10px;
}

.entry-card-link,
.entry-link,
.entry-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.entry-card-link:hover,
.entry-link:hover,
.entry-more:hover {
  text-decoration: underline;
}

/* 侧栏 / 分类树 */
.sidebar,
.side-tree {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sidebar-title,
.side-tree-title {
  font-size: 16px;
  color: var(--brand);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sidebar-list,
.side-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item,
.side-tree-item {
  margin-bottom: 4px;
}

.sidebar-link,
.side-tree-link {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.side-tree-link:hover,
.side-tree-link:focus-visible {
  background: #F1EEE8;
  color: var(--brand);
}

.sidebar-link.is-current,
.side-tree-link.is-current {
  background: #EDF3F1;
  border-left-color: var(--accent);
  color: var(--brand);
  font-weight: 600;
}

.sidebar-note,
.side-tree-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

.side-tree-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #F1EEE8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--brand);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

/* 步骤清单 */
.step-list,
.prepare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-item,
.prepare-item {
  position: relative;
  padding: 16px 18px 16px 66px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
  box-shadow: var(--shadow);
}

.step-item::before,
.prepare-item::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
}

.prepare-item-title {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 6px;
}

.prepare-item-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------------------------------------------------------
   4. pages — 首页
   --------------------------------------------------------- */
.home-hero {
  margin-bottom: 48px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.hero-intro {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin: 0 0 14px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--brand);
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 12px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.hero-media {
  min-width: 0;
}

.hero-entries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-entry {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease;
}

.hero-entry:hover {
  border-color: var(--border);
}

.hero-entry.is-featured {
  border-left: 5px solid var(--accent);
  background: #FFFDFA;
}

.hero-entry-title {
  font-size: 19px;
  margin: 0 0 8px;
}

.hero-entry-title a {
  color: var(--brand);
}

.hero-entry-title a:hover,
.hero-entry-title a:focus-visible {
  color: var(--accent);
}

.hero-entry-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 10px;
}

.hero-entry-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hero-entry-link:hover,
.hero-entry-link:focus-visible {
  text-decoration: underline;
}

/* 题材频道方向总览 */
.home-channels {
  margin-bottom: 48px;
}

.channel-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row:hover {
  background: #FBFAF7;
}

.channel-name {
  font-size: 17px;
  margin: 0;
}

.channel-name a {
  color: var(--brand);
}

.channel-name a:hover,
.channel-name a:focus-visible {
  color: var(--accent);
}

.channel-scope {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.channel-link {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.channel-link:hover,
.channel-link:focus-visible {
  text-decoration: underline;
}

/* 本期专题片单速览 */
.home-topics {
  margin-bottom: 48px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease;
}

.topic-card:hover {
  border-color: var(--accent);
}

.topic-name {
  font-size: 18px;
  margin: 0 0 10px;
}

.topic-name a {
  color: var(--brand);
}

.topic-name a:hover,
.topic-name a:focus-visible {
  color: var(--accent);
}

.topic-scope,
.topic-basis {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 8px;
}

.topic-basis {
  color: var(--text-soft);
  font-size: 14px;
}

.topic-link {
  margin: auto 0 0;
  padding-top: 10px;
}

.topic-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.topic-link a:hover,
.topic-link a:focus-visible {
  text-decoration: underline;
}

/* 剧集目录字段与收录范围说明 */
.home-catalog {
  margin-bottom: 48px;
}

/* 浏览前需要了解的事项 */
.home-prepare {
  margin-bottom: 48px;
}

.prepare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 28px;
  align-items: start;
}

.prepare-more {
  margin: 18px 0 0;
  font-size: 15px;
}

.prepare-more a {
  font-weight: 600;
  color: var(--accent);
}

.prepare-more a:hover,
.prepare-more a:focus-visible {
  text-decoration: underline;
}

/* 收录边界与反馈入口 */
.home-boundary {
  margin-bottom: 12px;
}

.boundary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.boundary-item {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.boundary-item-title {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 8px;
}

.boundary-item-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.boundary-more {
  margin: 18px 0 0;
  font-size: 15px;
}

.boundary-more a {
  font-weight: 600;
  color: var(--accent);
}

.boundary-more a:hover,
.boundary-more a:focus-visible {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   5. pages — 内页栏目
   --------------------------------------------------------- */
.section {
  margin-bottom: 44px;
}

.content-block {
  margin-bottom: 40px;
}

.block-intro {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 16px;
  max-width: 800px;
}

/* 题材频道页 */
.channel-overview .channel-figure,
.channel-compare .channel-figure {
  margin-bottom: 22px;
}

.channel-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.channel-summary-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.channel-summary-name {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 8px;
}

.channel-summary-text {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.channel-block {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.channel-block-title {
  font-size: 18px;
  color: var(--brand);
  margin: 0 0 10px;
}

.channel-block-scope,
.channel-block-tip {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 8px;
}

.channel-block-tip {
  color: var(--text-soft);
  margin-bottom: 0;
}

.scope-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 13px;
  color: var(--brand);
  background: #EDF3F1;
  border-radius: var(--radius-sm);
}

.channel-compare .compare-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.compare-term {
  padding: 14px 18px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  background: #FBFAF7;
}

.compare-desc {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.compare-list .compare-desc:last-of-type {
  border-bottom: 0;
}

.channel-entry-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-soft);
}

.channel-entry-note a {
  margin-right: 14px;
}

/* 专题片单页 */
.overview-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.overview-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.overview-name {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 8px;
}

.overview-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.topic-item {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease;
}

.topic-item:hover {
  border-color: var(--border);
}

.topic-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
}

.topic-tag {
  padding: 2px 10px;
  font-size: 13px;
  color: var(--brand);
  background: #EDF3F1;
  border: 1px solid #D3E0DC;
  border-radius: var(--radius-sm);
}

.relation-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 剧集目录页 */
.field-note {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-note h3 {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 6px;
}

.field-note p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.scope-body p {
  font-size: 15px;
  color: var(--text);
}

.scope-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.scope-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
}

.scope-list li:last-child {
  border-bottom: 0;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* 浏览指引页 */
.section-guide-prepare .section-media {
  margin-bottom: 22px;
}

.step-item h3,
.step-title {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 6px;
}

.step-item p,
.step-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.section-guide-channel > p a,
.section-guide-topic > p a,
.section-guide-catalog > p a {
  font-weight: 600;
  color: var(--accent);
}

.section-guide-channel > p a:hover,
.section-guide-topic > p a:hover,
.section-guide-catalog > p a:hover {
  text-decoration: underline;
}

/* 收录边界与反馈页 */
.section-scope .section-media {
  margin-bottom: 22px;
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.scope-item {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.scope-name {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 8px;
}

.scope-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.exclude-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.exclude-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.exclude-title {
  font-size: 17px;
  color: var(--brand);
  margin: 0 0 8px;
}

.exclude-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.feedback-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  counter-reset: fb;
}

.feedback-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: fb;
}

.feedback-step .step-index {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50%;
}

.feedback-step .step-body {
  min-width: 0;
}

.feedback-step .step-title {
  font-size: 16px;
  color: var(--brand);
  margin: 0 0 4px;
}

.feedback-step .step-desc {
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.feedback-note {
  padding: 20px;
  background: #FBFAF7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-note-title {
  font-size: 16px;
  color: var(--brand);
  margin: 0 0 10px;
}

.feedback-note-list {
  margin: 0;
  padding-left: 20px;
}

.feedback-note-list li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

/* 404 */
.error-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-code {
  font-size: 44px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 6px;
  line-height: 1;
}

.error-text {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 20px;
}

.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.error-links a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  background: #FBFAF7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--brand);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  background: #FFF6F2;
  color: var(--accent);
}

/* 轻量滚动出现动画（不影响初始可见性，仅做位移增强） */
@media (prefers-reduced-motion: no-preference) {
  .channel-row,
  .topic-card,
  .boundary-item,
  .entry-card,
  .overview-item,
  .scope-item,
  .exclude-card {
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------
   6. responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 24px;
  }

  .topic-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  /* 移动端侧栏折叠列表置于正文之前 */
  .sidebar,
  .side-tree {
    order: -1;
  }

  .side-tree-toggle {
    display: block;
  }

  .side-tree-list {
    display: none;
  }

  .side-tree-list.is-open {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    min-height: 0;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 10px;
    min-height: 44px;
    line-height: 20px;
    font-size: 15px;
  }

  .font-control {
    padding-left: 0;
    border-left: 0;
    order: 2;
  }

  .home-main,
  .inner-main {
    padding: 20px 16px 44px;
  }

  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px;
  }

  .channel-link {
    justify-self: start;
  }

  .topic-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .prepare-layout,
  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .footer-inner {
    padding: 30px 16px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 21px;
  }

  .page-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-entry {
    padding: 16px;
  }

  .channel-summary,
  .overview-list,
  .scope-list,
  .exclude-grid,
  .boundary-list,
  .entry-grid,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item,
  .prepare-item {
    padding: 14px 14px 14px 58px;
  }

  .step-item::before,
  .prepare-item::before {
    left: 14px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .feedback-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .catalog-table th,
  .catalog-table td,
  .field-table th,
  .field-table td,
  .relation-table th,
  .relation-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}
