/* ==========================================================================
   日韩午夜电影 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --line: #dfe3e6;
  --line-strong: #c8ced3;
  --text: #1c2226;
  --muted: #5c666d;
  --accent: #2f6b6a;
  --accent-soft: #e6efee;
  --warn: #8a5a1f;
  --warn-soft: #f6efe4;
  --radius: 4px;
  --radius-card: 6px;
  --shadow-soft: 0 1px 2px rgba(28, 34, 38, 0.05);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --container: 1200px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: 32px;
  line-height: 1.3;
}

h2 {
  font-size: 22px;
  line-height: 1.4;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.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: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 600;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--accent);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--surface);
  border-radius: 2px;
}

.brand-text {
  font-size: 16px;
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 4px 0 0;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  margin: 18px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

.page-description {
  margin-top: 10px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.layout-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 720px) 320px;
  justify-content: center;
}

.page-layout.sidebar-left.layout-shell {
  grid-template-columns: 240px minmax(0, 720px) 320px;
}

.layout-main,
.layout-content,
.content-column {
  min-width: 0;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.back-top {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 6px 0;
}

.back-top:hover,
.back-top:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

.section-desc {
  margin-top: 8px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.section-intro {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.section-text {
  margin-bottom: 16px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.section-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.content-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.content-section > .section-title {
  margin-bottom: 14px;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 500;
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

.media-figure,
.content-media,
.doc-figure,
.playlist-figure,
.media-block {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.media-figure img,
.content-media img,
.doc-figure img,
.playlist-figure img,
.media-block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--accent-soft);
}

.media-figure figcaption,
.content-media figcaption,
.doc-figure figcaption,
.playlist-caption,
.media-block figcaption {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.field-table,
.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.table-caption,
.field-caption {
  caption-side: top;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td,
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th,
.data-table thead th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table .field-name,
.field-table .cell-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.notice-banner {
  background: var(--warn-soft);
  border-bottom: 1px solid #e8dcc6;
}

.notice-banner[hidden] {
  display: none;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  flex-wrap: wrap;
}

.notice-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--warn);
}

.notice-link {
  font-size: 13px;
  line-height: 1.6;
  color: var(--warn);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid #d8c8a8;
  border-radius: var(--radius);
  color: var(--warn);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.notice-close:hover,
.notice-close:focus-visible {
  background: #efe3cd;
}

.home-main {
  padding-top: 32px;
}

.hero {
  margin-bottom: 52px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-slogan {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 12px;
  border-left: 3px solid var(--accent-soft);
}

.hero-links {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.hero-links-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--muted);
}

.clue-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.clue-item {
  min-width: 0;
}

.clue-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.clue-link:hover,
.clue-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.clue-name {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.clue-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-path {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  font-family: var(--font-mono);
}

.content-media-primary {
  margin-top: 28px;
}

.content-media-primary img {
  aspect-ratio: 16 / 7;
}

.section-channels .media-channels {
  margin-top: 24px;
}

.media-channels img {
  aspect-ratio: 21 / 8;
}

.channel-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}

.channel-row:last-child {
  border-bottom: none;
}

.channel-row:hover {
  background: var(--accent-soft);
}

.channel-code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 500;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 6px;
}

.channel-scope,
.channel-trait,
.channel-feature {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.channel-scope {
  margin-bottom: 4px;
}

.channel-enter {
  justify-self: end;
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
  white-space: nowrap;
}

.channel-enter::after {
  content: " →";
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pick-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.pick-name {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.pick-structure,
.pick-scope {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.pick-link {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
}

.pick-link::after {
  content: " →";
}

.media-picks {
  margin-top: 24px;
}

.media-picks img {
  aspect-ratio: 21 / 8;
}

.field-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.section-steps .step-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 500;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-input,
.step-judge {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.step-input {
  margin-bottom: 4px;
}

.step-more {
  margin-top: 16px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-block {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.boundary-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 10px;
}

.boundary-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.boundary-links {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 内页侧栏与文档模块
   -------------------------------------------------------------------------- */

.layout-side,
.layout-sidebar,
.side-rail,
.page-sidebar {
  min-width: 0;
  font-size: 13px;
}

.side-block,
.sidebar-block,
.rail-block,
.aside-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.side-block:last-child,
.sidebar-block:last-child,
.rail-block:last-child,
.aside-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-label,
.sidebar-title,
.rail-title,
.aside-title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.side-value {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 6px;
}

.side-note,
.sidebar-text,
.sidebar-meta,
.rail-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.side-list,
.sidebar-list,
.rail-list,
.toc-list,
.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-list a,
.sidebar-list a,
.rail-list a,
.toc-list a,
.aside-list a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: inline-block;
}

.side-list a:hover,
.sidebar-list a:hover,
.rail-list a:hover,
.toc-list a:hover,
.aside-list a:hover,
.side-list a:focus-visible,
.sidebar-list a:focus-visible,
.rail-list a:focus-visible,
.toc-list a:focus-visible,
.aside-list a:focus-visible {
  color: var(--accent);
}

.layout-aside {
  min-width: 0;
  font-size: 13px;
}

.aside-note {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.aside-note .aside-title {
  color: var(--text);
}

.aside-note p,
.aside-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
}

.aside-link::after {
  content: " →";
}

.basis-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.basis-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.basis-key {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.channel-list .channel-row .channel-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--accent-soft);
}

.channel-list .channel-row .channel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-list .channel-row {
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  padding: 20px 0;
}

.channel-list .channel-row:hover {
  background: transparent;
}

.channel-list .channel-row .channel-body {
  min-width: 0;
}

.channel-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1px 8px;
  margin-bottom: 8px;
}

.channel-list .channel-row .channel-scope,
.channel-list .channel-row .channel-feature {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 6px;
}

.channel-list .channel-row .channel-enter {
  display: inline-block;
  justify-self: start;
  margin-top: 8px;
}

.feature-table .channel-key {
  margin-bottom: 0;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.link-item {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
}

.link-item a {
  color: var(--accent);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.principle-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.principle-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.principle-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.playlist-figure {
  margin: -16px -16px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.playlist-figure img {
  aspect-ratio: 16 / 9;
}

.playlist-title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.playlist-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.playlist-meta {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 13px;
  line-height: 1.7;
}

.playlist-meta dt {
  font-family: var(--font-mono);
  color: var(--muted);
}

.playlist-meta dd {
  color: var(--text);
}

.playlist-card .text-link {
  margin-top: auto;
}

.boundary-note {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
}

.boundary-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.boundary-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 条目字段说明页 */

.doc-section {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}

.doc-section > .section-title {
  margin-bottom: 14px;
}

.doc-figure {
  margin: 18px 0 20px;
}

.doc-figure img {
  aspect-ratio: 16 / 6;
}

.doc-section .step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.doc-section .step-item {
  display: grid;
  grid-template-columns: 40px 140px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-section .step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.doc-section .step-name {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

.doc-section .step-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.case-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
}

.case-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.notice-block {
  margin-top: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius-card);
}

.notice-title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.notice-block .notice-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 8px;
}

.notice-block .notice-text:last-child {
  margin-bottom: 0;
}

/* 查阅路径页 */

.section-steps .step-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.section-steps .step-row:first-child {
  border-top: 1px solid var(--line);
}

.section-steps .step-index {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 500;
}

.section-steps .step-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-goal {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.section-inputs .input-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.section-inputs .input-block:first-of-type {
  border-top: 1px solid var(--line);
}

.section-inputs .media-block {
  max-width: 560px;
  margin-bottom: 14px;
}

.section-inputs .media-block img {
  aspect-ratio: 16 / 6;
}

.input-name {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-text {
  max-width: 720px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0 18px;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  display: block;
  padding: 14px 30px 14px 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.section-boundary .boundary-col {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  min-width: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-block {
  max-width: 720px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  margin-bottom: 10px;
}

.error-block h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #275c5b;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.error-guide {
  margin-top: 32px;
}

.error-guide h2,
.error-note h2 {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-list li {
  min-width: 0;
}

.error-list a {
  display: block;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.error-list a:hover,
.error-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.error-note {
  margin-top: 32px;
  max-width: 720px;
}

.error-note p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-layout.sidebar-left,
  .page-layout.sidebar-left.layout-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout.sidebar-left .layout-aside,
  .page-layout.sidebar-left.layout-shell .layout-aside {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .page-layout.sidebar-left .layout-aside .aside-block,
  .page-layout.sidebar-left.layout-shell .layout-aside .aside-block {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .playlist-grid,
  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 14px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-link.is-current {
    background: var(--accent-soft);
    border-bottom-color: var(--line);
  }

  .site-main {
    padding-bottom: 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-layout,
  .page-layout.sidebar-left,
  .page-layout.sidebar-left.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout.sidebar-left .layout-aside,
  .page-layout.sidebar-left.layout-shell .layout-aside {
    display: block;
  }

  .page-layout.sidebar-left .layout-side,
  .page-layout.sidebar-left .layout-sidebar,
  .page-layout.sidebar-left .side-rail,
  .page-layout.sidebar-left .page-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .channel-list .channel-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
  }

  .channel-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .channel-enter {
    justify-self: start;
    grid-column: 2;
  }

  .principle-list,
  .boundary-grid,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-section .step-item {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 4px;
  }

  .doc-section .step-note {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 14px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 21px;
  }

  .section-title {
    font-size: 19px;
  }

  .clue-list,
  .pick-grid,
  .playlist-grid,
  .footer-grid,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-list .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-list .channel-row .channel-media {
    max-width: 100%;
  }

  .basis-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-item,
  .section-steps .step-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .playlist-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .playlist-meta dt {
    color: var(--muted);
  }

  .footer-inner {
    padding: 32px var(--gutter) 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .notice-inner {
    gap: 8px;
  }

  .notice-close {
    margin-left: 0;
  }
}
