/* ==========================================================================
   女神漫画 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5f1;
  --surface: #ffffff;
  --ink: #1c1f26;
  --ink-soft: #5b6273;
  --indigo: #23305c;
  --indigo-soft: #eef0f7;
  --coral: #e8617a;
  --mint: #3f9e93;
  --line: #dcd8d0;
  --line-soft: #ebe7e0;
  --footer-bg: #141821;
  --footer-ink: #c9ccd6;
  --radius: 6px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --shell-max: 1180px;
  --side-w: 220px;
  --gap-col: 32px;
  --content-max: 940px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--indigo);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--coral);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

table {
  border-collapse: collapse;
  width: 100%;
}

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.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-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--shell-max);
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--indigo);
}

.brand:hover {
  color: var(--indigo);
}

.brand-mark {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.header-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-nav a:hover {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.site-nav a.is-current {
  background: var(--indigo);
  color: #ffffff;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   layout · 主体与侧栏
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.sidebar-left .side-index,
.sidebar-left .sidebar {
  order: -1;
}

.site-main {
  min-width: 0;
  max-width: var(--content-max);
  width: 100%;
}

.side-index,
.sidebar {
  position: sticky;
  top: 84px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-index-title {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.side-index-list,
.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-index-list a,
.sidebar-nav a {
  display: block;
  padding: 8px 10px 8px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.side-index-list a:hover,
.sidebar-nav a:hover {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.side-index-list a.is-current,
.sidebar-nav a.is-current {
  border-left-color: var(--coral);
  background: var(--indigo-soft);
  color: var(--indigo);
  font-weight: 600;
}

.side-index-note,
.side-note,
.sidebar-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   layout · 内页标题区与面包屑
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--indigo);
}

.page-header {
  margin: 14px 0 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
}

.page-lead,
.page-lede {
  flex: 1 1 520px;
  min-width: 220px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   components · 状态徽标与标签
   -------------------------------------------------------------------------- */

.status-badge,
.status-tag,
.tag,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: nowrap;
}

.status-badge.status-serial,
.status-tag.status-ongoing,
.status-tag.status-tag--serial,
.status-tag.is-serial,
.tag-ongoing {
  border-color: var(--coral);
  background: #fdf1f3;
  color: #b93a52;
}

.status-badge.status-done,
.status-tag.status-done,
.status-tag.status-tag--done,
.status-tag.is-done,
.tag-done,
.tag-finished {
  border-color: var(--mint);
  background: #ecf6f4;
  color: #2c7a71;
}

.status-badge.status-short,
.status-tag.status-short,
.status-tag.status-tag--short,
.status-tag.is-short,
.tag-short {
  border-color: var(--line);
  background: #f2f0ec;
  color: var(--ink-soft);
}

.tag-pill {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

button.tag-pill {
  min-height: 34px;
  padding: 4px 14px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

button.tag-pill:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

button.tag-pill.is-active {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   components · 区块骨架
   -------------------------------------------------------------------------- */

.section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 6px;
}

.section-head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 1.25rem;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.section-more {
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.section-more:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.section-desc,
.section-note,
.section-intro {
  margin: 0 0 16px;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.section-head h2 + .section-note,
.section-head h2 + .section-desc {
  margin-top: 6px;
}

.section > h2:not(.section-head h2) {
  position: relative;
  margin-bottom: 8px;
  padding-left: 12px;
  font-size: 1.25rem;
}

.section > h2:not(.section-head h2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   components · 表格
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  padding: 10px 14px;
  background: var(--indigo-soft);
  border-bottom: 1px solid var(--line);
  color: var(--indigo);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #faf8f4;
}

.data-table .cell-name {
  color: var(--indigo);
  font-weight: 600;
}

.data-table .cell-num,
.data-table .cell-code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--indigo);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   components · 按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1a2549;
  border-color: #1a2549;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--indigo);
}

.btn-ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

/* --------------------------------------------------------------------------
   components · 折叠问答
   -------------------------------------------------------------------------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item summary {
  position: relative;
  padding: 12px 42px 12px 16px;
  color: var(--indigo);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item > p,
.faq-item .faq-answer {
  padding: 12px 16px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-answer p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   components · 相关入口
   -------------------------------------------------------------------------- */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
}

.related-links-item:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.related-card {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.related-card h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.related-card p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.related-title {
  width: 100%;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
}

.related-list a {
  display: block;
}

.related-name {
  display: block;
  color: var(--indigo);
  font-size: 0.96rem;
  font-weight: 600;
}

.related-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

.entry-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.entry-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.entry-title {
  color: var(--indigo);
  font-size: 0.96rem;
  font-weight: 600;
}

.entry-desc {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 24px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px 36px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 44px 20px 0;
}

.footer-mark {
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 700;
}

.footer-slogan {
  margin-top: 6px;
  color: var(--footer-ink);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.footer-tags li {
  padding: 1px 10px;
  border: 1px solid #2b3140;
  border-radius: 999px;
  color: #9aa1b2;
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-col a {
  display: inline-block;
  padding: 3px 0;
  color: var(--footer-ink);
  font-size: 0.88rem;
}

.footer-nav-col a:hover {
  color: #ffffff;
}

.footer-statement p {
  color: #9aa1b2;
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 8px;
  padding: 16px 0 22px;
  border-top: 1px solid #262c3a;
}

.footer-bottom p {
  color: #8a91a3;
  font-size: 0.78rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media {
  aspect-ratio: 16 / 9;
  background: var(--indigo-soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-board {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 22px 24px 4px;
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 220px;
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.32;
}

.hero-lead {
  margin-top: 10px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.85;
}

.hero-status {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 260px;
}

.hero-status-note {
  flex: 1 1 100%;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 24px;
}

.hero-meta {
  flex: 1 1 260px;
  min-width: 200px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.batch-board .data-table {
  margin-top: 4px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.genre-card {
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.genre-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.genre-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.genre-card p {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
}

.genre-card .tag-pill {
  margin-top: 10px;
}

.genre-figure {
  margin-top: 16px;
}

.genre-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rank-board .rank-list {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(90px, 1.1fr) auto minmax(80px, 1.6fr) minmax(70px, auto);
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #faf8f4;
}

.rank-no {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.rank-genre {
  color: var(--indigo);
  font-size: 0.94rem;
  font-weight: 600;
}

.rank-bar {
  display: block;
  height: 6px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.rank-bar-fill {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: 999px;
}

.rank-fill-40 { width: 40%; }
.rank-fill-50 { width: 50%; }
.rank-fill-60 { width: 60%; }
.rank-fill-70 { width: 70%; }
.rank-fill-80 { width: 80%; }
.rank-fill-90 { width: 90%; }

.rank-bar-fill--44 { width: 44%; }
.rank-bar-fill--52 { width: 52%; }
.rank-bar-fill--60 { width: 60%; }
.rank-bar-fill--68 { width: 68%; }
.rank-bar-fill--76 { width: 76%; }
.rank-bar-fill--84 { width: 84%; }
.rank-bar-fill--92 { width: 92%; }
.rank-bar-fill--100 { width: 100%; }

.rank-range {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.rank-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.topic-card {
  padding: 18px;
  border-left: 1px solid var(--line-soft);
}

.topic-card:first-child {
  border-left: 0;
}

.topic-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.topic-card p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.topic-count {
  display: inline-block;
  margin-top: 10px;
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.flow-step {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-no {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
}

.flow-step h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.flow-step p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.faq-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.faq-brief-main h2 {
  position: relative;
  margin-bottom: 14px;
  padding-left: 12px;
  font-size: 1.25rem;
}

.faq-brief-main h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.faq-brief-side {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-brief-side h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.faq-brief-side p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 题材分类
   -------------------------------------------------------------------------- */

.filter-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
  margin-top: 4px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.filter-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-table {
  margin-top: 36px;
}

.catalog-table .data-table {
  margin-top: 4px;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.guide-block {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-block h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.guide-block p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.78;
}

.guide-footnote {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.related-links .related-card {
  flex: 1 1 220px;
}

/* --------------------------------------------------------------------------
   pages · 更新目录
   -------------------------------------------------------------------------- */

.section-figure {
  margin-bottom: 16px;
}

.section-figure img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.batch-table {
  margin-top: 4px;
}

.table-hint {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.col-block {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.col-block h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.col-block p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.78;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-no {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

.step-name {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.step-desc {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 榜单专题
   -------------------------------------------------------------------------- */

.section-media {
  margin-bottom: 16px;
}

.section-media img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-section .rank-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.rank-chapter {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.rank-footnote {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.topic-section .topic-grid {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  gap: 16px;
}

.topic-section .topic-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.topic-section .topic-card:first-child {
  border-left: 1px solid var(--line);
}

.topic-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-name {
  padding: 14px 16px 0;
  font-size: 1.02rem;
}

.topic-section .topic-tags {
  padding: 0 16px;
  margin: 10px 0;
}

.topic-section .topic-tags li {
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.topic-section .topic-count {
  margin: 0 16px;
}

.topic-desc {
  margin: 10px 16px 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.78;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 6px 16px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.topic-link:hover {
  border-bottom-color: var(--coral);
}

.basis-section {
  margin-top: 40px;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.basis-col {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.basis-col h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.basis-col p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.basis-col p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   pages · 阅读说明
   -------------------------------------------------------------------------- */

.guide-definition {
  margin-top: 32px;
}

.guide-definition h2 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 12px;
  font-size: 1.25rem;
}

.guide-definition h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.guide-definition-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-definition-line {
  grid-column: 1;
  padding-left: 14px;
  border-left: 3px solid var(--coral);
  color: var(--indigo);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
}

.guide-definition-note {
  grid-column: 1;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.guide-definition-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.guide-definition-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-fields,
.guide-demo,
.guide-glossary,
.guide-flow {
  margin-top: 36px;
}

.guide-fields h2,
.guide-demo h2,
.guide-glossary h2,
.guide-flow h2 {
  position: relative;
  margin-bottom: 8px;
  padding-left: 12px;
  font-size: 1.25rem;
}

.guide-fields h2::before,
.guide-demo h2::before,
.guide-glossary h2::before,
.guide-flow h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.field-list {
  border-top: 1px solid var(--line);
}

.field-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.field-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.field-def {
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.7;
}

.field-explain {
  margin-top: 6px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.field-example {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.field-example .mono {
  color: var(--indigo);
}

.demo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.demo-card,
.demo-read {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.demo-card h3,
.demo-read h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.demo-fields {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 0.88rem;
}

.demo-fields dt {
  color: var(--ink-soft);
}

.demo-fields dd {
  margin: 0;
  color: var(--indigo);
  font-weight: 600;
}

.chapter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chapter-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.chapter-block.is-read {
  background: #f0eeea;
  border-color: #d6d2c9;
  color: #8b8f9a;
}

.chapter-block.is-current {
  border-color: var(--coral);
  color: var(--coral);
  font-weight: 600;
}

.demo-read p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.demo-read p + p {
  margin-top: 8px;
}

.demo-tip {
  padding: 10px 12px;
  background: #fdf1f3;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #8c3a4c;
}

.glossary-table thead th {
  white-space: nowrap;
}

.glossary-table tbody th {
  width: 150px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.guide-flow .flow-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-num {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
}

.guide-flow .related-links {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   pages · 常见问题
   -------------------------------------------------------------------------- */

.faq-section {
  margin-top: 32px;
}

.faq-media {
  margin: 8px 0 18px;
}

.faq-media img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-group + .faq-group {
  margin-top: 26px;
}

.faq-group-title {
  position: relative;
  margin-bottom: 4px;
  padding-left: 12px;
  font-size: 1.05rem;
}

.faq-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.faq-group-note {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.pending-section,
.ask-section {
  margin-top: 40px;
}

.pending-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.pending-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pending-question {
  color: var(--indigo);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
}

.pending-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.8;
  vertical-align: 1px;
}

.pending-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.75;
}

.ask-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.ask-col {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ask-col h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.plain-list {
  display: grid;
  gap: 6px;
}

.plain-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.75;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--coral);
  border-radius: 50%;
}

.related-links .related-card {
  min-height: 44px;
}

.related-card .related-title {
  display: block;
  color: var(--indigo);
  font-size: 0.96rem;
  font-weight: 600;
}

.related-card .related-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 站点说明
   -------------------------------------------------------------------------- */

.section-scope,
.section-editorial,
.section-feedback,
.section-structure {
  margin-top: 36px;
}

.media-banner {
  margin-bottom: 16px;
}

.media-banner img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-item h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.scope-item p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.editorial-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editorial-col {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editorial-col h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.editorial-col p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}

.editorial-col p + p {
  margin-top: 8px;
}

.feedback-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.feedback-col {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-col h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.section-structure .data-table {
  margin-top: 4px;
}

.section-structure .data-table tbody th {
  width: 160px;
  font-family: var(--font-sans);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 56px;
}

.error-panel {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.error-code {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.error-title {
  margin-top: 8px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.error-lead {
  margin: 10px auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.8;
}

.error-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.error-hints li {
  padding: 2px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 24px;
  background: var(--indigo);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
}

.error-home-link:hover {
  background: #1a2549;
  color: #ffffff;
}

.error-entry {
  margin-top: 32px;
}

.error-entry h2 {
  position: relative;
  margin-bottom: 12px;
  padding-left: 12px;
  font-size: 1.15rem;
}

.error-entry h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 3px;
  height: 0.82em;
  background: var(--coral);
  border-radius: 2px;
}

.error-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error-entry-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.error-entry-list a:hover {
  border-color: var(--indigo);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-steps,
  .guide-flow .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    order: 3;
  }

  .header-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 12px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 24, 33, 0.08);
  }

  .header-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 12px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 20px;
  }

  .site-main {
    max-width: 100%;
  }

  .side-index,
  .sidebar {
    position: static;
    order: 2;
  }

  .sidebar-left .side-index,
  .sidebar-left .sidebar {
    order: 2;
  }

  .side-index-list,
  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .side-index-list a,
  .sidebar-nav a {
    padding: 6px 12px;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .side-index-list a.is-current,
  .sidebar-nav a.is-current {
    border-color: var(--indigo);
    background: var(--indigo);
    color: #ffffff;
  }

  .side-index-note,
  .side-note,
  .sidebar-note {
    margin-top: 12px;
  }

  .faq-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-figure {
    max-width: 420px;
  }

  .guide-definition-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-definition-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .guide-definition-figure img {
    aspect-ratio: 16 / 9;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-card {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .topic-card:first-child {
    border-top: 0;
  }

  .topic-section .topic-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .three-col,
  .ask-columns,
  .feedback-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .basis-grid,
  .editorial-cols,
  .scope-grid,
  .demo-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: 58px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 1.06rem;
  }

  .brand-sub {
    display: none;
  }

  .header-nav {
    top: 58px;
    padding: 10px 16px 16px;
  }

  .page-layout {
    padding: 16px 16px 40px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-lead,
  .page-lede {
    flex: 1 1 auto;
  }

  .section {
    margin-top: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-board {
    padding: 18px 16px 0;
  }

  .hero-actions {
    padding: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .hero-status {
    max-width: 100%;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .genre-card {
    padding: 12px;
  }

  .rank-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "no genre badge"
      "bar bar bar"
      "range range range";
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .rank-row .rank-no {
    grid-area: no;
  }

  .rank-row .rank-genre {
    grid-area: genre;
  }

  .rank-row .status-badge,
  .rank-row .status-tag {
    grid-area: badge;
    justify-self: end;
  }

  .rank-row .rank-bar {
    grid-area: bar;
  }

  .rank-row .rank-range,
  .rank-row .rank-chapter {
    grid-area: range;
    text-align: left;
  }

  .flow-steps,
  .guide-flow .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .pending-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td,
  .data-table tbody th {
    display: block;
    width: 100%;
  }

  .data-table {
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .data-table tbody tr {
    margin-bottom: 10px;
    padding: 4px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody td,
  .data-table tbody th {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    white-space: normal;
  }

  .data-table tbody tr td:last-child,
  .data-table tbody tr th:last-child {
    border-bottom: 0;
  }

  .data-table tbody td::before {
    content: attr(data-label);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 400;
  }

  .data-table .cell-num,
  .data-table .cell-code {
    text-align: left;
  }

  .glossary-table tbody th {
    width: auto;
  }

  .section-structure .data-table tbody th {
    width: auto;
  }

  .demo-fields {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 0;
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 20px;
  }

  .error-main {
    padding: 32px 16px 40px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links {
    padding: 14px;
  }

  .related-list,
  .entry-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table tbody td,
  .data-table tbody th {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .status-tags {
    gap: 6px;
  }

  .status-badge,
  .status-tag,
  .tag,
  .tag-pill {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
