/* ==========================================================================
   夸克影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #F7F5F1;
  --surface: #FFFFFF;
  --line: #E2DDD5;
  --line-soft: #EDE8E0;
  --ink: #23262B;
  --ink-soft: #5F646C;
  --ink-faint: #83888F;
  --tint: #F1EEE7;
  --tint-line: #C9BFAE;

  --blue: #52708C;
  --green: #6F8A76;
  --clay: #AE8562;
  --purple: #827A9B;
  --ochre: #A08F63;
  --teal: #578487;

  --accent: #52708C;
  --accent-dark: #3F5A73;

  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1240px;
  --rail: 232px;
  --gap: 40px;
  --header-h: 64px;

  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-top: 8px;
}

strong {
  font-weight: 600;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: none;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  padding: 6px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.site-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav {
  flex: none;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-list li {
  margin: 0;
}

.header-nav-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header-nav-list a:hover,
.header-nav-list a:focus-visible {
  color: var(--ink);
  background: var(--tint);
}

.header-nav-list a.is-current {
  color: #fff;
  background: var(--accent);
}

.rail-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.rail-toggle::before,
.rail-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.rail-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.rail-toggle::after {
  bottom: 16px;
}

.site-main {
  display: block;
  min-width: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px 34px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.4fr) minmax(220px, 1fr);
  gap: 28px 40px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-about p {
  margin-bottom: 6px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-nav a {
  color: var(--ink-soft);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

.footer-note p {
  margin-bottom: 6px;
}

.footer-copy {
  color: var(--ink-faint);
}

/* 侧栏 + 主内容布局 */
.page-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left,
.layout-shell.sidebar-left {
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.page-layout > .site-main {
  min-width: 0;
}

.home-main,
.inner-main {
  padding-top: 26px;
  padding-bottom: 8px;
  max-width: 880px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   components · 侧栏目录
   -------------------------------------------------------------------------- */

.side-rail {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  align-self: start;
  padding: 22px 0 24px;
  font-size: 14px;
}

.rail-section,
.side-rail > nav {
  margin-bottom: 22px;
}

.rail-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-faint);
  text-transform: none;
}

.rail-nav-list,
.rail-list,
.rail-anchors,
.rail-anchor-list,
.anchor-list {
  display: block;
}

.rail-nav-list li,
.rail-list li,
.rail-anchors li,
.rail-anchor-list li,
.anchor-list li {
  margin: 0 0 2px;
}

.rail-nav-list a,
.rail-list a,
.side-rail .rail-nav a {
  display: block;
  padding: 7px 10px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

.rail-nav-list a:hover,
.rail-list a:hover,
.side-rail .rail-nav a:hover,
.rail-nav-list a:focus-visible,
.rail-list a:focus-visible,
.side-rail .rail-nav a:focus-visible {
  color: var(--ink);
  background: var(--tint);
}

.rail-nav-list a.is-current,
.rail-list a.is-current,
.side-rail .rail-nav a.is-current {
  color: #fff;
  background: var(--accent);
  border-left-color: var(--accent-dark);
}

.rail-anchors a,
.rail-anchor-list a,
.anchor-list a {
  display: block;
  padding: 5px 10px 5px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
}

.rail-anchors a:hover,
.rail-anchor-list a:hover,
.anchor-list a:hover,
.rail-anchors a:focus-visible,
.rail-anchor-list a:focus-visible,
.anchor-list a:focus-visible {
  color: var(--accent);
  border-left-color: var(--accent);
}

.rail-anchors a.is-active,
.rail-anchor-list a.is-active,
.anchor-list a.is-active {
  color: var(--accent-dark);
  font-weight: 600;
  border-left-color: var(--accent);
}

.rail-drawer {
  display: none;
}

.drawer-nav {
  display: block;
}

/* --------------------------------------------------------------------------
   components · 通用标题、段落、按钮
   -------------------------------------------------------------------------- */

.section-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 8px 0 20px;
  max-width: 68ch;
}

.home-main > section,
.inner-main > section {
  margin-bottom: 46px;
}

.home-main h2,
.inner-main > section > h2 {
  font-size: 22px;
  position: relative;
  padding-left: 12px;
}

.home-main h2::before,
.inner-main > section > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

h3 {
  font-size: 17px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent-dark);
  border-color: var(--tint-line);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.btn-text::after {
  content: "→";
  margin-left: 6px;
  font-weight: 400;
}

.path-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.path-link::after {
  content: "›";
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   components · 面包屑、页面标题区、相关链接
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--ink-faint);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-bottom: 6px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.page-head {
  margin-bottom: 30px;
}

.page-summary {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 10px 0 0;
  max-width: 70ch;
}

.related-links {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 8px 0 40px;
  font-size: 14px;
}

.related-links h2,
.related-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  padding: 0;
}

.related-links h2::before,
.related-title::before {
  content: none;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.related-links li {
  margin: 0;
}

.related-links a {
  color: var(--accent);
}

.related-links span {
  color: var(--ink-faint);
  margin-left: 8px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 视频卡片
   -------------------------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  min-width: 0;
}

.video-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}

.video-card > a:hover,
.video-card > a:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--ink);
}

.video-card .card-cover,
.video-card .video-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tint);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.video-card .card-cover img,
.video-card .video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card h3,
.video-card .video-title {
  display: block;
  padding: 12px 14px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.video-card .card-meta,
.video-card .video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.card-duration,
.video-duration {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

.card-tag,
.video-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--accent-dark);
  background: var(--tint);
  border: 1px solid var(--tint-line);
}

/* --------------------------------------------------------------------------
   components · 流程纵线（首页 / 观看指南共用）
   -------------------------------------------------------------------------- */

.flow-rail {
  position: relative;
  padding-left: 0;
}

.flow-step {
  position: relative;
  padding: 0 0 22px 48px;
  min-height: 44px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.flow-step:last-child::before {
  display: none;
}

.flow-step .step-index,
.flow-step .flow-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--tint-line);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.flow-step h3 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.flow-step p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.hero-needs {
  margin-bottom: 20px;
  border-left: 3px solid var(--tint-line);
  padding-left: 14px;
}

.hero-needs li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-needs li:last-child {
  margin-bottom: 0;
}

.hero-needs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.channel-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
}

.chip-blue .chip-dot { background: var(--blue); }
.chip-green .chip-dot { background: var(--green); }
.chip-clay .chip-dot { background: var(--clay); }
.chip-purple .chip-dot { background: var(--purple); }
.chip-ochre .chip-dot { background: var(--ochre); }
.chip-teal .chip-dot { background: var(--teal); }

.chip-desc {
  color: var(--ink-soft);
}

/* 需求与对应路径 */
.path-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-col {
  min-width: 0;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--tint-line);
}

.path-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-col p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* 频道总览 */
.channel-overview .overview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 26px;
  align-items: start;
}

.channel-overview .overview-text {
  min-width: 0;
}

.channel-overview .overview-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.channel-overview .overview-list {
  margin-top: 6px;
}

.channel-overview .overview-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.channel-overview .overview-list li:last-child {
  margin-bottom: 0;
}

.channel-overview .overview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tint-line);
}

.channel-overview .overview-visual {
  min-width: 0;
}

.channel-overview .overview-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

/* 专题精选 */
.featured .featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px;
  align-items: stretch;
}

.featured .feature-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 18px;
}

.featured .feature-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid var(--line-soft);
}

.featured .feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured .feature-main h3 {
  font-size: 18px;
  padding: 16px 20px 0;
  margin-bottom: 8px;
}

.featured .feature-main p {
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.featured .feature-main .path-link {
  padding: 0 20px;
  margin-top: 4px;
}

.featured .feature-sub {
  min-width: 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 4px 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.featured .feature-thumb {
  grid-row: 1 / span 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.featured .feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured .feature-sub h3 {
  font-size: 15px;
  margin: 0;
  align-self: end;
}

.featured .feature-sub p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* 首页视频卡片：四张两列，两行齐整 */
.video-section .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 入口核验要点 */
.verify-section .verify-points {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.verify-section .verify-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.verify-section .verify-row:last-child {
  border-bottom: 0;
}

.verify-section .verify-row dt {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.verify-section .verify-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

.verify-section .verify-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 常见问题 */
.faq .faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq .faq-item summary::before {
  content: "+";
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tint-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-dark);
  line-height: 1;
}

.faq .faq-item[open] summary::before {
  content: "−";
}

.faq .faq-item summary:hover {
  color: var(--accent-dark);
}

.faq .faq-item p {
  padding: 0 16px 12px 46px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.faq .faq-item p:last-child {
  padding-bottom: 16px;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */

.channel-table .channel-table-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.channel-table .channel-row {
  display: grid;
  grid-template-columns: 14px 96px minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.65;
}

.channel-table .channel-row:last-child {
  border-bottom: 0;
}

.channel-table .channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.channel-table .channel-row:nth-child(1) .channel-dot { background: var(--blue); }
.channel-table .channel-row:nth-child(2) .channel-dot { background: var(--green); }
.channel-table .channel-row:nth-child(3) .channel-dot { background: var(--clay); }
.channel-table .channel-row:nth-child(4) .channel-dot { background: var(--purple); }
.channel-table .channel-row:nth-child(5) .channel-dot { background: var(--ochre); }
.channel-table .channel-row:nth-child(6) .channel-dot { background: var(--teal); }

.channel-table .channel-name {
  font-weight: 600;
  color: var(--ink);
}

.channel-table .channel-direction {
  color: var(--ink-soft);
  min-width: 0;
}

.channel-table .channel-tags {
  color: var(--ink-faint);
  font-size: 13px;
  min-width: 0;
}

.tag-usage .tag-usage-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tag-usage .tag-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag-usage .tag-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tag-usage .tag-col > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.tag-usage .tag-list {
  margin-top: 10px;
}

.tag-usage .tag-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.tag-usage .tag-list li:last-child {
  margin-bottom: 0;
}

.tag-usage .tag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tint-line);
}

.channel-cards .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 选择步骤 */
.choose-steps .step-list {
  display: block;
}

.choose-steps .step-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.choose-steps .step-row:last-child {
  margin-bottom: 0;
}

.choose-steps .step-row .step-index {
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.choose-steps .step-row h3 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.choose-steps .step-row p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  min-width: 0;
}

/* 频道边界 */
.boundary .boundary-list {
  border-left: 3px solid var(--tint-line);
  padding-left: 18px;
}

.boundary .boundary-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.boundary .boundary-list li:last-child {
  margin-bottom: 0;
}

.boundary .boundary-list strong {
  color: var(--ink);
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */

.rules .rules-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rules .rule-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules .rule-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.rules .rule-col > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rules .rule-list {
  margin-top: 10px;
}

.rules .rule-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.rules .rule-list li:last-child {
  margin-bottom: 0;
}

.rules .rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tint-line);
}

.collection-list .collection-list-items {
  display: block;
}

.collection-list .collection-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.collection-list .collection-row:last-child {
  margin-bottom: 0;
}

.collection-list .collection-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.collection-list .collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-list .collection-text {
  min-width: 0;
}

.collection-list .collection-text h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.collection-list .collection-idea {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.collection-list .collection-channels {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin: 8px 0 0;
}

.collection-list .collection-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.collection-list .collection-link::after {
  content: "›";
  margin-left: 4px;
}

/* 入选标准 */
.criteria .criteria-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.criteria .criteria-list li {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria .criteria-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.criteria .criteria-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* 对应关系表 */
.mapping-table .mapping-grid {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.mapping-table .mapping-grid caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-faint);
  padding-bottom: 8px;
}

.mapping-table .mapping-grid th,
.mapping-table .mapping-grid td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.7;
}

.mapping-table .mapping-grid thead th {
  background: var(--tint);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.mapping-table .mapping-grid tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 42%;
}

.mapping-table .mapping-grid tbody td {
  color: var(--ink-soft);
}

.mapping-table .mapping-grid tbody tr:last-child th,
.mapping-table .mapping-grid tbody tr:last-child td {
  border-bottom: 0;
}

.mapping-table .mapping-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */

.pre-check .pre-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pre-check .check-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--tint-line);
}

.pre-check .check-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.pre-check .check-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.label-read .label-read-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.label-read .label-visual {
  min-width: 0;
}

.label-read .label-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.label-read .label-text {
  min-width: 0;
}

.label-read .label-text h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.label-read .label-text h3:not(:first-child) {
  margin-top: 18px;
}

.label-read .label-text p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.play-steps .flow-rail {
  display: block;
}

.error-order .error-list {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.error-order .error-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.error-order .error-step:last-child {
  border-bottom: 0;
}

.error-order .error-step .error-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.error-order .error-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 入口核验
   -------------------------------------------------------------------------- */

.three-checks .checks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.three-checks .check-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--tint-line);
}

.three-checks .check-col .check-index {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.three-checks .check-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.three-checks .check-col .check-standard {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 8px;
}

.three-checks .check-col .check-tip {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.three-checks .verify-figure {
  margin-top: 22px;
  min-width: 0;
}

.three-checks .verify-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.abnormal-list .abnormal-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.abnormal-list .abnormal-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.abnormal-list .abnormal-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.abnormal-list .abnormal-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.handle-order .step-list {
  display: block;
}

.handle-order .step-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.handle-order .step-row:last-child {
  margin-bottom: 0;
}

.handle-order .step-row .step-num {
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.handle-order .step-row .step-body {
  min-width: 0;
}

.handle-order .step-row h3 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.handle-order .step-row p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  min-width: 0;
}

.record-way .record-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-way .record-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius);
}

.record-way .record-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.record-way .record-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 问题排查
   -------------------------------------------------------------------------- */

.self-check .self-check-list {
  display: block;
}

.self-check .self-check-list .check-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--tint-line);
  margin-bottom: 10px;
}

.self-check .self-check-list .check-item:last-child {
  margin-bottom: 0;
}

.self-check .self-check-list .check-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.self-check .self-check-list .check-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.self-check .self-check-list .check-item p a {
  font-weight: 600;
}

.problem-types .problem-types-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.problem-types .type-card {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-types .type-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.problem-types .type-card > p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.problem-types .type-card .type-hint {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
}

.problem-types .media-figure {
  margin-top: 20px;
  min-width: 0;
}

.problem-types .media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.paths .paths-list {
  display: block;
}

.paths .path-row {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.paths .path-row:last-child {
  margin-bottom: 0;
}

.paths .path-row h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.paths .path-row .path-action {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.paths .path-row .path-record {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.info-elements .info-elements-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.info-elements .info-elements-list dt {
  padding: 12px 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.info-elements .info-elements-list dd {
  margin: 0;
  padding: 4px 18px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.info-elements .info-elements-list dd:last-of-type {
  border-bottom: 0;
}

.correction h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.correction h3:first-of-type {
  margin-top: 0;
}

.correction .correction-list {
  border-left: 3px solid var(--tint-line);
  padding-left: 16px;
  margin-bottom: 8px;
}

.correction .correction-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.correction .correction-list li:last-child {
  margin-bottom: 0;
}

.correction > p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 站务说明
   -------------------------------------------------------------------------- */

.scope .scope-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 26px;
  align-items: start;
}

.scope .scope-text {
  min-width: 0;
}

.scope .scope-text h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.scope .scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.scope .scope-list li:last-child {
  margin-bottom: 0;
}

.scope .scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tint-line);
}

.scope .scope-visual {
  min-width: 0;
}

.scope .scope-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.principles .principles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.principles .principles-list li {
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principles .principles-list h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.principles .principles-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.update-way .update-steps {
  display: block;
}

.update-way .update-steps .step-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.update-way .update-steps .step-row:last-child {
  margin-bottom: 0;
}

.update-way .update-steps .step-num {
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.update-way .update-steps h3 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.update-way .update-steps p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  min-width: 0;
}

.update-way .update-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list .boundary-items {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.boundary-list .boundary-items li {
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.boundary-list .boundary-items li:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.error-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.error-block h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.error-tips {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  margin-bottom: 22px;
}

.error-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.error-tips li:last-child {
  margin-bottom: 0;
}

.error-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--tint-line);
}

.error-path {
  color: var(--ink);
  font-weight: 600;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  :root {
    --rail: 208px;
    --gap: 30px;
  }

  .header-nav-list a {
    padding: 7px 8px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .header-nav {
    display: none;
  }

  .rail-toggle {
    display: block;
    margin-left: auto;
  }

  .site-tagline {
    display: none;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 20px;
  }

  .side-rail {
    display: none;
  }

  .rail-drawer {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    overflow-y: auto;
    padding: 20px 20px 40px;
    background: var(--paper);
    border-top: 1px solid var(--line);
  }

  .rail-drawer[hidden] {
    display: none;
  }

  .rail-drawer .rail-title {
    margin-top: 4px;
  }

  .rail-drawer .rail-nav-list,
  .rail-drawer .rail-nav,
  .rail-drawer .rail-anchors,
  .rail-drawer .rail-anchor-list {
    margin-bottom: 20px;
  }

  .home-main,
  .inner-main {
    max-width: none;
    padding-top: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .channel-strip {
    order: 3;
    margin-top: 0;
  }

  .channel-overview .overview-body,
  .label-read .label-read-grid,
  .scope .scope-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .featured .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured .feature-sub {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left,
  .layout-shell.sidebar-left {
    padding: 0 16px;
  }

  .page-title {
    font-size: 25px;
  }

  .home-main h2,
  .inner-main > section > h2 {
    font-size: 20px;
  }

  .home-main > section,
  .inner-main > section {
    margin-bottom: 36px;
  }

  /* 需求路径、标签列、卡片网格降为单列 */
  .path-cols,
  .tag-usage .tag-usage-cols,
  .rules .rules-cols,
  .criteria .criteria-list,
  .abnormal-list .abnormal-items,
  .problem-types .problem-types-list,
  .principles .principles-list,
  .record-way .record-body,
  .pre-check .pre-check-list,
  .three-checks .checks-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-grid,
  .video-section .video-grid,
  .channel-cards .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-table .channel-row {
    grid-template-columns: 14px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 4px 10px;
    padding: 14px 16px;
  }

  .channel-table .channel-row .channel-dot {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 8px;
  }

  .channel-table .channel-name {
    grid-column: 2;
  }

  .channel-table .channel-direction {
    grid-column: 2;
  }

  .channel-table .channel-tags {
    grid-column: 2;
  }

  .collection-list .collection-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .collection-list .collection-cover {
    aspect-ratio: 16 / 9;
  }

  .verify-section .verify-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .verify-section .verify-row dt {
    font-size: 14px;
  }

  .mapping-table .mapping-grid th,
  .mapping-table .mapping-grid td {
    padding: 10px 12px;
  }

  .mapping-table .mapping-grid tbody th {
    width: 46%;
  }

  .flow-step {
    padding-left: 44px;
  }

  .faq .faq-item p {
    padding-left: 16px;
  }

  .error-block {
    padding: 24px 20px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 16px 30px;
  }

  .footer-note {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .featured .feature-sub {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured .feature-thumb {
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .choose-steps .step-row,
  .handle-order .step-row,
  .update-way .update-steps .step-row {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    padding: 14px;
  }

  .choose-steps .step-row .step-index,
  .handle-order .step-row .step-num,
  .update-way .update-steps .step-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .error-order .error-step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  .error-order .error-step .error-num {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .channel-chip {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .video-card > a:hover,
  .video-card > a:focus-visible {
    transform: none;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
