/* ==========================================================================
   午夜在线观看视频 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基线
   -------------------------------------------------------------------------- */

:root {
  --c-primary: #1f3a5f;
  --c-primary-soft: #2c4f7c;
  --c-accent: #e07b39;
  --c-accent-soft: #f6e3d5;
  --c-bg: #f7f8fa;
  --c-surface: #ffffff;
  --c-line: #dde3ea;
  --c-line-strong: #c6d0da;
  --c-text: #2b3440;
  --c-text-muted: #5c6b7a;
  --c-heading: #1b2733;
  --c-header-bg: #1b2c44;
  --c-header-text: #e8edf3;
  --c-header-muted: #a7b6c7;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", "Heiti SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --w-shell: 1080px;
  --w-prose: 760px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(27, 39, 51, 0.06), 0 6px 18px rgba(27, 39, 51, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-heading);
  line-height: 1.4;
  font-weight: 700;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #b85f22;
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、主导航、主容器、页脚骨架
   -------------------------------------------------------------------------- */

/* 页头与品牌 */
.site-header {
  position: relative;
  z-index: 30;
  background-color: var(--c-header-bg);
  color: var(--c-header-text);
  border-bottom: 1px solid #142235;
}

.header-inner {
  width: 100%;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--c-accent);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px 8px 9px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--c-header-text);
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > a:focus-visible {
  background-color: #24395a;
  color: #ffffff;
  text-decoration: none;
}

.nav-item.is-current > a,
.nav-item > a.is-current {
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--c-accent);
}

.dropdown-toggle {
  margin-left: -8px;
  padding: 10px 10px 10px 4px;
  background: none;
  border: 0;
  color: var(--c-header-muted);
  font-size: 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.dropdown-toggle::after {
  content: "▾";
  display: inline-block;
  font-size: 11px;
  line-height: 1;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  color: #ffffff;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-item.has-dropdown:hover .dropdown-list,
.nav-item.has-dropdown:focus-within .dropdown-list,
.nav-item.has-dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-list li a {
  display: block;
  padding: 8px 12px;
  color: var(--c-text);
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.dropdown-list li a:hover,
.dropdown-list li a:focus-visible {
  background-color: #f0f3f7;
  color: var(--c-primary);
  text-decoration: none;
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid #3a5478;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
}

/* 主内容区 */
.site-main {
  display: block;
  width: 100%;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.home-main {
  padding-top: 28px;
}

.inner-main {
  padding-top: 24px;
}

/* 页脚 */
.site-footer {
  background-color: #16263c;
  color: #c4d0dd;
  border-top: 3px solid var(--c-accent);
}

.footer-inner {
  width: 100%;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.footer-slogan {
  margin-top: 6px;
  color: var(--c-accent);
  font-size: 14px;
}

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: #9fb0c2;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list li a {
  color: #b7c5d4;
  font-size: 14px;
  text-decoration: none;
}

.footer-list li a:hover,
.footer-list li a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  max-width: var(--w-shell);
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid #2b3f59;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: #8d9dae;
}

.footer-boundary {
  flex: 1 1 420px;
  line-height: 1.7;
}

.footer-copy {
  flex: 0 0 auto;
  color: #7c8c9d;
}

/* --------------------------------------------------------------------------
   3. components —— 面包屑、页标题区、区块头、表格、卡片、标签、步骤、FAQ
   -------------------------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-line-strong);
}

.breadcrumb-current {
  color: var(--c-heading);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  max-width: var(--w-prose);
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 28px;
  color: var(--c-heading);
}

.page-description {
  margin-top: 12px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-figure {
  margin-top: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--c-surface);
}

.page-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.page-figure figcaption {
  padding: 10px 14px;
  margin-top: 0;
  border-top: 1px solid var(--c-line);
}

/* 区块与区块头（首页） */
.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}

.section-head h2 {
  font-size: 22px;
}

.section-desc {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 14px;
  max-width: var(--w-prose);
}

/* 区块标题（内页） */
.section-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-intro,
.section-lead {
  margin-bottom: 20px;
  color: var(--c-text-muted);
  font-size: 15px;
  max-width: var(--w-prose);
}

.section-note {
  margin-top: 16px;
  color: var(--c-text-muted);
  font-size: 14px;
}

/* 表格 */
.table-wrap {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow-x: auto;
}

.field-table {
  min-width: 560px;
  font-size: 15px;
}

.field-table caption,
.field-table-caption,
.scope-caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--c-text-muted);
  font-size: 13px;
  caption-side: top;
}

.field-table thead th {
  padding: 12px 16px;
  background-color: #eef2f7;
  color: var(--c-heading);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--c-line-strong);
  white-space: nowrap;
}

.field-table tbody th,
.field-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.75;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  color: var(--c-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.field-table tbody tr:hover {
  background-color: #fafbfd;
}

.fields-more,
.guide-more {
  margin-top: 16px;
  font-size: 15px;
}

/* 通用卡片容器 */
.collection-card,
.list-card,
.compose-item,
.organize-item,
.step-card,
.obstacle-item,
.feedback-item,
.channel-row,
.faq-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

/* 更新记录 */
.update-list {
  border-top: 1px solid var(--c-line);
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-line);
}

.update-time {
  flex: 0 0 auto;
  color: var(--c-text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
}

.update-type {
  flex: 0 0 auto;
  padding: 2px 8px;
  background-color: var(--c-accent-soft);
  color: #a3541c;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.update-text {
  flex: 1 1 320px;
  min-width: 220px;
  font-size: 15px;
}

.update-scope {
  flex: 0 0 auto;
  color: var(--c-text-muted);
  font-size: 13px;
}

/* 反馈说明块 */
.feedback-note {
  margin-top: 22px;
  padding: 18px 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-note p {
  color: var(--c-text-muted);
  font-size: 14px;
}

.feedback-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* 相关链接侧栏（内页共用） */
.related-links,
.sidebar {
  align-self: start;
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.related-title,
.sidebar-title {
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.related-list li,
.sidebar-list li {
  margin-bottom: 12px;
}

.related-list li:last-child,
.sidebar-list li:last-child {
  margin-bottom: 0;
}

.related-item a,
.sidebar-list li a {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.related-note {
  display: block;
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 步骤编号（内页通用） */
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--c-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* FAQ */
.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-heading);
  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%);
  color: var(--c-accent);
  font-size: 16px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-item[open] .faq-question {
  color: var(--c-primary);
}

.faq-question:hover {
  background-color: #f6f8fb;
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--c-text-muted);
  font-size: 15px;
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页模块
   -------------------------------------------------------------------------- */

/* ---------------------------- 首页：首屏 ---------------------------- */

.hero-section {
  margin-bottom: 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background-color: var(--c-accent-soft);
  color: #a3541c;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.35;
  color: var(--c-heading);
}

.hero-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--c-text);
  max-width: 560px;
}

.hero-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-text-muted);
  max-width: 560px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #ffffff;
  border: 1px solid var(--c-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--c-primary-soft);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

.hero-figure {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  margin-top: 0;
  background-color: #f2f5f9;
  border-top: 1px solid var(--c-line);
}

/* 首页：频道筛选与最新条目 */
.hero-filter {
  margin-top: 20px;
  padding: 18px 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}

.tag-btn {
  min-height: 40px;
  padding: 8px 16px;
  background-color: #f2f5f9;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  color: var(--c-text);
  font-size: 14px;
  cursor: pointer;
}

.tag-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.tag-btn.is-active {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
  font-weight: 600;
}

.latest-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.latest-item {
  min-width: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--c-line-strong);
}

.latest-channel {
  display: block;
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 700;
}

.latest-name {
  display: block;
  margin-top: 4px;
  color: var(--c-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.latest-meta {
  display: block;
  margin-top: 4px;
  color: var(--c-text-muted);
  font-size: 13px;
}

/* 首页：题材频道总览 */
.channel-rows {
  border-top: 1px solid var(--c-line);
}

.channel-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: var(--radius);
}

.channel-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
}

.channel-tendency,
.channel-organize {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.channel-link {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 首页：专题片单速览 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  overflow: hidden;
}

.collection-figure {
  margin: 0;
  border-bottom: 1px solid var(--c-line);
}

.collection-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.collection-name {
  margin: 16px 20px 0;
  font-size: 18px;
}

.collection-summary,
.collection-scope,
.collection-compose {
  margin: 8px 20px 0;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.collection-scope {
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}

.collection-link {
  margin: 14px 20px 0;
  font-size: 14px;
  font-weight: 600;
}

/* 首页：观看路径三步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-point {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* ---------------------------- 内页：通用两栏布局 ---------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.main-column,
.main-content {
  min-width: 0;
}

/* ---------------------------- 题材频道页 ---------------------------- */

.channel-overview,
.channel-organize,
.channel-bridge {
  margin-bottom: 40px;
}

.channel-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  margin-bottom: 16px;
  align-items: start;
}

.channel-row-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.channel-row-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.channel-row-body {
  min-width: 0;
}

.channel-row-title {
  font-size: 19px;
  margin-bottom: 8px;
}

.channel-row-text {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.channel-row-meta {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
}

.channel-row-meta dt {
  color: var(--c-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

.channel-row-meta dd {
  margin: 0;
  color: var(--c-text-muted);
}

.channel-row-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.organize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.organize-item {
  padding: 18px;
}

.organize-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.organize-text {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.bridge-list {
  display: grid;
  gap: 14px;
}

.bridge-item {
  padding: 18px 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
}

.bridge-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.bridge-text {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* ---------------------------- 专题片单页 ---------------------------- */

.board-section {
  margin-bottom: 40px;
}

.feature-figure {
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.feature-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.feature-figure figcaption {
  padding: 10px 14px;
  margin-top: 0;
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.list-card {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.list-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.list-summary {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.list-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.scope-table {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.scope-table thead th {
  padding: 12px 16px;
  background-color: #eef2f7;
  color: var(--c-heading);
  font-size: 14px;
  border-bottom: 1px solid var(--c-line-strong);
}

.scope-table tbody th,
.scope-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.75;
}

.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td {
  border-bottom: 0;
}

.scope-table tbody th {
  color: var(--c-primary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compose-item {
  padding: 18px;
}

.compose-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.compose-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.compose-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.compose-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.compose-list li:last-child {
  margin-bottom: 0;
}

.compose-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-accent);
}

/* ---------------------------- 条目字段说明页 ---------------------------- */

.section-fields,
.section-scope,
.section-feedback {
  margin-bottom: 40px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-column {
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.scope-include {
  border-top: 3px solid #3f7d52;
}

.scope-exclude {
  border-top: 3px solid #b0563f;
}

.scope-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.scope-list li:last-child {
  margin-bottom: 0;
}

.scope-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--c-accent);
  font-weight: 700;
}

.scope-note {
  margin-top: 16px;
  padding: 14px 18px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
  color: var(--c-text-muted);
  font-size: 14px;
}

.feedback-steps {
  display: grid;
  gap: 14px;
}

.feedback-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 18px 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.feedback-step .step-title {
  font-size: 16px;
  align-self: center;
}

.feedback-step p {
  grid-column: 2;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.section-feedback .feedback-note {
  margin-top: 20px;
}

/* ---------------------------- 观看指南页 ---------------------------- */

.guide-steps,
.guide-obstacles,
.guide-feedback,
.guide-faq {
  margin-bottom: 40px;
}

.guide-steps > .page-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.step-card .step-index {
  margin-bottom: 10px;
}

.step-card .step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card .step-body {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.step-card .step-body strong {
  color: var(--c-heading);
}

.step-card .step-point {
  margin-top: 10px;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
}

.step-card .step-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  background-color: #eef2f7;
  color: var(--c-primary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.step-card .step-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.guide-figure {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
}

.guide-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 14px;
  margin-top: 0;
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.obstacle-item {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.obstacle-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.obstacle-body {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feedback-item {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.feedback-item .feedback-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.feedback-item .feedback-body {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.feedback-item .feedback-body strong {
  color: var(--c-heading);
}

.feedback-item .feedback-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------------------------- 404 页 ---------------------------- */

.error-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-panel {
  max-width: var(--w-prose);
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}

.error-title {
  margin-top: 14px;
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  color: var(--c-text-muted);
  font-size: 15px;
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background-color: var(--c-primary);
  border: 1px solid var(--c-primary);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.error-button:hover,
.error-button:focus-visible {
  background-color: var(--c-primary-soft);
  color: #ffffff;
  text-decoration: none;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
}

.error-link:hover,
.error-link:focus-visible {
  border-color: var(--c-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive —— 960px 与 640px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 0 18px;
    flex-wrap: wrap;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
    border-top: 1px solid #2b3f59;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item > a {
    padding: 12px 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-item.is-current > a,
  .nav-item > a.is-current {
    box-shadow: inset 3px 0 0 var(--c-accent);
    padding-left: 12px;
  }

  .dropdown-toggle {
    align-self: flex-start;
    margin-left: 0;
    padding: 8px 12px;
    min-height: 40px;
  }

  .dropdown-list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid #2b3f59;
    border-radius: 0;
    background-color: transparent;
    padding: 0 0 6px 12px;
    display: none;
  }

  .nav-item.has-dropdown:hover .dropdown-list,
  .nav-item.has-dropdown:focus-within .dropdown-list {
    opacity: 1;
    visibility: visible;
  }

  .nav-item.has-dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-list {
    display: block;
  }

  .dropdown-list li a {
    color: var(--c-header-text);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .dropdown-list li a:hover,
  .dropdown-list li a:focus-visible {
    background-color: #24395a;
    color: #ffffff;
  }

  .site-main {
    padding: 24px 18px 44px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure img {
    height: 240px;
  }

  .latest-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }

  .channel-organize {
    grid-column: 2;
  }

  .channel-link {
    grid-column: 2;
    justify-self: start;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .related-links,
  .sidebar {
    max-width: none;
  }

  .channel-row {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .compose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-steps > .page-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 18px 22px;
  }

  .footer-bottom {
    padding: 16px 18px 26px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 16px;
    white-space: normal;
  }

  .site-main {
    padding: 20px 14px 40px;
  }

  .page-title {
    font-size: 23px;
  }

  .section-head h2,
  .section-title {
    font-size: 20px;
  }

  .hero-inner {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-desc,
  .hero-note {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-filter {
    padding: 16px;
  }

  .latest-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .latest-item {
    padding: 10px 12px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .channel-organize,
  .channel-link {
    grid-column: 1;
  }

  .channel-link {
    justify-self: start;
  }

  .collection-grid,
  .step-list,
  .compose-grid,
  .scope-columns,
  .feedback-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-figure img {
    height: 150px;
  }

  .channel-row-media img {
    height: 170px;
  }

  .channel-row-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-row-meta dt {
    margin-top: 8px;
  }

  .field-table {
    min-width: 480px;
  }

  .update-item {
    padding: 12px 2px;
  }

  .update-text {
    flex: 1 1 100%;
    min-width: 0;
  }

  .feedback-step {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 16px;
  }

  .guide-steps > .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-figure img,
  .feature-figure img,
  .page-figure img {
    height: 190px;
  }

  .related-links,
  .sidebar {
    padding: 16px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-panel {
    padding: 28px 18px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 21px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-button,
  .error-link {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 14px 18px;
  }

  .footer-list li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 14px 14px 24px;
  }

  .footer-boundary {
    flex: 1 1 auto;
  }
}
