:root {
  --bg-page: #fafafa;
  --bg-card: #ffffff;
  --bg-accent: #fdf0f4;
  --text-main: #1f2329;
  --text-sub: #646a73;
  --text-strong: #c44d6e;
  --border-color: #e5e6eb;
  --accent: #e86a8a;
  --radius-card: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 35, 41, 0.05);
  --shadow-hover: 0 6px 16px rgba(31, 35, 41, 0.09);
  --container-max: 1120px;
  --container-pad: 16px;
  --header-height: 64px;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text-main);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  line-height: 1.4;
}

h3 {
  font-size: 18px;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--text-strong);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   layout — 全站骨架
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-main);
  font-weight: 700;
}

.site-brand:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-color: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-color: #ffffff;
}

.brand-text {
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-card);
  color: var(--text-main);
  font-size: 14px;
}

.nav-toggle-bar {
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

.nav-toggle-label {
  font-size: 14px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-page);
}

.nav-link.is-current {
  color: var(--text-strong);
  background-color: var(--bg-accent);
  font-weight: 600;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) 56px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--text-strong);
}

.breadcrumb-sep {
  color: var(--border-color);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 820px;
}

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 820px;
}

.section-intro {
  margin-bottom: 18px;
}

.section-note {
  margin-bottom: 16px;
}

.subsection-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-foot {
  margin-top: 16px;
  font-size: 15px;
}

.section-foot a {
  font-weight: 600;
}

/* ============================================================
   components — 按钮 / 表格 / 字段 / 卡片
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--text-strong);
  border-color: var(--text-strong);
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-strong);
  background-color: var(--bg-accent);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 15px;
  line-height: 1.6;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 4px;
  font-size: 14px;
  color: var(--text-sub);
}

.data-table thead th {
  background-color: var(--bg-accent);
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}

.data-table tbody th {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--bg-page);
}

.cell-code {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.field-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-column {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  min-width: 0;
}

.field-list {
  margin: 0;
}

.field-term {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.field-desc {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.field-list > .field-desc:last-child,
.field-list > dd:last-child {
  margin-bottom: 0;
}

.field-item {
  margin-bottom: 16px;
}

.field-item:last-child {
  margin-bottom: 0;
}

.field-row {
  margin-bottom: 16px;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-foot {
  margin-top: 16px;
  font-size: 15px;
}

/* ============================================================
   pages — 首页
   ============================================================ */

.site-notice {
  background-color: var(--bg-accent);
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  padding: 8px var(--container-pad);
}

.hero-section {
  padding: 40px 0 8px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-strong);
  background-color: var(--bg-accent);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.hero-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background-color: var(--bg-accent);
}

.hero-media figcaption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.hero-toc {
  margin-top: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
}

.hero-toc-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}

.toc-item {
  min-width: 0;
}

.toc-item a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 1px dashed var(--border-color);
}

.toc-item a:hover {
  color: var(--text-strong);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  list-style: none;
  min-width: 0;
}

.collection-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.collection-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.collection-cover {
  margin: 0;
  background-color: var(--bg-accent);
}

.collection-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.collection-name {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  padding: 16px 16px 0;
}

.collection-tag {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-strong);
  padding: 8px 16px 0;
}

.collection-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
  padding: 8px 16px 0;
  flex: 1 1 auto;
}

.collection-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 12px 16px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.collection-link:hover {
  color: var(--accent);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  list-style: none;
}

.step-num,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.step-field {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
}

.step-field strong {
  color: var(--text-main);
  font-weight: 600;
}

.record-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.record-group {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
}

.record-month {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  min-width: 0;
}

.record-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.record-date {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sub);
}

.record-type {
  display: inline-block;
  align-self: start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-strong);
  background-color: var(--bg-accent);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin: 2px 0;
}

.record-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-item {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 18px;
}

.index-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.index-name a {
  color: var(--text-main);
}

.index-name a:hover {
  color: var(--text-strong);
}

.index-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   pages — 内页通用模块
   ============================================================ */

.page-media,
.guide-figure,
.usage-figure,
.media-figure {
  margin: 0 0 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.page-media img,
.guide-figure img,
.usage-figure img,
.media-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: var(--bg-accent);
}

.page-media figcaption,
.guide-figure figcaption,
.usage-figure figcaption,
.media-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tip-card {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
}

.tip-title {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.tip-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  min-width: 0;
}

.related-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.related-item a:hover {
  color: var(--accent);
}

.related-desc,
.related-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   pages — 专题片单
   ============================================================ */

.usage-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.usage-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 860px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-tag {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.4;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--text-strong);
}

.filter-tag.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.filter-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.section-collections .collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.collection-body .collection-name {
  padding: 16px 16px 0;
}

.collection-body .collection-desc {
  padding: 8px 16px 0;
}

.collection-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 12px 16px 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 14px;
  line-height: 1.6;
}

.collection-meta dt {
  color: var(--text-main);
  font-weight: 600;
}

.collection-meta dd {
  margin: 0;
  color: var(--text-sub);
}

/* ============================================================
   pages — 浏览指引
   ============================================================ */

.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.guide-steps .step-item {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  list-style: none;
}

.field-table {
  width: 100%;
  min-width: 560px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  font-size: 15px;
  line-height: 1.6;
}

.field-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 4px;
  font-size: 14px;
  color: var(--text-sub);
}

.field-table thead th {
  background-color: var(--bg-accent);
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.field-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.field-section {
  margin-bottom: 48px;
  overflow-x: auto;
}

.boundary-block {
  margin-bottom: 48px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-item {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  list-style: none;
}

.boundary-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.boundary-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.faq-block {
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex-shrink: 0;
  width: 20px;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-item[open] .faq-question {
  color: var(--text-strong);
}

.faq-answer {
  padding: 0 20px 18px 50px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.related-section {
  margin-bottom: 48px;
}

/* ============================================================
   pages — 整理记录
   ============================================================ */

.records-timeline,
.type-explainer,
.field-changes,
.related-pages {
  margin-bottom: 48px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-month {
  min-width: 0;
  list-style: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
}

.timeline-month-title {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.timeline-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 104px 96px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--border-color);
}

.entry-date {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.entry-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-strong);
  background-color: var(--bg-accent);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.tag-collection {
  color: #b0456b;
  background-color: #fdeef3;
}

.tag-field {
  color: #6a5b8a;
  background-color: #f1eef8;
}

.tag-guide {
  color: #3f6b63;
  background-color: #ecf5f2;
}

.entry-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
  min-width: 0;
}

.type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  list-style: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.type-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
  min-width: 0;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 40px;
}

.error-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  margin-bottom: 32px;
}

.error-code {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 20px;
  max-width: 720px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions li {
  list-style: none;
}

.error-tips {
  margin-bottom: 48px;
}

.error-tip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-tip-list li {
  min-width: 0;
  list-style: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 14px 18px;
}

.error-tip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.error-tip-list a:hover {
  color: var(--accent);
}

/* ============================================================
   layout — 页脚
   ============================================================ */

.site-footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--container-pad) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list li {
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}

.footer-list a:hover {
  color: var(--text-strong);
}

.footer-copy {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) 28px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .nav-link {
    padding: 0 10px;
    font-size: 14px;
  }

  .step-list,
  .guide-steps .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media img {
    height: 240px;
  }

  .field-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundary-list,
  .type-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-entry {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .timeline-entry .entry-text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border-color);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 0 12px;
    font-size: 15px;
  }

  .hero-section {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 21px;
  }

  .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid,
  .section-collections .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list,
  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups,
  .index-grid,
  .tips-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-tip-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-media img,
  .guide-figure img,
  .usage-figure img,
  .media-figure img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 23px;
  }

  .hero-media img {
    height: 200px;
  }

  .collection-cover img {
    height: 160px;
  }

  .toc-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-entry .entry-text {
    grid-column: auto;
  }

  .faq-answer {
    padding-left: 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
