:root {
  --bg-page: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-soft: #EEF1F7;
  --brand: #2F3E6B;
  --brand-dark: #232F52;
  --accent: #E85C7C;
  --accent-soft: #FCE9EE;
  --teal: #2FA98C;
  --teal-soft: #E4F5F0;
  --amber: #D98324;
  --amber-soft: #FBF0E0;
  --text: #1F2430;
  --text-mid: #5C6472;
  --text-soft: #7C8494;
  --line: #E3E7EF;
  --line-strong: #CBD3E0;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 48, 0.05);
  --shadow-md: 0 4px 14px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 10px 26px rgba(31, 36, 48, 0.12);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --header-h: 64px;
  --tabbar-h: 56px;
  --container: 1120px;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
}

.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono,
.cell-mono,
.rank-num,
.rank-thumb-text,
.cat-num,
.legend-code,
.year-number,
.year-chip,
.year-tab,
.update-stamp-text,
.meta-item,
.toc-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--brand);
}

.brand:hover {
  color: var(--brand-dark);
}

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--accent);
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--brand);
  background-color: var(--bg-soft);
}

.nav-link.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand);
  border-radius: 2px;
}

.site-main {
  flex: 1 0 auto;
  padding-bottom: 40px;
}

.inner-main {
  padding-top: 0;
}

/* 内页统一外壳：面包屑 + 页面标题区 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-mid);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-soft);
}

.breadcrumb-inner {
  padding: 16px 0 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item.is-current {
  color: var(--text-soft);
}

.page-header {
  padding: 14px 0 0;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--brand);
}

.page-title-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-summary {
  max-width: 860px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-mid);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.meta-item {
  font-size: 13px;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background-color: var(--brand);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.link-more::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.link-more:hover {
  color: var(--accent);
}

.text-link {
  color: var(--brand);
  font-weight: 600;
}

.text-link:hover {
  color: var(--accent);
}

.section-title {
  font-size: 22px;
  color: var(--brand);
}

.section-lead,
.section-intro,
.section-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.section-more {
  margin-top: 16px;
}

.tag,
.tag-pill,
.tag-name {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background-color: var(--bg-soft);
  color: var(--brand);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mid);
}

.status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-soft);
  box-shadow: 0 0 0 2px rgba(124, 132, 148, 0.18);
}

.status-ongoing::before,
.status-ongoing .status-dot {
  background-color: var(--teal);
}

.status-ongoing {
  color: #1F7A64;
}

.status-completed::before,
.status-finished::before,
.status-done::before {
  background-color: var(--brand);
}

.status-completed,
.status-finished,
.status-done {
  color: var(--brand);
}

.status-paused::before {
  background-color: var(--amber);
}

.status-paused {
  color: #A7621A;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-soft);
}

/* 数据表 */

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table,
.updates-table,
.field-table {
  min-width: 640px;
  font-size: 14px;
}

.data-table th,
.data-table td,
.updates-table th,
.updates-table td,
.field-table th,
.field-table td {
  padding: 0 14px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th,
.updates-table thead th,
.field-table thead th {
  height: 44px;
  background-color: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.data-table tbody tr:last-child td,
.updates-table tbody tr:last-child td,
.field-table tbody tr:last-child td,
.field-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody tr:hover,
.updates-table tbody tr:hover {
  background-color: #FAFBFD;
}

.cell-title {
  font-weight: 600;
  color: var(--brand);
}

.cell-title a {
  color: var(--brand);
}

/* 折叠问答 */

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  list-style: none;
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  margin-left: auto;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-answer {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-mid);
}

/* 相关入口 */

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 32px;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 13.5px;
  color: var(--text-soft);
}

.related-links-item {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}

.related-links-item:hover {
  color: var(--accent);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.hero {
  padding: 40px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: #B93A5B;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15.5px;
  color: var(--text-mid);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.year-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.year-strip-label {
  font-size: 13px;
  color: var(--text-soft);
}

.year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  font-size: 13.5px;
  color: var(--brand);
}

.year-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.year-strip-more {
  font-size: 13.5px;
  color: var(--text-mid);
}

.year-strip-more:hover {
  color: var(--accent);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
}

.section-head {
  margin-bottom: 18px;
}

/* 题材分类速览 */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.genre-chip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.genre-chip a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.genre-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.genre-count {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* 追更榜单（首页） */

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rank-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.rank-badge.rank-1 {
  background-color: var(--accent);
  color: #FFFFFF;
}

.rank-badge.rank-2 {
  background-color: #F3B7C5;
  color: #8C2A45;
}

.rank-badge.rank-3 {
  background-color: var(--teal-soft);
  color: #1F7A64;
}

.rank-cover {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
}

.rank-tags {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.rank-reason {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-mid);
}

/* 精选作品档案卡 */

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  min-width: 0;
}

.cover-link {
  display: block;
  height: 100%;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cover-link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cover-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-name {
  margin-top: 10px;
  font-size: 15px;
  color: var(--brand);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
}

/* 阅读指南入口 */

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-step {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
}

.step-title {
  margin-top: 12px;
  font-size: 17px;
}

.step-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.guide-step .link-more {
  margin-top: 12px;
}

/* 阅读须知与反馈通道 */

.notice-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.notice-copy {
  min-width: 0;
}

.notice-copy p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.anchor-list {
  display: grid;
  gap: 10px;
}

.anchor-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.anchor-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.anchor-link {
  font-size: 15px;
  font-weight: 600;
}

.anchor-desc {
  font-size: 13.5px;
  color: var(--text-mid);
}

/* ==========================================================================
   pages — 作品档案
   ========================================================================== */

.archive-filter {
  padding: 26px 0 0;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.year-tab {
  min-width: 72px;
  height: 36px;
  padding: 0 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--brand);
}

.year-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.year-tab.is-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.year-group {
  padding: 34px 0 0;
}

.year-group-inner {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.year-group-head {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.year-number {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.year-group-title {
  margin-top: 6px;
  font-size: 18px;
}

.year-group-note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.year-anchor {
  margin-top: 14px;
}

.year-anchor img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.year-anchor figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.archive-list {
  display: grid;
  gap: 12px;
}

.archive-item {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-name {
  font-size: 17px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.archive-item .status {
  margin-top: 10px;
}

.chapter-range {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
}

.archive-brief {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.field-guide {
  padding: 40px 0 0;
}

.field-table {
  margin-top: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table tbody th {
  width: 180px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-mid);
}

.related-entry {
  padding: 40px 0 0;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.entry-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.entry-card-title {
  font-size: 16px;
}

.entry-card-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ==========================================================================
   pages — 题材分类
   ========================================================================== */

.page-layout {
  padding-top: 24px;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.genre-overview {
  padding-bottom: 8px;
}

.genre-tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.genre-tag {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--brand);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.genre-tag:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.genre-tag .tag-name {
  background-color: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.genre-tag .tag-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-mid);
}

.genre-block {
  padding: 28px 0 0;
}

.genre-block-head {
  margin-bottom: 14px;
}

.genre-block-desc {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.genre-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-width: 0;
}

.work-card-link {
  display: block;
  height: 100%;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.work-card-link:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.work-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-name {
  margin-top: 10px;
  font-size: 15px;
  color: var(--brand);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-tags {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.work-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-mid);
}

.genre-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.genre-more:hover {
  color: var(--accent);
}

.side-block {
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-title {
  font-size: 17px;
}

.pairing-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.pairing-item {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
}

.pairing-name {
  font-size: 14.5px;
}

.pairing-desc {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.side-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.side-links a {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--brand);
}

.side-links a:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   pages — 更新记录
   ========================================================================== */

.main-inner {
  padding-top: 24px;
}

.module {
  padding: 26px 0 0;
}

.module:first-child {
  padding-top: 0;
}

.module-title {
  font-size: 22px;
}

.module-lead {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--brand);
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tag.is-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-soft);
}

.filter-tag.is-active .filter-count {
  color: rgba(255, 255, 255, 0.78);
}

.updates-table .col-thumb {
  width: 52px;
}

.updates-table .col-thumb img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--bg-soft);
}

.updates-table .col-name {
  font-weight: 600;
  color: var(--brand);
}

.updates-table .col-pos {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mid);
}

.updates-table .col-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

.table-foot {
  margin-top: 14px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.legend-col {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legend-subtitle {
  font-size: 16px;
}

.legend-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-mid);
}

.legend-code {
  font-size: 13px;
  color: var(--brand);
}

.legend-desc {
  font-size: 13.5px;
}

.feedback-link {
  margin-top: 14px;
}

/* ==========================================================================
   pages — 追更榜单
   ========================================================================== */

.ranking-top {
  padding: 30px 0 0;
}

.top-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.top-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.top-item .rank-badge {
  grid-row: span 2;
}

.top-cover {
  grid-column: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-body {
  grid-column: 2;
  min-width: 0;
}

.top-name {
  font-size: 17px;
}

.top-tags {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.top-reason {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.ranking-list {
  padding: 34px 0 0;
}

.rank-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px 60px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rank-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.rank-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
}

.rank-thumb {
  width: 60px;
  height: 75px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  color: var(--brand);
}

.rank-info {
  min-width: 0;
}

.rank-info .rank-name {
  font-size: 15.5px;
}

.rank-info .rank-tags {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.ranking-cats {
  padding: 34px 0 0;
}

.cat-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.cat-col {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cat-col-title {
  font-size: 16px;
}

.cat-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cat-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-mid);
}

.cat-num {
  font-size: 13px;
  color: var(--accent);
}

.cat-more {
  margin-top: 12px;
}

.ranking-notes {
  padding: 34px 0 0;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.note-item {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-title {
  font-size: 16px;
}

.note-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ==========================================================================
   pages — 阅读指南
   ========================================================================== */

.sidebar-left .layout-shell,
.sidebar-left .layout-inner {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.layout-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.sidebar {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.toc-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.toc-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.toc-list a {
  font-size: 14px;
  color: var(--brand);
}

.toc-list a:hover {
  color: var(--accent);
}

.toc-time {
  font-size: 12px;
  color: var(--text-soft);
}

.guide-article {
  min-width: 0;
}

.content-block {
  padding: 26px 0 0;
}

.content-block:first-child {
  padding-top: 0;
}

.block-title {
  font-size: 22px;
}

.block-lead {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.step-card {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card .step-title {
  margin-top: 0;
  font-size: 16px;
}

.step-card p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.step-card .text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}

.method-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.method-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-title {
  font-size: 16px;
}

.method-col p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.method-points {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.method-points li {
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  color: var(--text-mid);
}

.method-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.misuse-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.misuse-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misuse-wrong,
.misuse-right {
  min-width: 0;
  padding-left: 12px;
  font-size: 14px;
  color: var(--text-mid);
}

.misuse-wrong {
  border-left: 3px solid var(--amber);
}

.misuse-right {
  border-left: 3px solid var(--teal);
}

.guide-figure {
  margin-top: 16px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.content-block > p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-mid);
}

/* ==========================================================================
   pages — 常见问题
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 24px;
}

.faq-group-nav {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-group-list {
  display: grid;
  gap: 8px;
}

.faq-group-link {
  display: block;
  min-height: 40px;
  padding: 8px 10px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--brand);
}

.faq-group-link:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
}

.faq-section {
  padding-top: 26px;
}

.faq-section:first-of-type {
  padding-top: 0;
}

.faq-related {
  padding-top: 26px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.related-list li a {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--brand);
}

.related-list li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.faq-figure {
  margin-top: 26px;
}

.faq-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
}

.faq-figure figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ==========================================================================
   pages — 阅读须知
   ========================================================================== */

.anchor-nav {
  margin-top: 22px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.anchor-nav-title {
  font-size: 18px;
}

.page-figure {
  margin-top: 22px;
}

.page-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-soft);
}

.page-figure figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.chapter {
  padding-top: 34px;
}

.chapter-title {
  font-size: 22px;
}

.chapter-summary {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-mid);
}

.chapter-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.sub-section {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sub-title {
  font-size: 16px;
}

.sub-section p,
.column-block p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.chapter-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.column-block {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chapter-body > p {
  font-size: 14.5px;
  color: var(--text-mid);
}

.feedback-list {
  display: grid;
  gap: 10px;
}

.feedback-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-mid);
}

.feedback-label {
  font-weight: 600;
  color: var(--brand);
}

.update-stamp {
  margin-top: 34px;
  padding: 16px;
  background-color: var(--bg-soft);
  border-radius: var(--radius);
}

.update-stamp-title {
  font-size: 16px;
}

.update-stamp-text {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.related-entry .related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-link {
  font-size: 15px;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-mid);
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: 60px 0;
}

.error-inner {
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.error-title {
  margin-top: 16px;
  font-size: 26px;
}

.error-text {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 15px;
  color: var(--text-mid);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
}

.error-links a {
  font-size: 14px;
  color: var(--brand);
}

.error-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  flex-shrink: 0;
  margin-top: 40px;
  padding-top: 40px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  color: var(--brand);
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-mid);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.footer-desc,
.footer-scope {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.footer-notes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-notes li {
  font-size: 13.5px;
  color: var(--text-mid);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-mid);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   mobile nav — 底部快捷导航
   ========================================================================== */

.bottom-nav,
.mobile-tabbar,
.mobile-quick-nav {
  display: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1079px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .cover-grid,
  .guide-steps,
  .entry-cards,
  .genre-works,
  .top-list,
  .cat-columns,
  .note-list,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-group-inner {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 20px;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    gap: 24px;
  }

  .sidebar-left .layout-shell,
  .sidebar-left .layout-inner {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 24px;
  }

  .rank-row {
    grid-template-columns: 36px 56px minmax(0, 1fr);
  }

  .rank-row .rank-reason {
    grid-column: 3;
    margin-top: 4px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 14.5px;
    padding-bottom: calc(var(--tabbar-h) + 16px);
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }

  .page-title {
    font-size: 24px;
  }

  .section-title,
  .module-title,
  .block-title,
  .chapter-title {
    font-size: 19px;
  }

  .hero {
    padding: 26px 0 0;
  }

  .hero h1 {
    font-size: 23px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .section {
    padding: 32px 0;
  }

  .genre-grid,
  .genre-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid,
  .guide-steps,
  .entry-cards,
  .genre-works,
  .top-list,
  .cat-columns,
  .note-list,
  .step-grid,
  .method-columns,
  .legend-grid,
  .chapter-columns,
  .misuse-item,
  .related-list,
  .related-entry .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 36px 60px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-cover {
    width: 60px;
    height: 75px;
  }

  .year-group-inner,
  .layout-shell,
  .sidebar-left .layout-shell,
  .sidebar-left .layout-inner,
  .faq-layout,
  .notice-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .sidebar-left .layout-inner {
    padding: 20px 16px 0;
  }

  .sidebar {
    order: 2;
  }

  .sidebar-left .site-main {
    order: 1;
  }

  .rank-row {
    grid-template-columns: 32px 52px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .rank-row .rank-reason {
    grid-column: 3;
  }

  .rank-thumb {
    width: 52px;
    height: 65px;
  }

  .legend-item,
  .feedback-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-nav,
  .mobile-tabbar,
  .mobile-quick-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: block;
    background-color: var(--bg-card);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-list,
  .tabbar-list,
  .quick-nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
  }

  .bottom-nav-link,
  .tabbar-link,
  .quick-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: var(--tabbar-h);
    padding: 6px 4px;
    font-size: 12px;
    color: var(--text-mid);
  }

  .bottom-nav-link.is-active,
  .tabbar-link.is-active,
  .quick-nav-link.is-active {
    color: var(--accent);
    font-weight: 600;
  }

  .tabbar-icon,
  .tabbar-label,
  .tabbar-text {
    font-size: 12px;
    line-height: 1.2;
  }

  .error-code {
    font-size: 42px;
  }

  .error-title {
    font-size: 21px;
  }
}

@media (max-width: 390px) {
  .genre-grid,
  .genre-tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .cover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
