/* ==========================================================================
   樱桃影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --bg: #FBF7F4;
  --ink: #1F3A32;
  --ink-soft: #4A5F57;
  --ink-mute: #6E7F78;
  --accent: #C8354A;
  --accent-soft: #E8A0A8;
  --line: #EDE6E1;
  --surface: #FFFFFF;
  --surface-alt: #F4EDE8;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgba(31, 58, 50, 0.06), 0 6px 18px rgba(31, 58, 50, 0.05);
  --shadow-hover: 0 2px 4px rgba(31, 58, 50, 0.08), 0 12px 26px rgba(31, 58, 50, 0.08);
  --container: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 16px; font-weight: 600; }

p {
  margin: 0 0 14px;
  max-width: 720px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: #A3243A;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.6;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  caption-side: top;
  padding: 0 0 10px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

tbody th {
  font-weight: 600;
  color: var(--ink);
}

time {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.brand-sub {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 400;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter) 16px;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list li:last-child {
  border-bottom: none;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 16px;
}

.mobile-nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 56px;
}

.inner-main {
  padding-top: 24px;
}

.home-main {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--ink-mute);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.page-head,
.page-title-block,
.page-hero {
  margin-bottom: 28px;
}

.page-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

/* 页内锚点条 */
.anchor-bar {
  margin-top: 16px;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.anchor-list a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: #FFF5F6;
}

/* 通用两栏布局 */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.layout-main-aside,
.layout-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.layout-with-side {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

.main-column,
.layout-main,
.page-content,
.channel-main {
  min-width: 0;
}

.side-column,
.layout-side,
.page-side,
.page-aside {
  min-width: 0;
}

.section,
.section-block {
  margin-bottom: 40px;
}

.section:last-child,
.section-block:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.section-lead,
.section-intro,
.section-desc,
.section-note {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.section-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.section-tail {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-tail a {
  margin-right: 14px;
}

.section-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* 页脚 */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-mute);
}

.footer-nav {
  flex: 1 1 auto;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.footer-nav-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-nav-list a:hover {
  color: var(--accent);
}

.footer-note,
.footer-copy {
  margin: 0;
  flex-basis: 100%;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #A3243A;
  border-color: #A3243A;
  color: #FFFFFF;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: #FFF5F6;
}

/* 箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.link-arrow::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.16s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* 色标 */
.legend-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-soft);
}

.swatch-a { background: #C8354A; }
.swatch-b { background: #D97A55; }
.swatch-c { background: #8FA87E; }
.swatch-d { background: #6D8E9E; }
.swatch-e { background: #B08AA0; }
.swatch-f { background: #C9A45C; }

.legend-swatch.is-doc { background: #C8354A; }
.legend-swatch.is-life { background: #8FA87E; }
.legend-swatch.is-sci { background: #6D8E9E; }
.legend-swatch.is-people { background: #D97A55; }
.legend-swatch.is-city { background: #B08AA0; }
.legend-swatch.is-craft { background: #C9A45C; }

/* 侧栏通用块 */
.side-note,
.side-block,
.side-links,
.side-links-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}

.side-note:last-child,
.side-block:last-child,
.side-links:last-child {
  margin-bottom: 0;
}

.side-note h2,
.side-title,
.side-note-title,
.side-links-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.side-note p,
.side-note-list li,
.side-link-list li,
.counter-hint li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.side-note-list li,
.counter-hint li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.side-note-list li::before,
.counter-hint li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.side-note-list li:last-child,
.counter-hint li:last-child {
  margin-bottom: 0;
}

.side-link-list li {
  border-bottom: 1px dashed var(--line);
}

.side-link-list li:last-child {
  border-bottom: none;
}

.side-link-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
  font-size: 14px;
}

.side-link-list a:hover {
  color: var(--accent);
}

.side-links-list li {
  border-bottom: 1px dashed var(--line);
}

.side-links-list li:last-child {
  border-bottom: none;
}

.side-links-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.side-links-list a:hover {
  color: var(--accent);
}

/* 图片容器 */
.hero-figure,
.collection-figure,
.media-figure,
.channel-figure,
.guide-figure,
.verify-figure,
.archive-figure,
.content-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.hero-figure img,
.collection-figure img,
.media-figure img,
.channel-figure img,
.guide-figure img,
.verify-figure img,
.archive-figure img,
.content-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 表格容器 */
.table-wrap,
.archive-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-answer p {
  max-width: none;
}

/* 路径格 / 卡片通用 */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.path-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.path-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 相关入口格 */
.related-grid,
.jump-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-cell,
.jump-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.related-cell:hover,
.jump-card:hover {
  border-color: var(--accent-soft);
  background: #FFF5F6;
  color: var(--ink);
}

.related-name,
.jump-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.related-desc,
.jump-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

/* 首屏焦点区 */
.hero-section {
  margin-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-main h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
}

.hero-lead {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.hero-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-soft);
}

.hero-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 16px;
  min-width: 0;
}

.hero-figure {
  min-height: 160px;
}

.hero-figure figcaption {
  padding: 0 2px;
}

.hero-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.hero-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 三条浏览路径 */
.path-section {
  margin-bottom: 40px;
}

.path-section .section-title,
.path-section .section-lead {
  max-width: 720px;
}

.path-section .section-lead {
  margin-bottom: 18px;
}

/* 频道索引预览 */
.channel-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
}

.channel-legend {
  min-width: 0;
}

.channel-legend .section-lead {
  margin-bottom: 16px;
}

.legend-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-item .legend-swatch {
  grid-row: 1 / span 2;
}

.legend-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.legend-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mute);
}

.channel-rows {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.channel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.channel-row:hover {
  background: #FFF5F6;
  border-color: var(--accent-soft);
}

.channel-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--accent-soft);
}

.channel-row-body {
  min-width: 0;
  flex: 1 1 auto;
}

.channel-row-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.channel-row-scope {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: none;
}

.channel-row-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.channel-row-link::after {
  content: " →";
}

/* 专题片单预览 */
.collection-preview {
  margin-bottom: 40px;
}

.collection-preview .section-lead {
  margin-bottom: 18px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.collection-card:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-hover);
}

.collection-figure {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.collection-name {
  margin: 8px 16px 0;
  font-size: 16px;
  font-weight: 600;
}

.collection-intent,
.collection-compose,
.collection-order {
  margin: 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.collection-order {
  color: var(--ink-mute);
}

.collection-card .link-arrow {
  margin: 4px 16px 0;
}

/* 观看准备与核验摘要 */
.prep-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  margin-bottom: 40px;
  align-items: start;
}

.prep-steps {
  min-width: 0;
}

.prep-steps .section-lead {
  margin-bottom: 16px;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FBE9EC;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.step-standard {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.verify-summary {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.verify-summary .section-lead {
  margin-bottom: 14px;
}

.verify-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.verify-list .verify-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.verify-list .verify-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

.verify-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* 编选说明 */
.editorial-section {
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editorial-body {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.editorial-body p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.editorial-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-item {
  position: relative;
  padding: 12px 14px 12px 34px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-item::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--accent);
  font-weight: 700;
}

/* 问题反馈与归档入口 */
.entry-section {
  margin-bottom: 24px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feedback-entry,
.archive-entry {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.entry-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.entry-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.feedback-types {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.feedback-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.feedback-type-desc {
  grid-column: 1 / 2;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.feedback-type .link-arrow {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  font-size: 13px;
}

.archive-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.archive-row:last-child {
  border-bottom: none;
}

.archive-date {
  grid-row: 1 / span 2;
  font-size: 12px;
  color: var(--ink-mute);
  padding-top: 2px;
}

.archive-scope {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.archive-change {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. pages · 频道索引
   -------------------------------------------------------------------------- */

.channel-legend .aside-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.aside-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: none;
}

.legend-cell {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-cell .legend-swatch {
  grid-row: 1 / span 2;
}

.legend-read {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mute);
}

.channel-main .channel-figure {
  margin: 16px 0;
  aspect-ratio: 16 / 8;
}

.channel-list {
  display: grid;
  gap: 10px;
}

.channel-main .channel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.channel-main .channel-row:hover {
  border-color: var(--accent-soft);
  background: #FFF5F6;
}

.channel-main .channel-row .legend-swatch {
  margin-top: 6px;
}

.channel-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.channel-scope,
.channel-scene {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.channel-scene {
  color: var(--ink-mute);
}

.row-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.row-link::after {
  content: " →";
}

.channel-map {
  margin-top: 40px;
}

.channel-map .section-intro {
  margin-bottom: 16px;
}

.map-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-table th,
.map-table td {
  font-size: 14px;
}

.map-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   6. pages · 专题片单
   -------------------------------------------------------------------------- */

.overview-body {
  display: grid;
  gap: 10px;
}

.overview-body p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.overview-points {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.overview-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.overview-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-soft);
}

.collections-section .section-intro {
  margin-bottom: 20px;
}

.collection-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-block:last-child {
  margin-bottom: 0;
  max-width: 960px;
}

.collection-media {
  min-width: 0;
}

.collection-media .media-figure {
  aspect-ratio: 4 / 3;
}

.collection-text {
  min-width: 0;
}

.collection-text .collection-name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.collection-text .collection-intent,
.collection-text .collection-compose,
.collection-text .collection-order {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
}

.collection-text .collection-order {
  color: var(--ink-mute);
}

.collection-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.collection-link::after {
  content: " →";
}

.timeline-section .section-intro {
  margin-bottom: 16px;
}

.timeline-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.timeline-month {
  font-size: 13px;
  color: var(--ink-mute);
}

.timeline-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.related-section .section-title {
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   7. pages · 观看指南
   -------------------------------------------------------------------------- */

.guide-flow {
  margin-bottom: 40px;
}

.guide-flow .guide-figure {
  margin: 16px 0 20px;
  aspect-ratio: 16 / 9;
}

.guide-flow .step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-flow .step-item:last-child {
  margin-bottom: 0;
}

.guide-flow .step-item h3 {
  grid-column: 2 / 3;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.guide-flow .step-item p {
  grid-column: 2 / 3;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
}

.guide-flow .step-item .step-standard,
.guide-flow .step-item .step-fail {
  font-size: 13px;
  line-height: 1.7;
}

.guide-flow .step-item .step-fail {
  color: var(--ink-mute);
}

.reading-method {
  margin-bottom: 40px;
}

.reading-method h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

.reading-steps {
  display: grid;
  gap: 10px;
}

.reading-steps li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reading-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.reading-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
}

.symptoms {
  margin-bottom: 0;
}

.symptom-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}

.symptom-table th,
.symptom-table td {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. pages · 入口核验
   -------------------------------------------------------------------------- */

.page-verify .verify-figure {
  margin: 16px 0 20px;
  aspect-ratio: 16 / 9;
}

.page-verify .verify-item {
  padding: 18px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-verify .verify-item:last-child {
  margin-bottom: 0;
}

.page-verify .verify-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.page-verify .verify-item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
}

.page-verify .verify-item p:last-child {
  margin-bottom: 0;
}

.page-verify .verify-standard {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.verify-label {
  font-weight: 600;
  color: var(--ink);
}

.anomaly-table th,
.anomaly-table td {
  font-size: 14px;
}

.checklist-notes {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.checklist-notes li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.note-term {
  font-weight: 600;
  color: var(--ink);
}

.counter-block .side-note {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.counter-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.counter-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.counter-total {
  font-size: 14px;
  color: var(--ink-mute);
}

.counter-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.counter-btn {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.counter-btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: #FFF5F6;
}

.counter-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   9. pages · 问题反馈
   -------------------------------------------------------------------------- */

.page-feedback .container {
  max-width: 800px;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue-block {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.issue-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.issue-scene,
.issue-material {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
}

.issue-material {
  color: var(--ink-mute);
  font-size: 13px;
}

.issue-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
}

.issue-link::after {
  content: " →";
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.split-text {
  min-width: 0;
}

.split-text .media-figure {
  margin-top: 12px;
  aspect-ratio: 16 / 10;
}

.prepare-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.prepare-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prepare-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FBE9EC;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.prepare-body {
  min-width: 0;
}

.prepare-name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.prepare-tip {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.page-feedback .path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.path-card:hover {
  border-color: var(--accent-soft);
  background: #FFF5F6;
  color: var(--ink);
}

.page-feedback .path-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-feedback .path-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-mute);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. pages · 时间归档
   -------------------------------------------------------------------------- */

.page-archive .page-aside {
  padding: 0;
  background: transparent;
  border: none;
}

.archive-figure {
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
}

.page-archive .side-note,
.page-archive .side-links {
  margin-bottom: 16px;
}

.method-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.method-list li {
  position: relative;
  padding: 12px 14px 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.archive-table {
  margin-top: 12px;
  background: var(--surface);
}

.archive-table thead th {
  font-size: 13px;
}

.archive-table tbody th,
.archive-table tbody td {
  font-size: 14px;
}

.archive-year {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.change-type-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.change-type-list li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.change-type-list h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.change-type-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.page-archive .jump-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   11. pages · 标签说明
   -------------------------------------------------------------------------- */

.tag-scope-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.tag-scope-list li {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.content-figure {
  margin: 16px 0 0;
  aspect-ratio: 16 / 8;
}

.compare-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 20px;
  margin: 16px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-col {
  min-width: 0;
}

.compare-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.compare-list {
  display: grid;
  gap: 8px;
}

.compare-list li {
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.compare-divider {
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 6px,
    transparent 6px,
    transparent 12px
  );
}

.compare-channels .compare-list li {
  background: #F1F6F2;
}

.tag-chip,
.channel-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: #FBE9EC;
  color: var(--accent);
}

.channel-chip {
  background: #EAF1EC;
  color: var(--ink);
}

.misuse-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.misuse-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misuse-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.misuse-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}

.inline-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 14px;
}

.inline-link-row a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 40px;
  padding-bottom: 64px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.error-panel h1 {
  margin: 0 0 12px;
  font-size: 26px;
}

.error-lead {
  margin: 0 auto 20px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error-paths {
  max-width: 760px;
  margin: 0 auto;
}

.error-paths h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.error-paths > p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.error-path-list {
  display: grid;
  gap: 8px;
}

.error-path-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
}

.error-path-list a:hover {
  border-color: var(--accent-soft);
  background: #FFF5F6;
  color: var(--accent);
}

/* 移动端底部任务栏（默认隐藏） */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tabbar-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabbar-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 14px;
  color: var(--ink-soft);
}

.tabbar-list a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  .nav-list a {
    padding: 8px 7px;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .channel-preview {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
  }

  .prep-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 22px;
  }

  .layout-main-aside,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .layout-with-side,
  .sidebar-left {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .page-title {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-list.is-open li:last-child a {
    border-bottom: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    grid-template-rows: auto auto auto;
  }

  .hero-figure {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .channel-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .prep-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-main-aside,
  .layout-shell,
  .layout-with-side,
  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  /* 侧栏一律沉到主内容之后；归档页在 DOM 中侧栏在前，需还原顺序 */
  .page-archive .page-aside {
    order: 2;
  }

  .page-archive .page-content {
    order: 1;
  }

  .collection-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .collection-block:last-child {
    max-width: none;
  }

  .collection-media .media-figure {
    aspect-ratio: 16 / 9;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: auto auto;
  }

  .timeline-note {
    grid-column: 1 / span 2;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .compare-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
      to right,
      var(--line) 0,
      var(--line) 6px,
      transparent 6px,
      transparent 12px
    );
  }

  .page-feedback .container {
    max-width: none;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 26px;
    line-height: 1.32;
  }

  .hero-main {
    padding: 20px;
  }

  .hero-main h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .path-grid,
  .collection-grid,
  .related-grid,
  .jump-grid,
  .entry-grid,
  .page-feedback .path-grid,
  .page-archive .jump-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title {
    font-size: 21px;
  }

  .collection-block {
    padding: 16px;
  }

  .collection-text .collection-name {
    font-size: 18px;
  }

  .feedback-type {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 4px;
  }

  .feedback-type .link-arrow {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .archive-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 2px;
  }

  .archive-date {
    grid-row: auto;
  }

  .guide-flow .step-item {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 16px;
  }

  .reading-steps li,
  .checklist-notes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .page-verify .verify-standard {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 2px;
  }

  .timeline-note {
    grid-column: auto;
  }

  /* 宽表在手机上改为纵向堆叠条目 */
  .map-table thead,
  .symptom-table thead,
  .anomaly-table thead,
  .archive-table thead {
    display: none;
  }

  .map-table,
  .map-table tbody,
  .map-table tr,
  .map-table th,
  .map-table td,
  .symptom-table,
  .symptom-table tbody,
  .symptom-table tr,
  .symptom-table th,
  .symptom-table td,
  .anomaly-table,
  .anomaly-table tbody,
  .anomaly-table tr,
  .anomaly-table th,
  .anomaly-table td,
  .archive-table,
  .archive-table tbody,
  .archive-table tr,
  .archive-table th,
  .archive-table td {
    display: block;
    width: 100%;
  }

  .map-table tr,
  .symptom-table tr,
  .anomaly-table tr,
  .archive-table tr {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
  }

  .map-table tr:last-child,
  .symptom-table tr:last-child,
  .anomaly-table tr:last-child,
  .archive-table tr:last-child {
    border-bottom: none;
  }

  .map-table th,
  .map-table td,
  .symptom-table th,
  .symptom-table td,
  .anomaly-table th,
  .anomaly-table td,
  .archive-table th,
  .archive-table td {
    border-bottom: none;
    padding: 6px 14px;
  }

  .map-table tbody th,
  .symptom-table tbody th,
  .anomaly-table tbody th,
  .archive-table tbody th {
    background: var(--surface-alt);
    font-size: 14px;
  }

  .archive-year {
    display: block;
    padding: 10px 14px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-nav-list {
    gap: 0 16px;
  }

  .footer-nav-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* 移动端底部任务栏 */
  .mobile-tabbar {
    display: block;
  }

  .site-body {
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .hero-main {
    padding: 18px;
  }

  .hero-main h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .anchor-list a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .channel-row,
  .channel-main .channel-row {
    padding: 12px;
  }

  .step-item {
    padding: 12px;
  }

  .counter-value {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
