:root {
  --bg-base: #0f1424;
  --bg-panel: #171d31;
  --bg-table: #131a2c;
  --text-main: #e8ebf2;
  --text-muted: #9aa4bd;
  --accent: #e0a458;
  --accent-soft: rgba(224, 164, 88, 0.14);
  --accent-alt: #6b7fd7;
  --line: #2a3350;
  --radius: 6px;
  --container: 1120px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Menlo, "Courier New", monospace;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #f0bd7a;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

strong {
  font-weight: 600;
  color: var(--text-main);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: 10px 16px;
  background-color: var(--accent);
  color: #1a1206;
  border-radius: 0 0 var(--radius) 0;
  font-size: 14px;
}

.skip-link:focus {
  left: 0;
}

/* ============ layout ============ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container-width,
.header-inner,
.footer-inner,
.hero-inner,
.hero-channels,
.hero-path-summary,
.section,
.breadcrumb,
.page-header,
.inner-main > section,
.inner-main > figure,
.inner-main > div {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main {
  flex: 1 0 auto;
}

.inner-main {
  padding-top: 28px;
  padding-bottom: 56px;
}

.section {
  padding-top: 44px;
  padding-bottom: 44px;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

/* ============ header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(15, 20, 36, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  min-height: 44px;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 2px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent-alt);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

.site-nav {
  flex: 0 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-panel);
}

.nav-link.is-current {
  color: var(--accent);
  border-color: var(--line);
  background-color: var(--bg-panel);
}

/* ============ breadcrumb & page header ============ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 4px;
  padding-bottom: 4px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding-top: 18px;
  padding-bottom: 26px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text-main);
}

.page-description {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 860px;
}

/* ============ hero (home) ============ */

.hero {
  padding-top: 40px;
  padding-bottom: 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--line);
  background-color: var(--accent-soft);
  border-radius: var(--radius);
  padding: 4px 10px;
}

.hero-title {
  margin-top: 16px;
  font-size: 32px;
  font-weight: 600;
}

.hero-desc {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #1a1206;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #eeb26a;
  color: #1a1206;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-main);
  background-color: var(--bg-panel);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-media {
  min-width: 0;
}

.hero-figure,
.section-figure,
.channel-overview-figure,
.media-figure,
.field-figure,
.path-figure {
  margin: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-caption,
.section-caption,
.media-caption,
.field-figure-caption,
.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.hero-channels {
  margin-top: 40px;
  padding-top: 8px;
}

.hero-channels-title {
  font-size: 20px;
}

.hero-channels-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
}

.channel-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.channel-card {
  min-width: 0;
}

.channel-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 16px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-main);
  height: 100%;
}

.channel-card-link:hover {
  color: var(--text-main);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.channel-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.channel-card-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-path-summary {
  margin-top: 24px;
}

.path-summary-text {
  font-size: 15px;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.path-summary-text strong {
  color: var(--text-main);
}

/* ============ section head ============ */

.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
}

.section-desc,
.section-lead,
.section-intro {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 820px;
}

.section-foot-link {
  margin-top: 20px;
  font-size: 15px;
}

.text-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: #f0bd7a;
  border-bottom-color: currentColor;
}

/* ============ channel rows (home) ============ */

.channel-row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row-main {
  min-width: 0;
}

.channel-row-name {
  font-size: 17px;
}

.channel-row-orient {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-muted);
}

.channel-row-audience {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 0;
}

.channel-row-link,
.channel-enter,
.collection-card-link a,
.collection-entry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  color: var(--accent);
  white-space: nowrap;
}

.channel-row-link:hover,
.channel-enter:hover,
.collection-card-link a:hover,
.collection-entry-link:hover {
  border-color: var(--accent);
  color: #f0bd7a;
}

.section-channels .section-figure {
  margin-top: 26px;
}

.section-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ============ collection cards (home) ============ */

.collection-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-card-title {
  font-size: 17px;
}

.collection-card-scope,
.collection-card-reason {
  font-size: 14px;
  color: var(--text-muted);
}

.collection-card-link {
  margin-top: auto;
  padding-top: 6px;
}

.section-collections .section-figure {
  margin-top: 26px;
}

/* ============ field table (home) ============ */

.field-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-table);
}

.field-table {
  min-width: 520px;
}

.field-table-caption,
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  background-color: var(--bg-panel);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table .field-name,
.field-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.field-table td {
  color: var(--text-muted);
}

/* ============ path steps (home) ============ */

.path-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: path-step;
}

.path-step {
  position: relative;
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step-name {
  margin-top: 12px;
  font-size: 16px;
}

.path-step-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ boundary (home) ============ */

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-item {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-item-title {
  font-size: 16px;
}

.boundary-item-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.boundary-feedback {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--bg-table);
}

.boundary-feedback-title {
  font-size: 16px;
}

.boundary-feedback-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ footer ============ */

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background-color: var(--bg-panel);
  margin-top: 40px;
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-size: 15px;
  color: var(--text-main);
}

.footer-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-about-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-top-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ inner: genre-channels ============ */

.channel-overview-figure {
  margin-top: 8px;
  margin-bottom: 8px;
}

.channel-overview-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.channels-detail,
.channels-compare,
.channels-collections {
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.channels-detail .channel-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.channels-detail .channel-row:first-of-type {
  border-top: 1px solid var(--line);
}

.channels-detail .channel-name {
  font-size: 17px;
}

.channels-detail .channel-orientation {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.channels-detail .channel-audience {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.compare-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.compare-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.compare-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.compare-desc {
  font-size: 15px;
  color: var(--text-muted);
  min-width: 0;
}

.collection-entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.collection-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.collection-entry-channel {
  font-size: 15px;
  color: var(--text-main);
}

.section-footnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.section-footnote a {
  margin-right: 14px;
}

/* ============ inner: featured-collections ============ */

.collections-lead {
  padding-top: 8px;
  padding-bottom: 8px;
}

.collections-lead-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.media-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collections-lead-text {
  min-width: 0;
}

.collections-lead-text h2 {
  font-size: 20px;
}

.collections-lead-text p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.collections-list,
.collections-rules,
.collections-mapping,
.collections-next {
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.collections-list > h2,
.collections-rules > h2,
.collections-mapping > h2,
.collections-next > h2 {
  font-size: 20px;
}

.collections-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.collection-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.collection-card-tag {
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--line);
  background-color: var(--accent-soft);
  border-radius: var(--radius);
  padding: 2px 10px;
}

.collection-card-body {
  margin-top: 14px;
}

.collection-meta {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: 8px 16px;
}

.collection-meta dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 2px;
}

.collection-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  min-width: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-table);
}

.data-table {
  min-width: 560px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  color: var(--text-muted);
  background-color: var(--bg-panel);
  font-weight: 600;
}

.data-table tbody th {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.data-table tbody td {
  color: var(--text-muted);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.mapping-notes {
  margin-top: 22px;
}

.subsection-title {
  font-size: 16px;
}

.plain-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plain-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-alt);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-col {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-col p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.next-link {
  margin-top: 14px;
}

/* ============ inner: field-guide ============ */

.field-figure {
  margin-top: 8px;
}

.field-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.field-section,
.faq-section,
.boundary-section,
.related-section {
  padding-top: 36px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line);
}

.field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-item {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-item .field-name {
  font-size: 14px;
}

.field-meaning {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-main);
}

.field-rule {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 32px 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 860px;
}

.feedback-block {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--bg-table);
}

.feedback-title {
  font-size: 16px;
}

.feedback-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a {
  font-size: 15px;
  font-weight: 600;
}

.related-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ inner: browse-path ============ */

.path-overview {
  border-top: 0;
}

.path-figure {
  margin-top: 22px;
}

.path-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  min-width: 0;
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-name {
  font-size: 16px;
}

.step-line {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.step-label {
  flex: 0 0 68px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-alt);
}

.step-block {
  min-width: 0;
  padding: 22px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-block + .step-block {
  margin-top: 16px;
}

.step-block-title {
  font-size: 17px;
}

.step-block-text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

.step-fields {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-field {
  min-width: 0;
}

.step-field .field-name {
  font-size: 13px;
}

.step-field .field-value {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.issue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.issue-item {
  min-width: 0;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.issue-question {
  font-size: 16px;
}

.issue-answer {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.boundary-note .boundary-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ============ 404 ============ */

.error-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.error-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.error-title {
  font-size: 34px;
}

.error-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.error-btn-primary,
.error-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.error-btn-primary {
  background-color: var(--accent);
  color: #1a1206;
  font-weight: 600;
}

.error-btn-primary:hover {
  background-color: #eeb26a;
  color: #1a1206;
}

.error-btn-ghost {
  border-color: var(--line);
  background-color: var(--bg-panel);
  color: var(--text-main);
}

.error-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-links {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 0;
}

.error-links-title {
  font-size: 20px;
}

.error-links-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.error-links-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-links-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ responsive ============ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-step-list,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-list.is-open {
    max-height: 420px;
    padding-bottom: 10px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 15px;
    border-color: var(--line);
  }

  .inner-main {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .channel-card-list,
  .collection-card-list,
  .path-step-list,
  .step-list,
  .boundary-list,
  .field-list,
  .related-list,
  .issue-list,
  .next-grid,
  .error-links-list,
  .boundary-note .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row,
  .channels-detail .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .channel-row-link,
  .channel-enter {
    justify-self: start;
  }

  .compare-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .collections-lead-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .collection-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .collection-meta dd {
    margin-bottom: 10px;
  }

  .step-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .step-block {
    padding: 18px;
  }

  .field-table,
  .data-table {
    min-width: 0;
  }

  .field-table thead,
  .data-table thead {
    display: none;
  }

  .field-table tbody tr,
  .data-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .field-table tbody tr:last-child,
  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .field-table tbody th,
  .field-table tbody td,
  .data-table tbody th,
  .data-table tbody td {
    display: block;
    padding: 4px 16px;
    border-bottom: 0;
    white-space: normal;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-title {
    font-size: 26px;
  }

  .error-links {
    padding-top: 28px;
  }
}

@media (max-width: 420px) {
  .container-width,
  .header-inner,
  .footer-inner,
  .hero-inner,
  .hero-channels,
  .hero-path-summary,
  .section,
  .breadcrumb,
  .page-header,
  .inner-main > section,
  .inner-main > figure,
  .inner-main > div {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-slogan {
    display: none;
  }

  .btn,
  .error-btn-primary,
  .error-btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
