/* ==========================================================================
   神马影院午夜 · 全站样式
   目录：
   01 base        基础重置与全局变量
   02 layout      页头、主导航、主容器、页脚、面包屑
   03 components  按钮、卡片、表格、列表、步骤、FAQ 等通用组件
   04 pages       首页与各内页专属模块
   05 responsive  移动端与断点适配
   ========================================================================== */

/* ==========================================================================
   01 base
   ========================================================================== */

:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --text-main: #2f3440;
  --text-sub: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d3d7de;
  --brand: #2f6fed;
  --brand-dark: #1f56c4;
  --accent: #0f9d8c;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(47, 52, 64, 0.05);
  --shadow-card: 0 2px 10px rgba(47, 52, 64, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --container: 1120px;
  --reading: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   02 layout
   ========================================================================== */

/* 页头 ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-main);
  font-weight: 700;
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.28);
}

.brand-name {
  font-size: 18px;
}

/* 主导航 -------------------------------------------------------------- */

.site-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 15px;
  white-space: nowrap;
}

.nav-list a:hover {
  background-color: #eef2fb;
  color: var(--brand-dark);
}

.nav-list a.is-current {
  color: var(--brand);
  font-weight: 600;
  background-color: #eef2fb;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

/* 主容器 -------------------------------------------------------------- */

.site-main {
  display: block;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑 -------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* 内页标题区 ---------------------------------------------------------- */

.page-header {
  max-width: var(--reading);
  padding: 20px 0 0;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-main);
}

.page-description {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-sub);
}

/* 页脚 ---------------------------------------------------------------- */

.site-footer {
  margin-top: 8px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-sub);
  max-width: 300px;
}

.footer-col-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-sub);
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-col-boundary p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ==========================================================================
   03 components
   ========================================================================== */

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 更多链接 ------------------------------------------------------------ */

.link-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.link-more::after {
  content: " →";
  font-weight: 400;
}

.section-more {
  margin-top: 18px;
}

/* 通用 section 结构与标题 --------------------------------------------- */

.section {
  padding: 40px 0;
}

.section-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  max-width: var(--reading);
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.section-sub,
.section-intro,
.section-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-sub);
}

.section-intro,
.section-lead {
  max-width: var(--reading);
  margin-bottom: 20px;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

/* 图片容器统一约束 ---------------------------------------------------- */

.hero-media,
.list-media,
.page-media,
.media-figure,
.section-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #eef1f6;
}

.hero-media img,
.list-media img,
.page-media img,
.media-figure img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption,
.media-caption {
  display: block;
  padding: 10px 2px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 语义表格 ------------------------------------------------------------ */

.field-table-wrap,
.table-wrap {
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-table {
  min-width: 560px;
  font-size: 15px;
}

.field-table-caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background-color: #f2f4f8;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody th,
.field-table tbody td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.field-sample {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

/* 条目字段说明中的字段标签 -------------------------------------------- */

.field-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

/* ==========================================================================
   04 pages
   ========================================================================== */

/* ---------- 首页 ---------------------------------------------------- */

/* 首屏 */
.hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-card);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "lead media"
    "index index";
  gap: 28px 40px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 36px;
}

.hero-lead {
  grid-area: lead;
  align-self: center;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.hero-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
}

.hero-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  grid-area: media;
  margin: 0;
  aspect-ratio: 16 / 10;
}

.hero-index {
  grid-area: index;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-index-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 16px;
  background-color: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-index-item a:hover {
  border-color: var(--brand);
  background-color: #eef2fb;
}

.hero-index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-index-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* 平台定位与内容范围 */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-col {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-col-title {
  font-size: 16px;
  font-weight: 600;
}

.about-col p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-sub);
}

.about-list {
  margin-top: 12px;
}

.about-list li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* 题材频道方向总览 */
.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.channel-focus,
.channel-audience,
.channel-type {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.channel-type {
  color: var(--accent);
}

/* 专题片单速览 */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.list-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.list-media {
  margin: 0 0 14px;
  aspect-ratio: 16 / 9;
}

.list-title {
  font-size: 17px;
  font-weight: 600;
}

.list-scope,
.list-structure {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.list-scope {
  color: var(--text-main);
}

/* 收录边界摘要 */
.boundary-summary {
  margin-top: 24px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-title {
  font-size: 16px;
  font-weight: 600;
}

.boundary-list {
  margin-top: 12px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background-color: var(--brand);
}

.boundary-more {
  margin-top: 14px;
}

/* 查阅路径三步概览（首页编号清单） */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  padding: 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.step-name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

.step-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-sub);
}

.step-filter {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-sub);
}

/* 站内更新记录 */
.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 140px 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.update-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
}

.update-type {
  display: inline-block;
  align-self: center;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--accent);
  background-color: rgba(15, 157, 140, 0.1);
  border-radius: 999px;
  white-space: nowrap;
}

.update-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- 题材频道页 ---------------------------------------------- */

.page-media {
  margin: 26px 0 0;
  aspect-ratio: 21 / 9;
}

.channel-section,
.channel-advice,
.channel-note {
  margin-top: 36px;
}

.channel-section h2,
.channel-advice h2,
.channel-note h2 {
  font-size: 22px;
}

.channel-section .channel-list {
  margin-top: 20px;
}

.channel-section .channel-row {
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  padding: 18px 4px;
}

.channel-cell {
  min-width: 0;
}

.channel-title {
  font-size: 16px;
  font-weight: 600;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.channel-value {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

/* 频道选择建议 */
.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.advice-item {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advice-name {
  font-size: 16px;
  font-weight: 600;
}

.advice-scene,
.advice-combo {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 频道页补充说明 */
.note-body {
  max-width: var(--reading);
  margin-top: 14px;
}

.note-body p {
  font-size: 15px;
  color: var(--text-sub);
}

.note-body p + p {
  margin-top: 12px;
}

/* ---------- 专题片单页 ---------------------------------------------- */

.section-playlists,
.section-playlist-media,
.section-rules {
  padding: 36px 0 0;
}

.playlist-item {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.6fr);
  gap: 24px;
  padding: 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.playlist-item + .playlist-item {
  margin-top: 16px;
}

.playlist-head {
  min-width: 0;
}

.playlist-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
}

.playlist-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

.playlist-tag {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
}

.playlist-body {
  min-width: 0;
}

.playlist-scope,
.playlist-compose,
.playlist-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.playlist-compose {
  margin-top: 10px;
}

.playlist-note {
  margin-top: 12px;
}

/* 片单配图 */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.media-grid .media-figure {
  margin: 0;
}

.media-grid .media-figure img {
  aspect-ratio: 16 / 9;
}

/* 片单规则 */
.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.rule-item {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}

.rule-name {
  font-size: 16px;
  font-weight: 600;
}

.rule-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- 条目字段说明页 ------------------------------------------ */

.section-field-preview,
.section-field-table,
.section-field-usage {
  padding: 36px 0 0;
}

.section-field-preview .media-figure {
  margin-top: 18px;
}

.section-field-preview .media-figure img {
  aspect-ratio: 21 / 9;
}

/* 字段作用说明 */
.usage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.usage-item {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-title {
  font-size: 16px;
  font-weight: 600;
}

.usage-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- 查阅路径页 ---------------------------------------------- */

.section-steps,
.section-switch,
.section-tips {
  padding: 36px 0 0;
}

.section-steps .step-list {
  margin-top: 20px;
}

.section-steps .step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  background-color: #eef2fb;
  border-radius: var(--radius-sm);
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
}

.step-what,
.step-filter {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.section-figure {
  margin-top: 22px;
}

.section-figure img {
  aspect-ratio: 21 / 9;
}

/* 中途换路径 */
.switch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.switch-item {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.switch-title {
  font-size: 16px;
  font-weight: 600;
}

.switch-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 查阅小贴士 */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 4px;
}

.tip-card {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tip-title {
  font-size: 16px;
  font-weight: 600;
}

.tip-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- 收录边界与反馈页 ---------------------------------------- */

.content-section {
  padding: 36px 0 0;
}

.content-section .section-title {
  font-size: 22px;
}

/* 收录边界条目 */
.boundary-scope .boundary-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.boundary-item {
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-name {
  font-size: 16px;
  font-weight: 600;
}

.boundary-scope .boundary-scope,
.boundary-scope .boundary-exclude {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.boundary-exclude {
  color: var(--text-main);
}

.boundary-exclude::before {
  content: "不涉及：";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.boundary-figure {
  margin-top: 22px;
}

.boundary-figure img {
  aspect-ratio: 21 / 9;
}

/* 反馈说明段落 */
.feedback-block {
  max-width: var(--reading);
  margin-top: 18px;
  padding: 18px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
}

.feedback-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* FAQ */
.faq-list {
  max-width: var(--reading);
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 40px 18px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 相关入口 */
.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  font-size: 15px;
  font-weight: 600;
}

.related-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* ---------- 404 ------------------------------------------------------ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  width: 100%;
  max-width: 560px;
  padding: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 28px;
}

.error-lead {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-sub);
}

.error-paths {
  margin-top: 20px;
}

.error-paths li + li {
  margin-top: 10px;
}

.error-paths a {
  font-size: 15px;
  font-weight: 600;
}

.error-action {
  margin-top: 24px;
}

/* ==========================================================================
   05 responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .hero-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* 页头与导航 */
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 12px 12px;
    font-size: 15px;
  }

  /* 主容器与标题区 */
  .inner-main {
    padding: 0 16px 44px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding-top: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 通用 section */
  .section {
    padding: 30px 0;
  }

  .section-inner {
    padding: 0 16px;
  }

  .section-title {
    font-size: 19px;
  }

  .content-section,
  .section-playlists,
  .section-playlist-media,
  .section-rules,
  .section-field-preview,
  .section-field-table,
  .section-field-usage,
  .section-steps,
  .section-switch,
  .section-tips {
    padding-top: 28px;
  }

  /* 首页首屏 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "media"
      "index";
    gap: 22px;
    padding: 28px 16px 30px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-index {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 首页模块 */
  .about-grid,
  .list-grid,
  .advice-list,
  .usage-list,
  .switch-list,
  .tips-grid,
  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row,
  .channel-section .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  /* 片单页 */
  .playlist-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .media-grid,
  .rule-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 查阅路径页 */
  .section-steps .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  /* 表格 */
  .field-table {
    min-width: 520px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px 16px 22px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-copy {
    padding: 14px 16px;
  }
}

@media (max-width: 420px) {
  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .brand-name {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .error-panel {
    padding: 24px 18px;
  }
}

/* 打印与动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
