/* ==========================================================================
   尾巴漫画官方免费入口 · 全站样式
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --paper: #FBF7F1;
  --ink: #1E1B18;
  --warm-gray: #6B6158;
  --spine-red: #C2452D;
  --spine-indigo: #2F4858;
  --spine-mustard: #C08A2E;
  --rule: #E4DCD0;
  --paper-deep: #F4EEE5;

  --font-serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --read-width: 760px;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(30, 27, 24, 0.06), 0 6px 14px rgba(30, 27, 24, 0.05);
  --shadow-card-hover: 0 3px 6px rgba(30, 27, 24, 0.09), 0 12px 22px rgba(30, 27, 24, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--spine-red);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--spine-red);
  outline-offset: 2px;
}

/* 跳转链接：默认完全移出可视区，聚焦时回到左上角 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout — 站点骨架：页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--spine-red);
  border-radius: 3px 3px 3px 1px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 9px;
  height: 2px;
  background: var(--paper);
  box-shadow: 0 6px 0 var(--paper), 0 12px 0 var(--paper);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.brand-slogan {
  font-size: 12px;
  color: var(--warm-gray);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--spine-red);
  text-decoration: none;
  border-bottom-color: var(--spine-red);
}

.site-nav a.is-current {
  color: var(--spine-red);
  font-weight: 600;
  border-bottom-color: var(--spine-red);
  background: var(--paper-deep);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 64px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--warm-gray);
}

.breadcrumb a:hover {
  color: var(--spine-red);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 14px 0 6px;
}

.page-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
  color: var(--ink);
}

/* 页脚 */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 28px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: var(--warm-gray);
}

.footer-links a:hover {
  color: var(--spine-red);
}

.footer-about p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-note {
  font-size: 13px;
  color: var(--warm-gray);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
}

.footer-bottom p {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  font-size: 12px;
  color: var(--warm-gray);
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--spine-red);
  color: #fff;
  border-color: var(--spine-red);
}

.btn-primary:hover {
  background: #A73A25;
  border-color: #A73A25;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  font-size: 14px;
  color: var(--spine-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   3. components — 通用小部件
   -------------------------------------------------------------------------- */
/* 题材色点 */
.quick-dot,
.ledger-dot,
.shelf-dot,
.subject-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-red,
.dot-mystery,
.dot-slice {
  background: var(--spine-red);
}

.dot-indigo,
.dot-scifi,
.dot-school,
.dot-folklore {
  background: var(--spine-indigo);
}

.dot-mustard,
.dot-workplace,
.dot-fantasy {
  background: var(--spine-mustard);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.tag-red {
  color: var(--spine-red);
}

.tag-indigo {
  color: var(--spine-indigo);
}

.tag-mustard {
  color: var(--spine-mustard);
}

/* 状态小签（首页封面卡） */
.status-pin {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
  color: #fff;
}

.status-red {
  background: var(--spine-red);
}

.status-indigo {
  background: var(--spine-indigo);
}

.status-mustard {
  background: var(--spine-mustard);
}

/* 书架页状态标签 */
.status-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.status-tag-jie {
  color: var(--spine-mustard);
  border-color: var(--spine-mustard);
}

.status-tag-hui {
  color: var(--warm-gray);
  border-color: var(--rule);
}

/* 封面卡（首页 / 书架页共用基础外观） */
.cover-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cover-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--spine-red);
}

.cover-card:focus-within {
  border-color: var(--spine-red);
  box-shadow: var(--shadow-card-hover);
}

/* 书脊色条 */
.spine-bar {
  display: block;
  width: 6px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--rule);
}

.spine-red .spine-bar,
.shelf-tier-red .spine-bar {
  background: var(--spine-red);
}

.spine-indigo .spine-bar,
.shelf-tier-indigo .spine-bar {
  background: var(--spine-indigo);
}

.spine-mustard .spine-bar,
.shelf-tier-mustard .spine-bar {
  background: var(--spine-mustard);
}

/* 规则列表（书架页 / 台账页共用） */
.rule-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 2px;
  background: var(--spine-red);
}

.rule-list strong {
  color: var(--ink);
}

/* 下一步入口链接组 */
.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.next-links a:hover {
  color: var(--spine-red);
  border-color: var(--spine-red);
  text-decoration: none;
}

/* 语义化字段对（书架页 / 题材页 / 台账页共用） */
.field-pairs,
.pair-list,
.field-list,
.tag-list {
  margin: 0;
}

.field-pair,
.field-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.field-pair dt,
.field-item dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-pair dd,
.field-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */
/* 首屏 */
.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--spine-red);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.hero-lead h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  max-width: var(--read-width);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-desc + .hero-desc {
  color: var(--warm-gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 26px;
}

.hero-media {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

/* 最近更新速览 */
.hero-aside {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  min-width: 0;
}

.aside-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.aside-note {
  font-size: 13px;
  color: var(--warm-gray);
  margin-bottom: 12px;
}

.quick-list {
  border-top: 1px solid var(--rule);
}

.quick-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 74px 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.quick-date {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--warm-gray);
  text-align: right;
}

.quick-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-chapter {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--warm-gray);
  text-align: right;
}

.aside-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--spine-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 通用 section */
.section {
  padding: 44px 0 0;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 6px;
}

.section-head p {
  font-size: 14px;
  color: var(--warm-gray);
  max-width: var(--read-width);
}

.section-more {
  margin-top: 18px;
  font-size: 14px;
}

/* 题材书脊带 */
.spine-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spine-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.spine-item .spine-bar {
  align-self: stretch;
  min-height: 52px;
}

.spine-body {
  min-width: 0;
}

.spine-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.spine-desc {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.spine-link {
  font-size: 13px;
  color: var(--spine-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 书架封面墙 */
.shelf-group + .shelf-group {
  margin-top: 26px;
}

.shelf-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 12px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-media {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}

.cover-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-body {
  padding: 12px 14px 14px;
}

.cover-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.cover-subject {
  font-size: 12px;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.cover-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--warm-gray);
}

/* 更新台账预览 */
.ledger-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ledger-group {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.ledger-date {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 78px 12px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-field {
  font-size: 12px;
  color: var(--warm-gray);
  text-align: right;
}

.ledger-chapter {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--warm-gray);
  text-align: right;
}

/* 编辑书单 */
.list-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.list-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
}

.list-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.list-tag {
  margin-bottom: 12px;
}

.list-items {
  counter-reset: list-counter;
}

.list-items li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.list-items li::before {
  counter-increment: list-counter;
  content: counter(list-counter);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--spine-red);
  text-align: right;
}

.list-item-name {
  color: var(--ink);
  font-weight: 600;
}

.list-item-reason {
  grid-column: 2;
  font-size: 13px;
  color: var(--warm-gray);
}

.list-reason {
  margin-top: 12px;
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* 条目字段速读 */
.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.field-block {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--spine-indigo);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.field-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.field-read {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}

.field-counter {
  font-size: 13px;
  color: var(--warm-gray);
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}

/* 内容边界 */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--spine-mustard);
  border-radius: var(--radius);
  padding: 18px;
}

.boundary-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.boundary-item p {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   5. pages — 内页通用标题区
   -------------------------------------------------------------------------- */
.page-title-area,
.page-head,
.page-title,
.page-intro {
  min-width: 0;
}

.page-lead {
  max-width: var(--read-width);
  font-size: 16px;
  color: var(--ink);
  margin: 6px 0 0;
}

.page-meta {
  font-size: 13px;
  color: var(--warm-gray);
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  max-width: var(--read-width);
}

/* 内页各区块的通用间距 */
.shelf-rules,
.shelf-tier,
.card-field-note,
.shelf-next,
.related-links,
.page-inner > section,
.ledger-rules,
.ledger-days,
.ledger-tags,
.ledger-more,
.list-method,
.list-stack,
.overlap-note,
.next-step,
.next-section,
.page-shell > section,
.scope-section,
.steps-section,
.exclude-section,
.selfcheck-section {
  margin-top: 34px;
}

/* 内页小节标题统一 */
.shelf-rules h2,
.card-field-note h2,
.shelf-next h2,
.ledger-rules h2,
.ledger-days h2,
.ledger-tags h2,
.ledger-more h2,
.list-method h2,
.overlap-note h2,
.next-step h2,
.next-section h2,
.scope-section h2,
.steps-section h2,
.exclude-section h2,
.selfcheck-section h2,
.page-shell section > h2,
.page-inner section > h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.section-intro,
.section-note,
.section-lead {
  font-size: 14px;
  color: var(--warm-gray);
  max-width: var(--read-width);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   6. pages — 书架陈列页
   -------------------------------------------------------------------------- */
.shelf-rules .rule-list {
  margin-top: 12px;
}

.shelf-tier {
  padding-top: 6px;
}

.shelf-tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--rule);
}

.shelf-tier-head .spine-bar {
  height: 22px;
}

.shelf-tier-head h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  border: 0;
  padding: 0;
  margin: 0;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shelf-grid > li {
  min-width: 0;
}

.shelf-grid .cover-figure {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
}

.shelf-grid .cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.shelf-grid .cover-title {
  padding: 12px 14px 0;
  font-size: 16px;
}

.shelf-grid .cover-subject {
  padding: 4px 14px 0;
  margin: 0;
  font-size: 12px;
}

.shelf-grid .cover-subject a {
  color: var(--warm-gray);
}

.shelf-grid .cover-subject a:hover {
  color: var(--spine-red);
}

.shelf-grid .cover-status {
  padding: 8px 14px 0;
  margin: 0;
}

.shelf-grid .cover-range {
  padding: 6px 14px 14px;
  margin: 0;
  font-size: 12px;
  color: var(--warm-gray);
  font-variant-numeric: tabular-nums;
}

.card-field-note .field-pairs {
  max-width: var(--read-width);
}

.shelf-next .next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-link {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
}

.next-link:hover {
  border-color: var(--spine-red);
  text-decoration: none;
}

.next-link-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.next-link-desc {
  display: block;
  font-size: 13px;
  color: var(--warm-gray);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.related-links-label {
  color: var(--warm-gray);
}

.related-links-item {
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font-size: 13px;
}

.related-links-item:hover {
  color: var(--spine-red);
  border-color: var(--spine-red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. pages — 题材书脊页
   -------------------------------------------------------------------------- */
.page-inner {
  max-width: var(--container);
}

.subject-principle .prose p {
  max-width: var(--read-width);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 12px;
}

.spine-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.spine-block-media {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}

.spine-block .spine-body {
  min-width: 0;
}

.spine-block h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  margin-bottom: 10px;
}

.spine-swatch {
  display: inline-block;
  width: 8px;
  height: 22px;
  border-radius: 2px;
  flex: 0 0 auto;
}

.spine-swatch-red {
  background: var(--spine-red);
}

.spine-swatch-indigo {
  background: var(--spine-indigo);
}

.spine-swatch-mustard {
  background: var(--spine-mustard);
}

.spine-range {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  max-width: var(--read-width);
}

.spine-neighbor {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 8px;
  max-width: var(--read-width);
}

.spine-rep {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.spine-rep a {
  color: var(--spine-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spine-jump {
  display: inline-block;
  font-size: 13px;
  color: var(--spine-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spine-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.spine-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.spine-figure figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

.pair-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pair-item {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.pair-item dt {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.pair-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. pages — 更新台账页
   -------------------------------------------------------------------------- */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.page-title-block {
  min-width: 0;
}

.page-title-text {
  min-width: 0;
}

.page-title-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.page-title-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-title-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

.ledger-rules .rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ledger-rules .rule-list li {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin: 0;
}

.ledger-rules .rule-list li::before {
  display: none;
}

.rule-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.ledger-rules .rule-list p {
  font-size: 14px;
  color: var(--warm-gray);
}

.ledger-day {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.ledger-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

.ledger-day-head .ledger-date {
  font-size: 18px;
  border: 0;
  padding: 0;
  margin: 0;
}

.ledger-day-count {
  font-size: 13px;
  color: var(--warm-gray);
  font-variant-numeric: tabular-nums;
}

.ledger-day .ledger-row {
  grid-template-columns: minmax(0, 1.4fr) 96px 88px minmax(0, 1fr);
}

.row-title {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-field {
  font-size: 12px;
  color: var(--warm-gray);
}

.row-chapter {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--warm-gray);
  text-align: right;
}

.row-subject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--warm-gray);
  min-width: 0;
}

.tag-list {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 10px 20px;
  max-width: var(--read-width);
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.tag-list dt {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tag-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

.reading-order {
  margin-top: 22px;
  max-width: var(--read-width);
}

.reading-order h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.order-steps {
  counter-reset: order-step;
}

.order-steps li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed var(--rule);
}

.order-steps li::before {
  counter-increment: order-step;
  content: counter(order-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--spine-indigo);
  border-radius: 50%;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.more-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.more-links a:hover {
  color: var(--spine-red);
  border-color: var(--spine-red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. pages — 编辑书单页
   -------------------------------------------------------------------------- */
.list-method .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  max-width: none;
  margin-top: 14px;
}

.tag-item {
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--spine-mustard);
  border-radius: var(--radius);
}

.tag-name {
  font-size: 14px;
  color: var(--ink);
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reading-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.sheet-head {
  min-width: 0;
}

.sheet-index {
  font-size: 12px;
  color: var(--spine-red);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.sheet-head h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 8px;
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--spine-indigo);
  border: 1px solid var(--spine-indigo);
  border-radius: 3px;
}

.sheet-cover {
  max-width: 220px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.sheet-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.sheet-cover figcaption {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

.sheet-reason {
  font-size: 14px;
  color: var(--warm-gray);
  max-width: var(--read-width);
  padding: 10px 14px;
  background: var(--paper-deep);
  border-left: 3px solid var(--spine-mustard);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sheet-items {
  border-top: 1px solid var(--rule);
}

.sheet-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 96px minmax(0, 1.4fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.item-order {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--spine-red);
  text-align: right;
}

.item-name {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
}

.item-spine {
  font-size: 12px;
  color: var(--spine-indigo);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-why {
  font-size: 13px;
  color: var(--warm-gray);
  min-width: 0;
}

.overlap-note p {
  max-width: var(--read-width);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.overlap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.overlap-item {
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.overlap-name {
  font-size: 14px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   10. pages — 条目字段说明页
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: var(--container);
}

.page-shell .page-intro {
  padding-top: 6px;
}

.page-shell .page-meta {
  border-top: 0;
  padding-top: 0;
}

.field-list {
  max-width: var(--read-width);
}

.field-chapter-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.field-chapter-text {
  min-width: 0;
}

.field-chapter-text p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: var(--read-width);
}

.field-tips {
  margin-top: 8px;
}

.field-tips li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--warm-gray);
}

.field-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 2px;
  background: var(--spine-indigo);
}

.field-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tag-card {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--spine-mustard);
  border-radius: var(--radius);
  min-width: 0;
}

.tag-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.tag-card p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

.field-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--warm-gray);
  max-width: var(--read-width);
}

.faq-item {
  max-width: var(--read-width);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--spine-red);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--spine-red);
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   11. pages — 更正与反馈页
   -------------------------------------------------------------------------- */
.scope-grid,
.exclude-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scope-item,
.exclude-item {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.scope-item {
  border-top: 3px solid var(--spine-red);
}

.exclude-item {
  border-top: 3px solid var(--warm-gray);
}

.scope-item h3,
.exclude-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.scope-item p,
.exclude-item p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

.step-list {
  counter-reset: step-count;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-list li {
  position: relative;
  padding: 16px 16px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  min-width: 0;
}

.step-list li::before {
  counter-increment: step-count;
  content: counter(step-count);
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--spine-indigo);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.step-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-list p {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

.selfcheck-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.selfcheck-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.entry-link {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--spine-red);
  border-radius: var(--radius);
  color: var(--ink);
}

.entry-link:hover {
  border-color: var(--spine-red);
  text-decoration: none;
}

.entry-link-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-link-desc {
  display: block;
  font-size: 13px;
  color: var(--warm-gray);
}

.selfcheck-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.selfcheck-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.selfcheck-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warm-gray);
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   12. pages — 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 28px 64px;
}

.error-panel {
  max-width: var(--read-width);
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--spine-red);
  border-radius: var(--radius);
}

.error-code {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--spine-red);
  margin-bottom: 8px;
}

.error-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.error-hint {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths {
  margin-top: 34px;
}

.error-paths-title {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.error-paths-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-paths-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.error-paths-list a:hover {
  color: var(--spine-red);
  border-color: var(--spine-red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   13. responsive — 960px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 16px rgba(30, 27, 24, 0.08);
    padding: 8px 20px 16px;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    padding: 12px 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    font-size: 15px;
  }

  .site-nav a:hover {
    border-bottom-color: transparent;
    border-left-color: var(--spine-red);
  }

  .site-nav a.is-current {
    background: var(--paper-deep);
    border-bottom-color: transparent;
    border-left-color: var(--spine-red);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-aside {
    order: 2;
  }

  .spine-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spine-block-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .spine-figure {
    max-width: 260px;
  }

  .pair-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-title-figure {
    max-width: 260px;
  }

  .ledger-rules .rule-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ledger-day .ledger-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 78px 12px;
  }

  .sheet-item {
    grid-template-columns: 26px minmax(0, 1fr) 84px;
    row-gap: 4px;
  }

  .item-why {
    grid-column: 2 / -1;
  }

  .field-chapter-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-figure {
    max-width: 260px;
  }

  .tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-grid,
  .exclude-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selfcheck-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .selfcheck-figure {
    max-width: 260px;
  }
}

/* --------------------------------------------------------------------------
   14. responsive — 680px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .home-main,
  .inner-main {
    padding: 0 16px 48px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-item {
    grid-template-columns: 56px minmax(0, 1fr) 62px 10px;
    gap: 8px;
    font-size: 13px;
  }

  .section {
    padding-top: 32px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-body {
    padding: 10px 10px 12px;
  }

  .cover-name {
    font-size: 15px;
  }

  .ledger-row {
    grid-template-columns: minmax(0, 1fr) 12px;
    grid-template-areas:
      "name dot"
      "field chapter";
    row-gap: 2px;
    align-items: center;
  }

  .ledger-name {
    grid-area: name;
  }

  .ledger-field {
    grid-area: field;
    text-align: left;
  }

  .ledger-chapter {
    grid-area: chapter;
    text-align: right;
  }

  .ledger-dot {
    grid-area: dot;
    justify-self: end;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .shelf-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .shelf-next .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .spine-block h3 {
    font-size: 18px;
  }

  .ledger-day {
    padding: 14px;
  }

  .ledger-day .ledger-row {
    grid-template-columns: minmax(0, 1fr) 12px;
    grid-template-areas:
      "name dot"
      "field chapter"
      "subject subject";
    row-gap: 3px;
  }

  .row-title {
    grid-area: name;
  }

  .row-field {
    grid-area: field;
  }

  .row-chapter {
    grid-area: chapter;
  }

  .row-subject {
    grid-area: subject;
    padding-top: 2px;
  }

  .ledger-day .ledger-row .subject-dot {
    display: none;
  }

  .tag-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px;
  }

  .tag-list dd {
    margin-bottom: 8px;
  }

  .reading-sheet {
    padding: 16px;
  }

  .sheet-item {
    grid-template-columns: 24px minmax(0, 1fr);
    row-gap: 4px;
  }

  .item-spine {
    grid-column: 2;
    justify-self: start;
  }

  .item-why {
    grid-column: 2;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-main {
    padding: 32px 16px 48px;
  }

  .error-panel {
    padding: 22px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   15. 动效：仅作增强，不影响初始可见性
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
