/* ==========================================================================
   飘花电影网 · 全站样式
   视觉方向：数字出版 / 刊物编排感，浅米底 + 墨黑标题 + 砖红强调
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础重置
   -------------------------------------------------------------------------- */
:root {
  --paper: #faf7f2;
  --ink: #1f1c19;
  --brick: #8c3b2e;
  --brick-deep: #6f2c21;
  --muted: #6f665c;
  --rule: #e3ddd3;
  --rule-strong: #cdc4b6;
  --paper-deep: #f2ece2;
  --paper-card: #fffdf9;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --wrap: 1120px;
  --wrap-text: 760px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--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 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brick);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brick-deep);
}

a:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

time {
  font-family: var(--mono);
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 18px;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   layout · 页头 / 导航 / 主体容器 / 页脚骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 12px;
  height: 22px;
  background-color: var(--brick);
  border-radius: 2px;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brick);
  border-bottom-color: var(--rule-strong);
}

.nav-link.is-current {
  color: var(--brick);
  border-bottom-color: var(--brick);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background-color: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--rule-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 18px 0 30px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  max-width: var(--wrap-text);
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.page-lead {
  max-width: var(--wrap-text);
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--rule);
  background-color: var(--paper-deep);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  color: var(--muted);
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--brick);
}

.footer-bottom {
  position: relative;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.footer-about {
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.back-to-top {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background-color: var(--paper);
  color: var(--ink);
}

.back-to-top:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.back-to-top-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* --------------------------------------------------------------------------
   components · 通用区块与按钮
   -------------------------------------------------------------------------- */
.home-section {
  padding: 46px 0 0;
  border-top: 1px solid var(--rule);
  margin-top: 46px;
}

.home-section:first-of-type {
  border-top: 0;
  margin-top: 0;
}

.section-head {
  max-width: var(--wrap-text);
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-index {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--brick);
  letter-spacing: 0;
}

.section-desc,
.section-intro {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.section-foot {
  margin-top: 22px;
  font-size: 15px;
}

.text-link {
  color: var(--brick);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

.text-link:hover {
  border-bottom-color: var(--brick);
}

.section-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.section-note a {
  margin-right: 18px;
}

.section-figure {
  margin-top: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.section-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.figure-caption {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background-color: var(--brick);
  color: #fdf9f4;
  border-color: var(--brick);
}

.btn-primary:hover {
  background-color: var(--brick-deep);
  border-color: var(--brick-deep);
  color: #fdf9f4;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  color: var(--brick);
  border-color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 首页首屏
   -------------------------------------------------------------------------- */
.home-hero {
  padding: 40px 0 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-index {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.hero-index-title {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.hero-index-list {
  margin-top: 6px;
}

.hero-index-item {
  border-bottom: 1px solid var(--rule);
}

.hero-index-item a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink);
}

.hero-index-item a:hover {
  color: var(--brick);
}

.hero-index-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-main {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  max-width: 720px;
}

.hero-lead {
  max-width: var(--wrap-text);
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

.hero-figure {
  margin-top: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   pages · 首页频道总览
   -------------------------------------------------------------------------- */
.channel-rows {
  border-top: 1px solid var(--rule-strong);
}

.channel-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-cell {
  min-width: 0;
  font-size: 15px;
  color: var(--muted);
}

.channel-cell.channel-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.channel-cell.channel-name a {
  color: var(--ink);
}

.channel-cell.channel-name a:hover {
  color: var(--brick);
}

.channel-cell.channel-enter {
  text-align: right;
}

.channel-cell.channel-enter a {
  display: inline-block;
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

.channel-cell.channel-enter a:hover {
  border-bottom-color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 首页专题片单速览
   -------------------------------------------------------------------------- */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.collection-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--paper-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-figure {
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper-deep);
}

.collection-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.collection-card .collection-name {
  font-size: 17px;
  font-weight: 700;
  padding: 16px 18px 0;
}

.collection-card .collection-name a {
  color: var(--ink);
}

.collection-card .collection-name a:hover {
  color: var(--brick);
}

.collection-card .collection-theme {
  padding: 8px 18px 0;
  font-size: 14px;
  color: var(--ink);
}

.collection-card .collection-source {
  padding: 8px 18px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   pages · 首页字段与边界摘要
   -------------------------------------------------------------------------- */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.fields-table-wrap {
  min-width: 0;
}

.fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.fields-caption {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 10px;
}

.fields-table th,
.fields-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.fields-table thead th {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  background-color: var(--paper-deep);
}

.fields-table tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 32%;
}

.fields-table tbody td {
  color: var(--muted);
}

.fields-boundary {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  min-width: 0;
}

.fields-boundary-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
}

.boundary-list li + li {
  margin-top: 10px;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   pages · 首页查阅路径概览
   -------------------------------------------------------------------------- */
.step-list {
  border-top: 1px solid var(--rule-strong);
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.step-no,
.step-num {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--brick);
  grid-row: 1 / span 2;
}

.step-name {
  font-size: 17px;
  font-weight: 700;
}

.step-text {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

/* --------------------------------------------------------------------------
   pages · 首页收录调整记录
   -------------------------------------------------------------------------- */
.log-list {
  border-top: 1px solid var(--rule-strong);
}

.log-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.log-date {
  font-size: 14px;
  color: var(--muted);
  padding-top: 3px;
}

.log-body {
  min-width: 0;
}

.log-title {
  font-size: 17px;
  font-weight: 700;
}

.log-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

/* --------------------------------------------------------------------------
   pages · 内页通用区块
   -------------------------------------------------------------------------- */
.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section > .section-title {
  margin-bottom: 12px;
}

.section > .section-intro {
  max-width: var(--wrap-text);
  margin-bottom: 22px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.side-block {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.side-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.side-steps {
  counter-reset: side-step;
}

.side-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--muted);
}

.side-steps li + li {
  margin-top: 10px;
}

.side-steps li::before {
  counter-increment: side-step;
  content: counter(side-step);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
}

.side-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.side-links li + li,
.side-terms li + li {
  margin-top: 8px;
}

.side-links a,
.side-terms a {
  font-size: 14px;
  color: var(--ink);
}

.side-links a:hover,
.side-terms a:hover {
  color: var(--brick);
}

.side-terms li {
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 题材频道页
   -------------------------------------------------------------------------- */
.section-channels-overview .channel-row {
  display: block;
  padding: 20px 0;
}

.channel-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.channel-row-head .channel-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.channel-tag {
  font-size: 13px;
  color: var(--brick);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 1px 8px;
}

.channel-desc {
  font-size: 15px;
  color: var(--ink);
  max-width: var(--wrap-text);
}

.channel-audience {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.channel-entry {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

.channel-entry:hover {
  border-bottom-color: var(--brick);
}

.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.scope-column {
  min-width: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
}

.scope-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--muted);
}

.scope-list li + li {
  margin-top: 10px;
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 1px;
}

.mapping-rows {
  border-top: 1px solid var(--rule-strong);
}

.mapping-row {
  display: grid;
  grid-template-columns: 150px 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.mapping-channel {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.mapping-arrow {
  font-family: var(--mono);
  color: var(--rule-strong);
  text-align: center;
}

.mapping-link {
  font-size: 15px;
  color: var(--brick);
  justify-self: start;
}

/* --------------------------------------------------------------------------
   pages · 专题片单页
   -------------------------------------------------------------------------- */
.section-collections-list .collection-entry {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.section-collections-list .collection-entry:first-of-type {
  border-top: 1px solid var(--rule-strong);
}

.collection-body {
  min-width: 0;
}

.section-collections-list .collection-name {
  font-size: 19px;
  font-weight: 700;
}

.section-collections-list .collection-theme {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink);
  max-width: var(--wrap-text);
}

.collection-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.collection-channel {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.collection-channel a {
  margin-right: 14px;
  color: var(--brick);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
}

.collection-channel a:hover {
  border-bottom-color: var(--brick);
}

.rule-list {
  border-top: 1px solid var(--rule-strong);
}

.rule-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.rule-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.rule-text {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.channel-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.channel-map-column {
  min-width: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
}

.channel-map-heading {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.channel-map-item {
  font-size: 15px;
  color: var(--muted);
}

.channel-map-item + .channel-map-item {
  margin-top: 10px;
}

.channel-map-item a {
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明页
   -------------------------------------------------------------------------- */
.field-figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
  margin-bottom: 34px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.field-table thead th {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  background-color: var(--paper-deep);
}

.field-table tbody th {
  width: 30%;
  font-weight: 600;
  color: var(--ink);
}

.field-table tbody td {
  color: var(--muted);
}

.scope-item {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.scope-item:first-of-type {
  border-top: 1px solid var(--rule-strong);
}

.section-field-scope .scope-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.section-field-scope .scope-item p {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.missing-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.missing-col {
  min-width: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
}

.missing-col-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.missing-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--muted);
}

.missing-list li + li {
  margin-top: 10px;
}

.missing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 1px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.related-item {
  min-width: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
}

.related-item a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.related-item a:hover {
  color: var(--brick);
}

.related-item p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   pages · 查阅路径与常见疑问页
   -------------------------------------------------------------------------- */
.section-media {
  margin-bottom: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.section-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.section-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.section-steps .step-item {
  grid-template-columns: 56px minmax(0, 1fr);
}

.step-body {
  min-width: 0;
  grid-column: 2;
}

.section-steps .step-name {
  font-size: 17px;
}

.section-steps .step-text {
  margin-top: 6px;
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--brick);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--brick);
}

.faq-answer {
  padding: 0 40px 18px 0;
}

.faq-answer p {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.feedback-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.feedback-col {
  min-width: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 14px;
}

.feedback-col-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feedback-item {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--muted);
}

.feedback-item + .feedback-item {
  margin-top: 10px;
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--brick);
  border-radius: 1px;
}

.feedback-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  max-width: var(--wrap-text);
}

.next-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
}

.next-item {
  border-top: 1px solid var(--rule-strong);
  padding-top: 12px;
}

.next-item a {
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}

.next-item a:hover {
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.error-block {
  padding: 72px 0 40px;
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brick);
  margin-bottom: 12px;
}

.error-title {
  font-size: 34px;
  font-weight: 700;
}

.error-text {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  background-color: var(--brick);
  color: #fdf9f4;
  font-size: 15px;
  font-weight: 600;
}

.error-button:hover {
  background-color: var(--brick-deep);
  color: #fdf9f4;
}

.error-link {
  font-size: 15px;
  color: var(--brick);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}

.error-link:hover {
  border-bottom-color: var(--brick);
}

/* --------------------------------------------------------------------------
   responsive · 900px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 20px;
    gap: 0 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--rule);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid var(--rule);
  }

  .nav-link {
    display: block;
    min-height: 44px;
    line-height: 44px;
    padding: 0;
    border-bottom: 0;
  }

  .nav-link.is-current {
    border-bottom: 0;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 20px 56px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-index {
    order: 2;
  }

  .hero-main {
    order: 1;
  }

  .hero-title {
    font-size: 30px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .layout-side {
    gap: 22px;
  }

  .channel-row {
    grid-template-columns: 130px minmax(0, 1fr) 90px;
  }

  .channel-cell.channel-scope {
    grid-column: 2 / span 1;
  }

  .collection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .section-collections-list .collection-entry {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 600px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding: 0 16px 48px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .home-section {
    padding-top: 34px;
    margin-top: 34px;
  }

  .section {
    padding: 26px 0;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .channel-cell.channel-scope {
    grid-column: auto;
  }

  .channel-cell.channel-enter {
    text-align: left;
    margin-top: 4px;
  }

  .collection-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .fields-table thead th,
  .fields-table tbody th,
  .fields-table tbody td,
  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    display: block;
    width: 100%;
  }

  .fields-table thead,
  .field-table thead {
    display: none;
  }

  .fields-table tbody tr,
  .field-table tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .fields-table tbody th,
  .field-table tbody th {
    padding: 0 0 4px;
    border-bottom: 0;
  }

  .fields-table tbody td,
  .field-table tbody td {
    padding: 0;
    border-bottom: 0;
  }

  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .step-no,
  .step-num {
    font-size: 17px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .scope-columns,
  .channel-map,
  .missing-columns,
  .feedback-columns,
  .related-list,
  .next-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .rule-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .section-collections-list .collection-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .mapping-row {
    grid-template-columns: 110px 24px minmax(0, 1fr);
    gap: 10px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    margin-left: 0;
    align-self: flex-start;
  }

  .error-block {
    padding: 48px 0 32px;
  }

  .error-title {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   motion · 轻量滚动淡入（不影响首屏可见性）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .home-section,
  .section,
  .collection-card,
  .collection-entry {
    animation: rise-in 0.5s ease both;
  }

  @keyframes rise-in {
    from {
      transform: translateY(10px);
      opacity: 0.001;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
