:root {
  --ink-900: #1f3552;
  --ink-800: #263f60;
  --ink-700: #22303f;
  --ink-500: #5d6b7a;
  --ink-400: #7c8794;
  --paper: #f4f2ee;
  --paper-deep: #ece9e2;
  --card: #ffffff;
  --accent: #3f8f7d;
  --accent-soft: #e4f0ec;
  --line: #dfe3e8;
  --line-strong: #c7ced6;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 53, 82, 0.06);
  --shadow-md: 0 6px 18px rgba(31, 53, 82, 0.08);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --shell: 1180px;
  --gap: 8px;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.85;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--ink-800);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ============ layout ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink-900);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-tagline {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  min-height: 44px;
  line-height: 28px;
  color: var(--ink-700);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink-900);
  border-bottom-color: var(--line-strong);
}

.nav-list a.is-current {
  color: var(--ink-900);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 24px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--ink-500);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--ink-400);
}

.breadcrumb-current {
  color: var(--ink-700);
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.page-description {
  max-width: 820px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.85;
}

/* ============ components ============ */

.section-title,
.section-title-wide {
  font-size: 22px;
  line-height: 1.4;
}

.section-title-wide {
  margin-bottom: 20px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head .section-title,
.section-head h2 {
  margin-bottom: 8px;
}

.section-desc,
.section-note,
.section-intro,
.section-lead {
  max-width: 860px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.8;
}

.section-intro,
.section-lead {
  margin-bottom: 18px;
}

.section-desc a,
.section-note a,
.section-intro a,
.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid rgba(63, 143, 125, 0.4);
}

.column-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.column-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.related-list li {
  display: block;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.related-note {
  display: block;
  color: var(--ink-500);
  font-size: 13px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 18px;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.faq-question::marker {
  color: var(--accent);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px 16px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.85;
}

.field-note {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.field-note a {
  color: var(--accent);
}

/* ============ footer ============ */

.site-footer {
  margin-top: 40px;
  background: var(--ink-900);
  color: #d6dde6;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.footer-list {
  display: grid;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  color: #c3ccd8;
  font-size: 14px;
  line-height: 1.7;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #a9b4c1;
  font-size: 13px;
  line-height: 1.8;
}

.footer-brand {
  color: #e4e9ef;
  font-weight: 600;
}

.footer-boundary,
.footer-copy {
  margin-top: 6px;
}

/* ============ pages: index ============ */

.fact-bar {
  background: var(--ink-800);
  color: #dde5ee;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.hero-section {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 48px;
}

.hero-intro {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  margin-bottom: 22px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.9;
}

.hero-paths {
  display: grid;
  gap: 8px;
}

.hero-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-path a {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
}

.hero-path a:hover,
.hero-path a:focus-visible {
  color: var(--accent);
}

.hero-path span {
  color: var(--ink-500);
  font-size: 13px;
}

.hero-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.cover-card {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--paper-deep);
}

.cover-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.cover-title {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-field {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.cover-card-main {
  grid-column: span 4;
}

.cover-card-main img {
  aspect-ratio: 16 / 9;
}

.genre-overview,
.updates-and-covers,
.ranking-and-fields,
.path-and-feedback,
.site-index {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.genre-column .genre-name {
  font-size: 17px;
  line-height: 1.5;
}

.genre-fields {
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.genre-fields dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.genre-fields dd {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.genre-column .genre-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.updates-covers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cover-grid-column,
.update-log-column,
.ranking-column,
.fields-column {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cover-grid-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover-grid-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
}

.cover-grid-title {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-grid-field {
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.6;
}

.update-log {
  display: grid;
  gap: 0;
}

.update-log-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.update-log-row:last-child {
  border-bottom: 0;
}

.update-batch {
  flex: 0 0 auto;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.update-detail {
  flex: 1 1 200px;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.75;
}

.ranking-fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ranking-list {
  display: grid;
  gap: 0;
}

.ranking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-num {
  flex: 0 0 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.ranking-title {
  flex: 1 1 160px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}

.ranking-field {
  flex: 0 0 auto;
  color: var(--ink-500);
  font-size: 12px;
}

.field-summary {
  display: grid;
  gap: 4px;
}

.field-summary dt {
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.field-summary dt:first-child {
  margin-top: 0;
}

.field-summary dd {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.path-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.path-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.path-step .step-name {
  font-size: 16px;
  line-height: 1.5;
}

.path-step .step-text {
  flex: 1 1 auto;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.path-step .step-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.feedback-note {
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feedback-note h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.feedback-note p {
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.feedback-note p:last-child {
  margin-bottom: 0;
}

.site-index {
  padding-bottom: 48px;
}

.site-index h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.index-item {
  display: block;
}

.index-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.index-item a:hover,
.index-item a:focus-visible {
  border-color: var(--accent);
}

.index-item a:hover .index-name,
.index-item a:focus-visible .index-name {
  color: var(--accent);
}

.index-item span {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.index-item .index-name {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 700;
}

/* ============ pages: genre ============ */

.genre-filter {
  margin-bottom: 36px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-700);
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff;
  font-weight: 600;
}

.genre-groups {
  margin-bottom: 40px;
}

.genre-group {
  padding: 22px 20px 24px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.genre-group-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.genre-figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}

.genre-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.genre-meta {
  min-width: 0;
}

.genre-meta .genre-name {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.45;
}

.genre-scope,
.genre-tone {
  margin-bottom: 6px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.8;
}

.genre-link {
  margin-top: 6px;
  font-size: 14px;
}

.genre-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.entry-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
}

.entry-body {
  min-width: 0;
}

.entry-title {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.entry-desc {
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.entry-fields {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.related-block {
  padding-top: 8px;
}

.related-block .section-title {
  margin-bottom: 8px;
}

.related-block .related-note {
  margin-bottom: 16px;
}

/* ============ pages: updates ============ */

.updates-timeline {
  margin-bottom: 40px;
}

.updates-timeline .section-head,
.updates-glossary .section-head {
  margin-bottom: 20px;
}

.batch-group {
  padding: 20px 20px 22px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.batch-index {
  flex: 0 0 auto;
  padding: 2px 10px;
  background: var(--ink-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.batch-title {
  font-size: 17px;
  line-height: 1.5;
}

.batch-meta {
  flex: 1 1 200px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.7;
}

.update-list {
  display: grid;
  gap: 0;
}

.update-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.update-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.update-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-deep);
}

.update-thumb img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.update-body {
  min-width: 0;
}

.update-name {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.update-fields {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.update-desc {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.updates-glossary {
  margin-bottom: 40px;
}

.glossary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.glossary-col {
  min-width: 0;
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.glossary-col h3 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.glossary-list {
  display: grid;
  gap: 10px;
}

.glossary-list li {
  display: grid;
  gap: 2px;
}

.glossary-term {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}

.glossary-text {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.glossary-footnote {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.glossary-footnote a {
  color: var(--accent);
}

.related-links {
  padding-top: 8px;
}

.related-links .section-title {
  margin-bottom: 16px;
}

.related-links .related-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links .related-list a {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink-900);
  font-weight: 600;
}

.related-links .related-list a:hover,
.related-links .related-list a:focus-visible {
  color: var(--accent);
}

/* ============ pages: ranking ============ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.ranking-section {
  min-width: 0;
}

.ranking-section .section-title {
  margin-bottom: 8px;
}

.ranking-section .section-lead {
  margin-bottom: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 40px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ranking-item:last-child {
  margin-bottom: 0;
}

.ranking-rank {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.ranking-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-deep);
}

.ranking-cover img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.ranking-meta {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

.ranking-note {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.ranking-footnote {
  margin-top: 16px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.ranking-footnote a {
  color: var(--accent);
}

.ranking-aside {
  min-width: 0;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.aside-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
}

.aside-block {
  margin-bottom: 16px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-subtitle {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.aside-block p {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.ranking-cycle {
  margin-bottom: 40px;
}

.ranking-cycle .section-title {
  margin-bottom: 8px;
}

.ranking-cycle .section-lead {
  margin-bottom: 18px;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cycle-card {
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cycle-name {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.cycle-text {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

/* ============ pages: field-guide ============ */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.field-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.field-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.field-figure-caption {
  padding: 12px 16px 14px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.field-table-section,
.field-maintain-section,
.field-scope-section,
.related-section {
  min-width: 0;
  margin-bottom: 36px;
}

.field-table-section h2,
.field-maintain-section h2,
.field-scope-section h2,
.related-section h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.4;
}

.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}

.field-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.field-row + .field-row {
  border-top: 1px solid var(--line);
}

.field-row-head {
  background: var(--paper-deep);
}

.field-row-head span {
  color: var(--ink-900);
  font-weight: 700;
}

.field-row span {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  border-right: 1px solid var(--line);
}

.field-row span:last-child {
  border-right: 0;
}

.field-name {
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-weight: 600;
}

.field-meaning,
.field-values,
.field-judge {
  color: var(--ink-500);
}

.maintain-list {
  display: grid;
  gap: 12px;
}

.maintain-item {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.maintain-title {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.maintain-text {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

/* ============ pages: reading-help ============ */

.section {
  margin-bottom: 36px;
}

.section .section-title {
  margin-bottom: 8px;
}

.help-figure {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.help-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.help-figure figcaption {
  padding: 12px 16px 14px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.75;
}

.help-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.help-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.help-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.help-step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.help-step-title {
  font-size: 16px;
  line-height: 1.5;
}

.help-step-text {
  flex: 1 1 auto;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.help-step-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-item {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-title {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.checklist-text {
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-block {
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feedback-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.feedback-list {
  display: grid;
  gap: 8px;
}

.feedback-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.feedback-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.help-related .related-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.help-related .related-list a {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink-900);
  font-weight: 600;
}

.help-related .related-list a:hover,
.help-related .related-list a:focus-visible {
  color: var(--accent);
}

/* ============ pages: 404 ============ */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  padding: 36px 28px 40px;
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-code {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.35;
}

.error-text {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.85;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}

.error-btn:hover,
.error-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-btn:first-child {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff;
}

.error-btn:first-child:hover,
.error-btn:first-child:focus-visible {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #ffffff;
}

.error-tips {
  padding: 24px 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.error-tips h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.4;
}

.error-tips-text {
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.8;
}

.error-tips-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.error-tips-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.error-tips-list a:hover,
.error-tips-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ responsive ============ */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    border-bottom-color: var(--line);
  }

  .nav-list a.is-current {
    border-bottom-color: var(--accent);
  }

  .inner-main {
    padding: 20px 18px 48px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 18px 36px;
  }

  .hero-title {
    font-size: 26px;
  }

  .genre-overview,
  .updates-and-covers,
  .ranking-and-fields,
  .path-and-feedback,
  .site-index {
    padding: 34px 18px 0;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-covers-layout,
  .ranking-fields-layout,
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .path-steps,
  .cycle-grid,
  .help-step-list,
  .feedback-grid,
  .error-tips-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-group-head {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }

  .glossary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 18px 24px;
  }

  .footer-bottom {
    padding: 16px 18px 24px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 10px 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .inner-main {
    padding: 18px 14px 40px;
  }

  .page-title {
    font-size: 23px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .fact-bar {
    padding: 10px 14px;
    font-size: 12px;
    text-align: left;
  }

  .hero-layout {
    padding: 24px 14px 28px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cover-card {
    grid-column: span 1;
  }

  .cover-card-main {
    grid-column: span 2;
  }

  .genre-overview,
  .updates-and-covers,
  .ranking-and-fields,
  .path-and-feedback,
  .site-index {
    padding: 28px 14px 0;
  }

  .genre-grid,
  .index-grid,
  .path-steps,
  .cycle-grid,
  .help-step-list,
  .feedback-grid,
  .checklist-grid,
  .error-tips-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .entry-item img {
    width: 64px;
  }

  .genre-group {
    padding: 18px 14px 20px;
  }

  .genre-group-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .genre-figure img {
    aspect-ratio: 16 / 9;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .batch-group {
    padding: 16px 14px 18px;
  }

  .update-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .update-thumb img {
    width: 64px;
  }

  .ranking-item {
    grid-template-columns: 30px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 12px;
  }

  .ranking-cover img {
    width: 64px;
  }

  .ranking-aside,
  .ranking-aside {
    padding: 16px 14px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .field-row span:last-child {
    border-bottom: 0;
  }

  .field-row-head {
    display: none;
  }

  .field-name {
    background: var(--paper-deep);
    font-weight: 700;
  }

  .error-main {
    padding: 36px 14px 48px;
  }

  .error-panel {
    padding: 28px 18px 32px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-panel h1 {
    font-size: 23px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 28px 14px 20px;
  }

  .footer-bottom {
    padding: 14px 14px 22px;
  }
}
