/* ==========================================================================
   午夜影院 xisuansuan.cn 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --bg-night: #0f1115;
  --bg-panel: #1a1d24;
  --bg-panel-soft: #161920;
  --text-main: #e8eaf0;
  --text-muted: #9aa3b2;
  --accent: #e6b422;
  --accent-soft: rgba(230, 180, 34, 0.14);
  --line: #2a2f3a;
  --line-strong: #3a4150;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1080px;
  --reading: 720px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-night);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #f3c94a;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* --------------------------------------------------------------------------
   layout：站点骨架（页头、导航、主容器、页脚）
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-night);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(15, 17, 21, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background-color: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-main > section,
.site-main > div,
.site-main > header,
.site-main > nav {
  width: 100%;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-footer {
  flex: 0 0 auto;
  background-color: var(--bg-panel-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  min-height: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-top {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.footer-top:hover,
.footer-top:focus-visible {
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   layout：内页通用骨架（面包屑、页面标题区、三栏布局）
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-description {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout {
  grid-template-columns: 200px minmax(0, 1fr) 180px;
}

.aside-left,
.aside-right {
  position: sticky;
  top: 88px;
  min-width: 0;
  font-size: 14px;
}

.aside-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  text-transform: none;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-title + .aside-list {
  margin-bottom: 22px;
}

.aside-nav {
  display: block;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-list a {
  display: block;
  padding: 6px 8px;
  min-height: 32px;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--text-main);
  background-color: var(--bg-panel);
  border-left-color: var(--accent);
}

/* --------------------------------------------------------------------------
   components：按钮与通用文字链接
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.btn-primary {
  background-color: var(--accent);
  color: #14161b;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #f3c94a;
  border-color: #f3c94a;
  color: #14161b;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--accent);
  color: #14161b;
  font-size: 15px;
  font-weight: 500;
}

.action-link:hover,
.action-link:focus-visible {
  background-color: #f3c94a;
  border-color: #f3c94a;
  color: #14161b;
}

.action-link-secondary {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--text-main);
}

.action-link-secondary:hover,
.action-link-secondary:focus-visible {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   components：图片容器统一约束
   -------------------------------------------------------------------------- */
.hero-figure,
.section-figure,
.channel-figure,
.media-figure,
.content-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
}

.hero-figure img,
.section-figure img,
.channel-figure img,
.media-figure img,
.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.section-figure figcaption,
.channel-figure figcaption,
.media-caption,
.figure-caption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   components：通用内容区块
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-desc {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-lead {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.content-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.section-more {
  margin-top: 18px;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.content-figure,
.media-figure {
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stat {
  min-width: 0;
}

.hero-stat dt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-stat dd {
  font-size: 15px;
  color: var(--text-main);
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.home-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.home-section:last-of-type {
  border-bottom: 0;
}

/* 首页：题材频道方向总览 */
.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 200px 96px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row .channel-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.channel-row .channel-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.channel-row .channel-samples {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.channel-row .channel-link {
  justify-self: end;
  font-size: 14px;
  white-space: nowrap;
}

/* 首页：本期专题片单速览 */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  min-width: 0;
  padding: 22px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-card:hover {
  border-color: var(--line-strong);
}

.collection-card .collection-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.collection-card .collection-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.collection-card .collection-samples {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.section-collections .section-figure {
  margin-top: 24px;
}

.section-collections .section-figure img {
  aspect-ratio: 16 / 7;
}

/* 首页：条目字段与收录边界摘要 */
.field-table {
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.field-caption,
.table-caption {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.field-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-panel-soft);
}

.field-table tbody th {
  width: 160px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
}

.field-table tbody td {
  color: var(--text-muted);
}

/* 首页：查阅路径三步概览 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: home-step;
}

.step-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-item:first-child {
  border-top: 1px solid var(--line);
}

.step-item .step-name {
  font-size: 17px;
  font-weight: 600;
}

.step-item .step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages：题材频道页
   -------------------------------------------------------------------------- */
.channel-main {
  min-width: 0;
}

.channel-block {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.channel-block > .channel-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.channel-intro {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.channel-figure {
  margin: 18px 0;
}

.channel-figure img {
  aspect-ratio: 16 / 7;
}

.channel-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 10px;
}

.channel-items {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.channel-item .item-name {
  font-size: 15px;
  color: var(--text-main);
}

.channel-item .item-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: right;
}

.channel-scope {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.channel-next {
  padding: 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-next-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.channel-next-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.channel-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages：专题片单页
   -------------------------------------------------------------------------- */
.layout-main {
  min-width: 0;
}

.collection-block {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.collection-block:last-child {
  border-bottom: 0;
}

.collection-block > .collection-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.collection-theme {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.collection-meta {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.collection-meta dt {
  padding: 11px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}

.collection-meta dd {
  padding: 11px 0;
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.path-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.path-item {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages：条目字段说明页
   -------------------------------------------------------------------------- */
.layout-aside {
  min-width: 0;
}

.rule-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.rule-block:first-of-type {
  border-top: 1px solid var(--line);
}

.rule-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.rule-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rule-example {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  padding: 10px 14px;
  background-color: var(--bg-panel-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rule-example .mono {
  color: var(--text-main);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.boundary-item {
  padding: 12px 0 12px 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.related-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.related-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item:hover {
  border-color: var(--line-strong);
}

.related-item a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--accent);
}

.related-desc {
  display: block;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   pages：查阅路径页
   -------------------------------------------------------------------------- */
.content-column {
  min-width: 0;
}

.content-column .content-section > p {
  max-width: var(--reading);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 22px 0 10px;
}

.point-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.point-item {
  padding: 11px 0 11px 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.point-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.point-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.content-column .step-list {
  counter-reset: none;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.content-column .step-row {
  display: grid;
  grid-template-columns: 56px 160px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.content-column .step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.content-column .step-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.content-column .step-note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.error-panel {
  max-width: var(--reading);
  padding: 64px 0 0;
}

.error-panel h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-hints {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}

.error-hints li {
  padding: 12px 0 12px 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.error-hints li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--accent);
  color: #14161b;
  font-size: 15px;
  font-weight: 500;
}

.action-primary:hover,
.action-primary:focus-visible {
  background-color: #f3c94a;
  border-color: #f3c94a;
  color: #14161b;
}

.action-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
}

.action-secondary:hover,
.action-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   responsive：1024px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .aside-right {
    position: static;
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .channel-row {
    grid-template-columns: 140px minmax(0, 1fr) 160px;
  }

  .channel-row .channel-link {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   responsive：768px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--accent);
  }

  .home-main,
  .inner-main,
  .error-main,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 0 44px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-figure {
    order: 2;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .hero-stats {
    gap: 20px;
  }

  .home-section {
    padding: 40px 0;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 16px 0;
  }

  .channel-row .channel-link {
    grid-column: auto;
  }

  .collection-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collections .section-figure img {
    aspect-ratio: 16 / 10;
  }

  .field-table th,
  .field-table td {
    padding: 10px 10px;
  }

  .field-table tbody th {
    width: 110px;
  }

  .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding: 14px 0 20px;
    margin-bottom: 24px;
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .aside-left,
  .aside-right {
    position: static;
  }

  .aside-left {
    order: 2;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .channel-main,
  .layout-main,
  .content-column {
    order: 1;
  }

  .aside-right {
    order: 3;
  }

  .channel-figure img,
  .content-figure img,
  .media-figure img {
    aspect-ratio: 16 / 10;
  }

  .channel-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .channel-item .item-meta {
    text-align: left;
  }

  .collection-meta {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-column .step-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .content-column .step-note {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   responsive：420px 以下细节收敛
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .hero-actions .btn,
  .error-actions a,
  .section-actions a {
    width: 100%;
  }

  .field-table tbody th {
    width: 92px;
  }

  .collection-meta {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   a11y：减少动效偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn,
  .action-link {
    transition: none;
  }
}
