/* ==========================================================================
   喵趣 anpaini.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版、通用工具
   -------------------------------------------------------------------------- */

:root {
  --paper: #F6F4EF;
  --ink: #1B1A17;
  --muted: #6E6A62;
  --accent: #5B4BC4;
  --status: #B45309;
  --line: #DEDAD2;
  --line-strong: #C9C3B8;
  --surface: #FFFFFF;
  --surface-soft: #EFEBE3;

  --font-sans: -apple-system, "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --shell-max: 1080px;
  --shell-pad: 32px;
  --header-h: 64px;

  --radius: 6px;
  --radius-sm: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 通用区块标题与说明 */

.section-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.section-lead,
.section-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  margin-bottom: 22px;
}

.section-more {
  margin-top: 22px;
  font-size: 15px;
}

.section-more a,
.section-foot a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. layout — 页头、主容器、内页外壳、页脚
   -------------------------------------------------------------------------- */

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-block;
  font-size: 15px;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink);
}

/* 主容器 */

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 64px;
}

.inner-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 64px;
}

.inner-main > section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.inner-main > section:last-of-type {
  border-bottom: 0;
}

/* 面包屑 */

.breadcrumb {
  padding: 18px 0 6px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */

.page-header {
  padding: 12px 0 4px;
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  max-width: 900px;
}

.page-head {
  padding-top: 14px;
}

.page-head-desc,
.page-intro,
.page-lede,
.page-head-lead {
  font-size: 16px;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 18px;
}

.page-head-fields,
.page-meta,
.head-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 32px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.field-row,
.meta-row,
.head-field {
  display: flex;
  gap: 10px;
  font-size: 14px;
  align-items: baseline;
}

.field-row dt,
.meta-row dt,
.head-field dt {
  color: var(--muted);
  font-size: 13.5px;
  flex: 0 0 auto;
  min-width: 74px;
}

.field-row dd,
.meta-row dd,
.head-field dd {
  color: var(--ink);
  font-weight: 500;
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--paper);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 40px var(--shell-pad) 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 320px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-links {
  max-width: var(--shell-max);
  margin: 28px auto 0;
  padding: 18px var(--shell-pad) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
}

.footer-note {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px var(--shell-pad) 32px;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. components — 卡片、标签、表格、步骤、问答、顺序导航等
   -------------------------------------------------------------------------- */

/* 封面卡（首页预览与内页陈列共用基础） */

.card-cover,
.card-cover img {
  width: 100%;
}

.card-cover {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--surface-soft);
  border: 1px solid var(--line);
}

.card-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 200ms ease;
}

.card-body {
  padding: 12px 2px 0;
}

.card-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--accent);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tag,
.genre-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
}

.tag:hover,
.genre-tag:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.card-meta {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
}

.meta-label {
  color: var(--muted);
  flex: 0 0 auto;
}

.meta-status {
  color: var(--ink);
}

/* 状态标注 */

.status-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.status-badge.is-ongoing {
  color: var(--status);
  border-color: var(--status);
}

.status-badge.is-completed {
  color: var(--accent);
  border-color: var(--accent);
}

.status-badge.is-paused {
  color: var(--muted);
  border-color: var(--line-strong);
}

/* 按钮 */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #4A3CAE;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 表格 */

.field-table,
.compare-table,
.rule-table {
  font-size: 14.5px;
  margin-top: 8px;
}

.field-table th,
.field-table td,
.compare-table th,
.compare-table td,
.rule-table th,
.rule-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.field-table thead th,
.compare-table thead th,
.rule-table thead th {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}

.field-table tbody th,
.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.compare-table tbody th a {
  font-weight: 500;
}

/* 步骤列 */

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step,
.step-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.step-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p,
.step-item p {
  font-size: 15px;
  color: var(--muted);
}

.step-link,
.genre-link,
.detail-link,
.to-shelf-link {
  margin-top: 10px;
  font-size: 14.5px;
}

/* 问答 */

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 26px 14px 0;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 13px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  padding: 0 26px 14px 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 760px;
}

.faq-item p a {
  color: var(--accent);
}

.faq-link,
.faq-item-link {
  display: inline-block;
  padding: 0 0 16px;
  font-size: 14.5px;
}

/* 顺序导航 */

.sequence {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.sequence-prev,
.sequence-next,
.sequence-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 46%;
  font-size: 14.5px;
}

.sequence-next,
a.sequence-next {
  text-align: right;
  margin-left: auto;
}

.sequence-label {
  font-size: 12.5px;
  color: var(--muted);
}

.sequence-title {
  color: var(--accent);
  font-weight: 500;
}

/* 相关内容 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14.5px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.related-links-label {
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   4. pages — 首页与各内页专属模块
   -------------------------------------------------------------------------- */

/* 4.1 首页 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
  padding: 46px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 20px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.genre-tags a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.genre-tags a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.hero-art {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-art figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.digest,
.shelf-preview,
.updates-ranking,
.genre-entry,
.setup-steps,
.faq-teaser,
.boundaries-note {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.boundaries-note {
  border-bottom: 0;
}

.digest-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.digest-field dt {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.digest-field dd {
  font-size: 15px;
  font-weight: 500;
}

/* 首页封面墙：首格大卡 + 四格常规卡 */

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card-lead {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background-color: var(--surface);
}

.card-lead .card-cover {
  border: 0;
}

.card-lead .card-cover img {
  aspect-ratio: 4 / 3;
}

.card-regular {
  display: flex;
  flex-direction: column;
}

.card-regular:hover,
.shelf-card:hover {
  transform: translateY(-2px);
  transition: transform 200ms ease;
}

.card-regular:hover .card-cover,
.shelf-card:hover .card-cover {
  border-color: var(--line-strong);
}

.card-regular:hover .card-cover img,
.shelf-card:hover .card-cover img {
  transform: scale(1.03);
}

/* 最近更新 + 编选序列 */

.updates-ranking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
}

.update-items {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.update-item {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
}

.update-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover {
  color: var(--accent);
}

.update-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.update-link {
  margin-top: 6px;
  font-size: 14px;
}

.pick-items {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.pick-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}

.pick-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pick-index {
  grid-row: span 2;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.pick-name a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.pick-name a:hover {
  color: var(--accent);
}

.pick-reason {
  font-size: 13.5px;
  color: var(--muted);
}

/* 题材分组入口 */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 36px;
}

.genre-cell {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.genre-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.genre-cell p {
  font-size: 14.5px;
  color: var(--muted);
}

/* 内容边界说明 */

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.boundary-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.boundary-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 14.5px;
  color: var(--muted);
}

/* 4.2 封面陈列页 */

.page-cover-shelf .genre-anchor {
  padding: 6px 0 0;
  border-bottom: 0;
}

.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-tag {
  display: inline-block;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 500;
}

.anchor-tag:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.shelf-zone {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.zone-head {
  margin-bottom: 20px;
}

.zone-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.zone-desc {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 760px;
}

.shelf-zone .shelf-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shelf-card {
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease;
}

.shelf-card .card-title {
  font-size: 16.5px;
}

.card-status {
  font-size: 13.5px;
  margin-bottom: 6px;
}

.card-start,
.card-basis {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.card-basis {
  margin-top: 4px;
}

.field-note,
.basis-guide,
.next-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.field-note h2,
.basis-guide h2,
.next-step h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.field-note .field-table {
  max-width: 820px;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.basis-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.basis-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.basis-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.next-step {
  border-bottom: 0;
}

/* 4.3 题材手册页 */

.genre-table {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.genre-table h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.compare-table {
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  word-break: break-word;
}

.genre-detail-group {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.genre-detail-group > h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.genre-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.genre-detail h3 {
  grid-column: 1 / -1;
  font-size: 17px;
  margin-bottom: 4px;
}

.detail-text p {
  font-size: 15.5px;
  margin-bottom: 10px;
}

.detail-text p:last-child {
  margin-bottom: 0;
}

.detail-diff {
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}

.detail-diff p {
  font-size: 14.5px;
  color: var(--muted);
}

.detail-link {
  grid-column: 1 / -1;
}

.genre-figure {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.genre-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.genre-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.to-shelf {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.to-shelf h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.to-shelf p {
  font-size: 15px;
  color: var(--muted);
  max-width: 760px;
}

/* 4.4 阅读前准备页 */

.start-point,
.display-setup,
.reading-log,
.exceptions {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.exceptions {
  border-bottom: 0;
}

.start-point-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.start-point-text p {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.start-point-text p:last-child {
  margin-bottom: 0;
}

.start-point-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.start-point-list li {
  font-size: 14.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.start-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.display-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.display-setup h2 {
  grid-column: 1 / -1;
}

.display-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.display-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.display-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.display-text p {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.display-text p:last-child {
  margin-bottom: 0;
}

.exception-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.exception-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.exception-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.exception-item p {
  font-size: 14.5px;
  color: var(--muted);
}

/* 4.5 更新批次页 */

.batch-latest,
.batch-previous,
.status-change,
.how-to-use {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.how-to-use {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.batch-list {
  display: grid;
  gap: 14px;
}

.batch-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.batch-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  justify-self: start;
}

.batch-text {
  font-size: 15px;
}

.batch-link {
  font-size: 14px;
  white-space: nowrap;
}

.batch-latest .batch-text {
  font-size: 15.5px;
}

.batch-previous {
  max-width: 860px;
}

.batch-figure {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.batch-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.batch-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.use-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: use;
}

.use-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.use-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.use-item p {
  font-size: 14.5px;
  color: var(--muted);
}

.section-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14.5px;
}

/* 4.6 常见问题页 */

.faq-anchor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.faq-anchor-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.faq-anchor-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.faq-group {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.faq-group h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.faq-group-desc {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 16px;
}

.faq-figure {
  max-width: 560px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.faq-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.closing-note {
  padding: 32px 0;
  border-bottom: 0;
}

.closing-note h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.closing-note p {
  font-size: 15px;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 12px;
}

.closing-note-link {
  font-size: 15px;
  font-weight: 500;
}

/* 4.7 内容边界页 */

.scope,
.label-rules,
.copyright,
.feedback {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.feedback {
  border-bottom: 0;
}

.scope h2,
.label-rules h2,
.copyright h2,
.feedback h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.scope-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.scope-list-col h3,
.scope-exclude h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.scope-list {
  display: grid;
  gap: 10px;
}

.scope-list li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.scope-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface-soft);
}

.scope-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.scope-figure figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.scope-exclude {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.rule-table {
  max-width: 900px;
}

.copyright-body {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.copyright-body p {
  font-size: 15.5px;
  color: var(--muted);
}

.feedback-list {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.feedback-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: baseline;
}

.feedback-name {
  font-size: 15px;
  font-weight: 500;
}

.feedback-desc {
  font-size: 14.5px;
  color: var(--muted);
}

.feedback-link {
  font-size: 14px;
  white-space: nowrap;
}

.feedback-note {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* 4.8 404 页 */

.error-main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 72px;
}

.error-block {
  padding: 72px 0 40px;
  max-width: 720px;
}

.error-block h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

.error-action-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
}

.error-action-primary:hover {
  background-color: #4A3CAE;
  text-decoration: none;
}

.error-action-link {
  font-size: 15px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. responsive — 1024px / 768px / 390px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --shell-pad: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .updates-ranking {
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 768px) {
  :root {
    --shell-pad: 18px;
    --header-h: 56px;
  }

  body.site-body {
    font-size: 15.5px;
  }

  /* 移动导航：按钮显示，列表默认收起，仅 .nav-list.is-open 展开 */

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--shell-pad);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 16px;
    border-bottom: 0;
  }

  .nav-link.is-current {
    border-bottom: 0;
    color: var(--accent);
  }

  /* 页面标题与容器 */

  .page-title {
    font-size: 24px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .error-block h1 {
    font-size: 24px;
  }

  .section-title,
  .zone-head h2,
  .field-note h2,
  .basis-guide h2,
  .next-step h2,
  .genre-table h2,
  .genre-detail-group > h2,
  .to-shelf h2,
  .faq-group h2,
  .closing-note h2,
  .scope h2,
  .label-rules h2,
  .copyright h2,
  .feedback h2,
  .section-head h2 {
    font-size: 19px;
  }

  /* 首页模块转单列 */

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 0 36px;
  }

  .hero-lead {
    max-width: none;
  }

  .digest,
  .shelf-preview,
  .updates-ranking,
  .genre-entry,
  .setup-steps,
  .faq-teaser,
  .boundaries-note {
    padding: 32px 0;
  }

  .digest-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .shelf-grid,
  .shelf-zone .shelf-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .card-lead {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .card-lead .card-cover img {
    aspect-ratio: 16 / 10;
  }

  .updates-ranking {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .step-list,
  .use-list,
  .exception-list,
  .boundary-list,
  .basis-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 内页模块转单列 */

  .genre-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-detail h3,
  .detail-link {
    grid-column: 1;
  }

  .detail-diff {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 12px;
  }

  .start-point-body,
  .display-setup,
  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .display-setup h2 {
    grid-column: 1;
  }

  .batch-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .batch-link {
    justify-self: start;
    white-space: normal;
  }

  .batch-previous {
    max-width: none;
  }

  .feedback-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .feedback-link {
    justify-self: start;
    white-space: normal;
  }

  /* 表格：横向可滚动，不撑破布局 */

  .field-table,
  .compare-table,
  .rule-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .compare-table,
  .rule-table {
    white-space: normal;
  }

  .compare-table thead,
  .compare-table tbody,
  .rule-table thead,
  .rule-table tbody {
    display: block;
    min-width: 0;
  }

  .compare-table tbody tr,
  .rule-table tbody tr {
    display: block;
    border-bottom: 1px solid var(--line-strong);
    padding: 10px 0;
  }

  .compare-table tbody th,
  .compare-table tbody td,
  .rule-table tbody td {
    display: block;
    border-bottom: 0;
    padding: 4px 0;
    white-space: normal;
  }

  .compare-table tbody th {
    font-weight: 600;
  }

  .compare-table thead,
  .rule-table thead {
    display: none;
  }

  /* 顺序导航 */

  .sequence {
    flex-direction: column;
    gap: 14px;
  }

  .sequence-prev,
  .sequence-next,
  .sequence-link {
    max-width: none;
  }

  .sequence-next,
  a.sequence-next {
    text-align: left;
    margin-left: 0;
  }

  /* 页脚 */

  .footer-inner {
    padding-top: 32px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-links {
    gap: 8px 20px;
  }

  .inner-main > section,
  .shelf-zone,
  .faq-group,
  .scope,
  .label-rules,
  .copyright,
  .feedback,
  .batch-latest,
  .batch-previous,
  .status-change,
  .how-to-use,
  .start-point,
  .display-setup,
  .reading-log,
  .exceptions {
    padding: 26px 0;
  }

  .error-block {
    padding: 48px 0 28px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-col ul {
    gap: 10px;
  }

  .footer-col a {
    display: inline-block;
    padding: 3px 0;
  }

  .genre-tags a,
  .anchor-tag,
  .faq-anchor-link {
    padding: 7px 12px;
  }

  .pick-item {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-cover img,
  .card-regular,
  .shelf-card {
    transition: none;
  }

  .card-regular:hover,
  .shelf-card:hover {
    transform: none;
  }

  .card-regular:hover .card-cover img,
  .shelf-card:hover .card-cover img {
    transform: none;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
