/* ==========================================================================
   奇漫屋 wdqjd.cn —— 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --paper: #f4f1ea;
  --card: #ffffff;
  --ink: #22201d;
  --ink-soft: #6b6459;
  --archive-red: #8c2f2f;
  --index-blue: #2f4a6b;
  --rule: #d8d2c6;
  --rule-strong: #c3bbab;
  --radius: 4px;
  --radius-sm: 2px;
  --container: 1120px;
  --text-col: 720px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New",
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--index-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--archive-red);
}

a:focus-visible {
  outline: 2px solid var(--index-blue);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   layout：骨架（页头、导航、工具条、主容器、面包屑、页标题、页脚）
   -------------------------------------------------------------------------- */

/* 顶部事实条 —— 仅首页 */
.fact-bar {
  margin: 0;
  padding: 8px 24px;
  background-color: #ebe6dc;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 页头 */
.site-header {
  position: relative;
  z-index: 30;
  background-color: var(--card);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 28px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  color: var(--archive-red);
}

.brand-mark {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  padding-left: 8px;
  border-left: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

/* 主导航 */
.site-nav {
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--archive-red);
  border-bottom-color: var(--rule-strong);
}

.nav-list a.is-current {
  color: var(--archive-red);
  border-bottom-color: var(--archive-red);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  min-height: 44px;
  background-color: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--archive-red);
  color: var(--archive-red);
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  font-size: 13px;
}

.header-tools a {
  color: var(--index-blue);
  text-decoration: underline;
}

.header-tools a:hover,
.header-tools a:focus-visible {
  color: var(--archive-red);
}

/* 实用工具栏 —— 仅首页 */
.utility-bar {
  background-color: #eee9df;
  border-bottom: 1px solid var(--rule);
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
}

.utility-label {
  color: var(--ink-soft);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.utility-inner a {
  color: var(--index-blue);
  text-decoration: underline;
}

.utility-inner a:hover,
.utility-inner a:focus-visible {
  color: var(--archive-red);
}

/* 主内容容器 */
.site-main {
  display: block;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--index-blue);
  text-decoration: underline;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--archive-red);
}

.breadcrumb-sep {
  color: var(--rule-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页页面标题区 */
.page-header {
  max-width: var(--text-col);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.page-description,
.page-summary {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.page-meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.page-meta .mono {
  color: var(--archive-red);
}

/* 页脚 */
.site-footer {
  margin-top: 0;
  background-color: #ebe6dc;
  border-top: 1px solid var(--rule-strong);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.footer-desc {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer-group ul {
  display: block;
}

.footer-group li {
  margin-bottom: 6px;
}

.footer-group a {
  color: var(--index-blue);
  font-size: 13px;
  line-height: 1.7;
  text-decoration: underline;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--archive-red);
}

.footer-copy {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px 26px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   components：通用组件（标签、卡片、列表、步骤、表格、折叠块）
   -------------------------------------------------------------------------- */

.archive-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  background-color: #f1e6e3;
  border: 1px solid #dcc6c1;
  border-radius: var(--radius-sm);
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background-color: #f7f4ee;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.tag-new {
  background-color: #f1e6e3;
  border-color: #dcc6c1;
  color: var(--archive-red);
}

.tag-dir {
  background-color: #e8edf3;
  border-color: #c3d0dd;
  color: var(--index-blue);
}

.tag-field {
  background-color: #f3f1e6;
  border-color: #ddd8bf;
  color: #6b5a24;
}

.tag-cover,
.tag-tag {
  background-color: #f7f4ee;
}

.section {
  margin-bottom: 44px;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
}

.section-desc {
  margin-top: 6px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-lead {
  margin-top: 8px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.section-note {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.section-note a {
  color: var(--index-blue);
  text-decoration: underline;
}

.section-note a:hover,
.section-note a:focus-visible {
  color: var(--archive-red);
}

/* 相关入口区（内页通用） */
.related-entry,
.guide-related,
.section-related {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.related-entry h2,
.guide-related h2,
.section-related h2 {
  font-size: 20px;
  font-weight: 600;
}

.entry-links,
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}

.entry-links a,
.related-list a {
  display: block;
  padding: 10px 12px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--index-blue);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.entry-links a:hover,
.entry-links a:focus-visible,
.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--archive-red);
  color: var(--archive-red);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */

/* 首屏档案式定位区 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.hero-text {
  min-width: 0;
  padding-top: 4px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.hero-summary {
  margin-top: 14px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.hero-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px;
  margin-top: 22px;
}

.hero-entries a {
  display: block;
  padding: 10px 12px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--archive-red);
  border-radius: var(--radius);
  color: var(--index-blue);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.hero-entries a:hover,
.hero-entries a:focus-visible {
  border-color: var(--archive-red);
  color: var(--archive-red);
}

.hero-media {
  min-width: 0;
  padding: 10px;
  background-color: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-media figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

/* 题材方向总览 */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.direction-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 18px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--index-blue);
  border-radius: var(--radius);
}

.direction-name {
  font-size: 17px;
  font-weight: 600;
}

.direction-scope {
  flex: 1 1 auto;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.direction-link {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--index-blue);
  font-size: 13px;
  text-decoration: underline;
}

.direction-link:hover,
.direction-link:focus-visible {
  color: var(--archive-red);
}

/* 并列区：条目速览 / 批次列表，位次 / 字段口径 */
.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}

.split-block .entries,
.split-block .batch-panel,
.split-block .rank-panel,
.split-block .glossary-panel {
  min-width: 0;
}

/* 封面条目速览 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.entry-card:hover {
  border-color: var(--rule-strong);
}

.entry-media {
  margin-bottom: 10px;
}

.entry-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #e7e2d8;
}

.entry-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-tags {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.entry-status {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 12px;
}

/* 更新记录批次列表 */
.batch-list {
  display: block;
}

.batch-item {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.batch-item:first-child {
  padding-top: 0;
}

.batch-item:last-child {
  border-bottom: none;
}

.batch-no {
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.batch-type {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.batch-scope {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.batch-more {
  margin-top: 16px;
  font-size: 13px;
}

.batch-more a {
  color: var(--index-blue);
  text-decoration: underline;
}

.batch-more a:hover,
.batch-more a:focus-visible {
  color: var(--archive-red);
}

/* 人气位次参考 */
.rank-list {
  display: block;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 15px;
}

.rank-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.rank-dir {
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.rank-more {
  margin-top: 16px;
  font-size: 13px;
}

.rank-more a {
  color: var(--index-blue);
  text-decoration: underline;
}

.rank-more a:hover,
.rank-more a:focus-visible {
  color: var(--archive-red);
}

/* 字段口径摘要 */
.glossary-list {
  display: block;
}

.glossary-list dt {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.glossary-list dt:first-child {
  margin-top: 0;
}

.glossary-list dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.glossary-more {
  margin-top: 16px;
  font-size: 13px;
}

.glossary-more a {
  color: var(--index-blue);
  text-decoration: underline;
}

.glossary-more a:hover,
.glossary-more a:focus-visible {
  color: var(--archive-red);
}

/* 查阅路径三步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  padding: 16px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step-no {
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.step-name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
}

.step-text {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.step-text a {
  color: var(--index-blue);
  text-decoration: underline;
}

.step-text a:hover,
.step-text a:focus-visible {
  color: var(--archive-red);
}

.feedback-entry {
  margin-top: 20px;
  padding: 12px 16px;
  background-color: #f1ece2;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--archive-red);
  border-radius: var(--radius);
  font-size: 14px;
}

.feedback-entry a {
  color: var(--index-blue);
  text-decoration: underline;
}

.feedback-entry a:hover,
.feedback-entry a:focus-visible {
  color: var(--archive-red);
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.index-item {
  min-width: 0;
  padding: 14px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.index-item a {
  display: block;
  color: var(--index-blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
}

.index-item a:hover,
.index-item a:focus-visible {
  color: var(--archive-red);
}

.index-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages：题材分类
   -------------------------------------------------------------------------- */
.category-block {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.category-desc {
  min-width: 0;
}

.category-desc h3 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
}

.category-desc h3:first-child {
  margin-top: 0;
}

.category-desc p {
  margin-top: 8px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.category-figure {
  min-width: 0;
  padding: 10px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.category-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #e7e2d8;
}

.category-figure figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.category-samples {
  margin-top: 22px;
}

.category-samples h3 {
  font-size: 15px;
  font-weight: 600;
}

.sample-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 16px;
  margin-top: 12px;
}

.sample-list a {
  display: block;
  padding: 10px 12px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--index-blue);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.sample-list a:hover,
.sample-list a:focus-visible {
  border-color: var(--archive-red);
  color: var(--archive-red);
}

/* 标签命名与归类 */
.tag-convention {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.tag-convention h2 {
  font-size: 22px;
  font-weight: 600;
}

.tag-convention > p {
  margin-top: 10px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.term-list {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 4px 20px;
  margin-top: 20px;
}

.term-list dt {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.term-list dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* 方向边界说明 */
.boundary-notes {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.boundary-notes h2 {
  font-size: 22px;
  font-weight: 600;
}

.boundary-notes > p {
  margin-top: 10px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.boundary-example {
  margin-top: 18px;
  padding: 14px 16px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--index-blue);
  border-radius: var(--radius);
}

.boundary-example h3 {
  font-size: 15px;
  font-weight: 600;
}

.boundary-example p {
  margin-top: 8px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages：更新记录
   -------------------------------------------------------------------------- */
.section-batch-notes {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.batch-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.legend-item {
  min-width: 0;
  padding: 14px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.legend-title {
  font-size: 15px;
  font-weight: 600;
}

.legend-desc {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.section-batch {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.batch-head {
  margin-bottom: 18px;
}

.batch-head .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.batch-meta {
  margin-top: 6px;
  color: var(--archive-red);
  font-size: 13px;
}

.batch-desc {
  margin-top: 8px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.section-batch .batch-list {
  display: block;
}

.section-batch .batch-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.section-batch .batch-item:last-child {
  border-bottom: none;
}

.batch-cover {
  min-width: 0;
}

.batch-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background-color: #e7e2d8;
}

.batch-body {
  min-width: 0;
}

.batch-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.batch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.batch-note {
  margin-top: 8px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* 变更类型与状态对照表 */
.section-status-map {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.status-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
}

.status-table caption {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: left;
}

.status-table th,
.status-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.status-table thead th {
  background-color: #f1ece2;
  color: var(--ink);
  font-weight: 600;
}

.status-table tbody th {
  width: 22%;
  color: var(--ink);
  font-weight: 600;
}

.status-table tbody td {
  width: 39%;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages：人气位次
   -------------------------------------------------------------------------- */
.ranking-list-section {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.ranking-list-section h2,
.ranking-caliber h2,
.ranking-notes h2,
.related-entry h2 {
  font-size: 22px;
  font-weight: 600;
}

.ranking-list {
  display: block;
  margin-top: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.ranking-item:first-child {
  padding-top: 0;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item .rank-no {
  padding-top: 2px;
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.rank-cover {
  min-width: 0;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background-color: #e7e2d8;
}

.rank-info {
  min-width: 0;
}

.rank-info .rank-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.rank-meta {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.ranking-caliber {
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.ranking-caliber > p {
  margin-top: 10px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.caliber-points {
  display: block;
  margin-top: 16px;
  max-width: var(--text-col);
}

.caliber-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.caliber-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--archive-red);
  border-radius: 1px;
}

.ranking-notes {
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.notes-list {
  display: block;
  margin-top: 16px;
  max-width: var(--text-col);
}

.notes-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--index-blue);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   pages：查阅指引
   -------------------------------------------------------------------------- */
.guide-steps,
.guide-fields,
.guide-feedback,
.guide-faq {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.guide-steps h2,
.guide-fields h2,
.guide-feedback h2,
.guide-faq h2 {
  font-size: 22px;
  font-weight: 600;
}

.guide-steps .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.step-card {
  min-width: 0;
  padding: 16px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--archive-red);
  border-radius: var(--radius);
}

.step-index {
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.step-card h3 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

.step-card > p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.step-card > p a {
  color: var(--index-blue);
  text-decoration: underline;
}

.step-card > p a:hover,
.step-card > p a:focus-visible {
  color: var(--archive-red);
}

.step-result {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 13px;
}

/* 字段速查 */
.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.field-figure {
  min-width: 0;
  padding: 10px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #e7e2d8;
}

.field-figure figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.field-list {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 4px 20px;
  min-width: 0;
}

.field-list dt {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.field-list dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* 反馈说明 */
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}

.feedback-body,
.feedback-need {
  min-width: 0;
}

.feedback-body h3,
.feedback-need h3 {
  font-size: 16px;
  font-weight: 600;
}

.feedback-body p {
  margin-top: 10px;
  max-width: var(--text-col);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.feedback-need {
  padding: 16px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.need-list {
  display: block;
  margin-top: 12px;
}

.need-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.need-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background-color: var(--archive-red);
  border-radius: 1px;
}

.need-list strong {
  color: var(--ink);
  font-weight: 600;
}

.feedback-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.feedback-note a {
  color: var(--index-blue);
  text-decoration: underline;
}

.feedback-note a:hover,
.feedback-note a:focus-visible {
  color: var(--archive-red);
}

/* 常见查阅疑问 */
.faq-group {
  margin-top: 22px;
}

.faq-group h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  font-weight: 600;
}

.faq-group details {
  border-bottom: 1px solid var(--rule);
}

.faq-group summary {
  padding: 12px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
}

.faq-group summary:hover {
  color: var(--archive-red);
}

.faq-group details p {
  max-width: var(--text-col);
  padding: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.error-panel {
  max-width: var(--text-col);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.error-code {
  color: var(--archive-red);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.error-panel h1 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.error-text {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.error-actions {
  margin-top: 22px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  min-height: 44px;
  background-color: var(--archive-red);
  border: 1px solid var(--archive-red);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #732525;
  border-color: #732525;
  color: #fff;
}

.error-routes {
  margin-top: 32px;
}

.error-routes h2 {
  font-size: 20px;
  font-weight: 600;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}

.route-list a {
  display: block;
  padding: 12px 14px;
  background-color: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--index-blue);
  border-radius: var(--radius);
  color: var(--index-blue);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.route-list a:hover,
.route-list a:focus-visible {
  border-color: var(--archive-red);
  color: var(--archive-red);
}

/* --------------------------------------------------------------------------
   responsive：1024px 与 640px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media {
    order: 2;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .field-layout,
  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .fact-bar {
    padding: 8px 16px;
    font-size: 12px;
    text-align: left;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 10px 16px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    justify-self: end;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background-color: var(--card);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 6px 14px rgba(34, 32, 29, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    min-height: 44px;
    border-bottom: 1px solid var(--rule);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--rule);
    color: var(--archive-red);
  }

  .header-tools {
    gap: 4px 14px;
    font-size: 12px;
  }

  .utility-inner {
    padding: 8px 16px;
    gap: 4px 14px;
    font-size: 12px;
  }

  .home-main,
  .inner-main {
    padding: 22px 16px 40px;
  }

  .page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-title,
  .section-head h2,
  .tag-convention h2,
  .boundary-notes h2,
  .ranking-list-section h2,
  .ranking-caliber h2,
  .ranking-notes h2,
  .guide-steps h2,
  .guide-fields h2,
  .guide-feedback h2,
  .guide-faq h2,
  .related-entry h2,
  .error-routes h2 {
    font-size: 19px;
  }

  .section {
    margin-bottom: 32px;
  }

  .hero {
    margin-bottom: 34px;
    padding-bottom: 26px;
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .direction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .step-list,
  .guide-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .rank-dir {
    grid-column: 2 / -1;
    white-space: normal;
  }

  .term-list,
  .field-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .term-list dt,
  .field-list dt {
    padding-bottom: 0;
  }

  .term-list dd,
  .field-list dd {
    padding-top: 4px;
  }

  .section-batch .batch-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-item {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .status-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .status-table caption {
    padding: 10px 12px 4px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 18px;
  }

  .footer-copy {
    padding: 12px 16px 22px;
  }

  .error-main {
    padding: 32px 16px 40px;
  }

  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
