/* 开公司的具体流程 · 教学页视觉层 —— 对齐 STYLE_GUIDE.md（柔光植物工作台） */

/* 基础 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg, #f6f5f1);
  color: var(--ink, #24231f);
  font-family: var(--font-body, 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif);
  line-height: 1.7;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent, #5f7c61);
  outline-offset: 2px;
  border-radius: var(--radius-small, 7px);
}

/* 页面外壳：让页脚沉底、结构纵向堆叠 */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部品牌横条（规范 4.2） */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line, #e7e5dc);
}

/* 品牌标记：标准 36×36，防止 SVG 默认撑成 300×150 大图标 */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control, 10px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
  flex: none;
}
.brand__mark svg { width: 36px; height: 36px; display: block; }
.brand__word { display: flex; flex-direction: column; line-height: 1.15; }
.brand__word strong {
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__word small {
  margin-top: 4px;
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted, #6b685d);
}

.main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: 40px;
  padding-bottom: 72px;
}

/* Hero */
.hero { margin-bottom: 20px; }
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.eyebrow__rule {
  width: 22px;
  height: 2px;
  background: var(--accent, #5f7c61);
  align-self: center;
}
.hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  font-size: clamp(25px, 5vw, 40px);
  font-weight: 700;
  color: var(--accent-deep, #42584a);
  line-height: 1.2;
}
.hero__lead {
  max-width: 720px;
  margin: 0;
  color: var(--ink-2, #56544c);
  font-size: 15px;
  line-height: 1.8;
}

/* Toolbox */
.toolbox { margin-top: 8px; }

/* 进度条 */
.progress-band {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
}
.progress-band__label {
  color: var(--ink-2, #56544c);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.progress-band__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2, #eeede7);
  overflow: hidden;
}
.progress-band__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent, #5f7c61);
  transition: width 220ms ease;
}
.progress-band__value {
  color: var(--accent-deep, #42584a);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* 布局：左侧章节目录 + 右侧内容 */
.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* 章节目录 */
.chapters {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
}
.chapters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 6px 6px;
}
.chapters__title {
  color: var(--ink, #24231f);
  font-size: 13px;
  font-weight: 600;
}
.chapters__count {
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
}
.chapter-nav { display: grid; gap: 4px; }
.chapter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control, 10px);
  background: transparent;
  color: var(--ink-2, #56544c);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chapter-btn:hover { background: var(--surface-2, #eeede7); }
.chapter-btn.is-active {
  border-color: var(--accent, #5f7c61);
  background: var(--accent-soft, #e6ece1);
  color: var(--accent-deep, #42584a);
}
.chapter-btn__num {
  flex: none;
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
}
.chapter-btn.is-active .chapter-btn__num { color: var(--accent, #5f7c61); }
.chapter-btn__label { flex: 1; font-size: 13px; line-height: 1.4; }
.chapter-btn__done {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line-strong, #d9d6ca);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.chapter-btn.is-done .chapter-btn__done {
  background: var(--accent, #5f7c61);
  border-color: var(--accent, #5f7c61);
  color: #fff;
}
.chapters__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e7e5dc);
}

/* 右侧内容 */
.guide-content { min-width: 0; }

/* 章节头 */
.chapter-head { margin-bottom: 20px; }
.chapter-head__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.chapter-head__num::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent, #5f7c61);
}
.chapter-head__title {
  margin: 8px 0 6px;
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-deep, #42584a);
  line-height: 1.25;
}
.chapter-head__english {
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.chapter-head__intro {
  margin: 12px 0 0;
  color: var(--ink-2, #56544c);
  font-size: 15px;
  line-height: 1.8;
}
.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: 999px;
  color: var(--ink-2, #56544c);
  background: var(--surface, #fff);
  font-size: 12px;
  line-height: 1;
}
.chip strong { color: var(--accent-deep, #42584a); font-weight: 600; }

/* 步骤卡片 */
.step-list { display: grid; gap: 14px; }
.step-card {
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
  overflow: hidden;
}
.step-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.step-check {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong, #d9d6ca);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 160ms ease, border-color 160ms ease;
}
.step-card.is-done .step-check {
  background: var(--accent, #5f7c61);
  border-color: var(--accent, #5f7c61);
  color: #fff;
}
.step-check svg { width: 15px; height: 15px; }
.step-card__title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #24231f);
  line-height: 1.45;
}
.step-card.is-done .step-card__title { color: var(--muted, #6b685d); text-decoration: line-through; text-decoration-thickness: 1px; }
.step-card__seq {
  flex: none;
  color: var(--muted, #6b685d);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
}
.step-card__body {
  padding: 0 16px 16px 54px;
  display: grid;
  gap: 10px;
}
.step-what { margin: 0; color: var(--ink-2, #56544c); font-size: 14px; line-height: 1.75; }
.step-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.step-field {
  padding: 10px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-control, 10px);
  background: var(--surface-2, #eeede7);
}
.step-field__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted, #6b685d);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.step-field__value { color: var(--ink, #24231f); font-size: 13px; line-height: 1.5; }
.step-materials { grid-column: 1 / -1; }
.step-materials__label { color: var(--muted, #6b685d); font-size: 11px; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.material-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.material-chip {
  padding: 5px 9px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--ink-2, #56544c);
  font-size: 12px;
  line-height: 1;
}

/* 章节翻页 */
.chapter-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.chapter-pager .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 总览（第一个导航项） */
.overview { display: grid; gap: 20px; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.kpi {
  padding: 16px 18px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
}
.kpi__value {
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-deep, #42584a);
  line-height: 1.1;
}
.kpi__label { margin-top: 6px; color: var(--muted, #6b685d); font-size: 12px; }
.overview .btn--primary { align-self: flex-start; }
.btn--primary { background: var(--accent, #5f7c61); color: #fff; }
.btn--primary:hover { background: var(--accent-deep, #42584a); }

/* 面板 */
.panel {
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #e7e5dc);
  background: var(--surface-2, #eeede7);
}
.panel__head h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink, #24231f); }
.panel__code { color: var(--muted, #6b685d); font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 10px; letter-spacing: 0.1em; }
.panel__body { padding: 16px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line, #e7e5dc); vertical-align: top; }
.table th { color: var(--muted, #6b685d); font-weight: 500; font-size: 12px; white-space: nowrap; }
.table td { color: var(--ink, #24231f); line-height: 1.5; }
.table .num { text-align: right; font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); }
.table tbody tr:last-child td { border-bottom: none; }
.td-strong { font-weight: 600; color: var(--ink, #24231f); }

/* 完整清单勾选 */
.checklist { display: grid; gap: 6px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-control, 10px);
  cursor: pointer;
  transition: background 140ms ease;
}
.check-row:hover { background: var(--surface-2, #eeede7); }
.check-row input { width: 17px; height: 17px; accent-color: var(--accent, #5f7c61); }
.check-row__label { flex: 1; font-size: 13px; color: var(--ink-2, #56544c); line-height: 1.4; }
.check-row.is-done .check-row__label { color: var(--muted, #6b685d); text-decoration: line-through; }
.check-row__tag { color: var(--muted, #6b685d); font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 11px; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--accent, #5f7c61);
  border-radius: var(--radius-control, 10px);
  background: var(--surface, #fff);
  color: var(--accent-deep, #42584a);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--accent-soft, #e6ece1); }
.btn--ghost { border-color: var(--line-strong, #d9d6ca); background: transparent; color: var(--ink-2, #56544c); }
.btn--ghost:hover { border-color: var(--accent, #5f7c61); color: var(--accent-deep, #42584a); background: var(--accent-soft, #e6ece1); }
.btn--danger { border-color: var(--danger, #b0594b); color: var(--danger, #b0594b); }
.btn--danger:hover { background: rgba(176, 89, 75, 0.1); }
.btn .btn__note { font-size: 11px; color: inherit; opacity: 0.7; }

/* 折叠总览面板按钮 */
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* 页脚 */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 18px 0 40px;
  border-top: 1px solid var(--line, #e7e5dc);
  color: var(--muted, #6b685d);
  font-size: 12px;
}
.footer span:last-child { text-align: right; }

/* 响应式 */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .chapters { position: static; }
  .chapter-nav { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .step-fields { grid-template-columns: 1fr; }
  .step-card__body { padding-left: 16px; }
  .main { width: min(1120px, calc(100% - 32px)); }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .chapter-nav { grid-template-columns: 1fr; }
  .progress-band { flex-wrap: wrap; }
  .footer { flex-direction: column; }
  .footer span:last-child { text-align: left; }
}

/* ---------------- 章节搜索 ---------------- */
.chapter-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 12px 12px;
}
.chapter-search svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted, #6b685d);
  pointer-events: none;
}
.chapter-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line-strong, #d9d6ca);
  border-radius: var(--radius-control, 10px);
  background: var(--surface, #ffffff);
  color: var(--ink, #24231f);
  font-size: 13px;
}
.chapter-search input:focus {
  outline: none;
  border-color: var(--accent, #5f7c61);
  box-shadow: 0 0 0 3px var(--accent-soft, #e6ece1);
}
.chapter-search input::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; }

/* 搜索结果 */
.search-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.search-head__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--accent-deep, #42584a); }
.search-head__count { color: var(--muted, #6b685d); font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 12px; }
.search-list { display: grid; gap: 8px; }
.search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-control, 10px);
  background: var(--surface, #ffffff);
}
.search-hit__tag {
  flex: none;
  min-width: 30px;
  text-align: center;
  padding: 3px 6px;
  border-radius: var(--radius-small, 7px);
  background: var(--accent-soft, #e6ece1);
  color: var(--accent-deep, #42584a);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
  font-weight: 500;
}
.search-hit__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.search-hit__title { font-size: 13px; color: var(--ink, #24231f); }
.search-hit__what {
  color: var(--muted, #6b685d);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-hit__go { flex: none; }
.empty-tip { margin: 0; color: var(--muted, #6b685d); font-size: 13px; }
mark {
  background: var(--accent-soft, #e6ece1);
  color: var(--accent-deep, #42584a);
  border-radius: 3px;
  padding: 0 1px;
}

/* ---------------- 坑点面板 ---------------- */
.pitfall-panel, .step-card { scroll-margin-top: 90px; }
.pitfall-panel { margin-top: 18px; }
.pitfall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pitfall {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-left: 3px solid var(--warning, #a47735);
  border-radius: var(--radius-control, 10px);
  background: var(--surface, #ffffff);
}
.pitfall__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pitfall__title { font-size: 13px; color: var(--ink, #24231f); }
.pitfall__desc { color: var(--ink-2, #56544c); font-size: 12px; line-height: 1.6; }
.pitfall__link {
  flex: none;
  align-self: center;
  color: var(--accent, #5f7c61);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent, #5f7c61);
  white-space: nowrap;
}
.pitfall__link:hover { color: var(--accent-deep, #42584a); border-bottom-color: var(--accent-deep, #42584a); }
.pitfall-lead { margin: 0 0 10px; color: var(--ink-2, #56544c); font-size: 13px; font-weight: 500; }
.pitfall-lead--mt { margin-top: 16px; }
.pitfall-note { margin: 12px 0 0; color: var(--muted, #6b685d); font-size: 12px; line-height: 1.6; }
.pitfall-note code {
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
  background: var(--surface-2, #eeede7);
  padding: 1px 5px;
  border-radius: var(--radius-small, 7px);
}
.pitfall-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pitfall-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: 999px;
  background: var(--surface, #ffffff);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pitfall-chip strong { font-size: 12px; font-weight: 500; color: var(--ink, #24231f); }
.pitfall-chip span { color: var(--muted, #6b685d); font-size: 11px; }
.pitfall-chip:hover { border-color: var(--accent, #5f7c61); background: var(--accent-soft, #e6ece1); }

/* ---------------- 步骤折叠 ---------------- */
.step-fold {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: var(--radius-small, 7px);
  color: var(--muted, #6b685d);
  transition: background 0.18s ease, color 0.18s ease;
}
.step-fold:hover { background: var(--surface-2, #eeede7); color: var(--ink, #24231f); }
.step-fold svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.step-card.is-collapsed .step-fold svg { transform: rotate(-90deg); }
.step-card.is-collapsed .step-card__body { display: none; }
.step-card.is-collapsed .step-card__head { border-bottom: none; }
.step-card.is-flash { animation: step-flash 1.6s ease; }
@keyframes step-flash {
  0%, 60% { background: var(--accent-soft, #e6ece1); border-color: var(--accent, #5f7c61); }
  100% { background: var(--surface, #ffffff); }
}

/* ---------------- 章头操作 ---------------- */
.chip--action {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2, #56544c);
  background: var(--surface, #ffffff);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.chip--action:hover { border-color: var(--accent, #5f7c61); color: var(--accent-deep, #42584a); }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent, #5f7c61);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent, #5f7c61);
}
.doc-link:hover { color: var(--accent-deep, #42584a); border-bottom-color: var(--accent-deep, #42584a); }

/* 完成日期 */
.check-row__date {
  flex: none;
  color: var(--success, #4f9d6b);
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
}

/* 清单分组标题与表注 */
.checklist__group {
  margin: 12px 0 8px;
  color: var(--accent-deep, #42584a);
  font-size: 13px;
  font-weight: 600;
}
.note-muted {
  margin: 12px 0 0;
  color: var(--muted, #6b685d);
  font-size: 12px;
}

/* 打印（导出清单） */
@media print {
  body::after { display: none !important; }
  .topbar, .chapters, .chapter-pager, .summary-actions, .step-check,
  .chapter-search, .step-fold, .chip--action, .doc-link, .pitfall__link { display: none !important; }
  .step-card { break-inside: avoid; box-shadow: none; }
  .step-card.is-collapsed .step-card__body { display: block; }
  .pitfall { break-inside: avoid; }
  .main, .footer { width: 100%; }
  .guide-layout { grid-template-columns: 1fr; }
  .step-card.is-done .step-card__title { text-decoration: none; color: var(--ink); }
  .chapter-head__title { font-size: 20px; }
}

/* ================= 财务管理主题扩展 ================= */

/* 样本公司切换条 */
.sample-switch {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-panel, 18px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(36, 35, 31, 0.05));
}
.sample-switch__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sample-switch__head strong { font-size: 14px; color: var(--ink, #24231f); }
.sample-switch__head span { font-size: 12px; color: var(--muted, #6b685d); }
.sample-switch__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #e7e5dc);
  border-radius: var(--radius-control, 10px);
  background: var(--surface-2, #eeede7);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.sample-opt:hover { border-color: var(--accent, #5f7c61); }
.sample-opt.is-active {
  border-color: var(--accent, #5f7c61);
  background: var(--accent-soft, #e6ece1);
  box-shadow: inset 0 0 0 1px var(--accent, #5f7c61);
}
.sample-opt__tag {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-deep, #42584a); color: #fff;
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', sans-serif);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.sample-opt.is-active .sample-opt__tag { background: var(--accent, #5f7c61); }
.sample-opt__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sample-opt__body strong { font-size: 13.5px; color: var(--ink, #24231f); }
.sample-opt__body small { font-size: 11px; color: var(--muted, #6b685d); }
.sample-switch__story { margin: 12px 0 0; font-size: 13px; color: var(--ink-2, #56544c); line-height: 1.7; }
@media (max-width: 720px) { .sample-switch__opts { grid-template-columns: 1fr; } }

/* 健康度徽章 */
.lvl {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; flex: none;
}
.lvl--ok { background: rgba(79, 157, 107, 0.14); color: #2e7247; }
.lvl--watch { background: rgba(164, 119, 53, 0.16); color: #8a5f22; }
.lvl--danger { background: rgba(176, 89, 75, 0.14); color: #9c4636; }
.lvl--info { background: var(--surface-2, #eeede7); color: var(--ink-2, #56544c); }

/* 指标卡 */
.metric-en {
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--muted, #6b685d); font-weight: 400; margin-left: 6px;
}
.step-card__head .lvl { margin-left: auto; }
.step-card__head .step-fold { margin-left: 0; }
.metric-body { gap: 12px; }
.metric-formula {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong, #d9d6ca);
  border-radius: 10px;
  background: var(--surface-2, #eeede7);
}
.metric-formula > span { flex: none; padding-top: 2px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted, #6b685d); }
.metric-formula code { font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 13px; color: var(--accent-deep, #42584a); line-height: 1.6; }
.metric-formula code small { font-size: 11px; color: var(--muted, #6b685d); }
.metric-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.metric-value__co { font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 11px; letter-spacing: 0.08em; color: var(--muted, #6b685d); }
.metric-value strong {
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', sans-serif);
  font-size: 24px; font-weight: 700; line-height: 1.1;
  color: var(--accent-deep, #42584a);
}
.metric-block b, .metric-note b {
  display: block; margin-bottom: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted, #6b685d);
}
.metric-block p, .metric-block ul { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2, #56544c); }
.metric-block ul { padding-left: 18px; }
.metric-block li { margin: 2px 0; }
.metric-note { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft, #e6ece1); }
.metric-note p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--accent-deep, #42584a); }
.metric-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line, #e7e5dc); }
.metric-related b { font-size: 12px; font-weight: 500; color: var(--muted, #6b685d); }
.metric-related__link {
  font-size: 12px; color: var(--accent, #5f7c61); text-decoration: none;
  border-bottom: 1px dashed var(--accent, #5f7c61);
}
.metric-related__link:hover { color: var(--accent-deep, #42584a); border-bottom-color: var(--accent-deep, #42584a); }
.metric-related .dot { color: var(--line-strong, #d9d6ca); }

/* 报表面板 */
.fin-sub { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--accent-deep, #42584a); }
.fin-sub:first-child { margin-top: 0; }
.check-row-t td { background: var(--accent-soft, #e6ece1); font-weight: 600; color: var(--accent-deep, #42584a); }

/* 杜邦分解 */
.dupont { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 18px 8px; }
.dupont__factor {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 110px; padding: 14px 16px;
  border: 1px solid var(--line, #e7e5dc); border-radius: 12px;
  background: var(--surface-2, #eeede7);
}
.dupont__factor b {
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', sans-serif);
  font-size: 22px; font-weight: 700; color: var(--accent-deep, #42584a);
}
.dupont__factor small { font-size: 11px; color: var(--muted, #6b685d); text-align: center; }
.dupont__op { font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', sans-serif); font-size: 20px; color: var(--muted, #6b685d); }

/* 信号扫描 */
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.signal {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line, #e7e5dc); border-radius: 10px;
  background: var(--surface, #ffffff);
  font-size: 13px;
}
.signal__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong, #d9d6ca); }
.signal--hit { border-color: rgba(176, 89, 75, 0.4); background: rgba(176, 89, 75, 0.06); }
.signal--hit .signal__dot { background: var(--danger, #b0594b); box-shadow: 0 0 0 3px rgba(176, 89, 75, 0.15); }
.signal__label { flex: 1; color: var(--ink-2, #56544c); }
.signal--hit .signal__label { color: var(--ink, #24231f); font-weight: 500; }
.signal__val { font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace); font-size: 12px; color: var(--muted, #6b685d); text-align: right; }
.signal--hit .signal__val { color: #9c4636; }
.signal-verdict { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.signal-verdict--ok { background: rgba(79, 157, 107, 0.12); color: #2e7247; }
.signal-verdict--warn { background: rgba(176, 89, 75, 0.1); color: #9c4636; }

/* 总览对比表 */
.ov-table .ov-val { font-weight: 600; color: var(--ink, #24231f); }
.ov-table .lvl { margin-left: 4px; }
.ov-tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft, #e6ece1); font-size: 12px; color: var(--accent-deep, #42584a); }

/* 章节进度角标 */
.chapter-btn__badge {
  flex: none;
  font-family: var(--font-mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 10px; color: var(--muted, #6b685d);
  background: var(--surface-2, #eeede7);
  padding: 2px 6px; border-radius: 999px;
}
.chapter-btn.is-done .chapter-btn__badge { background: var(--accent, #5f7c61); color: #fff; }

@media print {
  .sample-switch { display: none !important; }
  .lvl { border: 1px solid #ccc; background: none !important; color: #444 !important; }
}

/* ================= 可读性与可点性优化（2026-09-06） ================= */

/* 面板内多段正文：留出段距、加深颜色、限制行长 */
.panel__body .step-what { margin: 0 0 12px; font-size: 14px; line-height: 1.9; color: #3f3d35; max-width: 50em; }
.panel__body .step-what:last-child { margin-bottom: 0; }
.panel__body .step-tip { margin-bottom: 0; }
.chapter-head__intro { color: #3f3d35; }

/* 总览：三套样本公司选卡 */
.sample-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sample-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong, #d9d6ca);
  border-radius: 12px;
  background: var(--surface-2, #eeede7);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.sample-card:hover {
  border-color: var(--accent, #5f7c61);
  background: var(--accent-soft, #e6ece1);
  box-shadow: var(--shadow-md, 0 2px 6px rgba(36,35,31,0.05), 0 16px 40px rgba(36,35,31,0.1));
  transform: translateY(-1px);
}
.sample-card.is-active {
  border-color: var(--accent, #5f7c61);
  background: var(--accent-soft, #e6ece1);
  box-shadow: inset 0 0 0 1px var(--accent, #5f7c61);
}
.sample-card__tag {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-deep, #42584a); color: #fff;
  font-family: var(--font-display, 'Space Grotesk', 'PingFang SC', sans-serif);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.sample-card.is-active .sample-card__tag { background: var(--accent, #5f7c61); }
.sample-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sample-card__body strong { font-size: 14.5px; color: var(--ink, #24231f); }
.sample-card__body small { font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted, #6b685d); }
.sample-card__body > span { font-size: 12.5px; line-height: 1.75; color: var(--ink-2, #56544c); }
.sample-card__pick {
  margin-top: auto; padding: 5px 12px; border-radius: 999px;
  background: var(--surface, #fff); border: 1px solid var(--accent, #5f7c61);
  font-size: 12px; font-weight: 600; color: var(--accent-deep, #42584a);
}
.sample-card:hover .sample-card__pick { background: var(--accent, #5f7c61); color: #fff; }
.sample-card.is-active .sample-card__pick { background: var(--accent, #5f7c61); color: #fff; }
@media (max-width: 820px) { .sample-cards { grid-template-columns: 1fr; } }

/* 链接可点性：章节全文改为描边按钮、关联指标改为胶囊芯片 */
.doc-link {
  border: 1px solid var(--accent, #5f7c61);
  border-bottom: 1px solid var(--accent, #5f7c61);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface, #fff);
  font-weight: 500;
}
.doc-link:hover { background: var(--accent-soft, #e6ece1); }
.metric-related b { margin-right: 2px; }
.metric-related__link {
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft, #e6ece1);
  color: var(--accent-deep, #42584a);
  border-bottom: none;
  font-weight: 500;
}
.metric-related__link:hover { background: var(--accent, #5f7c61); color: #fff; }
.metric-related .dot { display: none; }
