/* ==========================================================================
   韩漫榜 xzwsql.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f7f5f0;
  --ink: #1f2a2b;
  --ink-soft: #4a5658;
  --primary: #20514a;
  --primary-dark: #173d38;
  --accent: #e07a3f;
  --slate: #2f3a4a;
  --line: #d8d4ca;
  --line-strong: #b9b3a6;
  --footer-bg: #16211f;
  --footer-ink: #e8ece9;
  --footer-muted: #a7b4ae;
  --surface: #fffdf9;
  --surface-alt: #f1eee6;
  --container: 1180px;
  --gutter: 24px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(31, 42, 43, 0.05);
  --font-stack: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::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-stack);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 8px;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.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 {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand:hover .brand-tagline,
.brand:focus-visible .brand-tagline {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-item a:hover,
.nav-item a:focus-visible {
  color: var(--primary);
  background: var(--surface-alt);
}

.nav-item a.is-current {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.home-main {
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 10px 0 0;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  max-width: 900px;
}

.page-head {
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

.page-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* 内页统一双栏布局：主内容在前，aside 在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 88px;
}

.container {
  display: block;
}

/* --------------------------------------------------------------------------
   components
   -------------------------------------------------------------------------- */

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  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);
}

/* 区块通用头 */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-lead,
.section-intro,
.section-desc,
.section-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
}

.section-more {
  margin: 22px 0 0;
  font-size: 15px;
}

.section-more a {
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: middle;
}

.status-dot.status-complete,
.status-dot.status-full {
  background: var(--primary);
}

.status-dot.status-review,
.status-dot.status-pending {
  background: var(--accent);
}

.status-dot.status-partial {
  background: var(--slate);
}

/* 通用相关入口带 */
.related-band {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.related-list,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.related-list li a,
.related-links li a,
.related-item a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.related-list li a:hover,
.related-links li a:hover,
.related-item a:hover,
.related-list li a:focus-visible,
.related-links li a:focus-visible,
.related-item a:focus-visible {
  border-color: var(--primary);
  background: var(--surface-alt);
  transform: translateY(-2px);
}

/* 图片容器统一约束 */
.hero-media img,
.entry-cover img,
.ranking-figure img,
.genre-figure img,
.page-media img,
.guide-figure img,
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏定位区 */
.hero {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 44px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-text h1 {
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-points {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.hero-media {
  margin: 0;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

/* 题材分区索引图 */
.genre-map {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-top: 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.genre-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.genre-cell:hover,
.genre-cell:focus-visible {
  border-color: var(--primary);
  border-left-color: var(--primary);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.genre-cell .genre-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.genre-cell .genre-tags {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.genre-cell .genre-scope {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 榜单观察摘要 */
.ranking-brief {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.ranking-list {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background-color 160ms ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: var(--surface-alt);
}

.ranking-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.ranking-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.ranking-genre {
  font-size: 13px;
  color: var(--primary);
  padding: 2px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  justify-self: start;
}

.ranking-structure {
  font-size: 14px;
  color: var(--ink-soft);
}

.ranking-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.note-block {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.note-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 更新记录分类摘要 */
.updates-brief {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.updates-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.updates-col {
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.updates-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.update-list {
  display: grid;
  gap: 10px;
}

.update-item {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.update-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-date {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.update-entry {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.update-point {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 条目预览 */
.entry-preview {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover,
.entry-card:focus-within {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.entry-cover {
  margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--surface-alt);
  overflow: hidden;
}

.entry-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.entry-genre {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--primary);
  padding: 2px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.entry-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.entry-name a {
  color: var(--ink);
}

.entry-name a:hover,
.entry-name a:focus-visible {
  color: var(--primary);
}

.entry-structure {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.entry-status {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}

/* 追更三步 */
.follow-steps {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  padding: 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* 整理说明摘要 */
.editorial-brief {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.editorial-points {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.editorial-points li {
  position: relative;
  padding: 12px 16px 12px 40px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editorial-points li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   pages — 榜单观察
   -------------------------------------------------------------------------- */

.page-ranking .page-title-block {
  margin-top: 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.page-ranking .title-block-inner {
  max-width: 760px;
}

.page-ranking .title-kicker {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}

.page-ranking .title-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.page-ranking .section-caliber {
  border-top: 0;
  padding-top: 28px;
}

.caliber-list {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.caliber-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.caliber-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.caliber-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.ranking-figure {
  margin: 0 0 20px;
}

.ranking-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-table {
  min-width: 640px;
  font-size: 14px;
}

.ranking-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.ranking-table tbody tr:last-child {
  border-bottom: 0;
}

.ranking-table tbody tr:hover {
  background: var(--surface-alt);
}

.ranking-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ranking-table tbody td:first-child {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ranking-table tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
}

.ranking-table .group-row td {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
}

.ranking-table .status-dot {
  margin-right: 6px;
}

.table-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.notes-list {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.note-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.note-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.aside-lead {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.aside-points {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.aside-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.aside-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.aside-links {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-links-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.aside-links ul {
  display: grid;
  gap: 8px;
}

.aside-links ul li a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--primary);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.aside-links ul li:last-child a {
  border-bottom: 0;
}

.section-related {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 28px;
}

.section-related h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-related p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   pages — 题材分区
   -------------------------------------------------------------------------- */

.page-genres .page-head {
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.genre-anchor {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.genre-anchor .section-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-anchor .section-note {
  margin-bottom: 12px;
  font-size: 14px;
}

.anchor-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.anchor-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.anchor-link:hover,
.anchor-link:focus-visible {
  border-color: var(--primary);
  background: var(--surface-alt);
}

.page-genres .genre-map {
  padding: 28px 0;
  border-top: 0;
  max-width: none;
  margin: 0;
}

.genre-figure {
  margin: 16px 0 0;
}

.genre-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.genre-body {
  padding: 8px 0 32px;
}

.genre-body > .section-title {
  margin-bottom: 20px;
}

.genre-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.genre-block:first-of-type {
  border-top: 1px solid var(--line);
}

.genre-block .genre-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.genre-block .genre-scope {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 14px;
}

.genre-block .genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.genre-block .genre-tag {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.genre-block .genre-entries {
  display: grid;
  gap: 6px;
}

.genre-block .genre-entries li a {
  display: inline-block;
  font-size: 15px;
  line-height: 1.7;
  color: var(--primary);
  border-bottom: 1px solid transparent;
}

.genre-block .genre-entries li a:hover,
.genre-block .genre-entries li a:focus-visible {
  border-bottom-color: var(--accent);
}

.genre-diff {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.genre-diff .section-title {
  margin-bottom: 16px;
}

.diff-block {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.diff-block:last-child {
  margin-bottom: 0;
}

.diff-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.diff-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages — 条目总览
   -------------------------------------------------------------------------- */

.page-catalog .page-head {
  border-bottom: 0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.catalog-fields,
.catalog-grid-section,
.status-legend {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.catalog-fields {
  border-top: 0;
  padding-top: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.field-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.field-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.catalog-grid .entry-card {
  scroll-margin-top: 88px;
}

.catalog-grid .entry-advance {
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-col {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-col-head {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.status-col-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 更新记录
   -------------------------------------------------------------------------- */

.page-updates .page-head {
  border-bottom: 0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.page-media {
  margin: 0 0 8px;
}

.page-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.record-defs,
.record-block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.record-defs {
  border-top: 0;
  padding-top: 8px;
}

.record-defs h2,
.record-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.record-defs .section-intro,
.record-block .section-intro {
  margin-bottom: 16px;
}

.record-def-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.record-def {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.record-def h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.record-def p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.record-table {
  min-width: 560px;
  font-size: 14px;
}

.record-table caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.record-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.record-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.record-table tbody tr:last-child {
  border-bottom: 0;
}

.record-table tbody tr:hover {
  background: var(--surface-alt);
}

.record-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.7;
  color: var(--ink-soft);
}

.record-table tbody td:first-child {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.record-table tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
}

.record-table .cell-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   pages — 追更说明
   -------------------------------------------------------------------------- */

.page-reading-guide .page-hero {
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-hero-inner {
  max-width: 800px;
}

.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-hero .page-lead {
  margin: 0;
}

.guide-steps,
.guide-paths,
.guide-faq {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.guide-steps {
  border-top: 0;
  padding-top: 20px;
}

.guide-figure {
  margin: 0 0 22px;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
}

.step-body .step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.path-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.path-fit {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.path-steps {
  display: grid;
  gap: 8px;
  counter-reset: pathstep;
}

.path-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  counter-increment: pathstep;
}

.path-steps li::before {
  content: counter(pathstep);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--slate);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.faq-question:hover {
  color: var(--primary);
  background: var(--surface-alt);
}

.faq-answer {
  padding: 0 20px 18px 38px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.guide-faq .related-inner {
  display: block;
}

.related-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 760px;
}

.text-link {
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   pages — 整理说明
   -------------------------------------------------------------------------- */

.page-editorial .page-hero {
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--line);
}

.page-editorial .page-hero .page-lead {
  max-width: 800px;
}

.page-editorial .page-layout {
  margin-top: 28px;
}

.content-section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.content-section .section-head {
  margin-bottom: 16px;
}

.media-figure {
  margin: 0 0 20px;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.principle-list {
  display: grid;
  gap: 16px;
}

.principle-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}

.principle-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.principle-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.principle-item p:last-child {
  margin-bottom: 0;
}

.field-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.field-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.field-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.content-section .section-note {
  margin-top: 14px;
  font-size: 14px;
}

.content-section .section-note a {
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
}

.aside-block + .aside-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.correction-list {
  display: grid;
  gap: 12px;
  counter-reset: correction;
}

.correction-item {
  position: relative;
  padding-left: 0;
}

.correction-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.correction-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.aside-link {
  margin-top: 14px;
  font-size: 14px;
}

.aside-link a {
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.boundary-list {
  display: grid;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 72px;
}

.error-panel {
  max-width: 640px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-main h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.error-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--primary);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.error-links li a:hover,
.error-links li a:focus-visible {
  border-color: var(--primary);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--footer-bg);
  background: var(--footer-ink);
  border-radius: var(--radius-sm);
}

.footer-slogan {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--footer-ink);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-muted);
  margin: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--footer-ink);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.footer-links li a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-muted);
  padding: 3px 0;
}

.footer-links li a:hover,
.footer-links li a:focus-visible {
  color: var(--footer-ink);
}

.footer-points {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-muted);
}

.footer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.footer-feedback {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.footer-feedback a {
  color: var(--footer-ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.footer-feedback a:hover,
.footer-feedback a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid rgba(232, 236, 233, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-logo-small {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--footer-ink);
}

.footer-bottom p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--footer-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
  }

  .footer-boundary {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(232, 236, 233, 0.16);
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    min-height: 60px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    flex-basis: 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-item:last-child a {
    border-bottom: 0;
  }

  .nav-item a.is-current {
    border-bottom-color: var(--line);
    background: var(--surface-alt);
  }

  .page-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .layout-aside {
    position: static;
    top: auto;
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.32;
  }

  .hero-media {
    order: 2;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 30px 0;
  }

  .section-head h2,
  .section-title,
  .record-defs h2,
  .record-block h2 {
    font-size: 20px;
  }

  .ranking-row {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "num name"
      "num genre"
      "num structure";
    gap: 4px 12px;
    padding: 12px 14px;
  }

  .ranking-num {
    grid-area: num;
    align-self: start;
    font-size: 20px;
    padding-top: 2px;
  }

  .ranking-name {
    grid-area: name;
  }

  .ranking-genre {
    grid-area: genre;
  }

  .ranking-structure {
    grid-area: structure;
  }

  .ranking-notes,
  .updates-columns,
  .steps,
  .entry-grid,
  .field-grid,
  .catalog-grid,
  .status-columns,
  .record-def-grid,
  .path-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card {
    flex-direction: row;
    align-items: stretch;
  }

  .entry-cover {
    flex: 0 0 132px;
    width: 132px;
    aspect-ratio: auto;
    min-height: 176px;
  }

  .entry-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
  }

  .catalog-grid .entry-card {
    flex-direction: column;
  }

  .catalog-grid .entry-cover {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-index {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .footer-boundary {
    grid-column: auto;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-main {
    padding: 36px var(--gutter) 52px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-main h1 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 27px;
  }

  .hero-text h1 {
    font-size: 27px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-figure img,
  .genre-figure img,
  .page-media img,
  .guide-figure img,
  .media-figure img {
    aspect-ratio: 16 / 9;
  }

  .breadcrumb {
    font-size: 12px;
    padding: 14px 0 4px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 16px 34px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 390px) {
  .brand-tagline {
    font-size: 16px;
  }

  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card {
    flex-direction: column;
  }

  .entry-cover {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .related-list li a,
  .related-links li a,
  .related-item a,
  .anchor-link {
    width: 100%;
    justify-content: flex-start;
  }

  .related-list,
  .related-links {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
