/* =========================================================
   九九影院免费电视剧 · 全站样式表
   base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base —— 变量、重置、排版基线
   --------------------------------------------------------- */
:root {
  --ink-title: #1a1f2e;
  --ink-body: #333a4a;
  --ink-soft: #5c6474;
  --ink-mute: #7c8494;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --bg-tint: #eef1f5;
  --line: #d9dde3;
  --line-strong: #c2c8d1;
  --tag-channel: #2f6f8f;
  --tag-collection: #8f5a2f;
  --tag-genre: #4a5a72;
  --accent: #1f4a63;
  --accent-dark: #16394d;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(26, 31, 46, 0.06);
  --shadow-hover: 0 6px 16px rgba(26, 31, 46, 0.1);
  --wrap: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-body);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-title);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------------------------------
   2. layout —— 页头、主容器、页脚骨架
   --------------------------------------------------------- */

/* 页头：全站统一，滚动后固定 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--ink-title);
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand:hover,
.site-brand:focus-visible {
  text-decoration: none;
  color: var(--accent-dark);
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-title);
}

.brand-note {
  font-size: 12px;
  color: var(--ink-mute);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  font-size: 15px;
  color: var(--ink-body);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--bg-tint);
  color: var(--ink-title);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--bg-tint);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink-title);
  border-radius: 1px;
}

/* 主容器 */
.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  padding-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-title);
}

/* 内页标题区 */
.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-title);
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 15px;
  color: var(--ink-soft);
}

.page-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 页脚 */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--ink-body);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-title);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-mute);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  min-height: 24px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: var(--bg-page);
}

.copyright {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------
   3. components —— 通用组件：按钮、标签、卡片、表格
   --------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--bg-tint);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  background: transparent;
  white-space: nowrap;
}

.tag-channel {
  color: var(--tag-channel);
}

.tag-collection {
  color: var(--tag-collection);
}

.tag-genre {
  color: var(--tag-genre);
}

/* 通用区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-title);
}

.section-intro,
.section-desc,
.section-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 780px;
}

.section-note {
  font-size: 13px;
  color: var(--ink-mute);
}

.section-foot {
  margin-top: 16px;
  font-size: 14px;
}

.text-link {
  font-weight: 700;
  color: var(--accent);
}

/* 卡片媒体容器：统一比例，避免抖动 */
.card-media,
.channel-media,
.collection-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.card-media img,
.channel-media img,
.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 细线数据表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.data-table,
.field-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.data-table caption,
.field-table caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.field-table thead th {
  background: var(--bg-tint);
  color: var(--ink-title);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody th,
.field-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-title);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.data-table tbody td,
.field-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-body);
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #fbfcfd;
}

/* 步骤 / 要点清单（首页与目录页各自限定作用域） */
.path-list,
.browse-steps {
  display: grid;
  gap: 16px;
}

.path-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.browse-steps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: browse;
}

.path-step,
.browse-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.path-step .step-title,
.browse-step .step-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-step .step-desc,
.browse-step .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 内容边界说明块 */
.boundary-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tag-collection);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}

.boundary-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   4. pages —— 首页
   --------------------------------------------------------- */

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.home-section {
  margin-top: 48px;
}

.section-head {
  margin-bottom: 22px;
}

/* 首屏：左文右图对比导向 */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 32px 0 8px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding-bottom: 24px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--tag-channel);
  border-left: 3px solid var(--tag-channel);
  padding-left: 10px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-title);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  font-size: 14px;
}

.hero-quicklinks a {
  font-weight: 700;
}

.hero-figure {
  margin: 0 0 24px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 题材频道卡片 */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.channel-card:hover,
.channel-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.channel-card .card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}

.channel-card .card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.channel-card .card-title a {
  color: var(--ink-title);
}

.channel-card .card-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-card .card-meta {
  margin-top: 12px;
}

/* 专题片单卡片 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.collection-card:hover,
.collection-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}

.collection-card .card-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}

.collection-card .card-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.collection-card .card-title a {
  color: var(--ink-title);
}

.collection-card .card-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.collection-card .card-meta {
  margin-top: 12px;
}

/* 首页字段说明表 */
.section-directory .field-table {
  min-width: 520px;
}

/* ---------------------------------------------------------
   5. pages —— 题材频道内页
   --------------------------------------------------------- */

.channels-overview,
.channel-represent,
.channel-advice {
  margin-bottom: 44px;
}

.channels-overview .section-desc,
.channel-represent .section-desc,
.channel-advice .section-desc {
  margin-bottom: 22px;
}

/* 频道卡片（内页版：图在上，正文在下） */
.channel-card .channel-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.channel-body {
  display: block;
}

.channel-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.channel-scope {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-represent {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

.channel-link {
  display: inline-block;
  margin-top: 12px;
  min-height: 24px;
  font-size: 14px;
  font-weight: 700;
}

/* 代表方向列表 */
.represent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.represent-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.represent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.represent-name {
  font-size: 16px;
}

.represent-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}

.represent-fields dt {
  color: var(--ink-mute);
  white-space: nowrap;
}

.represent-fields dd {
  margin: 0;
  color: var(--ink-body);
}

/* 题材选择建议 */
.advice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.advice-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.advice-scene,
.advice-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.advice-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-advice .advice-list {
  margin-top: 20px;
}

/* ---------------------------------------------------------
   6. pages —— 专题片单内页（主内容 + 右侧栏）
   --------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.section {
  margin-bottom: 44px;
}

.section-overview .collection-grid {
  margin-top: 20px;
}

/* 内页专题卡片：媒体区在上 */
.collection-card .collection-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.collection-body {
  display: block;
}

.collection-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.collection-scope {
  font-size: 14px;
  color: var(--ink-soft);
}

.collection-represent {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 专题代表方向：每个专题一张表 */
.represent-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.represent-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.represent-group .data-table {
  min-width: 480px;
  font-size: 13px;
}

/* 侧栏 */
.layout-aside .aside-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.aside-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.aside-text {
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.aside-list-item {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.aside-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--tag-collection);
  border-radius: 50%;
}

.aside-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.link-more {
  display: inline-block;
  margin-top: 12px;
  min-height: 24px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------------------------------------------------------
   7. pages —— 剧集目录内页
   --------------------------------------------------------- */

.directory-list,
.field-notes,
.browse-methods {
  margin-bottom: 44px;
}

.directory-list .section-note,
.field-notes .section-note,
.browse-methods .section-note {
  margin-bottom: 18px;
}

.directory-list .data-table {
  min-width: 640px;
}

/* 字段说明网格 */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.field-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.field-name {
  font-size: 15px;
  margin-bottom: 8px;
}

.field-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.directory-figure {
  margin: 0;
}

.directory-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.directory-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* 目录页相关入口 */
.related-entry {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.related-entry .section-note {
  margin-bottom: 14px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-title);
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------
   8. pages —— 观看指南内页
   --------------------------------------------------------- */

.guide-section {
  margin-bottom: 44px;
}

.guide-section .section-intro {
  margin-bottom: 20px;
}

.guide-figure {
  margin: 0 0 22px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.device-card .card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.device-card .card-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.device-card .card-list {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.device-card .card-list li {
  padding-left: 14px;
  position: relative;
}

.device-card .card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--tag-channel);
  border-radius: 50%;
}

/* 浏览路径条目 */
.path-index {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.path-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.path-title {
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 84px;
}

.path-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.path-link {
  font-weight: 700;
}

/* 内容边界块 */
.boundary-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.boundary-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.boundary-list {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-list li {
  padding-left: 14px;
  position: relative;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--tag-collection);
  border-radius: 50%;
}

/* 反馈入口 */
.feedback-nav {
  margin-top: 18px;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  font-size: 14px;
}

.feedback-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ink-soft);
}

/* FAQ 折叠列表 */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-title);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: var(--bg-tint);
}

.faq-question::after {
  content: "展开";
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
}

.faq-question[aria-expanded="true"]::after {
  content: "收起";
  color: var(--accent);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.faq-answer[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   9. pages —— 404
   --------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 20px 72px;
}

.error-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 720px;
  box-shadow: var(--shadow-card);
}

.error-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--tag-collection);
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
}

.error-links a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-title);
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------
   10. responsive —— 断点
   --------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 26px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 26px;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 16px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .channel-grid,
  .collection-grid,
  .represent-list,
  .advice-list,
  .field-grid,
  .device-grid,
  .related-list,
  .error-links,
  .feedback-list,
  .boundary-block,
  .path-list,
  .browse-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 32px;
  }

  .footer-meta {
    grid-column: auto;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .path-item {
    flex-direction: column;
    gap: 4px;
  }

  .path-title {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .inner-main,
  .home-main,
  .footer-inner,
  .copyright,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-note {
    display: none;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 21px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .data-table,
  .field-table {
    min-width: 480px;
    font-size: 13px;
  }

  .data-table thead th,
  .field-table thead th,
  .data-table tbody th,
  .field-table tbody th,
  .data-table tbody td,
  .field-table tbody td {
    padding: 9px 10px;
  }
}

/* 动效增强：不依赖 JS 显示，仅在支持时淡入 */
@media (prefers-reduced-motion: no-preference) {
  .home-section,
  .section,
  .guide-section,
  .channels-overview,
  .channel-represent,
  .channel-advice,
  .directory-list,
  .field-notes,
  .browse-methods {
    animation: section-rise 0.4s ease-out both;
  }

  @keyframes section-rise {
    from {
      transform: translateY(8px);
    }
    to {
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-card,
  .collection-card {
    transition: none;
  }
}
