:root {
  --c-ink: #24292e;
  --c-muted: #5f6b73;
  --c-line: #dfe3e5;
  --c-accent: #1c6b64;
  --c-accent-dark: #14524c;
  --c-soft: #eef3f2;
  --c-bg: #fbfcfc;
  --c-white: #ffffff;
  --r-sm: 2px;
  --r-md: 3px;
  --shell-max: 1340px;
  --side-w: 260px;
  --main-max: 880px;
  --gap-col: 40px;
  --gap-sec: 32px;
}

/* ============================================================
   base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  font-feature-settings: "tnum" 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  padding-bottom: 10px;
  color: var(--c-muted);
  font-size: 13px;
  text-align: left;
}

strong {
  font-weight: 600;
}

/* ============================================================
   layout
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-bg);
}

.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--c-ink);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-ink);
  text-decoration: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-slogan {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  padding: 10px 16px;
  min-height: 44px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-size: 14px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.site-nav {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}

.nav-tree {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-node {
  display: flex;
}

.nav-node > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--c-ink);
  font-size: 14px;
  text-decoration: none;
}

.nav-node > a:hover,
.nav-node > a:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.nav-node.is-current > a {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  font-weight: 600;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 14px;
  margin-left: 14px;
  border-left: 1px solid var(--c-line);
}

.nav-group-title {
  color: var(--c-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding-right: 2px;
}

.nav-group > ul {
  display: flex;
  flex-wrap: wrap;
}

.nav-group .nav-node > a {
  font-size: 14px;
}

.page-layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-main {
  min-width: 0;
  max-width: var(--main-max);
}

.inner-main {
  width: 100%;
}

/* ============================================================
   components
   ============================================================ */
.sidebar,
.side-nav,
.page-aside,
.page-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
  padding-right: 4px;
  border-right: 1px solid var(--c-line);
}

.sidebar-title,
.side-nav-title,
.aside-title {
  margin-bottom: 8px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side-nav-title + .side-tree,
.aside-title + .aside-tree {
  margin-bottom: 20px;
}

.sidebar-tree,
.side-tree,
.aside-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.tree-item > a,
.side-node > a,
.aside-node > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px 6px 12px;
  border-left: 2px solid transparent;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.tree-item > a:hover,
.side-node > a:hover,
.aside-node > a:hover,
.tree-item > a:focus-visible,
.side-node > a:focus-visible,
.aside-node > a:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.tree-item.is-current > a,
.side-node.is-current > a,
.aside-node.is-current > a,
.tree-item > a.is-current,
.side-node > a.is-current,
.aside-node > a.is-current {
  border-left-color: var(--c-accent);
  color: var(--c-accent);
  font-weight: 600;
}

.tree-sub > a {
  padding-left: 26px;
  color: var(--c-muted);
  font-size: 13px;
}

.nav-group-title,
.sidebar-title,
.side-nav-title,
.aside-title,
.tree-title {
  display: block;
}

.side-nav-note,
.sidebar-note {
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink);
}

.page-header {
  margin-bottom: 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-ink);
}

.page-head,
.page-hero,
.page-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--c-line);
}

.page-summary,
.page-lead,
.hero-lead {
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.8;
}

.page-meta,
.page-note {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-note,
.section-intro,
.section-lead {
  margin-bottom: 16px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-foot,
.section-tail,
.block-footnote {
  margin-top: 18px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.related-links-label {
  color: var(--c-muted);
  font-size: 13px;
}

.related-links-item {
  font-size: 14px;
}

/* --- 表格：固定左列维度 --- */
.dim-table,
.term-table {
  width: 100%;
  border-top: 1px solid var(--c-line);
}

.dim-table th,
.dim-table td,
.term-table th,
.term-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
}

.dim-table thead th,
.term-table thead th {
  background: var(--c-soft);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

.dim-table tbody th,
.term-table tbody th {
  color: var(--c-ink);
  font-weight: 600;
  white-space: normal;
}

.dim-table tbody tr:nth-child(even),
.term-table tbody tr:nth-child(even) {
  background: #f7faf9;
}

.dim-table tbody th,
.term-table tbody th {
  width: 22%;
}

/* --- 图片容器 --- */
.hero-media,
.content-media,
.media-block,
.scene-figure,
.rank-figure,
.page-media,
.figure-block,
.sidebar-figure {
  margin: 0;
}

.hero-media img,
.content-media img,
.media-block img,
.scene-figure img,
.rank-figure img,
.page-media img,
.figure-block img,
.sidebar-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--c-soft);
}

.hero-media img {
  aspect-ratio: 16 / 10;
}

.content-media img,
.media-block img,
.page-media img,
.figure-block img {
  aspect-ratio: 16 / 9;
}

.scene-figure img,
.rank-figure img {
  aspect-ratio: 16 / 9;
}

.sidebar-figure img {
  aspect-ratio: 4 / 3;
}

/* --- 列表与说明 --- */
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plain-list > li {
  padding-left: 16px;
  position: relative;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.8;
}

.plain-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--c-accent);
}

.plain-list strong {
  margin-right: 6px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.step-list > li {
  position: relative;
  padding-left: 34px;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.8;
  counter-increment: step;
}

.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.step-list > li strong {
  display: block;
  margin-bottom: 2px;
}

.step-list > li h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

/* ============================================================
   pages
   ============================================================ */

/* --- 首页 --- */
.home-main .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.hero-body {
  min-width: 0;
}

.hero-body h1 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-lead {
  margin-bottom: 20px;
  color: var(--c-muted);
}

.scene-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scene-card {
  min-width: 0;
}

.scene-card > a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
}

.scene-card > a:hover,
.scene-card > a:focus-visible {
  border-color: var(--c-accent);
  text-decoration: none;
}

.scene-card .scene-name {
  display: block;
  margin-bottom: 4px;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
}

.scene-card .scene-time {
  display: block;
  margin-bottom: 6px;
  color: var(--c-accent);
  font-size: 12px;
}

.scene-card .scene-genres {
  display: block;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.hero-media {
  min-width: 0;
}

.content-media-primary {
  grid-column: 1 / -1;
}

.lead-lines,
.genre-glance,
.recent-updates,
.ranking-brief,
.topic-table,
.site-brief {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.lead-lines h2,
.genre-glance h2,
.recent-updates h2,
.ranking-brief h2,
.topic-table h2,
.site-brief h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.lead-line-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 16px;
}

.lead-line {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

.lead-line > a {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.lead-line > p {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.glance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 8px;
}

.glance-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.glance-row dt {
  min-width: 0;
  font-weight: 600;
}

.glance-row dd {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.glance-more,
.update-more,
.rank-more {
  margin-top: 14px;
  font-size: 14px;
}

.update-rows {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.update-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.update-date,
.update-genre {
  color: var(--c-muted);
  font-size: 13px;
}

.update-name {
  font-size: 14px;
}

.rank-group {
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}

.rank-group:last-of-type {
  border-bottom: 1px solid var(--c-line);
}

.rank-group h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.rank-scope,
.rank-group-desc {
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.rank-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-items > li {
  font-size: 14px;
}

.rank-items > li > a {
  margin-right: 8px;
}

.rank-items > li > span {
  color: var(--c-muted);
  font-size: 13px;
}

.topic-table .dim-table {
  margin-top: 8px;
}

.topic-table .dim-table td a {
  font-size: 14px;
}

.site-brief p {
  margin-bottom: 10px;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.8;
}

.brief-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* --- 场景选漫 --- */
.scene-table-section,
.scene-tradeoff,
.scene-cross {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.scene-table-section h2,
.scene-tradeoff h2,
.scene-cross h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.scene-table-section .dim-table {
  margin-bottom: 24px;
}

.tradeoff-item {
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}

.tradeoff-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.tradeoff-item p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.tradeoff-item + .tradeoff-item {
  margin-top: 0;
}

.cross-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cross-item {
  padding-left: 14px;
  border-left: 2px solid var(--c-soft);
}

.cross-item h3 {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 600;
}

.cross-item p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.scene-tradeoff .scene-figure,
.scene-table-section .scene-figure {
  margin-top: 20px;
}

/* --- 题材目录 --- */
.page-genres .genre-tree {
  display: block;
}

.tree-root {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-branch > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tree-branch > a:hover,
.tree-branch > a:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.tree-branch.is-open > a {
  border-left-color: var(--c-accent);
  color: var(--c-accent);
}

.tree-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 8px;
}

.tree-children > li > a {
  display: block;
  min-height: 34px;
  padding: 5px 12px 5px 26px;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.tree-children > li > a:hover,
.tree-children > li > a:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.content-block {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.content-block h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.content-block > p {
  margin-bottom: 14px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.genre-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.genre-item {
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
}

.genre-item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.genre-name {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.genre-def {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-genres .media-block {
  margin: 0 0 32px;
}

.order-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.order-item {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
}

.order-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.order-item p {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --- 追更榜单 --- */
.caliber-block,
.rank-group,
.rhythm-block,
.limit-block {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.caliber-block h2,
.rank-group h2,
.rhythm-block h2,
.limit-block h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.caliber-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.caliber-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.caliber-item h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.caliber-item p {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.caliber-exclude {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
  color: var(--c-muted);
  font-size: 12px;
}

.rank-group .rank-figure {
  margin: 0 0 18px;
}

.rank-rows {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px minmax(0, 1.4fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.rank-index {
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
}

.rank-name {
  min-width: 0;
  font-size: 14px;
}

.rank-genre {
  color: var(--c-muted);
  font-size: 13px;
}

.rank-note {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.rank-link {
  margin-top: 14px;
  font-size: 14px;
}

.rhythm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.rhythm-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.rhythm-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--c-accent);
}

.limit-block p {
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* --- 更新记录 --- */
.update-legend,
.update-weeks,
.update-notes {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.update-legend h2,
.update-weeks h2,
.update-notes h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.legend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.legend-item {
  min-width: 0;
  padding: 12px 14px;
  background: var(--c-soft);
  border-radius: var(--r-md);
}

.legend-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
}

.legend-item p {
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.7;
}

.update-week {
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
}

.update-week:last-child {
  border-bottom: 1px solid var(--c-line);
}

.update-week h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.update-week .update-rows {
  margin-top: 0;
}

.update-week .update-row {
  grid-template-columns: 76px minmax(0, 1.4fr) 110px 90px;
}

.row-date,
.row-genre {
  color: var(--c-muted);
  font-size: 13px;
}

.row-name {
  min-width: 0;
  font-size: 14px;
}

.row-type {
  color: var(--c-accent);
  font-size: 12px;
}

.update-notes p {
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* --- 阅读说明 --- */
.tree-nav {
  display: block;
}

.tree-title {
  margin-bottom: 6px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tree-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.tree-item > a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  color: var(--c-ink);
  font-size: 14px;
  text-decoration: none;
}

.tree-item > a:hover,
.tree-item > a:focus-visible {
  color: var(--c-accent);
  text-decoration: none;
}

.tree-item.is-current > a,
.tree-item > a.is-current {
  border-left-color: var(--c-accent);
  color: var(--c-accent);
  font-weight: 600;
}

.sidebar-figure {
  margin-top: 12px;
}

.term-table-section,
.usage-section,
.faq-section,
.filter-link-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.term-table-section h2,
.usage-section h2,
.faq-section h2,
.filter-link-section h2 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.term-table {
  margin-top: 8px;
}

.usage-group {
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}

.usage-group h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.usage-group p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.usage-group p a {
  margin-right: 12px;
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: none;
  width: 18px;
  margin-right: 8px;
  color: var(--c-accent);
  font-weight: 600;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item summary:hover {
  color: var(--c-accent);
}

.faq-item p {
  padding: 0 0 14px 26px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.8;
}

.filter-link-section .step-list {
  margin-top: 8px;
}

/* --- 内容与反馈 --- */
.boundary-page .content-block h2 {
  font-size: 17px;
}

.boundary-page .plain-list > li {
  padding: 10px 0 10px 16px;
  border-top: 1px solid var(--c-line);
}

.boundary-page .plain-list > li::before {
  top: 1.35em;
}

.boundary-page .plain-list > li:last-child {
  border-bottom: 1px solid var(--c-line);
}

.boundary-page .plain-list strong {
  display: inline-block;
  margin-right: 8px;
}

.boundary-page .step-list {
  margin-top: 8px;
}

.boundary-page .block-footnote {
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.boundary-page .figure-block {
  margin-bottom: 32px;
}

/* --- 404 --- */
.error-main {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.error-hero {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-line);
}

.error-code {
  margin-bottom: 10px;
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 600;
}

.error-hero h1 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

.error-lead {
  margin-bottom: 20px;
  color: var(--c-muted);
  font-size: 15px;
  max-width: 640px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-md);
  color: var(--c-white);
  font-size: 14px;
  text-decoration: none;
}

.btn-home:hover,
.btn-home:focus-visible {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: var(--c-white);
  text-decoration: none;
}

.error-paths h2 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.error-list > li {
  border-top: 1px solid var(--c-line);
}

.error-list > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

/* ============================================================
   footer
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin-bottom: 10px;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--c-muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
  color: var(--c-accent);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--c-line);
}

.footer-brand {
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
}

.footer-copy {
  color: var(--c-muted);
  font-size: 13px;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1100px) {
  .page-layout {
    gap: 28px;
  }

  .home-main .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .caliber-list,
  .legend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-tree {
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .nav-group {
    padding-left: 10px;
    margin-left: 10px;
  }

  .page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .home-main .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    max-width: 520px;
  }

  .caliber-list,
  .legend-list,
  .order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr) 96px;
  }

  .rank-note {
    grid-column: 2 / -1;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: block;
  }

  .site-nav .nav-tree {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--c-line);
  }

  .site-nav .nav-tree.is-open {
    display: flex;
  }

  .nav-node {
    display: block;
  }

  .nav-node > a {
    display: flex;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid var(--c-line);
    border-left: 2px solid transparent;
    font-size: 15px;
  }

  .nav-node.is-current > a {
    border-bottom-color: var(--c-line);
    border-left-color: var(--c-accent);
    padding-left: 10px;
  }

  .nav-group {
    display: block;
    padding: 10px 0 4px;
    margin: 0;
    border-left: 0;
  }

  .nav-group-title {
    display: block;
    padding: 0 4px 6px;
    font-size: 12px;
  }

  .nav-group > ul {
    display: flex;
    flex-direction: column;
  }

  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 16px 48px;
  }

  .site-main,
  .inner-main {
    order: 1;
    max-width: 100%;
  }

  .sidebar,
  .side-nav,
  .page-aside,
  .page-sidebar {
    order: 2;
    position: static;
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-right: 0;
    border-top: 1px solid var(--c-line);
  }

  .page-title {
    font-size: 22px;
  }

  .hero-body h1 {
    font-size: 22px;
  }

  .scene-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-line-list,
  .glance-list,
  .caliber-list,
  .legend-list,
  .order-list,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .glance-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .update-row,
  .update-week .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }

  .update-row .row-date,
  .update-row .update-date {
    order: 2;
  }

  .update-row .row-name,
  .update-row .update-name {
    order: 1;
    font-weight: 600;
  }

  .update-row .row-genre,
  .update-row .update-genre {
    order: 3;
  }

  .update-row .row-type {
    order: 4;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .rank-genre,
  .rank-note {
    grid-column: 2 / -1;
  }

  .dim-table,
  .term-table {
    display: block;
    border-top: 0;
  }

  .dim-table thead,
  .term-table thead {
    display: none;
  }

  .dim-table tbody,
  .term-table tbody {
    display: block;
  }

  .dim-table tr,
  .term-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-line);
  }

  .dim-table tbody tr:nth-child(even),
  .term-table tbody tr:nth-child(even) {
    background: transparent;
  }

  .dim-table th,
  .dim-table td,
  .term-table th,
  .term-table td {
    display: block;
    width: auto;
    padding: 2px 0;
    border-bottom: 0;
  }

  .dim-table tbody th,
  .term-table tbody th {
    width: auto;
    font-size: 15px;
  }

  .dim-table td::before,
  .term-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--c-muted);
    font-size: 12px;
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px 16px 16px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px 24px;
  }

  .error-main {
    padding: 32px 16px 48px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
  }

  .brand-slogan {
    display: none;
  }

  .page-layout {
    padding: 16px 14px 40px;
  }

  .page-title,
  .hero-body h1,
  .error-hero h1 {
    font-size: 22px;
  }

  .scene-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene-card > a {
    padding: 12px 14px;
  }

  .footer-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
