/* ==========================================================================
   糖心国产传媒 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f6f5f1;
  --ink: #23262b;
  --ink-soft: #5b6169;
  --line: #e1dfd8;
  --line-strong: #cfccc2;
  --panel: #eeede7;
  --link: #4f6a85;
  --link-hover: #3d546b;
  --tone-blue: #6b8299;
  --tone-green: #7d927f;
  --tone-orange: #b08a68;
  --tone-purple: #8b7f9e;
  --tone-red: #a97b7b;
  --tone-cyan: #7e9497;
  --tone-teal: #7e9497;
  --warn-update: #8a6f4a;
  --warn-errata: #9c6a63;
  --note-bg: #eef3f4;
  --radius: 4px;
  --radius-lg: 6px;
  --wrap: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  text-align: left;
  color: var(--ink-soft);
  font-size: 13px;
  padding-bottom: 8px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background-color: var(--panel);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--line-strong);
}

tbody th {
  font-weight: 600;
  color: var(--ink);
  background-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 18px;
  background-color: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 12px;
}

.brand {
  flex: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

.brand-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 12px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.nav-link {
  display: inline-block;
  padding: 8px 0 9px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--tone-blue);
}

.site-main {
  display: block;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  padding-top: 18px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding: 14px 0 4px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--link-hover);
}

.breadcrumb-sep {
  color: var(--line-strong);
  font-family: var(--font-mono);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 6px 0 0;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0;
}

.page-head {
  padding: 14px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}

.page-lead {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.meta-label {
  color: var(--ink-soft);
}

.meta-value {
  color: var(--ink);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.main-col,
.page-primary {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   components · 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #3a3f46;
  border-color: #3a3f46;
  color: #fff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  border-bottom: 1px solid transparent;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-head p {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.section-more {
  margin-top: 22px;
  font-size: 14px;
}

/* 内页通用 section 标题 */
.section-block,
.section,
.channel-section,
.tone-rules,
.channel-cross,
.channel-path,
.collections-list,
.editorial-basis,
.series-nav,
.channel-map,
.glossary-core,
.glossary-retired,
.glossary-map,
.glossary-ask,
.update-types,
.errata-order,
.record-style,
.submit-note,
.entry-check,
.not-applicable,
.faq-block {
  margin-bottom: 46px;
}

.section-block > h2,
.section > h2,
.channel-section > h2,
.tone-rules > h2,
.channel-cross > h2,
.channel-path > h2,
.collections-list > h2,
.editorial-basis > h2,
.series-nav > h2,
.channel-map > h2,
.glossary-core > h2,
.glossary-retired > h2,
.glossary-map > h2,
.glossary-ask > h2,
.update-types > h2,
.errata-order > h2,
.record-style > h2,
.submit-note > h2,
.entry-check > h2,
.not-applicable > h2,
.faq-block > h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-lead,
.section-note,
.section-intro {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* 步骤条 */
.step-list {
  counter-reset: step;
}

.step-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* 图注 */
figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* 表格外框 */
.field-table,
.cross-table,
.map-table,
.glossary-table,
.glossary-map-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 记录行 */
.record-list {
  border-top: 1px solid var(--line-strong);
}

.record-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
}

.record-cell {
  min-width: 0;
}

.record-type {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warn-update);
}

.record-field {
  color: var(--ink);
}

.record-result {
  color: var(--ink-soft);
}

/* 侧栏 */
.page-aside,
.side-col {
  min-width: 0;
}

.aside-block {
  padding: 18px 20px;
  margin-bottom: 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-block h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.aside-block p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside-block ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-block li a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--link);
}

.aside-block li a:hover,
.aside-block li a:focus-visible {
  color: var(--link-hover);
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 18px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.related-links-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

/* 问答折叠 */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 34px 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.faq-item p a {
  color: var(--link);
}

/* 页脚 */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
  background-color: var(--panel);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 34px;
}

.footer-col h2 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-col p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer-col li a:hover,
.footer-col li a:focus-visible {
  color: var(--link-hover);
}

.footer-note {
  border-top: 1px solid var(--line);
}

.footer-note p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 10px;
  padding-bottom: 64px;
}

/* 首屏门户条 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 26px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--tone-blue);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.hero-copy h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 480px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-frame {
  min-width: 0;
}

.hero-frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
}

/* 频道目录墙 */
.channel-wall {
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.channel-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.channel-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.channel-tile .tone {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--tone-blue);
}

.tone-blue {
  --tone: var(--tone-blue);
}

.tone-green {
  --tone: var(--tone-green);
}

.tone-orange {
  --tone: var(--tone-orange);
}

.tone-purple {
  --tone: var(--tone-purple);
}

.tone-red {
  --tone: var(--tone-red);
}

.tone-cyan,
.tone-teal {
  --tone: var(--tone-cyan);
}

.channel-tile .tone.tone-green {
  background-color: var(--tone-green);
}

.channel-tile .tone.tone-orange {
  background-color: var(--tone-orange);
}

.channel-tile .tone.tone-purple {
  background-color: var(--tone-purple);
}

.channel-tile .tone.tone-red {
  background-color: var(--tone-red);
}

.channel-tile .tone.tone-cyan,
.channel-tile .tone.tone-teal {
  background-color: var(--tone-cyan);
}

.channel-tile h3 {
  font-size: 17px;
}

.channel-tile p {
  flex: 1 1 auto;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.channel-tile .tile-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
}

.channel-tile .tile-link + .tile-link {
  margin-top: 2px;
}

.channel-tile .tile-link:hover,
.channel-tile .tile-link:focus-visible {
  color: var(--link-hover);
}

/* 专题精选 */
.featured-collections {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 170px;
  gap: 26px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.feature-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.feature-figure {
  min-width: 0;
}

.feature-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
}

.feature-copy {
  min-width: 0;
}

.feature-copy h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding-top: 2px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.meta dt {
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

.meta dd {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 条目字段速览 */
.field-glance {
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.table-note {
  padding: 18px 20px;
  background-color: var(--note-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-note h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.table-note p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 观看准备三步 */
.setup-steps {
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.setup-layout .step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step {
  padding: 16px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone-blue);
  border-radius: var(--radius);
}

.step .step-no {
  display: block;
  margin-bottom: 6px;
  color: var(--tone-blue);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.setup-figure {
  min-width: 0;
}

.setup-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
}

/* 目录更订摘要 */
.updates-brief {
  padding: 52px 0 54px;
  border-bottom: 1px solid var(--line);
}

/* 反馈与核对路径 */
.feedback-path {
  padding: 52px 0 10px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.check-order,
.boundary {
  padding: 22px 24px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-order h3,
.boundary h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.check-order ol {
  counter-reset: order;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-order li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.check-order li::before {
  counter-increment: order;
  content: counter(order, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tone-blue);
}

.boundary p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.boundary ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.boundary li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.boundary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--tone-orange);
}

/* --------------------------------------------------------------------------
   pages · 频道总目录
   -------------------------------------------------------------------------- */

.channel-section .channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  position: relative;
  padding: 20px 20px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.channel-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.channel-card .tone-bar {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 12px;
  background-color: var(--tone-blue);
}

.channel-card.tone-blue .tone-bar {
  background-color: var(--tone-blue);
}

.channel-card.tone-green .tone-bar {
  background-color: var(--tone-green);
}

.channel-card.tone-orange .tone-bar {
  background-color: var(--tone-orange);
}

.channel-card.tone-purple .tone-bar {
  background-color: var(--tone-purple);
}

.channel-card.tone-red .tone-bar {
  background-color: var(--tone-red);
}

.channel-card.tone-cyan .tone-bar {
  background-color: var(--tone-cyan);
}

.channel-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.channel-pos {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.channel-scope {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-scope li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.channel-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.tone-figure,
.cross-figure,
.field-figure,
.record-figure,
.glossary-figure,
.entry-figure {
  margin-bottom: 20px;
}

.tone-figure img,
.cross-figure img,
.field-figure img,
.record-figure img,
.glossary-figure img,
.entry-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
}

.tone-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.tone-swatch {
  flex: none;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--tone-blue);
}

.tone-item.tone-blue .tone-swatch {
  background-color: var(--tone-blue);
}

.tone-item.tone-green .tone-swatch {
  background-color: var(--tone-green);
}

.tone-item.tone-orange .tone-swatch {
  background-color: var(--tone-orange);
}

.tone-item.tone-purple .tone-swatch {
  background-color: var(--tone-purple);
}

.tone-item.tone-red .tone-swatch {
  background-color: var(--tone-red);
}

.tone-item.tone-cyan .tone-swatch {
  background-color: var(--tone-cyan);
}

.tone-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.tone-note {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.cross-table thead th {
  white-space: nowrap;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.path-step {
  padding: 16px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone-green);
  border-radius: var(--radius);
}

.path-step .step-no {
  display: block;
  margin-bottom: 6px;
  color: var(--tone-green);
}

.path-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-step p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 专题选辑
   -------------------------------------------------------------------------- */

.collections-list {
  margin-bottom: 46px;
}

.collection-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 170px;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.collection-card:last-of-type {
  border-bottom: 1px solid var(--line);
}

.collection-media {
  min-width: 0;
}

.collection-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
}

.collection-copy {
  min-width: 0;
}

.collection-copy h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.collection-copy p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.collection-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.collection-card .meta dd a {
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
}

.basis-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: basis;
}

.basis-list li {
  position: relative;
  padding: 14px 18px 14px 52px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.basis-list li::before {
  counter-increment: basis;
  content: counter(basis, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tone-purple);
}

.basis-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.basis-list p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.series-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.series-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-soft);
}

.series-steps .step-no {
  color: var(--tone-blue);
}

.series-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.series-note a,
.map-note a,
.section-next a {
  color: var(--link);
  font-weight: 600;
}

.map-table {
  margin-bottom: 14px;
}

.map-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   pages · 条目字段表
   -------------------------------------------------------------------------- */

.field-table th,
.field-table td {
  white-space: normal;
}

.field-table tbody th {
  width: 22%;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.missing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.missing-list li {
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn-errata);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.missing-list strong {
  color: var(--warn-errata);
  font-style: italic;
}

.field-order .step-list,
.section-block .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-block .step-list .step-item,
.section-block .step-list li {
  position: relative;
  padding: 14px 18px 14px 52px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-block .step-list .step-no {
  position: absolute;
  left: 18px;
  top: 16px;
  color: var(--tone-blue);
}

.section-block .step-list h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.section-block .step-list p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.section-next {
  margin-top: 14px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 观看环境准备
   -------------------------------------------------------------------------- */

.setup-steps > .setup-figure {
  margin-bottom: 22px;
}

.setup-steps .step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  position: relative;
  padding: 16px 18px 16px 52px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-item .step-no {
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--tone-blue);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-item > h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.entry-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.entry-body .entry-figure {
  margin-bottom: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--tone-green);
}

.check-list strong {
  color: var(--ink);
}

.na-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.na-list li {
  padding: 12px 16px;
  background-color: var(--note-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.na-list strong {
  color: var(--ink);
}

.faq-block .faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   pages · 目录更订
   -------------------------------------------------------------------------- */

.update-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.update-type {
  padding: 18px 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--warn-update);
  border-radius: var(--radius);
}

.update-type h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.update-type p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.update-type ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-type li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.update-type li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.errata-order .step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-style .record-row {
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr);
}

.submit-note > p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.alt-path-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alt-path-list li a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.alt-path-list li a:hover,
.alt-path-list li a:focus-visible {
  color: var(--link-hover);
}

/* --------------------------------------------------------------------------
   pages · 称谓对照
   -------------------------------------------------------------------------- */

.glossary-table tbody th {
  width: 26%;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.retired-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.retired-list li {
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn-errata);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.retired-list strong {
  color: var(--warn-errata);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.glossary-map-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.glossary-ask > p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.ask-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.ask-links li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

.ask-links li a:hover,
.ask-links li a:focus-visible {
  color: var(--link-hover);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  padding-top: 40px;
  padding-bottom: 64px;
}

.error-panel {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--tone-red);
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
}

.error-lead {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.error-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.error-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--tone-red);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-help {
  padding: 40px 0 0;
}

.error-help h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.error-help > p {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.error-help ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-help li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .hero {
    gap: 32px;
  }

  .feature-row {
    grid-template-columns: 240px minmax(0, 1fr) 150px;
    gap: 20px;
  }

  .collection-card {
    grid-template-columns: 220px minmax(0, 1fr) 150px;
    gap: 20px;
  }

  .footer-cols {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  body.site-body {
    font-size: 15.5px;
  }

  .header-top {
    padding: 12px 16px 10px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-note {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    padding: 0 16px;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    box-shadow: inset 3px 0 0 var(--tone-blue);
    padding-left: 12px;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 10px;
    padding-bottom: 44px;
  }

  .breadcrumb {
    font-size: 12.5px;
    padding: 10px 0 2px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .page-head {
    padding: 10px 0 22px;
    margin-bottom: 28px;
  }

  .page-lead {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .page-meta {
    gap: 6px 16px;
    font-size: 12.5px;
  }

  .page-layout {
    display: block;
  }

  .page-aside,
  .side-col {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .aside-block {
    margin-bottom: 0;
  }

  .aside-block:last-child {
    grid-column: 1 / -1;
  }

  .section-block > h2,
  .section > h2,
  .channel-section > h2,
  .tone-rules > h2,
  .channel-cross > h2,
  .channel-path > h2,
  .collections-list > h2,
  .editorial-basis > h2,
  .series-nav > h2,
  .channel-map > h2,
  .glossary-core > h2,
  .glossary-retired > h2,
  .glossary-map > h2,
  .glossary-ask > h2,
  .update-types > h2,
  .errata-order > h2,
  .record-style > h2,
  .submit-note > h2,
  .entry-check > h2,
  .not-applicable > h2,
  .faq-block > h2 {
    font-size: 20px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  /* 首页移动顺序 */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 18px 0 36px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .channel-wall,
  .featured-collections,
  .field-glance,
  .setup-steps,
  .updates-brief {
    padding: 36px 0;
  }

  .feedback-path {
    padding: 36px 0 6px;
  }

  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .feature-figure img {
    width: 100%;
  }

  .meta {
    grid-template-columns: auto minmax(0, 1fr);
    padding-top: 4px;
  }

  .field-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .field-table thead th:nth-child(3),
  .field-table tbody td:nth-child(2) {
    /* 第三列「读法」并入含义格：移动端隐藏独立读法列 */
    display: none;
  }

  .setup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .setup-layout .step-list {
    gap: 14px;
  }

  .setup-figure {
    order: 2;
  }

  .feedback-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .record-row,
  .record-style .record-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
  }

  .record-type {
    font-size: 12.5px;
  }

  /* 频道总目录 */
  .channel-section .channel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tone-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cross-table,
  .map-table,
  .glossary-table,
  .glossary-map-table,
  .field-table {
    font-size: 14px;
  }

  th,
  td {
    padding: 9px 10px;
  }

  /* 专题选辑 */
  .collection-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .collection-card .meta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .series-steps {
    gap: 8px;
  }

  /* 观看环境准备 */
  .entry-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .step-item {
    padding: 14px 16px 14px 46px;
  }

  .step-item .step-no {
    left: 16px;
    top: 15px;
  }

  .section-block .step-list .step-item,
  .section-block .step-list li {
    padding: 14px 16px 14px 46px;
  }

  .section-block .step-list .step-no {
    left: 16px;
    top: 15px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  /* 目录更订 */
  .update-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  /* 页脚 */
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 32px 16px 24px;
  }

  .footer-note p {
    padding: 14px 16px 22px;
  }

  /* 404 */
  .error-main {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    flex: 1 1 140px;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 0 14px;
  }

  .header-top {
    padding: 10px 14px 8px;
  }

  .site-nav {
    padding: 0 14px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .page-title {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tone-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .series-steps li {
    flex: 1 1 100%;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-aside,
  .side-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside-block:last-child {
    grid-column: auto;
  }

  th,
  td {
    padding: 8px 9px;
  }

  .field-table tbody th {
    width: 32%;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
