/* ============================================================
   91短视频 · 视频内容导航站
   基础样式 / 布局 / 组件 / 页面 / 响应式
   ============================================================ */

/* ---------- base ---------- */
:root {
  --paper: #f5f0e6;
  --paper-deep: #efe8da;
  --ink: #1f1e1b;
  --ink-soft: #4a463f;
  --ink-mute: #6f6a60;
  --line: #d8d0c2;
  --line-strong: #bdb2a0;
  --red: #b33a2b;
  --indigo: #2f4d6d;
  --green: #536b45;
  --ochre: #94652c;
  --mauve: #6b5b73;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wrap: 1180px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.28;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl {
  margin: 0;
}

dt,
dd {
  margin: 0;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- layout ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.brand-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: flex-end;
}

.nav-list a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--red);
  text-decoration: none;
  border-bottom-color: var(--red);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.channel-rule {
  display: flex;
  height: 4px;
}

.rule-seg {
  flex: 1 1 0;
}

.seg-a { background: var(--red); }
.seg-b { background: var(--indigo); }
.seg-c { background: var(--green); }
.seg-d { background: var(--ochre); }
.seg-e { background: var(--mauve); }

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 24px 48px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.page-content,
.page-primary,
.content-main {
  min-width: 0;
}

.page-aside,
.content-side {
  min-width: 0;
}

.page-header {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  line-height: 1.28;
  color: var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-mute);
}

.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  font-size: 14px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12px;
  color: var(--ink-mute);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8f2c20;
  border-color: #8f2c20;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.channel-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
}

.channel-tag:hover {
  text-decoration: none;
  filter: brightness(0.88);
}

.tag-a { background: var(--red); }
.tag-b { background: var(--indigo); }
.tag-c { background: var(--green); }
.tag-d { background: var(--ochre); }
.tag-e { background: var(--mauve); }

.tag {
  display: inline-block;
  min-width: 22px;
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 3px;
  color: #fff;
  text-align: center;
}

.section {
  margin-top: 40px;
}

.section-head {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.section h2 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}

.section-note,
.section-intro,
.section-lead {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.section-note a {
  color: var(--indigo);
}

.related-links {
  max-width: var(--wrap);
  margin: 32px auto 0;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-mute);
}

.related-links-item {
  font-size: 13px;
  color: var(--indigo);
}

/* aside 通用 */
.aside-block,
.aside-card,
.side-block,
.side-index {
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.aside-block h2,
.aside-card h2,
.side-block h2,
.side-index h2 {
  font-size: 15px;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-index,
.anchor-list,
.aside-index-list,
.link-list,
.aside-links,
.related-list,
.aside-link-list,
.side-index ul,
.side-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.aside-index a,
.anchor-list a,
.aside-index-list a,
.link-list a,
.aside-links a,
.related-list a,
.aside-link-list a,
.side-index a,
.side-links a {
  color: var(--ink-soft);
}

.aside-index a:hover,
.anchor-list a:hover,
.aside-index-list a:hover,
.link-list a:hover,
.aside-links a:hover,
.related-list a:hover,
.aside-link-list a:hover,
.side-index a:hover,
.side-links a:hover {
  color: var(--red);
}

.aside-lead {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.plain-list strong {
  color: var(--ink);
  margin-right: 4px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 18px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.inline-link {
  font-size: 14px;
  color: var(--indigo);
  font-weight: 700;
}

/* 表格通用 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table,
.map-table,
.condition-table,
.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.data-table caption,
.map-table caption,
.condition-table caption,
.status-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 0 0 8px;
}

.data-table th,
.data-table td,
.map-table th,
.map-table td,
.condition-table th,
.condition-table td,
.status-table th,
.status-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th,
.map-table thead th,
.condition-table thead th,
.status-table thead th {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

/* ---------- pages ---------- */

/* 首页 · 首屏目录台 */
.hero-desk {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--line);
}

.hero-left {
  min-width: 0;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 10px;
}

.hero-left h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.desk-index {
  margin-bottom: 20px;
}

.desk-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.desk-index a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fbf7ee;
}

.desk-index a:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-right {
  min-width: 0;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

.hero-side-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-side-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.hero-side-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* 首页 · 频道色标条与紧凑列表 */
.channel-tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.news-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 200px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: center;
}

.dot-a { background: var(--red); }
.dot-b { background: var(--indigo); }
.dot-c { background: var(--green); }
.dot-d { background: var(--ochre); }
.dot-e { background: var(--mauve); }

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.news-desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.news-more {
  font-size: 13px;
  color: var(--indigo);
  white-space: nowrap;
}

/* 首页 · 片单编排面板 */
.panel-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.panel-index {
  min-width: 0;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.panel-index h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.panel-index ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

.panel-more {
  font-size: 13px;
  color: var(--indigo);
}

.panel-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 22px;
  align-items: start;
}

.panel-article {
  min-width: 0;
}

.panel-article h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.panel-article p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.panel-meta {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 13px;
  margin-bottom: 14px;
  padding: 12px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.panel-meta dt {
  color: var(--ink-mute);
}

.panel-meta dd {
  color: var(--ink);
}

.panel-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
}

.panel-figure {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.panel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.panel-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

/* 首页 · 浏览状态说明 */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.status-col {
  min-width: 0;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.status-col h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.status-reserve {
  height: 72px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  margin-bottom: 10px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 6px,
    rgba(189, 178, 160, 0.18) 6px,
    rgba(189, 178, 160, 0.18) 12px
  );
}

.status-col p {
  font-size: 13px;
  color: var(--ink-soft);
}

.status-footer-link {
  margin-top: 14px;
  font-size: 13px;
}

/* 首页 · 链接状态与纠错双栏 */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.col-status,
.col-correct {
  min-width: 0;
}

.col-status h3,
.col-correct h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.col-correct p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* 首页 · 整理记录三分类 */
.revision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.revision-col {
  min-width: 0;
}

.rev-title {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
}

.rev-add { border-bottom-color: var(--green); }
.rev-edit { border-bottom-color: var(--ochre); }
.rev-fix { border-bottom-color: var(--mauve); }

.rev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.rev-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.rev-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rev-list a {
  color: var(--ink);
  font-weight: 700;
}

.rev-list span {
  color: var(--ink-mute);
}

/* 内页 · 标题区（channel-map / correction 版） */
.page-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-title-text {
  min-width: 0;
}

.page-lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-title-media {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.page-title-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-title-media figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

/* 内页 · 通用 page-hero */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 28px;
  align-items: start;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.page-hero-text {
  min-width: 0;
}

.page-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.page-hero-scope,
.page-hero-meta {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
}

.page-hero-media,
.page-hero-figure {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.page-hero-media img,
.page-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero-media figcaption,
.page-hero-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}

/* 频道图谱页 */
.channel-entries {
  margin-bottom: 32px;
}

.channel-entries > h2,
.channel-playlist-map > h2,
.channel-tag-rules > h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.channel-entries > .section-note,
.channel-playlist-map > .section-note,
.channel-tag-rules > .section-note {
  margin-bottom: 18px;
}

.channel-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-entry:first-of-type {
  padding-top: 8px;
}

.channel-entry h3 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.channel-facts {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.channel-facts dt {
  color: var(--ink-mute);
  font-size: 13px;
}

.channel-facts dd {
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-playlist-map {
  margin-bottom: 32px;
}

.channel-playlist-map .table-scroll {
  margin-top: 12px;
}

.channel-tag-rules {
  margin-bottom: 8px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.rule-item {
  padding: 14px 16px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.rule-item h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 片单编排页 */
.container {
  display: block;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 8px;
}

.content-section {
  margin-bottom: 34px;
}

.content-section > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.content-section > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
}

.step-index,
.step-num {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
}

.step-item h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.playlist-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  padding: 16px 18px;
  margin-bottom: 16px;
  min-width: 0;
}

.playlist-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.playlist-card-head h3 {
  font-size: 17px;
}

.playlist-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.playlist-meta dt {
  color: var(--ink-mute);
  font-size: 13px;
}

.playlist-meta dd {
  color: var(--ink-soft);
  line-height: 1.7;
}

.playlist-edit .content-section .table-scroll,
.content-section .table-scroll {
  margin-top: 12px;
}

/* 浏览说明页 */
.prep-section,
.faq-section,
.condition-section {
  margin-bottom: 34px;
}

.prep-section > h2,
.faq-section > h2,
.condition-section > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.prep-section .section-intro,
.faq-section .section-intro,
.condition-section .section-intro {
  margin-bottom: 16px;
}

.prep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prep-item {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  min-width: 0;
}

.prep-index {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.prep-item h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.prep-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 42px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mute);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

.faq-context {
  color: var(--ink-mute);
  font-size: 13px;
}

.faq-answer {
  color: var(--ink);
}

.faq-check,
.faq-scope {
  font-size: 13px;
  color: var(--ink-mute);
}

.self-check {
  margin-bottom: 18px;
}

.viewing-notes .self-check h2 {
  font-size: 15px;
  font-family: var(--sans);
}

.self-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.self-check-list li {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.self-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.self-check-list h3 {
  font-size: 14px;
  font-family: var(--sans);
  margin-bottom: 2px;
}

.self-check-list p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* 链接状态页 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.status-categories,
.self-check,
.status-table-block {
  margin-bottom: 32px;
}

.status-categories .section-head,
.link-status .self-check .section-head,
.status-table-block .section-head {
  margin-bottom: 14px;
}

.status-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-category {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  padding: 16px;
}

.status-category h3 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-sign {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.status-category > p:last-child {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-step {
  position: relative;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  min-width: 0;
}

.check-step .step-no {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mauve);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
}

.check-step h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.check-step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-list li {
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.record-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-list h3 {
  font-size: 14px;
  font-family: var(--sans);
  margin-bottom: 2px;
}

.record-list p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* 整理记录页 */
.record-categories,
.record-columns,
.record-rules {
  margin-bottom: 32px;
}

.record-categories > h2,
.record-columns > h2,
.record-rules > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.record-categories .section-intro,
.record-columns .section-intro,
.record-rules .section-intro {
  margin-bottom: 16px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  padding: 14px 16px;
  border-top: 3px solid var(--line-strong);
}

.category-item.cat-new { border-top-color: var(--green); }
.category-item.cat-adjust { border-top-color: var(--ochre); }
.category-item.cat-fix { border-top-color: var(--mauve); }

.category-item h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 6px;
}

.category-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.record-col {
  min-width: 0;
}

.record-col > h3 {
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
}

.record-col.col-new > h3 { border-bottom-color: var(--green); }
.record-col.col-adjust > h3 { border-bottom-color: var(--ochre); }
.record-col.col-fix > h3 { border-bottom-color: var(--mauve); }

.record-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.record-row a {
  color: var(--ink);
  font-weight: 700;
}

.record-row span {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
}

.record-title {
  font-weight: 700;
  color: var(--ink);
}

.record-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  margin-right: 6px;
}

.record-body {
  font-size: 13px;
  color: var(--ink-soft);
}

/* 纠错台页 */
.correction-scope,
.correction-steps,
.correction-checklist,
.correction-writing {
  margin-bottom: 32px;
}

.correction-scope > h2,
.correction-steps > h2,
.correction-checklist > h2,
.correction-writing > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.correction-scope .section-intro,
.correction-steps .section-intro,
.correction-checklist .section-intro,
.correction-writing .section-intro {
  margin-bottom: 16px;
}

.correction-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.correction-type {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  padding: 14px 16px;
}

.type-label {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 8px;
}

.type-a { background: var(--red); }
.type-b { background: var(--indigo); }
.type-c { background: var(--green); }
.type-d { background: var(--ochre); }

.correction-type h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.correction-type p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  min-width: 0;
}

.checklist-key {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.checklist-item p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.writing-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.writing-rules li {
  padding: 14px 16px;
  border-left: 3px solid var(--indigo);
  background: #fbf7ee;
  border-radius: 0 6px 6px 0;
}

.writing-rules h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.writing-rules p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.aside-list li {
  position: relative;
  padding-left: 16px;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mauve);
}

/* 内容边界页 */
.scope-compare,
.term-table-section,
.page-relation,
.boundary-statement {
  margin-bottom: 32px;
}

.scope-compare > h2,
.term-table-section > h2,
.page-relation > h2,
.boundary-statement > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.scope-compare .section-lead,
.term-table-section .section-lead,
.page-relation .section-lead,
.boundary-statement .section-lead {
  margin-bottom: 16px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-col {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  background: #fbf7ee;
  border-top: 3px solid var(--line-strong);
}

.scope-col-in { border-top-color: var(--green); }
.scope-col-out { border-top-color: var(--red); }

.scope-col h3 {
  font-size: 16px;
  font-family: var(--sans);
  margin-bottom: 10px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.scope-col-in .scope-list li::before { background: var(--green); }
.scope-col-out .scope-list li::before { background: var(--red); }

.term-table-section .table-scroll {
  margin-top: 12px;
}

.relation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.relation-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
  min-width: 0;
}

.relation-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--sans);
}

.relation-body {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf7ee;
}

.boundary-list h3 {
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 4px;
}

.boundary-list p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 404 页 */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.error-panel {
  max-width: 680px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.error-code {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.error-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.error-tag {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--ink-mute);
}

.error-note {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .hero-desk {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 26px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .panel-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-figure {
    max-width: 420px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .brand-mark {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 11px;
    padding-left: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 0 0 100%;
    order: 3;
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line);
    color: var(--red);
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 16px;
  }

  .page-aside,
  .content-side {
    order: 2;
  }

  /* 首页首屏 */
  .hero-desk {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 22px;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .desk-index ul {
    flex-direction: column;
    gap: 8px;
  }

  .desk-index a {
    display: block;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-side-list li {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* 频道列表 */
  .news-row {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: start;
  }

  .dot {
    margin-top: 8px;
    align-self: start;
  }

  .news-title {
    grid-column: 2;
  }

  .news-desc {
    grid-column: 2;
  }

  .news-more {
    grid-column: 2;
    justify-self: start;
  }

  /* 片单面板 */
  .panel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .panel-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-meta {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  /* 三列模块改为纵向 */
  .status-grid,
  .revision-grid,
  .two-col,
  .status-category-list,
  .category-list,
  .record-grid,
  .correction-type-list,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .section {
    margin-top: 32px;
  }

  .section-head h2,
  .section h2,
  .channel-entries > h2,
  .channel-playlist-map > h2,
  .channel-tag-rules > h2,
  .content-section > h2,
  .prep-section > h2,
  .faq-section > h2,
  .condition-section > h2,
  .record-categories > h2,
  .record-columns > h2,
  .record-rules > h2,
  .correction-scope > h2,
  .correction-steps > h2,
  .correction-checklist > h2,
  .correction-writing > h2,
  .scope-compare > h2,
  .term-table-section > h2,
  .page-relation > h2,
  .boundary-statement > h2 {
    font-size: 19px;
  }

  /* 内页标题区 */
  .page-title-block,
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .page-title-media,
  .page-hero-media,
  .page-hero-figure {
    max-width: 100%;
  }

  .page-hero-lead {
    font-size: 15px;
  }

  /* 频道图谱 */
  .channel-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .channel-facts dt {
    margin-top: 6px;
  }

  .channel-facts dd {
    font-size: 14px;
  }

  /* 片单编排 */
  .playlist-meta {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .step-item {
    padding: 14px 14px 14px 46px;
  }

  .step-index,
  .step-num,
  .prep-index,
  .check-step .step-no {
    left: 12px;
    top: 14px;
  }

  .prep-item,
  .check-step {
    padding-left: 46px;
  }

  /* 纠错台 */
  .checklist-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .relation-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  /* 表格 */
  .table-scroll {
    margin-left: 0;
    margin-right: 0;
  }

  .data-table,
  .map-table,
  .condition-table,
  .status-table {
    min-width: 480px;
  }

  /* 相关链接 */
  .related-links {
    padding: 14px 16px;
    gap: 8px 14px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
    flex-direction: column;
    gap: 4px;
  }

  .error-main {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .brand-sub {
    display: none;
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .news-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
