/* ==========================================================================
   星空无限 yjsh-edu.com — 站点样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: #f6f4ef;
  color: #1f2a26;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #0f2b26;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd {
  margin: 0;
}

dt {
  font-weight: 600;
}

a {
  color: #1b6b58;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: #0f2b26;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #c8873a;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

strong {
  color: #0f2b26;
  font-weight: 700;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-header {
  background-color: #0f2b26;
  color: #f6f4ef;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 14px;
}

.brand-block {
  flex: 0 0 auto;
  min-width: 168px;
}

.brand-name {
  display: inline-block;
  color: #f6f4ef;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.brand-name:hover,
.brand-name:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.brand-slogan {
  margin-top: 4px;
  color: #b9c8c2;
  font-size: 12px;
  line-height: 1.5;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: #d7e2dd;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: #c8873a;
}

.site-nav a.is-current {
  color: #ffffff;
  font-weight: 700;
  border-bottom-color: #c8873a;
}

.nav-toggle,
.index-toggle {
  border: 1px solid #35564d;
  border-radius: 6px;
  background-color: transparent;
  color: #e7efeb;
  font-size: 14px;
  line-height: 1;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: #e7efeb;
}

.index-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
}

.nav-toggle:hover,
.index-toggle:hover,
.nav-toggle:focus-visible,
.index-toggle:focus-visible {
  border-color: #c8873a;
  background-color: rgba(200, 135, 58, 0.16);
}

.page-index {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.page-index[hidden] {
  display: none;
}

.page-index .index-group {
  padding: 14px 0;
  border-top: 1px solid #35564d;
}

.page-index .index-group h2 {
  margin-bottom: 8px;
  color: #c8873a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-index .index-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 24px;
}

.page-index .index-group a {
  color: #d7e2dd;
  font-size: 14px;
}

.page-index .index-group a:hover,
.page-index .index-group a:focus-visible {
  color: #ffffff;
}

.header-note {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 14px;
  color: #9fb4ac;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #24443c;
  padding-top: 10px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  padding-top: 24px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: #1b6b58;
}

.breadcrumb-sep {
  color: #a9b0ab;
}

.breadcrumb-current {
  color: #5a6560;
}

/* 页面标题区 */

.page-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dcd8ce;
}

.page-title {
  color: #0f2b26;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

/* 页脚 */

.site-footer {
  background-color: #0f2b26;
  color: #c4d1cb;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.footer-brand-name {
  color: #f6f4ef;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-brand-desc {
  margin-top: 8px;
  color: #9fb4ac;
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h2 {
  margin-bottom: 12px;
  color: #c8873a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #c4d1cb;
  font-size: 14px;
  line-height: 1.5;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid #24443c;
  color: #8fa69d;
  font-size: 13px;
  line-height: 1.6;
}

.footer-year {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 单元标签 */
.unit-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid #e2d3bb;
  border-radius: 4px;
  background-color: #f3ebe0;
  color: #8a5a1f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 状态标签 */
.status-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.status-complete {
  background-color: #e2efe9;
  color: #1b6b58;
}

.status-pending {
  background-color: #f3ebe0;
  color: #8a5a1f;
}

/* 文字链接 */
.text-link {
  display: inline-block;
  margin-top: 12px;
  color: #1b6b58;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.text-link::after {
  content: " →";
  font-weight: 400;
}

.text-link:hover,
.text-link:focus-visible {
  color: #0f2b26;
  text-decoration: none;
  border-bottom-color: #c8873a;
}

/* 章节标题与引言 */
.section-intro,
.section-desc,
.section-note {
  max-width: 42em;
  margin-top: 8px;
  color: #5a6560;
  font-size: 15px;
  line-height: 1.75;
}

/* 定义列表：字段名 / 含义 */
.field-list {
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.field-list > dt {
  padding: 12px 16px 0;
  background-color: #ffffff;
  color: #0f2b26;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.field-list > dd {
  padding: 4px 16px 14px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid #eceae3;
}

.field-list > dd:last-of-type {
  border-bottom: 0;
}

/* 定义列表：行容器版本（units / glossary） */
.field-row,
.field-item {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 14px 16px;
  border-bottom: 1px solid #eceae3;
}

.field-row:last-child,
.field-item:last-child {
  border-bottom: 0;
}

.field-row dt,
.field-item dt {
  color: #0f2b26;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.field-row dd,
.field-item dd {
  min-width: 0;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.field-item dd p + p {
  margin-top: 4px;
}

.field-range {
  color: #5a6560;
  font-size: 13px;
}

/* 编号步骤 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.step-list > li {
  position: relative;
  padding: 16px 18px 16px 56px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.step-list > li > strong {
  display: block;
  margin-bottom: 4px;
  color: #0f2b26;
  font-size: 15px;
  line-height: 1.6;
}

.step-list > li > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* 编号：units 页 step-index */
.step-list > li > .step-index {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: #f3ebe0;
  color: #8a5a1f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.step-list > li > .step-title {
  margin-bottom: 4px;
  color: #0f2b26;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.step-list > li > .step-body {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* 编号：editorial / viewing 页 step-num + step-body */
.step-list > li.step-item > .step-num {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background-color: #f3ebe0;
  color: #8a5a1f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.step-list > li.step-item > .step-body > h3 {
  margin-bottom: 4px;
  color: #0f2b26;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.step-list > li.step-item > .step-body > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* 折叠问答 */
.faq-item {
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0 16px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: #0f2b26;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8a5a1f;
  border-bottom: 2px solid #8a5a1f;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item > p {
  padding: 0 0 14px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid #eceae3;
  padding-top: 12px;
}

/* 提示条 */
.tip-bar,
.tip-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid #c8873a;
  border-radius: 0 6px 6px 0;
  background-color: #f3ebe0;
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.tip-bar p,
.tip-note p {
  margin: 0;
}

/* 图片容器 */
.content-figure {
  margin: 20px 0 0;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 10px 16px 12px;
  margin-top: 0;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  padding-top: 32px;
}

/* 编辑部头条区 */
.lead-section {
  margin-bottom: 48px;
}

.lead-section h1 {
  max-width: 20em;
  margin-bottom: 20px;
  font-size: 40px;
  line-height: 1.25;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lead-primary {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.lead-figure {
  margin: -18px -20px 16px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.lead-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-heading {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.4;
}

.lead-summary {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

.lead-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.lead-card-figure {
  margin: -16px -18px 14px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.lead-card-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-card-heading {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.lead-card-summary {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.lead-card-plain .unit-tag {
  margin-bottom: 6px;
}

/* 单元速览 */
.unit-glance {
  margin-bottom: 48px;
}

.unit-glance > h2 {
  font-size: 24px;
}

.glance-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.glance-list > li {
  display: grid;
  grid-template-columns: 48px minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 18px;
  border-bottom: 1px solid #eceae3;
}

.glance-list > li:last-child {
  border-bottom: 0;
}

.glance-num {
  color: #c8873a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.glance-name {
  color: #0f2b26;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.glance-desc {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.glance-list .text-link {
  margin-top: 0;
  white-space: nowrap;
}

/* 说明条目瀑布 */
.entry-wall {
  margin-bottom: 48px;
}

.entry-wall > h2 {
  font-size: 24px;
}

.entry-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.entry-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  border-color: #c8873a;
  box-shadow: 0 2px 10px rgba(15, 43, 38, 0.06);
}

.entry-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.45;
}

.entry-point {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.entry-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceae3;
  font-size: 13px;
  line-height: 1.6;
}

.entry-fields dt {
  color: #5a6560;
  font-weight: 500;
}

.entry-fields dd {
  color: #0f2b26;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
  word-break: break-word;
}

/* 字段标注与核对说明 */
.field-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding: 24px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.field-guide-text h2 {
  font-size: 22px;
  line-height: 1.4;
}

.field-guide-text p {
  margin-top: 10px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

.field-guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-guide-row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: 8px 16px;
  padding: 12px 14px;
  border-left: 3px solid #c8873a;
  border-radius: 0 6px 6px 0;
  background-color: #f3ebe0;
}

.field-guide-row dt {
  color: #0f2b26;
  font-size: 14px;
  line-height: 1.6;
}

.field-guide-row dd {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

/* 条目索引入口 */
.entry-index {
  margin-bottom: 48px;
}

.entry-index > h2 {
  font-size: 24px;
}

.index-rows {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.index-rows > li {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 18px;
  border-bottom: 1px solid #eceae3;
}

.index-rows > li:last-child {
  border-bottom: 0;
}

.index-group-name {
  color: #0f2b26;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.index-desc {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.index-rows .text-link {
  margin-top: 0;
  white-space: nowrap;
}

/* 编辑室工作方法 */
.editorial-method {
  margin-bottom: 48px;
}

.editorial-method > h2 {
  font-size: 24px;
}

.method-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.method-col {
  padding: 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.method-col h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.method-col > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.method-output {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceae3;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

/* 条目补记与更正摘要 */
.correction-log {
  margin-bottom: 48px;
}

.correction-log > h2 {
  font-size: 24px;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.log-item {
  display: grid;
  grid-template-columns: minmax(96px, 110px) minmax(140px, 200px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 14px 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.log-date {
  color: #8a5a1f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.log-entry {
  color: #0f2b26;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.log-change {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

/* 首页问答 */
.home-faq {
  margin-bottom: 48px;
}

.home-faq > h2 {
  font-size: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

/* 反馈入口带 */
.feedback-band {
  padding: 24px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.feedback-band > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.band-text {
  max-width: 42em;
  margin-top: 8px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

.band-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
}

.band-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #1b6b58;
  border-radius: 6px;
  background-color: #1b6b58;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.band-link:hover,
.band-link:focus-visible {
  background-color: #0f2b26;
  border-color: #0f2b26;
  color: #ffffff;
  text-decoration: none;
}

.band-link + .band-link {
  background-color: transparent;
  color: #1b6b58;
}

.band-link + .band-link:hover,
.band-link + .band-link:focus-visible {
  background-color: #f3ebe0;
  color: #0f2b26;
}

/* 首页底部相关链接 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #dcd8ce;
  font-size: 14px;
}

.related-links-label {
  color: #5a6560;
  font-weight: 600;
}

.related-links-item {
  color: #1b6b58;
  font-weight: 600;
}

/* ==========================================================================
   pages — 内页通用
   ========================================================================== */

/* 内页标题区引言 / 元信息 */
.page-lede,
.page-lead,
.page-definition {
  max-width: 42em;
  color: #3f4a45;
  font-size: 16px;
  line-height: 1.75;
}

.page-meta,
.page-status {
  margin-top: 10px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

.section-label,
.page-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #8a5a1f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 内页 hero */
.page-hero {
  margin-bottom: 32px;
}

.page-hero > * + * {
  margin-top: 10px;
}

/* 字段状态行 */
.field-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.field-status > li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.field-key {
  color: #5a6560;
}

.field-value {
  color: #0f2b26;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
}

.field-status > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  line-height: 1.6;
}

.field-status > div dt {
  color: #5a6560;
  font-weight: 500;
}

.field-status > div dd {
  color: #0f2b26;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
}

/* 执行摘要 */
.exec-summary {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #f3ebe0;
}

.exec-summary > h2 {
  font-size: 18px;
  line-height: 1.4;
}

.exec-summary > ul,
.exec-summary > ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.exec-summary > ul > li,
.exec-summary > ol > li {
  position: relative;
  padding-left: 18px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.exec-summary > ul > li::before,
.exec-summary > ol > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 2px;
  background-color: #c8873a;
}

.exec-summary > ul > li > strong {
  display: block;
  color: #0f2b26;
}

.exec-summary > ul > li > a {
  color: #1b6b58;
}

.summary-lead {
  color: #0f2b26;
  font-weight: 700;
}

.summary-scope {
  color: #5a6560;
  font-size: 14px;
}

/* 页内锚点目录 */
.anchor-nav {
  margin-bottom: 32px;
  padding: 14px 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.anchor-nav > h2 {
  margin-bottom: 10px;
  color: #5a6560;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.anchor-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.anchor-nav > ul > li > a {
  display: inline-block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 8px;
  color: #1b6b58;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.anchor-nav > ul > li > a:hover,
.anchor-nav > ul > li > a:focus-visible {
  border-left-color: #c8873a;
  color: #0f2b26;
  text-decoration: none;
}

/* 正文区块 */
.section-block,
.content-section,
.glossary-section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}

.section-block > h2,
.content-section > h2,
.glossary-section > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.section-block > p,
.content-section > p,
.glossary-section > p {
  margin-top: 10px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

/* ==========================================================================
   pages — units
   ========================================================================== */

.page-layout.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 40px;
  align-items: start;
}

.content-column {
  min-width: 0;
}

.content-column > .page-title {
  margin-bottom: 0;
}

.content-column > .page-title .page-lede {
  margin-top: 10px;
}

.sidebar {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.sidebar > h2 {
  margin-bottom: 12px;
  color: #5a6560;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-links > li {
  padding-bottom: 12px;
  border-bottom: 1px solid #eceae3;
}

.aside-links > li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-links a {
  display: block;
  color: #1b6b58;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.aside-links span {
  display: block;
  margin-top: 4px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

/* 六个单元收录范围 */
.unit-list {
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.unit-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px;
  border-bottom: 1px solid #eceae3;
  scroll-margin-top: 24px;
}

.unit-row:last-child {
  border-bottom: 0;
}

.unit-row dt {
  color: #0f2b26;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.unit-row dd {
  min-width: 0;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* 跨单元条目处理：两张卡片 */
.card-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.info-card {
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.info-card > h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.info-card > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.info-card > ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.info-card > ul > li {
  position: relative;
  padding-left: 16px;
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.info-card > ul > li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 6px;
  height: 2px;
  background-color: #c8873a;
}

/* ==========================================================================
   pages — programs
   ========================================================================== */

.page-intro {
  margin-bottom: 24px;
}

.page-intro > .page-lead {
  max-width: 42em;
}

.page-intro > .page-meta {
  margin-top: 10px;
}

.programs-page .page-intro {
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.programs-page .exec-summary {
  background-color: #f3ebe0;
}

.programs-page .step-list > li > strong {
  display: block;
  margin-bottom: 4px;
  color: #0f2b26;
  font-size: 15px;
  line-height: 1.6;
}

.programs-page .step-list > li > a {
  color: #1b6b58;
  font-size: 15px;
}

/* 分组条目清单 */
.entry-group {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.entry-group > h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.45;
}

.entry-group > p {
  color: #5a6560;
  font-size: 14px;
  line-height: 1.7;
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceae3;
}

.entry-links > li > a {
  display: inline-block;
  padding: 4px 0;
  color: #1b6b58;
  font-size: 14px;
  line-height: 1.6;
}

/* 相关入口带（内页） */
.related-band {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.related-band > h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.4;
}

.related-band > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.related-band > ul > li {
  min-width: 0;
}

.related-band > ul > li > a {
  display: inline-block;
  padding: 4px 0;
  color: #1b6b58;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.related-band > ul > li > span {
  display: block;
  margin-top: 2px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   pages — editorial
   ========================================================================== */

.editorial-intro {
  margin-bottom: 40px;
}

.editorial-intro > h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.4;
}

.media-figure {
  margin: 0 0 18px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.media-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-figure figcaption {
  padding: 10px 16px 12px;
  margin-top: 0;
}

.media-wide img {
  aspect-ratio: 5 / 1;
  min-height: 160px;
  max-height: 240px;
}

.intro-body > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.8;
}

.intro-body > p + p {
  margin-top: 12px;
}

/* 三类职责 */
.editorial-roles {
  margin-bottom: 40px;
}

.editorial-roles > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.role-card {
  padding: 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.role-card > h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.role-card > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.role-output {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceae3;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

/* 质量原则 */
.editorial-principles {
  margin-bottom: 40px;
}

.editorial-principles > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.principle-item {
  padding: 14px 16px;
  border-left: 3px solid #c8873a;
  border-radius: 0 6px 6px 0;
  background-color: #f3ebe0;
}

.principle-item > h3 {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.principle-item > p {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

/* 合作过程 */
.editorial-flow {
  margin-bottom: 8px;
}

.editorial-flow > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.flow-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: #f3ebe0;
  color: #8a5a1f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.flow-body > h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.6;
}

.flow-body > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   pages — viewing
   ========================================================================== */

.viewing-figure {
  margin-bottom: 40px;
}

.viewing-figure > h2 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.4;
}

.viewing-figure > figure {
  margin: 0 0 12px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.viewing-figure > figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.viewing-figure > figure figcaption {
  padding: 10px 16px 12px;
  margin-top: 0;
}

.viewing-figure > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

.viewing-figure > p + p {
  margin-top: 8px;
}

.checklist,
.subtitle-settings,
.obstacles,
.scenarios {
  margin-bottom: 40px;
}

.checklist > h2,
.subtitle-settings > h2,
.obstacles > h2,
.scenarios > h2 {
  font-size: 22px;
  line-height: 1.4;
}

.checklist > p,
.subtitle-settings > p,
.obstacles > p,
.scenarios > p {
  margin-top: 10px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

/* 常见阻碍：两列现象 / 处理 */
.obstacle-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.obstacle-list > dt {
  padding: 14px 16px;
  border-bottom: 1px solid #eceae3;
  background-color: #faf8f4;
  color: #0f2b26;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.obstacle-list > dd {
  padding: 14px 16px;
  border-bottom: 1px solid #eceae3;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.obstacle-list > dt:nth-last-of-type(1),
.obstacle-list > dd:nth-last-of-type(1) {
  border-bottom: 0;
}

/* 三种场景建议 */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.scenario-card {
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.scenario-card > h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.45;
}

.scenario-card > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.scenario-caution {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eceae3;
  color: #8a5a1f;
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   pages — glossary
   ========================================================================== */

.page-shell {
  min-width: 0;
}

.glossary-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.glossary-figure {
  margin: 0;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.glossary-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.glossary-figure figcaption {
  padding: 10px 14px 12px;
  margin-top: 0;
}

.glossary-intro-text > h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.4;
}

.glossary-intro-text > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.75;
}

.glossary-intro-text > p + p {
  margin-top: 10px;
}

/* hero 元信息 */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.meta-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.meta-row > dt {
  color: #5a6560;
  font-weight: 500;
}

.meta-row > dd {
  color: #0f2b26;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 600;
}

/* 术语列表 */
.term-list {
  margin-top: 16px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.term-item {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 8px 24px;
  padding: 16px;
  border-bottom: 1px solid #eceae3;
}

.term-item:last-child {
  border-bottom: 0;
}

.term-item > dt {
  color: #0f2b26;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.term-item > dd {
  min-width: 0;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.term-boundary {
  margin-top: 4px;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.6;
}

/* 易混说法对照 */
.compare-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.compare-item {
  padding: 16px 18px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.compare-item > h3 {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compare-old,
.compare-new {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
}

.compare-old {
  background-color: #f2f0ea;
  color: #5a6560;
}

.compare-new {
  background-color: #e2efe9;
  color: #0f2b26;
  font-weight: 600;
}

.compare-old::before,
.compare-new::before {
  display: block;
  margin-bottom: 4px;
  color: #5a6560;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.compare-old::before {
  content: "旧说法";
}

.compare-new::before {
  content: "统一写法";
  color: #1b6b58;
}

.compare-note {
  margin-top: 10px;
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

/* 记录样张 */
.record-sample {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dcd8ce;
  border-left: 3px solid #c8873a;
  border-radius: 0 8px 8px 0;
  background-color: #ffffff;
}

.record-date {
  color: #8a5a1f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.record-body {
  margin-top: 6px;
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   pages — feedback
   ========================================================================== */

.feedback-types,
.feedback-elements,
.correction-process,
.faq-block {
  margin-bottom: 40px;
}

.feedback-types > h2,
.feedback-elements > h2,
.correction-process > h2,
.faq-block > h2 {
  font-size: 22px;
  line-height: 1.4;
}

/* 四类可反馈问题 */
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.type-card {
  padding: 18px 20px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
}

.type-card > h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.type-card > p {
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.type-exclude {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eceae3;
  color: #8a5a1f;
  font-size: 13px;
  line-height: 1.6;
}

/* 反馈要素 / 更正流程：编号步骤 */
.feedback-elements .step-item,
.correction-process .step-item {
  padding-left: 18px;
}

.feedback-elements .step-item > h3,
.correction-process .step-item > h3 {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.6;
}

.feedback-elements .step-item > p,
.correction-process .step-item > p {
  color: #3f4a45;
  font-size: 15px;
  line-height: 1.7;
}

.step-check {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eceae3;
  color: #8a5a1f;
  font-size: 13px;
  line-height: 1.6;
}

/* 记录样张图 */
.record-figure {
  margin: 0 0 40px;
  border: 1px solid #dcd8ce;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.record-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.record-figure figcaption {
  padding: 12px 16px;
  margin-top: 0;
  color: #5a6560;
  font-size: 13px;
  line-height: 1.7;
}

.fig-line {
  display: block;
}

.fig-line + .fig-line {
  margin-top: 4px;
}

/* FAQ 区块 */
.faq-block > .faq-item {
  margin-top: 12px;
}

.faq-block > .faq-item:first-of-type {
  margin-top: 18px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.error-code {
  color: #c8873a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.error-wrap > h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.3;
}

.error-lead {
  margin-top: 12px;
  color: #3f4a45;
  font-size: 16px;
  line-height: 1.75;
}

.notice-bar {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 3px solid #c8873a;
  border-radius: 0 6px 6px 0;
  background-color: #f3ebe0;
  color: #3f4a45;
  font-size: 14px;
  line-height: 1.7;
}

.error-section {
  margin-top: 32px;
}

.error-section > h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.4;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.error-links > li > a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: #1b6b58;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #1b6b58;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background-color: #1b6b58;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #0f2b26;
  border-color: #0f2b26;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: #1b6b58;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: #f3ebe0;
  color: #0f2b26;
  text-decoration: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .header-inner {
    gap: 14px 20px;
  }

  .site-nav ul {
    gap: 4px 16px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .lead-section h1 {
    font-size: 34px;
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 28px;
  }

  .glance-list > li {
    grid-template-columns: 44px minmax(110px, 150px) minmax(0, 1fr);
    row-gap: 6px;
  }

  .glance-list .text-link {
    grid-column: 2 / -1;
  }

  .index-rows > li {
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    row-gap: 6px;
  }

  .index-rows .text-link {
    grid-column: 2 / -1;
  }

  .log-item {
    grid-template-columns: minmax(88px, 100px) minmax(0, 1fr);
    row-gap: 4px;
  }

  .log-change {
    grid-column: 2 / -1;
  }

  .footer-top {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 16px;
    line-height: 1.7;
  }

  /* 页头：移动端收起主导航 */
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-areas:
      "brand nav index"
      "note note note";
    align-items: center;
    gap: 10px 10px;
    padding: 14px 16px 12px;
  }

  .brand-block {
    grid-area: brand;
    min-width: 0;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .site-nav {
    grid-area: nav;
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .index-toggle {
    grid-area: index;
    justify-self: end;
    min-height: 44px;
    padding: 0 12px;
  }

  /* 主导航列表：默认收起，.is-open 展开 */
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
    background-color: #0f2b26;
    border-top: 1px solid #24443c;
    box-shadow: 0 12px 24px rgba(15, 43, 38, 0.28);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav ul > li {
    border-bottom: 1px solid #24443c;
  }

  .site-nav ul > li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    font-size: 15px;
    border-bottom: 0;
  }

  .site-nav a.is-current {
    border-bottom: 0;
    color: #f0d9bb;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .page-index {
    padding: 0 16px 16px;
  }

  .page-index .index-group ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-index .index-group a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .header-note {
    padding: 10px 16px 12px;
    font-size: 11px;
  }

  /* 主容器 */
  .site-main {
    padding: 20px 16px 40px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .breadcrumb {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .page-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .page-title {
    font-size: 26px;
    line-height: 1.3;
  }

  /* 首页 */
  .lead-section {
    margin-bottom: 32px;
  }

  .lead-section h1 {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .lead-primary {
    padding: 14px 16px 18px;
  }

  .lead-figure {
    margin: -14px -16px 14px;
  }

  .lead-heading {
    font-size: 20px;
  }

  .lead-secondary {
    gap: 16px;
  }

  .lead-card {
    padding: 14px 16px 16px;
  }

  .lead-card-figure {
    margin: -14px -16px 12px;
  }

  .lead-card-heading {
    font-size: 17px;
  }

  .unit-glance,
  .entry-wall,
  .field-guide,
  .entry-index,
  .editorial-method,
  .correction-log,
  .home-faq {
    margin-bottom: 32px;
  }

  .unit-glance > h2,
  .entry-wall > h2,
  .entry-index > h2,
  .editorial-method > h2,
  .correction-log > h2,
  .home-faq > h2 {
    font-size: 20px;
  }

  .glance-list > li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px;
  }

  .glance-desc {
    grid-column: 2 / -1;
  }

  .glance-list .text-link {
    grid-column: 2 / -1;
    margin-top: 4px;
  }

  .entry-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .entry-col {
    gap: 16px;
  }

  .entry-card {
    padding: 14px 16px 16px;
  }

  .field-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 18px 16px;
  }

  .field-guide-text h2 {
    font-size: 20px;
  }

  .field-guide-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .index-rows > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 16px;
  }

  .index-rows .text-link {
    grid-column: auto;
    margin-top: 4px;
  }

  .method-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .log-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px;
  }

  .log-change {
    grid-column: auto;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  .faq-item summary {
    min-height: 48px;
    font-size: 15px;
  }

  .feedback-band {
    padding: 18px 16px;
  }

  .feedback-band > h2 {
    font-size: 20px;
  }

  .band-links {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .band-link {
    justify-content: center;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 24px;
  }

  .related-links-item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* 内页通用 */
  .page-hero {
    margin-bottom: 24px;
  }

  .page-lede,
  .page-lead,
  .page-definition {
    font-size: 15px;
  }

  .field-status {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }

  .field-status > div {
    flex-direction: column;
    gap: 2px;
  }

  .exec-summary {
    margin-bottom: 24px;
    padding: 16px;
  }

  .exec-summary > h2 {
    font-size: 17px;
  }

  .anchor-nav {
    margin-bottom: 24px;
    padding: 12px 14px;
  }

  .anchor-nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .anchor-nav > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .section-block,
  .content-section,
  .glossary-section {
    margin-bottom: 32px;
  }

  .section-block > h2,
  .content-section > h2,
  .glossary-section > h2 {
    font-size: 20px;
  }

  .content-figure,
  .media-figure,
  .viewing-figure > figure,
  .record-figure {
    margin-top: 16px;
  }

  /* 定义列表：行容器转上下结构 */
  .field-row,
  .field-item,
  .unit-row,
  .term-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px;
  }

  .field-list > dt {
    padding: 12px 14px 0;
  }

  .field-list > dd {
    padding: 4px 14px 12px;
    font-size: 14px;
  }

  /* 步骤 */
  .step-list {
    gap: 12px;
    margin-top: 14px;
  }

  .step-list > li {
    padding: 14px 14px 14px 50px;
  }

  .step-list > li > .step-index,
  .step-list > li.step-item > .step-num {
    top: 14px;
    left: 14px;
  }

  /* units */
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar {
    padding: 16px;
  }

  .aside-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .card-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 14px;
  }

  /* programs */
  .entry-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .entry-links > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* editorial */
  .media-wide img {
    aspect-ratio: 16 / 9;
    min-height: 160px;
    max-height: 200px;
  }

  .role-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .flow-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  /* viewing */
  .obstacle-list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 14px;
  }

  .obstacle-list > dt {
    padding: 12px 14px 4px;
    border-bottom: 0;
  }

  .obstacle-list > dd {
    padding: 4px 14px 12px;
  }

  .scenario-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  /* glossary */
  .glossary-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
  }

  .compare-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  /* feedback */
  .type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
  }

  .feedback-elements .step-item,
  .correction-process .step-item {
    padding-left: 14px;
  }

  /* 相关入口带 */
  .related-band {
    margin-top: 32px;
    padding: 16px;
  }

  .related-band > ul {
    flex-direction: column;
    gap: 4px;
  }

  .related-band > ul > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  /* 404 */
  .error-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .error-wrap > h1 {
    font-size: 26px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
  }

  /* 页脚 */
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 16px 24px;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 24px;
  }
}

@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;
  }
}
