/* ==========================================================================
   飘花影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与重置
   -------------------------------------------------------------------------- */
:root {
  --ink: #12161c;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --line: #d5d9d4;
  --focus: #0b5fff;
  --mark: #b8442a;
  --ink-soft: #3c434c;
  --ink-mute: #5a626b;
  --deep: #12161c;
  --deep-line: #2b323b;
  --deep-text: #eef1f3;
  --deep-mute: #a9b2ba;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --gap: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

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(--focus);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

time {
  font-family: var(--font-mono);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 骨架：页头 / 主导航 / 主容器 / 面包屑 / 页脚
   -------------------------------------------------------------------------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
  border-bottom: 1px solid var(--deep-line);
  color: var(--deep-text);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--deep-text);
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
  text-decoration: underline;
}

.brand::before {
  content: "◧ ";
  font-family: var(--font-mono);
  color: #7fa6ff;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--deep-mute);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: #ffffff;
  border-color: var(--deep-line);
  background: #1b2129;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #ffffff;
  font-weight: 700;
  border-color: #6f8fce;
  background: #1e2531;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--deep-text);
  background: #1b2129;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle::before {
  content: "☰ ";
  font-family: var(--font-mono);
}

.nav-toggle[aria-expanded="true"]::before {
  content: "✕ ";
}

/* 主容器 */
.site-main {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  font-family: var(--font-mono);
  color: var(--ink-mute);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 内页标题区 */
.page-header {
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  max-width: 72ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 20px;
}

.page-tag,
.tag {
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  margin-top: 40px;
  color: var(--deep-mute);
  background: var(--deep);
  border-top: 1px solid var(--deep-line);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--deep-mute);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--deep-line);
}

.footer-brand-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--deep-mute);
}

.footer-copyright {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #88919a;
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section {
  padding: 44px 0 0;
}

.section-title,
.channel-overview > h2,
.collection-preview > h2,
.field-boundary > h2,
.path-overview > h2,
.adjustment-log > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.section-lead,
.channel-overview > .section-lead,
.collection-preview > .section-lead,
.field-boundary > .section-lead,
.path-overview > .section-lead,
.adjustment-log > .section-lead {
  max-width: 72ch;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-foot {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.section-foot a + a {
  margin-left: 16px;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.section-note a {
  margin-right: 12px;
}

.inline-more {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
}

.column-title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* 表格通用 */
.table-scroll {
  margin-top: 20px;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 620px;
  font-size: 15px;
}

.table-caption {
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #eef0ec;
  white-space: nowrap;
}

.data-table tbody th {
  font-weight: 700;
  color: var(--ink);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 收录边界清单 */
.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--mark);
}

/* 调整记录（时间线样式，全站共用） */
.adjust-list,
.adjustment-list,
.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-left: 2px solid var(--line);
}

.adjust-item,
.adjustment-item,
.log-item {
  position: relative;
  padding: 0 0 22px 20px;
}

.adjust-item:last-child,
.adjustment-item:last-child,
.log-item:last-child {
  padding-bottom: 0;
}

.adjust-item::before,
.adjustment-item::before,
.log-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--panel);
  border: 2px solid var(--mark);
  border-radius: 50%;
}

.adjust-date,
.adjustment-date,
.log-date {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mark);
}

.adjust-direction,
.adjustment-title,
.log-direction {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.adjust-scope,
.adjustment-scope,
.log-impact {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.adjustment-log .log-list {
  margin-top: 20px;
}

/* 频道 / 片单映射列表 */
.map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.map-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-channel,
.map-collection {
  font-weight: 700;
  color: var(--ink);
}

.map-arrow {
  font-family: var(--font-mono);
  color: var(--ink-mute);
}

.map-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--ink-mute);
}

.map-note a + a {
  margin-left: 12px;
}

/* 相关链接 */
.related-list,
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.related-item a,
.related-links a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-item a:hover,
.related-links a:hover {
  border-color: var(--focus);
  color: var(--focus);
  text-decoration: underline;
}

/* 边界对照列 */
.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.boundary-column {
  min-width: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
}

.boundary-in .boundary-title {
  color: #1d5c33;
}

.boundary-out .boundary-title {
  color: var(--mark);
}

.boundary-item {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* FAQ */
.faq-item {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
}

.faq-question::marker {
  color: var(--focus);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.faq-answer a {
  margin-right: 12px;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 36px 0 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.hero-lead {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tag {
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.btn-primary {
  color: #ffffff;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--focus);
  border-color: var(--focus);
  text-decoration: none;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  color: var(--focus);
  border-color: var(--focus);
  text-decoration: underline;
}

.hero-media,
.content-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-media figcaption,
.content-media figcaption,
.channel-caption,
.figure-caption,
.guide-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.content-media {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.content-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 首页 频道总览 */
.channel-overview {
  padding: 44px 0 0;
}

.channel-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.channel-overview .channel-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-overview .channel-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.channel-orientation {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.channel-scope {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.channel-overview .channel-link {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.7;
}

/* 首页 片单速览 */
.collection-preview {
  padding: 44px 0 0;
}

.collection-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.collection-preview .collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-preview .collection-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.collection-theme {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.collection-composition {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.collection-preview .collection-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  font-weight: 600;
}

/* 首页 字段与边界 */
.field-boundary {
  padding: 44px 0 0;
}

.field-boundary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 22px;
}

.field-table-wrap,
.boundary-list-wrap {
  min-width: 0;
}

.field-table-wrap .field-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table-wrap .field-table th,
.field-table-wrap .field-table td {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table-wrap .field-table thead th {
  font-size: 13px;
  background: #eef0ec;
  white-space: nowrap;
}

.field-table-wrap .field-table tbody th {
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}

.field-table-wrap .field-table tbody tr:last-child th,
.field-table-wrap .field-table tbody tr:last-child td {
  border-bottom: 0;
}

.boundary-list-wrap {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 首页 查阅路径 */
.path-overview {
  padding: 44px 0 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.path-step {
  min-width: 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
}

.path-step .step-index {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--focus);
}

.path-step .step-name {
  display: inline;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.path-step .step-note {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.path-more {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}

/* 首页 调整记录 */
.adjustment-log {
  padding: 44px 0 0;
}

/* --------------------------------------------------------------------------
   pages · 题材频道页
   -------------------------------------------------------------------------- */
.section-channel-overview,
.section-channel-detail,
.section-channel-map,
.section-channel-adjust,
.section-related {
  padding: 44px 0 0;
}

.channel-table tbody td,
.channel-table tbody th {
  font-size: 15px;
}

.section-channel-detail .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.channel-figure {
  min-width: 0;
}

.channel-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.channel-tagline {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mark);
}

.channel-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.channel-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.channel-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.channel-points li::before {
  content: "›";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--focus);
}

.channel-points strong {
  color: var(--ink);
}

.channel-body .channel-link {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 专题片单页
   -------------------------------------------------------------------------- */
.section-collection-overview,
.section-collection-detail,
.section-collection-map,
.section-collection-boundary {
  padding: 44px 0 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.collection-grid .collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-figure {
  min-width: 0;
}

.collection-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.collection-grid .collection-name {
  padding: 18px 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.collection-meta {
  margin: 12px 0 0;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.7;
}

.collection-meta dt {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.collection-meta dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.collection-grid .collection-link {
  margin-top: auto;
  padding: 16px 20px 20px;
  font-size: 15px;
  font-weight: 600;
}

.collection-detail {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.collection-detail-info {
  min-width: 0;
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.detail-scope {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.collection-detail-body {
  min-width: 0;
}

.detail-subtitle {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.collection-detail-body .detail-subtitle:first-child {
  margin-top: 0;
}

.collection-detail-body p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.detail-order {
  margin-top: 8px;
  padding-left: 20px;
  list-style: decimal;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.detail-order li {
  margin-top: 4px;
}

.section-collection-map .map-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
}

.section-collection-map .map-note a {
  margin-right: 14px;
}

.adjust-title {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages · 条目字段说明页
   -------------------------------------------------------------------------- */
.section-field-anatomy,
.section-field-table,
.section-boundary,
.section-misread,
.section-adjustment {
  padding: 44px 0 0;
}

.figure {
  min-width: 0;
  margin-top: 20px;
}

.figure-anatomy img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.field-card {
  min-width: 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-card-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.field-card-body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.field-card-body dt {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.field-card-body dt:first-child {
  margin-top: 0;
}

.field-card-body dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.misread-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.misread-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mark);
  border-radius: var(--radius);
}

.misread-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.misread-answer {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 查阅路径指引页
   -------------------------------------------------------------------------- */
.guide-steps,
.guide-map,
.guide-variants,
.guide-faq,
.guide-feedback {
  padding: 44px 0 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 20px;
  min-width: 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item .step-index {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--focus);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.step-meta {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.step-meta dt {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
}

.step-meta dt:first-child {
  margin-top: 0;
}

.step-meta dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.guide-figure {
  min-width: 0;
  margin-top: 20px;
}

.guide-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.variant-item {
  min-width: 0;
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.variant-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.variant-scene {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.variant-adjust {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-left: 20px;
  list-style: decimal;
}

.feedback-item {
  min-width: 0;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-note {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.site-error {
  background: var(--paper);
}

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.error-block {
  padding: 64px 0 8px;
  max-width: 72ch;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--mark);
}

.error-block h1 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}

.error-text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.error-home-link {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.error-home-link:hover {
  background: var(--focus);
  border-color: var(--focus);
  text-decoration: none;
}

.error-links {
  padding: 44px 0 0;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.error-link-list a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link-list a:hover {
  border-color: var(--focus);
  color: var(--focus);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   responsive · 900px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 20px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-focus {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 26px;
  }

  .hero-media img {
    height: 240px;
  }

  .content-media img {
    height: 220px;
  }

  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .channel-orientation,
  .channel-scope,
  .channel-overview .channel-link {
    grid-column: 1;
  }

  .collection-track,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-boundary-columns,
  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .collection-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-channel-detail .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .figure-anatomy img,
  .guide-figure img {
    height: 230px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 600px 以下
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-toggle {
    display: block;
    min-height: 44px;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--deep-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 12px 10px;
    font-size: 16px;
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 13px;
  }

  .page-header {
    padding-top: 18px;
  }

  .hero-title,
  .page-title,
  .error-block h1 {
    font-size: 24px;
  }

  .hero-lead,
  .page-description {
    font-size: 15px;
  }

  .hero-media img {
    height: 200px;
  }

  .content-media img {
    height: 180px;
  }

  .section,
  .channel-overview,
  .collection-preview,
  .field-boundary,
  .path-overview,
  .adjustment-log,
  .section-channel-overview,
  .section-channel-detail,
  .section-channel-map,
  .section-channel-adjust,
  .section-related,
  .section-collection-overview,
  .section-collection-detail,
  .section-collection-map,
  .section-collection-boundary,
  .section-field-anatomy,
  .section-field-table,
  .section-boundary,
  .section-misread,
  .section-adjustment,
  .guide-steps,
  .guide-map,
  .guide-variants,
  .guide-faq,
  .guide-feedback,
  .error-links {
    padding-top: 32px;
  }

  .section-title,
  .channel-overview > h2,
  .collection-preview > h2,
  .field-boundary > h2,
  .path-overview > h2,
  .adjustment-log > h2 {
    font-size: 20px;
  }

  .collection-track,
  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-grid .collection-card {
    min-width: 0;
  }

  .data-table {
    min-width: 560px;
  }

  .field-cards,
  .feedback-steps,
  .related-list,
  .related-links,
  .error-link-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 16px;
  }

  .step-item .step-index {
    font-size: 18px;
  }

  .figure-anatomy img,
  .guide-figure img,
  .channel-figure img {
    height: 190px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .btn-primary,
  .btn-ghost,
  .error-home-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-foot a + a {
    display: inline-block;
    margin-left: 0;
    margin-top: 6px;
  }

  .section-note a {
    display: inline-block;
    margin-bottom: 6px;
  }
}
