/* ==========================================================================
   被窝网电影 · 全站样式表
   数据新闻风：浅灰底、深墨正文、单一强调色，编号与注释体系并行
   ========================================================================== */

/* ==========================================================================
   1. base —— 变量、重置、排版、通用元素
   ========================================================================== */

:root {
  --bg-page: #f5f6f7;
  --bg-card: #ffffff;
  --ink: #1c2024;
  --ink-soft: #5b636b;
  --accent: #2f6f6a;
  --line: #c9ccd0;
  --line-soft: #e3e5e8;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;

  --wrap: 1120px;
  --radius: 6px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 通用容器：全站统一宽度与左右边距 */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. layout —— 骨架：页头、导航、主体、面包屑、页标题、页脚
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

/* --- 顶部信息条（仅首页） --- */

.top-bar {
  background: var(--ink);
  color: #e8eaec;
}

.top-bar p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* --- 页头 --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* --- 主导航 --- */

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- 汉堡按钮：桌面隐藏 --- */

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* --- 主体 --- */

.site-main {
  flex: 1 0 auto;
  display: block;
}

.inner-main {
  padding-bottom: 56px;
}

/* --- 面包屑 --- */

.breadcrumb {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* --- 内页标题区 --- */

.page-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --- 页脚 --- */

.site-footer {
  flex: 0 0 auto;
  background: var(--bg-card);
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-brand {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand-desc {
  margin-top: 6px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-copyright {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ==========================================================================
   3. components —— 通用组件：按钮、表格、卡片、区块标题、链接、侧栏
   ========================================================================== */

/* --- 按钮 --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #275c58;
  border-color: #275c58;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- 区块与标题 --- */

.section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.sub-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}

.subsection-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.section-more,
.sub-more,
.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-note a {
  margin-right: 14px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

/* --- 表格 --- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.table-caption {
  caption-side: top;
  padding: 14px 16px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.6;
}

.data-table th,
.data-table td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  background: #eef0f2;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f2f4f5;
}

.cell-code,
.cell-mono,
.code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.cell-name {
  font-weight: 600;
  color: var(--ink);
}

/* --- 图片容器 --- */

.hero-figure,
.section-figure,
.topic-card-figure,
.topic-media,
.field-figure,
.guide-figure,
.records-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9ebed;
}

.hero-figure img,
.section-figure img,
.topic-card-figure img,
.topic-media img,
.field-figure img,
.guide-figure img,
.records-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption,
.figure-caption,
.field-figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg-card);
}

/* --- 卡片 --- */

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-card-figure {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.topic-card-body {
  padding: 16px 18px 18px;
}

.topic-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.topic-card-angle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.topic-card-count {
  margin-top: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent);
}

/* --- 侧栏 --- */

.side-column,
.content-side,
.sidebar,
.layout-aside {
  min-width: 0;
}

.side-block,
.sidebar-block,
.aside-block {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.side-block + .side-block,
.sidebar-block + .sidebar-block,
.aside-block + .aside-block {
  margin-top: 18px;
}

.side-title,
.sidebar-title,
.side-block-title,
.aside-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.side-links,
.sidebar-links,
.side-link-list,
.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-links a,
.sidebar-links a,
.side-link-list a,
.aside-links a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.side-links a:hover,
.sidebar-links a:hover,
.side-link-list a:hover,
.aside-links a:hover,
.side-links a:focus-visible,
.sidebar-links a:focus-visible,
.side-link-list a:focus-visible,
.aside-links a:focus-visible {
  color: var(--accent);
}

.side-text,
.aside-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   4. pages —— 首页与各内页业务模块
   ========================================================================== */

/* --------------------------------------------------------------------------
   4.1 首页
   -------------------------------------------------------------------------- */

.hero-section {
  padding: 40px 0 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  line-height: 1.6;
}

.hero-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-points {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
}

.channel-index-card,
.topic-entry {
  background: var(--bg-page);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.channel-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.channel-index-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 4px;
}

.channel-index-list .code {
  margin-right: 8px;
}

.card-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.topic-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-entry-list li {
  font-size: 14px;
  line-height: 1.7;
}

.topic-entry-list a {
  color: var(--ink);
}

.topic-entry-list a:hover,
.topic-entry-list a:focus-visible {
  color: var(--accent);
}

.hero-quickbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 28px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-page);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 44px;
}

.quick-link:hover,
.quick-link:focus-visible {
  border-color: var(--accent);
  text-decoration: none;
}

.quick-link-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.quick-link-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 频道总览表 */

.channel-overview .section-figure {
  margin-top: 22px;
  aspect-ratio: 21 / 9;
}

.channel-table th:first-child,
.channel-table td:first-child {
  width: 110px;
}

/* 专题片单入口 */

.topic-entry-section {
  background: var(--bg-card);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* 整理记录速览 */

.records-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.records-group {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 20px 18px;
}

.records-month {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 10px;
}

.records-list {
  display: flex;
  flex-direction: column;
}

.record-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
}

.record-item:first-child {
  border-top: 0;
}

.record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

.record-target {
  font-weight: 600;
  color: var(--ink);
}

.record-reason {
  grid-column: 2;
  color: var(--ink-soft);
}

/* 字段说明与收录边界摘要 */

.field-boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.field-summary,
.boundary-summary {
  min-width: 0;
}

.field-summary .field-table {
  min-width: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.boundary-key {
  font-weight: 600;
  color: var(--ink);
}

.boundary-desc {
  color: var(--ink-soft);
}

/* 站内页面索引 */

.site-index {
  background: var(--bg-card);
  border-top: 1px solid var(--line-soft);
}

.site-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.index-column {
  min-width: 0;
}

.index-column-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.index-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-links a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.index-links a:hover,
.index-links a:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4.2 内页通用布局：主内容 + 右侧栏
   -------------------------------------------------------------------------- */

.page-layout {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.main-column,
.main-content,
.content-main,
.layout-main {
  min-width: 0;
}

.content-section,
.guide-section,
.records-monthly,
.records-reasons,
.records-advice,
.section-org,
.section-diff,
.section-channel-table,
.topic-direction,
.topic-rules,
.topic-compare {
  margin-bottom: 36px;
}

.content-section:last-child,
.guide-section:last-child,
.records-advice:last-child,
.topic-compare:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   4.3 题材频道页
   -------------------------------------------------------------------------- */

.section-channel-table .table-wrap {
  margin-top: 16px;
}

.section-channel-table .section-figure {
  margin-top: 20px;
  aspect-ratio: 21 / 9;
}

.org-block {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.org-block:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.block-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.org-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.org-block p + p {
  margin-top: 8px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diff-col {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.diff-heading {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--accent);
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diff-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.diff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.side-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-facts li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4.4 专题片单页
   -------------------------------------------------------------------------- */

.topic-direction .topic-card {
  margin-bottom: 18px;
}

.topic-direction .topic-card:last-child {
  margin-bottom: 0;
}

.topic-direction .topic-card {
  flex-direction: row;
  align-items: stretch;
}

.topic-media {
  flex: 0 0 220px;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.topic-body {
  min-width: 0;
  padding: 16px 18px;
}

.topic-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.topic-angle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.topic-count {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.rule-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rule-column {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.rule-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-head {
  background: #eef0f2;
}

.compare-cell {
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-left: 1px solid var(--line-soft);
  min-width: 0;
}

.compare-cell:first-child {
  border-left: 0;
}

.compare-head .compare-cell {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4.5 观看指引页
   -------------------------------------------------------------------------- */

.prepare-list {
  counter-reset: prepare;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prepare-item {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.prepare-item::before {
  counter-increment: prepare;
  content: counter(prepare, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.prepare-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.prepare-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.guide-figure {
  margin: 18px 0;
  aspect-ratio: 21 / 9;
}

.verify-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verify-block {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.verify-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.verify-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.misread-table {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.misread-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-top: 1px solid var(--line-soft);
}

.misread-row:first-child {
  border-top: 0;
}

.misread-head {
  background: #eef0f2;
}

.misread-cell {
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-left: 1px solid var(--line-soft);
  min-width: 0;
}

.misread-cell:first-child {
  border-left: 0;
}

.misread-head .misread-cell {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   4.6 字段说明页
   -------------------------------------------------------------------------- */

.field-figure {
  margin: 18px 0 0;
  aspect-ratio: 21 / 9;
}

.section-field-glossary .table-wrap,
.section-boundary .table-wrap {
  margin-top: 16px;
}

.boundary-table th:first-child,
.boundary-table td:first-child {
  width: 40%;
}

.field-time-body {
  margin-top: 16px;
}

.field-time-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.timeline-list {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.timeline-text {
  color: var(--ink-soft);
}

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.fact-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4.7 整理记录页
   -------------------------------------------------------------------------- */

.records-figure {
  margin: 18px 0 22px;
  aspect-ratio: 21 / 9;
}

.record-group {
  margin-bottom: 24px;
}

.record-group:last-child {
  margin-bottom: 0;
}

.record-group-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record-list .record-item {
  display: block;
  padding: 14px 0;
}

.record-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.record-list .record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.record-list .record-target {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.record-reason-short {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.record-details {
  margin-top: 10px;
}

.record-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  list-style: none;
  display: inline-block;
  padding: 4px 0;
  min-height: 24px;
}

.record-details summary::-webkit-details-marker {
  display: none;
}

.record-details summary::after {
  content: " ＋";
  font-size: 12px;
}

.record-details[open] summary::after {
  content: " －";
}

.record-details .record-reason {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.reason-block {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.reason-block:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.reason-block h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 8px;
}

.reason-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.advice-list {
  counter-reset: advice;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advice-item {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.advice-item::before {
  counter-increment: advice;
  content: counter(advice, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.advice-item h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.advice-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.side-fact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-fact-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.side-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4.8 404 页
   -------------------------------------------------------------------------- */

.error-main {
  padding: 56px 0 72px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
}

.error-panel h1 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   5. responsive —— 断点 860px / 560px
   ========================================================================== */

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    border-left: 2px solid transparent;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--accent);
    padding-left: 10px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-quickbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .field-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 22px;
  }

  .side-column,
  .content-side,
  .sidebar,
  .layout-aside {
    order: 2;
  }

  .main-column,
  .main-content,
  .content-main,
  .layout-main {
    order: 1;
  }

  .topic-direction .topic-card {
    flex-direction: column;
  }

  .topic-media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }

  .diff-grid,
  .rule-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .breadcrumb,
  .page-header,
  .page-layout,
  .top-bar p {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 25px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .channel-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .records-group {
    padding: 14px 16px 16px;
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .record-reason {
    grid-column: 1;
  }

  .site-index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .compare-row,
  .misread-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-cell,
  .misread-cell {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .compare-row .compare-cell:first-child,
  .misread-row .misread-cell:first-child {
    border-top: 0;
  }

  .compare-head .compare-cell {
    white-space: normal;
  }

  .prepare-item,
  .advice-item {
    padding: 14px 16px 14px 50px;
  }

  .prepare-item::before,
  .advice-item::before {
    left: 16px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-panel h1 {
    font-size: 22px;
  }
}
