/* ==========================================================================
   午夜免费电影 · bintengfushi.cn
   全站样式表
   --------------------------------------------------------------------------
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base —— 变量、重置、排版基础
   ========================================================================== */

:root {
  --bg-page: #0f1a2b;
  --bg-panel: #16233a;
  --bg-panel-soft: #1b2a45;
  --text-main: #e8edf5;
  --text-dim: #9aa9c0;
  --accent: #e0b04a;
  --accent-soft: rgba(224, 176, 74, 0.14);
  --line: #2a3b57;
  --line-strong: #3b5075;
  --radius: 6px;
  --radius-sm: 4px;
  --shell-width: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #f0c76b;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  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;
}

strong {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   layout —— 全站骨架：页头、导航、主容器、页脚
   ========================================================================== */

.site-body {
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

/* ---- 页头 ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(15, 26, 43, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-main);
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text-main);
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---- 主导航 ---- */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  border-bottom-color: var(--line-strong);
}

.nav-link.is-current {
  color: var(--text-main);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* ---- 汉堡按钮：桌面隐藏 ---- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
}

/* ---- 主容器 ---- */

.site-main {
  display: block;
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 20px;
}

/* ---- 跳转链接 ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--bg-panel);
  color: var(--text-main);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 12px;
}

/* ---- 页脚 ---- */

.site-footer {
  background-color: #0c1626;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-dim);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-desc {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-note {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.back-top {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.back-top:hover,
.back-top:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.copyright {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   components —— 通用组件：按钮、区块头、表格、卡片、提示条
   ========================================================================== */

/* ---- 按钮 ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #1a1204;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #f0c76b;
  border-color: #f0c76b;
  color: #1a1204;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- 区块通用 ---- */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.section-desc {
  margin-top: 10px;
  color: var(--text-dim);
  max-width: 780px;
}

.section-intro {
  margin-bottom: 20px;
  color: var(--text-dim);
  max-width: 780px;
}

.section-foot {
  margin-top: 20px;
}

.section-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 15px;
}

.link-more {
  display: inline-block;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.link-more:hover,
.link-more:focus-visible {
  border-bottom-color: var(--accent);
}

/* ---- 表格 ---- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
}

.table-caption {
  caption-side: top;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}

.data-table,
.field-table,
.fields-table {
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td,
.fields-table th,
.fields-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th,
.field-table thead th,
.fields-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-panel-soft);
  white-space: nowrap;
}

.data-table tbody th,
.field-table tbody th,
.fields-table tbody th {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.field-table tbody tr:hover,
.fields-table tbody tr:hover {
  background-color: rgba(224, 176, 74, 0.06);
}

/* ---- 收录边界提示条 ---- */

.boundary-note {
  margin-top: 24px;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.boundary-title,
.boundary-note-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.boundary-text {
  margin: 0 0 8px;
  color: var(--text-dim);
  line-height: 1.7;
}

.boundary-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages —— 首页各模块
   ========================================================================== */

/* ---- 首屏 ---- */

.hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-lead {
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.hero-desc {
  margin-top: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}

.hero-note {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  font-size: 15px;
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-aside {
  min-width: 0;
}

.hero-figure {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.hero-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-panel {
  padding: 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.hero-quick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-quick-list > li {
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 15px;
  color: var(--text-dim);
}

.hero-quick-list > li a {
  color: var(--text-main);
}

.hero-quick-list > li a:hover,
.hero-quick-list > li a:focus-visible {
  color: var(--accent);
}

.hero-panel-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}

/* ---- 题材频道总览 ---- */

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-list .channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-list .channel-row:hover {
  background-color: rgba(224, 176, 74, 0.05);
}

.channel-list .channel-name {
  font-size: 17px;
  font-weight: 700;
}

.channel-list .channel-name a {
  color: var(--text-main);
}

.channel-list .channel-name a:hover,
.channel-list .channel-name a:focus-visible {
  color: var(--accent);
}

.channel-intro {
  color: var(--text-dim);
  min-width: 0;
}

.channel-tags {
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: right;
}

/* ---- 专题片单速览 ---- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-grid .collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.collection-grid .collection-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.collection-figure {
  background-color: var(--bg-panel-soft);
}

.collection-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.collection-grid .collection-name {
  padding: 16px 18px 0;
  font-size: 17px;
  font-weight: 700;
}

.collection-grid .collection-name a {
  color: var(--text-main);
}

.collection-grid .collection-name a:hover,
.collection-grid .collection-name a:focus-visible {
  color: var(--accent);
}

.collection-scope,
.collection-struct {
  padding: 8px 18px 0;
  font-size: 15px;
  color: var(--text-dim);
}

.collection-struct {
  padding-bottom: 18px;
}

/* ---- 字段摘要 ---- */

.section-fields .table-wrap {
  margin-top: 4px;
}

/* ---- 查阅路径三步 ---- */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.step-item:hover {
  border-color: var(--line-strong);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 17px;
  font-weight: 700;
}

.step-name a {
  color: var(--text-main);
}

.step-name a:hover,
.step-name a:focus-visible {
  color: var(--accent);
}

.step-desc {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- 收录边界与反馈 ---- */

.boundary-box {
  padding: 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-box .boundary-text {
  margin-bottom: 12px;
}

.boundary-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-list > li {
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  font-size: 15px;
  color: var(--text-dim);
}

.boundary-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   pages —— 内页通用：面包屑、页面标题区
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.page-description {
  margin-top: 14px;
  max-width: 780px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ==========================================================================
   pages —— 题材频道页
   ========================================================================== */

.channel-overview,
.channel-compare,
.channel-scope {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.channel-overview .section-title,
.channel-compare .section-title,
.channel-scope .section-title {
  font-size: 24px;
}

.channel-overview .channel-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.channel-overview .channel-row:last-child {
  border-bottom: 0;
}

.channel-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.channel-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.channel-orient {
  margin-top: 10px;
  color: var(--text-main);
  line-height: 1.75;
}

.channel-compose,
.channel-sample {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.channel-compare .data-table {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-compare .data-table th a {
  color: var(--text-main);
}

.channel-compare .data-table th a:hover,
.channel-compare .data-table th a:focus-visible {
  color: var(--accent);
}

.channel-scope .scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-scope .scope-item {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-advice {
  margin-top: 24px;
  padding: 20px;
  background-color: var(--bg-panel-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.advice-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.advice-text {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.advice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.advice-links a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.advice-links a:hover,
.advice-links a:focus-visible {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   pages —— 专题片单页
   ========================================================================== */

.section-collections {
  padding: 40px 0;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.collection-list .collection-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.collection-list .collection-card:hover {
  border-color: var(--line-strong);
  transform: none;
}

.collection-media {
  background-color: var(--bg-panel-soft);
}

.collection-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.collection-body {
  min-width: 0;
  padding: 22px 24px;
}

.collection-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.collection-body .collection-name {
  padding: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.collection-summary {
  margin-top: 10px;
  color: var(--text-dim);
  line-height: 1.75;
}

.collection-meta {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  font-size: 15px;
}

.collection-meta dt {
  color: var(--text-dim);
}

.collection-meta dd {
  margin: 0;
  color: var(--text-main);
}

.collection-link {
  margin-top: 16px;
}

.collection-link a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.collection-link a:hover,
.collection-link a:focus-visible {
  border-bottom-color: var(--accent);
}

.section-scope,
.section-relation {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-scope .scope-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-scope .scope-item {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.scope-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.relation-body {
  min-width: 0;
}

.relation-text {
  margin-bottom: 12px;
  color: var(--text-dim);
  line-height: 1.75;
}

.relation-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.relation-links a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.relation-links a:hover,
.relation-links a:focus-visible {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   pages —— 条目字段说明页
   ========================================================================== */

.fields-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.fields-intro-body {
  min-width: 0;
}

.fields-intro-body .section-title {
  font-size: 24px;
}

.fields-intro-body p {
  margin-top: 12px;
  color: var(--text-dim);
  line-height: 1.75;
}

.fields-intro-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fields-intro-list > li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

.fields-intro-list .idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.fields-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.fields-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.fields-figure figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

.fields-table-section,
.fields-rules,
.fields-boundary {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.fields-table-section .section-title,
.fields-rules .section-title,
.fields-boundary .section-title {
  font-size: 24px;
}

.fields-table-section .section-desc,
.fields-rules .section-desc {
  margin-bottom: 20px;
}

.fields-rules .section-desc strong {
  color: var(--accent);
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: rule;
}

.rules-item {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.rules-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.fields-boundary p {
  margin-bottom: 12px;
  color: var(--text-dim);
  line-height: 1.75;
}

.fields-related {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fields-related a {
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.fields-related a:hover,
.fields-related a:focus-visible {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   pages —— 查阅路径页
   ========================================================================== */

.guide-figure {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}

.guide-steps,
.guide-notes,
.guide-feedback,
.guide-faq {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.guide-steps .section-title,
.guide-notes .section-title,
.guide-feedback .section-title,
.guide-faq .section-title {
  font-size: 24px;
}

.guide-steps .step-desc a {
  border-bottom: 1px solid transparent;
}

.guide-steps .step-desc a:hover,
.guide-steps .step-desc a:focus-visible {
  border-bottom-color: var(--accent);
}

.step-next {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.step-next:hover,
.step-next:focus-visible {
  border-bottom-color: var(--accent);
}

.note-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.note-item {
  padding: 18px 20px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.note-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.feedback-block {
  padding: 22px 24px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: fb;
}

.feedback-step {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.feedback-step::before {
  counter-increment: fb;
  content: counter(fb);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #1a1204;
  background-color: var(--accent);
  border-radius: 50%;
}

.feedback-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 16px 48px 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ==========================================================================
   pages —— 404
   ========================================================================== */

.error-main {
  padding-top: 64px;
  padding-bottom: 80px;
}

.error-panel {
  max-width: 640px;
  padding: 32px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.error-title {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}

.error-desc {
  margin-top: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

.error-hint {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-dim);
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   responsive —— 960px / 640px / 390px
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner {
    padding: 10px 20px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #101c2e;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    font-size: 16px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
  }

  .site-main {
    padding: 0 20px 56px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    height: 220px;
  }

  .channel-list .channel-row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
  }

  .channel-tags {
    grid-column: 1 / -1;
    text-align: left;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 32px 20px 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-figure img {
    height: 200px;
  }

  .channel-scope .scope-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-list .collection-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-media img {
    height: 200px;
    min-height: 0;
  }

  .section-scope .scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .fields-figure img {
    height: 200px;
  }

  .note-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-panel {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    font-size: 11px;
  }

  .site-main {
    padding: 0 16px 48px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-figure img {
    height: 180px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .section {
    padding: 36px 0;
  }

  .section-title,
  .channel-overview .section-title,
  .channel-compare .section-title,
  .channel-scope .section-title,
  .fields-intro-body .section-title,
  .fields-table-section .section-title,
  .fields-rules .section-title,
  .fields-boundary .section-title,
  .guide-steps .section-title,
  .guide-notes .section-title,
  .guide-feedback .section-title,
  .guide-faq .section-title {
    font-size: 20px;
  }

  .channel-list .channel-row,
  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 0;
  }

  .channel-tags {
    text-align: left;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .collection-figure img {
    height: 170px;
  }

  .step-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .step-no {
    font-size: 17px;
  }

  .boundary-box {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 18px;
  }

  .copyright {
    padding: 14px 16px;
  }

  .page-header {
    padding: 18px 0 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .channel-overview,
  .channel-compare,
  .channel-scope,
  .section-collections,
  .section-scope,
  .section-relation,
  .fields-intro,
  .fields-table-section,
  .fields-rules,
  .fields-boundary,
  .guide-steps,
  .guide-notes,
  .guide-feedback,
  .guide-faq {
    padding: 28px 0;
  }

  .channel-scope .scope-list,
  .section-scope .scope-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .collection-body {
    padding: 18px 16px;
  }

  .collection-meta {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .collection-media img {
    height: 170px;
  }

  .fields-figure img {
    height: 170px;
  }

  .rules-item,
  .note-item {
    padding: 16px;
  }

  .feedback-block {
    padding: 18px 16px;
  }

  .faq-question {
    padding: 14px 42px 14px 16px;
    font-size: 15px;
  }

  .faq-question::after {
    right: 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .error-panel {
    padding: 20px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-title {
    font-size: 22px;
  }

  .error-actions .btn {
    flex: 1 1 100%;
  }

  /* 表格改为纵向条目 */
  .table-wrap {
    border: 0;
    background-color: transparent;
    overflow-x: visible;
  }

  .table-caption {
    padding: 0 0 12px;
    border-bottom: 0;
  }

  .data-table,
  .field-table,
  .fields-table,
  .data-table tbody,
  .field-table tbody,
  .fields-table tbody,
  .data-table tr,
  .field-table tr,
  .fields-table tr,
  .data-table th,
  .data-table td,
  .field-table th,
  .field-table td,
  .fields-table th,
  .fields-table td {
    display: block;
    width: 100%;
  }

  .data-table thead,
  .field-table thead,
  .fields-table thead {
    display: none;
  }

  .data-table tbody tr,
  .field-table tbody tr,
  .fields-table tbody tr {
    margin-bottom: 14px;
    padding: 14px 16px;
    background-color: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .data-table tbody th,
  .field-table tbody th,
  .fields-table tbody th {
    padding: 0 0 8px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .data-table tbody td,
  .field-table tbody td,
  .fields-table tbody td {
    padding: 8px 0 0;
    border-bottom: 0;
  }

  .data-table tbody tr:last-child,
  .field-table tbody tr:last-child,
  .fields-table tbody tr:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 390px) {
  .header-inner {
    padding: 10px 12px;
  }

  .site-main {
    padding: 0 12px 44px;
  }

  .hero-title {
    font-size: 22px;
  }

  .page-title {
    font-size: 22px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tag {
    display: none;
  }

  .footer-inner {
    padding: 24px 12px 16px;
  }

  .copyright {
    padding: 12px;
  }

  .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .step-no {
    font-size: 15px;
  }
}
