/* =========================================================
   樱花视频下载 · yohuhu.cn
   全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   01. base · 变量与重置
   --------------------------------------------------------- */
:root {
  --ink: #1c1c1e;
  --ink-soft: #5a5a5e;
  --paper: #fbfbf9;
  --paper-block: #f2f0ec;
  --accent: #e56b8c;
  --accent-deep: #c94f70;
  --line: #1c1c1e;
  --line-soft: #cfcbc4;
  --shell: 1120px;
  --radius: 6px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   02. layout · 骨架：容器 / 页头 / 主体 / 页脚
   --------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.site-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
}

.brand-mark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--accent);
  border: 2px solid var(--line);
  vertical-align: 1px;
}

.brand-sub {
  font-size: 13px;
  color: var(--ink-soft);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
}

.nav-list a.is-current {
  border-color: var(--line);
  background: var(--paper-block);
  color: var(--ink);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

.nav-toggle-text {
  font-size: 14px;
}

/* --- 主体 --- */
.site-main {
  flex: 1 1 auto;
  display: block;
}

.inner-main {
  padding-bottom: 56px;
}

/* --- 页脚 --- */
.site-footer {
  margin-top: 56px;
  border-top: 2px solid var(--line);
  background: var(--paper-block);
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-list a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 32px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-about {
  font-size: 14px;
  color: var(--ink);
}

.footer-note,
.footer-copy {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   03. layout · 内页通用：面包屑 / 页标题区 / 主侧栏
   --------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: var(--line-soft);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 700;
}

.page-header {
  padding: 16px 0 24px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-description {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 74ch;
}

/* 主内容 + 右侧栏 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* 若布局祖先带 .sidebar-left，则侧栏在左 */
.sidebar-left .page-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar-left .page-layout > .page-main,
.sidebar-left .page-layout > .layout-main,
.sidebar-left .page-layout > .content-main,
.sidebar-left .page-layout > .page-content {
  order: 2;
}

.sidebar-left .page-layout > .page-aside,
.sidebar-left .page-layout > .layout-aside,
.sidebar-left .page-layout > .content-aside {
  order: 1;
}

.page-main,
.layout-main,
.content-main,
.page-content {
  min-width: 0;
}

.page-aside,
.layout-aside,
.content-aside {
  min-width: 0;
}

/* ---------------------------------------------------------
   04. components · 通用区块与文本
   --------------------------------------------------------- */
.section {
  padding: 40px 0;
  border-bottom: 2px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
}

.section-desc,
.section-lead,
.section-intro {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 78ch;
}

.section-lead,
.section-intro {
  margin-bottom: 20px;
}

.section-more,
.section-foot,
.section-note,
.boundary-more {
  margin-top: 20px;
  font-size: 15px;
}

.section-more a,
.section-foot a,
.section-note a,
.boundary-more a {
  display: inline-block;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 26px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
}

.section-more a:hover,
.section-foot a:hover,
.section-note a:hover,
.boundary-more a:hover,
.section-more a:focus-visible,
.section-foot a:focus-visible,
.section-note a:focus-visible,
.boundary-more a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.subsection-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--paper-block);
  color: var(--ink);
  transform: translateY(-2px);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table,
.fields-table {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--paper);
  font-size: 15px;
}

.data-table caption,
.fields-table caption,
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 2px solid var(--line);
  border-bottom: 0;
  background: var(--paper-block);
}

.data-table th,
.data-table td,
.fields-table th,
.fields-table td {
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th,
.fields-table thead th {
  background: var(--paper-block);
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:hover,
.fields-table tbody tr:hover {
  background: #f7f5f1;
}

/* 图片容器 */
.media-figure,
.hero-media,
.collection-media,
.collection-figure,
.channel-figure {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
  overflow: hidden;
}

.media-figure img,
.hero-media img,
.collection-media img,
.collection-figure img,
.channel-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.media-caption,
.hero-media figcaption,
.collection-figure figcaption,
.channel-figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

/* 边界列表（首页 + 字段页共用外观，作用域分开） */
.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  position: relative;
  padding: 12px 14px 12px 40px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 15px;
}

.boundary-item::before {
  position: absolute;
  left: 14px;
  top: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.boundary-item.is-include::before {
  content: "收录";
  color: var(--accent-deep);
}

.boundary-item.is-exclude::before {
  content: "不收录";
  color: var(--ink-soft);
}

.boundary-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

/* 步骤清单：首页与内页分别限定作用域 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* 首页三步概览 */
.home-main .step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 14px 16px;
}

.home-main .step-item .step-index {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.5;
}

.home-main .step-item .step-body {
  min-width: 0;
}

.home-main .step-item .step-name {
  font-size: 18px;
  margin: 0 0 6px;
}

.home-main .step-item .step-desc {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   05. pages · 首页
   --------------------------------------------------------- */
.home-main {
  display: block;
}

/* 首屏 */
.hero {
  padding: 40px 0 44px;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-block);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
}

.hero-text {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
  margin: 0;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

/* 首屏服务清单 */
.hero-services {
  grid-column: 1 / -1;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
  padding: 22px 24px;
}

.hero-services-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
}

.service-item:nth-child(-n + 2) {
  border-top: 0;
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.service-name {
  font-size: 16px;
  font-weight: 700;
}

.service-desc {
  grid-column: 1 / 2;
  font-size: 14px;
  color: var(--ink-soft);
}

.service-link {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 26px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-link:hover,
.service-link:focus-visible {
  background: var(--accent);
  color: #fff;
}

/* 频道方向总览 */
.channel-rows {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.channel-row:first-child {
  border-top: 0;
}

.channel-row:hover {
  background: var(--paper-block);
  transform: translateX(3px);
}

.channel-main {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.channel-scope {
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-audience {
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}

.channel-link,
.collection-link {
  display: inline-block;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 26px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.channel-link:hover,
.collection-link:hover,
.channel-link:focus-visible,
.collection-link:focus-visible {
  background: var(--accent);
  color: #fff;
}

/* 专题片单速览 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 0 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--line);
}

.collection-card .collection-media {
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
}

.collection-card .collection-name {
  font-size: 18px;
  margin: 16px 18px 8px;
}

.collection-card .collection-theme {
  font-size: 15px;
  color: var(--ink);
  margin: 0 18px 8px;
}

.collection-card .collection-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 18px 16px;
}

.collection-card .collection-link {
  margin: auto 18px 0;
  align-self: flex-start;
}

/* 字段与收录边界摘要 */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.fields-table-wrap,
.fields-boundary {
  min-width: 0;
}

.fields-table-wrap {
  overflow-x: auto;
}

.boundary-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* 观看路径三步概览 */
.section-guide .step-list {
  counter-reset: none;
}

/* 收录范围调整记录 */
.change-list {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.change-item {
  display: grid;
  grid-template-columns: 120px 120px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.change-item:first-child {
  border-top: 0;
}

.change-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
}

.change-type {
  font-size: 13px;
  color: var(--ink);
  padding: 2px 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
  justify-self: start;
  white-space: nowrap;
}

.change-desc {
  font-size: 15px;
  color: var(--ink-soft);
  min-width: 0;
}

/* ---------------------------------------------------------
   06. pages · 内页 · 题材频道
   --------------------------------------------------------- */
.section-channels-intro .section-title {
  margin-bottom: 10px;
}

.channel-entry {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.channel-entry .channel-figure {
  min-width: 0;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 18px;
  margin: 0 0 8px;
}

.channel-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.channel-meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.relation-list {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.relation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.relation-item:first-child {
  border-top: 0;
}

.relation-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.relation-desc {
  grid-column: 1 / 2;
  font-size: 14px;
  color: var(--ink-soft);
}

.relation-link {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  padding: 8px 14px;
  min-height: 44px;
  line-height: 26px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.relation-link:hover,
.relation-link:focus-visible {
  background: var(--accent);
  color: #fff;
}

/* 辅助栏（频道 / 片单 / 指南） */
.page-aside {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
}

.aside-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.aside-lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-step {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.aside-step-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.aside-step-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.page-aside .step-index {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
}

.aside-note {
  margin-top: 16px;
  font-size: 14px;
}

.aside-note a {
  text-decoration: underline;
  color: var(--accent-deep);
}

/* ---------------------------------------------------------
   07. pages · 内页 · 专题片单
   --------------------------------------------------------- */
.collection-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.collection-row .collection-figure {
  min-width: 0;
}

.collection-body {
  min-width: 0;
}

.collection-body .collection-name {
  font-size: 18px;
  margin: 0 0 8px;
}

.collection-body .collection-theme {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}

.collection-body .collection-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.basis-table {
  margin-top: 4px;
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scope-column {
  min-width: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scope-column h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.scope-included h3 {
  color: var(--accent-deep);
}

.scope-excluded h3 {
  color: var(--ink-soft);
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1px solid var(--line);
}

.scope-excluded .scope-list li::before {
  background: var(--line-soft);
}

/* ---------------------------------------------------------
   08. pages · 内页 · 条目字段说明
   --------------------------------------------------------- */
.section-fields .media-figure {
  margin-bottom: 22px;
}

.field-table {
  margin-bottom: 8px;
}

.section-boundary .boundary-list {
  gap: 14px;
}

.section-boundary .boundary-item {
  padding: 16px 18px;
}

.section-boundary .boundary-item::before {
  content: none;
}

.mapping-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.mapping-item {
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.mapping-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.mapping-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* 字段页右侧栏块 */
.content-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aside-block {
  min-width: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
}

.aside-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.aside-block .aside-steps {
  gap: 10px;
}

.content-aside .aside-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
}

.content-aside .step-name {
  font-size: 14px;
  font-weight: 700;
}

.content-aside .step-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--accent-deep);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   09. pages · 内页 · 观看路径指引
   --------------------------------------------------------- */
.guide-figure {
  margin-bottom: 28px;
}

.section-steps .step-list {
  gap: 16px;
}

.section-steps .step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 18px;
}

.section-steps .step-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.4;
}

.section-steps .step-name {
  font-size: 18px;
  margin: 0 0 6px;
}

.section-steps .step-desc {
  grid-column: 2 / 3;
  font-size: 15px;
  color: var(--ink-soft);
}

.limit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.limit-item {
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.limit-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.limit-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-question {
  padding: 14px 44px 14px 18px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line-soft);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* 指南侧栏 */
.page-aside .aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-item {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   10. pages · 404
   --------------------------------------------------------- */
.error-main {
  padding: 64px 0 72px;
}

.error-inner {
  max-width: 760px;
}

.error-main h1 {
  font-size: 32px;
  margin: 0 0 16px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}

.error-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.error-actions {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-block);
  margin-bottom: 24px;
}

.error-actions h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.error-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-list a {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  line-height: 24px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.error-list a:hover,
.error-list a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.error-back {
  font-size: 15px;
}

.error-back a {
  text-decoration: underline;
  color: var(--accent-deep);
}

/* ---------------------------------------------------------
   11. responsive · 断点
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sidebar-left .page-layout > .page-main,
  .sidebar-left .page-layout > .layout-main,
  .sidebar-left .page-layout > .content-main,
  .sidebar-left .page-layout > .page-content,
  .sidebar-left .page-layout > .page-aside,
  .sidebar-left .page-layout > .layout-aside,
  .sidebar-left .page-layout > .content-aside {
    order: initial;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .shell {
    padding: 0 16px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 2px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-list a.is-current {
    background: var(--paper-block);
    border-color: var(--line-soft);
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero-title,
  .page-title,
  .error-main h1 {
    font-size: 26px;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .service-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-item:nth-child(odd) {
    border-right: 0;
  }

  .service-item:nth-child(2) {
    border-top: 1px solid var(--line-soft);
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .channel-link {
    justify-self: start;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .change-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .change-type {
    justify-self: start;
  }

  .channel-entry,
  .collection-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .relation-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .relation-link {
    grid-column: 1 / 2;
    grid-row: auto;
    justify-self: start;
  }

  .scope-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-list,
  .limit-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-steps .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 14px;
  }

  .section-steps .step-number {
    font-size: 18px;
  }

  .home-main .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }

  .data-table,
  .fields-table {
    font-size: 14px;
  }

  .data-table th,
  .data-table td,
  .fields-table th,
  .fields-table td {
    padding: 10px 12px;
  }

  .footer-index {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .error-main {
    padding: 40px 0 48px;
  }
}

@media (max-width: 420px) {
  .shell {
    padding: 0 14px;
  }

  .hero-title,
  .page-title,
  .error-main h1 {
    font-size: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .error-list a {
    width: 100%;
    text-align: center;
  }
}
