/* ==========================================================================
   被窝电视剧影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与重置
   -------------------------------------------------------------------------- */
:root {
  --ink: #23262b;
  --ink-soft: #5b6169;
  --ink-faint: #858c93;
  --paper: #f7f8f8;
  --paper-raise: #ffffff;
  --line: #dfe3e4;
  --line-strong: #c8cdcf;
  --accent: #1f6f6b;
  --accent-soft: #2f8f7a;
  --accent-wash: #eef4f3;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(35, 38, 43, 0.06);
  --shell: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.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;
}

/* --------------------------------------------------------------------------
   layout · 站点骨架：页头 / 导航 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-raise);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 0;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 17px;
  line-height: 1.4;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
  border-bottom-color: var(--line-strong);
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  display: block;
}

.home-main,
.inner-main,
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-faint);
}

.page-header {
  padding: 14px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.page-toc {
  margin: 22px 0 0;
  padding: 16px 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-toc-title,
.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.page-toc-list,
.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.toc-item {
  flex: 0 0 auto;
}

.page-toc-list a,
.toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.page-toc-list a:hover,
.toc-list a:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 56px;
  background: var(--paper-raise);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 28px 24px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-faint);
  max-width: 300px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px var(--gutter);
}

.footer-copyright {
  max-width: var(--shell);
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   components · 按钮 / 区块标题 / 表格 / 折叠块 / 图片容器
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 10px;
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-more,
.section-note,
.section-footnote,
.scope-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-more a,
.section-note a,
.section-footnote a,
.scope-note a {
  font-weight: 500;
}

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-scroll table {
  min-width: 560px;
}

.fields-overview th,
.fields-overview td,
.fields-detail th,
.fields-detail td,
.field-table th,
.field-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.fields-overview thead th,
.fields-detail thead th,
.field-table thead th {
  background: var(--accent-wash);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.fields-overview tbody th,
.fields-detail tbody th,
.field-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.fields-overview tbody tr:last-child th,
.fields-overview tbody tr:last-child td,
.fields-detail tbody tr:last-child th,
.fields-detail tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.fields-overview tbody td,
.fields-detail tbody td,
.field-table tbody td {
  color: var(--ink-soft);
}

.topic-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
}

.topic-scope,
.topic-range {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.collection-meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 14px;
}

.collection-meta dt {
  color: var(--ink-faint);
  white-space: nowrap;
}

.collection-meta dd {
  color: var(--ink-soft);
  min-width: 0;
  overflow-wrap: break-word;
}

.collection-meta dd a {
  margin-right: 10px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.guide-step {
  position: relative;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
}

.step-desc,
.step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-list,
.updates-accordion {
  display: block;
}

.faq-item,
.update-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item:last-child,
.update-item:last-child {
  margin-bottom: 0;
}

.faq-question,
.update-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker,
.update-summary::-webkit-details-marker {
  display: none;
}

.faq-question::after,
.update-summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after,
.update-item[open] .update-summary::after {
  content: "–";
}

.faq-answer,
.update-item p {
  padding: 14px 18px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.hero-figure,
.section-figure,
.topic-figure,
.collection-cover,
.guide-figure,
.section-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--accent-wash);
}

.hero-figure img,
.section-figure img,
.topic-figure img,
.collection-cover img,
.guide-figure img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-caption,
.media-caption,
.guide-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.28;
}

.hero-desc {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  margin-top: 26px;
  aspect-ratio: 16 / 9;
}

.hero-table-wrap {
  min-width: 0;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.hero-table-title {
  font-size: 16px;
  font-weight: 600;
}

.hero-table-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-faint);
}

.hero-table-wrap .table-scroll {
  margin-top: 14px;
  border: 0;
  border-radius: 0;
}

.hero-table-wrap .table-scroll table {
  min-width: 480px;
}

.topics-overview,
.collections-preview,
.fields-table,
.guide-entry {
  padding: 40px 0 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.section-figure {
  margin-top: 24px;
  aspect-ratio: 21 / 9;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.collection-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.collection-title {
  font-size: 17px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 内页公共模块
   -------------------------------------------------------------------------- */
.inner-main > .section,
.inner-main > .content-section,
.inner-main > .collections-index,
.inner-main > .collections-scope,
.inner-main > .collections-topics-link,
.inner-main > .collections-updates,
.inner-main > .guide-order,
.inner-main > .guide-fields,
.inner-main > .guide-routes,
.inner-main > .guide-faq {
  padding: 40px 0 0;
}

.topic-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.topic-group .topic-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0;
  overflow: hidden;
}

.topic-group .topic-figure {
  border-radius: 0;
  height: 100%;
  min-height: 140px;
}

.topic-group .topic-body {
  min-width: 0;
  padding: 18px 20px 18px 0;
}

.scope-table,
.relation-table,
.rule-table {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scope-caption,
.relation-caption,
.rule-table-caption,
.table-caption {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.scope-table th,
.scope-table td,
.relation-table th,
.relation-table td,
.rule-table th,
.rule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
}

.scope-table thead th,
.relation-table thead th,
.rule-table thead th {
  background: var(--accent-wash);
  font-weight: 600;
  white-space: nowrap;
}

.scope-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.scope-table tbody td,
.relation-table tbody td,
.rule-table tbody td {
  color: var(--ink-soft);
}

.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td,
.relation-table tbody tr:last-child td,
.rule-table tbody tr:last-child td {
  border-bottom: 0;
}

.topics-scope .scope-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.topics-scope .scope-table thead,
.topics-scope .scope-table tbody {
  display: table;
  width: 100%;
  min-width: 640px;
}

.relation-list {
  display: grid;
  gap: 10px;
}

.relation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.relation-left {
  color: var(--ink);
  font-weight: 600;
}

.relation-arrow {
  text-align: center;
  color: var(--line-strong);
}

.relation-right {
  color: var(--ink-soft);
}

.collection-stream {
  display: grid;
  gap: 18px;
}

.collection-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collection-card .collection-cover {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.collection-card .collection-body {
  min-width: 0;
  padding: 18px 22px 18px 0;
}

.collection-theme {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.scope-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.scope-note-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scope-notes .scope-note {
  margin-top: 0;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.relation-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.relation-table-wrap .relation-table {
  min-width: 640px;
}

.updates-accordion {
  display: grid;
  gap: 10px;
}

.guide-order .guide-figure {
  margin-bottom: 22px;
  aspect-ratio: 21 / 9;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.route-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.route-title {
  font-size: 16px;
  font-weight: 600;
}

.route-scene {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.route-steps {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  counter-reset: route;
}

.route-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.route-steps li::before {
  counter-increment: route;
  content: counter(route);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.scope-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-column {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.scope-column-in {
  border-top: 3px solid var(--accent);
}

.scope-column-out {
  border-top: 3px solid var(--line-strong);
}

.scope-column-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.scope-list {
  display: grid;
  gap: 10px;
}

.scope-item {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}

.scope-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.scope-term {
  font-weight: 600;
  color: var(--ink);
}

.scope-desc {
  color: var(--ink-soft);
  min-width: 0;
}

.feedback-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feedback-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.feedback-title {
  font-size: 16px;
  font-weight: 600;
}

.feedback-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-media {
  margin-bottom: 22px;
  aspect-ratio: 21 / 9;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-hero {
  padding: 64px 0 8px;
  max-width: 720px;
}

.error-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.error-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-routes {
  padding: 40px 0 0;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.error-route-item {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.error-route-title {
  font-size: 16px;
  font-weight: 600;
}

.error-route-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   responsive · 断点适配
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 18px;
    gap: 12px;
    min-height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    padding: 0 6px;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 18px;
  }

  .page-title,
  .error-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-fields {
    padding-top: 28px;
  }

  .topics-overview,
  .collections-preview,
  .fields-table,
  .guide-entry,
  .inner-main > .section,
  .inner-main > .content-section,
  .inner-main > .collections-index,
  .inner-main > .collections-scope,
  .inner-main > .collections-topics-link,
  .inner-main > .collections-updates,
  .inner-main > .guide-order,
  .inner-main > .guide-fields,
  .inner-main > .guide-routes,
  .inner-main > .guide-faq {
    padding-top: 32px;
  }

  .topic-group .topic-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-group .topic-figure {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .topic-group .topic-body {
    padding: 0 18px 18px;
  }

  .collection-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .collection-card .collection-body {
    padding: 16px 18px 18px;
  }

  .scope-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .relation-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .relation-arrow {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 32px 18px 22px;
    gap: 22px 18px;
  }

  .footer-bottom {
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title,
  .error-title {
    font-size: 21px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .hero-table-wrap {
    padding: 16px;
  }

  .topic-grid,
  .collection-list,
  .guide-steps,
  .route-list,
  .feedback-list,
  .scope-notes,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-question,
  .update-summary {
    padding: 12px 14px;
  }

  .faq-answer,
  .update-item p {
    padding-left: 14px;
    padding-right: 14px;
  }
}
