/* ==========================================================================
   九九视频在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --c-primary: #2f6fed;
  --c-primary-dark: #2458c4;
  --c-accent: #12b886;
  --c-warn: #e8590c;
  --c-text: #1f2933;
  --c-text-sub: #52606d;
  --c-text-mute: #7b8794;
  --c-bg: #f7f9fc;
  --c-card: #ffffff;
  --c-line: #e4e7eb;
  --c-line-soft: #eef1f5;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 41, 51, 0.04);
  --shadow-hover: 0 6px 18px rgba(31, 41, 51, 0.09);
  --wrap: 1120px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--c-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   2. layout —— 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0;
  padding: 6px 0;
  white-space: nowrap;
}

.brand:hover {
  color: var(--c-primary);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--c-text-sub);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--c-primary);
  background: #f2f6ff;
}

.nav-link.is-current {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom-color: var(--c-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle::before { top: 16px; }
.nav-toggle::after  { top: 25px; }

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.inner-main {
  padding-top: 18px;
  padding-bottom: 56px;
}

.home-main {
  padding-bottom: 56px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--c-line);
  margin-top: 8px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 28px 32px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.6;
}

.footer-list a:hover {
  color: var(--c-primary);
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text-mute);
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--c-primary);
  border-color: #c8d8f8;
}

.btn-ghost:hover {
  background: #f2f6ff;
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-mute);
  padding: 4px 0 14px;
}

.breadcrumb a {
  color: var(--c-text-sub);
}

.breadcrumb a:hover {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: #c3cad3;
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 500;
}

/* 内页页面标题区 */
.page-header {
  padding: 4px 0 26px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
  margin-bottom: 12px;
}

.page-description {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.75;
  max-width: 860px;
}

/* 通用区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
}

.section-desc,
.section-lead {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-top: 8px;
  max-width: 860px;
}

.section-note {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-top: 18px;
  padding: 12px 16px;
  background: #f2f6ff;
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.section-note a {
  font-weight: 600;
}

.subsection-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}

.section-foot {
  margin-top: 18px;
  font-size: 15px;
}

.text-link {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-bottom-color: var(--c-primary);
}

/* 数据表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-card);
}

.data-table {
  min-width: 720px;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.6;
}

.data-table thead th {
  background: #f2f6ff;
  color: var(--c-text);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.data-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line-soft);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  color: var(--c-text-sub);
  border-bottom: 1px solid var(--c-line-soft);
  line-height: 1.65;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafcff;
}

/* 图片容器 */
figure {
  margin: 0;
}

.hero-figure,
.topic-figure,
.topic-card-media,
.channel-figure,
.topic-media,
.guide-figure,
.records-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef1f5;
}

.hero-figure img,
.topic-figure img,
.topic-card-media img,
.channel-figure img,
.topic-media img,
.guide-figure img,
.records-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure-caption,
.hero-figure figcaption,
.topic-media figcaption,
.guide-figure figcaption,
.records-figure figcaption {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.6;
  padding: 8px 2px 0;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页
   -------------------------------------------------------------------------- */

/* 顶部信息条 */
.topbar {
  background: #eef4ff;
  border-bottom: 1px solid #dce8ff;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 20px;
  font-size: 13px;
  color: #33507f;
  line-height: 1.6;
}

/* 首屏总览区 */
.hero {
  padding: 36px 0 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  background: #eef4ff;
  border: 1px solid #dce8ff;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--c-text);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.hero-summary {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.hero-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
}

.hero-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-summary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.hero-summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.hero-summary-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.hero-summary-link:hover {
  border-bottom-color: var(--c-primary);
}

/* 首页通用区块间距 */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
}

.section-head {
  margin-bottom: 24px;
}

/* 频道分类总览表 */
.section-channels .table-wrap {
  box-shadow: var(--shadow-card);
}

/* 专题片单入口 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: #c8d8f8;
  box-shadow: var(--shadow-hover);
}

.topic-figure {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-bottom: 14px;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.topic-scope {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.topic-meta {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.topic-link:hover {
  border-bottom-color: var(--c-primary);
}

/* 字段说明与收录边界摘要 */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.fields-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.field-table {
  min-width: 0;
  font-size: 14px;
}

.field-table thead th {
  background: #f2f6ff;
  color: var(--c-text);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
}

.field-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-text);
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line-soft);
  white-space: nowrap;
  vertical-align: top;
}

.field-table tbody td {
  padding: 10px 12px;
  color: var(--c-text-sub);
  line-height: 1.7;
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: top;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--c-warn);
}

.boundary-note {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.7;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.summary-num {
  color: var(--c-primary);
  font-weight: 600;
}

/* 整理记录速览 */
.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.record-group {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.record-month {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.7;
}

.record-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
}

.record-channel {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--c-primary);
  background: #eef4ff;
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  line-height: 1.6;
}

.record-note {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--c-text-sub);
}

/* 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.index-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-col:hover {
  border-color: #c8d8f8;
  box-shadow: var(--shadow-hover);
}

.index-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.index-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-bottom: 12px;
}

.index-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.index-link:hover {
  border-bottom-color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   4. pages —— 内页：频道分类
   -------------------------------------------------------------------------- */

.channel-intro {
  margin-bottom: 40px;
}

.channel-intro .section-title {
  margin-bottom: 14px;
}

.channel-figure {
  aspect-ratio: 21 / 9;
  width: 100%;
  margin-bottom: 16px;
}

.channel-intro-text {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.85;
  max-width: 860px;
}

.channel-intro-text a {
  font-weight: 600;
}

.channel-table-section {
  margin-bottom: 40px;
}

.channel-table-section .section-title {
  margin-bottom: 10px;
}

.channel-table-section .table-wrap {
  margin-top: 18px;
  box-shadow: var(--shadow-card);
}

.channel-detail-section {
  margin-bottom: 40px;
}

.channel-detail-section .section-title {
  margin-bottom: 10px;
}

.channel-detail {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
  scroll-margin-top: 80px;
}

.detail-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.detail-text {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.7;
  padding-top: 10px;
  border-top: 1px dashed var(--c-line);
}

.channel-pick {
  margin-bottom: 40px;
}

.channel-pick .section-title {
  margin-bottom: 18px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pick-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.pick-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.pick-text {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

.related-section {
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.related-section .section-title {
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-list a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.related-list a:hover {
  border-color: #c8d8f8;
  color: var(--c-primary);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   4. pages —— 内页：专题片单
   -------------------------------------------------------------------------- */

.topic-intro {
  margin-bottom: 40px;
}

.topic-intro .section-title {
  margin-bottom: 10px;
}

.topic-intro strong {
  color: var(--c-text);
  font-weight: 600;
}

.topic-media {
  aspect-ratio: 21 / 9;
  width: 100%;
  margin-top: 18px;
}

.topic-list {
  margin-bottom: 40px;
}

.topic-list .section-title {
  margin-bottom: 10px;
}

.topic-list .topic-grid {
  margin-top: 20px;
}

.topic-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-bottom: 14px;
}

.topic-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.topic-card-scope {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-bottom: 10px;
}

.topic-card-scope strong {
  color: var(--c-text);
  font-weight: 600;
}

.topic-card-order,
.topic-card-count {
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.7;
}

.topic-card-order {
  margin-bottom: 6px;
}

.topic-rules {
  margin-bottom: 24px;
}

.topic-rules .section-title {
  margin-bottom: 10px;
}

.rules-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.rules-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.rules-col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-item {
  min-width: 0;
}

.rules-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.rules-item-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

/* --------------------------------------------------------------------------
   4. pages —— 内页：浏览指引
   -------------------------------------------------------------------------- */

.guide-steps {
  margin-bottom: 32px;
}

.guide-steps .section-title {
  margin-bottom: 10px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.step-item {
  min-width: 0;
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 20px;
  box-shadow: var(--shadow-card);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin-bottom: 10px;
  background: #eef4ff;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
  margin-bottom: 10px;
}

.step-check {
  font-size: 13px;
  color: #0b7a5b;
  line-height: 1.7;
  padding: 8px 12px;
  background: #e9f9f2;
  border-radius: var(--radius-sm);
}

.guide-figure {
  aspect-ratio: 21 / 9;
  width: 100%;
  margin-bottom: 40px;
}

.guide-verify {
  margin-bottom: 40px;
}

.guide-verify .section-title {
  margin-bottom: 10px;
}

.verify-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.verify-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.col-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-line-soft);
}

.verify-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verify-item {
  min-width: 0;
}

.verify-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.verify-text {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

.field-caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--c-text-mute);
  line-height: 1.6;
  padding-bottom: 10px;
}

.guide-faq {
  margin-bottom: 40px;
}

.guide-faq .section-title {
  margin-bottom: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item:hover {
  border-color: #c8d8f8;
}

.faq-item[open] {
  border-color: #c8d8f8;
}

.faq-question {
  display: block;
  position: relative;
  min-height: 44px;
  padding: 14px 48px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-text-mute);
  border-bottom: 2px solid var(--c-text-mute);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

.guide-next {
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.guide-next .section-title {
  margin-bottom: 10px;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.next-item {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.next-item:hover {
  border-color: #c8d8f8;
  box-shadow: var(--shadow-hover);
}

.next-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.next-title a {
  color: var(--c-text);
}

.next-title a:hover {
  color: var(--c-primary);
}

.next-text {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

/* --------------------------------------------------------------------------
   4. pages —— 内页：整理记录
   -------------------------------------------------------------------------- */

.records-intro {
  margin-bottom: 40px;
}

.records-intro .section-title {
  margin-bottom: 14px;
}

.records-figure {
  aspect-ratio: 21 / 9;
  width: 100%;
  margin-bottom: 18px;
}

.records-intro-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.records-intro-text p {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.85;
}

.records-timeline {
  margin-bottom: 40px;
}

.records-timeline .section-title {
  margin-bottom: 10px;
}

.record-month {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: var(--shadow-card);
}

.record-month-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-line-soft);
}

.record-month .record-list {
  gap: 14px;
}

.record-month .record-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding-left: 14px;
  border-left: 2px solid var(--c-line);
}

.record-month .record-date {
  grid-column: 1;
  font-size: 13px;
  color: var(--c-text-mute);
  font-variant-numeric: tabular-nums;
}

.record-scope {
  grid-column: 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.6;
}

.record-summary {
  grid-column: 2;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

.records-reasons {
  margin-bottom: 40px;
}

.records-reasons .section-title {
  margin-bottom: 10px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.reason-card {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.reason-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 8px;
}

.reason-text {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.78;
}

.records-links {
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.records-links .section-title {
  margin-bottom: 16px;
}

.link-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-group a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.link-group a:hover {
  border-color: #c8d8f8;
  color: var(--c-primary);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   4. pages —— 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-hero {
  max-width: 640px;
  margin-bottom: 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #c8d8f8;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.error-main .page-title,
.error-main #error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.38;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints {
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.error-hints .section-title,
.error-hints #hint-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 16px;
}

.hint-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hint-list a {
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.6;
  transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hint-list a:hover {
  border-color: #c8d8f8;
  color: var(--c-primary);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-desc {
    max-width: none;
  }

  .fields-layout,
  .verify-columns,
  .rules-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-grid,
  .next-list,
  .reason-grid,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    flex-wrap: wrap;
    padding: 0 16px;
    gap: 8px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 12px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 8px;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 1px solid var(--c-line-soft);
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--c-line-soft);
    background: #f2f6ff;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 14px;
    padding-bottom: 44px;
  }

  .home-main {
    padding-bottom: 44px;
  }

  .topbar-text {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .hero {
    padding: 26px 0 34px;
  }

  .hero-title,
  .page-title,
  .error-main #error-title {
    font-size: 24px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .page-header {
    padding-bottom: 20px;
    margin-bottom: 26px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-grid,
  .next-list,
  .reason-grid,
  .related-list,
  .index-grid,
  .link-group,
  .hint-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-month .record-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 12px;
  }

  .record-month .record-date,
  .record-scope,
  .record-summary {
    grid-column: 1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .error-code {
    font-size: 52px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 16px;
  }

  .hero-title,
  .page-title,
  .error-main #error-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .hero-summary,
  .fields-col,
  .rules-col,
  .verify-col,
  .pick-col,
  .reason-card,
  .next-item,
  .index-col,
  .record-group,
  .record-month,
  .channel-detail,
  .step-item {
    padding: 14px 16px;
  }

  .data-table {
    min-width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .topic-card:hover,
  .index-col:hover,
  .next-item:hover {
    transform: none;
  }
}
