/* ==========================================================================
   奇漫屋免费阅读 — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #16181d;
  --ink-soft: #3a3d44;
  --paper: #f7f6f3;
  --paper-white: #ffffff;
  --line: #d8d5cd;
  --line-soft: #e7e4dd;
  --accent: #b23a2b;
  --accent-soft: #f1e3de;
  --muted: #6b6f76;
  --state-serial: #2f6b53;
  --state-done: #8a6a1f;
  --state-prep: #6b6f76;

  --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --w-page: 1080px;
  --w-wide: 1200px;
  --pad-x: 24px;
  --radius: 6px;
  --gap: 28px;
  --section-gap: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #8d2b1f;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

time,
.cell-date,
.entry-date,
.work-date,
.col-date,
.author-date,
.topic-date,
.note-date,
.page-date,
.page-date-note,
.rank-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.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: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper-white);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  min-height: 66px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list-left {
  justify-content: flex-start;
  flex: 1 1 0;
}

.nav-list-right {
  justify-content: flex-end;
  flex: 1 1 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible,
.brand.is-current {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  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);
}

.nav-mobile {
  display: none;
  background: var(--paper-white);
  border-top: 1px solid var(--line);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-list {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 8px var(--pad-x) 16px;
}

.nav-mobile-list li {
  border-bottom: 1px solid var(--line-soft);
}

.nav-mobile-list li:last-child {
  border-bottom: 0;
}

.nav-mobile-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-mobile-list a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x) 72px;
}

.inner-main {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--pad-x) 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 30px;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
}

.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-date,
.page-date-note {
  display: block;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.page-date time,
.page-date-note time {
  color: var(--ink-soft);
}

.section-title {
  font-size: 20px;
  margin: 0;
}

.section-intro,
.section-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 20px;
}

.section-lead {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1 1 320px;
  min-width: 0;
}

.note-line {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.table-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer {
  background: var(--paper-white);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 44px var(--pad-x) 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 16px var(--pad-x) 26px;
  border-top: 1px solid var(--line-soft);
}

.footer-note,
.footer-copy {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-copy {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   3. components
   -------------------------------------------------------------------------- */

/* 入口文字链接 */
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.entry-link::after {
  content: "→";
  font-family: var(--font-sans);
  transition: transform 0.18s ease;
}

.entry-link:hover::after,
.entry-link:focus-visible::after {
  transform: translateX(3px);
}

/* 题材快捷标签 */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-white);
  color: var(--ink-soft);
  font-size: 13px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.genre-chips a:hover,
.genre-chips a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* 状态胶囊 */
.status,
.work-status,
.state {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--line-soft);
  color: var(--ink-soft);
}

.status-serial,
.work-status.is-serial,
.state-serial {
  background: rgba(47, 107, 83, 0.12);
  color: var(--state-serial);
}

.status-done,
.work-status.is-done,
.state-done {
  background: rgba(138, 106, 31, 0.14);
  color: var(--state-done);
}

.status-prep,
.work-status.is-prep,
.state-prep {
  background: rgba(107, 111, 118, 0.12);
  color: var(--state-prep);
}

/* 表格通用 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.registry-table,
.data-table,
.reg-table,
.spec-table,
.author-table {
  background: var(--paper-white);
  font-size: 13px;
  line-height: 1.6;
}

.registry-table th,
.data-table th,
.reg-table th,
.spec-table th,
.author-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}

.registry-table td,
.data-table td,
.reg-table td,
.spec-table td,
.author-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  vertical-align: top;
}

.registry-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even),
.reg-table tbody tr:nth-child(even),
.author-table tbody tr:nth-child(even) {
  background: #fbfaf7;
}

.registry-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.reg-table tbody tr:last-child td,
.author-table tbody tr:last-child td {
  border-bottom: 0;
}

.registry-table tbody tr,
.data-table tbody tr,
.reg-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.registry-table tbody tr:hover,
.data-table tbody tr:hover,
.reg-table tbody tr:hover {
  background: #f4f1ea;
  box-shadow: inset 3px 0 0 var(--accent);
}

.registry-table td a,
.data-table td a,
.reg-table td a,
.author-table td a {
  color: var(--ink);
  font-weight: 600;
}

.registry-table td a:hover,
.data-table td a:hover,
.reg-table td a:hover,
.author-table td a:hover {
  color: var(--accent);
}

.cell-date,
.col-date {
  color: var(--muted);
  white-space: nowrap;
}

.cell-num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-work,
.col-name {
  color: var(--ink);
  font-weight: 600;
}

/* 图片通用约束 */
.hero-figure,
.notes-figure,
.fig-media,
.example-figure,
.figure-block,
.genre-figure,
.figure-wide {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img,
.notes-figure img,
.fig-media img,
.example-figure img,
.figure-block img,
.genre-figure img,
.figure-wide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

figcaption,
.figure-caption {
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* 入口卡片组（多页共用） */
.links-grid,
.links-cols,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--accent);
  background: #fdfbf8;
}

.link-card-title,
.link-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.link-card-desc,
.link-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.link-card-arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
}

.link-card-arrow::after {
  content: " →";
}

.link-card h3 {
  font-size: 16px;
}

.link-card h3 a {
  color: var(--ink);
}

.link-card h3 a:hover,
.link-card h3 a:focus-visible {
  color: var(--accent);
}

.link-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 相关入口（内页底部，卡片式） */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.related-card {
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.related-card h3 a {
  color: var(--ink);
}

.related-card h3 a:hover,
.related-card h3 a:focus-visible {
  color: var(--accent);
}

.related-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 内页相关链接条（创作手记底部） */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 12.5px;
  color: var(--muted);
}

.related-links-item {
  font-size: 13.5px;
  color: var(--accent);
}

.related-links-item::after {
  content: " →";
}

/* 折叠说明 */
details.flow-item,
details.faq-item {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

details.flow-item[open],
details.faq-item[open] {
  border-color: var(--accent);
}

details.flow-item summary,
details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

details.flow-item summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.flow-item summary::after,
details.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

details.flow-item[open] summary::after,
details.faq-item[open] summary::after {
  content: "−";
}

details.flow-item p,
details.faq-item p {
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. pages
   -------------------------------------------------------------------------- */

/* ---------------------------- 首页 ---------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 56px;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 20px;
}

.hero-text .genre-chips {
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.picks {
  padding-bottom: var(--section-gap);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
}

.cover-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.cover-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.cover-card h3 a {
  color: var(--ink);
}

.cover-card h3 a:hover,
.cover-card h3 a:focus-visible {
  color: var(--accent);
}

.cover-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.cover-reason {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genres {
  padding-bottom: var(--section-gap);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 36px;
}

.genres-grid .genre-block {
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.genres-grid .genre-block h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.genres-grid .genre-block p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.genre-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.genre-links a {
  font-size: 13px;
  color: var(--accent);
}

.genre-links a::after {
  content: " ›";
  color: var(--muted);
}

.updates {
  padding-bottom: var(--section-gap);
}

.registry-table {
  min-width: 720px;
}

.rank {
  padding-bottom: var(--section-gap);
}

.rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rank-list-wrap {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rank-list li:first-child {
  border-top: 1px solid var(--line-soft);
}

.rank-no {
  grid-row: span 2;
  font-size: 18px;
  color: var(--accent);
  line-height: 1.4;
}

.rank-name {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.rank-why {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.rank-note-wrap {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-note-wrap h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.rank-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-notes li {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.makers {
  padding-bottom: var(--section-gap);
}

.makers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.makers-notes,
.makers-authors {
  min-width: 0;
}

.makers-notes h3,
.makers-authors h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-list li {
  min-width: 0;
}

.note-date {
  display: inline-block;
  margin-right: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.note-step {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.note-list p {
  margin: 6px 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.note-list a {
  font-size: 13px;
  color: var(--accent);
}

.note-list a::after {
  content: " →";
}

.author-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.author-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.author-role {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.author-work {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.author-date {
  font-size: 12.5px;
  color: var(--muted);
}

.topics {
  padding-bottom: var(--section-gap);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.topics-grid .topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.topics-grid .topic-card h3 {
  font-size: 16px;
}

.topics-grid .topic-card h3 a {
  color: var(--ink);
}

.topics-grid .topic-card h3 a:hover,
.topics-grid .topic-card h3 a:focus-visible {
  color: var(--accent);
}

.topic-scope {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.topic-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic-links a {
  font-size: 13px;
  color: var(--accent);
}

.topic-date {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.notice {
  padding-bottom: 24px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
}

.notice-block {
  min-width: 0;
  padding: 20px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice-block h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.notice-block p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.notice-block p + p {
  margin-top: 8px;
}

/* ---------------------------- 精选书架 ---------------------------- */

.page-jingxuan .page-title {
  margin-bottom: 0;
}

.page-jingxuan .page-title {
  padding-bottom: 0;
}

.page-jingxuan .page-title-text {
  min-width: 0;
}

.page-jingxuan section.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-jingxuan section.page-title .page-title-text {
  flex: 1 1 420px;
}

.criteria {
  margin-bottom: var(--section-gap);
}

.criteria h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.criteria-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.criteria-col h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.criteria-col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.criteria-col p + p {
  margin-top: 6px;
}

.picks-list {
  margin-bottom: var(--section-gap);
}

.picks-list h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.picks-list .section-intro {
  margin-bottom: 18px;
}

.picks-table {
  min-width: 720px;
}

.notes {
  margin-bottom: var(--section-gap);
}

.notes h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.notes-figure {
  min-width: 0;
}

.notes-body {
  min-width: 0;
}

.notes-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: note;
}

.notes-list li {
  position: relative;
  padding-left: 30px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: note;
}

.notes-list li::before {
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.notes-list strong {
  color: var(--ink);
  font-weight: 600;
}

.links {
  margin-bottom: 8px;
}

.links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.links-extra {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.links-extra a {
  margin-right: 16px;
  color: var(--accent);
}

/* ---------------------------- 题材分类 ---------------------------- */

.page-ticai .page-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-ticai .page-title-text {
  min-width: 0;
  flex: 1 1 420px;
}

.page-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: var(--section-gap);
}

.page-layout.sidebar-left {
  grid-template-columns: 216px minmax(0, 1fr);
}

.genre-index {
  position: sticky;
  top: 16px;
  padding: 16px 14px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-index-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.genre-index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.genre-index-list a:hover,
.genre-index-list a:focus-visible {
  border-left-color: var(--accent);
  color: var(--accent);
  background: #fbf8f4;
}

.genre-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.genre-body {
  min-width: 0;
}

.genre-body .genre-block {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.genre-body .genre-block:last-child {
  margin-bottom: 0;
}

.genre-name {
  font-size: 20px;
  margin-bottom: 8px;
}

.genre-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.genre-works {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.genre-works li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.genre-works li:last-child {
  border-bottom: 0;
}

.genre-works a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.genre-works a:hover,
.genre-works a:focus-visible {
  color: var(--accent);
}

.work-date {
  font-size: 12px;
  color: var(--muted);
}

.genre-latest {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.genre-diff {
  margin-bottom: var(--section-gap);
}

.genre-diff h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.genre-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.genre-diff-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-diff-col h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.genre-diff-col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-figure {
  margin-bottom: var(--section-gap);
}

.genre-figure img {
  aspect-ratio: 16 / 9;
}

.related-links {
  margin-bottom: 8px;
}

.page-ticai .related-links {
  display: block;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.page-ticai .related-links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---------------------------- 更新目录 ---------------------------- */

.page-gengxin section.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-gengxin .page-title-main {
  min-width: 0;
  flex: 1 1 420px;
}

.rule {
  margin-bottom: var(--section-gap);
}

.rule h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.rule-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rule-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rule-col h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
}

.rule-col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.week,
.earlier {
  margin-bottom: var(--section-gap);
}

.week h2,
.earlier h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.reg-table {
  min-width: 640px;
}

.fig {
  margin-bottom: var(--section-gap);
}

.fig h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.fig-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.fig-media {
  min-width: 0;
}

.fig-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.fig-note {
  padding: 14px 16px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.fig-note h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.fig-note p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-gengxin .links {
  margin-bottom: 8px;
}

.page-gengxin .links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---------------------------- 创作手记 ---------------------------- */

.page-chuangzuo section.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-chuangzuo .page-head-main {
  min-width: 0;
  flex: 1 1 420px;
}

.steps {
  margin-bottom: var(--section-gap);
}

.steps h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item h3 {
  font-size: 15.5px;
}

.step-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.step-item a {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
}

.step-item a::after {
  content: " →";
}

.entries {
  margin-bottom: var(--section-gap);
}

.entries h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.entries .section-intro {
  margin-bottom: 18px;
}

.entry-list {
  display: flex;
  flex-direction: column;
}

.entry-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry-item:first-child {
  border-top: 1px solid var(--line-soft);
}

.entry-date {
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 2px;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 15.5px;
  margin-bottom: 6px;
}

.entry-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
}

.entry-body p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.example {
  margin-bottom: var(--section-gap);
}

.example h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.example-figure {
  min-width: 0;
}

.example-notes {
  min-width: 0;
}

.example-notes h3 {
  font-size: 15.5px;
  margin-bottom: 10px;
}

.example-notes ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.example-notes li {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-chuangzuo .links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---------------------------- 作者索引 ---------------------------- */

.page-zuozhe section.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-zuozhe .page-head-text {
  min-width: 0;
  flex: 1 1 420px;
}

.author-group {
  margin-bottom: var(--section-gap);
}

.author-group h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.author-group .section-note {
  margin-bottom: 16px;
}

.author-table {
  min-width: 560px;
}

.author-how {
  margin-bottom: var(--section-gap);
}

.author-how h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.author-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.figure-block {
  min-width: 0;
}

.author-how-notes {
  min-width: 0;
}

.author-how-notes h3 {
  font-size: 15.5px;
  margin-bottom: 10px;
}

.page-zuozhe .note-list {
  counter-reset: how;
}

.page-zuozhe .note-list li {
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: how;
}

.page-zuozhe .note-list li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.page-zuozhe .related-links {
  display: block;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.page-zuozhe .related-links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---------------------------- 专题合辑 ---------------------------- */

.page-zhuanti section.page-title {
  display: block;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-zhuanti .page-title-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}

.page-zhuanti .page-title-text {
  min-width: 0;
  flex: 1 1 420px;
}

.topic-cover {
  margin-bottom: var(--section-gap);
}

.topic-cover .section-title {
  margin-bottom: 16px;
}

.figure-wide {
  margin-bottom: 12px;
}

.figure-wide img {
  aspect-ratio: 21 / 9;
}

.topic-list {
  margin-bottom: var(--section-gap);
}

.topic-list .section-title {
  margin-bottom: 8px;
}

.topic-list .section-intro {
  margin-bottom: 20px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.page-zhuanti .topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-name {
  font-size: 17px;
}

.topic-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.topic-tags {
  font-size: 12.5px;
  color: var(--muted);
}

.topic-works {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px dashed var(--line-soft);
  border-bottom: 1px dashed var(--line-soft);
}

.topic-works a {
  font-size: 13.5px;
  color: var(--accent);
}

.topic-works a::after {
  content: " →";
}

.page-zhuanti .topic-date {
  font-size: 12.5px;
  color: var(--muted);
}

.topic-diff {
  margin-bottom: var(--section-gap);
}

.topic-diff .section-title {
  margin-bottom: 8px;
}

.topic-diff .section-intro {
  margin-bottom: 16px;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diff-item {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.diff-item strong {
  color: var(--ink);
  font-weight: 600;
}

.page-zhuanti .related-links {
  display: block;
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.page-zhuanti .related-links .section-title {
  margin-bottom: 18px;
}

/* ---------------------------- 投稿说明 ---------------------------- */

.page-tougao section.page-head {
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-tougao .page-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}

.page-tougao .page-head-text {
  min-width: 0;
  flex: 1 1 420px;
}

.scope {
  margin-bottom: var(--section-gap);
}

.scope h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.scope-col {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-col p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.scope-reject .scope-list li::before {
  background: var(--muted);
}

.spec {
  margin-bottom: var(--section-gap);
}

.spec h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.spec-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

.spec-table {
  min-width: 520px;
}

.spec-table th[scope="row"] {
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.flow {
  margin-bottom: var(--section-gap);
}

.flow h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.flow-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq {
  margin-bottom: var(--section-gap);
}

.faq h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fix {
  margin-bottom: var(--section-gap);
}

.fix h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.fix-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fix-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.fix-item h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.fix-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-tougao .example h2 {
  margin-bottom: 16px;
}

.page-tougao .links h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ---------------------------- 404 ---------------------------- */

.site-error .site-main,
.error-main {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 64px var(--pad-x) 96px;
}

.error-block {
  max-width: 560px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.error-main h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.error-hint {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.error-links a {
  font-size: 14px;
  color: var(--accent);
}

.error-actions {
  margin: 0;
}

.error-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.error-home:hover,
.error-home:focus-visible {
  background: #8d2b1f;
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-nav {
    min-height: 60px;
  }

  .nav-list {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
  }

  .nav-mobile-list {
    padding-top: 4px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 0 44px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-figure {
    order: 2;
  }

  .picks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-grid,
  .makers-grid,
  .notice-grid,
  .notes-layout,
  .fig-cols,
  .example-grid,
  .author-how-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .topics-grid,
  .links-grid,
  .links-cols,
  .link-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .criteria-grid,
  .rule-cols,
  .steps-grid,
  .genre-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genre-index {
    position: static;
  }

  .genre-index-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .genre-index-list li {
    flex: 0 0 auto;
  }

  .genre-index-list a {
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-white);
  }

  .genre-index-list a:hover,
  .genre-index-list a:focus-visible {
    border-color: var(--accent);
    border-left-color: var(--accent);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --pad-x: 18px;
    --section-gap: 44px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 25px;
  }

  .picks-grid,
  .topics-grid,
  .links-grid,
  .links-cols,
  .link-grid,
  .related-grid,
  .criteria-grid,
  .rule-cols,
  .steps-grid,
  .genre-diff-grid,
  .genre-diff-grid,
  .scope-grid,
  .fix-list,
  .topic-grid,
  .genres-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .entry-date {
    padding-top: 0;
  }

  .entry-body h3 {
    margin-top: 0;
  }

  .rank-list li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .rank-no {
    font-size: 16px;
  }

  .section-head {
    gap: 4px 12px;
  }

  .section-lead {
    flex-basis: 100%;
  }

  /* 表格在窄屏改为两行式条目 */
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .registry-table,
  .data-table,
  .reg-table,
  .author-table,
  .spec-table {
    min-width: 0;
    display: block;
    background: transparent;
  }

  .registry-table thead,
  .data-table thead,
  .reg-table thead,
  .author-table thead,
  .spec-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .registry-table tbody,
  .data-table tbody,
  .reg-table tbody,
  .author-table tbody,
  .spec-table tbody {
    display: block;
  }

  .registry-table tbody tr,
  .data-table tbody tr,
  .reg-table tbody tr,
  .author-table tbody tr,
  .spec-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--paper-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .registry-table tbody tr:nth-child(even),
  .data-table tbody tr:nth-child(even),
  .reg-table tbody tr:nth-child(even),
  .author-table tbody tr:nth-child(even) {
    background: var(--paper-white);
  }

  .registry-table tbody tr:hover,
  .data-table tbody tr:hover,
  .reg-table tbody tr:hover {
    box-shadow: none;
    background: #fbfaf7;
  }

  .registry-table td,
  .data-table td,
  .reg-table td,
  .author-table td,
  .spec-table td,
  .spec-table th {
    display: block;
    padding: 0;
    border-bottom: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .registry-table td::before,
  .data-table td::before,
  .reg-table td::before,
  .author-table td::before,
  .spec-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    color: var(--muted);
  }

  .spec-table th[scope="row"] {
    grid-column: 1 / -1;
    padding: 0 0 2px;
    font-size: 13.5px;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 4px;
  }

  .cell-date,
  .cell-work,
  .cell-num {
    grid-column: auto;
  }

  .page-jingxuan section.page-title,
  .page-gengxin section.page-title,
  .page-chuangzuo section.page-head,
  .page-zuozhe section.page-head,
  .page-ticai .page-title-block,
  .page-tougao .page-head-inner,
  .page-zhuanti .page-title-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .error-main {
    padding: 44px var(--pad-x) 72px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 14.5px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    min-height: 56px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-text h1 {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .genre-chips a {
    min-height: 34px;
    padding: 4px 10px;
    font-size: 12.5px;
  }

  .cover-card h3 {
    font-size: 16px;
  }

  .registry-table tbody tr,
  .data-table tbody tr,
  .reg-table tbody tr,
  .author-table tbody tr,
  .spec-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .error-code {
    font-size: 36px;
  }

  .error-main h1 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
