/* =========================================================
   爱壹帆 bdcym.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base — 变量、重置、排版基线
   --------------------------------------------------------- */
:root {
  --paper: #F6F5F2;
  --sand: #EEECE6;
  --ink: #23262B;
  --indigo: #2E4A5F;
  --indigo-dark: #223A4B;
  --blue: #7C9BB0;
  --green: #869B86;
  --ochre: #B0987C;
  --purple: #9186A8;
  --line: #DCD8D0;
  --muted: #6B6F75;
  --white: #FFFFFF;
  --radius: 4px;
  --shell: 1120px;
  --inner-main: 760px;
  --inner-aside: 300px;
  --gap-inner: 48px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--indigo-dark);
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   2. layout — 页头、主容器、内页双栏、页脚
   --------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-mark:hover {
  color: var(--indigo);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list > li > a:hover {
  color: var(--indigo);
  background: var(--sand);
}

.nav-list > li > a.is-current {
  color: var(--indigo);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--indigo);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* 主内容区 */
.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  max-width: var(--inner-main);
  min-width: 0;
  padding: 0;
}

/* 内页双栏：main 在前，aside 在后 */
.page-layout,
.layout-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, var(--inner-main)) minmax(0, var(--inner-aside));
  gap: var(--gap-inner);
  align-items: start;
}

/* 面包屑（内页正文内） */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  padding: 24px 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--indigo);
}

.breadcrumb-sep {
  color: var(--line);
  font-size: 13px;
}

.breadcrumb-current {
  color: var(--ink);
}

/* 顶部独立面包屑（updates 页） */
.layout-shell > .breadcrumb {
  grid-column: 1 / -1;
  padding-bottom: 4px;
}

.layout-shell .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.layout-shell .breadcrumb-list > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.layout-shell .breadcrumb-list > li + li::before {
  content: "›";
  color: var(--line);
}

/* 页面标题区 */
.page-header {
  padding: 20px 0 8px;
}

.page-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.page-head,
.page-hero,
.page-title + .page-lead {
  padding: 0 0 4px;
}

.page-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
  margin-top: 10px;
}

.page-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--sand);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag-blue {
  color: var(--indigo);
  background: rgba(124, 155, 176, 0.18);
}

.tag-green {
  color: #4C614C;
  background: rgba(134, 155, 134, 0.2);
}

.tag-ochre {
  color: #6E5A42;
  background: rgba(176, 152, 124, 0.2);
}

.tag-purple {
  color: #574F6B;
  background: rgba(145, 134, 168, 0.2);
}

/* 内页图片 */
.page-figure,
.page-hero-figure,
.check-intro-figure {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.page-figure img,
.page-hero-figure img,
.check-intro-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-figure figcaption,
.page-hero-figure figcaption,
.check-intro-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--sand);
}

/* 页脚 */
.site-footer {
  background: var(--sand);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-tasks {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.task-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.task-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.task-card:hover {
  border-color: var(--indigo);
  background: var(--white);
}

.task-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
}

.task-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-brand .brand-mark {
  font-size: 22px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 30em;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.footer-nav ul,
.footer-usage ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.footer-nav a,
.footer-usage a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--muted);
}

.footer-nav a:hover,
.footer-usage a:hover {
  color: var(--indigo);
}

.footer-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   3. components — 通用按钮、链接、列表、卡片、表格、折叠
   --------------------------------------------------------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}

.btn-outline:hover {
  background: var(--indigo);
  color: var(--white);
}

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.hero .btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--indigo);
}

/* 行内文字链接 */
.inline-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.inline-link::after,
.text-link::after {
  content: "›";
  margin-left: 4px;
  font-size: 15px;
  transition: transform 160ms ease;
}

.inline-link:hover,
.text-link:hover {
  color: var(--indigo-dark);
  border-bottom-color: var(--indigo);
}

.inline-link:hover::after,
.text-link:hover::after {
  transform: translateX(2px);
}

/* 相关内容条（内页正文底部） */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--indigo);
  border-bottom: 1px solid transparent;
}

.related-links-item:hover {
  border-bottom-color: var(--indigo);
}

/* 内页 section 通用 */
.section {
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.section:first-of-type {
  margin-top: 24px;
}

.section > h2,
.content-block > h2 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.section-note,
.section-intro,
.block-intro {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

.content-block {
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.content-block.is-hidden {
  display: none;
}

/* 侧栏 */
.page-aside,
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding-top: 20px;
}

.aside-block,
.sidebar-block {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block > h2,
.aside-title,
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-list,
.aside-links,
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.aside-list li,
.aside-links li,
.sidebar-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-list a,
.aside-links a,
.sidebar-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
}

.aside-list a:hover,
.aside-links a:hover,
.sidebar-list a:hover {
  color: var(--indigo-dark);
}

.aside-list p,
.sidebar-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 术语对照表 / 一致性表 */
.term-table,
.glossary-table,
.element-table {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.term-table caption,
.glossary-table caption,
.element-table caption {
  padding: 12px 16px;
  font-size: 13px;
  text-align: left;
  color: var(--muted);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.term-table th,
.term-table td,
.glossary-table th,
.glossary-table td,
.element-table th,
.element-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}

.term-table thead th,
.glossary-table thead th,
.element-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--sand);
}

.term-table tbody th,
.glossary-table tbody th,
.element-table tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

.term-table tbody td,
.glossary-table tbody td,
.element-table tbody td {
  color: var(--muted);
}

.term-table tbody tr:last-child th,
.term-table tbody tr:last-child td,
.glossary-table tbody tr:last-child th,
.glossary-table tbody tr:last-child td,
.element-table tbody tr:last-child th,
.element-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 检查清单（跨页共用） */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.check-box,
.check-mark {
  flex: 0 0 auto;
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: var(--white);
}

.check-item-body,
.check-body,
.check-text {
  min-width: 0;
  flex: 1 1 auto;
}

.check-item-body h3,
.check-body h3,
.check-text h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.check-item-body p,
.check-body p,
.check-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* FAQ 折叠 */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px 12px 0;
  position: relative;
  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: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--indigo);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--indigo);
}

.faq-body {
  padding: 0 0 16px;
}

.faq-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

/* 编号步骤（内页 watch-guide） */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  list-style: none;
}

.step-item {
  padding: 18px 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--indigo);
  border-radius: var(--radius);
  min-width: 0;
}

.step-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
}

.step-name,
.step-item h3 {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.step-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.step-item .text-link {
  margin-top: 10px;
  font-size: 14px;
}

/* 反馈链接组 */
.feedback-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  list-style: none;
}

.feedback-links li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-links p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 规则列表（topics / channel-directions） */
.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  list-style: none;
}

.rule-list > li {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.rule-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.rule-list p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------
   4. pages — 首页
   --------------------------------------------------------- */

.home-main {
  padding-bottom: 24px;
}

/* 本页锚点条 */
.home-anchor-bar {
  position: static;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.anchor-list {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
}

.anchor-list::-webkit-scrollbar {
  display: none;
}

.anchor-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.anchor-list a:hover {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
}

/* 首屏焦点区 */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 24px auto 0;
  padding: 0 24px;
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--indigo);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 74, 95, 0.62);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: var(--white);
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.hero-lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* 通用 section 标题（首页） */
.section-title {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.section-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

.home-main > section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* 快速入口带 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  list-style: none;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.entry-card:hover {
  border-color: var(--indigo);
  background: var(--paper);
}

.entry-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.4;
}

.entry-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.entry-arrow {
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  color: var(--indigo);
  transition: transform 160ms ease;
}

.entry-card:hover .entry-arrow {
  transform: translateX(2px);
}

/* 站点定义条 */
.definition-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 32px;
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 24px;
  margin-top: 48px;
  max-width: none;
}

.definition-lead,
.definition-body,
.definition-tags {
  min-width: 0;
}

.definition-oneline {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 600;
}

.definition-body p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.definition-body p + p {
  margin-top: 12px;
}

.tag-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-list .tag:hover {
  background: var(--line);
  color: var(--ink);
}

/* 整理阶段时间轴 */
.timeline-list {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-node {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-num {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.timeline-node:nth-child(2) .timeline-num {
  color: var(--green);
}

.timeline-node:nth-child(3) .timeline-num {
  color: var(--ochre);
}

.timeline-node:nth-child(4) .timeline-num {
  color: var(--purple);
}

.timeline-body {
  min-width: 0;
}

.timeline-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.timeline-body p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 44em;
}

.timeline-body .inline-link {
  margin-top: 8px;
  font-size: 14px;
}

/* 频道方向摘要 */
.channel-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: start;
}

.channel-intro {
  min-width: 0;
}

.channel-intro .inline-link {
  margin-top: 14px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid var(--line);
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.channel-swatch {
  flex: 0 0 auto;
  display: block;
  width: 4px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 2px;
  background: var(--blue);
}

.channel-green .channel-swatch {
  background: var(--green);
}

.channel-ochre .channel-swatch {
  background: var(--ochre);
}

.channel-purple .channel-swatch {
  background: var(--purple);
}

.channel-text {
  min-width: 0;
}

.channel-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.channel-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 专题精选 */
.topic-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
}

.topic-media {
  min-width: 0;
}

.topic-media figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.topic-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--sand);
}

.topic-body {
  min-width: 0;
}

.topic-entries {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic-entries li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-entries h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.topic-entries h3 a {
  color: var(--ink);
}

.topic-entries h3 a:hover {
  color: var(--indigo);
}

.topic-entries p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.topic-body .btn {
  margin-top: 20px;
}

/* 观看路径三步（首页，横排编号） */
.watch-path .step-list {
  margin-top: 24px;
}

.watch-path .step-item {
  border-top-color: var(--blue);
}

.watch-path .step-item:nth-child(2) {
  border-top-color: var(--green);
}

.watch-path .step-item:nth-child(3) {
  border-top-color: var(--ochre);
}

.watch-path > .inline-link {
  margin-top: 20px;
}

/* 入口核验要点 */
.entry-summary .check-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

.entry-summary > .btn {
  margin-top: 20px;
}

/* 首页相关内容条 */
.home-main > .related-links {
  max-width: var(--shell);
  margin: 48px auto 0;
  padding: 20px 24px 0;
}

/* ---------------------------------------------------------
   4. pages — 频道方向页
   --------------------------------------------------------- */
.marker-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.marker-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 140px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.marker-block {
  display: block;
  width: 4px;
  align-self: stretch;
  min-height: 28px;
  border-radius: 2px;
  background: var(--blue);
}

.marker-green .marker-block {
  background: var(--green);
}

.marker-ochre .marker-block {
  background: var(--ochre);
}

.marker-purple .marker-block {
  background: var(--purple);
}

.marker-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}

.marker-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  min-width: 0;
}

/* 逐方向解释 */
.direction-detail .detail-block {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

.direction-detail .detail-green {
  border-left-color: var(--green);
}

.direction-detail .detail-ochre {
  border-left-color: var(--ochre);
}

.direction-detail .detail-purple {
  border-left-color: var(--purple);
}

.detail-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.detail-block p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 46em;
}

.detail-block .detail-example {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink);
}

.term-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}

.term-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--sand);
  border-radius: var(--radius);
}

/* 色标用法 */
.usage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  list-style: none;
}

.usage-item {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.usage-item .marker-block {
  width: 24px;
  height: 4px;
  min-height: 0;
  margin-bottom: 10px;
}

.usage-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.usage-item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------
   4. pages — 更新记录页
   --------------------------------------------------------- */
.view-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  background: var(--sand);
  border-radius: var(--radius);
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 2px;
  transition: background-color 160ms ease, color 160ms ease;
}

.view-switch-btn:hover {
  color: var(--indigo);
}

.view-switch-btn.is-active {
  background: var(--white);
  color: var(--indigo);
  font-weight: 700;
}

/* 阶段时间轴（更新记录） */
.stage-timeline {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stage-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.stage-number {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.stage-item:nth-child(2) .stage-number {
  color: var(--green);
}

.stage-item:nth-child(3) .stage-number {
  color: var(--ochre);
}

.stage-item:nth-child(4) .stage-number {
  color: var(--purple);
}

.stage-body {
  min-width: 0;
}

.stage-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.stage-body p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 44em;
}

.stage-channel {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 2px 10px;
  font-size: 13px;
  color: var(--indigo);
  background: var(--sand);
  border-radius: var(--radius);
}

/* 按频道查看 */
.channel-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.channel-group {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.channel-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.channel-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.channel-name.channel-green::before {
  background: var(--green);
}

.channel-name.channel-ochre::before {
  background: var(--ochre);
}

.channel-name.channel-purple::before {
  background: var(--purple);
}

.channel-group .channel-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.channel-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.channel-notes li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}

.channel-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

/* 阶段取舍 */
.tradeoff-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tradeoff-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.tradeoff-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.tradeoff-list p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46em;
}

/* 待补事项 */
.pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.pending-list li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.pending-list strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------------------------------------------------------
   4. pages — 专题片单页
   --------------------------------------------------------- */
.topic-items {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.topic-bar {
  flex: 0 0 auto;
  display: block;
  width: 4px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 2px;
  background: var(--blue);
}

.topic-item-green .topic-bar {
  background: var(--green);
}

.topic-item-ochre .topic-bar {
  background: var(--ochre);
}

.topic-item-purple .topic-bar {
  background: var(--purple);
}

.topic-item-body {
  min-width: 0;
  flex: 1 1 auto;
}

.topic-item-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.topic-item-body p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.topic-direction {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 1px 9px;
  font-size: 12px;
  color: var(--muted);
  background: var(--sand);
  border-radius: var(--radius);
}

/* 逐专题条目构成 */
.topic-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  margin-top: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}

.topic-block-head {
  min-width: 0;
}

.topic-block-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.topic-block-head p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.topic-block-meta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 9px;
  font-size: 12px;
  color: var(--indigo);
  background: var(--sand);
  border-radius: var(--radius);
}

.topic-block-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.topic-block-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.topic-block-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.topic-block-list .entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.topic-block-list .entry-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* 关联专题组合 */
.pairing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.pairing-item {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pairing-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.pairing-item p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------
   4. pages — 观看指南页
   --------------------------------------------------------- */
.guide-steps {
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.guide-steps > h2,
.prep-checklist > h2,
.pitfall-group > h2,
.feedback-path > h2,
.glossary > h2 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.prep-checklist,
.pitfall-group,
.feedback-path,
.glossary {
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.pitfall-group .faq-item:first-of-type {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   4. pages — 入口核验页
   --------------------------------------------------------- */
.check-intro {
  padding: 32px 0 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.check-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  margin-top: 20px;
  align-items: start;
}

.check-intro-figure {
  margin: 0;
}

.check-intro-text {
  min-width: 0;
}

.check-intro-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.check-intro-text p + p {
  margin-top: 12px;
}

.check-intro-text b {
  color: var(--ink);
  font-weight: 600;
}

.check-intro-text .text-link {
  margin-top: 12px;
}

.check-items,
.four-elements,
.feedback-path,
.division {
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.check-items > h2,
.four-elements > h2,
.feedback-path > h2,
.division > h2 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

/* 反馈步骤 */
.feedback-steps {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feedback-steps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-steps h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.feedback-steps p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.path-sample {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 6px;
  padding: 1px 9px;
  font-size: 12px;
  color: var(--indigo);
  background: var(--sand);
  border-radius: var(--radius);
}

.feedback-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46em;
}

/* 分工对照 */
.division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.division-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.division-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.division-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.division-card .text-link {
  margin-top: 10px;
  font-size: 14px;
}

/* ---------------------------------------------------------
   4. pages — 404
   --------------------------------------------------------- */
.error-main {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  max-width: 640px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  border-radius: var(--radius);
}

.error-code {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.error-panel h1 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.error-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.error-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.error-reasons li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.error-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------------------------------------------------------
   5. responsive — 1024px / 720px / 420px
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 56px;
  }

  .inner-main {
    max-width: 100%;
  }

  .page-aside,
  .sidebar {
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-content {
    padding: 32px;
  }

  .channel-summary,
  .topic-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .definition-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .definition-tags {
    grid-column: 1 / -1;
  }

  .entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    gap: 12px;
  }

  .brand-mark {
    font-size: 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .nav-list.is-open {
    max-height: 480px;
    visibility: visible;
    overflow: visible;
  }

  .nav-list > li > a {
    min-height: 48px;
    padding: 0 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    width: 100%;
  }

  .nav-list > li:last-child > a {
    border-bottom: 0;
  }

  .nav-list > li > a.is-current {
    box-shadow: none;
    background: var(--sand);
  }

  .page-layout,
  .layout-shell {
    padding: 0 16px 48px;
    gap: 28px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 13px;
  }

  .page-header {
    padding: 14px 0 4px;
  }

  .page-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .page-lead {
    font-size: 14px;
  }

  .section > h2,
  .content-block > h2,
  .guide-steps > h2,
  .prep-checklist > h2,
  .pitfall-group > h2,
  .feedback-path > h2,
  .glossary > h2,
  .check-items > h2,
  .four-elements > h2,
  .division > h2,
  .section-title {
    font-size: 22px;
  }

  .section,
  .content-block,
  .guide-steps,
  .prep-checklist,
  .pitfall-group,
  .feedback-path,
  .glossary,
  .check-intro,
  .check-items,
  .four-elements,
  .division {
    margin-top: 24px;
    padding-top: 24px;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rule-list,
  .usage-list,
  .channel-groups,
  .division-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .check-intro-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .marker-item {
    grid-template-columns: 4px minmax(0, 1fr);
    gap: 12px;
  }

  .marker-text {
    grid-column: 2;
  }

  .stage-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .stage-number {
    font-size: 36px;
  }

  .term-table,
  .glossary-table,
  .element-table {
    font-size: 13px;
  }

  .term-table th,
  .term-table td,
  .glossary-table th,
  .glossary-table td,
  .element-table th,
  .element-table td {
    padding: 10px 12px;
  }

  .term-table tbody th,
  .glossary-table tbody th,
  .element-table tbody th {
    width: 40%;
  }

  /* 首页 */
  .anchor-list {
    padding: 0 16px;
  }

  .hero {
    margin-top: 16px;
    padding: 0 16px;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .hero-content {
    padding: 20px;
    max-width: none;
  }

  .hero-eyebrow {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-lead {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 16px;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    font-size: 14px;
  }

  .home-main > section {
    padding: 36px 16px 0;
  }

  .section-desc {
    font-size: 14px;
  }

  .entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }

  .entry-card {
    padding: 16px;
  }

  .entry-name {
    font-size: 15px;
  }

  .entry-text {
    font-size: 13px;
  }

  .definition-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 32px 16px;
    margin-top: 36px;
  }

  .definition-oneline {
    font-size: 16px;
  }

  .timeline-list {
    margin-top: 20px;
  }

  .timeline-node {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .timeline-num {
    font-size: 36px;
  }

  .topic-media img {
    aspect-ratio: 16 / 10;
  }

  .watch-path > .inline-link {
    margin-top: 16px;
  }

  .home-main > .related-links {
    margin-top: 36px;
    padding: 16px 16px 0;
  }

  /* 页脚 */
  .footer-tasks {
    padding: 32px 16px 0;
  }

  .task-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .task-card {
    padding: 14px 16px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 16px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom p {
    padding: 16px;
  }

  /* 404 */
  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-panel h1 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .entry-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 24px;
  }

  .page-aside,
  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
