/* ==========================================================================
   风车动漫 lggyy.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --bg-page: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-soft: #EDEFF3;
  --line-blue: #1F5FBF;
  --line-blue-dark: #17448A;
  --line-blue-soft: #E3ECFA;
  --line-hotblood: #C0392B;
  --line-daily: #2E8B57;
  --line-mystery: #6C3FA0;
  --line-fantasy: #D68910;
  --text-main: #1B1F24;
  --text-sub: #5A6470;
  --text-icon: #0F172A;
  --border: #DCE0E6;
  --border-strong: #C3CAD4;
  --radius-card: 8px;
  --radius-chip: 4px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 16px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 12px 26px rgba(15, 23, 42, 0.1);
  --font-title: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1180px;
  --gap: 20px;
  --read-scale: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dd, dt, figure, figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--line-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--line-blue-dark);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--line-blue);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--line-blue);
  color: #fff;
  border-radius: var(--radius-chip);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架：页头 / 导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* —— 页头 —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: var(--radius-chip);
  background-color: var(--line-blue);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #fff;
  border-radius: 1px;
}

.brand-mark::before {
  width: 2px;
  height: 20px;
  transform: translate(-50%, -50%) rotate(0deg);
}

.brand-mark::after {
  width: 2px;
  height: 20px;
  transform: translate(-50%, -50%) rotate(60deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-sub);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-chip);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-icon);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  border-radius: var(--radius-chip);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--line-blue);
  background-color: var(--line-blue-soft);
}

.nav-link.is-current {
  color: var(--line-blue-dark);
  font-weight: 600;
  border-bottom-color: var(--line-blue);
  background-color: var(--line-blue-soft);
}

.font-control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.font-control-label {
  padding: 0 6px 0 8px;
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}

.font-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.font-btn:hover,
.font-btn:focus-visible {
  color: var(--line-blue);
  border-color: var(--line-blue);
}

.font-btn.is-active {
  color: #fff;
  background-color: var(--line-blue);
  border-color: var(--line-blue);
}

/* —— 主内容容器 —— */

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 18px;
}

.section {
  margin-top: 44px;
  font-size: calc(16px * var(--read-scale));
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: calc(22px * var(--read-scale));
  font-weight: 600;
  color: var(--text-main);
}

.section-desc,
.section-sub,
.section-intro,
.section-lead {
  margin-top: 8px;
  max-width: 78ch;
  font-size: calc(15px * var(--read-scale));
  color: var(--text-sub);
}

.section-more {
  margin-top: 16px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-chip);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.more-link::after {
  content: "→";
  font-size: 14px;
}

.more-link:hover,
.more-link:focus-visible {
  color: #fff;
  background-color: var(--line-blue);
  border-color: var(--line-blue);
}

/* —— 面包屑与内页标题区 —— */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
  font-size: 14px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
  padding: 4px 2px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--line-blue);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.page-header {
  margin-top: 14px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line-blue);
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-main);
}

.page-description {
  margin-top: 10px;
  max-width: 82ch;
  font-size: 16px;
  color: var(--text-sub);
}

.page-description a {
  font-weight: 600;
}

/* —— 页脚 —— */

.site-footer {
  margin-top: 48px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--text-sub);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--line-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background-color: var(--bg-soft);
}

.footer-copy {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   components — 通用组件：题材线路卡、封面卡、更新行、榜单、字段表
   -------------------------------------------------------------------------- */

/* —— 题材线路卡（首页） —— */

.topic-lines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--line-blue);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-line:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.topic-line.line-hotblood { border-top-color: var(--line-hotblood); }
.topic-line.line-daily { border-top-color: var(--line-daily); }
.topic-line.line-mystery { border-top-color: var(--line-mystery); }
.topic-line.line-fantasy { border-top-color: var(--line-fantasy); }

.line-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text-sub);
}

.line-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.line-feature {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
}

.line-entry {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
  background-color: var(--line-blue-soft);
  border-radius: var(--radius-chip);
}

.line-entry::after {
  content: "→";
  margin-left: 6px;
  font-size: 13px;
}

.line-entry:hover,
.line-entry:focus-visible {
  color: #fff;
  background-color: var(--line-blue);
}

/* —— 时刻表式更新行 —— */

.update-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.update-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.4fr) 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-row:hover {
  background-color: var(--bg-soft);
}

.update-date,
.update-row-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
}

.update-name,
.update-row-name {
  font-weight: 600;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: break-word;
}

.update-row-name a {
  color: var(--text-main);
}

.update-row-name a:hover,
.update-row-name a:focus-visible {
  color: var(--line-blue);
}

.update-topic,
.update-row-topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.update-row-topic.topic-rexue { color: var(--line-hotblood); border-color: var(--line-hotblood); background-color: #FBEAE8; }
.update-row-topic.topic-richang { color: var(--line-daily); border-color: var(--line-daily); background-color: #E8F5EE; }
.update-row-topic.topic-xuanyi { color: var(--line-mystery); border-color: var(--line-mystery); background-color: #EFE8F7; }
.update-row-topic.topic-qihuan { color: var(--line-fantasy); border-color: var(--line-fantasy); background-color: #FBF0DE; }

.update-node,
.update-row-node {
  font-size: 14px;
  color: var(--text-sub);
  text-align: right;
  min-width: 0;
  overflow-wrap: break-word;
}

/* —— 封面墙与条目入口 —— */

.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.cover-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.cover-card:nth-child(4n + 1) .cover-media { aspect-ratio: 3 / 4; }
.cover-card:nth-child(4n + 2) .cover-media { aspect-ratio: 4 / 5; }
.cover-card:nth-child(4n + 3) .cover-media { aspect-ratio: 1 / 1; }
.cover-card:nth-child(4n + 4) .cover-media { aspect-ratio: 5 / 6; }

.cover-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background-color: var(--line-blue);
  border-radius: var(--radius-chip);
}

.cover-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.cover-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.cover-topic {
  font-size: 13px;
  color: var(--text-sub);
}

.cover-entry {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
}

.cover-entry::after {
  content: "→";
  margin-left: 6px;
  font-size: 13px;
}

.cover-entry:hover,
.cover-entry:focus-visible {
  color: var(--line-blue-dark);
}

/* —— 人气榜单位次参考（首页） —— */

.rank-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 130px;
  grid-template-areas:
    "no name topic"
    "no note topic";
  align-items: center;
  gap: 2px 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item:hover {
  background-color: var(--bg-soft);
}

.rank-no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--line-blue);
  text-align: center;
}

.rank-name {
  grid-area: name;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: break-word;
}

.rank-note {
  grid-area: note;
  font-size: 14px;
  color: var(--text-sub);
  min-width: 0;
}

.rank-topic {
  grid-area: topic;
  justify-self: end;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* —— 字段口径表 —— */

.field-table {
  width: 100%;
  font-size: 15px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.field-table caption {
  text-align: left;
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.field-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-soft);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--text-sub);
}

/* —— 相关入口（内页通用） —— */

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  min-width: 0;
}

.related-item a,
.related-item .related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-item a:hover,
.related-item a:focus-visible {
  box-shadow: var(--shadow-card);
  border-left-color: var(--line-blue-dark);
}

.related-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.related-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.related-entry {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.fact-bar {
  margin: 0;
  padding: 9px 24px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.home-main {
  padding-top: 28px;
}

/* —— 首屏线路查询区 —— */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 26px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--line-blue);
  box-shadow: var(--shadow-card);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--line-blue);
}

.hero-title {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}

.hero-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-sub);
}

.hero-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.hero-path a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  background-color: var(--line-blue-soft);
  border: 1px solid #C9D9F2;
  border-radius: var(--radius-card);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hero-path a:hover,
.hero-path a:focus-visible {
  background-color: #D5E3FA;
  border-color: var(--line-blue);
}

.hero-path-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--line-blue-dark);
}

.hero-path-note {
  font-size: 13px;
  color: var(--text-sub);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  min-width: 0;
}

.hero-stat dt {
  font-size: 13px;
  color: var(--text-sub);
}

.hero-stat dd {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  overflow-wrap: break-word;
}

.hero-media {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

/* —— 条目字段与收录边界摘要 —— */

.fields-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.fields-col {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.fields-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.fields-col-table .field-table {
  margin-top: 12px;
  border: 0;
  border-radius: 0;
}

.fields-col-table .field-table th,
.fields-col-table .field-table td {
  padding: 9px 10px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.notes-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--line-blue);
  border-radius: 2px;
}

.fields-more {
  margin-top: 14px;
}

/* —— 站内栏目索引 —— */

.directory-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.directory-item {
  min-width: 0;
}

.directory-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 14px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.directory-item a:hover,
.directory-item a:focus-visible {
  border-color: var(--line-blue);
  box-shadow: var(--shadow-card);
}

.directory-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.directory-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 题材分类 topics.html
   -------------------------------------------------------------------------- */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.scope-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.scope-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.scope-item-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.topic-line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.topic-line-grid .topic-line {
  border-top-width: 4px;
}

.topic-line-grid .topic-line--action { border-top-color: var(--line-hotblood); }
.topic-line-grid .topic-line--daily { border-top-color: var(--line-daily); }
.topic-line-grid .topic-line--mystery { border-top-color: var(--line-mystery); }
.topic-line-grid .topic-line--fantasy { border-top-color: var(--line-fantasy); }

.topic-line-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.topic-line-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.topic-line-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
}

.topic-line-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.topic-line-points li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
}

.topic-line-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background-color: var(--border-strong);
  border-radius: 50%;
}

.topic-group {
  margin-top: 26px;
  padding: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--line-blue);
}

.topic-group--action { border-left-color: var(--line-hotblood); }
.topic-group--daily { border-left-color: var(--line-daily); }
.topic-group--mystery { border-left-color: var(--line-mystery); }
.topic-group--fantasy { border-left-color: var(--line-fantasy); }

.topic-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.topic-group-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.topic-group-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.topic-group-note {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-sub);
}

.topic-entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.topic-entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.topic-entry-figure {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background-color: var(--bg-soft);
}

.topic-entry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-entry-body {
  min-width: 0;
}

.topic-entry-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.topic-entry-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  font-size: 12px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.topic-entry-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--line-blue);
  background-color: var(--line-blue-soft);
  border-radius: var(--radius-chip);
}

.entry-link::after {
  content: "→";
  margin-left: 6px;
  font-size: 13px;
}

.entry-link:hover,
.entry-link:focus-visible {
  color: #fff;
  background-color: var(--line-blue);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--line-blue);
}

.related-card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
}

.related-card-name {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.related-card-name a {
  color: var(--text-main);
}

.related-card-name a:hover,
.related-card-name a:focus-visible {
  color: var(--line-blue);
}

.related-card-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   pages — 最近更新 updates.html
   -------------------------------------------------------------------------- */

.update-scope .scope-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.update-list .section-lead {
  margin-bottom: 16px;
}

.update-group {
  margin-top: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.update-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 18px;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.update-group-date {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.update-group-date time {
  font-family: var(--font-mono);
}

.update-group-count {
  font-size: 13px;
  color: var(--text-sub);
}

.update-rows {
  display: flex;
  flex-direction: column;
}

.update-rows .update-row:last-child {
  border-bottom: 0;
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.rhythm-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.rhythm-media {
  min-width: 0;
  border-radius: var(--radius-chip);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.rhythm-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rhythm-caption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.rhythm-text {
  min-width: 0;
}

.rhythm-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.rhythm-text p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.rhythm-aside {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.rhythm-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.rhythm-point {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.rhythm-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--line-blue);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   pages — 人气榜单 ranking.html
   -------------------------------------------------------------------------- */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ranking-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.ranking-figure {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-chip);
  background-color: var(--bg-soft);
}

.ranking-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-body {
  min-width: 0;
}

.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: var(--line-blue);
  border-radius: var(--radius-chip);
}

.ranking-name {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.ranking-note {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.ranking-topic {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.ranking-body .entry-link {
  margin-left: 10px;
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.scope-main {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.scope-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
}

.scope-text + .scope-text {
  margin-top: 12px;
}

.scope-aside {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.scope-aside-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.scope-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--line-blue);
  border-radius: 2px;
}

.related-section .section-intro {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   pages — 条目字段说明 fields.html
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.aside-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.aside-list {
  margin-top: 14px;
}

.aside-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.aside-row:last-child {
  border-bottom: 0;
}

.aside-term {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.aside-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
}

.aside-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-sub);
}

.field-figure {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-soft);
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure-caption {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.table-wrap {
  margin-top: 18px;
}

.table-wrap .field-table {
  min-width: 520px;
}

.section-boundaries {
  margin-top: 40px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 16px;
}

.boundary-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.boundary-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.boundary-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sub);
}

.section-note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-sub);
}

.section-note a {
  font-weight: 600;
  margin-right: 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--line-blue);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--line-blue);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 32px;
}

.error-panel {
  padding: 32px 28px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--line-blue);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--line-blue);
}

.error-title {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
}

.error-text {
  margin-top: 10px;
  max-width: 68ch;
  font-size: 16px;
  color: var(--text-sub);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--line-blue);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-chip);
}

.error-btn:hover,
.error-btn:focus-visible {
  border-color: var(--line-blue);
  background-color: var(--line-blue-soft);
}

.error-btn-primary {
  color: #fff;
  background-color: var(--line-blue);
  border-color: var(--line-blue);
}

.error-btn-primary:hover,
.error-btn-primary:focus-visible {
  color: #fff;
  background-color: var(--line-blue-dark);
  border-color: var(--line-blue-dark);
}

.error-guide {
  margin-top: 32px;
}

.error-guide-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.error-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.error-guide-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-blue);
  border-radius: var(--radius-card);
}

.error-guide-list a:hover,
.error-guide-list a:focus-visible {
  border-left-color: var(--line-blue-dark);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   responsive — 1024 / 768 / 480
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .topic-lines,
  .topic-line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scope-grid,
  .update-scope .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout,
  .scope-layout,
  .rhythm-layout,
  .fields-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-left-color: var(--line-blue);
  }

  .font-control {
    flex: 0 0 auto;
  }

  .font-control-label {
    display: none;
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero {
    padding: 18px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat dd {
    font-size: 16px;
  }

  .update-row,
  .update-rows .update-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date topic"
      "name name"
      "node node";
    gap: 4px 10px;
    padding: 12px 14px;
  }

  .update-row .update-date,
  .update-rows .update-row-date {
    grid-area: date;
  }

  .update-row .update-name,
  .update-rows .update-row-name {
    grid-area: name;
    font-size: 16px;
  }

  .update-row .update-topic,
  .update-rows .update-row-topic {
    grid-area: topic;
    justify-self: end;
  }

  .update-row .update-node,
  .update-rows .update-row-node {
    grid-area: node;
    text-align: left;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "no name"
      "no note"
      "no topic";
    gap: 4px 12px;
    padding: 12px 14px;
  }

  .rank-topic {
    justify-self: start;
  }

  .topic-entry {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .related-list,
  .related-grid,
  .error-guide-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhythm-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 22px;
  }

  .footer-copy {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .fact-bar {
    padding: 8px 16px;
    font-size: 12px;
    text-align: left;
  }

  .brand-slogan {
    display: none;
  }

  .topic-lines,
  .topic-line-grid,
  .cover-wall,
  .scope-grid,
  .update-scope .scope-grid,
  .boundary-list,
  .directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-entry,
  .ranking-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-entry-figure,
  .ranking-figure {
    aspect-ratio: 16 / 9;
  }

  .ranking-body .entry-link {
    margin-left: 0;
  }

  .section {
    margin-top: 32px;
  }

  .section-title {
    font-size: calc(20px * var(--read-scale));
  }

  .error-code {
    font-size: 36px;
  }

  .error-panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
