/* ==========================================================================
   光棍影院在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与全局
   -------------------------------------------------------------------------- */
:root {
  --c-primary: #1f3a5f;
  --c-primary-soft: #2c4f7c;
  --c-accent: #c96a2b;
  --c-bg: #f6f4ef;
  --c-surface: #ffffff;
  --c-line: #d9d4c8;
  --c-line-strong: #bdb6a5;
  --c-text: #232a33;
  --c-text-soft: #5a6472;
  --c-footer: #16202e;
  --c-footer-text: #c8d0da;
  --c-footer-line: #2b3a4d;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --w-container: 1120px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(31, 58, 95, 0.06);
  --shadow-lift: 0 6px 18px rgba(31, 58, 95, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--c-primary);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--c-accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.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 · 容器与骨架
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  display: block;
}

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--c-line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 780px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--c-text-soft);
}

.section-desc a {
  color: var(--c-accent);
  border-bottom: 1px solid rgba(201, 106, 43, 0.4);
}

.section-desc a:hover,
.section-desc a:focus-visible {
  border-bottom-color: var(--c-accent);
}

.section-lead {
  margin-top: 10px;
  margin-bottom: 24px;
  max-width: 780px;
  font-size: 15px;
  color: var(--c-text-soft);
}

.subsection-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   layout · 紧凑工具栏
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--c-primary);
  color: #e7edf5;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.top-bar-status {
  margin: 0;
  color: #b9c8db;
}

.top-bar-link {
  color: #f0d9c2;
  border-bottom: 1px solid rgba(240, 217, 194, 0.45);
  padding-bottom: 1px;
}

.top-bar-link:hover,
.top-bar-link:focus-visible {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* --------------------------------------------------------------------------
   layout · 页头与主导航
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.3;
}

.brand-slogan {
  font-size: 12.5px;
  color: var(--c-text-soft);
  line-height: 1.4;
}

.site-nav {
  flex: 0 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-primary);
  background-color: #eef1f6;
  border-color: var(--c-line);
}

.nav-link.is-current {
  color: var(--c-surface);
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--c-primary);
  border-radius: 2px;
}

.nav-toggle-text {
  font-size: 14px;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   components · 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.btn-primary {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--c-primary-soft);
  border-color: var(--c-primary-soft);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--c-primary);
  background-color: #eef1f6;
  color: var(--c-primary);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   components · 面包屑与内页标题区
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13.5px;
  color: var(--c-text-soft);
}

.breadcrumb a {
  color: var(--c-text-soft);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-accent);
  border-bottom-color: rgba(201, 106, 43, 0.5);
}

.breadcrumb-sep {
  color: var(--c-line-strong);
}

.breadcrumb-current {
  color: var(--c-primary);
  font-weight: 600;
}

.page-header {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 22px 24px 30px;
  border-bottom: 1px solid var(--c-line);
}

.page-description {
  font-size: 13.5px;
  color: var(--c-accent);
  font-weight: 600;
}

.page-title {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
}

.page-intro,
.page-lead {
  margin-top: 14px;
  max-width: 820px;
  font-size: 16px;
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   components · 频道行
   -------------------------------------------------------------------------- */
.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.6fr) minmax(180px, 1.6fr) minmax(150px, 1.2fr);
  gap: 16px 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.channel-row:hover {
  border-color: var(--c-line-strong);
  transform: translateX(2px);
}

.channel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.5;
}

.channel-direction,
.channel-scope,
.channel-audience {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.channel-link,
.channel-row-link {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
  white-space: nowrap;
}

.channel-link::after,
.channel-row-link::after {
  content: " →";
}

.channel-link:hover,
.channel-link:focus-visible,
.channel-row-link:hover,
.channel-row-link:focus-visible {
  color: var(--c-primary);
}

/* 频道分类页的频道行：内容区 + 入口 */
.channel-row-main {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.6fr) minmax(180px, 1.6fr) minmax(150px, 1.2fr);
  gap: 16px 24px;
  align-items: start;
}

.section-channels-table .channel-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

/* --------------------------------------------------------------------------
   components · 片单卡
   -------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.collection-card:hover,
.collection-card:focus-within {
  border-color: var(--c-line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.collection-cover,
.collection-figure {
  aspect-ratio: 16 / 10;
  background-color: #e9e5dc;
  overflow: hidden;
}

.collection-cover img,
.collection-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1 1 auto;
}

.collection-tag {
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-accent);
  background-color: rgba(201, 106, 43, 0.1);
  border: 1px solid rgba(201, 106, 43, 0.3);
  border-radius: var(--radius-sm);
}

.collection-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
}

.collection-scope {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.collection-count {
  font-size: 13.5px;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
}

.collection-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: 13.5px;
}

.collection-meta dt {
  color: var(--c-text-soft);
}

.collection-meta dd {
  margin: 0;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.collection-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}

.collection-link::after {
  content: " →";
}

.collection-link:hover,
.collection-link:focus-visible {
  color: var(--c-primary);
}

/* 首页片单卡：封面、名称、范围、条目数、入口 */
.collections-preview .collection-card {
  padding: 0 0 18px;
}

.collections-preview .collection-name,
.collections-preview .collection-scope,
.collections-preview .collection-count,
.collections-preview .collection-link {
  margin-left: 18px;
  margin-right: 18px;
}

.collections-preview .collection-name {
  margin-top: 16px;
}

.collections-preview .collection-scope {
  margin-top: 8px;
}

.collections-preview .collection-count {
  margin-top: 8px;
}

.collections-preview .collection-link {
  margin-top: 14px;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   components · 字段表
   -------------------------------------------------------------------------- */
.field-table {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}

.field-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-primary);
  background-color: #eef1f6;
  border-bottom: 1px solid var(--c-line);
}

.field-table tbody th,
.field-table tbody td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
  line-height: 1.7;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  width: 22%;
  color: var(--c-primary);
  font-weight: 700;
  white-space: nowrap;
}

.field-table tbody td {
  color: var(--c-text-soft);
}

/* 字段说明页：role=table 的自定义网格 */
.section-field-table .field-table {
  border: 0;
  background-color: transparent;
  overflow: visible;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(220px, 1.5fr) minmax(220px, 1.5fr);
  gap: 0;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 0;
}

.field-row:first-child {
  border-top: 1px solid var(--c-line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.field-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.field-row-head {
  background-color: #eef1f6;
}

.field-cell {
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.7;
  border-right: 1px solid var(--c-line);
}

.field-cell:last-child {
  border-right: 0;
}

.field-row-head .field-cell {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-primary);
}

.field-name {
  color: var(--c-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.field-mean,
.field-judge {
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   components · 编号清单（步骤）
   -------------------------------------------------------------------------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.step-no,
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-surface);
  background-color: var(--c-primary);
  border-radius: 50%;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.step-text,
.step-action,
.step-result,
.step-next {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.step-next {
  color: var(--c-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   components · 关联内容入口
   -------------------------------------------------------------------------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.related-card:hover,
.related-card:focus-within {
  border-color: var(--c-line-strong);
  transform: translateY(-2px);
}

.related-card-title,
.related-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.related-card-title a {
  color: var(--c-primary);
}

.related-card-title a:hover,
.related-card-title a:focus-visible {
  color: var(--c-accent);
}

.related-card-text,
.related-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.related-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}

.related-link::after {
  content: " →";
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--c-primary);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-item {
  padding: 18px 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   components · 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 64px;
  background-color: var(--c-footer);
  color: var(--c-footer-text);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 32px 48px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-footer-text);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: var(--c-footer-text);
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  padding-top: 16px;
  padding-bottom: 28px;
  border-top: 1px solid var(--c-footer-line);
}

.footer-copy {
  font-size: 13px;
  color: #93a1b3;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  padding: 48px 0 56px;
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-accent);
}

.hero-title {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--c-accent);
  border-radius: 50%;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9e5dc;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-text-soft);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.hero-thumb {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9e5dc;
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-thumb figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--c-text-soft);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

/* 首页 · 字段与路径摘要 */
.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.fields-table-wrap,
.path-steps-wrap {
  min-width: 0;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-steps .path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.path-steps .step-no {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.path-steps .step-title {
  font-size: 16px;
}

.path-steps .step-result {
  margin-top: 4px;
}

/* 首页 · 收录范围调整记录 */
.scope-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}

.scope-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 110px;
  gap: 8px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.scope-date {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
}

.scope-text {
  font-size: 14.5px;
  color: var(--c-text);
  line-height: 1.75;
}

.scope-status {
  justify-self: end;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-primary);
  background-color: #eef1f6;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   pages · 内页通用模块
   -------------------------------------------------------------------------- */
.inner-main .section {
  padding: 44px 0;
}

.inner-main .section:first-of-type {
  padding-top: 40px;
}

/* 频道分类页 · 频道配图 */
.content-media {
  margin-top: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9e5dc;
}

.content-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-text-soft);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

/* 频道分类页 · 频道与专题对应关系 */
.channel-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.channel-map-col {
  min-width: 0;
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.channel-map-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}

.channel-map-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-map-item {
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.channel-map-item a {
  color: var(--c-accent);
  font-weight: 600;
}

.channel-map-item a:hover,
.channel-map-item a:focus-visible {
  color: var(--c-primary);
}

/* 频道分类页 · 频道选择建议 */
.advice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advice-item {
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
}

.advice-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.advice-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

/* 专题片单页 · 条目示例 */
.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sample-card {
  padding: 22px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.sample-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.sample-source {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--c-accent);
  font-weight: 600;
}

.sample-fields,
.example-fields {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 14.5px;
}

.sample-fields dt,
.example-fields dt {
  color: var(--c-text-soft);
  font-weight: 600;
}

.sample-fields dd,
.example-fields dd {
  margin: 0;
  color: var(--c-text);
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}

/* 专题片单页 · 查阅顺序 */
.section-order .step-item {
  grid-template-columns: 44px minmax(0, 1fr);
}

/* 字段说明页 · 字段示意图 */
.field-figure {
  margin: 32px 0 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9e5dc;
}

.field-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.field-figure-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-text-soft);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

/* 字段说明页 · 组合阅读示例 */
.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.example-card {
  padding: 22px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.example-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.example-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

/* 字段说明页 · 使用注意 */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.note-item {
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.note-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-primary);
}

.note-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 观看指引
   -------------------------------------------------------------------------- */
.guide-steps,
.guide-judge,
.guide-log,
.guide-feedback,
.guide-faq,
.related-entry {
  padding: 44px 0;
}

.guide-steps + .guide-judge,
.guide-judge + .guide-log,
.guide-log + .guide-feedback,
.guide-feedback + .guide-faq,
.guide-faq + .related-entry {
  border-top: 1px solid var(--c-line);
}

.guide-figure {
  margin-top: 28px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: #e9e5dc;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--c-text-soft);
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-line);
}

.judge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.judge-item {
  padding: 20px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--radius);
}

.judge-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.judge-text {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.log-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}

.log-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 110px;
  gap: 8px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.log-date {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--c-text-soft);
  font-variant-numeric: tabular-nums;
}

.log-text {
  font-size: 14.5px;
  color: var(--c-text);
  line-height: 1.75;
}

.log-status {
  justify-self: end;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-primary);
  background-color: #eef1f6;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.feedback-panel {
  padding: 24px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.feedback-body {
  min-width: 0;
}

.feedback-text {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.8;
}

.feedback-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.feedback-scope-item {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.7;
}

.feedback-scope-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background-color: var(--c-accent);
  border-radius: 50%;
}

.feedback-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.75;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 16px 48px 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-question:hover,
.faq-question:focus-visible {
  color: var(--c-accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.related-entry .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-entry .related-card {
  display: block;
  color: inherit;
}

.related-entry .related-card:hover,
.related-entry .related-card:focus-visible {
  color: inherit;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  display: block;
}

.error-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 720px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
}

.error-title {
  margin-top: 16px;
  font-size: 30px;
  font-weight: 700;
  color: var(--c-primary);
}

.error-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}

.error-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-accent);
}

.error-links a:hover,
.error-links a:focus-visible {
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   responsive · 平板 768–1023px
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }

  .breadcrumb,
  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-title {
    font-size: 32px;
  }

  .page-title {
    font-size: 32px;
  }

  .channel-row {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  }

  .channel-row .channel-audience {
    grid-column: 2 / -1;
  }

  .channel-row .channel-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .channel-row-main {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
  }

  .channel-row-main .channel-audience {
    grid-column: 2 / -1;
  }

  .section-channels-table .channel-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .section-channels-table .channel-row-main {
    grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr);
  }

  .section-channels-table .channel-row-main .channel-scope {
    grid-column: 2 / -1;
  }

  .section-channels-table .channel-row-main .channel-audience {
    grid-column: 2 / -1;
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections-preview .collection-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 手机 <768px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 16px;
  }

  .top-bar-inner {
    justify-content: flex-start;
    gap: 4px 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-brand {
    flex: 1 1 auto;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    flex: 1 0 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 13px 14px;
    min-height: 44px;
    border-color: var(--c-line);
  }

  .breadcrumb,
  .page-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .section,
  .inner-main .section {
    padding: 36px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .subsection-title {
    font-size: 16px;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-thumbs {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-rows {
    border-top: 0;
  }

  .channel-row,
  .section-channels-table .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px 0;
  }

  .channel-row .channel-audience,
  .channel-row .channel-link,
  .section-channels-table .channel-row-main .channel-scope,
  .section-channels-table .channel-row-main .channel-audience {
    grid-column: auto;
  }

  .channel-row-main,
  .section-channels-table .channel-row-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .channel-link,
  .channel-row-link {
    justify-self: start;
    padding-top: 4px;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .collections-preview .collection-card:last-child {
    grid-column: auto;
  }

  .field-table {
    font-size: 14px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 11px 12px;
  }

  .field-table tbody th {
    width: 30%;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .field-row:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .field-cell {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .field-cell:last-child {
    border-bottom: 0;
  }

  .field-row-head .field-cell:not(:first-child) {
    display: none;
  }

  .step-item,
  .section-order .step-item,
  .path-steps .path-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .step-no,
  .step-num {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .related-grid,
  .related-entry .related-grid,
  .sample-grid,
  .example-grid,
  .channel-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .scope-item,
  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .scope-status,
  .log-status {
    justify-self: start;
  }

  .feedback-panel {
    padding: 20px;
  }

  .feedback-scope {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .error-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }

  .site-footer {
    margin-top: 48px;
  }

  .footer-inner {
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 26px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-list a {
    display: inline-block;
    padding: 4px 0;
    min-height: 32px;
  }
}

/* --------------------------------------------------------------------------
   responsive · 小屏 420px 及以下
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .container {
    padding: 0 14px;
  }

  .breadcrumb,
  .page-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-title,
  .page-title {
    font-size: 24px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .nav-toggle-text {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   motion · 滚动出现增强（不影响初始可见性）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
