/* ==========================================================================
   风车动漫 · 整站样式
   base → layout → components → pages → responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
:root {
  --brand-blue: #2f6fb0;
  --brand-blue-dark: #245a91;
  --brand-orange: #e08a3c;
  --genre-teal: #3f9d8f;
  --genre-purple: #7a6ba8;
  --genre-brick: #b45f52;
  --genre-navy: #4a5f7a;
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --line-soft: #e4e7ec;
  --line-strong: #d3d8e0;
  --text-main: #23272e;
  --text-sub: #6b7280;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(35, 39, 46, 0.06);
  --shadow-hover: 0 6px 18px rgba(35, 39, 46, 0.12);
  --wrap: 1160px;
  --wrap-read: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-page);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-blue-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

time {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.75;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
}

/* 顶部事实条 */
.fact-bar {
  background-color: #eef2f7;
  border-bottom: 1px solid var(--line-soft);
}

.fact-bar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--brand-blue-dark);
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-link:hover {
  color: var(--brand-blue);
  background-color: #f2f6fb;
}

.nav-link.is-current {
  color: var(--brand-blue);
  font-weight: 600;
  border-bottom-color: var(--brand-blue);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  background-color: #ffffff;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-about {
  min-width: 0;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue);
}

.footer-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-list li + li {
  margin-top: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--text-sub);
}

.footer-list a:hover {
  color: var(--brand-blue);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 28px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section {
  margin-top: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  max-width: var(--wrap-read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.section-more {
  margin-top: 18px;
  font-size: 15px;
}

.text-link {
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--brand-blue);
  border-bottom: 1px solid rgba(47, 111, 176, 0.35);
}

.text-link:hover {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-blue-dark);
}

.column-title {
  font-size: 17px;
  font-weight: 600;
}

.column-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background-color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-secondary:hover {
  background-color: #eff5fc;
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background-color: #f4f8fd;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-genre {
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.tag-status {
  background-color: #fdf3e8;
  color: #a8621f;
}

.tag-updated {
  background-color: #eaf4f1;
  color: #2f7d72;
}

.tag-pending {
  background-color: #f1f1f4;
  color: var(--text-sub);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand-blue);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 内页标题区 */
.page-header {
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.page-description {
  margin-top: 10px;
  max-width: var(--wrap-read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.page-intro {
  margin-top: 10px;
  max-width: var(--wrap-read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* 相关入口区（内页通用） */
.related-links,
.related-entries,
.related-section {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.related-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.related-item a {
  font-size: 15px;
  font-weight: 600;
}

.related-item span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

/* 媒体容器 */
.section-media,
.fields-figure,
.ranking-figure,
.guide-figure {
  margin-top: 20px;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.section-media img,
.fields-figure img,
.ranking-figure img,
.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.section-media figcaption,
.fields-figure figcaption,
.ranking-figure figcaption,
.guide-figure-caption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.home-main {
  padding-top: 24px;
}

/* 首屏 */
.hero {
  padding: 8px 0 4px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--brand-blue);
  background-color: #eaf1fa;
  border-radius: 4px;
}

.hero-title {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-action-item {
  display: block;
}

.hero-media {
  min-width: 0;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-caption {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
  border-top: 1px solid var(--line-soft);
}

/* 题材方向总览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.genre-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.genre-card-teal {
  border-top-color: var(--genre-teal);
}

.genre-card-purple {
  border-top-color: var(--genre-purple);
}

.genre-card-brick {
  border-top-color: var(--genre-brick);
}

.genre-card-navy {
  border-top-color: var(--genre-navy);
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
}

.genre-scope {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.genre-rep {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

.genre-rep a {
  margin-right: 4px;
}

.genre-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 封面条目墙 */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shelf-item {
  min-width: 0;
}

.shelf-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.shelf-link:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.shelf-media {
  overflow: hidden;
  border-radius: 4px;
  background-color: #eef2f7;
}

.shelf-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.shelf-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.shelf-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 最近更新 */
.batch-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.batch-item {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.batch-no {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

.batch-genres {
  font-size: 13px;
  color: var(--text-sub);
}

.batch-time {
  font-size: 13px;
  color: var(--text-sub);
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.update-group {
  min-width: 0;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.update-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.update-group-title {
  font-size: 16px;
  font-weight: 600;
}

.update-group-time {
  font-size: 13px;
  color: var(--text-sub);
}

.update-list {
  margin-top: 10px;
}

.update-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
}

.update-row + .update-row {
  border-top: 1px dashed var(--line-soft);
}

.update-name {
  flex: 1 1 120px;
  min-width: 0;
  color: var(--text-main);
}

.update-progress {
  font-size: 13px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

/* 人气位次 + 字段口径 */
.rank-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.rank-column,
.fields-column {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.rank-list {
  margin-top: 14px;
  counter-reset: none;
}

.rank-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
}

.rank-item + .rank-item {
  border-top: 1px dashed var(--line-soft);
}

.rank-no {
  flex: 0 0 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
}

.rank-name {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
}

.rank-genre {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.rank-genre-teal {
  background-color: #e8f4f1;
  color: #2f7d72;
}

.rank-genre-purple {
  background-color: #efecf7;
  color: #5f5290;
}

.rank-genre-brick {
  background-color: #f8ece9;
  color: #96483d;
}

.rank-genre-navy {
  background-color: #ecf0f6;
  color: var(--genre-navy);
}

.field-brief-list {
  margin-top: 14px;
}

.field-brief-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 9px 0;
  font-size: 14px;
}

.field-brief-item + .field-brief-item {
  border-top: 1px dashed var(--line-soft);
}

.field-name {
  flex: 0 0 84px;
  font-weight: 600;
  color: var(--brand-blue);
}

.field-desc {
  flex: 1 1 160px;
  min-width: 0;
  line-height: 1.75;
  color: var(--text-sub);
}

/* 查阅路径三步 */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.step-no {
  flex: 0 0 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-blue);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
}

.step-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.guide-feedback {
  margin-top: 18px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  background-color: #f2f6fb;
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.index-item {
  min-width: 0;
}

.index-link {
  display: block;
  height: 100%;
  padding: 14px 12px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-link:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-card);
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.index-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */
.genre-rows {
  display: grid;
  gap: 16px;
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.genre-row--youth {
  border-left-color: var(--genre-teal);
}

.genre-row--fantasy {
  border-left-color: var(--genre-purple);
}

.genre-row--mystery {
  border-left-color: var(--genre-brick);
}

.genre-row--life {
  border-left-color: var(--genre-navy);
}

.genre-row-main,
.genre-row-side {
  min-width: 0;
}

.genre-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.genre-side-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.genre-entry-list {
  margin-top: 10px;
}

.genre-entry-list li {
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.7;
}

.genre-entry-list li + li {
  border-top: 1px dashed var(--line-soft);
}

.genre-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.genre-tag-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s ease;
}

.genre-tag-card:hover {
  box-shadow: var(--shadow-hover);
}

.genre-tag-figure {
  margin: 0;
  background-color: #eef2f7;
}

.genre-tag-figure img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.genre-tag-body {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.genre-tag-name {
  font-size: 17px;
  font-weight: 600;
}

.genre-tag-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list .tag {
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.genre-tag-card--youth .tag-list .tag {
  background-color: #e8f4f1;
  color: #2f7d72;
}

.genre-tag-card--fantasy .tag-list .tag {
  background-color: #efecf7;
  color: #5f5290;
}

.genre-tag-card--mystery .tag-list .tag {
  background-color: #f8ece9;
  color: #96483d;
}

.genre-tag-card--life .tag-list .tag {
  background-color: #ecf0f6;
  color: var(--genre-navy);
}

.genre-tag-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.difference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.difference-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.difference-title {
  font-size: 16px;
  font-weight: 600;
}

.difference-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 最近更新
   -------------------------------------------------------------------------- */
.batch-status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.batch-status-item {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.batch-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  font-variant-numeric: tabular-nums;
}

.batch-meta {
  flex: 1 1 100px;
  min-width: 0;
  font-size: 13px;
  color: var(--text-sub);
}

.batch-time {
  font-size: 13px;
  color: var(--text-sub);
}

.status-tag {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
}

.status-tag-new {
  background-color: #eaf4f1;
  color: #2f7d72;
}

.status-tag-progress {
  background-color: #fdf3e8;
  color: #a8621f;
}

.status-tag-adjust {
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.updates-batches {
  margin-top: 44px;
}

.batch-block {
  padding: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.batch-block + .batch-block {
  margin-top: 16px;
}

.batch-block-title {
  font-size: 17px;
  font-weight: 600;
}

.batch-block-time {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  font-size: 14px;
}

.update-item + .update-item {
  border-top: 1px dashed var(--line-soft);
}

.update-direction {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.update-state {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  background-color: #fdf3e8;
  color: #a8621f;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legend-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.legend-name {
  font-size: 16px;
  font-weight: 600;
}

.legend-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 人气位次
   -------------------------------------------------------------------------- */
.ranking-list {
  margin-top: 20px;
  padding: 8px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.ranking-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.ranking-item + .ranking-item {
  border-top: 1px dashed var(--line-soft);
}

.rank-num {
  flex: 0 0 34px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
}

.rank-body {
  flex: 1 1 200px;
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-meta {
  margin-top: 6px;
}

.genre-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.genre-tag--suspense {
  background-color: #f8ece9;
  color: #96483d;
}

.genre-tag--fantasy {
  background-color: #efecf7;
  color: #5f5290;
}

.genre-tag--daily {
  background-color: #ecf0f6;
  color: var(--genre-navy);
}

.genre-tag--action {
  background-color: #e8f4f1;
  color: #2f7d72;
}

.rank-status {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 4px;
  white-space: nowrap;
}

.rank-status--ongoing {
  background-color: #eaf4f1;
  color: #2f7d72;
}

.rank-status--completed {
  background-color: #eef2f7;
  color: var(--genre-navy);
}

.rank-status--hiatus {
  background-color: #f1f1f4;
  color: var(--text-sub);
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.criteria-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.criteria-name {
  font-size: 16px;
  font-weight: 600;
}

.criteria-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.status-summary {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 4px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.status-summary dt {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  border-top: 1px dashed var(--line-soft);
}

.status-summary dd {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  border-top: 1px dashed var(--line-soft);
}

.status-summary dt:first-of-type,
.status-summary dd:first-of-type {
  border-top: none;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明
   -------------------------------------------------------------------------- */
.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line-soft);
}

.fields-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background-color: #f2f6fb;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.fields-table tbody th {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  vertical-align: top;
  white-space: nowrap;
}

.fields-table tbody td {
  padding: 12px 16px;
  line-height: 1.8;
  color: var(--text-sub);
  vertical-align: top;
  border-top: 1px solid var(--line-soft);
}

.fields-table tbody tr:first-child th,
.fields-table tbody tr:first-child td {
  border-top: none;
}

.confuse-list {
  display: grid;
  gap: 12px;
}

.confuse-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.confuse-name {
  font-size: 16px;
  font-weight: 600;
}

.confuse-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.path-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease;
}

.path-item:hover {
  border-color: var(--brand-blue);
}

.path-item a {
  font-size: 15px;
  font-weight: 600;
}

.path-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages · 查阅指引
   -------------------------------------------------------------------------- */
.guide-steps .step-list {
  margin-top: 20px;
}

.guide-steps .step-item {
  align-items: flex-start;
}

.step-index {
  flex: 0 0 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-blue);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.entry-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-link-item {
  min-width: 0;
}

.entry-link {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-link:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-hover);
}

.entry-link-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-blue);
}

.entry-link-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
}

.feedback-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.guide-related .related-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-link-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease;
}

.related-link-item:hover {
  border-color: var(--brand-blue);
}

.related-link-item a {
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
}

.error-panel {
  padding: 40px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-orange);
  font-variant-numeric: tabular-nums;
}

.error-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 600;
}

.error-text {
  margin-top: 12px;
  max-width: var(--wrap-read);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.error-text + .error-text {
  margin-top: 8px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-links {
  margin-top: 40px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error-link-list li {
  min-width: 0;
  padding: 14px 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease;
}

.error-link-list li:hover {
  border-color: var(--brand-blue);
}

.error-link-list a {
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .genre-grid,
  .shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .genre-tag-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-main {
    padding: 22px 20px 48px;
  }

  .fact-bar-text,
  .header-inner,
  .footer-inner,
  .footer-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* 移动导航 */
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 8px 18px rgba(35, 39, 46, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    min-height: 44px;
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--brand-blue);
  }

  /* 首屏改为单列，文字在前 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 26px;
  }

  .genre-grid,
  .shelf-grid,
  .batch-bar,
  .update-groups,
  .step-list,
  .index-grid,
  .difference-list,
  .criteria-list,
  .path-list,
  .batch-status-list,
  .error-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-list,
  .feedback-list,
  .entry-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-main {
    padding: 18px 16px 40px;
  }

  .fact-bar-text,
  .header-inner,
  .footer-inner,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    position: static;
  }

  .brand {
    font-size: 18px;
  }

  .section {
    margin-top: 34px;
  }

  .section-title {
    font-size: 19px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-item .btn {
    width: 100%;
  }

  .genre-grid,
  .shelf-grid,
  .batch-bar,
  .update-groups,
  .step-list,
  .index-grid,
  .difference-list,
  .criteria-list,
  .path-list,
  .batch-status-list,
  .error-link-list,
  .legend-list,
  .feedback-list,
  .entry-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-tag-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-tag-figure img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* 字段表在手机上转为纵向卡片 */
  .fields-table,
  .fields-table tbody,
  .fields-table tr,
  .fields-table th,
  .fields-table td {
    display: block;
    width: 100%;
  }

  .fields-table thead {
    display: none;
  }

  .fields-table tbody tr {
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft);
  }

  .fields-table tbody tr:first-child {
    border-top: none;
  }

  .fields-table tbody th,
  .fields-table tbody td {
    padding: 0;
    border-top: none;
    white-space: normal;
  }

  .fields-table tbody td {
    margin-top: 4px;
  }

  .fields-table tbody td::before {
    content: attr(data-field);
    display: none;
  }

  .status-summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 16px;
  }

  .status-summary dt {
    padding-bottom: 0;
    border-top: 1px dashed var(--line-soft);
  }

  .status-summary dd {
    padding-top: 4px;
  }

  .status-summary dt:first-of-type {
    border-top: none;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .ranking-list {
    padding: 6px 16px;
  }

  .rank-body {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
