/* ==========================================================================
   飘花电影在线播放 · 通用视频内容导航站
   全站样式表：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --ink: #2E2E2E;
  --ink-soft: #55607A;
  --navy: #1B2A4A;
  --navy-deep: #14203A;
  --accent: #D9772E;
  --accent-deep: #B85F1D;
  --paper: #F7F5F1;
  --surface: #FFFFFF;
  --line: #E3E7EE;
  --line-strong: #CBD3E0;

  --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", Consolas, "Liberation Mono", "Courier New", monospace;

  --wrap: 1140px;
  --wrap-narrow: 880px;
  --radius: 6px;
  --radius-sm: 4px;

  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 52px;

  --shadow-card: 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-raise: 0 4px 14px rgba(27, 42, 74, 0.10);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--accent-deep);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

strong {
  color: var(--navy);
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 跳转到主内容 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--navy);
  color: #FFFFFF;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、导航、主容器、页脚骨架
   -------------------------------------------------------------------------- */

/* 顶部信息条（仅首页） */
.topbar {
  background-color: var(--navy-deep);
  color: #D8DEEA;
}

.topbar-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* 页头 */
.site-header {
  position: relative;
  z-index: 60;
  background-color: var(--navy);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  flex: 0 0 auto;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  padding: 4px 0;
}

.brand:hover {
  color: #F3C08A;
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  color: #DCE3F0;
  font-size: 15px;
  line-height: 24px;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-link:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #FFFFFF;
  border-bottom-color: var(--accent);
  font-weight: 700;
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  height: 2px;
  background-color: #FFFFFF;
  box-shadow: 0 7px 0 #FFFFFF, 0 14px 0 #FFFFFF;
}

/* 主容器 */
.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 24px;
}

.inner-main {
  padding-top: 22px;
  padding-bottom: 40px;
}

.home-main {
  padding-bottom: 40px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--navy);
  font-weight: 700;
}

/* 内页标题区 */
.page-header {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--gap-lg);
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-description {
  max-width: 74ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
}

/* 页脚 */
.site-footer {
  background-color: var(--navy-deep);
  color: #C9D2E2;
  margin-top: var(--gap-lg);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-action {
  display: inline-block;
  padding: 9px 16px;
  min-height: 44px;
  line-height: 26px;
  color: #E7ECF6;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
}

.footer-action:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.10);
  border-color: var(--accent);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-lg) var(--gap-md);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 20px;
}

.footer-heading {
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #C9D2E2;
  font-size: 14px;
  line-height: 1.7;
}

.footer-list a:hover {
  color: #F3C08A;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.7;
}

.footer-about {
  margin: 0 0 6px;
  color: #AEB9CC;
}

.footer-copy {
  margin: 0;
  color: #8F9CB3;
}

/* --------------------------------------------------------------------------
   3. components —— 通用组件
   -------------------------------------------------------------------------- */

/* 通用区块 */
.section {
  padding: var(--gap-xl) 0 0;
}

.section-head {
  margin-bottom: var(--gap-md);
}

.section-title {
  font-size: 23px;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background-color: var(--accent);
}

.section-desc {
  margin: 0;
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-text {
  max-width: 78ch;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.85;
}

.section-intro {
  max-width: 78ch;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.85;
}

.section-note {
  margin-top: 18px;
  padding: 12px 16px;
  background-color: #FBF7F1;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-note a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-note a:hover {
  color: var(--navy);
}

.section-foot {
  margin-top: 18px;
  font-size: 14.5px;
}

/* 文字链接 */
.text-link {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 46, 0.45);
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* 配图 */
.section-figure,
.hero-figure,
.field-figure,
.guide-figure {
  margin: var(--gap-md) 0 0;
}

.section-figure img,
.hero-figure img,
.field-figure img,
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #EAE7E1;
}

.hero-figure img {
  aspect-ratio: 21 / 9;
}

.section-figure img {
  aspect-ratio: 16 / 7;
}

.field-figure img {
  aspect-ratio: 16 / 6;
}

.guide-figure img {
  aspect-ratio: 16 / 6;
}

figcaption,
.figure-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 要点列表 */
.bullet-list {
  margin: 0 0 4px;
  padding-left: 0;
}

.bullet-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.bullet-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background-color: var(--accent);
  border-radius: 2px;
}

.bullet-item:last-child {
  margin-bottom: 0;
}

/* 相关页面 */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-sm);
}

.related-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.related-item a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.related-item a:hover {
  color: var(--accent-deep);
}

.related-item:hover {
  border-color: var(--accent);
}

.related-nav {
  padding: var(--gap-xl) 0 0;
}

/* 按钮（404 使用） */
.btn {
  display: inline-block;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-deep);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4. pages —— 各页面模块
   -------------------------------------------------------------------------- */

/* ---------- 首页 ---------- */

.hero {
  padding: var(--gap-lg) 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap-lg);
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-title {
  font-size: 34px;
  line-height: 1.32;
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-note {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 3px solid var(--line-strong);
  margin: 0;
}

.hero-entries {
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 20px;
}

.hero-entries-title {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.entry-item {
  border-bottom: 1px dashed var(--line-strong);
}

.entry-item:last-child {
  border-bottom: 0;
}

.entry-link {
  display: block;
  padding: 10px 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.entry-link:hover {
  color: var(--accent-deep);
}

.entry-desc {
  display: block;
  padding-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 题材频道总览（首页逐行） */
.channel-overview {
  border-top: 1px solid var(--line-strong);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--gap-md);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row:hover {
  background-color: #FCFAF7;
}

.channel-main,
.channel-side {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.channel-intent {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.channel-types {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.channel-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 46, 0.45);
  text-underline-offset: 3px;
  min-height: 24px;
}

.channel-link:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* 专题片单卡（首页三卡） */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.collection-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-raise);
}

.collection-name {
  font-size: 17px;
  margin-bottom: 10px;
}

.collection-scope {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.collection-types {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.collection-link {
  margin-top: auto;
  display: inline-block;
  align-self: flex-start;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.collection-link:hover {
  color: #FFFFFF;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* 字段速览 + 收录边界（首页两栏） */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gap-lg);
  align-items: start;
}

.fields-column,
.bounds-column {
  min-width: 0;
}

.sub-title {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.field-list,
.bounds-list {
  border-top: 1px solid var(--line);
}

.field-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: var(--gap-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.field-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.8;
}

.field-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.bounds-item {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.bounds-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 2px;
  background-color: var(--accent);
}

/* 观看路径四步（首页） */
.step-list {
  counter-reset: none;
  border-top: 1px solid var(--line-strong);
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--gap-sm);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.step-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 站内收录范围说明 */
.scope-text {
  max-width: 82ch;
  padding: 20px 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.scope-text p {
  margin-bottom: 12px;
}

.scope-text p:last-child {
  margin-bottom: 0;
}

/* 站内页面索引（四列） */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}

.index-column {
  min-width: 0;
  padding: 16px 16px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.index-heading {
  font-size: 15.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.index-list li {
  margin-bottom: 8px;
}

.index-list li:last-child {
  margin-bottom: 0;
}

.index-list .text-link {
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 内页：题材频道 ---------- */

.section-body {
  max-width: 82ch;
}

.channel-rows {
  margin-top: var(--gap-md);
  border-top: 1px solid var(--line-strong);
}

.channel-rows .channel-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.channel-row-main,
.channel-row-side {
  min-width: 0;
}

.channel-orientation {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 频道与片单对应表 */
.map-list {
  margin-top: var(--gap-md);
  border-top: 1px solid var(--line-strong);
}

.map-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--gap-md);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.map-channel {
  font-weight: 700;
  color: var(--navy);
}

.map-target {
  color: var(--ink-soft);
}

.map-target a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 46, 0.45);
  text-underline-offset: 3px;
}

.map-target a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* ---------- 内页：专题片单 ---------- */

.content-section {
  padding: var(--gap-xl) 0 0;
}

.content-section .bullet-item {
  margin-bottom: 12px;
}

.collection-block {
  margin-top: var(--gap-md);
  padding: 20px 22px 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-card);
}

.collection-block .collection-name {
  font-size: 18px;
  margin-bottom: 12px;
}

.collection-body {
  min-width: 0;
}

.collection-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.collection-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-sm);
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.collection-media {
  margin: 0 0 14px;
}

.collection-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  margin-top: var(--gap-md);
  font-size: 14.5px;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.data-table thead th {
  background-color: #EEF1F6;
  color: var(--navy);
  font-weight: 700;
}

.data-table tbody th {
  background-color: #FAF8F5;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13.5px;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background-color: #FCFAF7;
}

/* ---------- 内页：条目字段说明 ---------- */

.section-field-order,
.section-field-list,
.section-field-table,
.section-field-boundary,
.section-related {
  padding-top: var(--gap-xl);
}

.order-list {
  border-top: 1px solid var(--line-strong);
}

.order-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--gap-sm);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.order-index {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--navy);
  border-radius: var(--radius-sm);
}

.order-body {
  min-width: 0;
}

.order-name {
  font-size: 16.5px;
  margin-bottom: 6px;
}

.order-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* 逐字段说明区块 */
.section-field-list .field-item {
  display: block;
  margin-top: var(--gap-md);
  padding: 18px 20px 20px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
}

.section-field-list .field-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.tip-toggle {
  padding: 4px 10px;
  min-height: 30px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 20px;
  color: var(--accent-deep);
  background-color: #FBF3EA;
  border: 1px solid #EBCBAE;
  border-radius: 999px;
  cursor: pointer;
}

.tip-toggle:hover {
  color: #FFFFFF;
  background-color: var(--accent);
  border-color: var(--accent);
}

.field-tip {
  margin: 0 0 12px;
  padding: 10px 14px;
  background-color: #FBF7F1;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.field-def {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--navy);
}

.field-detail {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.field-example {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding: 8px 12px;
  background-color: #F4F6FA;
  border-radius: var(--radius-sm);
}

/* 字段取值示例表 */
.field-table {
  margin-top: var(--gap-md);
  font-size: 14.5px;
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.field-table th,
.field-table td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.field-table thead th {
  background-color: #EEF1F6;
  color: var(--navy);
  font-weight: 700;
}

.field-table tbody th {
  background-color: #FAF8F5;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 13.5px;
  white-space: nowrap;
}

.field-table tbody tr:hover {
  background-color: #FCFAF7;
}

/* 字段与收录边界 */
.boundary-list {
  border-top: 1px solid var(--line-strong);
}

.boundary-item {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 8px;
  height: 2px;
  background-color: var(--accent);
}

/* ---------- 内页：观看路径指引 ---------- */

.guide-steps,
.guide-checks,
.guide-faq,
.guide-feedback,
.guide-related {
  padding-top: var(--gap-xl);
}

.guide-steps .step-list {
  margin-top: var(--gap-md);
}

.guide-steps .step-item {
  display: block;
  padding: 18px 0 18px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  scroll-margin-top: 90px;
}

.guide-steps .step-item:hover {
  border-left-color: var(--accent);
  background-color: #FCFAF7;
}

.guide-steps .step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.guide-steps .step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}

.guide-steps .step-text a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 46, 0.45);
  text-underline-offset: 3px;
}

.guide-steps .step-text a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* 每步判断要点 */
.check-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.check-group {
  min-width: 0;
  padding: 16px 18px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.check-group-title {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.check-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.check-item:last-child {
  margin-bottom: 0;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background-color: var(--accent);
}

/* 折叠问答 */
.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  position: relative;
  padding: 14px 40px 14px 0;
  min-height: 44px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--accent-deep);
}

.faq-answer {
  margin: 0 0 14px;
  padding: 12px 16px;
  background-color: #FBF7F1;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink);
}

/* 反馈说明 */
.feedback-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.feedback-block {
  min-width: 0;
  padding: 16px 18px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.feedback-title {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.feedback-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.feedback-item:last-child {
  margin-bottom: 0;
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 2px;
  background-color: var(--accent);
}

/* ---------- 404 ---------- */

.error-main {
  padding-top: var(--gap-lg);
  padding-bottom: var(--gap-lg);
}

.error-hero {
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--gap-lg);
}

.error-code {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.error-title {
  font-size: 30px;
  line-height: 1.32;
  margin-bottom: 12px;
}

.error-text {
  max-width: 68ch;
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-routes {
  padding-top: 0;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-md);
}

.route-item {
  min-width: 0;
  padding: 16px 18px 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.route-name {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.route-name a:hover {
  color: var(--accent-deep);
}

.route-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. responsive —— 断点适配
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap-md);
  }

  .collection-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-md);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: relative;
    flex: 0 0 auto;
  }

  .nav-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 14px;
    background-color: var(--navy-deep);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 10px 22px rgba(20, 32, 58, 0.28);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 0;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom: 0;
    border-left-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.06);
  }

  .hero {
    padding-top: var(--gap-md);
  }

  .hero-inner,
  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-md);
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .error-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .channel-row,
  .channel-rows .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .collection-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .field-name {
    color: var(--accent-deep);
  }

  .section {
    padding-top: var(--gap-lg);
  }

  .content-section,
  .section-field-order,
  .section-field-list,
  .section-field-table,
  .section-field-boundary,
  .section-related,
  .guide-steps,
  .guide-checks,
  .guide-faq,
  .guide-feedback,
  .guide-related,
  .related-nav {
    padding-top: var(--gap-lg);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-md);
    padding: 22px 20px;
  }

  .field-table,
  .data-table {
    font-size: 14px;
  }

  .field-table th,
  .field-table td,
  .data-table th,
  .data-table td {
    padding: 9px 10px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .topbar-text {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .site-main {
    padding: 0 16px 20px;
  }

  .inner-main {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-desc,
  .section-text,
  .section-intro,
  .scope-text {
    font-size: 15px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: var(--gap-md);
  }

  .page-description {
    font-size: 15px;
  }

  .hero-figure img,
  .section-figure img,
  .field-figure img,
  .guide-figure img,
  .collection-media img {
    aspect-ratio: 16 / 9;
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-sm);
  }

  .index-column {
    padding: 14px 14px 16px;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .step-no {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
  }

  .order-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .order-index {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
  }

  .collection-block,
  .section-field-list .field-item,
  .scope-text {
    padding: 16px 16px 18px;
  }

  .field-table,
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .field-table thead,
  .field-table tbody,
  .data-table thead,
  .data-table tbody {
    display: table;
    width: 100%;
    min-width: 460px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-md);
    padding: 20px 16px;
  }

  .footer-top {
    padding: 16px;
  }

  .footer-bottom {
    padding: 16px 16px 22px;
  }

  .related-list,
  .check-groups,
  .feedback-body,
  .route-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
