/* ==========================================================================
   动漫天堂 cdggc.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基线
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f6f3;
  --ink: #1f2340;
  --ink-soft: #4a4f6b;
  --primary: #3d4fd6;
  --primary-dark: #2c3aa8;
  --accent: #e0763a;
  --muted: #8a8fa8;
  --line: #dedbe4;
  --line-strong: #c8c4d2;
  --surface: #ffffff;
  --surface-alt: #f1eff5;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 35, 64, 0.06);
  --shadow-lift: 0 6px 16px rgba(31, 35, 64, 0.12);
  --shell: 1180px;
  --read: 760px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface-alt);
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 页头、主导航、主容器、内页骨架、页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary);
  background: var(--surface-alt);
}

.nav-list a.is-current {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 700;
}

/* 内页标题区 */
.page-header {
  max-width: var(--read);
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.page-lede,
.page-lead,
.page-intro {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 内页通用 section */
.section {
  padding: 40px 0 0;
}

.section + .section {
  margin-top: 8px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-note,
.section-desc,
.section-lead {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.section-lead {
  margin-top: 16px;
  max-width: var(--read);
}

.section-index,
.section-no,
.section-number {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #d7d9e6;
  border-top: 3px solid var(--primary);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand {
  font-size: 15px;
  line-height: 1.8;
  color: #ffffff;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 26px 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 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: #c3c6da;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
}

.footer-group a.is-current {
  color: var(--accent);
  font-weight: 700;
}

.footer-note,
.footer-copy {
  font-size: 13px;
  line-height: 1.8;
  color: #a8adc4;
}

.footer-note {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-copy {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   components — 章节标签、卡片、列表行、标签、按钮
   -------------------------------------------------------------------------- */
.chapter-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.sub-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.panel-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-more:hover,
.panel-more:focus-visible {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--surface-alt);
}

.tag-status,
.tag-genre {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-status {
  color: var(--accent);
  background: rgba(224, 118, 58, 0.12);
  border: 1px solid rgba(224, 118, 58, 0.32);
}

.tag-genre {
  color: var(--primary);
  background: rgba(61, 79, 214, 0.1);
  border: 1px solid rgba(61, 79, 214, 0.28);
}

/* 封面条目卡 */
.cover-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cover-card:hover,
.cover-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
}

.cover-link {
  display: block;
  padding: 12px;
  color: var(--ink);
}

.cover-link:hover,
.cover-link:focus-visible {
  color: var(--ink);
}

.cover-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.cover-name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.cover-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.cover-progress {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* 更新记录行 */
.update-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.update-name {
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-progress {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* 榜单行 */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.rank-name {
  color: var(--ink);
  font-weight: 700;
}

.rank-genre {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

/* 编辑选题卡 */
.pick-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pick-card + .pick-card {
  margin-top: 12px;
}

.pick-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  border-left-color: var(--primary);
}

.pick-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pick-scope {
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent);
}

.pick-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 字段表 */
.field-table {
  width: 100%;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  width: 130px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.field-table td {
  color: var(--ink-soft);
}

/* 边界说明块 */
.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

/* 站内栏目索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.index-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.index-cell:hover,
.index-cell:focus-visible {
  color: var(--ink);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.index-cell.is-current {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.index-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.index-name {
  font-size: 15px;
  font-weight: 700;
}

.index-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* 相关入口列表 */
.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.related-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--surface-alt);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */
.fact-bar {
  background: var(--ink);
  color: #d7d9e6;
}

.fact-bar p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.7;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 首屏目录区 */
.hero-section {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.entry-link:hover,
.entry-link:focus-visible {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.hero-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-cover {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.hero-cover .cover-link {
  display: contents;
}

.hero-cover .cover-link img {
  grid-column: 1;
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin: 12px;
}

.hero-cover .cover-name,
.hero-cover .cover-meta,
.hero-cover .cover-progress {
  grid-column: 2;
  padding-right: 14px;
}

.hero-cover .cover-name {
  margin-top: 0;
  align-self: end;
}

.hero-cover .cover-progress {
  align-self: start;
  padding-bottom: 12px;
}

/* 题材方向总览 */
.genre-overview {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.genre-cell {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.genre-cell:hover,
.genre-cell:focus-within {
  transform: translateY(-2px);
  border-color: var(--primary);
  border-top-color: var(--primary);
}

.genre-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.genre-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-samples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.genre-samples li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: var(--muted);
}

.genre-samples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 1px;
}

.genre-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* 封面条目与最近更新并列区 */
.wall-and-updates {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.wall-updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.cover-wall {
  min-width: 0;
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wall-grid .cover-card:first-child {
  grid-column: span 2;
}

.wall-grid .cover-card:first-child .cover-link img {
  aspect-ratio: 16 / 11;
}

.updates-panel {
  min-width: 0;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-self: start;
}

/* 人气榜单与编辑选题 */
.ranking-and-picks {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.ranking-picks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.ranking-column,
.picks-column {
  min-width: 0;
}

/* 字段口径与收录边界摘要 */
.field-and-boundary {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.field-boundary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.field-column,
.boundary-column {
  min-width: 0;
}

.boundary-column p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 站内栏目索引 */
.site-index {
  padding: 44px 0 0;
}

/* --------------------------------------------------------------------------
   pages — 题材分类
   -------------------------------------------------------------------------- */
.genre-intro-body p {
  max-width: var(--read);
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.section-genre-groups .genre-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.genre-group {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 24px;
}

.genre-group-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.genre-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.genre-group .genre-name {
  margin-top: 6px;
}

.genre-figure {
  margin-top: 14px;
}

.genre-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.entry-list {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.entry-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.entry-item:last-child {
  border-bottom: 0;
}

.entry-name {
  font-weight: 700;
  color: var(--ink);
}

.entry-meta {
  font-size: 13px;
  color: var(--muted);
}

.status-note-body p,
.scope-note-body p {
  max-width: var(--read);
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages — 最近更新
   -------------------------------------------------------------------------- */
.field-table[role="table"] {
  display: block;
  border: 0;
  background: transparent;
}

.field-table[role="table"] .field-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface);
}

.field-table[role="table"] .field-row:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.field-table[role="table"] .field-row:last-child {
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}

.field-table[role="table"] .field-row-head {
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 700;
}

.field-cell {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-right: 1px solid var(--line);
}

.field-cell:last-child {
  border-right: 0;
}

.field-name {
  font-weight: 700;
  color: var(--primary);
}

.section-timeline {
  padding-top: 44px;
}

.update-day {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.update-day:last-child {
  border-bottom: 0;
}

.day-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-timeline .update-row {
  grid-template-columns: 92px minmax(0, 1.4fr) minmax(0, 0.9fr) auto auto;
  gap: 14px;
}

.update-genre {
  font-size: 13px;
  color: var(--muted);
}

.update-status {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-ongoing {
  color: var(--accent);
  background: rgba(224, 118, 58, 0.12);
  border-color: rgba(224, 118, 58, 0.32);
}

.status-complete {
  color: var(--primary);
  background: rgba(61, 79, 214, 0.1);
  border-color: rgba(61, 79, 214, 0.28);
}

.status-hiatus {
  color: var(--muted);
  background: rgba(138, 143, 168, 0.14);
  border-color: rgba(138, 143, 168, 0.36);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.status-col {
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.status-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.status-col-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.status-col-item {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.status-figure {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.status-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.status-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.rhythm-block {
  max-width: var(--read);
  margin-top: 18px;
}

.rhythm-block p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.rhythm-block p + p {
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   pages — 人气榜单
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-layout > .rank-list-section {
  min-width: 0;
}

.page-layout > .rank-basis-section {
  min-width: 0;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 20px;
}

.rank-list-section .rank-list {
  margin-top: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item.rank-top {
  grid-template-columns: 46px 92px minmax(0, 1fr);
  align-items: start;
}

.rank-item .rank-no {
  font-size: 20px;
}

.rank-cover img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.rank-body {
  min-width: 0;
}

.rank-item .rank-name {
  font-size: 16px;
}

.rank-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.rank-reason {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.basis-list {
  margin-top: 16px;
}

.basis-term {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 14px;
}

.basis-term:first-child {
  margin-top: 0;
}

.basis-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.basis-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.editor-pick-section {
  padding-top: 44px;
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.pick-grid .pick-card + .pick-card {
  margin-top: 0;
}

.rank-adjust-section {
  padding-top: 44px;
}

.adjust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.adjust-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}

.adjust-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.adjust-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.adjust-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.related-section {
  padding-top: 44px;
}

/* --------------------------------------------------------------------------
   pages — 阅读说明
   -------------------------------------------------------------------------- */
.guide-section {
  padding: 44px 0 0;
}

.guide-figure {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.guide-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.glossary-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glossary-table caption {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.glossary-table th,
.glossary-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}

.glossary-table thead th {
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.glossary-table tbody th {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.glossary-table tbody td {
  color: var(--ink-soft);
}

.glossary-table tbody tr:last-child th,
.glossary-table tbody tr:last-child td {
  border-bottom: 0;
}

.caliber-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.caliber-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.caliber-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.caliber-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-detail {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-detail summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.boundary-detail summary::-webkit-details-marker {
  display: none;
}

.boundary-detail summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.boundary-detail[open] summary::before {
  content: "–";
}

.boundary-detail summary:hover {
  color: var(--primary);
}

.detail-body {
  padding: 0 16px 16px 46px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}

.detail-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.detail-body p + p {
  margin-top: 10px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feedback-item {
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.feedback-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-entry {
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.error-panel h1 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.error-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.error-hint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   responsive — 960px 与 640px 两档
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    justify-content: flex-start;
    padding: 0 8px;
    min-height: 48px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
  }

  .nav-list a.is-current {
    border-left-color: var(--primary);
    border-bottom-color: transparent;
    background: var(--surface-alt);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
  }

  .inner-main,
  .home-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 30px;
  }

  .genre-grid,
  .section-genre-groups .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-updates-layout,
  .ranking-picks-layout,
  .field-boundary-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout > .rank-basis-section {
    position: static;
  }

  .status-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adjust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .fact-bar p {
    padding: 8px 20px;
    font-size: 12px;
  }

  .brand-sub {
    display: none;
  }

  .inner-main,
  .home-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 48px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding: 14px 0 22px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-head {
    gap: 8px;
  }

  .section-note,
  .section-desc,
  .section-lead {
    flex-basis: 100%;
  }

  .hero-section {
    padding: 28px 0 30px;
  }

  .hero-entry-list {
    gap: 8px;
  }

  .entry-link {
    min-height: 44px;
    padding: 0 14px;
  }

  .hero-cover {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .hero-cover .cover-link img {
    width: 84px;
    margin: 10px;
  }

  .genre-overview,
  .wall-and-updates,
  .ranking-and-picks,
  .field-and-boundary,
  .site-index,
  .section,
  .guide-section,
  .editor-pick-section,
  .rank-adjust-section,
  .related-section,
  .section-timeline {
    padding-top: 30px;
  }

  .genre-grid,
  .section-genre-groups .genre-grid,
  .wall-grid,
  .pick-grid,
  .caliber-grid,
  .status-grid,
  .feedback-grid,
  .adjust-list,
  .index-grid,
  .related-list,
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-grid .cover-card:first-child {
    grid-column: auto;
  }

  .wall-grid .cover-card:first-child .cover-link img {
    aspect-ratio: 3 / 4;
  }

  .update-row,
  .section-timeline .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-progress {
    text-align: left;
  }

  .rank-item,
  .rank-item.rank-top {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item.rank-top .rank-cover {
    grid-column: 2;
  }

  .rank-item.rank-top .rank-body {
    grid-column: 2;
  }

  .rank-cover img {
    width: 100%;
    max-width: 120px;
    aspect-ratio: 3 / 4;
  }

  .field-table[role="table"] .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .field-cell:last-child {
    border-bottom: 0;
  }

  .field-table tbody th,
  .field-table thead th {
    width: auto;
  }

  .glossary-table {
    min-width: 0;
  }

  .table-wrap {
    overflow-x: visible;
  }

  .glossary-table thead {
    display: none;
  }

  .glossary-table tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .glossary-table tbody tr:last-child {
    border-bottom: 0;
  }

  .glossary-table tbody th,
  .glossary-table tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .glossary-table tbody th {
    margin-bottom: 4px;
  }

  .glossary-table tbody td + td {
    margin-top: 4px;
  }

  .detail-body {
    padding-left: 16px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-actions .btn {
    flex: 1 1 100%;
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }
}
