:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1f2a37;
  --ink-soft: #5b6675;
  --accent: #e07a3f;
  --accent-deep: #c4632c;
  --line: #dde2e8;
  --focus: #2f6fed;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(31, 42, 55, 0.06), 0 6px 18px rgba(31, 42, 55, 0.05);
  --wrap: 1120px;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

strong {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============ layout ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px 8px 9px 8px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--ink);
  flex: none;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.site-nav {
  flex: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 20px 8px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.4fr;
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
}

.footer-brand-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 320px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
}

.footer-copyright {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ components ============ */

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
}

.section-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.section-intro,
.section-lead {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.section-more {
  margin-top: 18px;
}

.link-more {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(224, 122, 63, 0.4);
  padding-bottom: 1px;
}

.link-more:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(80px, 0.7fr) minmax(64px, 0.5fr)
    minmax(64px, 0.5fr) minmax(200px, 2.4fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.entry-name {
  font-size: 16px;
  font-weight: 600;
}

.entry-field {
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-summary {
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.scope-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.scope-item-title {
  font-size: 17px;
  font-weight: 600;
}

.scope-item-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.field-table {
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption,
.field-table-caption,
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  white-space: nowrap;
}

.field-table td {
  color: var(--ink-soft);
}

.field-table tbody tr:last-child td {
  border-bottom: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-question {
  cursor: pointer;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--accent-deep);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

.checkpoint-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.checkpoint-item {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

.checkpoint-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-note a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(224, 122, 63, 0.4);
}

.section-media,
.section-figure,
.media-figure {
  margin: 18px 0;
}

.section-media img,
.section-figure img,
.media-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* breadcrumb + page header */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.page-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

/* inner two-column shell */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main,
.page-content {
  min-width: 0;
}

.layout-aside,
.page-aside,
.page-sidebar {
  min-width: 0;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-block,
.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.aside-title,
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
}

.aside-block .check-list,
.aside-block .aside-checklist,
.aside-block .aside-list,
.sidebar-block .check-list {
  margin-top: 12px;
}

.aside-checklist,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-check-item,
.aside-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-check-item::before,
.aside-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.aside-link-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-link-list a {
  font-size: 14px;
  color: var(--accent-deep);
}

.aside-note-text,
.aside-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-resource-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-resource-item {
  font-size: 14px;
  color: var(--ink-soft);
}

/* generic inner section */

.section,
.content-section {
  margin-bottom: 40px;
}

.section > .section-title,
.content-section > .section-title {
  font-size: 24px;
  font-weight: 700;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
}

/* ============ pages: index ============ */

.hero-section {
  margin-bottom: 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid rgba(224, 122, 63, 0.35);
  border-radius: var(--radius-sm);
}

.hero-title {
  margin-top: 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.genre-shortcuts {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.genre-shortcuts-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.genre-shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.genre-chip:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.genre-section,
.topic-section,
.catalog-preview-section,
.guide-preview-section,
.scope-section {
  margin-bottom: 44px;
}

.genre-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.genre-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  border-left: 3px solid var(--accent);
}

.genre-card-title {
  font-size: 17px;
  font-weight: 600;
}

.genre-card-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-card-sample {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.genre-section .section-figure {
  margin-top: 22px;
}

.topic-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.topic-card-title {
  font-size: 17px;
  font-weight: 600;
}

.topic-card-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.topic-card-direction {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent-deep);
  font-weight: 600;
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: guide-step;
}

.guide-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 52px;
  position: relative;
}

.guide-step::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-title {
  font-size: 16px;
  font-weight: 600;
}

.guide-step-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ pages: catalog ============ */

.genre-group,
.year-group {
  margin-top: 22px;
}

.group-title {
  font-size: 19px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

.genre-group .entry-list,
.year-group .entry-list {
  margin-top: 12px;
  border-top: none;
}

.section-by-genre .section-desc a,
.section-by-year .section-desc a,
.topics-entries .section-desc a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(224, 122, 63, 0.4);
}

/* ============ pages: topics ============ */

.topics-overview .topic-card-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.topic-card-link {
  display: block;
  height: 100%;
}

.topic-card-link .topic-card-title {
  color: var(--ink);
}

.topic-card-link:hover .topic-card-title {
  color: var(--accent-deep);
}

.topic-card-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-deep);
  border: 1px solid rgba(224, 122, 63, 0.35);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.topic-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.topic-detail:last-child {
  border-bottom: none;
}

.topic-detail-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.topic-detail-body {
  min-width: 0;
}

.topic-detail-title {
  font-size: 19px;
  font-weight: 700;
}

.topic-detail-scope {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.topic-detail-direction {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
}

.topic-detail-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topics-entries .entry-list {
  margin-top: 16px;
}

.topics-entries .entry-row {
  grid-template-columns: minmax(160px, 1.4fr) minmax(0, 2.6fr);
  align-items: center;
}

.entry-link {
  font-size: 16px;
  font-weight: 600;
}

.entry-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.update-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.update-item-title {
  font-size: 15px;
  font-weight: 600;
}

.update-item p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ pages: guide ============ */

.section-steps {
  margin-bottom: 40px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
}

.step-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.section-faq {
  margin-bottom: 32px;
}

/* ============ pages: scope ============ */

.scope-figure img {
  max-height: 300px;
}

.scope-range .scope-list {
  margin-top: 20px;
}

.scope-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  counter-reset: principle;
}

.principle-item {
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-index {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-title {
  font-size: 16px;
  font-weight: 600;
}

.principle-item p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feedback-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  border-top: 3px solid var(--accent);
}

.feedback-step-title {
  font-size: 16px;
  font-weight: 600;
}

.feedback-step p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-tip {
  margin-top: 18px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.scope-tip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}

.scope-tip p + p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-faq {
  margin-top: 8px;
}

/* ============ pages: 404 ============ */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 720px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.error-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 700;
}

.error-text {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.error-routes {
  margin-top: 40px;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.route-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.route-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
}

.route-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }

  .footer-inner {
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .topic-detail {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 var(--accent);
    background: var(--bg);
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-top: 24px;
  }

  .inner-main {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title,
  .section-head h2,
  .section > .section-title,
  .content-section > .section-title {
    font-size: 21px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside,
  .page-aside,
  .page-sidebar {
    position: static;
    top: auto;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 2px;
  }

  .entry-field {
    display: inline-block;
    margin-right: 12px;
  }

  .topics-entries .entry-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-detail-media img {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
  }

  .error-main {
    padding: 36px 16px 20px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 23px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-step {
    padding-left: 18px;
    padding-top: 48px;
  }

  .guide-step::before {
    top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
