/* =========================================================
   九九影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   base：变量、重置、排版基线
   --------------------------------------------------------- */
:root {
  --c-ink: #1f2a37;
  --c-ink-soft: #3d4a58;
  --c-body: #4a5563;
  --c-muted: #6b7684;
  --c-accent: #3b6ea5;
  --c-accent-dark: #2f5a87;
  --c-bg: #f5f7f9;
  --c-card: #ffffff;
  --c-line: #d7dee5;
  --c-line-soft: #e6ebef;
  --c-amber: #b45309;
  --c-amber-bg: #fdf3e4;
  --c-done: #2f6b4f;
  --c-done-bg: #e9f3ee;
  --c-doing: #3b6ea5;
  --c-doing-bg: #e8eff7;
  --c-pending: #6b7684;
  --c-pending-bg: #eef1f4;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(31, 42, 55, 0.06);
  --shadow-hover: 0 4px 14px rgba(31, 42, 55, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

figure {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   layout：全站骨架 site-body / header / nav / main / footer
   --------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--c-bg);
}

.site-header,
.topbar,
.site-main,
.site-footer {
  width: 100%;
}

/* 顶部信息条（仅首页） */
.topbar {
  background-color: #1f2a37;
  color: #cfd8e0;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.6;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  background-color: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 26px;
  border-radius: 2px;
  background-color: var(--c-accent);
}

.brand-tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-muted);
  padding-left: 10px;
  border-left: 1px solid var(--c-line);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--c-ink-soft);
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-accent-dark);
  background-color: #eef2f6;
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--c-accent-dark);
  font-weight: 700;
  background-color: #e8eff7;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-ink);
  border-radius: 1px;
}

/* 主容器 */
.site-main {
  flex: 1 1 auto;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--c-muted);
}

.breadcrumb-sep {
  color: #a9b3bd;
}

.breadcrumb-current {
  color: var(--c-ink-soft);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-ink);
}

.page-description {
  max-width: 78ch;
  margin-top: 12px;
  font-size: 16px;
  color: var(--c-body);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background-color: #eef1f4;
  border-top: 1px solid var(--c-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
}

.footer-text {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--c-ink-soft);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-accent-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--c-ink-soft);
}

/* ---------------------------------------------------------
   components：通用模块、表格、卡片、步骤、状态、按钮
   --------------------------------------------------------- */
.section {
  margin-bottom: 44px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
}

.section-desc,
.section-intro {
  max-width: 82ch;
  margin-top: 10px;
  font-size: 15px;
  color: var(--c-body);
}

.subsection-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-muted);
}

.section-note a {
  font-weight: 600;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--c-accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--c-accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--c-line);
  color: var(--c-ink-soft);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  text-decoration: none;
}

/* 表格（频道总表 / 字段表共用基础） */
.table-wrap {
  overflow-x: auto;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.data-table {
  min-width: 640px;
  font-size: 15px;
}

.data-table caption {
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.data-table thead th {
  background-color: #f0f3f6;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-line);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background-color 0.18s ease;
}

.data-table tbody tr:hover {
  background-color: #f7f9fb;
}

.data-table td.mono {
  color: var(--c-muted);
  white-space: nowrap;
}

.table-caption {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
  background-color: #fafbfc;
}

/* 字段表（浏览指引侧栏） */
.field-table {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
}

.field-table-caption {
  padding: 12px 14px;
  text-align: left;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
  background-color: #fafbfc;
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line-soft);
}

.field-table thead th {
  background-color: #f0f3f6;
  color: var(--c-ink);
  font-weight: 700;
  white-space: nowrap;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table .field-name {
  width: 38%;
  color: var(--c-ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.field-table .field-value {
  color: var(--c-body);
}

/* 字段定义列表（首页） */
.field-list {
  margin: 0;
  padding: 0;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.field-list dt.field-name {
  padding: 12px 16px 0;
  color: var(--c-ink);
  font-weight: 700;
}

.field-list dd.field-desc {
  margin: 0;
  padding: 4px 16px 12px;
  font-size: 14px;
  color: var(--c-body);
  border-bottom: 1px solid var(--c-line-soft);
}

.field-list dd.field-desc:last-child {
  border-bottom: 0;
}

/* 步骤列表（首页 / 整理记录） */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 60px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.step-no,
.step-item .step-index {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e8eff7;
  color: var(--c-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.step-text,
.step-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-body);
}

/* 状态标识 */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.status-done {
  background-color: var(--c-done-bg);
  color: var(--c-done);
}

.status-working,
.status-doing {
  background-color: var(--c-doing-bg);
  color: var(--c-doing);
}

.status-pending,
.status-todo {
  background-color: var(--c-pending-bg);
  color: var(--c-pending);
}

/* 图片容器通用约束 */
.collection-media,
.collection-figure,
.hero-media,
.channel-figure,
.guide-figure,
.section-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #e6ebef;
}

.collection-media img,
.collection-figure img,
.hero-media img,
.channel-figure img,
.guide-figure img,
.section-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption,
.guide-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   pages：首页
   --------------------------------------------------------- */
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

/* 首屏定位区 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas:
    "copy media"
    "copy index";
  gap: 28px 32px;
  align-items: start;
  padding: 30px;
  margin-bottom: 48px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-ink);
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--c-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  grid-area: media;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-line);
}

.hero-index {
  grid-area: index;
  padding: 18px;
  background-color: #f7f9fb;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.hero-index-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.hero-index-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.hero-index-list a:hover,
.hero-index-list a:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  text-decoration: none;
}

.hero-index-list .mono {
  color: var(--c-muted);
}

/* 频道分类全景 */
.section-head {
  margin-bottom: 20px;
}

.section-channels .section-note a {
  font-weight: 600;
}

/* 专题片单精选 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.collection-media,
.collection-figure {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
}

.collection-card:hover .collection-media img,
.collection-card:hover .collection-figure img {
  transform: scale(1.03);
}

.collection-media img,
.collection-figure img {
  transition: transform 0.3s ease;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.collection-name {
  font-size: 18px;
  font-weight: 700;
}

.collection-name a {
  color: var(--c-ink);
}

.collection-name a:hover,
.collection-name a:focus-visible {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.collection-scope,
.collection-angle {
  font-size: 14px;
  color: var(--c-body);
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--c-muted);
}

.collection-meta dt,
.collection-meta dd {
  margin: 0;
}

.collection-meta dt {
  color: var(--c-ink-soft);
  font-weight: 600;
}

.collection-status {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

/* 整理记录速览 */
.record-groups {
  display: grid;
  gap: 20px;
}

.record-group {
  padding: 18px 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.record-month,
.month-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-item {
  display: grid;
  grid-template-columns: 108px 130px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
  font-size: 14px;
}

.record-date {
  color: var(--c-muted);
}

.record-scope {
  color: var(--c-ink-soft);
  font-weight: 600;
}

.record-desc,
.record-note {
  color: var(--c-body);
}

/* 浏览指引与字段说明摘要 */
.guide-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.guide-fields,
.guide-path {
  min-width: 0;
}

/* 站内页面索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  padding: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.index-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.index-list {
  display: grid;
  gap: 6px;
}

.index-list a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--c-ink-soft);
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--c-accent-dark);
}

.row-link {
  font-weight: 600;
}

/* ---------------------------------------------------------
   pages：频道分类
   --------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

.channel-table-section .channel-figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 1px solid var(--c-line);
}

.channel-table-section .data-table {
  min-width: 620px;
}

.cell-code {
  color: var(--c-muted);
  white-space: nowrap;
}

.cell-name {
  color: var(--c-ink);
  font-weight: 600;
  white-space: nowrap;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dimension-card {
  padding: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.dimension-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.dimension-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-body);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-column,
.scope-col {
  min-width: 0;
  padding: 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.scope-heading,
.scope-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line-soft);
}

.scope-list {
  display: grid;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--c-body);
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-accent);
}

.relation-list {
  display: grid;
  gap: 12px;
}

.relation-item {
  padding: 16px 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.relation-pair,
.relation-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
}

.relation-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-body);
}

/* ---------------------------------------------------------
   pages：专题片单
   --------------------------------------------------------- */
.section-collection-list .collection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.planning-list {
  display: grid;
  gap: 14px;
}

.planning-item {
  padding: 16px 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.planning-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.planning-item p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-body);
}

.section-relation .relation-item {
  background-color: var(--c-card);
}

.relation-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-muted);
}

.relation-note a {
  font-weight: 600;
  margin-right: 14px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.status-card {
  padding: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.status-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.status-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-body);
}

/* ---------------------------------------------------------
   pages：整理记录
   --------------------------------------------------------- */
.records-log .record-month {
  padding: 18px 20px;
  margin-bottom: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.records-log .month-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.records-log .record-list {
  gap: 14px;
}

.records-log .record-item {
  display: grid;
  grid-template-columns: 108px 130px 96px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
}

.records-log .record-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.record-type {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.type-new {
  background-color: var(--c-done-bg);
  color: var(--c-done);
}

.type-adjust {
  background-color: var(--c-amber-bg);
  color: var(--c-amber);
}

.type-merge {
  background-color: var(--c-doing-bg);
  color: var(--c-doing);
}

.type-offline {
  background-color: var(--c-pending-bg);
  color: var(--c-pending);
}

.change-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.change-card {
  padding: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.change-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.change-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--c-body);
}

.read-way .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-scope .section-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 20px;
  border: 1px solid var(--c-line);
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item {
  position: relative;
  padding: 12px 16px 12px 34px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--c-body);
}

.archive-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-accent);
}

/* ---------------------------------------------------------
   pages：浏览指引
   --------------------------------------------------------- */
.sidebar-left .page-layout {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr);
}

.guide-aside {
  min-width: 0;
}

.guide-path,
.guide-scope,
.guide-faq {
  min-width: 0;
}

.guide-path {
  margin-top: 32px;
}

.guide-scope {
  margin-top: 32px;
}

.guide-faq {
  margin-top: 32px;
}

.guide-figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border: 1px solid var(--c-line);
}

.path-steps {
  display: grid;
  gap: 14px;
}

.path-step {
  position: relative;
  padding: 16px 18px 16px 60px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.path-step .step-index {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e8eff7;
  color: var(--c-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.scope-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-muted);
}

.faq-group {
  margin-top: 22px;
}

.faq-group:first-of-type {
  margin-top: 0;
}

.faq-group-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}

.faq-item {
  margin-bottom: 10px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--c-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--c-body);
}

/* ---------------------------------------------------------
   pages：404
   --------------------------------------------------------- */
.site-error .site-main {
  display: block;
}

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.error-block {
  padding: 40px 32px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-amber);
}

.error-title {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--c-ink);
}

.error-text {
  max-width: 62ch;
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--c-body);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.error-hint {
  margin-top: 40px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.error-links a {
  display: block;
  min-height: 44px;
  padding: 14px 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.error-links a:hover,
.error-links a:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------
   动效：视口进入增强（不影响初始可见性）
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .collection-card,
  .dimension-card,
  .change-card,
  .status-card,
  .relation-item,
  .planning-item,
  .record-group,
  .index-col {
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }

  .dimension-card:hover,
  .change-card:hover,
  .status-card:hover,
  .relation-item:hover,
  .planning-item:hover,
  .index-col:hover {
    border-color: #c3ced8;
    box-shadow: var(--shadow-hover);
  }
}

/* ---------------------------------------------------------
   responsive：900px / 600px / 390px
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 10px;
    padding: 8px;
    background-color: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 24px 18px 44px;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 21px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "index";
    padding: 22px;
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid,
  .status-grid,
  .change-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .read-way .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 32px 18px 24px;
  }

  .footer-bottom {
    padding: 14px 18px 22px;
  }

  .records-log .record-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .records-log .record-type {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .records-log .record-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .topbar-text {
    padding: 10px 16px;
    font-size: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-tag {
    display: none;
  }

  .page-title,
  .hero-title,
  .error-title {
    font-size: 23px;
  }

  .section-title {
    font-size: 19px;
  }

  .collection-grid,
  .section-collection-list .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .dimension-grid,
  .status-grid,
  .change-type-grid,
  .scope-columns,
  .read-way .step-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-item,
  .records-log .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-line-soft);
  }

  .record-group,
  .records-log .record-month {
    padding: 16px;
  }

  .field-table .field-name {
    width: 42%;
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-block {
    padding: 30px 18px;
  }
}

@media (max-width: 390px) {
  .home-main,
  .inner-main,
  .error-main {
    padding: 20px 14px 40px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .hero {
    padding: 18px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .step-item,
  .path-step {
    padding: 14px 14px 14px 52px;
  }

  .step-no,
  .step-item .step-index,
  .path-step .step-index {
    left: 14px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
}
