/* ==========================================================================
   榴莲下载 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base：变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f1e7;
  --paper-deep: #efe6d6;
  --ink: #24483a;
  --ink-soft: #3c5a4c;
  --copper: #a56a32;
  --line: #d9d0c2;
  --text: #2b2e2a;
  --text-soft: #5a5f57;
  --white: #fffdf8;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --shell: 1180px;
  --list-shell: 1080px;
  --article: 760px;
  --toc: 280px;
  --gap: 40px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(36, 72, 58, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(217, 208, 194, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 208, 194, 0.34) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: normal;
}

h1 {
  font-size: 40px;
  line-height: 1.3;
}

h2 {
  font-size: 26px;
  line-height: 1.4;
}

h3 {
  font-size: 19px;
  line-height: 1.5;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--copper);
}

a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-top: 8px;
}

strong {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   2. layout：全站骨架（页头、导航、主容器、面包屑、标题区、页脚）
   -------------------------------------------------------------------------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.94);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 148px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
}

.nav-link {
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  background: rgba(165, 106, 50, 0.08);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 面包屑（内页顶部与主内容内各一处） */
.breadcrumb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.inner-main > .breadcrumb {
  padding: 18px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb-item a {
  color: var(--text-soft);
}

.breadcrumb-item a:hover {
  color: var(--copper);
}

.breadcrumb-item.is-current {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区：全站统一 */
.page-header {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  max-width: 900px;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px 28px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

.footer-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  padding: 2px 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--copper);
}

.footer-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.footer-current-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.footer-current-task {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   3. components：跨页复用模块
   -------------------------------------------------------------------------- */

/* 通用按钮与文字链接 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 4px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
}

.btn-text:hover,
.btn-text:focus-visible {
  color: var(--copper);
}

/* 通用区块说明文字 */
.section-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 68ch;
}

.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-note a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* 通用表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(239, 230, 214, 0.5);
}

tbody tr:hover td,
tbody tr:hover th {
  background: rgba(239, 230, 214, 0.55);
}

/* 编号步骤：首页与观看准备页共用基础，作用域在父级 */
.step-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px 18px;
}

/* 相关入口条（首页与频道手册） */
.related-links {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.related-links-item {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.related-links-item:hover,
.related-links-item:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* 右侧本页目录 */
.page-toc {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
}

.toc-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: block;
  color: var(--text-soft);
  padding: 2px 0 2px 26px;
  position: relative;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  color: var(--copper);
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--ink);
}

.toc-back,
.toc-hint,
.toc-link {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

.toc-back a,
.toc-link a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

.toc-next {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.toc-next-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.toc-next-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-next-list a {
  font-size: 13px;
  color: var(--text-soft);
}

.toc-next-list a:hover {
  color: var(--copper);
}

/* 长文通用正文样式 */
.article-body {
  min-width: 0;
  color: var(--text);
}

.article-section,
.content-section,
.field-section,
.preparation-steps,
.entry-check,
.deviation-note,
.faq,
.clue-table {
  margin-bottom: 40px;
}

.article-section > h2,
.content-section > h2,
.field-section > h2,
.preparation-steps > h2,
.entry-check > h2,
.deviation-note > h2,
.faq > h2,
.clue-table > h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.article-body p,
.article-body li {
  max-width: 40em;
}

.article-figure,
.section-figure,
.field-figure,
.preparation-figure,
.channel-figure {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.article-figure img,
.section-figure img,
.field-figure img,
.preparation-figure img,
.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-deep);
}

/* 定义列表（字段、职责） */
.field-definitions,
.legend-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.field-definitions {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0;
}

.field-term {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
}

.field-desc {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

/* 编号流程（更正、合作） */
.process-steps {
  display: grid;
  gap: 14px;
  counter-reset: process;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  padding: 16px 18px 16px 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.4;
}

.process-step h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.process-step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* 列表型说明（规则、备注、边界） */
.rule-list,
.note-list,
.method-list,
.principle-list,
.boundary-list,
.update-list,
.relation-list,
.reader-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li,
.note-item,
.update-item,
.relation-item,
.reader-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.rule-list li strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
}

.update-title,
.relation-title,
.reader-title {
  font-size: 17px;
  margin: 0 0 6px;
}

.note-item h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.note-item p,
.update-item p,
.relation-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.method-list,
.principle-list,
.boundary-list {
  gap: 10px;
}

.method-list li,
.principle-list li,
.boundary-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.8;
}

.method-list li::before,
.principle-list li::before,
.boundary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--copper);
  border-radius: 2px;
  background: rgba(165, 106, 50, 0.16);
}

.method-list li:last-child,
.principle-list li:last-child,
.boundary-list li:last-child {
  border-bottom: 0;
}

/* 相关入口列表（内页底部） */
.related-entry {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-entry h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 15px;
}

.related-list a:hover,
.related-list a:focus-visible {
  color: var(--ink);
  border-color: var(--copper);
}

/* --------------------------------------------------------------------------
   4. pages：首页
   -------------------------------------------------------------------------- */
.home-main {
  padding-bottom: 8px;
}

/* 首屏 */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: 3px;
  padding: 2px 10px;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.32;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-deep);
}

/* 通用区块外壳：首页 */
.manual-contents,
.channel-index,
.entry-samples,
.topic-binding,
.field-legend,
.home-main .preparation-steps {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
  max-width: 760px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* 手册目录 */
.contents-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contents-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contents-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.4;
}

.contents-body {
  min-width: 0;
}

.contents-name {
  font-size: 19px;
  margin: 0 0 4px;
}

.contents-task {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 60ch;
}

.contents-link {
  align-self: center;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
  white-space: nowrap;
}

.contents-link:hover,
.contents-link:focus-visible {
  color: var(--copper);
}

/* 六个频道页签（首页 .channel-index 内） */
.channel-index .channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-tab {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-tab-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
}

.channel-tab-name {
  font-size: 18px;
  margin: 0;
}

.channel-tab-scope {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.channel-tab-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  margin-top: 4px;
}

.channel-tab-link:hover,
.channel-tab-link:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* 条目样本表 */
.sample-table {
  min-width: 760px;
}

/* 专题装订线 */
.binding-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.binding-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px;
}

.binding-figure {
  margin: 0;
}

.binding-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-deep);
}

.binding-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.binding-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
}

.binding-name {
  font-size: 19px;
  margin: 0;
}

.binding-reason,
.binding-order {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.binding-order {
  color: var(--ink-soft);
}

.binding-link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.binding-link:hover,
.binding-link:focus-visible {
  color: var(--copper);
}

/* 字段图例 */
.legend-list {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  margin: 0;
  padding: 0;
}

.legend-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.legend-row dt {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  padding: 12px 16px 12px 0;
}

.legend-row dd {
  margin: 0;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.legend-more {
  margin: 18px 0 0;
  font-size: 14px;
}

.legend-more a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* 观看准备四步（首页） */
.home-main .step-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-main .step-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 4px;
}

.home-main .step-name {
  font-size: 17px;
  margin: 0 0 6px;
}

.home-main .step-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.step-more {
  margin: 20px 0 0;
  font-size: 14px;
}

.step-more a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* --------------------------------------------------------------------------
   5. pages：频道手册
   -------------------------------------------------------------------------- */
.page-head {
  margin-bottom: 28px;
}

.page-label,
.page-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin: 0 0 8px;
}

.page-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 62ch;
  margin: 0;
}

.page-back,
.page-back-link,
.page-backlink,
.page-return {
  margin: 12px 0 0;
  font-size: 14px;
}

.page-back a,
.page-back-link a,
.page-backlink a,
.page-return a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* 频道对照表 */
.channel-table {
  margin-bottom: 40px;
}

.channel-table h2,
.channel-tabs h2,
.merge-rule h2,
.cross-entry h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.channel-table .data-table {
  min-width: 860px;
}

.channel-table .data-table tbody th {
  white-space: nowrap;
}

/* 频道页签与详情：标题、说明、页签条、详情文章纵向排列 */
.channel-tabs {
  margin-bottom: 40px;
}

.channel-tabs .tab-bar {
  margin: 0 0 20px;
}

.channel-tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-tabs .tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--copper);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.channel-tabs .tab-link:hover,
.channel-tabs .tab-link:focus-visible {
  color: var(--ink);
  background: var(--paper-deep);
}

.channel-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.channel-detail h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.channel-detail p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.detail-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--copper);
}

/* 合并规则与交叉入口 */
.merge-rule,
.cross-entry {
  margin-bottom: 40px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry-item h3 {
  font-size: 17px;
  margin: 0;
}

.entry-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  flex: 1 1 auto;
}

.entry-item a {
  align-self: flex-start;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.entry-item a:hover,
.entry-item a:focus-visible {
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   6. pages：专题索引
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: var(--list-shell);
  margin: 0 auto;
}

.section {
  padding: 0 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  margin-bottom: 0;
}

.section-inner {
  min-width: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  margin: 0;
}

.topic-reader .reader-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.reader-num {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.5;
}

.reader-body {
  min-width: 0;
}

.reader-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* 专题装订线列表 */
.topic-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px;
  scroll-margin-top: 20px;
}

.topic-figure {
  margin: 0;
}

.topic-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-deep);
}

.topic-caption {
  margin-top: 8px;
}

.topic-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-index {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--copper);
}

.topic-name {
  font-size: 20px;
  margin: 0;
}

.topic-meta {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
  line-height: 1.75;
}

.topic-meta-term {
  font-weight: 600;
  color: var(--ink);
}

.topic-meta-desc {
  margin: 0;
  color: var(--text-soft);
}

.topic-link {
  margin: 4px 0 0;
  font-size: 14px;
}

.topic-link a {
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.topic-link a:hover,
.topic-link a:focus-visible {
  color: var(--copper);
}

/* 专题与频道对应说明 */
.relation-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.relation-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 更新说明 */
.update-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.update-link {
  margin: 16px 0 0;
  font-size: 14px;
}

.update-link a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* 相关入口 */
.related-section .related-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   7. pages：条目字段 / 观看准备 / 收录与更正 / 手册说明
   -------------------------------------------------------------------------- */
/* 长文两栏：主内容在前，右侧目录在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article)) var(--toc);
  gap: var(--gap);
  align-items: start;
  justify-content: space-between;
}

.page-primary {
  min-width: 0;
}

.page-layout .page-toc {
  position: sticky;
  top: 24px;
}

/* 条目字段 */
.field-article {
  min-width: 0;
}

.field-article .section-title {
  font-size: 26px;
}

.field-article .field-definitions {
  margin-top: 16px;
}

.sample-table {
  margin-top: 14px;
}

.table-caption {
  font-size: 13px;
  color: var(--text-soft);
}

/* 常见误读 */
.misread-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.misread-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.misread-title {
  font-size: 17px;
  margin: 0 0 6px;
}

.misread-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* 字段与频道、专题关系 */
.relation-body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.relation-body a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

.field-article .related-links {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: block;
}

.related-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.field-article .related-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 观看准备 */
.preparation-article {
  min-width: 0;
}

.preparation-steps .step-list {
  counter-reset: prep;
  margin-top: 16px;
}

.preparation-steps .step-item {
  padding: 18px 18px 18px 64px;
  counter-increment: prep;
}

.preparation-steps .step-item::before {
  content: counter(prep, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.4;
}

.preparation-steps .step-title {
  font-size: 17px;
  margin: 0 0 6px;
}

.preparation-steps .step-text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.preparation-steps .step-pass {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  padding: 8px 12px;
  background: var(--paper-deep);
  border-radius: 4px;
}

.preparation-steps .step-next {
  margin: 0;
  font-size: 14px;
}

.preparation-steps .step-next a {
  color: var(--copper);
  border-bottom: 1px solid currentColor;
}

/* 入口核对表 */
.entry-check .check-table {
  min-width: 640px;
}

/* 偏差记录 */
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.note-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.note-col .note-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.note-col .note-list {
  gap: 8px;
}

.note-col .note-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  border: 0;
  background: transparent;
  border-radius: 0;
}

.note-col .note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--copper);
}

.next-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.next-links-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.next-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-links-list a {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.next-links-list a:hover,
.next-links-list a:focus-visible {
  color: var(--copper);
}

/* FAQ 折叠 */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--copper);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--copper);
}

.faq-answer {
  padding: 12px 16px 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

/* 收录与更正 */
.correction-article {
  min-width: 0;
}

.standard-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: standard;
}

.standard-item {
  position: relative;
  padding: 14px 16px 14px 58px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: standard;
}

.standard-item::before {
  content: counter(standard, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.4;
}

.standard-item h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.standard-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}

.clue-table {
  margin-bottom: 40px;
}

.clue-table .table-scroll {
  margin-top: 14px;
}

.clue-table-data {
  min-width: 720px;
}

/* 手册说明 */
.site-article {
  min-width: 0;
}

.roles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
}

.roles-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.roles-item dt {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.roles-item dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.content-section h3 {
  font-size: 17px;
  margin: 20px 0 10px;
}

.content-section .section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   8. pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 32px;
}

.error-code {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.2;
  margin: 0 0 8px;
}

.error-panel h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 0 22px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 26px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
}

.error-side-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
}

.error-side-link:hover,
.error-side-link:focus-visible {
  color: var(--copper);
}

.error-hint {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.error-hint h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.error-hint-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-hint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.error-hint-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--copper);
}

/* --------------------------------------------------------------------------
   9. responsive：960px 与 720px 断点
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    gap: 16px;
  }

  .nav-list {
    gap: 4px 12px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero {
    gap: 32px;
    padding: 32px 24px 40px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-layout .page-toc {
    position: static;
  }

  .channel-index .channel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-list,
  .relation-list,
  .related-section .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .binding-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    background-size: 24px 24px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 17px;
  }

  /* 页头与移动导航 */
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav-list {
    padding: 8px 12px 14px;
  }

  /* 主容器 */
  .inner-main {
    padding: 0 16px 44px;
  }

  .breadcrumb-inner {
    padding: 12px 16px 0;
  }

  .page-header {
    padding: 2px 0 16px;
    margin-bottom: 22px;
  }

  .page-title {
    font-size: 28px;
    line-height: 1.32;
  }

  /* 首页 */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 16px 32px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px 16px;
  }

  .hero-figure {
    order: 2;
  }

  .manual-contents,
  .channel-index,
  .entry-samples,
  .topic-binding,
  .field-legend,
  .home-main .preparation-steps {
    padding: 28px 16px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .contents-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .contents-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .contents-num {
    font-size: 19px;
  }

  .channel-index .channel-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .channel-tab {
    padding: 14px 12px 12px;
  }

  .channel-tab-name {
    font-size: 16px;
  }

  .channel-tab-scope {
    font-size: 13px;
  }

  .binding-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .binding-figure img {
    aspect-ratio: 16 / 9;
  }

  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }

  .legend-row dt {
    padding: 0;
  }

  .legend-row dd {
    padding: 0;
  }

  .home-main .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 28px 16px 22px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-current {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 14px 16px 20px;
  }

  /* 内页通用 */
  .page-head {
    margin-bottom: 22px;
  }

  .page-lead {
    font-size: 15px;
  }

  .section {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  .article-section,
  .content-section,
  .field-section,
  .preparation-steps,
  .entry-check,
  .deviation-note,
  .faq,
  .clue-table {
    margin-bottom: 32px;
  }

  .article-body p,
  .article-body li {
    max-width: none;
  }

  /* 表格横向滚动，不撑破页面 */
  .table-scroll {
    border-radius: 4px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 12px;
  }

  /* 频道手册 */
  .channel-table .data-table {
    min-width: 720px;
  }

  .channel-tabs .tab-list {
    gap: 6px;
  }

  .channel-tabs .tab-link {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .channel-detail {
    padding: 14px 14px;
  }

  .entry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 专题索引 */
  .topic-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .topic-figure img {
    aspect-ratio: 16 / 9;
  }

  .topic-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .topic-meta-term {
    margin-top: 6px;
  }

  .relation-list,
  .update-list,
  .related-section .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-reader .reader-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  /* 条目字段 */
  .field-definitions {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-term {
    padding: 12px 0 2px;
    border-bottom: 0;
  }

  .field-desc {
    padding: 0 0 12px;
  }

  .field-article .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 观看准备 */
  .note-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preparation-steps .step-item {
    padding: 16px 14px 16px 54px;
  }

  .preparation-steps .step-item::before {
    left: 14px;
    top: 16px;
    font-size: 18px;
  }

  .entry-check .check-table {
    min-width: 560px;
  }

  /* 收录与更正 */
  .standard-item {
    padding: 14px 14px 14px 52px;
  }

  .standard-item::before {
    left: 14px;
  }

  .clue-table-data {
    min-width: 640px;
  }

  /* 手册说明 */
  .roles-list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 右侧目录：移动端回到正文之后 */
  .page-layout {
    gap: 28px;
  }

  .page-toc {
    padding: 16px;
  }

  .toc-list a {
    min-height: 32px;
  }

  /* 相关入口条 */
  .related-links {
    padding: 20px 16px 4px;
    gap: 8px 16px;
  }

  .related-links-item {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  /* 404 */
  .error-main {
    padding: 36px 16px 48px;
  }

  .error-panel {
    padding: 22px 18px;
  }

  .error-code {
    font-size: 40px;
  }

  .error-panel h1 {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .channel-index .channel-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-text {
    width: 100%;
    justify-content: center;
  }
}
