:root {
  --bg: #fbf7f1;
  --bg-soft: #f4ece1;
  --card: #ffffff;
  --ink: #2e3a33;
  --ink-soft: #4a574f;
  --muted: #6b7a6e;
  --accent: #c25b34;
  --accent-dark: #a34824;
  --line: #e8d9c5;
  --line-strong: #d9c4a8;
  --alert: #b23a2e;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(46, 58, 51, 0.05);
  --shadow-lift: 0 4px 14px rgba(46, 58, 51, 0.1);
  --container: 1180px;
  --reading: 760px;
  --aside-w: 300px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;
}

/* ===== base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

time {
  font-style: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== layout ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
}

.brand-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
}

.nav-list a:hover {
  background-color: var(--bg-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  background-color: var(--bg-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background-color: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  max-width: var(--reading);
  padding: 10px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.page-updated,
.page-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w);
  gap: 40px;
  align-items: start;
}

.content-main,
.layout-main {
  min-width: 0;
}

.content-aside,
.layout-side {
  min-width: 0;
}

.site-footer {
  background-color: #2e3a33;
  color: #e6ded2;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(232, 217, 197, 0.22);
}

.footer-cta-text {
  margin: 0;
  font-size: 16px;
  color: #f0e9df;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 26px 0;
}

.footer-group-title {
  font-size: 15px;
  color: #f0e9df;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  color: #c9c1b4;
  font-size: 14px;
}

.footer-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 217, 197, 0.22);
  font-size: 13px;
  color: #a9a196;
}

/* ===== components ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section-head {
  max-width: var(--reading);
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

.section-more {
  margin: 22px 0 0;
  font-size: 15px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}

.subsection-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.field-label {
  display: inline-block;
  min-width: 76px;
  color: var(--muted);
  font-size: 14px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* FAQ */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  margin-bottom: 12px;
}

.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(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "展开";
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "收起";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 14px 18px 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

.faq-answer p {
  margin-bottom: 0;
}

/* tables */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
}

.genre-table-el,
.data-table {
  min-width: 620px;
  font-size: 15px;
}

.genre-table-el th,
.genre-table-el td,
.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.genre-table-el thead th,
.data-table thead th {
  background-color: var(--bg-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.genre-table-el tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-table-el tbody tr:hover,
.data-table tbody tr:hover {
  background-color: #fdfaf5;
}

.data-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}

/* figures */

.genre-figure,
.path-figure,
.relation-figure {
  margin-top: 22px;
}

.genre-figure img,
.path-figure img,
.relation-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.genre-figure figcaption,
.path-figure figcaption,
.relation-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* sidebar */

.aside-block,
.side-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-title,
.side-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.aside-list,
.side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list a,
.side-list a {
  display: block;
  min-height: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.aside-list a:hover,
.side-list a:hover {
  color: var(--accent-dark);
}

/* ===== pages: home ===== */

.home-main {
  display: block;
}

.hero {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 16px;
  background-color: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-dark);
}

.hero-title {
  font-size: 36px;
  line-height: 1.28;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 520px;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  background-color: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}

.hero-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.hero-visual {
  min-width: 0;
}

.cover-wall {
  display: grid;
  gap: 10px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.cover-wall-main {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cover-wall-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cover-wall-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.genre-overview,
.collections,
.updates,
.ranking,
.path,
.scope,
.page-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.page-index {
  padding-bottom: 56px;
}

.genre-rows {
  border-top: 1px solid var(--line);
}

.genre-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1.6fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.genre-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.genre-tone,
.genre-org {
  font-size: 15px;
  color: var(--ink-soft);
}

.genre-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.genre-enter:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.collection-media,
.collection-cover {
  margin: 0;
}

.collection-media img,
.collection-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection-name {
  font-size: 18px;
}

.collection-scope,
.collection-order,
.collection-count {
  font-size: 15px;
  color: var(--ink-soft);
}

.collections .collection-card {
  padding: 0 0 20px;
}

.collections .collection-name,
.collections .collection-scope,
.collections .collection-order,
.collections .collection-enter {
  margin-left: 20px;
  margin-right: 20px;
}

.collections .collection-name {
  margin-top: 16px;
  margin-bottom: 8px;
}

.collections .collection-enter {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-size: 14px;
  color: var(--muted);
  padding-top: 2px;
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.update-channel {
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.update-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.ranking-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--card);
  overflow: hidden;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.ranking-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
}

.ranking-name {
  font-size: 16px;
  font-weight: 600;
}

.ranking-channel {
  font-size: 14px;
  color: var(--muted);
}

.ranking-basis {
  font-size: 14px;
  color: var(--alert);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.path-step {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  background-color: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.step-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.scope-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.scope-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.scope-title {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--accent-dark);
}

.scope-block p {
  font-size: 15px;
  color: var(--ink-soft);
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.index-col {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.index-col-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.index-col-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.index-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* ===== pages: inner shared ===== */

.page-genre .page-layout,
.page-guide .page-layout {
  align-items: start;
}

.genre-table,
.genre-order,
.genre-faq,
.path-steps,
.field-table,
.boundary-faq,
.selection-standard,
.relation,
.updates-timeline,
.scope-log,
.impact {
  margin-bottom: 44px;
}

.genre-table .section-intro a,
.genre-order .section-intro a,
.genre-faq .section-intro a,
.updates-timeline .section-intro a,
.scope-log .section-intro a {
  font-weight: 600;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-item .step-name {
  font-size: 16px;
  margin: 10px 0 8px;
}

.step-item .step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ===== pages: collections ===== */

.collections-list {
  margin-bottom: 44px;
}

.collections-list .section-title {
  margin-bottom: 10px;
}

.collections-list .section-intro {
  margin-bottom: 24px;
}

.collections-list .collection-card {
  padding: 0 0 22px;
}

.collections-list .collection-card + .collection-card {
  margin-top: 22px;
}

.collections-list .collection-body {
  padding: 0 22px;
}

.collections-list .collection-name {
  margin: 18px 0 12px;
}

.collections-list .collection-scope,
.collections-list .collection-count,
.collections-list .collection-order {
  margin-bottom: 8px;
}

.collections-list .link-more {
  margin-top: 8px;
}

.standard-block {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.standard-block p {
  font-size: 15px;
  color: var(--ink-soft);
}

.relation > p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--reading);
}

/* ===== pages: updates ===== */

.timeline-list {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-media {
  width: 120px;
}

.timeline-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.timeline-body {
  min-width: 0;
}

.timeline-date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.timeline-name {
  font-size: 17px;
  margin-bottom: 4px;
}

.timeline-channel {
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.timeline-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.scope-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.scope-date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.scope-direction {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-channel {
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.scope-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.impact-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: var(--reading);
}

/* ===== pages: guide ===== */

.path-steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.path-steps .path-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.path-steps .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.step-body {
  min-width: 0;
}

.step-body .step-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-body .step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 130px;
  white-space: nowrap;
}

.boundary-faq .faq-item:last-child {
  margin-bottom: 0;
}

/* ===== page: 404 ===== */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.error-hero {
  max-width: var(--reading);
  padding: 64px 0 40px;
}

.error-code {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.error-hero h1 {
  font-size: 32px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-routes {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.error-routes h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.error-route-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.error-route-list a {
  min-height: 24px;
  font-size: 16px;
  font-weight: 600;
}

.error-route-list span {
  font-size: 14px;
  color: var(--muted);
}

.error-note {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: var(--reading);
}

.error-note h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.error-note p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ===== responsive ===== */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 10px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 20px 36px;
  }

  .hero-title {
    font-size: 30px;
  }

  .genre-overview,
  .collections,
  .updates,
  .ranking,
  .path,
  .scope,
  .page-index {
    padding: 44px 20px 0;
  }

  .page-index {
    padding-bottom: 44px;
  }

  .inner-main {
    padding: 0 20px 52px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .content-aside,
  .layout-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .aside-block,
  .side-block {
    margin-bottom: 0;
  }

  .collection-cards,
  .path-steps,
  .scope-blocks,
  .index-columns,
  .step-list,
  .scope-list,
  .path-steps-list,
  .error-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    gap: 18px;
  }

  .error-main {
    padding: 0 20px 52px;
  }

  .footer-inner {
    padding: 34px 20px 22px;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15.5px;
  }

  h1,
  .page-title,
  .error-hero h1 {
    font-size: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .collection-cards,
  .path-steps,
  .scope-blocks,
  .index-columns,
  .step-list,
  .scope-list,
  .path-steps-list,
  .error-route-list,
  .content-aside,
  .layout-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 2px;
  }

  .genre-enter {
    justify-self: start;
    margin-top: 6px;
  }

  .update-item,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-media {
    width: 132px;
  }

  .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px 16px;
  }

  .ranking-channel,
  .ranking-basis {
    grid-column: 2;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .faq-question {
    padding: 12px 14px;
  }

  .faq-answer {
    padding: 12px 14px 16px;
  }

  .cover-wall-row {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .collection-card {
    transition: none;
  }

  .collection-card:hover {
    transform: none;
  }
}
