:root {
  --page-bg: #f7f9fb;
  --ink: #16283d;
  --ink-soft: #4a5b70;
  --ink-muted: #7b8a9c;
  --accent: #0f9c8a;
  --accent-dark: #0b7d6f;
  --accent-soft: #e6f4f1;
  --warm: #f2b705;
  --warm-soft: #fdf3d4;
  --line: #d8dee6;
  --line-soft: #e8edf2;
  --card-bg: #ffffff;
  --radius-card: 8px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 40, 61, 0.06);
  --shadow-md: 0 4px 14px rgba(22, 40, 61, 0.08);
  --shadow-lg: 0 10px 26px rgba(22, 40, 61, 0.12);
  --header-h: 64px;
  --container: 1180px;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

/* ============================================================
   base · 全站基础
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   layout · 页头 / 导航骨架
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(8px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  color: var(--ink-soft);
  font-size: 15px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-list a.is-current {
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
}

.nav-list a.is-current:hover {
  color: #ffffff;
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* ============================================================
   layout · 主内容容器
   ============================================================ */

.site-main {
  display: block;
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px 64px;
}

.section {
  margin-top: 56px;
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 24px;
  color: var(--ink);
}

.section-desc {
  margin-top: 8px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
}

.sub-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.column-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
   layout · 面包屑 / 内页页头
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 6px 0 2px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
}

.page-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
   layout · 通用双栏
   ============================================================ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside,
.side-column,
.rank-aside,
.update-aside {
  min-width: 0;
}

/* ============================================================
   components · 按钮 / 标签
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-secondary {
  background: var(--warm);
  color: #3a2c00;
  border-color: var(--warm);
}

.btn-secondary:hover {
  background: #dfa800;
  border-color: #dfa800;
  color: #3a2c00;
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-genre {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-status {
  background: var(--warm-soft);
  color: #7a5a00;
}

/* ============================================================
   pages · 首页 hero
   ============================================================ */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: start;
  padding: 24px 0 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-fact {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  margin-top: 16px;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
}

.hero-lead {
  margin-top: 14px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-entry {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-sm);
}

.quick-entry-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.quick-entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-entry-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.quick-entry-list a::after {
  content: "→";
  color: var(--accent-dark);
  font-weight: 700;
}

.quick-entry-list a:hover {
  background: #d5ece7;
  color: var(--accent-dark);
}

.hero-figure {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--accent-soft);
}

.hero-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
}

/* ============================================================
   pages · 首页 题材方向总览
   ============================================================ */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.genre-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.genre-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.genre-name a {
  color: var(--ink);
}

.genre-name a:hover {
  color: var(--accent-dark);
}

.genre-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.genre-count {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.genre-count a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.genre-count a:hover {
  background: #d5ece7;
}

/* ============================================================
   pages · 首页 封面网格与更新切片
   ============================================================ */

.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

.cover-column,
.update-column {
  min-width: 0;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cover-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cover-figure {
  background: var(--accent-soft);
}

.cover-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-name {
  padding: 10px 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.cover-meta {
  padding: 4px 12px 0;
  font-size: 12px;
  color: var(--accent-dark);
}

.cover-date {
  padding: 2px 12px 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.update-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 88px 72px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background: var(--accent-soft);
}

.update-date {
  color: var(--ink-muted);
  font-size: 13px;
  white-space: nowrap;
}

.update-name {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-name a {
  color: var(--ink);
}

.update-name a:hover {
  color: var(--accent-dark);
}

.update-genre {
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}

.update-status {
  justify-self: start;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--warm-soft);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.update-status.is-ongoing {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.update-status.is-completed {
  background: #eef1f5;
  color: var(--ink-soft);
}

/* ============================================================
   pages · 首页 人气位次与专题
   ============================================================ */

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

.rank-column {
  min-width: 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: var(--accent-soft);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
}

.rank-row:nth-child(-n + 3) .rank-no {
  background: var(--warm);
  color: #3a2c00;
}

.rank-name {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.rank-genre {
  justify-self: start;
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.rank-summary {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.rank-aside {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topic-item {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}

.topic-name {
  font-size: 15px;
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   pages · 首页 阅读方式与纠错反馈
   ============================================================ */

.guide-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.guide-column {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.guide-item:last-child {
  border-bottom: 0;
}

.guide-key {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

.guide-value {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: var(--accent-soft);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.step-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================================
   pages · 首页 站内栏目索引
   ============================================================ */

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.index-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.index-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.index-desc {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
   pages · 题材分类页
   ============================================================ */

.genre-groups {
  display: block;
}

.genre-groups > h2 {
  font-size: 24px;
}

.section-lead {
  margin: 8px 0 24px;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 15px;
}

.genre-block {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.genre-block:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.genre-block-head {
  margin-bottom: 14px;
}

.genre-block-head .genre-name {
  font-size: 20px;
  margin-bottom: 6px;
}

.genre-block-head .genre-scope {
  margin: 0;
  max-width: 760px;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-cover {
  max-width: 560px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.genre-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--accent-soft);
}

.genre-cover figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
}

.genre-entry-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}

.genre-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 108px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.genre-entry:last-child {
  border-bottom: 0;
}

.genre-entry:hover {
  background: var(--accent-soft);
}

.entry-name {
  color: var(--ink);
  font-weight: 600;
}

.entry-status {
  justify-self: start;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.entry-date {
  justify-self: end;
  color: var(--ink-muted);
  font-size: 13px;
  white-space: nowrap;
}

.genre-jump {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.genre-jump-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 14px;
}

.genre-jump-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.genre-jump-back {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.genre-jump-back a {
  color: var(--accent-dark);
}

/* ============================================================
   pages · 最近更新页
   ============================================================ */

.update-rule {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.update-rule h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.update-rule p {
  color: var(--ink-soft);
  font-size: 15px;
}

.rule-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.update-list-section {
  min-width: 0;
}

.update-list-section h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-note {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.update-list-section .update-list {
  counter-reset: none;
}

.update-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-figure {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.aside-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--accent-soft);
}

.aside-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
}

.field-quick {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.field-quick h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.field-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}

.field-list dt {
  font-weight: 700;
  color: var(--accent-dark);
}

.field-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.field-more {
  margin-top: 12px;
  font-size: 13px;
}

.genre-jump h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-jump p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.genre-jump-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.genre-jump-list a:hover {
  background: #d5ece7;
  color: var(--accent-dark);
}

.related-entry {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-entry h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.related-entry p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

.related-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-entry-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.related-entry-list a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* ============================================================
   pages · 人气榜单页
   ============================================================ */

.main-column {
  min-width: 0;
}

.rank-list-section h2,
.rank-rule-section h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-intro {
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.rank-list-section .rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background: var(--accent-soft);
}

.rank-item .rank-no {
  margin-top: 4px;
}

.rank-item:nth-child(-n + 3) .rank-no {
  background: var(--warm);
  color: #3a2c00;
}

.rank-cover {
  background: var(--accent-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-name {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.rank-desc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-rule-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.rank-rule-section .rule-list {
  gap: 14px;
}

.rule-item {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.rule-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.rule-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-path-section,
.cross-entry-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.cross-entry-section {
  margin-top: 22px;
}

.topic-path-section h2,
.cross-entry-section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cross-list a:hover {
  background: #d5ece7;
  color: var(--accent-dark);
}

/* ============================================================
   pages · 阅读说明页
   ============================================================ */

.content-section {
  margin-bottom: 36px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section .section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.field-figure {
  margin: 16px 0 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--accent-soft);
}

.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
}

.field-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-card {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.field-card .field-name {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.field-meaning {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.field-sample {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: var(--radius-card);
}

.order-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.order-step .step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.order-step .step-title::before {
  counter-increment: step;
  content: counter(step);
}

.order-step-list {
  counter-reset: step;
}

.order-step .step-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-section .section-text {
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding: 12px 14px 12px 34px;
  background: var(--warm-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: #6b5100;
}

.boundary-item::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--warm);
  color: #3a2c00;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.aside-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.aside-block + .aside-block {
  margin-top: 22px;
}

.aside-block .section-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.aside-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.feedback-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: feedback;
}

.feedback-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-card);
}

.feedback-step .step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-step .step-title::before {
  counter-increment: feedback;
  content: counter(feedback) ".";
  color: var(--accent-dark);
  margin-right: 4px;
}

.feedback-step .step-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.related-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.related-link-list a:hover {
  background: #d5ece7;
  color: var(--accent-dark);
}

/* ============================================================
   pages · 404
   ============================================================ */

.error-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.error-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.error-block h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.error-lead {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 18px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.error-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-next {
  margin-top: 36px;
}

.error-next h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.error-next p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.error-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.error-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

/* ============================================================
   layout · 页脚
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: #c8d3e0;
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--warm);
  margin-bottom: 10px;
}

.footer-about {
  font-size: 13px;
  color: #9fb0c4;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  color: #c8d3e0;
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--warm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px 26px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #8fa0b5;
}

.footer-copy {
  color: #8fa0b5;
}

/* ============================================================
   responsive · 960px 以下
   ============================================================ */

@media (max-width: 960px) {
  :root {
    --header-h: 56px;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 0 16px 16px;
    background: var(--page-bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    height: 48px;
    justify-content: flex-start;
    font-size: 16px;
  }

  .home-main,
  .inner-main {
    padding: 20px 16px 48px;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title,
  .page-title {
    font-size: 26px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-layout,
  .rank-layout,
  .guide-layout,
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-entry-list,
  .error-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 36px 16px 22px;
  }

  .footer-bottom {
    padding: 14px 16px 24px;
  }
}

/* ============================================================
   responsive · 640px 以下
   ============================================================ */

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .brand-tag {
    display: none;
  }

  .hero-title,
  .page-title {
    font-size: 26px;
  }

  .section {
    margin-top: 40px;
  }

  .section-title {
    font-size: 20px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .update-row .update-date {
    grid-column: 1 / -1;
  }

  .update-row .update-status {
    justify-self: end;
  }

  .rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
    row-gap: 6px;
  }

  .rank-row .rank-genre {
    grid-column: 2;
    justify-self: start;
  }

  .rank-summary {
    grid-column: 1 / -1;
  }

  .rank-item {
    grid-template-columns: 36px 68px minmax(0, 1fr);
    gap: 10px;
  }

  .genre-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .genre-entry .entry-date {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .guide-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .index-grid,
  .related-entry-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-block {
    padding: 24px 18px;
  }

  .field-list {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

/* ============================================================
   motion · 动效增强
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
