/* ==========================================================================
   光棍在线影院 cnzygs.com — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base — 变量、重置、排版基准
   -------------------------------------------------------------------------- */

:root {
  --c-text: #1c1f24;
  --c-text-soft: #5a6270;
  --c-accent: #3f6f6a;
  --c-accent-dark: #2f534f;
  --c-surface: #f5f6f4;
  --c-surface-2: #eceee9;
  --c-line: #dfe2dd;
  --c-line-strong: #c8ccc5;
  --c-footer: #1a1d21;
  --c-footer-text: #b9beba;
  --c-footer-title: #eef0ed;
  --font-sans: "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-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --w-container: 1120px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --sp-section: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover,
a:focus-visible {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   layout — 骨架：页头、导航、主容器、面包屑、页脚
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  font-family: var(--font-sans);
  color: var(--c-text);
}

/* 顶部线索说明条（首页） */
.site-notice {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.site-notice-text {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

/* 页头 */
.site-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--c-text);
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 1px;
}

.brand-mark::before {
  left: 10px;
  top: 11px;
  width: 18px;
  height: 3px;
}

.brand-mark::after {
  left: 10px;
  top: 20px;
  width: 12px;
  height: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-text-soft);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-text);
  background: var(--c-surface);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--c-accent-dark);
  font-weight: 700;
  background: var(--c-surface-2);
}

/* 通知入口（功能入口，区别于栏目） */
.notice-entry {
  flex: 0 0 auto;
  display: inline-block;
  padding: 7px 14px;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

.notice-entry:hover,
.notice-entry:focus-visible {
  border-style: solid;
  border-color: var(--c-accent);
  background: var(--c-surface);
  text-decoration: none;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
}

/* 主内容区 */
.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main {
  display: block;
}

.inner-main {
  display: block;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

.breadcrumb a {
  color: var(--c-text-soft);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--c-line-strong);
}

.breadcrumb-current {
  color: var(--c-text);
  font-weight: 700;
}

/* 内页标题区 */
.page-header {
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

.page-description {
  margin-top: 12px;
  max-width: 780px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: var(--c-footer);
  color: var(--c-footer-text);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 48px 24px 36px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-footer-title);
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-footer-text);
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-footer-title);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-footer-text);
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-copyright {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-footer-text);
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   components — 通用模块：区块头、按钮、表格、卡片、步骤、FAQ、链接
   -------------------------------------------------------------------------- */

.section {
  padding: var(--sp-section) 0;
  border-bottom: 1px solid var(--c-line);
}

.section:last-child {
  border-bottom: 0;
}

.home-main .section {
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  max-width: var(--w-container);
  margin: 0 auto 32px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
}

.section-desc,
.section-intro {
  margin-top: 10px;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

.subsection-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 12px;
}

.col-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 14px;
}

.section-note,
.section-footnote,
.section-foot,
.col-footnote {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-soft);
}

.section-footnote {
  max-width: var(--w-container);
  margin-left: auto;
  margin-right: auto;
}

.section-note a,
.section-footnote a,
.section-foot a,
.col-footnote a,
.text-link {
  color: var(--c-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.section-note a:hover,
.section-footnote a:hover,
.section-foot a:hover,
.col-footnote a:hover,
.text-link:hover,
.section-note a:focus-visible,
.section-footnote a:focus-visible,
.section-foot a:focus-visible,
.col-footnote a:focus-visible,
.text-link:focus-visible {
  text-decoration: underline;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--c-accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  text-decoration: none;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.data-table,
.field-table {
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 1.65;
}

.field-table {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-soft);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.data-table thead th,
.field-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th,
.field-table tbody td,
.field-table tbody th {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.field-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.field-table tbody tr:hover {
  background: #fafbf9;
}

.field-name,
.field-sample {
  font-family: var(--font-mono);
  font-size: 14px;
}

.field-name {
  font-weight: 700;
  color: var(--c-accent-dark);
  white-space: nowrap;
}

.field-sample {
  color: var(--c-text-soft);
}

/* 图片容器 */
.section-media,
.hero-media,
.guide-figure,
.records-figure,
.page-figure,
.collection-media,
.collection-cover {
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.section-media img,
.hero-media img,
.guide-figure img,
.records-figure img,
.page-figure img,
.collection-media img,
.collection-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-media-caption,
.media-caption,
.hero-media-caption,
.guide-figure-caption,
.figure-caption,
.records-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-soft);
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

/* 专题片单卡（首页） */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
  overflow: hidden;
}

.collection-card .collection-media {
  border: 0;
  border-radius: 0;
}

.collection-card .collection-media img {
  aspect-ratio: 16 / 9;
}

.collection-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  padding: 14px 16px 4px;
}

.collection-meta {
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-soft);
}

.collection-order {
  padding: 8px 16px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-accent-dark);
}

/* 整理记录 */
.record-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--w-container);
  margin: 0 auto;
}

.record-group {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 20px;
  background: #ffffff;
}

.record-month {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 6px 14px;
  align-items: start;
}

.record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-accent-dark);
  white-space: nowrap;
}

.record-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
}

.record-scope {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-soft);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 15px 46px 15px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  color: var(--c-accent-dark);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-soft);
  border-top: 1px solid var(--c-line);
}

/* 相关推荐 / 站内页面索引 */
.related-list,
.page-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-link {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  text-decoration: none;
  background: #ffffff;
}

.related-link:hover,
.related-link:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent-dark);
  text-decoration: none;
}

.page-index {
  display: block;
  max-width: var(--w-container);
  margin: 0 auto;
}

.page-index-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #ffffff;
  text-decoration: none;
}

.page-index-link:hover,
.page-index-link:focus-visible {
  border-color: var(--c-accent);
  text-decoration: none;
}

.page-index-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.page-index-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

/* 列表通用条目（字段、边界、范围） */
.scope-list,
.boundary-list,
.fields-list,
.misread-list,
.check-list,
.order-list,
.map-list,
.aside-list,
.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-item,
.boundary-item,
.fields-item,
.misread-item,
.check-item,
.order-item,
.prepare-item {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
}

.scope-item::before,
.boundary-item::before,
.fields-item::before,
.misread-item::before,
.check-item::before,
.order-item::before,
.prepare-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 首屏 */
.hero {
  padding: 56px 24px 64px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: var(--w-container);
  margin: 0 auto;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-accent-dark);
  background: #ffffff;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--c-text);
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-point {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: #ffffff;
  border: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

/* 结论区 */
.section-scope .scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--w-container);
  margin: 0 auto;
}

.scope-col {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.scope-col-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.scope-col-yes .scope-col-title {
  color: var(--c-accent-dark);
}

.scope-col-no .scope-col-title {
  color: var(--c-text-soft);
}

/* 方法区 */
.section-method .method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--w-container);
  margin: 0 auto;
  counter-reset: method;
}

.method-step {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.method-step .step-index {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-accent-dark);
}

.method-step .step-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 10px;
}

.method-step .step-check {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

.method-step .step-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-accent-dark);
}

/* 过程区：表格 + 片单卡 */
.section-process .process-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--w-container);
  margin: 0 auto;
  align-items: start;
}

.process-col {
  min-width: 0;
}

/* 结果区 */
.section-records .record-groups {
  max-width: var(--w-container);
}

/* 字段与边界摘要 */
.section-fields .fields-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  max-width: var(--w-container);
  margin: 0 auto;
  align-items: start;
}

.fields-col {
  min-width: 0;
}

.fields-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-soft);
  margin-bottom: 14px;
}

/* 站内索引 */
.section-index .page-index-list {
  max-width: var(--w-container);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   pages — 频道分类
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.page-content {
  min-width: 0;
}

.section-channel-table .section-media {
  margin: 20px 0 24px;
}

.section-channel-table .table-wrap {
  margin-top: 4px;
}

.section-boundary .boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.boundary-col {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.boundary-col-overlap .subsection-title {
  color: var(--c-text-soft);
}

.boundary-col-distinguish .subsection-title {
  color: var(--c-accent-dark);
}

.boundary-pair {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
}

.boundary-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

.section-channel-pick .pick-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pick-step {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.pick-step-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 8px;
}

.pick-step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   pages — 专题片单
   -------------------------------------------------------------------------- */

.section-collections .collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-collections .collection-card {
  height: 100%;
}

.collection-cover img {
  aspect-ratio: 16 / 9;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.collection-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
}

.collection-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

.collection-body .collection-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.65;
}

.collection-meta-key {
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
}

.collection-meta-value {
  color: var(--c-text-soft);
}

.section-mapping .section-media {
  margin: 20px 0 24px;
}

.mapping-table {
  min-width: 100%;
}

.section-order .order-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.order-column {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.column-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

/* --------------------------------------------------------------------------
   pages — 浏览指引
   -------------------------------------------------------------------------- */

.guide-visual,
.guide-prepare,
.guide-steps,
.guide-next,
.guide-faq,
.guide-related {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
}

.guide-related {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-figure {
  margin-top: 20px;
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-prepare .prepare-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.guide-prepare .prepare-item {
  padding: 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.guide-prepare .prepare-item::before {
  display: none;
}

.prepare-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 8px;
}

.prepare-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text-soft);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-left: 2px solid var(--c-line);
}

.step-item {
  position: relative;
  padding: 0 0 28px 26px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item .step-index {
  position: absolute;
  left: -13px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.step-item .step-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 8px;
}

.step-item .step-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.step-item .step-check {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
}

.step-item .check-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.next-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.next-column {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.next-column-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 10px;
}

.next-column-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.next-column-link {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.next-column-link a {
  font-weight: 700;
  color: var(--c-accent-dark);
}

/* --------------------------------------------------------------------------
   pages — 字段说明
   -------------------------------------------------------------------------- */

.page-figure {
  margin-top: 22px;
}

.page-figure img {
  aspect-ratio: 21 / 9;
}

.content-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
}

.content-section:last-of-type {
  border-bottom: 0;
}

.content-section .section-desc {
  margin-bottom: 20px;
}

.content-section .section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.content-section .boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.boundary-col-scope .subsection-title {
  color: var(--c-accent-dark);
}

.boundary-col-misread .subsection-title {
  color: var(--c-text-soft);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.check-card {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.check-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 10px;
}

.check-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-soft);
  margin-bottom: 12px;
}

.check-card .check-list {
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}

.check-card .check-item {
  font-size: 14px;
}

.content-aside {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 10px;
}

.aside-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-soft);
  margin-bottom: 14px;
}

.content-aside .aside-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.content-aside .aside-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-link {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-accent-dark);
}

/* --------------------------------------------------------------------------
   pages — 整理记录
   -------------------------------------------------------------------------- */

.records-section,
.record-map-section,
.records-faq-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-line);
}

.records-faq-section {
  border-bottom: 0;
  padding-bottom: 0;
}

.records-figure {
  margin: 4px 0 28px;
}

.records-figure img {
  aspect-ratio: 21 / 9;
}

.records-section .record-group {
  margin-bottom: 20px;
}

.records-section .record-group:last-child {
  margin-bottom: 0;
}

.map-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.map-col {
  padding: 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #ffffff;
}

.map-col-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
}

.map-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}

.map-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.map-label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

.map-link {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-accent-dark);
}

.map-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-soft);
}

.map-note a {
  font-weight: 700;
  color: var(--c-accent-dark);
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-panel {
  padding: 40px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-accent-dark);
  margin-bottom: 12px;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

.error-desc {
  margin-top: 14px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-routes {
  margin-top: 40px;
}

.error-routes-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 18px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.error-route-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #ffffff;
}

.error-route-link {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-accent-dark);
}

.error-route-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

/* 滚动出现动画（仅增强，不影响初始可见） */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .section,
  .js-reveal-ready .content-section,
  .js-reveal-ready .records-section,
  .js-reveal-ready .record-map-section,
  .js-reveal-ready .records-faq-section,
  .js-reveal-ready .guide-visual,
  .js-reveal-ready .guide-prepare,
  .js-reveal-ready .guide-steps,
  .js-reveal-ready .guide-next,
  .js-reveal-ready .guide-faq,
  .js-reveal-ready .guide-related {
    transition: transform .4s ease, opacity .4s ease;
  }

  .js-reveal-ready .is-revealed {
    transform: none;
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   responsive — 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --sp-section: 52px;
  }

  .site-header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 14px;
  }

  .hero-inner {
    gap: 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-process .process-columns,
  .section-fields .fields-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .section-index .page-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }

  .page-title {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------------
   responsive — 720px（含 390px 手机）
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  :root {
    --sp-section: 40px;
  }

  body {
    font-size: 16px;
  }

  /* 页头与移动导航 */
  .site-header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    order: 4;
    flex: 1 1 100%;
    display: block;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--c-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 8px;
    font-size: 15px;
    border-radius: var(--r-sm);
  }

  .notice-entry {
    order: 3;
    margin-left: auto;
    font-size: 13px;
    padding: 6px 10px;
  }

  .site-notice-text {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* 主容器 */
  .inner-main {
    padding: 0 16px 56px;
  }

  .home-main .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 13px;
  }

  .page-header {
    padding: 18px 0 24px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    margin-top: 10px;
    font-size: 15px;
  }

  /* 首屏 */
  .hero {
    padding: 32px 16px 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .btn {
    flex: 1 1 auto;
  }

  /* 区块头 */
  .section-head {
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 19px;
  }

  .section-desc,
  .section-intro {
    font-size: 15px;
  }

  /* 首页模块 */
  .section-scope .scope-columns,
  .section-boundary .boundary-columns,
  .content-section .boundary-columns,
  .section-order .order-columns,
  .next-columns,
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-method .method-steps,
  .guide-prepare .prepare-list,
  .check-grid,
  .section-channel-pick .pick-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-collections .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-index .page-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .record-scope {
    grid-column: 1;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 表格允许横向滚动但卡片不溢出 */
  .table-wrap {
    border-radius: var(--r-md);
  }

  .data-table,
  .field-table {
    min-width: 480px;
    font-size: 14px;
  }

  .data-table thead th,
  .field-table thead th,
  .data-table tbody td,
  .data-table tbody th,
  .field-table tbody td,
  .field-table tbody th {
    padding: 11px 12px;
  }

  /* 页脚 */
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 16px 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 24px;
  }

  .footer-bottom-list {
    gap: 12px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 内容区 */
  .content-section,
  .records-section,
  .record-map-section,
  .records-faq-section,
  .guide-visual,
  .guide-prepare,
  .guide-steps,
  .guide-next,
  .guide-faq {
    padding: 30px 0;
  }

  .content-aside {
    padding: 20px;
  }

  .step-item {
    padding-left: 22px;
  }
}

/* --------------------------------------------------------------------------
   responsive — 420px 细节收口
   -------------------------------------------------------------------------- */

@media (max-width: 420px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-title {
    font-size: 21px;
  }

  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .notice-entry {
    font-size: 12px;
  }
}
