/* ==========================================================================
   草莓视频 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #0E1A24;
  --panel: #16252F;
  --panel-soft: #1B2C37;
  --text: #E8EEF2;
  --text-dim: #9FB0BC;
  --text-mute: #7C8E9B;
  --line: #2B3A45;
  --line-soft: #223039;
  --teal: #3FB6A8;
  --amber: #E4A33B;
  --coral: #E4695C;
  --indigo: #7A8FE0;
  --grass: #8FBF5A;
  --green: #4FA97A;
  --violet: #A37BD4;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: var(--teal);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

strong {
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
}

::selection {
  background: rgba(63, 182, 168, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 26, 36, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--coral);
  vertical-align: 2px;
}

.brand:hover {
  color: var(--text);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  flex: none;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

.nav-item.is-current > a,
.nav-item > a.is-current {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-dim);
}

/* 页面标题区 */
.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.page-lead {
  margin-top: 12px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-title-area,
.page-head {
  padding-top: 12px;
}

.page-head .container,
.page-title-block {
  max-width: 860px;
}

/* 两栏布局：侧栏在左 */
.page-layout {
  display: grid;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.sidebar-left .topic-tree {
  order: 1;
}

.page-layout.sidebar-left .layout-main,
.page-layout.sidebar-left .main-column {
  order: 2;
  min-width: 0;
}

.layout-main,
.main-column {
  min-width: 0;
}

/* 页脚 */
.site-footer {
  flex: none;
  border-top: 1px solid var(--line);
  background: #0B151D;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 48px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.footer-brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--coral);
  vertical-align: 2px;
}

.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-mute);
  max-width: 380px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-mute);
  padding: 2px 0;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 24px 28px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-mute);
}

.footer-copy {
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

/* 区域色标 */
.swatch,
.channel-swatch,
.route-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: none;
  background: var(--line);
}

.swatch-teal,
.channel-swatch.swatch-teal,
.route-swatch-teal {
  background: var(--teal);
}

.swatch-amber,
.channel-swatch.swatch-amber,
.route-swatch-amber {
  background: var(--amber);
}

.swatch-coral,
.channel-swatch.swatch-coral {
  background: var(--coral);
}

.swatch-indigo,
.channel-swatch.swatch-indigo {
  background: var(--indigo);
}

.swatch-grass,
.channel-swatch.swatch-grass {
  background: var(--grass);
}

.swatch-green {
  background: var(--green);
}

.swatch-violet {
  background: var(--violet);
}

/* 文字入口 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.text-link::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.16s ease;
}

.text-link:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 图片容器 */
.media-figure,
.symptom-figure,
.faq-figure,
.archive-figure,
.route-figure,
.hero-media,
.route-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.media-figure img,
.symptom-figure img,
.faq-figure img,
.archive-figure img,
.route-figure img,
.hero-media img,
.route-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-figure figcaption,
.symptom-figure figcaption,
.faq-figure figcaption,
.archive-figure figcaption,
.route-figure figcaption,
.hero-media figcaption,
.route-media figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-mute);
  border-top: 1px solid var(--line-soft);
  background: var(--panel);
}

.media-wide img {
  aspect-ratio: 16 / 8;
}

.media-narrow img {
  aspect-ratio: 16 / 7;
}

/* 表格通用 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.channel-table,
.node-table,
.data-table,
.routing-table {
  min-width: 560px;
  font-size: 14px;
}

.channel-table caption,
.node-table caption,
.data-table caption,
.routing-table caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line-soft);
}

.channel-table thead th,
.node-table thead th,
.data-table thead th,
.routing-table thead th {
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.channel-table tbody td,
.node-table tbody td,
.data-table tbody td,
.routing-table tbody td,
.routing-table tbody th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  line-height: 1.65;
}

.channel-table tbody tr:last-child td,
.node-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.routing-table tbody tr:last-child td,
.routing-table tbody tr:last-child th {
  border-bottom: 0;
}

.channel-table tbody tr:hover td,
.node-table tbody tr:hover td,
.data-table tbody tr:hover td,
.routing-table tbody tr:hover td,
.routing-table tbody tr:hover th {
  background: #1A2A35;
}

/* 等宽数字 */
.num,
.mono,
.field-label,
.channel-table td:first-child,
.node-table td:first-child,
.data-table td:first-child {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* 侧栏主题树 */
.topic-tree {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 16px;
  min-width: 0;
}

.aside-title,
.topic-tree-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.aside-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-mute);
  margin-bottom: 14px;
}

.tree-group {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}

.tree-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.tree-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-list li > a {
  display: block;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

.tree-list li > a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.tree-list li > a.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--panel-soft);
  border-left-color: var(--teal);
}

.tree-group-link {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0;
}

.tree-sub {
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-sub li > a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
}

.tree-sub li > a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

/* 批次索引树 */
.topic-tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topic-tree-group-link {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.topic-tree-group-link:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.topic-tree-group-link.is-current {
  color: var(--text);
  font-weight: 700;
  background: var(--panel-soft);
  border-left-color: var(--amber);
}

/* 通用 section 说明文字 */
.section-lead,
.section-intro,
.section-note {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 720px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 字段说明列表 */
.field-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: field;
}

.field-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 14px 16px;
}

.field-item h3,
.field-item .field-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.field-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--line);
  background: #0C1822;
}

.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
  padding-top: 8px;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 440px;
}

.hero-entries {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-entries li {
  min-width: 0;
}

.hero-entries a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.5;
}

.hero-entries a::after {
  content: "→";
  color: var(--teal);
  font-size: 14px;
  transition: transform 0.16s ease;
}

.hero-entries a:hover {
  border-color: var(--teal);
  color: var(--text);
}

.hero-entries a:hover::after {
  transform: translateX(3px);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 16 / 9;
}

/* 区域色标条 */
.region-strip {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 24px;
}

.region-strip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-strip-item {
  flex: 0 1 auto;
}

.region-strip-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.region-strip-item a:hover {
  color: var(--text);
  border-color: var(--teal);
}

/* 首页区块通用 */
.channel-overview,
.route-feature,
.prepare-steps,
.symptom-entries,
.archive-brief,
.scope-note {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.scope-note {
  padding-bottom: 8px;
}

.section-head {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-head p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.section-more {
  margin-top: 20px;
  font-size: 14px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.section-more a::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.16s ease;
}

.section-more a:hover {
  border-bottom-color: var(--teal);
}

.section-more a:hover::after {
  transform: translateX(3px);
}

/* 频道总览列表 */
.channel-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.channel-row {
  display: grid;
  grid-template-columns: 18px minmax(96px, 1fr) minmax(0, 2.6fr) minmax(120px, 1.4fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-row:hover {
  background: var(--panel-soft);
  border-left-color: var(--teal);
}

.channel-swatch {
  justify-self: start;
}

.channel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.channel-direction {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.channel-form {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-mute);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* 路线卡（首页） */
.route-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.16s ease;
}

.route-card:hover {
  border-color: var(--teal);
}

.route-feature .route-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.16s ease;
}

.route-feature .route-card:hover::before {
  background: var(--coral);
}

.route-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.route-meta {
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.route-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1 1 auto;
}

.route-path {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
}

.route-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.route-link:hover {
  border-bottom-color: var(--teal);
}

.route-media {
  margin-top: 20px;
}

.route-media img {
  aspect-ratio: 21 / 9;
}

/* 观看前准备 */
.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: prep;
}

.step-item {
  min-width: 0;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.step-action {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.step-check {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-mute);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.step-check::before {
  content: "判断 · ";
  color: var(--amber);
  font-weight: 700;
}

/* 播放现象分流 */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.symptom-item {
  min-width: 0;
}

.symptom-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius-sm);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.symptom-item a:hover {
  background: var(--panel-soft);
  border-color: var(--coral);
}

.symptom-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.symptom-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* 往期回顾摘要 */
.batch-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 0;
}

.batch-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0 14px 24px;
  min-width: 0;
}

.batch-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
}

.batch-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.03em;
}

.batch-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.batch-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  min-width: 0;
}

/* 内容范围说明 */
.scope-note h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.scope-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}

.scope-col {
  min-width: 0;
}

.scope-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--amber);
}

/* --------------------------------------------------------------------------
   pages · 频道地图
   -------------------------------------------------------------------------- */

.page-channel-map .page-title-area {
  padding-top: 10px;
}

.region-tabs {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.region-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.region-tabs a:hover {
  color: var(--text);
  border-color: var(--teal);
}

.page-channel-map .section {
  padding-top: 36px;
}

.page-channel-map .section:first-child {
  padding-top: 0;
}

.page-channel-map .section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.legend-section .media-figure {
  margin-top: 18px;
}

.legend-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.legend-list li strong {
  color: var(--text);
  font-weight: 700;
}

.table-section .table-scroll {
  margin-top: 16px;
}

.table-section .media-figure {
  margin-top: 20px;
}

.channel-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.field-section .field-list {
  margin-top: 16px;
}

.next-step {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.next-step-card {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.next-step-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   pages · 路线专题
   -------------------------------------------------------------------------- */

.page-routes .route-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-routes .route-cards h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-routes .route-cards .section-note {
  margin-bottom: 8px;
}

.page-routes .route-card {
  padding: 18px 20px;
}

.route-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.route-card-head .route-name {
  font-size: 17px;
  margin: 0;
}

.route-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.route-start,
.route-fit {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.route-start::before {
  content: "起点 · ";
  color: var(--teal);
  font-weight: 700;
}

.route-fit::before {
  content: "适用 · ";
  color: var(--amber);
  font-weight: 700;
}

.page-routes .route-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 2px;
}

.page-routes .path-node {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-soft);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.page-routes .path-line {
  display: block;
  width: 20px;
  height: 0;
  border-top: 1px dashed var(--line);
  margin: 0 2px;
}

.route-figure {
  margin-top: 24px;
}

.route-figure img {
  aspect-ratio: 16 / 7;
}

.node-table-section {
  margin-top: 36px;
}

.node-table-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.table-caption {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--teal);
}

.node-table td:first-child {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.node-table td:last-child {
  color: var(--text-mute);
  font-size: 13px;
  white-space: nowrap;
}

.item-fields {
  margin-top: 36px;
}

.item-fields h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.item-fields .field-list {
  margin-top: 14px;
}

.switch-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.switch-note h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.switch-block {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.switch-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.switch-block p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.page-viewing-guide .page-head {
  padding-top: 10px;
}

.guide-shell {
  max-width: 760px;
  margin: 32px 0 0;
}

.guide-section {
  padding-top: 36px;
}

.guide-section:first-child {
  padding-top: 0;
}

.guide-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.guide-section .section-intro {
  margin-bottom: 18px;
}

.check-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-body .step-action,
.step-body .step-standard,
.step-body .step-fallback {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.step-body .step-standard {
  margin-top: 4px;
}

.step-body .step-standard::before {
  content: "判断标准 · ";
  color: var(--teal);
  font-weight: 700;
}

.step-body .step-fallback {
  margin-top: 4px;
  color: var(--text-mute);
}

.step-body .step-fallback::before {
  content: "不通过时 · ";
  color: var(--amber);
  font-weight: 700;
}

.page-viewing-guide .media-figure {
  margin-bottom: 18px;
}

.page-viewing-guide .media-figure img {
  aspect-ratio: 16 / 8;
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.table-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

.table-note a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.table-note a:hover {
  border-bottom-color: var(--teal);
}

.interface-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interface-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.interface-code {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.interface-list h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.interface-list p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.direction-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.direction-card {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direction-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.direction-card p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1 1 auto;
}

.key-points {
  margin-top: 36px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 760px;
}

.key-points h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.key-points ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--teal);
}

.key-points-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.key-points-more a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.key-points-more a:hover {
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   pages · 播放排查
   -------------------------------------------------------------------------- */

.page-playback-help .page-head {
  padding-top: 10px;
}

.page-playback-help .container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-playback-help .page-title .page-lead {
  margin-top: 12px;
}

.symptom-section {
  padding-top: 28px;
}

.symptom-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.symptom-figure {
  min-width: 0;
}

.symptom-figure img {
  aspect-ratio: 4 / 3;
}

.symptom-intro-text {
  min-width: 0;
}

.symptom-intro-text h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.symptom-intro-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.page-playback-help .symptom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.symptom-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  height: 100%;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.symptom-link:hover {
  background: var(--panel-soft);
  border-color: var(--coral);
}

.symptom-no {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.03em;
  padding-top: 2px;
}

.symptom-link .symptom-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

.symptom-link .symptom-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-mute);
}

.branch-section {
  padding-top: 40px;
}

.branch-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.branch-section .section-lead {
  margin-bottom: 22px;
}

.branch {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--radius);
}

.branch-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.branch-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.04em;
}

.branch-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.branch-desc {
  flex: 1 1 100%;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-mute);
}

.branch-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 18px;
}

.branch-point {
  position: relative;
  padding: 10px 0;
  border-top: 1px dashed var(--line-soft);
}

.branch-point:first-child {
  border-top: 0;
  padding-top: 0;
}

.branch-point::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
}

.branch-point:first-child::before {
  top: 6px;
}

.point-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.65;
}

.point-a {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.verification-section {
  padding-top: 36px;
}

.verification-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.verification-section .section-lead {
  margin-bottom: 18px;
}

.verify-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.verify-item {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.verify-item h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.verify-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
}

.wrap-up-section {
  padding-top: 36px;
}

.wrap-up-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.wrap-up-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.wrap-up-col {
  min-width: 0;
  padding: 20px;
}

.wrap-up-col + .wrap-up-col {
  border-left: 1px solid var(--line);
}

.wrap-up-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.wrap-up-col p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.wrap-up-col p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 往期回顾
   -------------------------------------------------------------------------- */

.page-archive .page-title {
  margin-top: 0;
}

.page-archive .page-title .page-lead {
  margin-top: 12px;
}

.archive-figure {
  margin-bottom: 24px;
}

.archive-figure img {
  aspect-ratio: 21 / 9;
}

.archive-timeline h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.archive-timeline .section-intro {
  margin-bottom: 20px;
}

.batch-block {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.batch-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.batch-head .batch-no {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.batch-head .batch-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.batch-block .batch-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.batch-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.batch-items .batch-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.batch-items .batch-item:last-child {
  border-bottom: 0;
}

.batch-items .batch-item::before {
  display: none;
}

.item-name {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.item-channel {
  flex: none;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.item-status {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  line-height: 1.5;
  white-space: nowrap;
}

.status-keep {
  color: var(--teal);
  border-color: rgba(63, 182, 168, 0.4);
  background: rgba(63, 182, 168, 0.08);
}

.status-adjust {
  color: var(--amber);
  border-color: rgba(228, 163, 59, 0.4);
  background: rgba(228, 163, 59, 0.08);
}

.status-merge {
  color: var(--indigo);
  border-color: rgba(122, 143, 224, 0.4);
  background: rgba(122, 143, 224, 0.08);
}

.status-legend {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.status-legend h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-legend .section-intro {
  margin-bottom: 16px;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legend-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.legend-item dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.legend-item dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.back-track {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.back-track h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.back-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.back-track-card {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-track-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.back-track-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  flex: 1 1 auto;
}

.back-track-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

.back-track-note a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.back-track-note a:hover {
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   pages · 常见答疑
   -------------------------------------------------------------------------- */

.page-faq .page-title {
  margin-top: 0;
}

.page-faq .page-title .page-lead {
  margin-top: 12px;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.faq-tab:hover {
  color: var(--text);
  border-color: var(--teal);
}

.faq-figure {
  margin-top: 24px;
}

.faq-figure img {
  aspect-ratio: 21 / 8;
}

.faq-group {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 36px;
}

.faq-group h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-group-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "展开";
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.5;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.faq-item[open] summary::after {
  content: "收起";
  border-color: var(--teal);
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-answer {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.faq-answer p + p {
  margin-top: 8px;
}

.routing-section {
  max-width: 860px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.routing-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.routing-section .section-note {
  margin-bottom: 16px;
}

.routing-table {
  min-width: 0;
}

.routing-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 40%;
}

.routing-table tbody td a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.routing-table tbody td a:hover {
  border-bottom-color: var(--teal);
}

.correction-section {
  max-width: 860px;
  margin: 36px auto 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.correction-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.correction-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
}

.correction-body p + p {
  margin-top: 8px;
}

.correction-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.correction-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.correction-links a:hover {
  border-bottom-color: var(--teal);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-block {
  max-width: 620px;
}

.error-code {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  letter-spacing: 0.04em;
}

.error-block h1 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.error-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn-primary,
.error-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius);
  line-height: 1.4;
}

.error-btn-primary {
  background: var(--teal);
  color: #08161A;
  border: 1px solid var(--teal);
}

.error-btn-primary:hover {
  background: #4FC7B8;
  color: #08161A;
}

.error-btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}

.error-btn-ghost:hover {
  border-color: var(--teal);
  color: var(--text);
}

.error-routes {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}

.error-routes h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-route-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.error-route-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 1px;
  background: var(--amber);
  flex: none;
}

.error-route-list a:hover {
  color: var(--text);
  border-color: var(--teal);
}

.error-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-cards .route-card:last-child {
    grid-column: 1 / -1;
  }

  .channel-row {
    grid-template-columns: 18px minmax(90px, 1fr) minmax(0, 2.2fr) minmax(110px, 1.2fr);
  }

  .footer-inner {
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 0 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: block;
    background: #0B151D;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item > a {
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
    border-radius: 0;
  }

  .nav-item > a:hover {
    border-bottom-color: var(--line-soft);
  }

  .nav-item.is-current > a,
  .nav-item > a.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--teal);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .hero-text {
    padding-top: 0;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-lead {
    max-width: none;
  }

  .hero-entries {
    flex-direction: column;
  }

  .region-strip {
    padding: 16px 18px 20px;
  }

  .region-strip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .region-strip-item {
    flex: none;
  }

  .channel-overview,
  .route-feature,
  .prepare-steps,
  .symptom-entries,
  .archive-brief,
  .scope-note {
    padding: 40px 18px 0;
  }

  .inner-main {
    padding: 0 18px 56px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left .topic-tree {
    order: 3;
  }

  .page-layout.sidebar-left .layout-main,
  .page-layout.sidebar-left .main-column {
    order: 2;
  }

  .topic-tree {
    padding: 16px 14px;
  }

  .channel-list {
    border-radius: var(--radius);
  }

  .channel-row {
    grid-template-columns: 14px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 4px 10px;
    padding: 14px 14px;
  }

  .channel-row .channel-swatch {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 7px;
  }

  .channel-row .channel-name {
    grid-column: 2;
  }

  .channel-row .channel-direction {
    grid-column: 2;
    font-size: 13px;
  }

  .channel-row .channel-form {
    grid-column: 2;
  }

  .route-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-cards .route-card:last-child {
    grid-column: auto;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 4px 12px;
    padding-left: 20px;
  }

  .batch-item .batch-date {
    grid-column: 2;
  }

  .batch-item .batch-note {
    grid-column: 2;
  }

  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 18px 24px;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .footer-bottom {
    padding: 16px 18px 24px;
  }

  .next-step-grid,
  .switch-grid,
  .back-track-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-playback-help .container {
    padding: 0 18px;
  }

  .symptom-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-playback-help .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verify-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .wrap-up-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .wrap-up-col + .wrap-up-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .direction-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-shell {
    max-width: none;
  }

  .key-points {
    max-width: none;
  }

  .legend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-group,
  .routing-section,
  .correction-section {
    max-width: none;
  }

  .error-main {
    padding: 48px 18px 56px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-block h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    padding: 8px 14px 14px;
  }

  .hero-inner {
    padding: 28px 14px 0;
  }

  .hero-text h1 {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-entries a {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .region-strip {
    padding: 14px 14px 18px;
  }

  .channel-overview,
  .route-feature,
  .prepare-steps,
  .symptom-entries,
  .archive-brief,
  .scope-note {
    padding: 34px 14px 0;
  }

  .inner-main {
    padding: 0 14px 48px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .page-title {
    font-size: 21px;
  }

  .page-lead {
    font-size: 14px;
  }

  .section-head h2,
  .scope-note h2 {
    font-size: 19px;
  }

  .symptom-grid,
  .page-playback-help .symptom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .check-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .step-index {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .interface-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .interface-code {
    padding-top: 0;
  }

  .branch {
    padding: 16px 14px;
  }

  .branch-points {
    padding-left: 14px;
    margin-left: 4px;
  }

  .branch-point::before {
    left: -19px;
    width: 8px;
    height: 8px;
  }

  .batch-block {
    padding: 16px 14px;
  }

  .batch-items .batch-item {
    gap: 6px 8px;
  }

  .item-name {
    flex: 1 1 100%;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .footer-col a {
    min-height: 32px;
  }

  .footer-bottom {
    padding: 14px 14px 22px;
    font-size: 11.5px;
  }

  .page-playback-help .container {
    padding: 0 14px;
  }

  .routing-table tbody th {
    width: 45%;
    white-space: normal;
  }

  .correction-section {
    padding: 16px 14px;
  }

  .error-main {
    padding: 40px 14px 48px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn-primary,
  .error-btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
