/* ==========================================================================
   猎奇视频 · 全站样式
   纸本编目册视觉：米灰纸底、深松绿标题、赭石编号、细线分隔
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --paper: #f6f2e9;
  --paper-2: #ece5d6;
  --ink: #1e1c19;
  --pine: #2c4a3e;
  --ochre: #b27a3e;
  --brick: #8a4636;
  --line: #d5cdbc;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --pad: 24px;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ochre);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pine);
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono,
.entry-code,
.hero-code,
.channel-no,
.volume-no,
.volume-code,
.batch-code,
.task-card-no,
.task-detail-no,
.task-step-no,
.step-num,
.prepare-num,
.step-index,
.status {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--pine);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-mark::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 5px;
  background: var(--ochre);
}

.brand-sub {
  margin: 0;
  font-size: 12px;
  color: #6b6357;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
  position: relative;
}

.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ochre);
  transition: width 0.24s ease;
}

.nav-item > a:hover::after,
.nav-item > a:focus-visible::after {
  width: 100%;
}

.nav-item.is-current > a {
  color: var(--pine);
  font-weight: 600;
}

.nav-item.is-current > a::after {
  width: 100%;
}

.has-sub > a {
  padding-right: 16px;
}

.sub-toggle {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
}

.sub-toggle::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto;
  border-right: 1.5px solid var(--pine);
  border-bottom: 1.5px solid var(--pine);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.has-sub.is-open .sub-toggle::before {
  transform: rotate(-135deg) translateY(-1px);
}

.sub-list {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 168px;
  padding: 8px 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 30;
}

.has-sub:hover .sub-list,
.has-sub:focus-within .sub-list,
.has-sub.is-open .sub-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-list li a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: var(--ink);
}

.sub-list li a:hover {
  color: var(--ochre);
  background: rgba(178, 122, 62, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pine);
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: #6b6357;
}

.breadcrumb a {
  color: #6b6357;
}

.breadcrumb a:hover {
  color: var(--ochre);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--pine);
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 通用按钮与行内链接 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--pine);
  color: var(--paper);
  border-color: var(--pine);
}

.btn-primary:hover {
  background: #223a30;
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.btn-ghost:hover {
  background: var(--pine);
  color: var(--paper);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-inline::after {
  content: "→";
  font-size: 13px;
  color: var(--ochre);
}

.link-inline:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

/* 区块标题组 */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: #5c554a;
  max-width: 72ch;
  margin: 0;
}

.section-more {
  margin-top: 22px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border-radius: 3px;
  border: 1px solid var(--line);
  margin-right: 8px;
  vertical-align: middle;
}

.tag-in {
  color: var(--pine);
  border-color: #b9c8bf;
  background: rgba(44, 74, 62, 0.06);
}

.tag-out {
  color: var(--brick);
  border-color: #d9bcb2;
  background: rgba(138, 70, 54, 0.06);
}

/* 图片容器统一宽高比 */
.hero-media,
.entry-feature-media,
.volume-media,
.channel-figure,
.channel-row-media,
.volume-cover,
.media-figure,
.task-figure,
.archive-figure,
.page-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.hero-media img,
.entry-feature-media img,
.volume-media img,
.channel-figure img,
.channel-row-media img,
.volume-cover img,
.media-figure img,
.task-figure img,
.archive-figure img,
.page-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media,
.entry-feature-media,
.volume-media,
.channel-figure,
.volume-cover,
.media-figure,
.task-figure,
.archive-figure,
.page-figure {
  aspect-ratio: 16 / 9;
}

.channel-row-media {
  aspect-ratio: 4 / 3;
}

figcaption,
.hero-media-caption,
.figure-caption,
.volume-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: #6b6357;
  line-height: 1.6;
}

/* 字段定义表 / 台账表通用表格 */
.field-table,
.ledger-table,
.channel-map-table {
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.field-table caption,
.ledger-table caption,
.channel-map-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: #6b6357;
  padding-bottom: 8px;
}

.field-table th,
.field-table td,
.ledger-table th,
.ledger-table td,
.channel-map-table th,
.channel-map-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.field-table thead th,
.ledger-table thead th,
.channel-map-table thead th {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--pine);
  background: var(--paper-2);
  letter-spacing: 0.02em;
}

.field-table tbody th,
.ledger-table tbody th {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ochre);
  font-weight: 400;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.ledger-table tbody tr:last-child th,
.ledger-table tbody tr:last-child td,
.channel-map-table tbody tr:last-child th,
.channel-map-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

/* 元信息定义列表 */
.meta-list,
.page-meta,
.page-head-meta,
.page-hero-meta {
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.meta-row,
.page-meta-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.meta-row:last-child,
.page-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.meta-row dt,
.page-meta-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.meta-row dd,
.page-meta-row dd {
  margin: 0;
  color: var(--ink);
}

/* FAQ 原生 details */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--pine);
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ochre);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: #4a443b;
  max-width: 72ch;
}

/* 页脚 */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--pad) 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--pine);
  margin: 0;
  letter-spacing: 0.04em;
}

.footer-slogan {
  font-size: 13.5px;
  color: #5c554a;
  margin: 0;
}

.footer-note {
  font-size: 12.5px;
  color: #6b6357;
  margin: 0;
  line-height: 1.7;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--pine);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-nav .footer-links {
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.footer-links li a {
  font-size: 13.5px;
  color: #4a443b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-links li a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ochre);
  flex: 0 0 auto;
}

.footer-links li a:hover {
  color: var(--ochre);
}

.footer-col-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #6b6357;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--pad) 26px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: #6b6357;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* 首屏编目焦点 */
.hero-focus {
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-primary {
  min-width: 0;
}

.hero-media {
  position: relative;
}

.hero-media-caption {
  margin-top: 8px;
}

.hero-code {
  margin: 20px 0 10px;
  color: var(--ochre);
}

.hero-primary h1 {
  font-size: 40px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 16px;
  color: #4a443b;
  max-width: 60ch;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-fields {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  min-width: 0;
}

.hero-fields-title {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-list {
  display: grid;
  gap: 12px;
}

.field-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.field-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.field-desc {
  color: #4a443b;
  line-height: 1.65;
}

/* 站点信息条 */
.info-strip {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.info-strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.info-cell:first-child {
  border-left: 0;
  padding-left: 0;
}

.info-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.info-text {
  font-size: 13.5px;
  color: #4a443b;
  line-height: 1.6;
}

/* 编目缘起 */
.origin-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.origin-text h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.origin-text p {
  font-size: 15.5px;
  color: #3c372f;
  max-width: 66ch;
}

.origin-points {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.origin-points-title {
  font-size: 15px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.point-list {
  display: grid;
  gap: 14px;
}

.point-item h4 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--pine);
}

.point-item p {
  margin: 0;
  font-size: 13.5px;
  color: #4a443b;
  line-height: 1.65;
}

/* 频道目录预览 */
.channel-preview {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.entry-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.entry-feature-media {
  aspect-ratio: 4 / 3;
}

.entry-feature-body {
  min-width: 0;
}

.entry-code {
  margin: 0 0 8px;
  color: var(--ochre);
}

.entry-title {
  font-size: 20px;
  margin: 0 0 8px;
}

.entry-range {
  font-size: 13.5px;
  color: #6b6357;
  margin: 0 0 8px;
}

.entry-note {
  font-size: 14.5px;
  color: #3c372f;
  margin: 0 0 12px;
  max-width: 60ch;
}

.entry-compact-list {
  display: grid;
  gap: 0;
}

.entry-compact {
  display: grid;
  grid-template-columns: 76px minmax(120px, 180px) 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.entry-compact-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.entry-compact-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
  font-size: 15px;
}

.entry-compact-range {
  color: #4a443b;
  line-height: 1.65;
}

/* 条目字段构成 */
.field-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.field-table-wrap {
  min-width: 0;
}

.field-table-wrap h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.field-aside {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.field-aside h3 {
  font-size: 15px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.field-aside p {
  font-size: 14px;
  color: #4a443b;
  line-height: 1.7;
}

.field-aside .btn {
  margin-top: 14px;
}

/* 专题片单预览 */
.volume-preview {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.volume-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.volume-code {
  margin: 12px 0 0;
  color: var(--ochre);
}

.volume-title {
  font-size: 18px;
  margin: 0;
}

.volume-desc {
  font-size: 14px;
  color: #4a443b;
  margin: 0;
  line-height: 1.65;
}

/* 观看准备四步 */
.prepare-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.prepare-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  min-width: 0;
}

.prepare-num {
  display: inline-block;
  color: var(--ochre);
  margin-bottom: 8px;
}

.prepare-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.prepare-action {
  font-size: 13.5px;
  color: #4a443b;
  margin: 0;
  line-height: 1.65;
}

/* 编目边界 */
.boundary-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-section > h2 {
  font-size: 24px;
  margin-bottom: 22px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.boundary-col {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.boundary-col h3 {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  display: grid;
  gap: 12px;
}

.boundary-list li {
  font-size: 14px;
  color: #3c372f;
  line-height: 1.7;
  padding-left: 2px;
}

/* 更新台账预览 */
.ledger-preview {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

/* 按任务查摘要 */
.task-summary {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.task-summary h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.faq-list {
  margin-top: 22px;
}

.task-summary-note {
  margin-top: 20px;
  font-size: 14px;
  color: #4a443b;
  max-width: 72ch;
}

.task-summary-note a {
  margin-left: 6px;
}

/* ==========================================================================
   pages · 频道目录
   ========================================================================== */

.page-layout {
  display: block;
}

.page-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title-main {
  min-width: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ochre);
  margin: 0 0 10px;
}

.page-lead {
  font-size: 15.5px;
  color: #3c372f;
  max-width: 66ch;
  margin: 0;
}

.page-title-block .page-title {
  margin-bottom: 12px;
}

.channel-figure {
  margin-bottom: 36px;
}

.channel-table {
  margin-bottom: 44px;
}

.channel-table h2,
.channel-detail h2,
.channel-map h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.channel-table .section-intro,
.channel-detail .section-intro {
  margin-bottom: 22px;
}

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row-featured {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 0;
}

.channel-row-media {
  aspect-ratio: 4 / 3;
}

.channel-row-body {
  min-width: 0;
}

.channel-no {
  margin: 0 0 6px;
  color: var(--ochre);
}

.channel-name {
  font-size: 19px;
  margin: 0 0 8px;
}

.channel-row-compact {
  display: grid;
  grid-template-columns: 76px minmax(140px, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 4px;
}

.channel-row-compact .channel-no {
  margin: 0;
}

.channel-row-compact .channel-name {
  font-size: 15.5px;
  margin: 0;
}

.channel-row-compact .channel-name a {
  color: var(--pine);
}

.channel-row-compact .channel-name a:hover {
  color: var(--ochre);
}

.channel-scope {
  font-size: 14px;
  color: #4a443b;
  margin: 0;
  line-height: 1.65;
}

.channel-detail {
  margin-bottom: 44px;
}

.channel-detail-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.channel-detail-block:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-title {
  font-size: 19px;
  margin: 0 0 16px;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.detail-col {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.detail-col-title {
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.detail-col-in .detail-col-title {
  color: var(--pine);
}

.detail-col-out .detail-col-title {
  color: var(--brick);
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list li {
  font-size: 14px;
  color: #3c372f;
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  background: var(--ochre);
}

.detail-col-out .detail-list li::before {
  background: var(--brick);
}

.channel-map h2 {
  margin-bottom: 8px;
}

.channel-map .table-wrap {
  margin: 18px 0;
}

.channel-map-table tbody th {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ochre);
  font-weight: 400;
  white-space: nowrap;
}

.channel-map-table tbody td a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
}

.channel-map-table tbody td a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.section-note {
  font-size: 14px;
  color: #4a443b;
  max-width: 72ch;
}

.section-note a {
  margin-right: 12px;
}

/* ==========================================================================
   pages · 专题片单
   ========================================================================== */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-head-main {
  min-width: 0;
}

.page-head-desc {
  font-size: 15.5px;
  color: #3c372f;
  max-width: 66ch;
  margin: 0;
}

.page-head-meta {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-catalog .section-head,
.section-volumes .section-head,
.section-pace .section-head {
  margin-bottom: 22px;
}

.volume-index {
  border-top: 1px solid var(--line);
}

.volume-row {
  display: grid;
  grid-template-columns: 64px minmax(140px, 200px) minmax(120px, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.volume-no {
  color: var(--ochre);
}

.volume-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
  font-size: 15px;
}

.volume-channels {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6b6357;
}

.volume-note {
  color: #4a443b;
  line-height: 1.65;
}

.volume-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.volume-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.volume-cover {
  aspect-ratio: 4 / 3;
}

.volume-body {
  min-width: 0;
}

.volume-body h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.volume-angle,
.volume-compose,
.volume-order,
.volume-pace {
  font-size: 14.5px;
  color: #3c372f;
  margin: 0 0 10px;
  line-height: 1.7;
  max-width: 66ch;
}

.label-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ochre);
  margin-right: 8px;
}

.pace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.pace-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.pace-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.pace-item p {
  font-size: 14px;
  color: #3c372f;
  margin: 0 0 8px;
  line-height: 1.7;
}

.pace-item p:last-child {
  margin-bottom: 0;
}

.section-foot {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.section-foot a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  font-size: 14.5px;
}

.section-foot a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.section-back {
  padding: 32px 0 0;
  border-bottom: 0;
}

.back-line {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14.5px;
  color: #4a443b;
}

.back-line a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.back-line a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

/* ==========================================================================
   pages · 观看准备
   ========================================================================== */

.viewing-figure {
  margin-bottom: 36px;
}

.viewing-steps,
.device-diff,
.scene-compare,
.related-entry {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.related-entry {
  border-bottom: 0;
}

.viewing-steps .section-head,
.device-diff .section-head,
.scene-compare .section-head {
  margin-bottom: 22px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  min-width: 0;
}

.step-index {
  display: inline-block;
  color: var(--ochre);
  margin-bottom: 8px;
}

.step-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.step-action {
  font-size: 14px;
  color: #3c372f;
  margin: 0 0 8px;
  line-height: 1.7;
}

.step-check {
  font-size: 13px;
  color: #6b6357;
  margin: 0;
  line-height: 1.65;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.device-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.device-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.device-name {
  font-size: 16px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.device-fit {
  font-size: 14px;
  color: #3c372f;
  margin: 0 0 8px;
  line-height: 1.7;
}

.device-caution {
  font-size: 13px;
  color: var(--brick);
  margin: 0;
  line-height: 1.65;
}

.scene-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.scene-col {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.scene-col-title {
  font-size: 15px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scene-avoid .scene-col-title {
  color: var(--brick);
}

.scene-alt .scene-col-title {
  color: var(--pine);
}

.scene-list {
  display: grid;
  gap: 12px;
}

.scene-list li {
  font-size: 14px;
  color: #3c372f;
  line-height: 1.7;
}

.scene-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ochre);
  margin-right: 8px;
}

.related-entry h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.related-intro {
  font-size: 14.5px;
  color: #4a443b;
  max-width: 72ch;
  margin-bottom: 18px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-links li a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--pine);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links li a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

/* ==========================================================================
   pages · 按任务查
   ========================================================================== */

.task-figure {
  margin-bottom: 36px;
}

.task-index,
.task-detail,
.feedback-fields,
.task-faq {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.task-faq {
  border-bottom: 0;
}

.task-index h2,
.feedback-fields h2,
.task-faq h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.task-index .section-intro,
.feedback-fields .section-intro {
  margin-bottom: 22px;
}

.task-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.task-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.task-card-no {
  margin: 0;
  color: var(--ochre);
}

.task-card-name {
  font-size: 16px;
  margin: 0;
}

.task-card-signal {
  font-size: 13.5px;
  color: #4a443b;
  margin: 0;
  line-height: 1.65;
  flex: 1 1 auto;
}

.task-card-link {
  align-self: flex-start;
  font-size: 13.5px;
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  margin-top: 6px;
}

.task-card-link:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.task-detail-head {
  margin-bottom: 16px;
}

.task-detail-no {
  margin: 0 0 6px;
  color: var(--ochre);
}

.task-detail-head h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.task-detail-conclusion {
  font-size: 15px;
  color: #3c372f;
  max-width: 72ch;
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--ochre);
}

.task-detail-conclusion a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
}

.task-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  counter-reset: task-step;
}

.task-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  color: #3c372f;
}

.task-step-no {
  color: var(--ochre);
  text-align: right;
}

.task-step p {
  margin: 0;
  line-height: 1.75;
}

.task-step p a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  margin-right: 4px;
}

.task-step p a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.task-related {
  font-size: 14px;
  margin: 0;
}

.task-related a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.task-related a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.feedback-fields .field-table {
  margin-top: 4px;
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  color: #4a443b;
  max-width: 72ch;
}

.feedback-note a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
}

.feedback-note a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.task-faq .faq-item:first-of-type {
  margin-top: 18px;
}

/* ==========================================================================
   pages · 编目说明
   ========================================================================== */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-hero-main {
  min-width: 0;
}

.page-hero-lead {
  font-size: 15.5px;
  color: #3c372f;
  max-width: 66ch;
  margin: 0;
}

.page-hero-meta {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.page-figure {
  margin-bottom: 36px;
}

.rules-section,
.fields-section,
.boundary-section,
.related-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.related-section {
  border-bottom: 0;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rules-text {
  min-width: 0;
}

.rules-text h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.rules-text p {
  font-size: 15px;
  color: #3c372f;
  max-width: 70ch;
  margin: 0 0 18px;
}

.rules-text h3:not(:first-child) {
  margin-top: 6px;
}

.rules-example {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.example-title {
  font-size: 15px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.example-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.example-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.example-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.example-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.example-row dd {
  margin: 0;
  color: #3c372f;
  line-height: 1.65;
}

.example-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #6b6357;
  line-height: 1.65;
}

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.fields-layout .field-table {
  min-width: 0;
}

.fields-note {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.fields-note h3 {
  font-size: 15px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fields-note p {
  font-size: 14px;
  color: #3c372f;
  line-height: 1.7;
}

.boundary-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.boundary-in,
.boundary-out {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.boundary-title {
  font-size: 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.boundary-in .boundary-title {
  color: var(--pine);
}

.boundary-out .boundary-title {
  color: var(--brick);
}

.boundary-services {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.boundary-services h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.boundary-services p {
  font-size: 14.5px;
  color: #3c372f;
  max-width: 72ch;
  margin: 0;
}

.related-section h2 {
  margin-bottom: 8px;
}

/* ==========================================================================
   pages · 更新记录
   ========================================================================== */

.archive-figure {
  margin-bottom: 36px;
}

.ledger-section,
.change-types,
.review-path {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.review-path {
  border-bottom: 0;
}

.ledger-section h2,
.change-types h2,
.review-path h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ledger-section .section-lead,
.change-types .section-lead,
.review-path .section-lead {
  margin-bottom: 20px;
}

.ledger-section .table-wrap {
  margin-bottom: 16px;
}

.ledger-table tbody td {
  font-size: 14px;
  color: #3c372f;
}

.ledger-table tbody td:first-child {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ochre);
  white-space: nowrap;
}

.status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11.5px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: #4a443b;
}

.status-done {
  color: var(--pine);
  border-color: #b9c8bf;
  background: rgba(44, 74, 62, 0.06);
}

.ledger-note {
  font-size: 14px;
  color: #4a443b;
  max-width: 72ch;
  margin: 0;
}

.change-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.change-type-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.change-type-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.change-type-card p {
  font-size: 14px;
  color: #3c372f;
  margin: 0 0 8px;
  line-height: 1.7;
}

.change-type-card p:last-child {
  margin-bottom: 0;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.path-step {
  border: 1px solid var(--line);
  border-top: 3px solid var(--ochre);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.path-step .step-num {
  display: inline-block;
  color: var(--ochre);
  margin-bottom: 8px;
}

.path-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.path-step p {
  font-size: 14px;
  color: #3c372f;
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ochre);
  margin: 0 0 12px;
}

.error-title {
  font-size: 32px;
  margin: 0 0 14px;
}

.error-lead {
  font-size: 15.5px;
  color: #3c372f;
  max-width: 60ch;
  margin: 0 0 28px;
}

.error-sub {
  font-size: 17px;
  margin: 0 0 12px;
}

.error-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.error-list li a {
  display: inline-block;
  color: var(--pine);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  font-size: 14.5px;
}

.error-list li a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: var(--radius);
  background: var(--pine);
  color: var(--paper);
  border: 1px solid var(--pine);
}

.error-btn:hover {
  background: #223a30;
  color: var(--paper);
}

.error-btn-plain {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.error-btn-plain:hover {
  background: var(--pine);
  color: var(--paper);
}

.error-note {
  font-size: 14px;
  color: #4a443b;
  margin: 0;
}

.error-note a {
  color: var(--pine);
  border-bottom: 1px solid var(--line);
}

.error-note a:hover {
  color: var(--ochre);
  border-color: var(--ochre);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    gap: 18px;
  }

  .nav-list {
    gap: 16px;
  }

  .nav-item > a {
    font-size: 14px;
  }

  .hero-grid,
  .origin-grid,
  .field-grid,
  .page-title-block,
  .page-head,
  .page-hero,
  .rules-layout,
  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-primary h1 {
    font-size: 34px;
  }

  .prepare-list,
  .step-list,
  .task-card-list,
  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .info-cell:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .volume-grid,
  .detail-columns,
  .boundary-grid,
  .scene-columns,
  .boundary-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-columns,
  .pace-grid,
  .change-type-grid,
  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-col:last-child,
  .pace-item:last-child,
  .change-type-card:last-child,
  .path-step:last-child {
    grid-column: 1 / -1;
  }

  .volume-row {
    grid-template-columns: 56px minmax(120px, 180px) minmax(0, 1fr);
  }

  .volume-row .volume-channels {
    grid-column: 2 / -1;
  }

  .volume-detail {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 18px;
  }

  body {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 14px var(--pad);
    gap: 0;
  }

  .brand-block {
    flex: 1 1 auto;
  }

  .brand-mark {
    font-size: 20px;
  }

  .brand-sub {
    font-size: 11.5px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 1 100%;
    margin-left: 0;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px dashed var(--line);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-item > a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    min-height: 44px;
  }

  .nav-item > a::after {
    display: none;
  }

  .nav-item.is-current > a {
    color: var(--pine);
  }

  .has-sub > a {
    padding-right: 44px;
  }

  .sub-toggle {
    right: 0;
    top: 6px;
    transform: none;
    width: 44px;
    height: 44px;
    border-left: 1px solid var(--line);
  }

  .sub-toggle::before {
    width: 7px;
    height: 7px;
  }

  .sub-list {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    margin-top: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .has-sub.is-open .sub-list {
    display: block;
  }

  .has-sub:hover .sub-list,
  .has-sub:focus-within .sub-list {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .sub-list li a {
    display: block;
    padding: 10px 4px;
    font-size: 14px;
    min-height: 44px;
  }

  .home-main,
  .inner-main {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .inner-main {
    padding-bottom: 48px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12.5px;
  }

  .page-header {
    padding: 14px 0 18px;
    margin-bottom: 26px;
  }

  .page-title {
    font-size: 24px;
  }

  .hero-focus {
    padding: 22px 0 30px;
  }

  .hero-primary h1 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
    min-height: 46px;
  }

  .hero-fields {
    padding: 18px;
  }

  .field-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .info-strip {
    padding: 20px 0;
  }

  .info-cell {
    padding: 0 14px;
  }

  .origin-section,
  .channel-preview,
  .field-section,
  .volume-preview,
  .prepare-section,
  .boundary-section,
  .ledger-preview,
  .task-summary {
    padding: 34px 0;
  }

  .section-head h2,
  .origin-text h2,
  .field-table-wrap h2,
  .boundary-section > h2,
  .task-summary h2,
  .channel-table h2,
  .channel-detail h2,
  .channel-map h2,
  .task-index h2,
  .feedback-fields h2,
  .task-faq h2,
  .ledger-section h2,
  .change-types h2,
  .review-path h2 {
    font-size: 20px;
  }

  .entry-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .entry-compact {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px 2px;
  }

  .entry-compact-range {
    grid-column: 2 / -1;
  }

  .volume-grid,
  .prepare-list,
  .step-list,
  .task-card-list,
  .related-links,
  .detail-columns,
  .boundary-grid,
  .boundary-layout,
  .scene-columns,
  .device-columns,
  .pace-grid,
  .change-type-grid,
  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-col:last-child,
  .pace-item:last-child,
  .change-type-card:last-child,
  .path-step:last-child {
    grid-column: auto;
  }

  .channel-row-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-row-compact {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px 2px;
  }

  .channel-row-compact .channel-scope {
    grid-column: 2 / -1;
  }

  .volume-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .volume-row .volume-channels {
    grid-column: 2 / -1;
  }

  .volume-row .volume-note {
    grid-column: 2 / -1;
  }

  .volume-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .meta-row,
  .page-meta-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 34px var(--pad) 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding: 14px var(--pad) 22px;
  }

  .error-main {
    padding: 40px var(--pad) 56px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-primary h1 {
    font-size: 23px;
  }

  .info-strip-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .info-cell {
    border-left: 0;
    padding: 0;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 12px;
  }

  .info-cell:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .field-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .entry-compact,
  .channel-row-compact,
  .volume-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-compact-range,
  .channel-row-compact .channel-scope,
  .volume-row .volume-channels,
  .volume-row .volume-note {
    grid-column: auto;
  }

  .task-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .example-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .meta-row,
  .page-meta-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .table-wrap {
    margin-left: -2px;
    margin-right: -2px;
  }

  .field-table th,
  .field-table td,
  .ledger-table th,
  .ledger-table td,
  .channel-map-table th,
  .channel-map-table td {
    padding: 9px 10px;
    font-size: 13.5px;
  }
}
