/* ==========================================================================
   审小牛 AIAuditOx — 全局样式
   设计令牌集中在 :root，换肤只改这里
   ========================================================================== */

:root {
  /* 色彩 */
  --bg:            #F5F8FA;
  --surface:       #FFFFFF;
  --surface-2:     #EFF4F8;
  --surface-3:     #E4EDF4;

  --ink:           #0D1F2D;
  --ink-2:         #46606F;
  --ink-3:         #7B93A3;

  --line:          #E1E8EF;
  --line-2:        #CBD8E2;

  --brand:         #14547F;
  --brand-600:     #0F4165;
  --brand-700:     #0A3049;
  --brand-100:     #D8E7F2;
  --brand-50:      #EDF4FA;

  --accent:        #A8792A;
  --accent-600:    #8C641F;
  --accent-100:    #F0E0BF;
  --accent-50:     #FBF5E9;

  --ok:            #15735A;
  --ok-50:         #E8F5F0;
  --warn:          #A65A0C;
  --warn-50:       #FCF2E4;
  --danger:        #B03A30;
  --danger-50:     #FBEDEB;

  /* 组色（Z 资产 / F 负债 / Q 权益 / S 损益 / A 通用） */
  --cycle-z:       #14547F;  --cycle-z-bg:  #EAF2F9;
  --cycle-f:       #9A5B12;  --cycle-f-bg:  #FBF0E0;
  --cycle-q:       #5B3E8E;  --cycle-q-bg:  #F0EBF9;
  --cycle-s:       #15735A;  --cycle-s-bg:  #E7F4EF;
  --cycle-a:       #55646F;  --cycle-a-bg:  #EDF1F4;

  /* 认定色（E 存在性 / C 完整性 / A 准确性 / V 计价 / P 列报） */
  --as-E: #1F6FB2;  --as-E-bg: #E8F1F9;
  --as-C: #6B4BA8;  --as-C-bg: #EFEBF8;
  --as-A: #0F7B7B;  --as-A-bg: #E6F4F4;
  --as-V: #A8630F;  --as-V-bg: #FBF0E1;
  --as-P: #55707E;  --as-P-bg: #ECF1F3;

  /* 执行方式 */
  --mode-auto:   #15735A;  --mode-auto-bg:   #E7F4EF;
  --mode-hybrid: #14547F;  --mode-hybrid-bg: #EAF2F9;
  --mode-manual: #A65A0C;  --mode-manual-bg: #FBF0E0;

  /* 排版 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;

  /* 尺寸 */
  --container:     1160px;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  --shadow-xs:     0 1px 2px rgba(13, 31, 45, .05);
  --shadow-sm:     0 1px 3px rgba(13, 31, 45, .07), 0 1px 2px rgba(13, 31, 45, .04);
  --shadow:        0 4px 14px rgba(13, 31, 45, .08);
  --shadow-lg:     0 14px 40px rgba(13, 31, 45, .12);

  --header-h:      64px;
  --ease:          cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ⚠️ svg 兜底尺寸：只有 viewBox、没有任何尺寸约束的 SVG 会按替换元素默认尺寸渲染
   （实测撑到 149×149，把卡片撑爆）。这里给 1em 兜底；
   各处带 class 的规则（如 `.btn svg{width:16px}`）优先级更高，不受影响。 */
img, svg { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: var(--brand-100); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

.page { min-height: calc(100vh - var(--header-h)); padding-bottom: 72px; }
.stack-sm > * + * { margin-top: 8px; }
.stack    > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }

.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 联系页联系方式卡：固定两列（4 张卡排成 2×2），窄屏自动落成单列 */
@media (min-width: 860px) {
  #contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.brand__sub {
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--brand); background: var(--brand-50); font-weight: 600; }

.nav-toggle {
  display: none; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); align-items: center; justify-content: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: all .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn--accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.btn--quiet { background: transparent; color: var(--ink-2); padding: 8px 12px; }
.btn--quiet:hover { background: var(--surface-2); color: var(--ink); }

.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 徽标 / 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.chip--link:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip--count::after { content: attr(data-count); color: inherit; opacity: .6; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 5px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em;
}
.badge--brand   { background: var(--brand-50);   color: var(--brand); }
.badge--accent  { background: var(--accent-50);  color: var(--accent-600); }
.badge--ok      { background: var(--ok-50);      color: var(--ok); }
.badge--warn    { background: var(--warn-50);    color: var(--warn); }
.badge--danger  { background: var(--danger-50);  color: var(--danger); }
.badge--muted   { background: var(--surface-2);  color: var(--ink-3); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card__body { padding: 20px; }
.card--hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }

/* Skill 卡片 */
.skill-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.skill-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0; transition: opacity .2s var(--ease);
}
.skill-card:hover::before { opacity: 1; }

.skill-card__head { display: flex; gap: 14px; align-items: flex-start; }
.skill-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-50), var(--surface-2));
  border: 1px solid var(--line);
  color: var(--brand); font-weight: 700; font-size: 17px;
}
.skill-card__title {
  font-size: 16.5px; font-weight: 650; color: var(--ink);
  display: block; margin-bottom: 3px;
}
.skill-card__title:hover { color: var(--brand); }
.skill-card__meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.skill-card__summary {
  margin-top: 12px; font-size: 14px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.skill-card__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card__foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* ---------- 页面头部 ---------- */
.page-head { padding: 44px 0 28px; }
.page-head__title { font-size: 30px; }
.page-head__desc { margin-top: 10px; color: var(--ink-2); max-width: 640px; }
.page-head__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 420px at 82% -10%, var(--brand-50), transparent 70%),
    radial-gradient(600px 320px at 8% 110%, var(--accent-50), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 78%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__title { font-size: 44px; line-height: 1.2; letter-spacing: -.03em; }
/* z-index:0 建立层叠上下文，保证 ::after 高亮块不被 hero 背景盖住 */
.hero__title em { font-style: normal; color: var(--brand); position: relative; z-index: 0; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: var(--accent-100); z-index: -1; border-radius: 2px;
}
.hero__desc { margin-top: 20px; font-size: 16.5px; color: var(--ink-2); max-width: 540px; }
.hero__actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__points { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero__point { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.hero__point svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

.hero__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__panel-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.dot--brand { background: var(--brand); opacity: .55; }
.dot--accent { background: var(--accent); opacity: .55; }
.hero__panel-body { padding: 18px; }

/* ---------- 统计条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: 28px; font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat__label { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 区块标题 ---------- */
.section { padding: 56px 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
/* flex 子项默认 min-width:auto，长说明文字会顶开容器并与右侧按钮重叠 */
.section__head > div { min-width: 0; }
.section__title { font-size: 22px; }
.section__desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}
.input {
  width: 100%; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); font-size: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-box .input { padding-left: 38px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.input::placeholder { color: var(--ink-3); }

.select {
  padding: 10px 34px 10px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: var(--surface);
  font-size: 14px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B93A3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }

.result-count { font-size: 13.5px; color: var(--ink-3); margin: 18px 0 14px; }
.result-count strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 下载卡片（核心组件） ---------- */
.dl-card {
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand-50), var(--surface) 46%);
  overflow: hidden;
}
.dl-card__head {
  padding: 16px 20px; border-bottom: 1px solid var(--brand-100);
  display: flex; align-items: center; gap: 10px;
}
.dl-card__head h3 { font-size: 15px; }
.dl-card__head svg { width: 18px; height: 18px; color: var(--brand); }
.dl-card__body { padding: 20px; }

.dl-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.dl-meta__item { }
.dl-meta__label { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.dl-meta__value { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-all; }

.dl-code {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--line-2);
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  letter-spacing: .16em; color: var(--brand);
}
.dl-code button {
  border: 0; background: transparent; color: var(--ink-3);
  display: grid; place-items: center; padding: 2px; border-radius: 4px;
}
.dl-code button:hover { color: var(--brand); background: var(--brand-50); }
.dl-code button svg { width: 14px; height: 14px; }

.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dl-note {
  margin-top: 16px; padding: 11px 14px;
  background: var(--warn-50); border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--ink-2);
}
.dl-empty {
  padding: 18px; text-align: center; font-size: 14px; color: var(--ink-3);
  background: var(--surface-2); border-radius: var(--radius-sm);
}

/* ---------- SkillHub 安装入口（对话安装提示词） ----------
   与网盘入口并列：网盘块在上、本块在下，用虚线分隔。 */
.dl-sh {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.dl-sh__head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px;
}
.dl-sh__head svg { width: 15px; height: 15px; color: var(--brand); }
.dl-sh__badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
}
.dl-sh__hint { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; line-height: 1.6; }

/* 提示词框：整块可点击复制 */
.dl-prompt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 12.5px; line-height: 1.75; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dl-prompt:hover { border-color: var(--brand); background: var(--brand-50); }
.dl-prompt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dl-prompt__text { flex: 1; min-width: 0; word-break: break-all; }
.dl-prompt__text code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--surface-2); padding: 1px 5px; border-radius: 4px;
  word-break: break-all;
}
.dl-prompt__copy {
  flex-shrink: 0; color: var(--ink-3);
  display: grid; place-items: center; padding: 3px; border-radius: 4px;
}
.dl-prompt:hover .dl-prompt__copy { color: var(--brand); }
.dl-prompt__copy svg { width: 14px; height: 14px; }

.dl-sh__meta {
  margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
}
.dl-sh__meta a { color: var(--brand); }

/* 未上架提示条 */
.dl-sh__offline {
  margin-top: 16px; padding: 11px 14px;
  background: var(--warn-50); border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--ink-2);
}
.dl-sh .dl-sh__offline { margin-top: 0; }

@media (max-width: 640px) {
  .dl-prompt { font-size: 12px; }
  .dl-prompt__text code { font-size: 11.5px; }
}

/* 步骤条 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 20px 20px 20px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  margin-bottom: 12px;
}
.step__title { font-size: 15px; margin-bottom: 6px; }
.step__desc { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 面包屑 ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); padding-top: 24px; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb svg { width: 12px; height: 12px; opacity: .6; }
.crumb__current { color: var(--ink-2); }

/* ---------- 详情页布局 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 24px; }
.detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.detail-head__title { font-size: 32px; letter-spacing: -.025em; }
.detail-head__meta { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.detail-head__meta span { display: flex; align-items: center; gap: 6px; }
.detail-head__meta svg { width: 14px; height: 14px; }
.detail-summary {
  margin-top: 18px; font-size: 16px; color: var(--ink-2);
  padding-left: 16px; border-left: 3px solid var(--accent-100);
}

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar > * + * { margin-top: 20px; }
.sidebar__title { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.toc { list-style: none; font-size: 13.5px; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); }
.toc li a:hover { color: var(--brand); border-left-color: var(--brand); }
.toc li.is-active > a { color: var(--brand); font-weight: 600; border-left-color: var(--brand); }
.toc li.depth-3 a { padding-left: 26px; font-size: 13px; color: var(--ink-3); }

/* ---------- Markdown 正文 ---------- */
.prose { font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 21px; margin: 42px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 88px;
}
.prose h3 { font-size: 17px; margin: 30px 0 10px; scroll-margin-top: 88px; }
.prose h4 { font-size: 15.5px; margin: 24px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--brand-100); }
.prose a:hover { border-bottom-color: var(--brand); }

.prose blockquote {
  margin: 20px 0; padding: 14px 20px;
  background: var(--brand-50); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2); font-size: 15px;
}
.prose blockquote p { margin: 0; }

.prose code {
  font-family: var(--font-mono); font-size: .875em;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--brand-700);
  border: 1px solid var(--line);
}
.prose pre {
  margin: 20px 0; padding: 16px 18px; overflow-x: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); line-height: 1.65;
}
.prose pre code { padding: 0; background: none; border: 0; color: var(--ink); font-size: 13px; }

.prose table {
  width: 100%; margin: 20px 0; border-collapse: collapse;
  font-size: 14px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.prose thead { background: var(--surface-2); }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 650; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: var(--brand-50); }

.prose img { margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--line); }
.prose hr { margin: 34px 0; }

/* ---------- 提示条 ---------- */
.alert {
  display: flex; gap: 12px; padding: 15px 18px;
  border-radius: var(--radius); font-size: 14px;
  border: 1px solid; align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert__title { font-weight: 650; margin-bottom: 3px; }
.alert p { color: var(--ink-2); font-size: 13.5px; }
.alert--info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert--info svg { color: var(--brand); }
.alert--warn { background: var(--warn-50); border-color: #F0DFC0; color: #6B3B08; }
.alert--warn svg { color: var(--warn); }
.alert--ok { background: var(--ok-50); border-color: #CBE7DC; color: #0C5540; }
.alert--ok svg { color: var(--ok); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 72px 24px; }
.empty svg { width: 46px; height: 46px; color: var(--line-2); margin: 0 auto 18px; }
.empty__title { font-size: 17px; margin-bottom: 6px; }
.empty__desc { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }

/* ---------- 骨架屏 ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton-card { height: 214px; border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px; padding: 48px 0 28px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col__title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.footer-links { list-style: none; font-size: 13.5px; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--brand); }
.footer-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; max-width: 300px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------- 标签云 ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: all .18s var(--ease);
}
.tag-item:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); transform: translateY(-1px); }
.tag-item.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag-item__count {
  font-size: 11.5px; padding: 1px 7px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.tag-item.is-active .tag-item__count { background: rgba(255,255,255,.22); color: #fff; }

.tag-card__count { font-size: 26px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field__label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.field__error { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error .input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }
textarea.input { resize: vertical; min-height: 130px; line-height: 1.7; }

/* ---------- 其他 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  display: flex; align-items: center; gap: 8px;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #6EE7B7; }

/* ---------- 弹窗 ---------- */
body.has-modal { overflow: hidden; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13, 31, 45, .46);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  opacity: 0; transition: opacity .2s var(--ease);
}
.modal-backdrop.is-open { opacity: 1; }

.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 452px;
  max-height: calc(100vh - 44px); overflow-y: auto;
  padding: 30px 28px 24px;
  text-align: center;
  transform: translateY(14px) scale(.985);
  transition: transform .24s var(--ease);
}
.modal-backdrop.is-open .modal { transform: none; }

.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.modal__close:hover { background: var(--surface-2); color: var(--ink); }
.modal__close svg { width: 16px; height: 16px; }

.modal__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ok-50); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.modal__icon svg { width: 26px; height: 26px; }

.modal__title { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

.modal__desc {
  margin-top: 12px;
  font-size: 14px; line-height: 1.85; color: var(--ink-2);
  text-align: left;
}
.modal__desc p + p { margin-top: 9px; }
.modal__desc strong { color: var(--ink); font-weight: 650; }

.modal__extra {
  margin-top: 16px; padding: 12px 14px;
  background: var(--brand-50); border-radius: var(--radius-sm);
  font-size: 12.5px; line-height: 1.75; color: var(--brand-600);
  text-align: left;
  display: flex; gap: 9px; align-items: flex-start;
}
.modal__extra svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

.modal__actions {
  margin-top: 22px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.modal__actions .btn { min-width: 108px; justify-content: center; }

@media (max-width: 520px) {
  .modal { padding: 26px 20px 20px; }
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
}

/* ---------- 微信二维码卡片 ---------- */
.qr-card { display: flex; gap: 16px; align-items: flex-start; }

.qr-card__img {
  width: 104px; height: 104px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 5px;
  image-rendering: pixelated;
  cursor: zoom-in;
  position: relative; z-index: 1;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.qr-card__img img { width: 100%; height: 100%; display: block; pointer-events: none; }

/* 悬停/聚焦放大：以左侧中心为原点向右扩，浮在文字之上，方便直接拿手机扫 */
.qr-card__img:hover,
.qr-card__img:focus-visible {
  transform: scale(1.85);
  transform-origin: left center;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  outline: none;
}
.qr-card__img:focus-visible { border-color: var(--brand); }

/* 放大后的二维码弹窗 */
.qr-zoom { text-align: center; }
.qr-zoom img {
  width: min(70vw, 296px); height: auto; display: block;
  margin: 0 auto; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qr-zoom__hint { margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 微信公众号名片（参考微信名片结构：头像 + 名称 + ID，下方二维码） ---------- */
.mp-card { padding: 18px 20px 20px; }

.mp-card__head {
  display: flex; align-items: center; gap: 11px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mp-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface-2);
}
.mp-card__avatar--blank {
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); border-color: var(--brand-100);
}
.mp-card__avatar--blank svg { width: 22px; height: 22px; }

.mp-card__name { font-size: 15.5px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.mp-card__id {
  font-size: 12px; color: var(--ink-3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mp-card__main { display: flex; gap: 16px; align-items: center; }
.mp-card__cta { font-size: 15.5px; font-weight: 650; color: var(--ink); margin-bottom: 5px; }
.mp-card__desc { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.75; }

/* 蜜罐字段：对真人不可见，对爬虫可见 */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.divider { height: 1px; background: var(--line); margin: 32px 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item__q { font-size: 15px; font-weight: 650; display: flex; gap: 10px; align-items: flex-start; }
.faq-item__q svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; margin-top: 4px; }
.faq-item__a { font-size: 14px; color: var(--ink-2); margin-top: 8px; padding-left: 27px; }

.kv { display: grid; grid-template-columns: 88px 1fr; gap: 10px 16px; font-size: 14px; }
.kv__k { color: var(--ink-3); }
.kv__v { color: var(--ink); word-break: break-word; }

/* ==========================================================================
   体系化组件：索引号 / 组 / 认定 / 执行方式 / 程序卡 / 工具卡 / 架构层
   ========================================================================== */

/* ---------- 索引号 ---------- */
.idx {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em;
  padding: 2px 8px; border-radius: 5px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.idx--lg { font-size: 14px; padding: 4px 11px; }
.idx--brand { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }

/* ---------- 组标识 ---------- */
.cyc {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 5px;
}
.cyc[data-c="Z"] { background: var(--cycle-z-bg); color: var(--cycle-z); }
.cyc[data-c="F"] { background: var(--cycle-f-bg); color: var(--cycle-f); }
.cyc[data-c="Q"] { background: var(--cycle-q-bg); color: var(--cycle-q); }
.cyc[data-c="S"] { background: var(--cycle-s-bg); color: var(--cycle-s); }
.cyc[data-c="A"] { background: var(--cycle-a-bg); color: var(--cycle-a); }

/* ---------- 认定 chip ---------- */
.as-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  border: 1px solid transparent;
}
.as-chip[data-a="E"] { background: var(--as-E-bg); color: var(--as-E); }
.as-chip[data-a="C"] { background: var(--as-C-bg); color: var(--as-C); }
.as-chip[data-a="A"] { background: var(--as-A-bg); color: var(--as-A); }
.as-chip[data-a="V"] { background: var(--as-V-bg); color: var(--as-V); }
.as-chip[data-a="P"] { background: var(--as-P-bg); color: var(--as-P); }
.as-chip.is-toggle { cursor: pointer; opacity: .55; }
.as-chip.is-toggle:hover { opacity: 1; }
.as-chip.is-toggle.is-active { opacity: 1; box-shadow: 0 0 0 2px currentColor inset; }

/* ---------- 执行方式 ---------- */
.mode {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 650;
  padding: 2px 8px; border-radius: 99px;
  white-space: nowrap;
}
.mode[data-m="auto"]   { background: var(--mode-auto-bg);   color: var(--mode-auto); }
.mode[data-m="hybrid"] { background: var(--mode-hybrid-bg); color: var(--mode-hybrid); }
.mode[data-m="manual"] { background: var(--mode-manual-bg); color: var(--mode-manual); }
.mode__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 程序卡列表（技能详情页） ---------- */
.proc-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.proc-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 150px 120px 92px;
  gap: 14px; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease);
  color: inherit;
}
.proc-row:last-child { border-bottom: 0; }
.proc-row:hover { background: var(--brand-50); }
.proc-row__id {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--brand);
}
/* 名称与来源必须各占一行 —— 它们是 span（行内元素），不设 block 会挤在同一行 */
.proc-row__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.proc-row__src { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.proc-row__as { display: flex; gap: 4px; flex-wrap: wrap; }
.proc-row__out { font-size: 12px; color: var(--ink-3); }

.proc-list__head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 150px 120px 92px;
  gap: 14px; padding: 10px 18px;
  background: var(--surface-2);
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* ---------- 程序卡详情 ---------- */
.proc-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.proc-hero__id {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--brand); letter-spacing: .08em;
}
.proc-hero__title { font-size: 28px; margin-top: 8px; letter-spacing: -.02em; }
.proc-hero__meta { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.step-list { list-style: none; counter-reset: st; }
.step-list li {
  position: relative; padding: 11px 0 11px 34px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px; line-height: 1.75;
}
.step-list li:last-child { border-bottom: 0; }
.step-list li::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: 11px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand);
  font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--font-mono);
}
.step-list li[data-lv="1"] { padding-left: 56px; font-size: 14px; color: var(--ink-2); }
.step-list li[data-lv="1"]::before { left: 22px; background: var(--surface-2); color: var(--ink-3); }
.step-list li[data-lv="2"] { padding-left: 78px; font-size: 13.5px; color: var(--ink-3); }
.step-list li[data-lv="2"]::before { left: 44px; background: var(--surface-2); color: var(--ink-3); }

.tag-script, .tag-rule, .tag-human {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; margin-right: 6px;
  vertical-align: 1px;
}
.tag-script { background: var(--mode-auto-bg);   color: var(--mode-auto); }
.tag-rule   { background: var(--as-C-bg);        color: var(--as-C); }
.tag-human  { background: var(--mode-manual-bg); color: var(--mode-manual); }

/* ---------- 六要素网格 ---------- */
.six-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.six-cell { background: var(--surface); padding: 20px; }
.six-cell__label {
  font-size: 12px; font-weight: 700; color: var(--accent-600);
  letter-spacing: .08em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.six-cell__label svg { width: 15px; height: 15px; }
.six-cell__body { font-size: 13.8px; line-height: 1.8; color: var(--ink-2); }
.six-cell__body ul { list-style: none; }
.six-cell__body li { position: relative; padding-left: 14px; margin: 5px 0; }
.six-cell__body li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--line-2);
}

/* ---------- 技能卡 v2 ---------- */
.skill-tile { display: flex; flex-direction: column; height: 100%; }
.skill-tile__top { display: flex; align-items: flex-start; gap: 12px; }
.skill-tile__code {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 5px 9px; border-radius: 6px; flex-shrink: 0;
}
.skill-tile__code[data-c="Z"] { background: var(--cycle-z-bg); color: var(--cycle-z); }
.skill-tile__code[data-c="F"] { background: var(--cycle-f-bg); color: var(--cycle-f); }
.skill-tile__code[data-c="Q"] { background: var(--cycle-q-bg); color: var(--cycle-q); }
.skill-tile__code[data-c="S"] { background: var(--cycle-s-bg); color: var(--cycle-s); }
.skill-tile__code[data-c="A"] { background: var(--cycle-a-bg); color: var(--cycle-a); }
.skill-tile__title { font-size: 16.5px; font-weight: 650; color: var(--ink); }
.skill-tile__title:hover { color: var(--brand); }
.skill-tile__desc {
  margin-top: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.skill-tile__metrics {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; gap: 18px; margin-top: auto;
}
.metric { display: flex; flex-direction: column; gap: 1px; }
.metric__num { font-size: 17px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.metric__label { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 工具卡 ---------- */
.tool-card { display: flex; flex-direction: column; height: 100%; }
.tool-card__head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; }
.tool-card__icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-50), var(--surface-2));
  border: 1px solid var(--line); color: var(--brand);
}
.tool-card__icon svg { width: 19px; height: 19px; }
.tool-card__name { font-size: 15.5px; font-weight: 650; }
.tool-card__id { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.tool-card__desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

.kv-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.kv-table td { padding: 6px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.kv-table tr:last-child td { border-bottom: 0; }
.kv-table td:first-child { width: 96px; color: var(--ink-3); white-space: nowrap; }
.kv-table code { font-family: var(--font-mono); font-size: 12px; color: var(--brand-700); background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }

/* ---------- 架构层 ---------- */
.arch { display: flex; flex-direction: column; gap: 12px; }
.arch-layer {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 20px 22px;
  position: relative; overflow: hidden;
}
.arch-layer::before {
  content: attr(data-no);
  position: absolute; right: 16px; top: 10px;
  font-family: var(--font-mono); font-size: 34px; font-weight: 800;
  color: var(--surface-3); line-height: 1;
}
.arch-layer__title { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.arch-layer__title svg { width: 17px; height: 17px; color: var(--brand); }
.arch-layer__desc { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.75; max-width: 82%; }
.arch-layer--core { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--surface) 60%); }
.arch-layer--out  { border-color: var(--accent-100); background: linear-gradient(180deg, var(--accent-50), var(--surface) 60%); }

/* ---------- 流程链 ---------- */
.chain { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.chain__node {
  flex: 1; min-width: 132px; padding: 16px 16px;
  background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.chain__node:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.chain__node:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.chain__node + .chain__node { border-left: 0; }
.chain__no { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-600); letter-spacing: .1em; }
.chain__title { font-size: 14px; font-weight: 650; margin-top: 5px; }
.chain__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }

/* ---------- 矩阵 / 分布条 ---------- */
.bar-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.bar-row__label { width: 110px; flex-shrink: 0; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.bar-row__track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .5s var(--ease); }
.bar-row__num { width: 42px; text-align: right; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ---------- 表格 ---------- */
/* min-width 保证「程序名称」列在窄屏不被压成竖排，超出部分交给容器横向滚动。
   table-layout: fixed 让 colgroup 的列宽真正生效 —— auto 布局下长文本会把列撑变形，
   进而挤压其他列。 */
.data-table {
  width: 100%; min-width: 900px; table-layout: fixed;
  border-collapse: collapse; font-size: 13.5px; background: var(--surface);
}
.data-table th {
  text-align: left; padding: 11px 14px; background: var(--surface-2);
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
  /* 表头吸附在滚动容器 .data-table__wrap 的顶部。
     ⚠️ 这里必须写 top: 0，不能写 top: var(--header-h)：
     sticky 的参照系是「最近的滚动容器」，容器顶部到表头距离为 0，
     若 top 写成 64px，表头会被强制下移 64px 压到第一行数据上。 */
  position: sticky; top: 0; z-index: 2;
  /* border-collapse 模式下 sticky 会把 border-bottom 吃掉，用内阴影补一条分割线 */
  box-shadow: inset 0 -1px 0 var(--line);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.data-table tbody tr:hover { background: var(--brand-50); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table__wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto;        /* 容器自身滚动，表头 sticky 相对它定位 */
  max-height: 72vh;      /* 超长表格在容器内滚动，页面其余部分保持可见 */
}

/* ---------- 树（技能库导航） ---------- */
.tree { font-size: 14px; }
.tree__group { margin-bottom: 6px; }
.tree__group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-weight: 650; cursor: pointer; color: var(--ink);
  transition: background .16s var(--ease);
}
.tree__group-title:hover { background: var(--surface-2); }
.tree__group-title svg { width: 14px; height: 14px; color: var(--ink-3); transition: transform .2s var(--ease); }
.tree__group.is-open .tree__group-title svg { transform: rotate(90deg); }
.tree__items { display: none; padding-left: 12px; }
.tree__group.is-open .tree__items { display: block; }
.tree__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 13.5px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.tree__item:hover { background: var(--brand-50); color: var(--brand); }
.tree__item.is-active { background: var(--brand); color: #fff; }
.tree__item.is-active .idx { background: rgba(255,255,255,.2); color: #fff; border-color: transparent; }
.tree__count { margin-left: auto; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tree__item.is-active .tree__count { color: rgba(255,255,255,.75); }

/* ---------- 分段控件 ---------- */
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 8px; gap: 2px; }
.seg__btn {
  padding: 6px 14px; border: 0; background: transparent;
  border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .16s var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-xs); }

/* ---------- 呼出块 ---------- */
.callout {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.callout__title { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; }
.callout__desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.callout--accent { border-left-color: var(--accent); }
.callout--ok { border-left-color: var(--ok); }

/* ---------- 代码块 ---------- */
.code-block {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; color: var(--ink); white-space: pre;
}
.code-block .k { color: var(--brand-700); font-weight: 600; }
.code-block .s { color: var(--ok); }
.code-block .c { color: var(--ink-3); }

/* ---------- 锚点导航 ---------- */
.anchor-nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.anchor-nav a {
  font-size: 13px; padding: 5px 11px; border-radius: 99px;
  color: var(--ink-2); background: var(--surface-2);
}
.anchor-nav a:hover { background: var(--brand-50); color: var(--brand); }

/* ---------- 警示列表（免责声明等） ---------- */
.warn-list { list-style: none; margin-top: 14px; }
.warn-list li {
  position: relative; padding-left: 18px; margin: 10px 0;
  font-size: 13.8px; line-height: 1.8; color: var(--ink-2);
}
.warn-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--warn);
}
.warn-list strong { color: var(--ink); font-weight: 650; }

/* ---------- 技能包更新记录（技能详情页） ---------- */
.chg-list { list-style: none; }
.chg-item {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 13px 0; border-top: 1px dashed var(--line);
}
.chg-item:first-child { border-top: 0; padding-top: 0; }
.chg-date {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 650;
  color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  padding: 3px 10px; white-space: nowrap;
}
.chg-date svg { width: 13px; height: 13px; }
.chg-item:first-child .chg-date {
  color: var(--accent-600); background: var(--accent-50); border-color: var(--accent-100);
}
.chg-text { flex: 1 1 320px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 辅助分析类技能（modules / module 页） ----------
   辅助分析类技能与审计科目包是两类东西：前者是「总控 + N 子技能」的完整能力。
   配色统一走点缀色（accent），与审计科目的五组色区分开。 */
.skill-tile__code[data-c="MOD"] { background: var(--accent-50); color: var(--accent-600); }

.mod-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 99px;
  background: var(--accent-50); color: var(--accent-600);
  border: 1px solid var(--accent-100);
}
.mod-chip svg { width: 13px; height: 13px; }

.mod-core {
  margin: 16px 0 0; padding: 16px 18px;
  background: linear-gradient(140deg, var(--brand-50), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.85;
}

.mod-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.mod-role {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 16px 18px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.mod-role:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.mod-role__head { display: flex; align-items: center; gap: 11px; }
.mod-role__no {
  flex-shrink: 0; width: 27px; height: 27px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
}
.mod-role__name { font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.45; }
.mod-role__dir { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.mod-role__duty { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 12px; }

.mod-mode { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; background: var(--surface); height: 100%; }
.mod-mode__name { font-size: 14px; font-weight: 700; color: var(--brand); }
.mod-mode__row { font-size: 13px; color: var(--ink-2); margin-top: 7px; line-height: 1.7; }
.mod-mode__k { color: var(--ink-3); margin-right: 6px; }

.mod-asset { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mod-asset:last-child { border-bottom: 0; }
.mod-asset__icon { color: var(--accent); flex-shrink: 0; display: flex; width: 15px; margin-top: 3px; }
.mod-asset__icon svg { width: 15px; height: 15px; }
.mod-asset__file { font-family: var(--font-mono); font-size: 12.5px; color: var(--brand-700); word-break: break-all; }
.mod-asset__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.7; }

/* ---------- 使用方法页 ---------- */
/* ⚠️ 类名统一带 g- 前缀：站点已有 .step / .step-list（程序卡步骤组件，见 common.js 的 renderSteps），
   不加前缀会撞车 —— 实测被它的 li::before 计数器注入了多余序号。 */

/* 顶部锚点目录 */
.guide-toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 13px 18px; margin-bottom: 30px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guide-toc__label {
  font-size: 12.5px; font-weight: 650; color: var(--ink-3);
  letter-spacing: .06em; margin-right: 2px;
}

/* 小节标题 */
.guide-h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 44px 0 16px; padding-bottom: 11px;
  border-bottom: 2px solid var(--brand-100);
  scroll-margin-top: 84px;
}
.guide-h2__num {
  color: var(--brand); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 700;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm); padding: 2px 9px;
}
.guide-h3 {
  font-size: 15.5px; font-weight: 650; color: var(--ink);
  margin: 22px 0 10px;
}

/* 步骤列表 */
.gstep-list { list-style: none; }
.gstep {
  display: flex; gap: 16px;
  padding: 20px 0; border-top: 1px dashed var(--line);
}
.gstep:first-child { border-top: 0; padding-top: 4px; }
.gstep__num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gstep__body { flex: 1; min-width: 0; }
.gstep__title { font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.gstep__desc { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.gstep__desc + .gstep__desc { margin-top: 8px; }

/* 步骤内的项目符号列表 */
.gstep-items { margin: 8px 0 0; padding-left: 19px; }
.gstep-items li { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.gstep-items li + li { margin-top: 3px; }

/* 路径 / 命令块（带复制按钮） */
.path-box {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 10px 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12.5px;
}
.path-box__os {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 4px;
  background: var(--brand-50); color: var(--brand);
  font-family: var(--font-sans); font-size: 11px; font-weight: 650;
}
.path-box code { flex: 1; min-width: 0; word-break: break-all; color: var(--ink); }
.path-box__copy {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink-3); cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.path-box__copy:hover { color: var(--brand); border-color: var(--brand-100); }
.path-box__copy svg { width: 13px; height: 13px; }

/* 目录树展示 */
.dir-tree {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 10px 0;
  color: var(--ink-3); white-space: pre; overflow-x: auto;
}
.dir-tree b { color: var(--ink); font-weight: 650; }

/* 要点 / 警示块内的小标题（复用 .alert） */
.guide-note { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.guide-note + .guide-note { margin-top: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* 程序卡列表：收起「产出底稿」列 */
  .proc-row, .proc-list__head { grid-template-columns: 58px minmax(0, 1fr) 138px 88px; }
  .proc-row__out, .proc-list__head > :nth-child(4) { display: none; }

  .arch-layer::before { font-size: 26px; }
  .arch-layer__desc { max-width: 100%; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .hero { padding: 52px 0 46px; }
  .hero__title { font-size: 32px; }
  .page-head__title { font-size: 25px; }
  .detail-head__title { font-size: 26px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 19px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 11px 14px; font-size: 15px; }
  .site-header__inner .btn { display: none; }
  .site-header__inner .btn.nav-cta { display: none; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 27px; }
  .grid--cards { grid-template-columns: 1fr; }
  .toolbar { padding: 13px; }
  .dl-meta { grid-template-columns: 1fr 1fr; }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 8px 10px; }

  /* 程序卡列表：窄屏改为块状堆叠 */
  .proc-list__head { display: none; }
  .proc-row {
    grid-template-columns: 1fr; gap: 8px;
    padding: 14px 16px;
  }
  .proc-row__id { font-size: 12px; }
  .proc-row__out { display: block; }

  .chain { flex-direction: column; }
  .chain__node:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .chain__node:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .chain__node + .chain__node { border-left: 1px solid var(--line); border-top: 0; }

  /* 窄屏：容器双向滚动，表头仍吸附在容器顶部 */
  .data-table__wrap { max-height: 68vh; }

  .six-grid { grid-template-columns: 1fr; }
  .bar-row__label { width: 84px; font-size: 12.5px; }
  .proc-hero__title { font-size: 23px; }
  .step-list li { padding-left: 30px; }
  .step-list li[data-lv="1"] { padding-left: 46px; }
  .step-list li[data-lv="2"] { padding-left: 62px; }

  /* 更新记录：窄屏日期独占一行 */
  .chg-item { gap: 8px; }
  .chg-text { flex: 1 1 100%; }
}

@media print {
  .site-header, .site-footer, .sidebar, .dl-actions { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
}
