/* ==========================================================================
   新飘花电影 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --ink: #1b1f24;
  --ink-soft: #5a636c;
  --ink-faint: #7b848d;
  --accent: #2f6f6a;
  --accent-deep: #235652;
  --accent-soft: #e6efee;
  --line: #e8ebe9;
  --line-strong: #d5dad8;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-alt: #f1f3f2;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --shadow-soft: 0 1px 2px rgba(27, 31, 36, 0.04), 0 8px 24px rgba(27, 31, 36, 0.05);
  --ease: 150ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

dl,
dd,
dt {
  margin: 0;
}

time {
  font-variant-numeric: tabular-nums;
}

strong {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  text-decoration: none;
  color: var(--ink);
}

.site-header .brand-mark {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.site-header .brand-sub {
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.site-nav .nav-list li {
  display: block;
}

.site-nav .nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-list a:hover,
.site-nav .nav-list a:focus-visible {
  color: var(--accent-deep);
  background: var(--surface-alt);
  text-decoration: none;
}

.site-nav .nav-list a.is-current {
  color: var(--accent-deep);
  font-weight: 600;
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-main.inner-main {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.home-main {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.site-footer {
  flex-shrink: 0;
  background: #1f2429;
  color: #c8cfd4;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 32px 28px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 36px;
}

.site-footer .footer-brand {
  min-width: 0;
}

.site-footer .footer-name {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.site-footer .footer-desc {
  margin: 0;
  color: #9aa4ab;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer .footer-group {
  min-width: 0;
}

.site-footer .footer-group-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.site-footer .footer-group ul {
  margin: 0;
}

.site-footer .footer-group li {
  margin-bottom: 2px;
}

.site-footer .footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #a9b3b9;
  text-decoration: none;
}

.site-footer .footer-group a:hover,
.site-footer .footer-group a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid #313840;
  color: #8b959c;
  font-size: 13px;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .footer-copy {
  color: #7d878e;
}

/* 面包屑（内页统一） */
.breadcrumb {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.breadcrumb ol,
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.inner-main .breadcrumb {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
}

/* 页面标题区（内页统一） */
.page-header {
  margin: 0 0 36px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

/* 两栏外壳：主内容在前，aside 在后（默认） */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}

/* 侧栏在左：aside 在前，主内容在后 */
.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.page-layout .content-column,
.page-layout .main-column {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   3. components · 通用组件
   -------------------------------------------------------------------------- */

/* 段落与文本 */
.section-intro,
.section-lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-head {
  margin: 0 0 28px;
}

.section-head h2,
.section-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.section-head .section-lead {
  margin-bottom: 0;
}

.section-title + .section-intro,
.section-title + .section-lead {
  margin-top: 0;
}

.subsection-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.section-foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.inline-link {
  margin: 14px 0 0;
}

.inline-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* 箭头链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* 按钮 */
.btn-primary,
.btn-secondary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn-primary,
.button-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary,
.button-ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

/* 基础列表 */
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.plain-list li:last-child {
  margin-bottom: 0;
}

/* 编号步骤（通用） */
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  margin: 0 0 12px;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.step-list li:last-child {
  margin-bottom: 0;
}

/* 图片容器 */
.hero-figure,
.channel-figure,
.playlist-figure,
.section-media,
.content-media {
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-figure img,
.channel-figure img,
.playlist-figure img,
.section-media img,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}

.hero-figure figcaption,
.channel-figure figcaption,
.playlist-figure figcaption,
.section-media figcaption,
.content-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.6;
}

/* 侧栏目录 */
.side-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.side-toc-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.side-toc-title + .side-toc-list,
.side-toc-title + .side-toc-links {
  margin-bottom: 20px;
}

.side-toc-list,
.side-toc-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-toc-list li,
.side-toc-links li {
  margin: 0 0 2px;
}

.side-toc-list a,
.side-toc-links a {
  display: block;
  min-height: 34px;
  padding: 5px 10px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
  text-decoration: none;
}

.side-toc-list a:hover,
.side-toc-list a:focus-visible,
.side-toc-links a:hover,
.side-toc-links a:focus-visible {
  border-left-color: var(--accent);
  background: var(--surface-alt);
  color: var(--accent-deep);
  text-decoration: none;
}

.side-toc-list a.is-active,
.side-toc-list a[aria-current="true"] {
  border-left-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
}

.side-toc-collapsed {
  display: none;
}

.side-toc-related {
  margin-top: 4px;
}

/* 相关页面入口 */
.related {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list li {
  margin: 0;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.related-item {
  margin: 0;
}

.related-item a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.related-item a:hover,
.related-item a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-desc {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* FAQ 折叠 */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--accent-deep);
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* 表格 */
.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.field-table-el,
.field-mini-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.field-mini-table {
  min-width: 0;
}

.field-table-caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--ink-faint);
  font-size: 13px;
}

.field-table-el th,
.field-table-el td,
.field-mini-table th,
.field-mini-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.field-table-el thead th,
.field-mini-table thead th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.field-table-el tbody tr:last-child th,
.field-table-el tbody tr:last-child td,
.field-mini-table tbody tr:last-child th,
.field-mini-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table-el tbody th,
.field-mini-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.field-table-el tbody td,
.field-mini-table tbody td {
  color: var(--ink-soft);
}

/* 调整记录条目 */
.log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log-item {
  display: grid;
  grid-template-columns: 110px 96px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.log-item:last-child {
  border-bottom: 0;
}

.log-date {
  color: var(--ink-faint);
  font-size: 14px;
}

.log-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 2px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.log-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* 折叠细节 */
.log-details {
  grid-column: 1 / -1;
}

.log-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.log-summary::-webkit-details-marker {
  display: none;
}

.log-summary::after {
  content: "展开";
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}

.log-details[open] .log-summary::after {
  content: "收起";
}

.log-summary:hover {
  color: var(--accent-deep);
}

.log-body {
  padding: 4px 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.log-brief {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}

.flow-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.need-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.need-item {
  margin: 0 0 10px;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.need-item:last-child {
  margin-bottom: 0;
}

.need-item::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.need-label {
  color: var(--ink);
  font-weight: 600;
}

.scope-list,
.check-list,
.exclude-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li,
.check-list li,
.exclude-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.scope-list li:last-child,
.check-list li:last-child,
.exclude-list li:last-child {
  margin-bottom: 0;
}

.scope-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.exclude-list li::before {
  content: "—";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ink-faint);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.home-main .hero-dual {
  position: relative;
  margin: 28px 0 0;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--line);
}

.home-main .hero-figure {
  height: 240px;
  margin: 0 0 32px;
}

.home-main .hero-inner {
  display: block;
}

.home-main .hero-intro {
  max-width: 720px;
  margin: 0 0 32px;
}

.home-main .hero-title {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
}

.home-main .hero-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.home-main .hero-channels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  margin: 0 0 28px;
}

.home-main .hero-channel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-main .hero-channel-fast {
  background: var(--surface-alt);
}

.home-main .hero-channel-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
}

.home-main .hero-steps {
  flex: 1 1 auto;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: hero-step;
}

.home-main .hero-steps li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 34px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.home-main .hero-steps li:last-child {
  margin-bottom: 0;
}

.home-main .hero-steps li::before {
  counter-increment: hero-step;
  content: counter(hero-step);
  position: absolute;
  top: 0.18em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.home-main .hero-quick-list {
  flex: 1 1 auto;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.home-main .hero-quick-list li {
  margin: 0 0 2px;
}

.home-main .hero-quick-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.home-main .hero-quick-list li:last-child a {
  border-bottom: 0;
}

.home-main .hero-quick-list a:hover,
.home-main .hero-quick-list a:focus-visible {
  color: var(--accent-deep);
  text-decoration: none;
}

.home-main .hero-quick-list a::after {
  content: "→";
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
}

.home-main .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-main .channel-overview,
.home-main .playlist-overview,
.home-main .field-boundary-summary,
.home-main .reading-path-steps,
.home-main .boundary-log-summary,
.home-main .site-index {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.home-main .site-index {
  border-bottom: 0;
  padding-bottom: 8px;
}

/* 频道行列表 */
.channel-row-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px auto;
  gap: 8px 28px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row-main {
  min-width: 0;
}

.channel-row-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.channel-row-scope {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.channel-row-meta {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}

.channel-row-meta dt {
  color: var(--ink-faint);
}

.channel-row-meta dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-row > .link-arrow {
  justify-self: end;
  align-self: center;
}

/* 片单速览 */
.playlist-overview .playlist-figure {
  height: 220px;
  margin: 0 0 28px;
}

.playlist-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.playlist-row:last-of-type {
  border-bottom: 0;
}

.playlist-row-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.playlist-row-scope,
.playlist-row-basis,
.playlist-row-channel {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.playlist-row-channel {
  margin-bottom: 0;
}

.playlist-row-channel a {
  font-weight: 600;
  text-decoration: none;
}

.playlist-row-channel a:hover,
.playlist-row-channel a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 字段与边界摘要 */
.summary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.summary-col {
  min-width: 0;
}

.summary-col h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.summary-col-boundary {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-col-boundary p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.summary-col-boundary .link-arrow {
  margin-top: 6px;
}

.field-mini-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 三步概览 */
.step-list {
  counter-reset: step;
}

.home-main .step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.home-main .step-item:last-child {
  border-bottom: 0;
}

.home-main .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 600;
}

.home-main .step-body {
  min-width: 0;
}

.home-main .step-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.home-main .step-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* 调整记录摘要 */
.boundary-log-summary .log-item {
  grid-template-columns: 110px 96px minmax(0, 1fr);
}

/* 站内页面索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.index-col {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.index-col h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list li {
  margin: 0 0 2px;
}

.index-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.index-list a:hover,
.index-list a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   5. pages · 频道分类
   -------------------------------------------------------------------------- */

.channel-directions {
  margin-bottom: 56px;
}

.channel-figure {
  height: 220px;
  margin: 0 0 28px;
}

.channel-row-fields {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
}

.channel-row-fields dt {
  color: var(--ink-faint);
}

.channel-row-fields dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-row-link {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.channel-row-link a {
  font-weight: 600;
  text-decoration: none;
}

.channel-row-link a:hover,
.channel-row-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.channel-fields {
  margin-bottom: 56px;
}

.channel-fields-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.channel-fields-col {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-fields-col h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.channel-advice {
  margin-bottom: 8px;
}

.channel-advice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.channel-advice-col {
  min-width: 0;
}

.channel-advice-col h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.channel-advice-col .step-list {
  counter-reset: advice-step;
}

.channel-advice-col .step-list li {
  position: relative;
  padding-left: 34px;
}

.channel-advice-col .step-list li::before {
  counter-increment: advice-step;
  content: counter(advice-step);
  position: absolute;
  top: 0.2em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   6. pages · 专题片单
   -------------------------------------------------------------------------- */

.playlist-scope {
  margin-bottom: 56px;
}

.playlist-scope .playlist-row {
  padding: 24px 0;
}

.playlist-scope .playlist-row h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 600;
}

.playlist-scope .playlist-figure {
  height: 200px;
  margin: 0 0 18px;
}

.playlist-meta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}

.playlist-meta dt {
  color: var(--ink-faint);
  font-size: 14px;
}

.playlist-meta dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.playlist-meta dd a {
  font-weight: 600;
  text-decoration: none;
}

.playlist-meta dd a:hover,
.playlist-meta dd a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.playlist-basis {
  margin-bottom: 56px;
}

.playlist-basis-columns,
.audience-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.basis-column,
.relation-column,
.audience-column,
.suggestion-column {
  min-width: 0;
}

.basis-column h3,
.relation-column h3,
.audience-column h3,
.suggestion-column h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.basis-list,
.audience-list,
.suggestion-list,
.relation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.basis-list li,
.audience-list li,
.suggestion-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.basis-list li:last-child,
.audience-list li:last-child,
.suggestion-list li:last-child {
  margin-bottom: 0;
}

.basis-list li::before,
.audience-list li::before,
.suggestion-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.relation-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.relation-list li:last-child {
  border-bottom: 0;
}

.relation-name {
  color: var(--ink);
  font-weight: 600;
}

.relation-target {
  color: var(--ink-soft);
}

.playlist-audience {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   7. pages · 条目字段说明
   -------------------------------------------------------------------------- */

.field-guide .section,
.page-field-guide .section {
  margin-bottom: 56px;
}

.page-field-guide .section:last-of-type {
  margin-bottom: 0;
}

.field-table .section-media,
.boundary-summary .section-media {
  height: 200px;
  margin: 0 0 24px;
}

.field-table .table-scroll {
  margin-bottom: 16px;
}

.field-table .section-foot {
  margin-top: 16px;
}

.boundary-note .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
}

.boundary-note .col {
  min-width: 0;
}

.boundary-note .col-main p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.boundary-note .col-main p:last-child {
  margin-bottom: 0;
}

.boundary-note .col-side {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misread-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.misread-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.misread-item:last-child {
  border-bottom: 0;
}

.misread-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.misread-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.misread-cases .section-foot {
  margin-top: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-item {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.related-title a {
  text-decoration: none;
}

.related-title a:hover,
.related-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   8. pages · 查阅路径指引
   -------------------------------------------------------------------------- */

.path-steps {
  margin-bottom: 56px;
}

.path-steps .content-media-inline {
  height: 200px;
  margin: 0 0 22px;
}

.step-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.step-block:last-of-type {
  border-bottom: 0;
}

.step-block .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 10px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}

.step-block .step-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.step-block .step-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.step-block .step-desc a {
  font-weight: 600;
  text-decoration: none;
}

.step-block .step-desc a:hover,
.step-block .step-desc a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-checks {
  margin-bottom: 56px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.check-column {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.path-faq {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   9. pages · 收录边界与调整记录
   -------------------------------------------------------------------------- */

.boundary-summary {
  margin-bottom: 56px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.boundary-col {
  min-width: 0;
}

.boundary-col p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.boundary-col-check {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-exclude {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.adjust-log {
  margin-bottom: 56px;
}

.adjust-log .log-item {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.adjust-log .log-item:last-child {
  border-bottom: 0;
}

.correction-note {
  margin-bottom: 8px;
}

.correction-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.correction-col {
  min-width: 0;
}

.correction-col-need {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.correction-col-need p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   10. pages · 404
   -------------------------------------------------------------------------- */

.site-error {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  width: 100%;
  padding: 64px 24px 88px;
}

.error-block {
  width: 100%;
  max-width: 620px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.error-code {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.error-block h1 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 600;
}

.error-lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.error-links li {
  margin: 0;
}

.error-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .site-header .header-inner {
    gap: 16px;
    padding: 0 20px;
  }

  .site-nav .nav-list a {
    padding: 6px 9px;
    font-size: 14px;
  }

  .site-footer .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .home-main .hero-channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .channel-row > .link-arrow {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .page-layout,
  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .side-toc {
    position: static;
    top: auto;
    order: -1;
  }

  .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  h3 { font-size: 17px; }

  .site-header {
    position: sticky;
  }

  .site-header .header-inner {
    min-height: 60px;
    padding: 0 16px;
  }

  .site-header .brand-mark {
    font-size: 17px;
  }

  .site-header .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
  }

  .site-nav .nav-list li:last-child a {
    border-bottom: 0;
  }

  .site-nav .nav-list a.is-current {
    background: var(--accent-soft);
  }

  .site-main.inner-main,
  .home-main {
    padding: 0 16px 56px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  .inner-main .breadcrumb {
    padding: 0;
    margin-bottom: 16px;
  }

  .page-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  .home-main .hero-dual {
    margin-top: 20px;
    padding-bottom: 32px;
  }

  .home-main .hero-figure {
    height: 180px;
    margin-bottom: 24px;
  }

  .home-main .hero-title {
    font-size: 26px;
  }

  .home-main .hero-intro {
    margin-bottom: 24px;
  }

  .home-main .hero-channel {
    padding: 20px;
  }

  .home-main .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-main .hero-actions .btn-primary,
  .home-main .hero-actions .btn-secondary {
    width: 100%;
  }

  .home-main .channel-overview,
  .home-main .playlist-overview,
  .home-main .field-boundary-summary,
  .home-main .reading-path-steps,
  .home-main .boundary-log-summary,
  .home-main .site-index {
    padding: 36px 0;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .channel-row-meta {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .channel-row > .link-arrow {
    justify-self: start;
  }

  .playlist-overview .playlist-figure {
    height: 170px;
  }

  .summary-columns,
  .channel-fields-grid,
  .channel-advice-grid,
  .playlist-basis-columns,
  .audience-columns,
  .boundary-note .two-col,
  .boundary-columns,
  .correction-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .home-main .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .home-main .step-index {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .boundary-log-summary .log-item,
  .log-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .log-item .log-type {
    justify-self: start;
  }

  .log-item .log-desc {
    grid-column: 1 / -1;
  }

  .channel-figure,
  .field-table .section-media,
  .boundary-summary .section-media,
  .path-steps .content-media-inline,
  .playlist-scope .playlist-figure {
    height: 170px;
  }

  .check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related {
    margin-top: 40px;
    padding-top: 22px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-list a {
    min-height: 46px;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table-el {
    min-width: 520px;
  }

  .site-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 36px 16px 28px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer .footer-group a {
    min-height: 44px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 24px;
  }

  .error-main {
    padding: 40px 16px 64px;
  }

  .error-block {
    padding: 28px 22px;
  }

  .error-code {
    font-size: 34px;
  }

  .error-block h1 {
    font-size: 22px;
  }

  .error-actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-main .hero-figure {
    height: 160px;
  }

  .channel-figure,
  .field-table .section-media,
  .boundary-summary .section-media,
  .path-steps .content-media-inline,
  .playlist-scope .playlist-figure,
  .playlist-overview .playlist-figure {
    height: 150px;
  }

  .page-layout .side-toc {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .link-arrow:hover::after {
    transform: none;
  }
}
