/* ==========================================================================
   妻友视频 · jm158.com 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --ink: #0B1220;
  --ink-soft: #1B2436;
  --paper: #FFFFFF;
  --paper-alt: #F3F0E8;
  --accent: #FFD166;
  --link: #2F6FED;
  --line: #C9D1D9;
  --line-dark: #2A3448;
  --muted: #5A6474;
  --muted-light: #A9B4C4;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 6px 18px rgba(11, 18, 32, 0.06);
  --wrap: 1120px;
  --wrap-read: 860px;
  --gap: 32px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper-alt);
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

strong {
  font-weight: 700;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、主导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 22px;
  background-color: var(--accent);
  border-radius: 2px;
  flex: 0 0 auto;
}

.brand-text {
  white-space: nowrap;
}

/* 主导航（桌面：单行 + 描述行） */
.site-nav.portal-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #E4E9F2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--paper);
  background-color: var(--ink-soft);
  text-decoration: underline;
}

.nav-link.is-current {
  color: var(--ink);
  background-color: var(--accent);
  border-left-color: var(--ink);
  font-weight: 700;
}

.nav-desc {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  font-size: 0.78rem;
}

.nav-desc > li {
  margin: 0;
  flex: 0 0 auto;
}

.nav-desc a {
  display: block;
  padding: 2px 12px;
  color: var(--muted-light);
  text-decoration: none;
  white-space: nowrap;
}

.nav-desc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nav-desc a.is-current {
  color: var(--accent);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background-color: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background-color: var(--paper);
  border-radius: 1px;
  transform: translateX(-50%);
  content: "";
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

/* 主容器 */
.site-main {
  display: block;
  background-color: var(--paper);
}

.home-main {
  background-color: var(--paper);
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--link);
  text-decoration: underline;
  padding: 4px 0;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页标题区 */
.page-header {
  margin: 0 0 12px;
  padding: 0 0 0 16px;
  border-left: 5px solid var(--accent);
}

.page-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: var(--muted-light);
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 20px 40px;
  align-items: start;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #DCE3EE;
  text-decoration: underline;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* --------------------------------------------------------------------------
   3. components —— 按钮、标签、链接、折叠、卡片、表格等通用件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: #FFC93C;
  border-color: #FFC93C;
  color: var(--ink);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--paper);
}

/* 文本链接与箭头链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--link);
  text-decoration: underline;
  padding: 6px 0;
  min-height: 36px;
}

.text-link::after {
  content: "\2192";
  font-weight: 400;
}

.text-link:hover {
  color: var(--ink);
}

.inline-link {
  display: inline-block;
  font-weight: 700;
  padding: 6px 0;
  min-height: 36px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 6px 0;
  min-height: 36px;
}

.link-arrow::after {
  content: "\2192";
  font-weight: 400;
}

/* 标签 */
.tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* 区块标题组 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1 1 260px;
  min-width: 0;
}

/* 折叠 FAQ 通用件 */
.faq-item {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 12px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  background-color: var(--paper-alt);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item summary:hover {
  background-color: #EAE5D8;
}

.faq-item > p {
  margin: 0;
  padding: 14px 16px 4px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.faq-item > .text-link {
  margin: 0 16px 14px;
}

/* 表格 */
.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
}

.map-table th,
.map-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.map-table thead th {
  background-color: var(--ink);
  color: var(--paper);
  font-weight: 700;
  white-space: nowrap;
}

.map-table tbody tr:nth-child(even) {
  background-color: var(--paper-alt);
}

.map-table tbody tr:last-child td {
  border-bottom: 0;
}

.map-table a {
  font-weight: 500;
}

/* 相关入口卡片（内页通用） */
.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.related h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--link);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.related-card:hover {
  background-color: #EDE8DB;
  border-left-color: var(--ink);
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--ink);
}

.related-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.related-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.related-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--link);
  margin-bottom: 4px;
}

/* 页内锚点 */
.title-anchors,
.page-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-anchors {
  margin: 16px 0 0;
}

.title-anchors a,
.page-anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.title-anchors a:hover,
.page-anchors a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* 通用页摘要 */
.page-lead,
.page-summary {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页专属模块
   -------------------------------------------------------------------------- */

/* ===== 首页 ===== */
.home-main > section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px;
}

.home-main > section + section {
  border-top: 1px solid var(--line);
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-meta li {
  position: relative;
  padding-left: 16px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background-color: var(--link);
  border-radius: 1px;
}

.hero-visual {
  min-width: 0;
  background-color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background-color: var(--ink-soft);
}

.hero-caption {
  padding: 12px 16px;
  color: #DCE3EE;
  font-size: 0.84rem;
  line-height: 1.6;
  border-top: 3px solid var(--accent);
}

/* 频道栏 */
.channel-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-chip {
  min-width: 0;
}

.channel-chip a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  height: 100%;
  transition: border-top-color 0.16s ease, background-color 0.16s ease;
}

.channel-chip a:hover {
  background-color: #EDE8DB;
  border-top-color: var(--link);
}

.chip-name {
  font-weight: 700;
  font-size: 1rem;
}

.chip-scope {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* 内容流：左焦点 + 右列表 */
.content-stream {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.content-stream > .visually-hidden {
  grid-column: 1 / -1;
}

.lead-feature {
  min-width: 0;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lead-media {
  margin: 0;
}

.lead-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background-color: var(--paper-alt);
}

.lead-body {
  padding: 18px 20px 20px;
}

.lead-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.lead-body p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.stream-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.stream-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stream-media {
  margin: 0;
  min-width: 0;
}

.stream-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 118px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--paper-alt);
}

.stream-body {
  padding: 14px 16px;
  min-width: 0;
}

.stream-body h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.stream-body p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 专题片单精选 */
.playlist-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.playlist-copy {
  min-width: 0;
  padding-left: 16px;
  border-left: 4px solid var(--link);
}

.playlist-copy h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.playlist-copy p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.playlist-copy .btn {
  margin-top: 4px;
}

.playlist-sequence {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.sequence-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: stretch;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sequence-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
}

.sequence-body {
  padding: 14px 18px;
  min-width: 0;
}

.sequence-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.sequence-body h3 a {
  color: var(--ink);
  text-decoration: underline;
}

.sequence-body h3 a:hover {
  color: var(--link);
}

.sequence-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 观看流程四步 */
.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 14px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.path-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.path-step p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1 1 auto;
}

.path-step .text-link {
  margin-top: auto;
}

/* 首页问题折叠：两列 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  align-items: start;
}

.faq-grid .faq-item {
  margin: 0;
}

/* 双入口 */
.glossary-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.glossary-about > .visually-hidden {
  grid-column: 1 / -1;
}

.entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 24px 20px;
  background-color: var(--ink);
  color: #DCE3EE;
  border-radius: var(--radius);
  border-left: 5px solid var(--accent);
}

.entry-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--paper);
}

.entry-card p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #C7D0DE;
  flex: 1 1 auto;
}

.entry-card .btn-ghost {
  align-self: flex-start;
  color: var(--paper);
  border-color: var(--accent);
}

.entry-card .btn-ghost:hover {
  background-color: var(--accent);
  color: var(--ink);
}

/* ===== 内页通用页标题补充区 ===== */
.inner-main > .page-title,
.inner-main > .page-title-wrap {
  margin: 0 0 28px;
}

.inner-main > .page-title .page-summary,
.inner-main > .page-title .page-lead {
  margin: 12px 0 0;
}

/* 内页两栏布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

/* 频道目录：左侧索引 */
.sidebar-left.channels-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.channel-index {
  position: sticky;
  top: 84px;
  min-width: 0;
  padding: 18px 18px 14px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
}

.index-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--ink);
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--paper);
}

.index-list a:hover {
  border-left-color: var(--link);
  color: var(--link);
  text-decoration: underline;
}

.channel-main {
  min-width: 0;
}

.channel-intro {
  margin-bottom: 32px;
  padding: 20px 22px;
  background-color: var(--paper-alt);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}

.channel-intro h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.channel-intro p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.channel-intro p:last-child {
  margin-bottom: 0;
}

.channel-card-list {
  margin-bottom: 36px;
}

.channel-card-list > h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.channel-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 90px;
}

.channel-figure {
  margin: 0;
  min-width: 0;
}

.channel-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--paper-alt);
}

.channel-body {
  padding: 16px 20px;
  min-width: 0;
}

.channel-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.channel-range {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.channel-note {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.channel-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 0;
  min-height: 36px;
}

.channel-playlist-map {
  margin-bottom: 36px;
}

.channel-playlist-map h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.map-lead {
  margin: 0 0 16px;
  font-size: 0.94rem;
  color: var(--muted);
}

.selection-check h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.check-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.check-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.check-tail {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.check-tail a {
  margin-right: 12px;
  font-weight: 500;
}

/* ===== 专题片单页 ===== */
.playlist-theme {
  margin-bottom: 36px;
  padding: 22px 24px;
  background-color: var(--paper-alt);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}

.playlist-theme h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.playlist-theme p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.theme-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.theme-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.theme-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background-color: var(--link);
  border-radius: 1px;
}

.playlist-list {
  margin-bottom: 36px;
}

.playlist-list > h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.list-lead {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

.playlist-block {
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}

.playlist-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.playlist-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.playlist-head h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.playlist-head > p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.playlist-cover {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-alt);
}

.playlist-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.playlist-cover figcaption {
  padding: 8px 12px;
  background-color: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.playlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plitem;
}

.playlist-item {
  counter-increment: plitem;
  position: relative;
  min-width: 0;
  padding: 14px 16px 14px 48px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.playlist-item::before {
  content: counter(plitem, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--link);
}

.playlist-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.playlist-reasoning {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.playlist-reasoning h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.playlist-reasoning > p {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.reason-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--link);
  border-radius: var(--radius);
}

.reason-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.reason-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.68;
}

.playlist-notes {
  min-width: 0;
  padding: 20px;
  background-color: var(--ink);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  color: #DCE3EE;
}

.playlist-notes h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--paper);
}

.note-block {
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}

.note-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.note-block h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--accent);
}

.note-block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #C7D0DE;
}

.note-link {
  color: var(--accent);
}

/* ===== 观看流程页 ===== */
.step-overview {
  margin-bottom: 36px;
}

.step-overview .container,
.prep-section .container,
.step-detail .container,
.entry-check .container,
.interrupt-order .container,
.related .container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0;
  min-width: 0;
}

.step-overview h2,
.step-detail h2,
.entry-check h2,
.interrupt-order h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.section-intro {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

.step-chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-chip {
  min-width: 0;
}

.step-chip a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.step-chip a:hover {
  background-color: var(--accent);
  border-left-color: var(--ink);
}

.step-chip .chip-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--link);
}

.step-chip a:hover .chip-num {
  color: var(--ink);
}

.step-chip .chip-title {
  min-width: 0;
}

/* 浏览前准备 */
.prep-section {
  margin-bottom: 40px;
}

.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.prep-copy {
  min-width: 0;
}

.prep-copy h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.prep-copy p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.prep-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.prep-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 8px;
  background-color: var(--link);
  border-radius: 1px;
}

.prep-media {
  margin: 0;
  min-width: 0;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.prep-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.prep-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

/* 步骤详情 */
.step-detail {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.step-block {
  margin-bottom: 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 90px;
}

.step-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background-color: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

.step-block-head .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.step-block-head h3 {
  margin: 0;
  font-size: 1.08rem;
  min-width: 0;
}

.step-block-body {
  padding: 16px 20px 18px;
}

.step-block-body p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.step-block-body .inline-link {
  margin-top: 2px;
}

/* 入口核验清单 */
.entry-check {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.check-row-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.check-object h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.check-object p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.check-standard p {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.check-next a {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 0;
  min-height: 36px;
}

/* 中断处理顺序 */
.interrupt-order {
  margin-bottom: 8px;
  scroll-margin-top: 90px;
}

.interrupt-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.interrupt-item {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--link);
  border-radius: var(--radius);
}

.interrupt-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.interrupt-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.interrupt-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ===== 问题排查页 ===== */
.issue-categories {
  margin-bottom: 28px;
  scroll-margin-top: 90px;
}

.issue-categories h2,
.issue-faq h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.section-lead {
  margin: 0 0 18px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

.issue-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-category {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.issue-category h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.issue-category p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.issue-category a {
  display: inline-block;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 6px 0;
  min-height: 36px;
}

.issue-figure {
  margin: 0 0 28px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.issue-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.issue-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.issue-faq {
  margin-bottom: 8px;
  scroll-margin-top: 90px;
}

.faq-body {
  padding: 14px 16px 16px;
}

.faq-steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: faqstep;
  display: grid;
  gap: 8px;
}

.faq-steps li {
  counter-increment: faqstep;
  position: relative;
  padding-left: 34px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-steps li::before {
  content: counter(faqstep);
  position: absolute;
  left: 0;
  top: 0.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background-color: var(--paper-alt);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  line-height: 1.65;
}

.faq-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 0;
  min-height: 36px;
}

/* 右侧核对栏 */
.feedback-check {
  min-width: 0;
  padding: 20px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}

.feedback-check h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.aside-lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.check-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.check-block h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.check-block p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.aside-foot {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== 术语资料页 ===== */
.term-intro {
  margin-bottom: 36px;
  padding: 22px 24px;
  background-color: var(--paper-alt);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}

.term-intro h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.term-intro p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.term-figure {
  margin: 18px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper);
  border: 1px solid var(--line);
}

.term-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.term-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.term-groups {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.term-groups > h2,
.usage-notes > h2,
.data-boundary > h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.section-note {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

.term-group {
  margin-bottom: 24px;
  padding: 18px 20px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.term-group > h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
  padding: 0;
}

.term-item {
  min-width: 0;
  padding: 12px 14px;
  background-color: var(--paper-alt);
  border-left: 3px solid var(--link);
  border-radius: var(--radius-sm);
}

.term-item dt {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}

.term-item dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.usage-notes {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.usage-note {
  margin-bottom: 16px;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.usage-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.usage-note p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 46em;
}

.data-boundary {
  margin-bottom: 8px;
  padding: 22px 24px;
  background-color: var(--ink);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  color: #C7D0DE;
  scroll-margin-top: 90px;
}

.data-boundary > h2 {
  color: var(--paper);
}

.data-boundary > p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #C7D0DE;
  max-width: 46em;
}

.boundary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 24px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #DCE3EE;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 1px;
}

/* ===== 站点说明页 ===== */
.about-positioning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.about-copy {
  min-width: 0;
}

.about-copy h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.about-copy p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.about-cta {
  margin-top: 6px;
}

.about-photo {
  margin: 0;
  min-width: 0;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 10px 14px;
  border-top: 3px solid var(--accent);
}

.work-process {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.work-process > h2,
.content-boundary > h2,
.feedback-route > h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.duty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.duty-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
}

.duty-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.duty-card > p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.68;
}

.duty-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.duty-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.duty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background-color: var(--link);
  border-radius: 1px;
}

.content-boundary {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.boundary-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.boundary-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.boundary-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.feedback-route {
  margin-bottom: 8px;
  scroll-margin-top: 90px;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.route-step {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
}

.route-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paper);
  background-color: var(--ink);
  border-radius: var(--radius-sm);
}

.route-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.route-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.68;
}

.route-note {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background-color: var(--paper-alt);
  border-left: 4px solid var(--link);
  border-radius: var(--radius-sm);
}

/* ===== 404 页 ===== */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  max-width: 640px;
  margin: 0 0 40px;
  padding: 28px 28px 24px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--link);
}

.error-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}

.error-lead {
  margin: 0 0 18px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.error-hint-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.error-hint-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.error-path {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 1px 8px;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-next h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-link-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  background-color: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--link);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.error-link-list a:hover {
  background-color: var(--accent);
  border-left-color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. responsive —— 平板与手机
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sidebar-left.channels-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-stream {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout,
  .sidebar-left.channels-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-index {
    position: static;
  }

  .index-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .index-list > li {
    flex: 0 0 auto;
  }

  .index-list a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid var(--line);
  }

  .index-list a:hover {
    border-left: 0;
    border-bottom-color: var(--link);
  }

  .faq-grid,
  .glossary-about,
  .check-row-list,
  .issue-category-grid,
  .prep-grid,
  .about-positioning {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    gap: 0;
    min-height: 60px;
    flex-wrap: wrap;
  }

  .brand {
    padding: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.portal-nav {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line-dark);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    white-space: normal;
  }

  .nav-link.is-current {
    border-left-color: var(--accent);
  }

  .nav-desc {
    display: none;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .home-main > section {
    padding: 36px 16px;
  }

  .hero {
    padding-top: 32px !important;
    padding-bottom: 36px !important;
  }

  .hero-actions .btn {
    flex: 1 1 200px;
  }

  .channel-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .channel-chip {
    flex: 0 0 200px;
  }

  .stream-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .stream-media img {
    min-height: 96px;
  }

  .channel-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-figure img {
    min-height: 0;
  }

  .step-chip-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .step-chip {
    flex: 0 0 auto;
  }

  .step-chip a {
    white-space: nowrap;
  }

  .entry-actions,
  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 28px 16px 24px;
  }

  .footer-nav {
    gap: 0 16px;
  }

  .footer-copy {
    padding-top: 14px;
  }

  .map-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .map-table th,
  .map-table td {
    padding: 10px 12px;
    min-width: 130px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 15.5px;
  }

  .page-header {
    padding-left: 12px;
    border-left-width: 4px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .stream-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream-media img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .sequence-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .playlist-block {
    padding: 16px;
  }

  .playlist-item {
    padding: 12px 14px 12px 44px;
  }

  .playlist-item::before {
    left: 12px;
    top: 12px;
  }

  .step-block-head {
    padding: 12px 14px;
    gap: 10px;
  }

  .step-block-body {
    padding: 14px 14px 16px;
  }

  .check-row,
  .issue-category,
  .duty-card,
  .boundary-item,
  .usage-note,
  .reason-item,
  .check-item {
    padding: 14px;
  }

  .entry-card {
    padding: 20px 18px 16px;
  }

  .error-panel {
    padding: 22px 18px 20px;
  }

  .error-code {
    font-size: 2rem;
  }
}

/* 动效增强：仅在允许动画时生效，不影响初始可见性 */
@media (prefers-reduced-motion: no-preference) {
  .channel-chip a,
  .related-card,
  .error-link-list a,
  .title-anchors a,
  .page-anchors a,
  .index-list a {
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }
}
