/* ==========================================================================
   九九在线视频 · sctyh.cn 全站样式
   结构：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与重置
   -------------------------------------------------------------------------- */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2430;
  --text-soft: #5b6472;
  --line: #e2e6ec;
  --accent: #1f4e79;
  --accent-warm: #d97a2b;
  --accent-soft: #eaf0f6;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1180px;
  --gap: 24px;
  --shadow-lift: 0 6px 18px rgba(31, 36, 48, 0.08);
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
figcaption,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-warm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 骨架：页头 / 导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list > li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  padding-bottom: 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text);
}

/* 内页标题区 */
.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 860px;
  font-size: 15px;
  color: var(--text-soft);
}

.page-description a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   layout · 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: #eef1f5;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.footer-brand-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 320px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 22px;
  font-size: 13px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   components · 通用区块与按钮
   -------------------------------------------------------------------------- */
.section {
  margin-top: 46px;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.section-desc {
  margin-top: 8px;
  max-width: 820px;
  font-size: 14px;
  color: var(--text-soft);
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.section-more,
.section-foot,
.guide-more,
.field-note-link {
  margin-top: 18px;
  font-size: 14px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
}

.link-more::after {
  content: "→";
  font-size: 14px;
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--accent-warm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #1a4166;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.tag-channel {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-theme,
.tag-field {
  background: #fbeade;
  color: #8c4a14;
}

/* 字段说明简表（首页 dl 与内页 table 共用视觉） */
.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 16px;
}

.field-table .field-name {
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-table .field-desc {
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.field-table .field-desc:last-of-type {
  border-bottom: 0;
}

/* 核验清单 */
.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-soft);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

/* 数据表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #f2f5f8;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.data-table td {
  color: var(--text-soft);
}

.cell-no {
  font-family: var(--font-mono);
  color: var(--text-soft);
  white-space: nowrap;
}

.cell-name {
  font-weight: 600;
  color: var(--text);
}

.cell-count {
  white-space: nowrap;
}

.cell-channel {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* 视频卡片（首页 video-wall 与频道页 card-grid 共用基础） */
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover,
.video-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #cfd8e2;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.topbar {
  background: #1f2430;
  color: #d7dde6;
}

.topbar-text {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

.hero-desc {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-tag {
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef1f5;
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-media-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* 频道索引总览 */
.channel-index {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-no {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-warm);
  padding-top: 2px;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.channel-feature {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 760px;
}

.channel-organize {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
  max-width: 760px;
}

.channel-sample {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.channel-sample-name {
  color: var(--accent);
}

/* 专题片单入口 */
.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover,
.topic-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #cfd8e2;
}

.topic-media {
  margin: 0;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
}

.topic-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.topic-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.topic-direction {
  font-size: 14px;
  color: var(--text-soft);
}

.topic-count {
  font-size: 13px;
  color: var(--text-soft);
}

.topic-body .link-more {
  margin-top: 4px;
  font-size: 14px;
}

/* 视频卡片墙速览 */
.video-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.video-media {
  margin: 0;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
}

.video-media img {
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.video-body {
  padding: 14px 16px 16px;
}

.video-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.video-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.video-channel {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.video-note {
  color: var(--text-soft);
}

/* 观看指引与入口核验摘要 */
.guide-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.guide-col {
  min-width: 0;
}

.guide-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.guide-col-fields .field-table {
  padding: 0 16px;
}

/* 站内页面索引 */
.page-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.page-index-item {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-index-item:hover,
.page-index-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #cfd8e2;
  color: var(--text);
}

.page-index-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.page-index-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 频道分类（channels）
   -------------------------------------------------------------------------- */
.channel-table-section .table-wrap {
  margin-top: 4px;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: var(--gap);
  align-items: start;
}

.field-table-col {
  min-width: 0;
}

.field-table-col .data-table {
  min-width: 520px;
}

.field-note-col {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.note-list li {
  position: relative;
  padding-left: 16px;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.channel-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.video-card-media {
  margin: 0;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
}

.video-card-media img {
  width: 100%;
  height: 156px;
  object-fit: cover;
}

.video-card-body {
  padding: 14px 16px 16px;
}

.video-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.video-card-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-card-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.mapping-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.mapping-col {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mapping-list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.mapping-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.mapping-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mapping-key {
  color: var(--text);
  font-weight: 500;
}

.mapping-arrow {
  text-align: center;
  color: var(--accent-warm);
}

.mapping-val {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 专题片单（topics）
   -------------------------------------------------------------------------- */
.section-topic-table .table-wrap {
  margin-top: 4px;
}

.topic-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.topic-group:first-child {
  padding-top: 4px;
}

.topic-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.topic-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.topic-group-meta {
  font-size: 13px;
  color: var(--text-soft);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.entry-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-media {
  margin: 0;
  background: #eef1f5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-media img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.entry-body {
  min-width: 0;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.entry-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.log-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.log-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-warm);
}

.log-body {
  min-width: 0;
}

.log-topic {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.log-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px var(--gap);
}

.map-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.map-topic {
  font-weight: 600;
  color: var(--text);
}

.map-arrow {
  text-align: center;
  color: var(--accent-warm);
}

.map-channel {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 观看指引（guide）
   -------------------------------------------------------------------------- */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--gap);
  align-items: start;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-index {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.step-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.step-date-field {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.step-date-input {
  min-height: 38px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.guide-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.figure-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.guide-check .check-item {
  padding: 16px 18px;
  padding-left: 18px;
}

.guide-check .check-item::before {
  display: none;
}

.check-point {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.check-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.field-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-table-wrap .field-table {
  width: 100%;
  min-width: 520px;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  padding: 0;
}

.field-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.field-table-wrap .field-table th,
.field-table-wrap .field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.field-table-wrap .field-table thead th {
  background: #f2f5f8;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table-wrap .field-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 180px;
}

.field-table-wrap .field-table tbody td {
  color: var(--text-soft);
}

.field-table-wrap .field-table tbody tr:last-child th,
.field-table-wrap .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 12px 0 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-item a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--accent);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.related-item a:hover,
.related-item a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   pages · 问题反馈（feedback）
   -------------------------------------------------------------------------- */
.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.scope-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-index {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent-warm);
  padding-top: 2px;
}

.scope-body {
  min-width: 0;
}

.scope-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.scope-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.points-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--gap);
  align-items: start;
}

.points-media {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.points-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.points-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.points-list {
  display: grid;
  gap: 12px;
}

.point-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.point-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.point-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.point-text a {
  color: var(--accent);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.flow-step {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.flow-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.flow-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-feedback-check .check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-feedback-check .check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
}

.section-feedback-check .check-item::before {
  display: none;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.check-mark::before {
  content: "✓";
}

.check-body {
  min-width: 0;
}

.check-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.check-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.error-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-warm);
}

.error-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.error-desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 15px;
  color: var(--text-soft);
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: #1a4166;
  color: #ffffff;
}

.error-section {
  margin-top: 40px;
}

.error-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.error-entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.error-entry-item {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-entry-title {
  font-size: 16px;
  font-weight: 600;
}

.error-entry-title a {
  color: var(--accent);
}

.error-entry-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   components · 滚动出现动画（纯增强，不影响初始可见）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise-in 0.5s ease both;
  }
}

@keyframes rise-in {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   responsive · 断点 960 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-media img {
    height: 260px;
  }

  .topic-cards,
  .video-wall,
  .channel-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-index,
  .related-list,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-layout,
  .guide-layout,
  .points-layout,
  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    order: 4;
    flex: 1 0 100%;
    min-width: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 10px;
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 var(--accent);
    border-radius: var(--radius-sm);
    padding-left: 14px;
  }

  .header-tools {
    order: 3;
    margin-left: 0;
  }

  .inner-main,
  .home-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar-text {
    padding: 8px 18px;
  }

  .hero-inner {
    padding: 30px 18px 28px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .footer-inner {
    padding: 32px 18px 22px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-copy {
    padding: 14px 18px 20px;
  }

  .section {
    margin-top: 36px;
  }

  .topic-cards,
  .video-wall,
  .channel-card-grid,
  .page-index,
  .related-list,
  .flow-steps,
  .scope-list,
  .map-list,
  .section-feedback-check .check-list,
  .error-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .entry-media img {
    height: 72px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .guide-figure img,
  .points-media img {
    height: 220px;
  }

  .error-main {
    padding: 36px 18px 56px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title,
  .error-title {
    font-size: 22px;
  }

  .hero-media img {
    height: 200px;
  }

  .channel-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .scope-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-media img {
    height: 150px;
  }

  .btn {
    flex: 1 1 auto;
  }

  .hero-actions {
    gap: 10px;
  }
}
