/* ==========================================================================
   九九视频在线观看 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --ink: #16324f;
  --accent: #c4553b;
  --paper: #f7f5f1;
  --paper-alt: #eceae4;
  --text: #2b2b2b;
  --text-soft: #6d6a64;
  --line: #d8d4cc;
  --white: #ffffff;
  --shell: 1180px;
  --radius: 6px;
  --shadow-soft: 0 2px 10px rgba(22, 50, 79, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

strong {
  color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 站点骨架（页头 / 主容器 / 面包屑 / 页脚）
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-slogan {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-list a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  border-radius: var(--radius);
}

.nav-list a:hover {
  background: var(--paper-alt);
  color: var(--accent);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background: var(--paper);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  max-width: 820px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 15px;
}

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #d5dbe2;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px 24px 24px;
}

.footer-return {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-return a {
  display: inline-block;
  min-height: 32px;
  color: #ffffff;
  font-size: 15px;
  line-height: 32px;
}

.footer-return a:hover {
  color: #f0b6a6;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 20px;
}

.footer-group-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #c3ccd6;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #9fa9b4;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: 52px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 24px;
}

.section-desc {
  max-width: 760px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
}

.section-note {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 14px;
}

.section-note a {
  color: var(--accent);
  font-weight: 700;
}

.section-note a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 24px;
}

.section-lead {
  max-width: 820px;
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 15px;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.section-foot a {
  color: var(--accent);
  font-weight: 700;
}

.section-foot a:hover {
  text-decoration: underline;
}

.content-section {
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 数据表通用样式 */
.data-table,
.channel-table,
.map-table,
.related-table,
.prep-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table caption,
.channel-table caption,
.map-table caption,
.related-table caption,
.prep-table caption,
.table-caption {
  padding: 12px 16px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: left;
}

.data-table th,
.data-table td,
.channel-table th,
.channel-table td,
.map-table th,
.map-table td,
.related-table th,
.related-table td,
.prep-table th,
.prep-table td {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.channel-table thead th,
.map-table thead th,
.related-table thead th,
.prep-table thead th {
  background: var(--paper-alt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even),
.channel-table tbody tr:nth-child(even),
.map-table tbody tr:nth-child(even),
.related-table tbody tr:nth-child(even),
.prep-table tbody tr:nth-child(even) {
  background: var(--paper);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.map-table tbody tr:last-child th,
.map-table tbody tr:last-child td,
.related-table tbody tr:last-child th,
.related-table tbody tr:last-child td,
.prep-table tbody tr:last-child th,
.prep-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap,
.channel-table-wrap,
.related-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.record-date,
.record-tag {
  font-variant-numeric: tabular-nums;
}

/* 内页双栏骨架：默认主内容在左、侧栏在右 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 32px;
  align-items: start;
}

/* 侧栏在前的页面（真实 DOM：布局容器自身带 .sidebar-left） */
.page-layout.sidebar-left {
  grid-template-columns: 264px minmax(0, 1fr);
}

.layout-content,
.page-content,
.content-main {
  min-width: 0;
}

.sidebar,
.side-panel,
.page-aside {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-title,
.side-title,
.aside-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.sidebar-note,
.side-note {
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-note-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.tree-list,
.sidebar-list,
.side-list,
.aside-list {
  margin-bottom: 18px;
}

.tree-list:last-child,
.sidebar-list:last-child,
.side-list:last-child,
.aside-list:last-child {
  margin-bottom: 0;
}

.tree-item,
.sidebar-list li,
.side-list li,
.aside-list li {
  margin-bottom: 4px;
}

.tree-item a,
.sidebar-list a,
.side-list a,
.aside-list a {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tree-item a:hover,
.sidebar-list a:hover,
.side-list a:hover,
.aside-list a:hover {
  background: var(--white);
  border-left-color: var(--accent);
  color: var(--accent);
}

.tree-item a.is-current,
.sidebar-list a.is-current,
.side-list a.is-current,
.aside-list a.is-current {
  background: var(--white);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* 内容图片容器 */
.section-media,
.content-media,
.records-figure,
.topic-feature-media,
.topic-media,
.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
}

.section-media img,
.content-media img,
.records-figure img,
.topic-feature-media img,
.topic-media img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-media figcaption,
.content-media figcaption,
.records-figure figcaption,
.topic-feature-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 14px 40px 14px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 6px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
}

.topbar-text {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 24px;
  color: #d5dbe2;
  font-size: 13px;
  line-height: 1.6;
}

.hero {
  margin-bottom: 52px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 34px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-lead {
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.hero-desc {
  max-width: 560px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.hero-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-tags-label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 7px 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.hero-topic-entry {
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.hero-topic-entry:hover {
  text-decoration: underline;
}

.channel-table-wrap {
  border: 0;
}

.section-channels .channel-table tbody tr:hover {
  background: var(--white);
}

.section-channels .channel-table tbody tr:hover th {
  color: var(--accent);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.topic-media {
  margin-bottom: 14px;
}

.topic-media img {
  aspect-ratio: 16 / 9;
}

.topic-name {
  font-size: 17px;
}

.topic-name a {
  color: var(--ink);
}

.topic-name a:hover {
  color: var(--accent);
}

.topic-scope {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.topic-count {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.record-month {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-month-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-item {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.record-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.record-date {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.record-text {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.record-scope,
.record-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.guide-prep,
.guide-check {
  min-width: 0;
}

.guide-subtitle {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 17px;
}

.prep-table th[scope="row"] {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.check-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: check-step;
}

.check-step {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: check-step;
}

.check-step::before {
  content: counter(check-step);
  position: absolute;
  top: 14px;
  left: 16px;
  width: 24px;
  height: 24px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  background: var(--ink);
  border-radius: 50%;
}

.check-step .step-name {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.check-step .step-desc {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-col:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.index-col-title {
  font-size: 17px;
}

.index-col-title a {
  color: var(--ink);
}

.index-col-title a:hover {
  color: var(--accent);
}

.index-col-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */
.page-channel .section-media img {
  aspect-ratio: 21 / 9;
}

.organize-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.organize-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.organize-name {
  font-size: 17px;
}

.organize-text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.organize-points {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.organize-points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.organize-points li:last-child {
  margin-bottom: 0;
}

.organize-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.mapping-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.topic-feature {
  margin-bottom: 44px;
}

.topic-feature-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.topic-feature-media img {
  aspect-ratio: 16 / 10;
}

.topic-feature-text {
  min-width: 0;
}

.topic-feature-name {
  font-size: 20px;
}

.topic-feature-scope {
  margin-top: 10px;
  color: var(--text);
  font-size: 15px;
}

.topic-feature-note {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.topic-list {
  margin-bottom: 44px;
}

.topic-block {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.topic-block:hover {
  border-color: var(--accent);
}

.topic-block-name {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.topic-block-detail {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 16px;
}

.topic-block-detail dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.topic-block-detail dd {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.related-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.related-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.related-note a {
  color: var(--accent);
  font-weight: 700;
}

.related-note a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 观看指引
   -------------------------------------------------------------------------- */
.guide-side .side-list {
  margin-bottom: 14px;
}

.page-guide .content-media img {
  aspect-ratio: 21 / 9;
}

.page-guide .content-block {
  margin-bottom: 44px;
}

.block-title {
  font-size: 22px;
}

.block-lead {
  max-width: 820px;
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 15px;
}

.page-guide .content-media {
  margin-bottom: 20px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
  counter-reset: guide-step;
}

.step-item {
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: guide-step;
}

.step-item::before {
  content: counter(guide-step);
  position: absolute;
  top: 18px;
  left: 20px;
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  background: var(--ink);
  border-radius: 50%;
}

.step-item .step-name {
  font-size: 16px;
}

.step-item .step-body {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.step-item .step-result {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--text-soft);
  font-size: 13px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.check-item {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-name {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.check-standard {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.check-fallback {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.related-col {
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-subtitle {
  margin-bottom: 10px;
  font-size: 16px;
}

.related-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.related-list li:last-child {
  margin-bottom: 0;
}

.related-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.related-list a {
  color: var(--ink);
}

.related-list a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 整理记录
   -------------------------------------------------------------------------- */
.records-timeline {
  margin-bottom: 44px;
}

.records-figure {
  margin-bottom: 22px;
}

.records-figure img {
  aspect-ratio: 21 / 9;
}

.month-group {
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.month-title {
  padding: 14px 18px;
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
}

.month-group .record-list {
  padding: 16px 18px;
}

.month-group .record-item {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.month-group .record-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reason-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-title {
  font-size: 16px;
}

.reason-text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.records-map .map-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.map-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.map-foot a {
  color: var(--accent);
  font-weight: 700;
}

.map-foot a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.site-error .error-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.error-panel {
  width: 100%;
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  color: var(--accent);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.error-title {
  margin-top: 10px;
  font-size: 28px;
}

.error-text {
  max-width: 640px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 15px;
}

.error-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px 22px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  background: var(--ink);
  border-radius: var(--radius);
}

.error-return:hover {
  background: var(--accent);
  color: #ffffff;
}

.error-links {
  width: 100%;
}

.error-links-title {
  margin-bottom: 14px;
  font-size: 20px;
}

.error-links-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-links-list a {
  display: block;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive · 断点 1080px / 720px
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 28px 24px;
  }

  .hero-media {
    max-width: 640px;
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .record-groups,
  .index-grid,
  .error-links-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-main {
    padding: 22px 16px 44px;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 1 100%;
  }

  .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-list a {
    padding: 12px 8px;
    font-size: 16px;
  }

  .topbar-text {
    padding: 8px 16px;
    font-size: 12px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 14px;
  }

  .hero-inner {
    padding: 22px 18px;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-tags {
    padding: 14px 16px;
  }

  .hero-topic-entry {
    margin-left: 0;
  }

  .section {
    margin-bottom: 40px;
  }

  .section-head h2,
  .section-title,
  .block-title {
    font-size: 20px;
  }

  .topic-grid,
  .guide-summary,
  .organize-list,
  .check-list,
  .related-grid,
  .reason-list,
  .topic-feature-body,
  .record-groups,
  .index-grid,
  .error-links-list,
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-block-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .topic-block-detail dt {
    margin-top: 8px;
  }

  .topic-block-detail dt:first-of-type {
    margin-top: 0;
  }

  .data-table th,
  .data-table td,
  .channel-table th,
  .channel-table td,
  .map-table th,
  .map-table td,
  .related-table th,
  .related-table td,
  .prep-table th,
  .prep-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-title {
    font-size: 22px;
  }

  .footer-inner {
    padding: 26px 16px 20px;
  }

  .step-item {
    padding: 16px 16px 16px 56px;
  }

  .step-item::before {
    left: 16px;
  }
}
