/* ==========================================================================
   五一吃瓜网 · 整站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f4f0e7;
  --panel: #fbf8f1;
  --ink: #22201c;
  --ink-soft: #6b645a;
  --seal: #8c3b2e;
  --index-blue: #2f4858;
  --rule: #d8d0c0;
  --rule-soft: #e6dfd0;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Consolas", "Menlo", monospace;
  --width: 1200px;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 0.6em;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--seal);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #6d2c21;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--index-blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

dl {
  margin: 0;
}

dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--index-blue);
}

dd {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  background: var(--ink);
  color: var(--panel);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 8px;
  color: var(--panel);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  display: block;
}

.inner-main {
  padding-bottom: 24px;
}

.site-main section {
  display: block;
}

/* 页头 ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  position: relative;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
}

/* 主导航 ---------------------------------------------------------------- */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-item > a {
  display: inline-block;
  padding: 8px 11px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  line-height: 1.5;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: var(--seal);
  text-decoration: none;
  border-bottom-color: var(--rule);
}

.nav-item.is-current > a {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* 汉堡按钮：桌面隐藏 ---------------------------------------------------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--panel);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 面包屑与页标题区 ------------------------------------------------------ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--seal);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--width);
  margin: 0 auto;
  padding: 12px 24px 0;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.page-title + .page-title {
  margin-top: 6px;
}

.page-title:empty {
  display: none;
}

/* 页脚 ------------------------------------------------------------------ */

.site-footer {
  margin-top: 56px;
  background-color: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 44px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px 28px;
  padding-bottom: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--index-blue);
  margin: 0 0 12px;
}

.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-group li {
  margin: 0 0 8px;
}

.footer-group li:last-child {
  margin-bottom: 0;
}

.footer-group a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  padding: 2px 0;
}

.footer-group a:hover {
  color: var(--seal);
}

.footer-bottom {
  border-top: 1px solid var(--rule-soft);
  padding-top: 18px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.footer-boundary {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  flex: 1 1 420px;
  min-width: 0;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 通用区块标题 ---------------------------------------------------------- */

.section-title {
  font-size: 24px;
  margin: 0 0 10px;
}

.section-intro,
.section-lead,
.section-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 760px;
}

.section-code,
.page-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--seal);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.link-more {
  display: inline-block;
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--seal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.link-more:hover {
  border-bottom-color: var(--seal);
  text-decoration: none;
}

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--seal);
  color: var(--panel);
  border-color: var(--seal);
}

.btn-primary:hover {
  background-color: #6d2c21;
  border-color: #6d2c21;
  color: var(--panel);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  color: var(--seal);
  border-color: var(--seal);
}

/* 图注 ---------------------------------------------------------------- */

.figure-caption {
  margin-top: 10px;
  padding-left: 14px;
  position: relative;
}

.figure-caption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background-color: var(--ink-soft);
}

/* 图片容器统一约束 ------------------------------------------------------ */

.hero-figure img,
.compile-figure img,
.page-figure img,
.figure-block img,
.dossier-id img,
.excerpt-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background-color: var(--panel);
}

/* 数据表格 ------------------------------------------------------------ */

.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.release-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.data-table th,
.data-table td,
.release-table th,
.release-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  line-height: 1.7;
}

.data-table thead th,
.release-table thead th {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--index-blue);
  background-color: #f0ebdf;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.release-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.release-table tbody tr:hover {
  background-color: #f5f1e6;
}

.cell-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--seal);
  white-space: nowrap;
}

.table-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* 定义列表通用 -------------------------------------------------------- */

.field-list {
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.field-row dt {
  padding-top: 2px;
}

.field-row dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.field-list-compact .field-row {
  grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  padding: 8px 0;
}

.field-list-compact .field-row dd {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 相关链接条 ---------------------------------------------------------- */

.related-links {
  max-width: var(--width);
  margin: 32px auto 0;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  border-top: 1px solid var(--rule);
}

.related-links-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--index-blue);
}

.related-links-item {
  font-size: 15px;
  color: var(--seal);
}

/* 手风琴（FAQ） -------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--rule);
  background-color: var(--panel);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.4;
  color: var(--seal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--seal);
}

.faq-answer {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.85;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer .field-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.faq-answer .field-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.faq-answer .field-list li:last-child {
  border-bottom: 0;
}

.faq-answer .field-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--index-blue);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   pages
   -------------------------------------------------------------------------- */

/* 首页 ---------------------------------------------------------------- */

.archive-hero {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 44px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .section-code {
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: 38px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
}

.hero-figure {
  margin: 0;
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

/* 档案口径字段条 */

.archive-spec {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-cell {
  background-color: var(--panel);
  padding: 18px 18px 20px;
  min-width: 0;
}

.spec-cell dt {
  margin-bottom: 8px;
  color: var(--seal);
}

.spec-cell dd {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

/* 题材索引 */

.genre-index {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.genre-tag {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--index-blue);
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 34px;
  line-height: 1.7;
}

.genre-tag:hover {
  color: var(--seal);
  border-color: var(--seal);
  text-decoration: none;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.genre-grid .genre-block {
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.genre-grid .genre-block h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.genre-grid .genre-block p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 10px;
}

/* 档案清单摘要 */

.archive-table {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

/* 阅读顺序 */

.reading-order {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.reading-order .step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reading-order .step-item {
  position: relative;
  padding: 20px 20px 20px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.reading-order .step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--seal);
  margin-bottom: 10px;
}

.reading-order .step-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.reading-order .step-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.order-entry {
  margin: 22px 0 0;
}

/* 修订摘要 */

.revision-brief {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--rule);
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 24px;
  min-width: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  background-color: var(--paper);
  border: 2px solid var(--seal);
  border-radius: 50%;
}

.timeline-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--seal);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 6px;
  max-width: 760px;
}

/* 编纂说明 */

.compile-note {
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

.compile-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.compile-figure {
  min-width: 0;
}

.compile-figure img {
  aspect-ratio: 4 / 3;
}

.compile-copy {
  min-width: 0;
}

.compile-copy p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* 首页问题摘要 */

.faq-teaser {
  padding: 44px 0 8px;
}

.qa-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.qa-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  min-width: 0;
}

.qa-question {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 6px;
}

.qa-answer {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
  max-width: 820px;
}

/* 内页标题区 ---------------------------------------------------------- */

.inner-main .page-title {
  padding-top: 0;
}

.inner-main section.page-title {
  max-width: var(--width);
  margin: 0 auto;
  padding: 14px 24px 30px;
  border-bottom: 1px solid var(--rule);
}

.page-title-inner {
  padding: 0;
}

.page-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  margin: 10px 0 22px;
  max-width: 760px;
}

.page-figure {
  margin: 0;
  max-width: 860px;
}

.page-figure img {
  aspect-ratio: 16 / 7;
  max-height: 380px;
}

/* 内页公共内容间距 */

.inner-main > section:not(.page-title) {
  max-width: var(--width);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.inner-main > section:not(.page-title):last-of-type {
  padding-bottom: 8px;
}

/* 作品档案页 ---------------------------------------------------------- */

.genre-filter-bar {
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 28px !important;
}

.genre-filter-bar h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.filter-hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-index {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--index-blue);
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 34px;
  line-height: 1.7;
}

.tag-index:hover {
  color: var(--seal);
  border-color: var(--seal);
  text-decoration: none;
}

.dossier-list h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.dossier-intro {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 760px;
}

.dossier-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.dossier-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.dossier-id {
  min-width: 0;
}

.dossier-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--seal);
  margin: 0 0 10px;
}

.dossier-id img {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.dossier-body {
  min-width: 0;
}

.dossier-name {
  font-size: 20px;
  margin: 0 0 12px;
}

.dossier-name a {
  color: var(--ink);
}

.dossier-name a:hover {
  color: var(--seal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dossier-item:hover .dossier-code {
  color: var(--seal);
}

.dossier-fields {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0;
}

.dossier-fields dt {
  padding-top: 2px;
}

.dossier-fields dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.volume-note h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

.volume-note .term-defs,
.volume-note dl {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 0 24px;
  border-top: 1px solid var(--rule-soft);
}

.volume-note dt {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--index-blue);
}

.volume-note dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  line-height: 1.8;
}

.excerpt {
  border-top: 1px solid var(--rule);
}

.excerpt h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

.excerpt-text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
  padding: 22px 24px;
  background-color: var(--panel);
  border-left: 3px solid var(--seal);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 12px;
  max-width: 820px;
}

.excerpt-figure {
  min-width: 0;
}

.cross-links h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

.cross-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.cross-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  min-width: 0;
}

.cross-item a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--seal);
}

.cross-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 4px 0 0;
  max-width: 760px;
}

/* 题材分类页 ---------------------------------------------------------- */

.page-layout {
  display: grid;
  gap: 40px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 40px 24px 0;
  align-items: start;
}

.page-layout.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.page-layout.layout-aside-right {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.genre-aside {
  min-width: 0;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-lead {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

.genre-anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.genre-anchor-list li {
  margin: 0;
}

.genre-anchor-list a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  min-height: 40px;
}

.genre-anchor-list li:last-child a {
  border-bottom: 0;
}

.genre-anchor-list a:hover {
  color: var(--seal);
  text-decoration: none;
}

.genre-main {
  min-width: 0;
}

.genre-main .genre-block {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.genre-main .genre-block h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.genre-fields {
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0 0 16px;
}

.genre-fields dt {
  padding-top: 2px;
}

.genre-fields dd {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.genre-dossier-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.genre-dossier-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--seal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.genre-dossier-links a:hover {
  border-bottom-color: var(--seal);
  text-decoration: none;
}

.genre-notes {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.genre-notes h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.genre-rule-list {
  list-style: none;
  counter-reset: genre-rule;
  margin: 0;
  padding: 0;
}

.genre-rule {
  counter-increment: genre-rule;
  padding: 16px 0 16px 44px;
  position: relative;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.genre-rule::before {
  content: counter(genre-rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--seal);
}

.genre-rule h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.genre-rule p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

.cross-links {
  min-width: 0;
}

.cross-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.cross-link-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  min-width: 0;
}

.cross-link-item a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--seal);
}

.cross-link-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* 连载与修订页 -------------------------------------------------------- */

.release-summary {
  padding-bottom: 8px;
}

.summary-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 820px;
}

.summary-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.summary-field {
  background-color: var(--panel);
  padding: 16px 18px;
  min-width: 0;
}

.summary-field .field-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--index-blue);
  margin-bottom: 6px;
}

.summary-field .field-value {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.release-table-section .table-scroll {
  margin-top: 4px;
}

.release-table {
  min-width: 720px;
}

.change-and-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 40px 24px 0;
  align-items: start;
}

.change-types,
.reading-help {
  min-width: 0;
}

.type-list {
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.type-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.type-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--seal);
  margin-bottom: 4px;
}

.type-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.help-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  min-width: 0;
}

.help-heading {
  font-size: 16px;
  margin: 0 0 4px;
}

.help-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* 阅读指南页 ---------------------------------------------------------- */

.guide-steps,
.guide-code,
.guide-misread,
.guide-entry {
  max-width: 820px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.section-head .section-desc {
  margin: 0;
}

.guide-steps .step-list {
  list-style: none;
  counter-reset: guide-step;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.guide-steps .step-item {
  counter-increment: guide-step;
  position: relative;
  padding: 20px 0 20px 56px;
  border-bottom: 1px solid var(--rule-soft);
  min-width: 0;
}

.guide-steps .step-index {
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--seal);
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 38px;
  text-align: center;
  padding: 2px 6px;
}

.guide-steps .step-title {
  font-size: 18px;
  margin: 0 0 6px;
}

.guide-steps .step-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 4px;
}

.guide-steps .step-expect {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.code-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.code-row dt {
  padding-top: 2px;
}

.code-fragment {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--seal);
  word-break: break-word;
}

.code-meaning {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 4px;
}

.code-format {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
  word-break: break-word;
}

.misread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.misread-item {
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.misread-wrong,
.misread-right {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.misread-right {
  margin-bottom: 0;
  color: var(--ink);
}

.misread-wrong {
  color: var(--ink-soft);
}

.misread-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--index-blue);
  margin-right: 6px;
}

.misread-right .misread-label {
  color: var(--seal);
}

.entry-title {
  font-size: 22px;
  margin: 0 0 16px;
}

.entry-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-item {
  min-width: 0;
}

.entry-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 44px;
}

.entry-item a:hover {
  border-color: var(--seal);
  text-decoration: none;
}

.entry-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--seal);
}

.entry-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 编纂手记页 ---------------------------------------------------------- */

.note-main {
  min-width: 0;
}

.note-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.note-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.note-section h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.note-section h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  color: var(--index-blue);
}

.note-section p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.note-section .field-list {
  margin: 0 0 10px;
}

.note-section .field-row dt {
  padding-top: 2px;
}

.note-section .field-row dd {
  font-size: 15px;
  line-height: 1.85;
}

.plain-list,
.ordered-list {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.plain-list li,
.ordered-list li {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 8px;
}

.plain-list li::marker {
  color: var(--seal);
}

.ordered-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}

.inline-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--seal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.inline-links a:hover {
  border-bottom-color: var(--seal);
  text-decoration: none;
}

.note-aside {
  min-width: 0;
}

.aside-block {
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.aside-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-item {
  padding: 12px 0;
  border-top: 1px solid var(--rule-soft);
  min-width: 0;
}

.summary-direction {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--seal);
  margin: 0 0 4px;
}

.summary-reason {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* 常见问题页 ---------------------------------------------------------- */

.faq-group {
  max-width: 820px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.group-head {
  margin-bottom: 16px;
}

.group-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--seal);
  margin: 0 0 6px;
}

.group-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
}

.group-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

.faq-group .faq-item:first-of-type {
  border-top: 1px solid var(--rule);
}

.feedback-note {
  max-width: 820px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.feedback-note h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.feedback-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}

/* 全站索引页 ---------------------------------------------------------- */

.index-figure {
  max-width: 1000px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.figure-block {
  margin: 0;
}

.figure-block img {
  aspect-ratio: 16 / 6;
  max-height: 320px;
}

.index-group-columns {
  max-width: 1000px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.index-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.index-group {
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  min-width: 0;
}

.index-group-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--seal);
  margin: 0 0 6px;
}

.index-group-title {
  font-size: 18px;
  margin: 0 0 6px;
}

.index-group-purpose {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.index-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.index-group-list li {
  border-bottom: 1px solid var(--rule-soft);
}

.index-group-list li:last-child {
  border-bottom: 0;
}

.index-group-list a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
  min-height: 40px;
}

.index-group-list a:hover {
  color: var(--seal);
  text-decoration: none;
}

.index-note {
  max-width: 1000px !important;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.index-note-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 820px;
}

/* 404 ------------------------------------------------------------------ */

.error-main {
  padding: 56px 0 24px;
}

.error-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--seal);
  margin: 0 0 12px;
}

.error-main h1 {
  font-size: 32px;
  margin: 0 0 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.error-panel {
  background-color: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.error-panel-title {
  font-size: 18px;
  margin: 0 0 12px;
}

.error-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.error-list li {
  border-bottom: 1px solid var(--rule-soft);
}

.error-list li:last-child {
  border-bottom: 0;
}

.error-list a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  min-height: 44px;
}

.error-list a:hover {
  color: var(--seal);
  text-decoration: none;
}

.error-note {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.error-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  color: var(--panel);
  background-color: var(--seal);
  border: 1px solid var(--seal);
  border-radius: var(--radius);
  text-decoration: none;
}

.error-back:hover {
  background-color: #6d2c21;
  border-color: #6d2c21;
  color: var(--panel);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    height: 68px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-item > a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout.layout-aside-right {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .compile-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(120px, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background-color: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 16px;
    box-shadow: 0 6px 14px rgba(34, 32, 28, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item > a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule-soft);
    min-height: 46px;
  }

  .nav-item.is-current > a {
    border-bottom-color: var(--rule-soft);
    color: var(--seal);
    font-weight: 600;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-figure {
    max-width: 460px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
    max-height: 340px;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .reading-order .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .compile-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-layout.sidebar-left,
  .page-layout.layout-aside-right {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .genre-aside {
    position: static;
  }

  .genre-anchor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .genre-anchor-list li {
    flex: 0 0 auto;
  }

  .genre-anchor-list a {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background-color: var(--paper);
    padding: 8px 12px;
    font-size: 14px;
    min-height: 40px;
  }

  .genre-anchor-list li:last-child a {
    border-bottom: 1px solid var(--rule);
  }

  .dossier-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
  }

  .change-and-help {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .summary-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .misread-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .index-group-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  .container,
  .header-inner,
  .breadcrumb,
  .page-header,
  .inner-main section.page-title,
  .inner-main > section:not(.page-title),
  .page-layout,
  .change-and-help,
  .guide-steps,
  .guide-code,
  .guide-misread,
  .guide-entry,
  .faq-group,
  .feedback-note,
  .index-figure,
  .index-group-columns,
  .index-note,
  .related-links,
  .error-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    height: 60px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .site-nav {
    padding: 6px 16px 14px;
  }

  .page-title {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-copy h1 {
    font-size: 26px;
    line-height: 1.38;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .archive-hero {
    padding: 24px 0 30px;
  }

  .archive-spec,
  .genre-index,
  .archive-table,
  .reading-order,
  .revision-brief,
  .compile-note {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .faq-teaser {
    padding-top: 30px;
  }

  .section-title,
  .dossier-list h2,
  .volume-note h2,
  .excerpt h2,
  .cross-links h2,
  .genre-main .genre-block h2,
  .genre-notes h2,
  .note-section h2,
  .group-head h2,
  .section-head h2,
  .entry-title {
    font-size: 20px;
  }

  .spec-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-cell {
    padding: 14px 16px;
  }

  .hero-meta {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .inner-main section.page-title {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .page-lead {
    font-size: 16px;
  }

  .page-figure img {
    aspect-ratio: 16 / 10;
    max-height: 240px;
  }

  .dossier-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .dossier-id {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    align-items: start;
  }

  .dossier-code {
    margin: 0;
    padding-top: 4px;
  }

  .dossier-id img {
    aspect-ratio: 3 / 4;
  }

  .dossier-fields,
  .genre-fields,
  .volume-note .term-defs,
  .volume-note dl,
  .field-row,
  .code-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .dossier-fields dt,
  .genre-fields dt,
  .field-row dt,
  .code-row dt {
    padding-top: 6px;
  }

  .dossier-fields dd,
  .genre-fields dd,
  .field-row dd,
  .code-row dd {
    padding-bottom: 6px;
  }

  .volume-note dt,
  .volume-note dd {
    padding: 8px 0;
  }

  .volume-note dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .excerpt-text {
    font-size: 16px;
    padding: 16px 16px;
    line-height: 1.95;
  }

  .data-table,
  .release-table {
    min-width: 560px;
    font-size: 14px;
  }

  .data-table th,
  .data-table td,
  .release-table th,
  .release-table td {
    padding: 10px 12px;
  }

  .summary-field {
    padding: 14px 16px;
  }

  .entry-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .guide-steps .step-item {
    padding: 16px 0 16px 46px;
  }

  .guide-steps .step-index {
    top: 16px;
    min-width: 34px;
  }

  .guide-steps .step-title {
    font-size: 17px;
  }

  .faq-item summary {
    padding: 14px 14px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 14px 16px;
  }

  .index-group {
    padding: 16px 18px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-boundary {
    flex: 1 1 auto;
  }

  .error-main {
    padding-top: 36px;
  }

  .error-main h1 {
    font-size: 26px;
  }

  .error-panel {
    padding: 18px 18px;
  }
}

/* 动效与可访问性偏好 ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
