/* ============================================================
   午夜被窝电影网 hfldzl.cn
   base / layout / components / pages / responsive
   ============================================================ */

/* ---------- base ---------- */

:root {
  --c-ink: #0f1620;
  --c-page: #f7f8fa;
  --c-card: #ffffff;
  --c-accent: #1f6feb;
  --c-accent-soft: #e8f0fe;
  --c-muted: #5b6879;
  --c-line: #d8dee6;
  --c-warn: #b45309;
  --c-warn-soft: #fdf3e3;
  --c-footer: #0f1620;
  --c-footer-text: #c3cdda;
  --c-footer-line: #26313f;
  --shadow-card: 0 1px 2px rgba(15, 22, 32, .06);
  --shadow-lift: 0 6px 18px rgba(15, 22, 32, .10);
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1180px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

:root[data-theme="dark"] {
  --c-ink: #e6ecf3;
  --c-page: #10161f;
  --c-card: #161e29;
  --c-accent: #6aa4f5;
  --c-accent-soft: #1c2a3d;
  --c-muted: #93a1b3;
  --c-line: #2a3644;
  --c-warn: #e0a55c;
  --c-warn-soft: #2a2116;
  --c-footer: #0b1017;
  --c-footer-text: #aab6c4;
  --c-footer-line: #222c39;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lift: 0 6px 18px rgba(0, 0, 0, .5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

code, .cell-code, .table-caption, .relation-head {
  font-family: var(--font-mono);
}

/* ---------- layout : shell ---------- */

.site-header {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 2px;
  background: var(--c-card);
}

.brand-text {
  font-size: 17px;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--c-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--c-ink);
  background: var(--c-accent-soft);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-card);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid var(--c-muted);
}

.theme-toggle:hover::before {
  border-color: var(--c-accent);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ---------- layout : breadcrumb & page header ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--c-accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-line);
}

.breadcrumb-current {
  color: var(--c-ink);
}

.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 780px;
}

.page-lead {
  margin-top: 10px;
  font-size: 15px;
  color: var(--c-muted);
  max-width: 780px;
}

/* ---------- layout : three column inner shell ---------- */

.page-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 200px;
  gap: 40px;
  align-items: start;
}

.layout-content,
.layout-main {
  min-width: 0;
}

.layout-aside,
.layout-side,
.layout-toc {
  min-width: 0;
  position: sticky;
  top: 84px;
}

.aside-title,
.side-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.aside-list li,
.side-nav li,
.toc-list li {
  margin-bottom: 2px;
}

.aside-list a,
.side-nav a,
.toc-list a {
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--c-muted);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-decoration: none;
  line-height: 1.5;
}

.aside-list a:hover,
.side-nav a:hover,
.toc-list a:hover {
  color: var(--c-ink);
  background: var(--c-accent-soft);
  text-decoration: none;
}

.aside-list a.is-current,
.side-nav a.is-current,
.toc-list a.is-current {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  font-weight: 600;
  background: var(--c-accent-soft);
}

.aside-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---------- layout : footer ---------- */

.site-footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-footer-text);
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.footer-list li {
  margin-bottom: 4px;
}

.footer-list a {
  display: inline-block;
  min-height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: var(--c-footer-text);
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-list a.is-current {
  color: #ffffff;
  font-weight: 600;
}

.footer-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-footer-text);
}

.footer-bottom {
  border-top: 1px solid var(--c-footer-line);
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px;
  font-size: 13px;
  color: #8d9bab;
}

/* ---------- components : buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn-primary {
  background: var(--c-accent);
  color: #ffffff;
  border-color: var(--c-accent);
}

.btn-primary:hover {
  background: #1a5fd0;
  border-color: #1a5fd0;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}

.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

/* ---------- components : tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-card);
  margin-bottom: 16px;
}

.data-table {
  min-width: 640px;
  font-size: 14px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-page);
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  background: var(--c-page);
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  vertical-align: top;
  line-height: 1.65;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--c-accent-soft);
}

.cell-code {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- components : lists & notes ---------- */

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

.point-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--c-accent);
}

.section-more,
.section-note,
.section-footnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-muted);
}

.section-more a,
.section-note a,
.section-footnote a {
  font-weight: 600;
}

/* ---------- components : figures ---------- */

.hero-media,
.section-media,
.media-figure,
.section-figure,
.card-media,
.collection-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-page);
}

.hero-media img,
.section-media img,
.media-figure img,
.section-figure img,
.card-media img,
.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption,
.section-media figcaption,
.media-figure figcaption,
.section-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-muted);
  background: var(--c-card);
  border-top: 1px solid var(--c-line);
}

/* ---------- components : content sections ---------- */

.content-section,
.guide-section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.section-lead,
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: 18px;
  max-width: 760px;
}

.sub-title,
.subsection-title,
.box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 12px;
}

/* ---------- pages : home ---------- */

.clue-bar {
  background: var(--c-ink);
  color: #dbe3ec;
  font-size: 13px;
}

.clue-bar-text,
.clue-bar-scope {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.clue-bar-text {
  padding-top: 10px;
  padding-bottom: 2px;
  line-height: 1.6;
}

.clue-bar-scope {
  padding-bottom: 10px;
  line-height: 1.6;
  color: #9fb0c4;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--c-line);
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--c-ink);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-muted);
  margin-bottom: 12px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
}

.hero-media img {
  flex: 1 1 auto;
  min-height: 0;
}

.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--c-line);
}

.section:last-child {
  border-bottom: none;
}

.section-head {
  margin-bottom: 24px;
  max-width: 780px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
}

.section-channels .section-media {
  margin-top: 20px;
  aspect-ratio: 16 / 6;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
}

.section-channels .section-media img {
  flex: 1 1 auto;
  min-height: 0;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-accent);
}

.card-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--c-line);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  padding: 16px 18px 8px;
}

.card-desc {
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.card-meta {
  padding: 12px 18px 18px;
  font-size: 13px;
  color: var(--c-accent);
  font-family: var(--font-mono);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
}

.split-col {
  min-width: 0;
}

.split-fields .data-table {
  min-width: 520px;
}

.boundary-list {
  margin-bottom: 14px;
}

.boundary-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--c-warn);
  background: var(--c-warn-soft);
  border-left: 3px solid var(--c-warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-col .sub-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.index-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

.index-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.index-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.index-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--c-muted);
}

/* ---------- pages : channels ---------- */

.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.scope-item {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

.scope-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.scope-cover,
.scope-exclude {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.scope-exclude {
  color: var(--c-warn);
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.relation-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
}

.relation-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.relation-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
  padding: 6px 0;
  border-bottom: 1px dashed var(--c-line);
}

.relation-list li:last-child {
  border-bottom: none;
}

.check-list {
  display: grid;
  gap: 4px;
}

.check-item {
  min-width: 0;
}

/* ---------- pages : collections ---------- */

.collection-card {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-accent);
}

.collection-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--c-line);
}

.collection-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  padding: 16px 18px 8px;
}

.collection-desc {
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.collection-meta,
.collection-pick {
  padding: 8px 18px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
}

.collection-meta {
  font-family: var(--font-mono);
  color: var(--c-accent);
}

.collection-pick {
  padding-bottom: 18px;
  border-top: 1px dashed var(--c-line);
  margin-top: 12px;
  padding-top: 12px;
}

/* ---------- pages : fields ---------- */

.field-table {
  min-width: 560px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.boundary-col {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
}

.boundary-in .subsection-title {
  color: var(--c-accent);
}

.boundary-out .subsection-title {
  color: var(--c-warn);
}

.channel-field-list {
  display: grid;
  gap: 14px;
}

.channel-field-item {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
}

.channel-field-item .subsection-title {
  margin-bottom: 6px;
}

.channel-field-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

/* ---------- pages : guide ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.col-box {
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step-item {
  min-width: 0;
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 62px;
}

.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
}

.step-check {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-warn);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: var(--c-accent);
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-question:hover {
  background: var(--c-accent-soft);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

/* ---------- pages : 404 ---------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.error-hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--c-line);
}

.error-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 680px;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-next,
.error-note {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
}

.error-note {
  border-bottom: none;
}

.error-next h2,
.error-note h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.error-link-list li {
  min-width: 0;
}

.error-link-list a {
  display: block;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  min-height: 44px;
}

.error-link-list a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  text-decoration: none;
}

.error-note p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 720px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .page-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout .layout-toc,
  .page-layout .aside-toc {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-boundary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 0 44px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-media {
    order: 2;
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lift);
    padding: 8px 16px 14px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 12px;
    border-bottom: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .nav-list a.is-current {
    border-bottom: none;
    border-left-color: var(--c-accent);
  }

  .inner-main,
  .home-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .clue-bar-text,
  .clue-bar-scope,
  .footer-inner,
  .footer-copy {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside,
  .layout-side,
  .layout-toc {
    position: static;
    top: auto;
    order: -1;
  }

  .aside-nav-body,
  .aside-nav,
  .side-nav {
    display: block;
  }

  .aside-list,
  .side-nav,
  .toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
  }

  .aside-list a,
  .side-nav a,
  .toc-list a {
    border-left: none;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 44px;
  }

  .aside-list a.is-current,
  .side-nav a.is-current,
  .toc-list a.is-current {
    border-color: var(--c-accent);
  }

  .page-title {
    font-size: 25px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section,
  .content-section,
  .guide-section {
    padding-top: 36px;
    padding-bottom: 36px;
    margin-bottom: 0;
  }

  .section:first-child {
    padding-top: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 36px;
  }

  .footer-boundary {
    grid-column: auto;
  }

  .step-item {
    padding: 46px 18px 18px;
  }

  .step-item::before {
    left: 18px;
    top: 16px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 15px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero-title {
    font-size: 25px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .error-actions {
    flex-direction: column;
  }

  .data-table {
    min-width: 520px;
    font-size: 13px;
  }

  .data-table thead th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .split-fields .data-table,
  .field-table {
    min-width: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .collection-card,
  .btn {
    transition: none;
  }

  .card:hover,
  .collection-card:hover {
    transform: none;
  }
}
