/* ==========================================================================
   天美传媒一区 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.site-body {
  margin: 0;
  background-color: #f5f0e4;
  color: #232826;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  min-width: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  color: #163a34;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #163a34;
  text-decoration: underline;
  text-decoration-color: #a66a3f;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
  color: #a66a3f;
  text-decoration-color: #a66a3f;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 14px;
  line-height: 1.6;
  color: #6f8587;
  margin-top: 8px;
}

.mono {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: #163a34;
  color: #f5f0e4;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #f5f0e4;
}

.section-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-lead,
.section-desc,
.section-note {
  color: #4a534f;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.section-desc,
.section-note {
  color: #6f8587;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   layout · 页头 / 导航 / 主容器 / 页脚
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #163a34;
  color: #f5f0e4;
  border-bottom: 1px solid #2a4f48;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: #f5f0e4;
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  color: #f5f0e4;
}

.brand-name {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  font-size: 12px;
  line-height: 1.4;
  color: #b9c6c2;
}

.site-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: #e4ded0;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #f5f0e4;
  background-color: rgba(245, 240, 228, 0.1);
  text-decoration: none;
}

.nav-link.is-current {
  color: #f5f0e4;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #a66a3f;
}

.nav-sub-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background-color: #f5f0e4;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(22, 58, 52, 0.16);
  display: none;
  z-index: 35;
}

.nav-has-sub.is-open .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #232826;
  text-decoration: none;
  border-radius: 4px;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background-color: #ddd3c0;
  color: #163a34;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid rgba(245, 240, 228, 0.35);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #f5f0e4;
}

.site-main {
  display: block;
  min-width: 0;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #6f8587;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #163a34;
}

.breadcrumb-sep {
  color: #a66a3f;
}

.breadcrumb-current {
  color: #4a534f;
}

.page-header {
  margin-bottom: 8px;
}

.page-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  color: #163a34;
  margin: 0;
}

.inner-main .page-title {
  font-size: clamp(28px, 4vw, 44px);
}

.inner-main > .page-title,
.inner-main > .page-header + .page-title {
  margin-bottom: 12px;
}

.page-title .eyebrow,
.page-title .page-eyebrow {
  display: block;
}

.inner-main .page-title {
  margin-bottom: 0;
}

.inner-main .page-title + .page-title,
.inner-main .page-header + .page-title {
  margin-top: 0;
}

.inner-main section.page-title {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd3c0;
}

.eyebrow,
.page-eyebrow {
  font-size: 13px;
  letter-spacing: 0;
  color: #a66a3f;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #4a534f;
  max-width: 760px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.main-column {
  min-width: 0;
}

.archive-aside,
.feedback-aside {
  min-width: 0;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  padding: 20px;
}

/* 页脚 */

.site-footer {
  background-color: #163a34;
  color: #d9d2c3;
  margin-top: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #2f534c;
  font-size: 14px;
}

.context-label {
  color: #f5f0e4;
  font-weight: 600;
}

.context-desc {
  color: #b9c6c2;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-title {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #f5f0e4;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 14px;
  line-height: 1.6;
  color: #c8d2ce;
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #f5f0e4;
  text-decoration: underline;
  text-decoration-color: #a66a3f;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #2f534c;
  font-size: 13px;
  color: #9fb0ac;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   components · 通用按钮 / 链接 / 卡片
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: #163a34;
  color: #f5f0e4;
  border-color: #163a34;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #a66a3f;
  border-color: #a66a3f;
  color: #f5f0e4;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: #163a34;
  border-color: #163a34;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: #163a34;
  color: #f5f0e4;
  text-decoration: none;
}

.btn-outline {
  background-color: #f5f0e4;
  color: #163a34;
  border-color: #a66a3f;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: #a66a3f;
  color: #f5f0e4;
}

.text-link {
  color: #163a34;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: #a66a3f;
}

.text-link:hover,
.text-link:focus-visible {
  color: #a66a3f;
}

/* 表格通用 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  background-color: #fbf8ef;
}

.index-table,
.mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  min-width: 640px;
}

.index-table th,
.mapping-table th {
  background-color: #ddd3c0;
  color: #163a34;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.index-table td,
.mapping-table td {
  padding: 14px;
  border-top: 1px solid #e4dccb;
  color: #232826;
  vertical-align: top;
}

.index-table tbody tr:hover,
.mapping-table tbody tr:hover {
  background-color: #f5f0e4;
}

.mapping-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  color: #6f8587;
}

/* 问答折叠 */

.faq-item {
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  background-color: #fbf8ef;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 48px 16px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #163a34;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: #a66a3f;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: #f5f0e4;
}

.faq-item .faq-answer,
.faq-item > p {
  padding: 0 18px 18px;
  color: #3d4643;
  font-size: 15px;
  line-height: 1.8;
}

.faq-item .faq-answer p {
  margin: 0 0 10px;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* 图注与媒体 */

.media-figure,
.hero-figure,
.feed-thumb,
.shelf-figure,
.archive-cover,
.prepare-figure,
.identify-figure,
.topic-thumb {
  overflow: hidden;
  border-radius: 6px;
  background-color: #ddd3c0;
}

.media-figure img,
.hero-figure img,
.feed-thumb img,
.shelf-figure img,
.archive-cover img,
.prepare-figure img,
.identify-figure img,
.topic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.home-main > section {
  margin-bottom: 56px;
}

.home-main > section:last-child {
  margin-bottom: 0;
}

/* 首屏工具栏 */

.hero-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid #ddd3c0;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: #3d4643;
  max-width: 620px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-index {
  min-width: 0;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  padding: 16px;
}

.hero-figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.index-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas:
    "label desc"
    "label link";
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid #ddd3c0;
}

.index-item:first-child {
  border-top: 0;
}

.index-label {
  grid-area: label;
  font-size: 13px;
  font-weight: 600;
  color: #a66a3f;
  line-height: 1.5;
  padding-top: 2px;
}

.index-desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.6;
  color: #3d4643;
}

.index-item a {
  grid-area: link;
  justify-self: start;
  font-size: 14px;
  color: #163a34;
}

/* 双轨总览 */

.dual-track-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.profile-column,
.feed-column {
  min-width: 0;
}

.profile-column h3,
.feed-column h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.profile-column > p {
  font-size: 15px;
  line-height: 1.8;
  color: #3d4643;
  margin-bottom: 16px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.principle-list li {
  font-size: 15px;
  line-height: 1.75;
  color: #3d4643;
  padding-left: 16px;
  position: relative;
}

.principle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #a66a3f;
  border-radius: 1px;
}

.principle-list strong {
  color: #163a34;
}

.boundary-note {
  font-size: 14px;
  line-height: 1.7;
  color: #6f8587;
  padding: 12px 14px;
  background-color: #efe8d8;
  border-left: 3px solid #a66a3f;
  border-radius: 0 4px 4px 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #ddd3c0;
}

.feed-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feed-item.feed-log {
  grid-template-columns: minmax(0, 1fr);
}

.feed-thumb {
  aspect-ratio: 4 / 3;
  margin: 0;
  align-self: start;
}

.feed-body {
  min-width: 0;
}

.feed-meta {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  color: #a66a3f;
  margin-bottom: 4px;
}

.feed-body h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feed-body > p {
  font-size: 14px;
  line-height: 1.75;
  color: #4a534f;
  margin-bottom: 8px;
}

.feed-body a {
  font-size: 14px;
}

/* 频道排架速览 */

.board-table {
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fbf8ef;
}

.board-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) 96px;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #e4dccb;
}

.board-row:first-child {
  border-top: 0;
}

.board-head {
  background-color: #ddd3c0;
  color: #163a34;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
}

.board-row:not(.board-head):hover {
  background-color: #f5f0e4;
}

.cell {
  min-width: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #3d4643;
  overflow-wrap: break-word;
  word-break: break-word;
}

.board-head .cell {
  font-size: 14px;
  color: #163a34;
}

.cell-no {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  color: #a66a3f;
  font-weight: 600;
}

.cell-name {
  font-weight: 600;
  color: #163a34;
}

.cell-link a {
  font-size: 14px;
  white-space: nowrap;
}

.board-foot {
  margin-top: 14px;
  font-size: 14px;
  color: #6f8587;
}

.board-foot a {
  color: #163a34;
}

/* 阅览路径预览 */

.step-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-cell {
  min-width: 0;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-top: 3px solid #a66a3f;
  border-radius: 6px;
  padding: 16px;
}

.step-cell h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.step-cell p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a534f;
  margin-bottom: 6px;
}

.step-cell .step-input {
  color: #163a34;
}

.step-cell .step-input::before {
  content: "输入 · ";
  color: #a66a3f;
  font-weight: 600;
}

.step-cell .step-process::before {
  content: "过程 · ";
  color: #6f8587;
  font-weight: 600;
}

.step-cell .step-result::before {
  content: "结果 · ";
  color: #6f8587;
  font-weight: 600;
}

.path-foot {
  margin-top: 16px;
  font-size: 14px;
}

/* 入口核对摘要 */

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.check-column {
  min-width: 0;
  padding: 18px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.check-column h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.check-column p {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4643;
  margin-bottom: 10px;
}

.check-column a {
  font-size: 14px;
}

/* 编目批次摘录 */

.batch-log .batch-group {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #ddd3c0;
}

.batch-log .batch-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.batch-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.batch-code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  color: #a66a3f;
}

.batch-state,
.batch-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 8px;
  color: #163a34;
  background-color: #ddd3c0;
  border-radius: 3px;
}

.batch-records {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.batch-records li {
  min-width: 0;
}

.batch-records h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.batch-records p {
  font-size: 14px;
  line-height: 1.75;
  color: #4a534f;
}

/* 整理问答与进度入口 */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rules-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  background-color: #fbf8ef;
}

.rules-column h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.rules-column p {
  font-size: 15px;
  line-height: 1.8;
  color: #3d4643;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* 常见问题预览 */

.faq-list {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   pages · 频道排架
   -------------------------------------------------------------------------- */

.page-channel-index .shelf-number,
.page-channel-index .channel-table,
.page-channel-index .genre-groups,
.page-channel-index .topic-mapping,
.page-channel-index .related-entry {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.shelf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 32px;
  align-items: start;
}

.shelf-rules {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  min-width: 0;
  padding: 16px 18px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-left: 3px solid #a66a3f;
  border-radius: 0 6px 6px 0;
}

.rule-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.rule-body {
  font-size: 15px;
  line-height: 1.8;
  color: #3d4643;
  margin-bottom: 8px;
}

.rule-sample {
  font-size: 14px;
  line-height: 1.7;
  color: #6f8587;
}

.rule-sample .mono {
  color: #a66a3f;
  font-weight: 600;
}

.shelf-figure {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.shelf-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.shelf-figure figcaption {
  margin-top: 10px;
}

.genre-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.genre-column {
  min-width: 0;
}

.genre-title {
  font-size: 18px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid #a66a3f;
}

.genre-list {
  display: flex;
  flex-direction: column;
}

.genre-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    "no name"
    "no note";
  gap: 2px 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e4dccb;
  min-width: 0;
}

.genre-no {
  grid-area: no;
  font-size: 14px;
  font-weight: 600;
  color: #a66a3f;
  line-height: 1.6;
  padding-top: 2px;
}

.genre-name {
  grid-area: name;
  font-size: 16px;
  font-weight: 600;
  color: #163a34;
  line-height: 1.5;
}

.genre-note {
  grid-area: note;
  font-size: 14px;
  line-height: 1.7;
  color: #4a534f;
}

.related-entry h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-list li {
  min-width: 0;
  padding: 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.related-list a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.related-note {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: #6f8587;
}

/* --------------------------------------------------------------------------
   pages · 主题辑录
   -------------------------------------------------------------------------- */

.page-topic-archive .layout-main > section {
  margin-bottom: 44px;
}

.archive-intro h2,
.topic-list h2,
.channel-mapping h2,
.read-order h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.archive-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 28px;
  align-items: start;
}

.archive-intro-text {
  min-width: 0;
}

.archive-intro-text > p {
  font-size: 15px;
  line-height: 1.85;
  color: #3d4643;
  margin-bottom: 14px;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rule-list li {
  font-size: 15px;
  line-height: 1.75;
  color: #3d4643;
  padding-left: 16px;
  position: relative;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #a66a3f;
  border-radius: 1px;
}

.rule-tag {
  display: inline-block;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  color: #a66a3f;
  margin-right: 6px;
}

.archive-cover {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.archive-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.archive-cover figcaption {
  margin-top: 8px;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
}

.page-topic-archive .batch-group {
  margin-bottom: 28px;
}

.batch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ddd3c0;
}

.batch-desc {
  font-size: 14px;
  color: #6f8587;
}

.page-topic-archive .batch-records {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.topic-thumb {
  aspect-ratio: 4 / 3;
  margin: 0;
  align-self: start;
}

.topic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-body {
  min-width: 0;
}

.topic-code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  color: #a66a3f;
  margin-bottom: 4px;
}

.topic-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.topic-summary {
  font-size: 14px;
  line-height: 1.75;
  color: #4a534f;
  margin-bottom: 8px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.topic-tags span {
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 8px;
  color: #163a34;
  background-color: #ddd3c0;
  border-radius: 3px;
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num body"
    "num link";
  gap: 4px 16px;
  min-width: 0;
  padding: 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.order-step .step-num {
  grid-area: num;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: #a66a3f;
  line-height: 1.3;
}

.order-step h3 {
  grid-area: title;
  font-size: 17px;
  margin-bottom: 2px;
}

.order-step p {
  grid-area: body;
  font-size: 15px;
  line-height: 1.75;
  color: #3d4643;
}

.order-step a {
  grid-area: link;
  justify-self: start;
  font-size: 14px;
}

.archive-aside h2,
.feedback-aside h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.aside-index {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.aside-index a {
  font-size: 15px;
  line-height: 1.6;
}

.aside-note {
  padding-top: 12px;
  border-top: 1px solid #ddd3c0;
}

.aside-note h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.aside-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a534f;
}

/* --------------------------------------------------------------------------
   pages · 阅览路径
   -------------------------------------------------------------------------- */

.page-viewing-path .prepare-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.prepare-copy {
  min-width: 0;
}

.prepare-copy h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.prepare-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.prepare-label {
  font-size: 14px;
  font-weight: 600;
  color: #a66a3f;
  line-height: 1.6;
}

.prepare-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4643;
}

.prepare-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.prepare-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.prepare-figure figcaption {
  margin-top: 8px;
}

.page-viewing-path .step-flow {
  margin-bottom: 48px;
}

.page-viewing-path .step-flow > h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.page-viewing-path .step-flow > .section-desc {
  margin-bottom: 24px;
}

.step-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  padding: 20px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  margin-bottom: 16px;
}

.step-head {
  min-width: 0;
}

.page-viewing-path .step-no {
  display: inline-block;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: #f5f0e4;
  background-color: #163a34;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.step-head h3 {
  font-size: 18px;
  line-height: 1.4;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.step-grid .step-cell {
  background-color: #f5f0e4;
  border: 1px solid #e4dccb;
  border-top-width: 2px;
  border-radius: 4px;
  padding: 12px;
}

.step-grid .cell-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #a66a3f;
  margin-bottom: 4px;
}

.step-grid .step-cell p {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4643;
  margin: 0;
}

.page-viewing-path .exception-note {
  margin-bottom: 48px;
}

.page-viewing-path .exception-note > h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.exception-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.exception-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 200px);
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-left: 3px solid #a66a3f;
  border-radius: 0 6px 6px 0;
}

.exception-label {
  font-size: 14px;
  font-weight: 600;
  color: #163a34;
  line-height: 1.6;
}

.exception-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4643;
}

.exception-action {
  font-size: 14px;
  line-height: 1.7;
}

.next-entry > h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.entry-item {
  min-width: 0;
  padding: 16px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.entry-item a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-desc {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: #6f8587;
}

/* --------------------------------------------------------------------------
   pages · 入口识别
   -------------------------------------------------------------------------- */

.page-entry-identify .main-column > section {
  margin-bottom: 44px;
}

.identify-list > h2,
.example-compare > h2,
.exception-order > h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.identify-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.identify-items {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: identify;
}

.identify-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  min-width: 0;
  padding: 14px 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  counter-increment: identify;
}

.identify-no {
  grid-row: span 2;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #a66a3f;
  line-height: 1.3;
}

.identify-no::before {
  content: counter(identify, decimal-leading-zero);
}

.identify-text {
  font-size: 15px;
  line-height: 1.75;
  color: #3d4643;
  min-width: 0;
}

.identify-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.identify-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.identify-figure figcaption {
  margin-top: 8px;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.compare-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
  background-color: #fbf8ef;
}

.compare-column h3 {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd3c0;
}

.compare-match h3 {
  border-bottom-color: #163a34;
}

.compare-mismatch h3 {
  border-bottom-color: #a66a3f;
}

.compare-item {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid #e4dccb;
}

.compare-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.compare-scene {
  font-size: 14px;
  line-height: 1.75;
  color: #4a534f;
  margin-bottom: 6px;
}

.compare-verdict {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
  color: #163a34;
  margin-bottom: 4px;
}

.compare-next {
  font-size: 14px;
  line-height: 1.7;
  color: #6f8587;
}

.exception-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.exception-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "no title"
    "no body";
  gap: 2px 14px;
  min-width: 0;
  padding: 14px 16px;
  background-color: #fbf8ef;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.exception-step .exception-no {
  grid-area: no;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #a66a3f;
  line-height: 1.3;
}

.exception-step h3 {
  grid-area: title;
  font-size: 17px;
  margin-bottom: 2px;
}

.exception-step p {
  grid-area: body;
  font-size: 15px;
  line-height: 1.75;
  color: #3d4643;
}

.aside-lead {
  font-size: 14px;
  line-height: 1.75;
  color: #4a534f;
  margin-bottom: 14px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.aside-links li {
  min-width: 0;
}

.aside-links a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 2px;
}

.aside-note {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: #6f8587;
}

.aside-tip {
  font-size: 13px;
  line-height: 1.7;
  color: #6f8587;
  padding-top: 12px;
  border-top: 1px solid #ddd3c0;
}

/* --------------------------------------------------------------------------
   pages · 整理问答
   -------------------------------------------------------------------------- */

.page-editorial-faq .inner-main > section {
  margin-bottom: 44px;
}

.faq-index-section h2,
.catalog-card h2,
.faq-group h2,
.related-entry h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.catalog-card h2,
.faq-group h2 {
  font-size: 22px;
}

.faq-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 16px;
}

.faq-index-item {
  min-width: 0;
}

.faq-index-item a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid #e4dccb;
  border-radius: 4px;
}

.faq-index-item a:hover,
.faq-index-item a:focus-visible {
  background-color: #efe8d8;
  text-decoration: none;
}

.faq-no {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 13px;
  color: #a66a3f;
  font-weight: 600;
}

.faq-topic {
  min-width: 0;
  color: #163a34;
}

.faq-group {
  display: block;
}

.faq-group .faq-group {
  display: block;
}

.faq-index-item .faq-group {
  font-size: 12px;
  color: #6f8587;
  white-space: nowrap;
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 20px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.catalog-figure {
  min-width: 0;
}

.catalog-figure .media-figure {
  margin: 0;
}

.catalog-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.catalog-notes {
  min-width: 0;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.note-item {
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid #a66a3f;
}

.note-item h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.note-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #3d4643;
}

.progress-group {
  padding: 20px;
  background-color: #efe8d8;
  border: 1px solid #ddd3c0;
  border-radius: 6px;
}

.progress-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ddd3c0;
}

.progress-status {
  font-size: 14px;
  line-height: 1.6;
  color: #4a534f;
  min-height: 22px;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  max-width: 640px;
}

.error-code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #a66a3f;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #3d4643;
  margin-bottom: 20px;
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.error-list li {
  font-size: 15px;
  line-height: 1.75;
  color: #4a534f;
  padding-left: 16px;
  position: relative;
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #a66a3f;
  border-radius: 1px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #163a34;
    border-top: 1px solid #2f534c;
    padding: 8px 16px 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid #2f534c;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 16px;
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 #a66a3f;
    padding-left: 12px;
  }

  .nav-sub {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    background-color: #1d443d;
    border: 0;
    border-radius: 0;
    padding: 4px 0 8px;
  }

  .nav-has-sub.is-open .nav-sub {
    display: block;
  }

  .nav-sub a {
    color: #e4ded0;
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-sub a:hover,
  .nav-sub a:focus-visible {
    background-color: #2f534c;
    color: #f5f0e4;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .home-main {
    padding: 24px 16px 48px;
  }

  .home-main > section {
    margin-bottom: 44px;
  }

  .hero-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-index {
    max-width: 520px;
  }

  .dual-track-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .step-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .batch-log .batch-group {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
  }

  .page-layout,
  .layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .shelf-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .shelf-figure {
    max-width: 480px;
  }

  .genre-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .archive-cover {
    max-width: 420px;
  }

  .page-viewing-path .prepare-check {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .prepare-figure {
    max-width: 480px;
  }

  .step-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exception-item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .exception-item .exception-action {
    grid-column: 2;
  }

  .identify-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .identify-figure {
    max-width: 480px;
  }

  .compare-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .faq-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .catalog-figure {
    max-width: 420px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .site-error .error-main {
    padding: 48px 16px 64px;
  }
}

@media (max-width: 640px) {
  .site-body {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .index-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "desc"
      "link";
    gap: 2px;
    padding: 10px 0;
  }

  .index-label {
    padding-top: 0;
  }

  .dual-track .section-title,
  .channel-board .section-title,
  .path-preview .section-title,
  .entry-check .section-title,
  .batch-log .section-title,
  .rules-return .section-title,
  .faq-preview .section-title {
    font-size: 21px;
  }

  .feed-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .feed-thumb {
    max-width: 220px;
  }

  /* 频道排架速览：手机端每行转为两行信息块，取消多列网格 */
  .board-table {
    border: 0;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .board-head {
    display: none;
  }

  .board-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "no link"
      "name name"
      "focus focus"
      "topic topic";
    gap: 4px 12px;
    padding: 14px;
    margin-bottom: 10px;
    background-color: #fbf8ef;
    border: 1px solid #ddd3c0;
    border-radius: 6px;
  }

  .board-row:not(.board-head):hover {
    background-color: #fbf8ef;
  }

  .board-row .cell-no {
    grid-area: no;
    font-size: 14px;
  }

  .board-row .cell-name {
    grid-area: name;
    font-size: 16px;
  }

  .board-row .cell-focus {
    grid-area: focus;
  }

  .board-row .cell-topic {
    grid-area: topic;
    color: #6f8587;
    font-size: 14px;
  }

  .board-row .cell-link {
    grid-area: link;
    justify-self: end;
  }

  .board-row .cell-focus::before {
    content: "侧重 · ";
    color: #a66a3f;
    font-size: 13px;
  }

  .board-row .cell-topic::before {
    content: "关联 · ";
    color: #a66a3f;
    font-size: 13px;
  }

  .step-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rules-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .batch-log .batch-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .batch-side {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .topic-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .topic-thumb {
    max-width: 220px;
  }

  .order-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 2px 12px;
  }

  .order-step .step-num {
    font-size: 18px;
  }

  .prepare-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .exception-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .exception-item .exception-action {
    grid-column: auto;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .identify-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .identify-no {
    font-size: 17px;
  }

  .exception-step {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .exception-step .exception-no {
    font-size: 17px;
  }

  .faq-index-item a {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "no topic"
      "no group";
    gap: 0 8px;
    padding: 10px 8px;
  }

  .faq-index-item .faq-no {
    grid-area: no;
    align-self: start;
    padding-top: 2px;
  }

  .faq-index-item .faq-topic {
    grid-area: topic;
  }

  .faq-index-item .faq-group {
    grid-area: group;
  }

  .progress-control {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .progress-control .btn {
    width: 100%;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-context {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
