/* ==========================================================================
   xjqmm.cn — 里番动漫 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #f7f8fa;
  --bg-card: #ffffff;
  --text-main: #1c1f26;
  --text-sub: #5b6270;
  --accent: #e5484d;
  --link: #2f6fed;
  --footer-bg: #171a21;
  --line: #e8eaee;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* 数字与日期等宽对齐 */
.update-date,
.ranking-index,
.genre-number,
.period-list a {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* --------------------------------------------------------------------------
   layout — 骨架
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
}

.site-main {
  flex: 1 1 auto;
}

/* 顶部事实条 */
.top-fact-bar {
  background: #eef0f4;
  border-bottom: 1px solid var(--line);
}

.top-fact-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-fact-bar p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0;
  min-height: 44px;
}

.brand-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--text-main);
  background: #f1f3f7;
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 600;
}

/* 汉堡按钮（桌面隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* 页脚 */
.site-footer {
  margin-top: 56px;
  background: var(--footer-bg);
  color: #c8ccd6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.footer-brand-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #9aa1b0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  display: inline-block;
  min-height: 32px;
  line-height: 32px;
  font-size: 14px;
  color: #c8ccd6;
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid #2a2f3a;
}

.footer-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-index-links a {
  font-size: 13px;
  color: #9aa1b0;
  min-height: 32px;
  line-height: 32px;
}

.footer-index-links a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 13px;
  color: #7d8494;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: #b4bac6;
}

.breadcrumb-current {
  color: var(--text-main);
}

/* 内页标题区 */
.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px 24px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.page-description,
.page-summary {
  margin-top: 10px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

/* 内页主内容 */
.inner-main .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   components — 通用模块
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title,
.genre-overview h2,
.genre-detail h2,
.genre-method h2,
.genre-cross h2,
.field-guide h2,
.update-list h2,
.status-guide h2,
.cross-links h2,
.ranking-basis h2,
.ranking-list-section h2,
.editor-picks h2,
.ranking-cycle h2,
.guide-section h2,
.error-suggest h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.sub-title,
.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #cf3b40;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: #ccd1da;
}

.btn-ghost:hover {
  border-color: var(--text-main);
  background: #f1f3f7;
}

/* 通用链接样式 */
.genre-link,
.topic-link,
.index-link,
.cross-link,
.link-more,
.ranking-more a,
.block-more a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}

.genre-link::after,
.topic-link::after,
.index-link::after,
.cross-link::after,
.link-more::after,
.ranking-more a::after,
.block-more a::after {
  content: "›";
  margin-left: 4px;
  font-size: 15px;
  line-height: 1;
}

/* 图片容器通用约束 */
.hero-figure,
.topic-figure,
.genre-figure,
.cross-figure,
.ranking-hero-figure,
.ranking-thumb,
.guide-figure {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eef0f4;
}

.hero-figure img,
.topic-figure img,
.genre-figure img,
.cross-figure img,
.ranking-hero-figure img,
.ranking-thumb img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* 状态标注 */
.status-ongoing,
.status,
.status-completed,
.status-hiatus,
.status-finished,
.status-paused {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  white-space: nowrap;
}

.status-ongoing {
  color: #c0392f;
  background: #fdecea;
}

.status-finished,
.status-completed {
  color: #1f7a4d;
  background: #e6f4ec;
}

.status-paused,
.status-hiatus {
  color: #7a6420;
  background: #fbf3d9;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-sub);
  background: #eef0f4;
  border-radius: 4px;
}

/* 表格 */
.data-table,
.field-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.data-table-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: #f2f4f7;
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.data-table thead th,
.field-table thead th {
  background: #f7f8fa;
  font-weight: 600;
  color: var(--text-main);
}

.data-table tbody th,
.field-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  background: #fafbfc;
  white-space: nowrap;
}

.data-table tr:last-child th,
.data-table tr:last-child td,
.field-table tr:last-child th,
.field-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero-section {
  padding: 32px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-areas: "lead figure period";
  gap: 32px;
  align-items: start;
}

.hero-lead {
  grid-area: lead;
  min-width: 0;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.hero-summary {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  grid-area: figure;
  aspect-ratio: 4 / 3;
}

.hero-figure figcaption {
  margin-top: 8px;
}

.hero-period {
  grid-area: period;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-period-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.hero-period-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.period-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.period-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  background: #f5f6f9;
  border-radius: var(--radius-sm);
}

.period-list a:hover {
  background: #eef0f4;
  color: var(--accent);
  text-decoration: none;
}

/* 题材总览 */
.genre-overview {
  padding: 32px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  padding: 18px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-card .genre-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.genre-card .genre-scope {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 最近更新 */
.updates-block {
  padding: 32px 0;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 130px 90px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: none;
}

.update-row:hover {
  background: #fafbfc;
}

.update-date {
  font-size: 13px;
  color: var(--text-sub);
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.update-name a {
  color: var(--text-main);
}

.update-name a:hover {
  color: var(--link);
}

.update-genre {
  font-size: 13px;
  color: var(--text-sub);
}

.update-status {
  justify-self: start;
}

.block-more,
.ranking-more {
  margin-top: 14px;
}

/* 榜单与推荐 */
.ranking-block {
  padding: 32px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.ranking-list-wrap {
  min-width: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.ranking-item:hover {
  border-color: #ccd1da;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-sub);
  border-radius: 4px;
}

.ranking-list .ranking-item:nth-child(1) .rank-no {
  background: var(--accent);
}

.ranking-list .ranking-item:nth-child(2) .rank-no {
  background: #e58b4d;
}

.ranking-list .ranking-item:nth-child(3) .rank-no {
  background: #c9a227;
}

.rank-name {
  font-size: 15px;
  color: var(--text-main);
}

.rank-genre {
  font-size: 13px;
  color: var(--text-sub);
}

.ranking-side {
  padding: 18px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.ranking-dimensions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-dimensions li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.ranking-dimensions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* 专题 */
.topic-block {
  padding: 32px 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card:hover {
  border-color: #ccd1da;
}

.topic-figure {
  aspect-ratio: 16 / 9;
}

.topic-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.topic-desc {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 阅读说明与反馈摘要 */
.guide-block {
  padding: 32px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-fields {
  min-width: 0;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.field-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.guide-feedback {
  padding: 18px;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.feedback-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--link);
  border-radius: 50%;
}

/* 站内索引 */
.sitemap-index {
  padding: 32px 0 8px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.index-desc {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */

.genre-detail .genre-overview,
.genre-method,
.genre-cross {
  margin-bottom: 40px;
}

.genre-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.genre-overview-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-sub);
  border-radius: 4px;
}

.genre-overview-card .genre-name {
  font-size: 16px;
  font-weight: 600;
}

.genre-overview-card .genre-name a {
  color: var(--text-main);
}

.genre-overview-card .genre-name a:hover {
  color: var(--link);
}

.genre-overview-card .genre-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* 题材详情区块 */
.genre-block {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.genre-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f2f4f7;
  border-bottom: 1px solid var(--line);
}

.genre-block-head .genre-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.genre-block-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.genre-figure {
  aspect-ratio: 3 / 4;
}

.genre-figure figcaption {
  margin-top: 8px;
}

.genre-block-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-main);
}

.genre-meta {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 14px;
  font-size: 14px;
}

.genre-meta dt {
  font-weight: 600;
  color: var(--text-main);
}

.genre-meta dd {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 挑选方法 */
.method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.method-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-point {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.method-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.method-pitfall {
  margin-top: 8px;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a2b;
}

.method-pitfall::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* 关联入口 */
.genre-cross-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.cross-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cross-figure {
  aspect-ratio: 16 / 9;
}

.cross-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.cross-desc {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 最近更新
   -------------------------------------------------------------------------- */

.section.field-guide,
.section.update-list,
.section.status-guide,
.section.cross-links {
  margin-bottom: 40px;
}

.field-guide .data-table {
  margin-top: 16px;
}

.update-list .update-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
}

.update-list .update-row:hover {
  border-color: #ccd1da;
}

.update-list .update-row img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #eef0f4;
}

.update-row-body {
  min-width: 0;
}

.update-row-body .update-date {
  font-size: 13px;
  color: var(--text-sub);
}

.update-row-body .update-name {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

.update-row-body .update-name a {
  color: var(--text-main);
}

.update-row-body .update-name a:hover {
  color: var(--link);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* 状态解释 */
.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.status-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.status-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.status-note {
  margin-top: 8px;
  padding-left: 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a2b;
}

.status-note::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: -2px;
  font-weight: 700;
  color: var(--accent);
}

/* 交叉入口 */
.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.cross-grid .cross-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cross-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.cross-grid .cross-desc {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 人气榜单
   -------------------------------------------------------------------------- */

.ranking-hero {
  padding: 0 0 32px;
}

.ranking-hero-figure {
  aspect-ratio: 21 / 8;
}

.ranking-hero-figure figcaption {
  margin-top: 8px;
}

.ranking-basis,
.ranking-list-section,
.editor-picks,
.ranking-cycle {
  margin-bottom: 40px;
}

.basis-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.basis-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.basis-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.basis-desc {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.basis-weight {
  font-size: 13px;
  color: var(--accent);
}

.basis-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* 榜单列表 */
.ranking-list-section .ranking-list {
  margin-top: 16px;
  gap: 10px;
}

.ranking-list-section .ranking-item {
  display: grid;
  grid-template-columns: 40px 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-list-section .ranking-item:hover {
  border-color: #ccd1da;
}

.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-sub);
  border-radius: 4px;
}

.ranking-list-section .ranking-item:nth-child(1) .ranking-index {
  background: var(--accent);
}

.ranking-list-section .ranking-item:nth-child(2) .ranking-index {
  background: #e58b4d;
}

.ranking-list-section .ranking-item:nth-child(3) .ranking-index {
  background: #c9a227;
}

.ranking-thumb {
  width: 72px;
  height: 96px;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.ranking-genre {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.ranking-move {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a2b;
}

/* 编辑推荐 */
.pick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pick-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pick-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.pick-reason {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.pick-audience {
  margin-top: 8px;
  font-size: 13px;
  color: var(--link);
}

/* 榜单更新方式 */
.ranking-cycle-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-main);
}

.cycle-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cycle-point {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.cycle-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* --------------------------------------------------------------------------
   pages — 阅读说明
   -------------------------------------------------------------------------- */

.guide-section {
  margin-bottom: 40px;
}

.guide-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.guide-fields-table-wrap {
  min-width: 0;
}

.guide-fields-note {
  min-width: 0;
}

.guide-fields-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.guide-figure {
  aspect-ratio: 4 / 3;
  margin-top: 6px;
}

.guide-figure figcaption {
  margin-top: 8px;
}

.guide-status .status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-meaning {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

.guide-status .status-note {
  margin-top: 0;
}

.section-footnote {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* 反馈路径 */
.guide-feedback .feedback-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feedback-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-type {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.feedback-entry {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.feedback-entry a {
  color: var(--link);
}

.feedback-handle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #8a5a2b;
}

/* 反馈准备 */
.prepare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.prepare-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prepare-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.prepare-use {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0 40px;
}

.error-container {
  max-width: 640px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.error-main h1 {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
}

.error-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-sub);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-suggest {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.error-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.error-links a:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .breadcrumb,
  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 16px;
  }

  /* 首页首屏：纵向排列，H1 在最前 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "figure"
      "period";
    gap: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .genre-grid,
  .genre-overview-grid,
  .basis-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid,
  .cross-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .guide-layout,
  .guide-fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ranking-list-section .ranking-item {
    grid-template-columns: 36px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-thumb {
    width: 64px;
    height: 86px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-list,
  .status-list,
  .pick-list,
  .cycle-points,
  .guide-feedback .feedback-list,
  .prepare-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .breadcrumb,
  .page-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-section {
    padding: 24px 0 28px;
  }

  .hero-title {
    font-size: 22px;
  }

  .genre-grid,
  .genre-overview-grid,
  .basis-list,
  .topic-grid,
  .cross-grid,
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 首页更新行：纵向堆叠 */
  .updates-block .update-list {
    border: none;
    background: transparent;
    gap: 10px;
    overflow: visible;
  }

  .updates-block .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .updates-block .update-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .update-status {
    justify-self: start;
  }

  /* 内页更新条目 */
  .update-list .update-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .update-list .update-row img {
    width: 72px;
    height: 96px;
  }

  /* 榜单条目 */
  .ranking-list-section .ranking-item {
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas:
      "index body"
      "thumb body";
    row-gap: 8px;
  }

  .ranking-list-section .ranking-index {
    grid-area: index;
  }

  .ranking-list-section .ranking-thumb {
    grid-area: thumb;
    width: 56px;
    height: 74px;
  }

  .ranking-list-section .ranking-body {
    grid-area: body;
  }

  /* 首页榜单条目 */
  .ranking-block .ranking-item {
    grid-template-columns: 30px minmax(0, 1fr);
    row-gap: 4px;
  }

  .ranking-block .ranking-item .rank-genre {
    grid-column: 2;
  }

  /* 字段说明 */
  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .genre-block-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .genre-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .genre-meta dt {
    margin-top: 6px;
  }

  /* 表格横向可滚 */
  .guide-fields-table-wrap,
  .field-guide {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table,
  .field-table {
    min-width: 520px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-code {
    font-size: 52px;
  }
}
