/* ============================================================
   WorldOfQuality | Quality ToolKit — site.css
   工业驾驶舱 · 深色主题（与工具页 --bg:#0a1726 / 蓝-青 配色一致）
   零外链，离线可用；字体：中文 微软雅黑 / 英文 Arial
   ============================================================ */

/* 设计令牌已抽取至 tokens.css（须先于本文件加载，见各页 <head>）。
   本文件只保留结构样式；所有颜色/字体/间距/圆角/阴影/动效均引用 tokens.css 变量。 */

* { box-sizing: border-box; }
/* CR-2026-071o：不再在 body 上设置 overflow-x，避免强制 body 产生自己的滚动条
   与 html 的 overflow-y:scroll 叠加形成双层滚动条。页面级横向溢出由内容层
   自己控制（如培训页 mjx-container）。 */

/* ---------------- 深浅分层：全站深色外壳 + 浅色工作层（按页面切换，非同页滚动交替） ---------------- */
.band { width: 100%; }
.band-dark { background: var(--shell-bg); color: var(--shell-txt); }
/* 浅色工作层：把组件引用的令牌整体切到浅色取值（白卡 / #E3E6EB 边框） */
.work {
  background: var(--work-bg);
  color: var(--work-txt);
  min-height: calc(100vh - var(--topbar-h));
  --bg: var(--work-bg);
  --bg2: var(--work-panel2);
  --panel: var(--work-panel);
  --panel2: var(--work-panel2);
  --line: var(--work-line);
  --line2: var(--work-line2);
  --txt: var(--work-txt);
  --muted: var(--work-muted);
  --dim: var(--work-dim);
  --shadow: var(--shadow-work);
}

/* 渐变过渡带：明暗交替，不硬切 */
.band-divider { height: 120px; width: 100%; pointer-events: none; }
.band-divider.d2l { background: var(--grad-d2l); }
.band-divider.l2d { background: var(--grad-l2d); }

body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--txt);
  background: radial-gradient(1200px 700px at 70% -10%, #15263c 0%, var(--bg) 62%) fixed, var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.en, .num { font-family: var(--font-en); }

/* EN 模式：隐藏所有 .en 副标签（工具/模块名的英文小字、中文残留），保证界面零中文字符 */
html[lang="en"] .en { display: none !important; }

/* 双语块：按当前语言显示其一（隐私条款等长文案页） */
html[lang="en"] .zh-block { display: none !important; }
html:not([lang="en"]) .en-block { display: none !important; }

/* ---------- 语言切换形变过渡（CR-2026-075c）----------
   语言敏感节点（左侧栏条目 .t-meta、泳道标题 .ap-lane-hd）在切换瞬间
   硬跳文案显得"突然冒出来"，且泳道图标跟着闪一下，割裂感强。
   改为交叉过渡：旧内容 120ms 淡出并下沉 4px → 换文案 → 新内容从上方
   4px 淡入上浮 260ms。类名由 site.js 的 langMorph() 挂载/卸载，
   仅过渡期间存在，不影响常态渲染与打印。 */
.woq-lang-out { opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; }
.woq-lang-in { animation: woq-lang-rise .26s cubic-bezier(.2,.75,.25,1) both; }
@keyframes woq-lang-rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 图标随标题同步淡出即可，不必单独位移（位移由父级 .ap-lane-hd 承担） */
.ap-lane-hd .ap-lane-ic { transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) {
  .woq-lang-out, .woq-lang-in { animation: none; transition: none; opacity: 1; transform: none; }
}
@media print {
  .woq-lang-out, .woq-lang-in { animation: none; transition: none; opacity: 1; transform: none; }
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 滚动条（与工具页一致：细、底色融入背景） */
*{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent;border:none}
::-webkit-scrollbar-thumb{background:var(--line2);border-radius:99px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:var(--cyan);background-clip:content-box}

/* ---------------- 顶栏导航壳层样式已统一迁至 components.css（壳层单一 owner） ----------------
   下拉面板 / 语言切换 / 账号区 / .topbar-right / .sitenav / .navlink / .navpanel 等全部在
   components.css 定义，本文件不再重复（消除双 owner，满足 shell-single-owner 门禁）。
   本文件只保留内容层样式（hero / 区块 / 按钮 / 表单等）。 */

/* 按钮：统一胶囊形 */
/* 按钮：统一胶囊形 */
.btn {
  font-family: var(--font-cn);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { text-decoration: none; }
/* 注册：品牌主色填充；登录：描边样式
   CR-2026-128：主按钮文字由白改深墨 #04222b（与 .case-actions a.primary 一致）。
   原白字叠亮青 #22d3ee 对比度 ≈1.6:1，远低于 WCAG 4.5:1；深墨叠亮青 ≈12:1，既达标又更"霓虹仪表盘"。 */
.btn-primary { background: var(--accent); color: #04222b; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: var(--shadow-glow-h); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--accent); color: var(--txt); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
/* 键盘可见焦点环（无障碍；Apple/Meta 均有明确 focus 态） */
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------- 主体容器 ---------------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Hero（克制 SaaS 风：渐变氛围 + 大字渐变标题 + 胶囊 eyebrow + 信任标记） ---------------- */
.hero {
  position: relative; padding: 84px 0 56px; text-align: center; overflow: hidden;
}
/* 径向渐变光晕作为氛围衬托（蓝→青，低透明度） */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 50% -12%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(520px 360px at 86% 6%, rgba(34,211,238,.10), transparent 60%);
}
/* 控制图折线背景：透明度降至 0.15，弱化杂乱感 */
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .15; pointer-events: none; z-index: 0;
}
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero .cta,
.hero .trust { position: relative; z-index: 1; }

/* eyebrow：胶囊形徽章，浅色底 + 深色字 + 加大字距 */
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 12px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--chip-tx); background: var(--chip-bg);
  border: 1px solid rgba(255,255,255,.55);
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-weight: 700; margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}
/* 标题：桌面 56–64px，系统无衬线展示字；「质量管理」渐变 */
.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -.02em;
  margin: 18px 0 16px; color: var(--txt); font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
/* 描述：最大宽 640px，行高 1.75，柔和灰蓝 */
.hero p.lead {
  font-size: 17px; color: var(--hero-lead); max-width: 640px;
  line-height: 1.75; margin: 0 auto 28px;
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 信任标记：小字号、低对比度 */
.hero .trust {
  margin-top: 34px; display: flex; gap: 14px; justify-content: center;
  align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--dim); letter-spacing: .4px;
}
.hero .trust i { opacity: .45; font-style: normal; }
.hero .trust span { display: inline-flex; align-items: center; }

/* ---------------- 分区标题 ---------------- */
.section { padding: 40px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 {
  font-size: 26px; color: var(--txt); margin: 0 0 6px; font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------------- 预留模块（Bento Grid：大小错落；未上线 → 灰字低亮） ---------------- */
.modules {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(134px, auto); gap: 16px;
}
.modules .module-card { transition: transform .15s ease, border-color .15s ease; }
.modules .module-card:hover { transform: translateY(-3px); border-color: var(--line2); }
/* 错落布局（12 卡）：1 号大卡 2×2 作 featured，其余宽窄交替 */
.modules .module-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.modules .module-card:nth-child(1) h3 { font-size: 20px; }
.modules .module-card:nth-child(2) { grid-column: span 2; }
.modules .module-card:nth-child(3) { grid-column: span 1; }
.modules .module-card:nth-child(4) { grid-column: span 1; }
.modules .module-card:nth-child(5) { grid-column: span 2; }
.modules .module-card:nth-child(6) { grid-column: span 2; }
.modules .module-card:nth-child(7) { grid-column: span 2; }
.modules .module-card:nth-child(8) { grid-column: span 1; }
.modules .module-card:nth-child(9) { grid-column: span 1; }
.modules .module-card:nth-child(10) { grid-column: span 1; }
.modules .module-card:nth-child(11) { grid-column: span 1; }
.modules .module-card:nth-child(12) { grid-column: span 2; }

.module-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  position: relative; display: flex; flex-direction: column;
}
/* 未上线：字体灰色显示、色块低亮（弱化，与已上线的七大工具形成对比） */
.module-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--muted); }
.module-card .en { font-size: 12px; color: var(--dim); font-weight: 600; }
.module-card p { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.modules .module-card:nth-child(1) { border-color: rgba(59,130,246,.16); }
/* 即将上线：浅色圆角标签（低亮色块，柔和） */
.badge-soon {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  color: var(--muted); background: rgba(159,182,207,.12);
  border: 1px solid rgba(159,182,207,.26);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------------- 七大工具 ---------------- */
.tools {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
.tool-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.tool-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tool-card .idx {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-family: var(--font-en);
  font-weight: 800; color: #04141f; background: linear-gradient(135deg, var(--blue), var(--cyan));
}
/* 卡片左上角：与工具相关的内联 SVG 图标，品牌主色 #3B82F6 */
.tool-card .tool-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.28);
}
.tool-card .tool-icon svg { width: 22px; height: 22px; display: block; }
.tool-card .name { font-size: 18px; font-weight: 700; color: var(--txt); }
.tool-card .name .en { display: block; font-size: 12px; color: var(--dim); font-weight: 600; }
.tool-card .desc { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.tool-links { display: flex; gap: 8px; }
.tool-links a { flex: 1; text-align: center; }
.tool-links .btn { width: 100%; justify-content: center; }

/* 浅色工作层：图标底色与边框改用品牌青，避免残留蓝色；卡片用浅色柔和阴影 */
.work .tool-icon { background: var(--brand-soft); border-color: rgba(34,211,238,.30); }
.work .tool-card { box-shadow: var(--shadow-work); }
.work .qr-box { background: linear-gradient(135deg, var(--brand-soft), rgba(15,187,214,.06)); border-color: rgba(34,211,238,.42); }
.work .module-card { box-shadow: var(--shadow-work); }

/* ---------------- 公众号联动 ---------------- */
.wechat {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.qr-box {
  width: 180px; height: 180px; border: 2px dashed rgba(95,208,224,.45);
  border-radius: 14px; display: grid; place-items: center; text-align: center;
  color: var(--dim); font-size: 12px; line-height: 1.6; padding: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(6,182,212,.06));
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.wechat h3 { margin: 0 0 8px; color: var(--txt); font-size: 20px; }
.wechat p { color: var(--dim); font-size: 13px; margin: 0 0 10px; line-height: 1.7; }
.wechat code { font-family: var(--font-en); color: var(--cyan); background: var(--panel2); padding: 1px 5px; border-radius: 4px; }

/* ---------------- 页脚 ---------------- */
/* 页脚基础样式由 components.css 统一提供；site.css 仅保留导航页/首页页脚的特殊扩展（若有）。 */

/* ---------------- 模态框（注册/登录） ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 12, 22, .6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  width: 380px; max-width: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  position: relative;
}
.modal h3 { margin: 0 0 4px; color: var(--txt); font-size: 22px; }
.modal .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.modal .close {
  position: absolute; top: 16px; right: 16px; border: none; background: none;
  font-size: 22px; color: var(--dim); cursor: pointer; line-height: 1;
}
.modal .close:hover { color: var(--txt); }
.modal label { display: block; font-size: 13px; color: var(--txt); margin: 12px 0 6px; font-weight: 600; }
.modal input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line2);
  border-radius: 10px; font-size: 14px; font-family: var(--font-cn);
  transition: border-color .15s; background: var(--panel2); color: var(--txt);
}
.modal input:focus { outline: none; border-color: var(--cyan); background: var(--bg2); }
.modal .err { color: var(--red); font-size: 12px; margin-top: 6px; min-height: 16px; }
.modal .err-general {
  display: none; color: var(--red); font-size: 12.5px; line-height: 1.5;
  margin-top: 14px; padding: 9px 11px; border-radius: 8px;
  background: rgba(233,106,95,.1); border: 1px solid rgba(233,106,95,.35);
}
/* 语义化状态：ok=成功提示 / warn=需用户操作（如邮件链接失效） */
.modal .err-general.ok {
  color: var(--green); background: rgba(35,180,131,.1); border-color: rgba(35,180,131,.35);
}
.modal .err-general.warn {
  color: var(--amber); background: rgba(230,176,74,.1); border-color: rgba(230,176,74,.35);
}
/* Supabase 原样返回的英文 error_description：单独一行弱化，避免与本地化提示黏连 */
.modal .err-general .raw {
  display: block; margin: 3px 0; opacity: .72; font-size: 11.5px; font-style: italic;
}
.modal .err-general a {
  color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600;
}
.modal .btn-primary { width: 100%; justify-content: center; margin-top: 18px; }
.modal .switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.modal .switch a { cursor: pointer; font-weight: 600; color: var(--cyan); }
.modal .hint {
  margin-top: 16px; padding: 10px 12px; border-radius: 10px;
  background: rgba(47,125,224,.12); border: 1px solid rgba(47,125,224,.4); color: #bcd4f5;
  font-size: 12px; line-height: 1.5;
}
/* 注册合规钩子：同意《用户协议》/《隐私条款》（仅在注册模式显示，由 openAuth 控制） */
.auth-consent { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.auth-consent-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.auth-consent-label input { margin-top: 2px; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--cyan); }
.auth-consent-label a { color: var(--cyan); text-decoration: underline; }
/* 忘记密码入口（仅在登录模式显示，由 openAuth 控制） */
.auth-forgot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.auth-forgot a { cursor: pointer; font-weight: 600; color: var(--cyan); }

/* ---------------- 法务/长文案页（隐私条款） ---------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 24px 40px; }
.legal h1 { font-family: var(--font-hero); font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; color: var(--txt); }
.legal .meta { color: var(--dim); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; color: var(--txt); margin: 30px 0 10px; }
.legal h3 { font-size: 15px; color: var(--txt); margin: 20px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--accent); }
.legal .callout {
  margin: 18px 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.28);
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; color: var(--muted); }
.legal th { color: var(--txt); background: var(--panel2); font-weight: 600; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .wechat { grid-template-columns: 1fr; text-align: center; }
  .qr-box { margin: 0 auto; }
  .topbar-right { gap: 12px; }
  .topbar .sitenav { gap: 12px; }
  /* Bento：窄屏降为两列并重置跨列/跨行 */
  .modules { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .modules .module-card:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .modules .module-card:nth-child(1) { grid-column: span 2 !important; }
  /* 页脚响应式由 components.css 统一提供 */
}

/* ---------------- 动效降级 ---------------- */
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar .navlink::after, .btn, .tool-card { transition: none; }
  .btn-primary:hover { transform: none; }
  .tool-card:hover { transform: none; }
  /* CR-2026-128：关闭 Hero 编排入场、滚动显隐与动画控制图，避免前庭敏感用户不适 */
  .h-hero .h-eyebrow, .h-hero h1, .h-hero .lead, .h-hero .h-cta, .h-hero .h-stats { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .h-spark, .h-pt, .h-anom, .h-anom-core, .h-halo, .h-callout, .h-sweep { animation: none !important; }
}

/* ---------------- 浅色内容层 · 工程规格风（讲解 / 培训 / 文档页，仅作用于 .work 内部，顶栏/页脚为独立深色外壳不受影响） ---------------- */
.doc-head { padding: 48px 0 8px; }
.bread { font-family: var(--font-en); font-size: 12px; letter-spacing: .5px; color: var(--work-muted); }
.doc-h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin: 10px 0 6px; line-height: 1.15; color: var(--work-txt); }
.doc-h1-en { font-family: var(--font-en); font-size: 12px; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; margin-top: 6px; }
.doc-lead { font-size: 16px; line-height: 1.85; color: var(--work-muted); max-width: 700px; margin: 16px 0 0; }
.doc-lead strong { color: var(--work-txt); }
/* 章节：等宽青色编号 + 标题（规格风签名） */
.doc-sec { margin-top: 44px; }
.doc-sec-no { font-family: var(--font-en); font-size: 13px; letter-spacing: 3px; color: var(--brand); }
.doc-sec-t { font-size: 22px; font-weight: 700; margin: 4px 0 14px; color: var(--work-txt); }
/* 图：白卡 + 顶部青色基准线 */
.doc-fig { background: var(--work-panel); border: 1px solid var(--work-line); border-top: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 18px; margin-top: 8px; }
.doc-fig svg { width: 100%; height: auto; display: block; }
.doc-cap { font-family: var(--font-en); font-size: 12px; color: var(--work-muted); margin-top: 10px; }
/* 表：白卡 + 青色表头线 */
.doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; background: var(--work-panel); border: 1px solid var(--work-line); border-radius: var(--radius-sm); overflow: hidden; }
.doc-table th { font-family: var(--font-en); font-size: 12px; letter-spacing: 1px; color: var(--work-txt); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--brand); text-transform: uppercase; }
.doc-table td { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--work-line); color: var(--work-muted); }
.doc-table tr:last-child td { border-bottom: 0; }
/* 提示框：左侧青色基准线 */
.doc-callout { background: var(--work-panel); border: 1px solid var(--work-line); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--work-muted); }
/* 步骤：等宽青色序号 */
.doc-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.doc-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--work-line); font-size: 15px; line-height: 1.6; color: var(--work-muted); }
.doc-steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-en); font-size: 13px; color: var(--brand); min-width: 26px; padding-top: 2px; }
/* 浅色层工具卡：白底 + 顶部青色基准线，呼应规格风 */
.work .tool-card { border-top: 2px solid var(--brand); box-shadow: var(--shadow-work); }

/* ============================================================
   首页叙事（首页 index 专用 · 全站深色外壳 #0B0E14）
   结构：Hero(痛点+结果) → 现状 → 做法 → 方法链路 → 控制室演示 → 路线图薄条 → 收尾
   仅作用于 index.html，不影响浅色内容页。
   ============================================================ */
.h-mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* 区段基底：上下留白 + 极细分隔线 */
.band { width: 100%; padding: 84px 0; border-top: 1px solid var(--shell-line); }
.band.tight { padding: 60px 0; }

/* 区段 kicker：等宽青色小标签 + 前缀短线（签名元素） */
.h-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 22px;
}
.h-tag::before { content: ""; width: 26px; height: 1px; background: var(--brand); display: inline-block; }

/* Hero：左对齐、径向光晕氛围（无装饰折线） */
.h-hero { position: relative; overflow: hidden;
  background: radial-gradient(900px 480px at 82% -10%, rgba(34,211,238,.16), transparent 60%),
              radial-gradient(680px 420px at 8% 6%, rgba(47,129,247,.12), transparent 60%); }
/* 蓝图网格氛围层（CR-2026-128）：极淡工程网格 + 顶部径向遮罩，强化"工业控制室"科技感；
   纯 CSS、静态、零性能负担；z-index 置底，内容经 .wrap 提升。 */
.h-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 120% at 50% 0%, #000 28%, transparent 76%);
  mask-image: radial-gradient(125% 120% at 50% 0%, #000 28%, transparent 76%);
}
.h-hero > .wrap { position: relative; z-index: 1; }
.h-eyebrow { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: var(--brand); margin-bottom: 20px; }
.h-hero h1 { font-size: var(--fs-hero); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; max-width: 15em; color: var(--shell-txt); }
.h-hero h1 .em { color: var(--brand); }
.h-hero .lead { margin-top: 24px; font-size: var(--fs-hero-lead); color: var(--shell-muted); max-width: 40em; line-height: 1.75; }
.h-hero .lead b { color: var(--shell-txt); font-weight: 700; }
.h-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.h-stats { margin-top: 46px; display: flex; gap: 34px; flex-wrap: wrap; color: var(--shell-dim); font-family: var(--font-en); font-size: 13px; }
.h-stats b { color: var(--shell-txt); font-size: 22px; font-family: var(--font-cn); font-weight: 800; display: block; letter-spacing: 1px; }
.h-stats .k { font-size: 12.5px; color: var(--shell-muted); }

/* Hero 编排式入场（CR-2026-128 对标科技大厂首屏节奏：眉标→标题→导语→CTA→指标，错落 60–130ms） */
@keyframes h-hero-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.h-hero .h-eyebrow { animation: h-hero-in .7s var(--ease) both .05s; }
.h-hero h1        { animation: h-hero-in .8s var(--ease) both .16s; }
.h-hero .lead     { animation: h-hero-in .8s var(--ease) both .30s; }
.h-hero .h-cta    { animation: h-hero-in .8s var(--ease) both .42s; }
.h-hero .h-stats  { animation: h-hero-in .8s var(--ease) both .54s; }

/* ============================================================
   首页改版结构样式（CR-2026-129 · 2026-10-18 生产落地）
   来源：_shot/_demo_home_2026-10-18.html 确认版内联 <style> 原样回灌。
   结构变化：13 区块 → 6 区块（Hero 两栏 / 内容版图 Atlas / 按处境进入 /
   Proof 压缩 / 收尾 CTA / 页脚公众号细条）。
   ⚠ 旧区块 CSS（.h-pcard/.h-step/.h-tcard/.h-demo-星号类/.h-sel/.h-chain/.h-path/
   .case-星号类/.h-road/.wechat）随相应区块从 index.html 移除而成 legacy——
   按「无用项删除需明确确认」纪律暂留档不删，待用户确认后单独清理。
   ⚠ .h-hero h1 字阶由此处的 clamp(32,4.2vw,54)/1.16 覆盖 CR-2026-128 的
   --fs-hero/1.08/-.01em——中文受控两行需要放宽行高，属有意回退（demo 文档 §6.3）。
   ============================================================ */
  /* ============================================================
     确认版首页 demo 新增结构样式（CR-2026-129）
     仅作用于本原型；确认后回灌 assets/css/site.css
     ============================================================ */

  /* 页内锚点跳转预留常驻顶栏高度：L-Home 顶栏 64px + 24px 呼吸空间。
     首页 CTA（「浏览内容版图 →」「按处境开始」等）是原生 hash 跳转，
     页面无 tocspy（无 .toc/.t-item），不走 site.js 的 -80 偏移逻辑。 */
  #atlas, #enter, #proof { scroll-margin-top: 88px; }

  /* —— Hero 两栏：左文案 / 右「现场即算」控制图 —— */
  .h-hero { padding: 104px 0 92px; }
  .h-hero-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: 48px; align-items: center; }
  /* 中文标题不跨词折行：句读处受控断行（clamp 保证 ≤2 行；CJK 行高放宽到 1.16） */
  .h-hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.16; letter-spacing: .01em; }
  .h-hero h1 .hl { display: block; }
  .h-hero h1 .hl + .hl { margin-top: 6px; }
  .h-hero-visual { animation: h-hero-in .9s var(--ease) both .5s; position: relative; }
  .h-chart-card {
    background: linear-gradient(160deg, rgba(13,20,32,.92), rgba(8,12,21,.96));
    border: 1px solid var(--shell-line); border-radius: 16px; padding: 16px 16px 8px;
    box-shadow: 0 36px 90px -46px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05);
  }
  .h-chart-card .cc-cap { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
  .h-chart-card .cc-t { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; }
  .h-chart-card .cc-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-en); font-size: 10px; color: var(--shell-muted); letter-spacing: .04em; }
  .h-chart-card .cc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; animation: cc-pulse 1.8s infinite; }
  @keyframes cc-pulse { 0%{ box-shadow:0 0 0 0 rgba(34,211,238,.5);} 70%{ box-shadow:0 0 0 8px rgba(34,211,238,0);} 100%{ box-shadow:0 0 0 0 rgba(34,211,238,0);} }
  .h-hero-stats-cap { margin-top: 14px; font-family: var(--font-en); font-size: 11px; color: var(--shell-dim); letter-spacing: .04em; }

  /* —— 区块标题：短主标题 + 副标题（Apple/Meta 式：标题不承担解释） —— */
  .h-sec-h { text-wrap: balance; max-width: 22em; }
  .h-sec-sub { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--shell-muted); max-width: 36em; text-wrap: pretty; }

  /* —— 内容版图 Content Atlas（Bento） —— */
  .atlas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 42px; }
  .pillar {
    background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 14px;
    padding: 22px 20px; display: flex; flex-direction: column;
    transition: border-color .2s, transform .2s, background .2s;
  }
  .pillar:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--brand-soft); }
  .pillar--feature { grid-column: span 3; background: linear-gradient(155deg, rgba(34,211,238,.07), var(--shell-panel) 58%); }
  .pillar--s2 { grid-column: span 3; }
  .pillar--s3 { grid-column: span 2; }
  .pillar--s4 { grid-column: span 2; }
  .pillar--s5 { grid-column: span 2; }
  .pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pillar-en { font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; }
  .pillar-count { font-family: var(--font-en); font-size: 11px; color: var(--shell-dim); border: 1px solid var(--shell-line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
  .pillar-zh { font-size: 20px; font-weight: 800; color: var(--shell-txt); margin: 14px 0 8px; }
  .pillar-desc { font-size: 13px; color: var(--shell-muted); line-height: 1.6; margin-bottom: 14px; text-wrap: pretty; }
  .pillar-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; }
  .pillar-links a { font-size: 13px; color: var(--shell-muted); text-decoration: none; border-bottom: 1px solid transparent; }
  .pillar-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
  .pillar-go { margin-top: 16px; font-family: var(--font-en); font-size: 12px; color: var(--brand); letter-spacing: .04em; }

  /* —— 按处境进入 · 单一主导导航 —— */
  .enter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
  .enter-card {
    background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 14px;
    padding: 22px 20px; text-decoration: none; display: flex; flex-direction: column;
    transition: border-color .2s, transform .2s, background .2s;
  }
  .enter-card:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--brand-soft); }
  .enter-k { font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: var(--brand); }
  .enter-card h3 { font-size: 17px; font-weight: 800; color: var(--shell-txt); margin: 10px 0 8px; line-height: 1.45; }
  .enter-card p { font-size: 13px; color: var(--shell-muted); line-height: 1.6; }
  .enter-go { margin-top: 14px; font-family: var(--font-en); font-size: 12px; color: var(--brand); letter-spacing: .04em; }
  .enter-secondary {
    margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
    color: var(--shell-dim); font-size: 13px; border-top: 1px solid var(--shell-line); padding-top: 20px;
  }
  .enter-secondary b { color: var(--shell-muted); font-weight: 600; }
  .enter-secondary a { color: var(--brand); text-decoration: none; }
  .enter-secondary a:hover { text-decoration: underline; }

  /* —— 真实案例 Proof（压缩） —— */
  .proof {
    display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-top: 40px;
    background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 16px; padding: 26px 30px;
  }
  .proof-stats { display: flex; flex-direction: column; gap: 16px; }
  .proof-stat b { display: block; font-family: var(--font-cn); font-size: 30px; font-weight: 800; color: var(--shell-txt); letter-spacing: .5px; line-height: 1.1; }
  .proof-stat span { font-family: var(--font-en); font-size: 11px; color: var(--shell-muted); letter-spacing: .06em; }
  .proof-excerpt { border-left: 2px solid var(--alert); padding-left: 16px; }
  .proof-excerpt .pe-fm { font-size: 15px; font-weight: 700; color: var(--shell-txt); }
  .proof-excerpt .pe-fe { font-size: 13px; color: var(--shell-muted); line-height: 1.7; margin: 6px 0 10px; }
  .proof-excerpt .pe-tags span { font-family: var(--font-en); font-size: 11px; color: var(--shell-dim); margin-right: 16px; }
  .proof-excerpt .pe-tags .ap { color: var(--alert); font-weight: 700; }

  /* —— 页脚公众号收编条 —— */
  .f-wechat { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--shell-line); padding: 22px 0 6px; }
  .f-wechat .f-qr { width: 54px; height: 54px; border-radius: 10px; border: 1px dashed var(--shell-line); display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 9px; color: var(--shell-dim); text-align: center; line-height: 1.3; flex: 0 0 auto; }
  /* #qrBox 注入真实二维码图片时的约束（镜像生产 .qr-box img，防溢出细条） */
  .f-wechat .f-qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
  .f-wechat .f-wt-t { font-size: 14px; font-weight: 700; color: var(--shell-txt); }
  .f-wechat .f-wt-p { font-size: 12.5px; color: var(--shell-muted); margin-top: 3px; max-width: 52em; line-height: 1.6; }

  /* —— 响应式 —— */
  @media (max-width: 980px) {
    .h-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .atlas { grid-template-columns: repeat(2, 1fr); }
    .pillar--feature { grid-column: span 2; }
    .pillar--s2, .pillar--s3, .pillar--s4, .pillar--s5 { grid-column: span 1; }
    .enter { grid-template-columns: repeat(2, 1fr); }
    .proof { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .atlas { grid-template-columns: 1fr; }
    .pillar--feature { grid-column: span 1; }
    .enter { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    .h-hero-visual { animation: none; }
    .h-chart-card .cc-live::before { animation: none; }
  }
  

/* 现状：三栏痛点卡 */
.h-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-pcard { background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: var(--radius); padding: 26px 24px; }
.h-pcard .no { font-family: var(--font-en); font-size: 12px; color: var(--alert); letter-spacing: .1em; }
.h-pcard h3 { font-size: 18px; margin: 12px 0 10px; font-weight: 800; color: var(--shell-txt); }
.h-pcard p { color: var(--shell-muted); font-size: 14.5px; line-height: 1.7; }
.h-agitate { margin-top: 28px; color: var(--shell-dim); font-size: 14.5px; border-left: 2px solid var(--alert); padding-left: 14px; line-height: 1.7; }

/* 做法：三栏流程 */
.h-approach h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: .3px; max-width: 16em; color: var(--shell-txt); line-height: 1.3; }
.h-approach h2 .em { color: var(--brand); }
.h-flow3 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 40px; }
.h-step { background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: var(--radius); padding: 26px 22px; }
.h-step .k { font-family: var(--font-en); font-size: 12px; color: var(--brand); letter-spacing: .1em; }
.h-step h3 { font-size: 20px; margin: 10px 0 8px; font-weight: 800; color: var(--shell-txt); }
.h-step p { color: var(--shell-muted); font-size: 14px; line-height: 1.65; }
.h-arrow { color: var(--brand); font-size: 22px; text-align: center; opacity: .7; }

/* 方法链路（签名元素） */
.h-chain { display: flex; align-items: stretch; gap: 8px; margin-top: 40px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
.h-node { flex: 1 1 0; min-width: 148px; background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 12px; padding: 16px 14px; transition: border-color .2s, transform .2s, background .2s; }
.h-node:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--brand-soft); }
.h-node .stage { display: inline-block; font-family: var(--font-en); font-size: 11px; color: var(--brand); letter-spacing: .08em; margin-bottom: 9px; text-decoration: none; }
.h-node .stage:hover { text-decoration: underline; }
.h-node h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 7px; line-height: 1.5; color: var(--shell-txt); }
.h-node h4 a { color: var(--shell-txt); text-decoration: none; }
.h-node h4 a:hover { color: var(--brand); text-decoration: underline; }
.h-node .names { font-size: 12px; color: var(--shell-muted); line-height: 1.5; }
.h-node .names .en { font-family: var(--font-en); color: var(--shell-dim); font-size: 11px; }
.h-c-arrow { color: var(--brand); font-size: 18px; align-self: center; flex: 0 0 auto; opacity: .6; }
.h-chain-note { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.h-chain-note p { color: var(--shell-muted); font-size: 14px; max-width: 36em; line-height: 1.6; }
.h-chain-hint { margin-top: 14px; color: var(--shell-dim); font-family: var(--font-en); font-size: 12px; }

/* 方法链路 · 新老两组块（R2：新七大独立成块，避免单链 7+7 节点视觉过挤） */
.h-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.h-group { background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 14px; padding: 20px 18px 16px; }
.h-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.h-group-head .g-tag { font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: var(--brand); }
.h-group-head h3 { font-size: 19px; font-weight: 800; color: var(--shell-txt); }
.h-group-head .g-en { font-family: var(--font-en); font-size: 12px; color: var(--shell-dim); }
.h-group-desc { font-size: 12.5px; color: var(--shell-muted); line-height: 1.6; margin: 0 0 14px; }
.h-group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.h-tcard { display: block; background: var(--shell-panel2); border: 1px solid var(--shell-line); border-radius: 10px; padding: 11px 12px; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.h-tcard:hover { border-color: var(--brand); transform: translateY(-2px); background: var(--brand-soft); }
.h-tcard .t-no { font-family: var(--font-en); font-size: 10.5px; color: var(--shell-dim); letter-spacing: .06em; }
.h-tcard .t-zh { display: block; font-size: 14px; font-weight: 700; color: var(--shell-txt); margin: 3px 0 2px; line-height: 1.4; }
.h-tcard .t-en { display: block; font-family: var(--font-en); font-size: 10.5px; color: var(--shell-dim); line-height: 1.35; }
.h-tcard .t-use { display: block; font-size: 11.5px; color: var(--shell-muted); margin-top: 5px; line-height: 1.45; }
html[lang="en"] .h-tcard .t-zh { display: none; }
html[lang="en"] .h-tcard .t-en { font-size: 12.5px; color: var(--shell-txt); font-weight: 700; margin: 3px 0 2px; }

/* SVG 内文本的语言切换（SVG 不受 .zh-block/.en-block 影响，需独立规则） */
html[lang="en"] .zh-only { display: none; }
html:not([lang="en"]) .en-only { display: none; }
.h-group-foot { margin-top: 13px; font-size: 12px; color: var(--shell-dim); line-height: 1.55; }
.h-group-foot a { color: var(--brand); text-decoration: none; }
.h-group-foot a:hover { text-decoration: underline; }

/* 控制室演示 */
.h-demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; margin-top: 36px; }
.h-demo-card { background: var(--shell-panel2); border: 1px solid var(--shell-line); border-radius: var(--radius); padding: 22px; overflow: hidden; }
.h-demo-cap h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: var(--shell-txt); }
.h-demo-cap p { color: var(--shell-muted); font-size: 15px; max-width: 30em; line-height: 1.7; }
.h-demo-cap .legend { margin-top: 18px; display: flex; gap: 22px; font-family: var(--font-en); font-size: 12px; color: var(--shell-dim); }
.h-demo-cap .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.h-i-key { background: var(--brand); } .h-i-bad { background: var(--alert); }
.h-demo-cap .weco { margin-top: 14px; color: var(--shell-dim); font-family: var(--font-en); font-size: 11.5px; }

/* 控制图动画（放慢 + 异常突出 + WECO 判异标注） */
.h-spark { stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: h-draw 3.6s ease forwards .8s; }
@keyframes h-draw { to { stroke-dashoffset: 0; } }
.h-pt { opacity: 0; animation: h-pop .5s ease forwards; }
@keyframes h-pop { to { opacity: 1; } }
.h-anom { opacity: 0; animation: h-pop .5s ease forwards 3.9s; }
.h-anom-core { transform-box: fill-box; transform-origin: center; animation: h-pulse 1.6s ease-in-out infinite 4.3s; }
@keyframes h-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
.h-halo { transform-box: fill-box; transform-origin: center; opacity: 0; animation: h-halo 1.9s ease-out infinite 4.3s; }
@keyframes h-halo { 0% { transform: scale(.5); opacity: .65; } 70% { opacity: 0; } 100% { transform: scale(3.1); opacity: 0; } }
.h-callout { opacity: 0; animation: h-fadein .7s ease forwards 4.6s; }
@keyframes h-fadein { to { opacity: 1; } }
.h-sweep { animation: h-scan 5s linear infinite; }
@keyframes h-scan { from { transform: translateX(0); } to { transform: translateX(408px); } }

/* 首页小节标题（与 .h-approach h2 同权重，避免每个区块各写一套） */
.h-sec-h { font-size: clamp(21px, 2.8vw, 27px); font-weight: 800; letter-spacing: .3px;
  max-width: 22em; color: var(--shell-txt); line-height: 1.35; margin-top: 6px; }

/* 工具选型器（按处境给入口） */
.h-sel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.h-sel-card { display: block; background: var(--shell-panel); border: 1px solid var(--shell-line);
  border-radius: var(--radius); padding: 24px 22px; text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s; }
.h-sel-card:hover { border-color: var(--brand); transform: translateY(-3px); background: var(--brand-soft); }
.h-sel-card .k { font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: var(--brand); }
.h-sel-card h3 { font-size: 18px; font-weight: 800; color: var(--shell-txt); margin: 10px 0 8px; line-height: 1.45; }
.h-sel-card p { font-size: 14px; color: var(--shell-muted); line-height: 1.7; }
.h-sel-card .go { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--brand); }

/* 生命周期地图（APQP 五阶段；.h-node 原为 div，此处作链接用） */
a.h-node { display: block; text-decoration: none; }
.h-node .stage { display: block; }
.h-node .lc-out { display: block; margin-top: 9px; font-family: var(--font-en);
  font-size: 11.5px; color: var(--shell-dim); }

/* 首页案例速览表（BCS-400A 实战摘录） */
.case-wrap { margin-top: 30px; }
.case-lead { margin-top: 18px; font-size: 15.5px; color: var(--shell-muted); max-width: 44em; line-height: 1.75; }
.case-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px;
  background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: 12px; overflow: hidden; }
.case-tbl th, .case-tbl td { border-bottom: 1px solid var(--shell-line);
  padding: 11px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.case-tbl thead th { background: var(--shell-panel2); color: var(--brand);
  font-weight: 700; font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.case-tbl td.fm { color: var(--shell-txt); font-weight: 600; }
.case-tbl td.fe { color: var(--shell-muted); }
.case-tbl td.num { text-align: center; font-family: var(--font-en); font-weight: 700; color: var(--shell-txt); white-space: nowrap; }
.case-tbl td.num.s { color: var(--alert); }
.case-tbl tbody tr:hover { background: var(--brand-soft); }
.case-tbl tr:last-child td { border-bottom: none; }
.case-tbl .sc { font-weight: 800; }
.case-tbl .sc.star { color: var(--alert); }
.case-tbl .sc.cc { color: var(--warn); }
.ap-h { color: var(--alert); font-weight: 800; }
.ap-m { color: var(--warn); font-weight: 800; }
.ap-l { color: #34d399; font-weight: 800; }
.case-note { margin-top: 14px; color: var(--shell-dim); font-size: 12.5px; line-height: 1.6; }
.case-actions { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.case-actions a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 11px 18px; border-radius: 10px;
  border: 1px solid var(--shell-line); transition: border-color .2s, background .2s, transform .2s; }
.case-actions a.primary { background: var(--brand); color: #04222b; border-color: var(--brand); }
.case-actions a.primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.case-actions a.ghost { color: var(--shell-txt); }
.case-actions a.ghost:hover { border-color: var(--brand); transform: translateY(-2px); background: var(--brand-soft); }

/* 学习路径 */
.h-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.h-path-step { background: var(--shell-panel); border: 1px solid var(--shell-line);
  border-top: 2px solid var(--brand); border-radius: 12px; padding: 22px 20px; }
.h-path-step .k { font-family: var(--font-en); font-size: 11px; letter-spacing: .1em; color: var(--brand); }
.h-path-step h3 { font-size: 17px; font-weight: 800; color: var(--shell-txt); margin: 9px 0 8px; }
.h-path-step p { font-size: 13.5px; color: var(--shell-muted); line-height: 1.7; }
.h-path-step .lnk { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--brand); text-decoration: none; }
.h-path-step .lnk:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .h-sel, .h-path { grid-template-columns: 1fr; }
}

/* 路线图薄条 */
.h-road { background: var(--shell-panel); border: 1px solid var(--shell-line); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-road .label { font-family: var(--font-en); font-size: 12px; color: var(--shell-dim); letter-spacing: .1em; margin-bottom: 12px; }
.h-road .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.h-chip { font-family: var(--font-en); font-size: 13px; color: var(--shell-txt); border: 1px solid var(--shell-line2); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.02); }
.h-road .more { color: var(--brand); font-size: 14px; white-space: nowrap; }

/* 收尾 CTA */
.h-final { text-align: center; padding: 92px 0; }
.h-final h2 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 800; letter-spacing: .3px; color: var(--shell-txt); }
.h-final p { color: var(--shell-muted); margin: 16px 0 30px; font-size: 16px; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .h-grid3, .h-flow3 { grid-template-columns: 1fr; }
  .h-arrow { display: none; }
  .h-flow3 { gap: 14px; }
  .h-groups { grid-template-columns: 1fr; gap: 16px; }
  .h-demo-grid { grid-template-columns: 1fr; }
  .band { padding: 56px 0; }
  .h-hero h1 { font-size: 30px; }
}

/* ============================================================
   七大工具 · 导引页（方案 A：左栏索引 + 右栏图形详情 双栏）
   浅色工作层 · 工程规格风。左栏 sticky 工具索引，右栏点击切换
   图形 + 简介 + 三种入口 + 上下游链路。复用站点令牌与 .btn 体系。
   ============================================================ */
.t-split { display: grid; grid-template-columns: 300px 1fr; gap: 38px; align-items: start; padding: 26px 0 80px; }

/* 左栏：工具索引 */
.t-rail { position: sticky; top: 84px; display: flex; flex-direction: column;
  border: 1px solid var(--work-line); border-radius: var(--radius); overflow: hidden; background: var(--work-panel); }
.t-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px;
  border-bottom: 1px solid var(--work-line); cursor: pointer; border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease; }
.t-item:last-child { border-bottom: none; }
.t-item:hover { background: var(--work-panel2); }
.t-item.on { background: var(--brand-soft); border-left-color: var(--brand); }
.t-idx { font-family: var(--font-en); font-size: 13px; color: var(--brand-ink); font-weight: 700; padding-top: 2px; min-width: 22px; }
.t-item.on .t-idx { color: var(--brand-ink); }
.t-meta { display: flex; flex-direction: column; gap: 2px; }
.t-meta .stage { font-family: var(--font-en); font-size: 10.5px; letter-spacing: .1em; color: var(--work-dim); text-transform: uppercase; }
.t-meta .nm { font-size: 15px; font-weight: 800; color: var(--work-txt); }
.t-meta .nm .en { font-family: var(--font-en); font-size: 11px; color: var(--work-dim); font-weight: 600; margin-left: 6px; }
.t-item.on .nm { color: var(--brand-ink); }

/* 右栏：图形 + 详情 */
.t-stage { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.t-stage .tag { font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; color: var(--brand-ink); text-transform: uppercase; }
.t-stage .line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--brand), transparent); }

.t-panels { position: relative; }
.t-panel { display: none; animation: t-fade .4s ease; }
.t-panel.on { display: block; }
@keyframes t-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   P6 方法页 · 章节分页模式（CR-2026-071x ｜ DS-01 §2.1 铁律二）
   ------------------------------------------------------------
   形态：左栏 .t-rail 列章节，右栏 .t-panels **一次只显示一章**——
   与七大工具导引页的 .t-panel 切换同源同机制，不新造第三套类。
   开关：静态属性 data-paged（不用 JS 加类，避免初始化前布局跳动）。
   无 JS 时由页内 <noscript> 兜底展开全部章节（渐进增强）。
   ============================================================ */
.t-panels[data-paged] .t-panel { display: none; animation: t-fade .32s ease; }
.t-panels[data-paged] .t-panel.on { display: block; }

/* 章末翻页条（由 site.js 的 tocspy 分页分支注入 .sec-nav） */
.sec-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px;
  padding-top: 14px; border-top: 1px solid var(--work-line); font-size: 13.5px; }
.sec-nav .sec-nav-pos { font-family: var(--font-en); font-size: 12px;
  letter-spacing: .08em; color: var(--work-dim); }
.sec-nav a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--work-muted); border: 1px solid var(--work-line); border-radius: var(--radius-pill);
  padding: 5px 12px; background: var(--work-panel2);
  transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.sec-nav a:hover { color: var(--brand-ink); border-color: var(--brand); transform: translateY(-1px); }
.sec-nav .sec-nav-l { margin-right: auto; }
.sec-nav .sec-nav-r { margin-left: auto; }

@media (max-width: 880px) {
  .sec-nav { flex-wrap: wrap; }
  .sec-nav .sec-nav-l, .sec-nav .sec-nav-r { margin: 0; }
}

/* 打印/导出 PDF：一章一屏只对屏幕成立，打印须展开全部章节，否则丢内容 */
@media print {
  .t-panels[data-paged] .t-panel { display: block !important; animation: none; }
  .t-panels[data-paged] .t-panel + .t-panel { break-before: page; }
  .t-panels[data-paged] .sec-nav { display: none; }
}

.chart-card { background: var(--work-panel); border: 1px solid var(--work-line); border-top: 2px solid var(--brand);
  border-radius: var(--radius); padding: 22px 24px 14px; box-shadow: var(--shadow-work); }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-cap { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px;
  gap: 10px; font-family: var(--font-en); font-size: 11px; color: var(--work-dim); }
.chart-cap span:last-child { color: var(--brand-ink); }

.panel-h { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.panel-h .no { font-family: var(--font-en); font-size: 14px; color: var(--brand-ink); font-weight: 700; }
.panel-h h2 { font-size: 26px; font-weight: 800; color: var(--work-txt); margin: 0; }
.panel-h .en { font-family: var(--font-en); font-size: 13px; color: var(--work-dim); letter-spacing: .04em; }

.panel-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.75; color: var(--work-muted); max-width: 52em; }

.chain-row { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-en); font-size: 12px; color: var(--work-dim); }
.chain-row .chain-dir { font-family: var(--font-en); font-size: 11px; letter-spacing: .08em; color: var(--work-dim); text-transform: uppercase; padding: 0 2px; }
.chain-row .pill { border: 1px solid var(--work-line2); border-radius: var(--radius-pill); padding: 5px 12px; background: var(--work-panel); color: var(--work-dim); text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.chain-row a.pill:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.chain-row .pill.here { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; cursor: default; }

/* 真实链接卡（方法页「与其它工具衔接」用）：白卡 + 顶部青线，取代"只有文字路径的死表"。
   铁律：衔接关系必须给可点真链接（.lk-card 整体是 <a>），禁止罗列不可点的文件路径。 */
.lk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 4px; }
.lk-card { display: block; text-decoration: none; background: var(--work-panel);
  border: 1px solid var(--work-line); border-top: 2px solid var(--brand);
  border-radius: var(--radius-sm); padding: 14px 16px 15px; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-work); border-color: var(--brand); text-decoration: none; }
.lk-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lk-tag { font-family: var(--font-en); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 700; }
.lk-arrow { margin-left: auto; font-family: var(--font-en); font-size: 13px; color: var(--brand);
  opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
.lk-card:hover .lk-arrow { opacity: 1; transform: none; }
.lk-name { font-size: 15px; font-weight: 800; color: var(--work-txt); line-height: 1.4; }
.lk-name .en { font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--work-dim); margin-left: 6px; }
.lk-desc { margin-top: 5px; font-size: 13px; line-height: 1.6; color: var(--work-muted); }
@media (max-width: 880px) { .lk-grid { grid-template-columns: 1fr; } }

.entries { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hint { margin-top: 26px; color: var(--work-dim); font-family: var(--font-en); font-size: 12px;
  border-top: 1px dashed var(--work-line); padding-top: 16px; line-height: 1.6; }

@media (max-width: 880px) {
  .t-split { grid-template-columns: 1fr; }
  /* CR-2026-071w：grid item 的 `1fr` 实为 minmax(auto,1fr)，其 auto 最小值取
     min-content。窄屏下 .t-rail 变横排（9 条 × min-width:168px），min-content
     撑开单列 → 内容列比视口宽 6px（实测 375 视口下 .sec = 381px）。
     min-width:0 是标准解法：解除自动最小值，让 1fr 真正按视口分配。 */
  .t-split > * { min-width: 0; }
  .t-rail { position: static; flex-direction: row; overflow-x: auto; }
  .t-item { border-bottom: none; border-right: 1px solid var(--work-line); min-width: 168px; }
  .doc-h1 { font-size: 30px; }
}

/* ===== 左栏索引：悬停排起 + 邻位让位（评估后采用"聚焦·退后"克制版） ===== */
.t-rail { position: sticky; top: 84px; display: flex; flex-direction: column;
  border: 1px solid var(--work-line); border-radius: var(--radius); max-height: calc(100vh - 104px); overflow-y: auto; background: var(--work-panel); }
.t-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px;
  border-bottom: 1px solid var(--work-line); cursor: pointer; border-left: 3px solid transparent;
  text-decoration: none; color: inherit; transform-origin: left center; will-change: transform;
  transition: transform .32s cubic-bezier(.2,.75,.25,1), background .18s ease, border-color .18s ease, box-shadow .32s ease, opacity .3s ease; }
.t-item:last-child { border-bottom: none; }
/* 悬停整列时，未悬停项轻微后退、降透明度——把视觉焦点"让"给当前项 */
.t-rail:hover .t-item:not(:hover) { transform: scale(.975); opacity: .5; }
/* 选中项（非当前悬停）后退得更轻，保持定位感 */
.t-rail:hover .t-item.on:not(:hover) { transform: scale(.985); opacity: .72; }
.t-item:hover { transform: translateX(5px) scale(1.045); background: var(--work-panel2);
  border-left-color: var(--brand); box-shadow: -8px 8px 22px rgba(16,30,45,.12); z-index: 2; }
.t-item.on { background: var(--brand-soft); border-left-color: var(--brand); box-shadow: -4px 4px 14px rgba(34,211,238,.18); }
.t-item.on:hover { transform: translateX(5px) scale(1.05); box-shadow: -8px 10px 24px rgba(34,211,238,.22); }

/* ===== 右栏：真实图形（CSS 动画，轻量"动图"） ===== */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font-family: "Microsoft YaHei","PingFang SC",system-ui,-apple-system,sans-serif; }
.a-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; animation: barRise .72s cubic-bezier(.2,.8,.2,1) forwards; }
.a-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lineDraw 1.15s ease forwards; }
.a-dot { opacity: 0; transform-box: fill-box; transform-origin: center; animation: dotIn .5s ease forwards; }
.a-fade { opacity: 0; animation: fadeIn .55s ease forwards; }
.a-pulse { animation: oocPulse 1.7s ease-in-out infinite; }
@keyframes barRise { to { transform: scaleY(1); } }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes oocPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .a-bar { transform: none; } .a-line { stroke-dashoffset: 0; }
  .a-dot { opacity: 1; transform: none; } .a-fade { opacity: 1; } .a-pulse { animation: none; }
}

/* 要点列表 */
.panel-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; max-width: 54em; }
.panel-points li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--work-muted); }
.panel-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* 上下游链路：方向标签 + 真实链接药丸（见 .chain-row 上方规则） */

/* 检查表导引页：记录用 + 点检用 双图 */
.chk2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chk-sub { border: 1px solid var(--work-line); border-radius: 10px; padding: 13px 15px; background: #fff; }
.chk-sub-h { font-size: 12.5px; font-weight: 800; color: var(--brand-ink); margin-bottom: 9px; font-family: var(--font-en); letter-spacing: .01em; }
.chk-sub-h::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 2px; background: var(--brand); transform: rotate(45deg); vertical-align: middle; }
.chk-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.chk-tbl th { text-align: left; font-family: var(--font-en); font-size: 11px; letter-spacing: .03em;
  color: var(--work-dim); font-weight: 700; padding: 4px 7px; border-bottom: 1px solid var(--work-line); }
.chk-tbl td { padding: 6px 7px; border-bottom: 1px solid var(--work-line); color: var(--work-muted); }
.chk-tbl tr:last-child td { border-bottom: none; }
.chk-tbl .tally { font-family: var(--font-en); letter-spacing: 2px; color: var(--brand-ink); white-space: nowrap; font-weight: 600; }
.chk-tbl .res { text-align: center; font-weight: 800; font-family: var(--font-en); width: 42px; }
.chk-tbl .res.ok { color: #1f9d6b; }
.chk-tbl .res.no { color: #F2555A; }
.chk-tbl .res.na { color: var(--work-dim); }
@media (max-width: 560px) { .chk2 { grid-template-columns: 1fr; } }

/* 适用场景盒（每个工具 panel：t.use* 词典，左栏索引点选后右侧即时显示） */
.use-box { margin: 16px 0 4px; padding: 12px 16px; border: 1px solid var(--work-line);
  border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft);
  color: var(--work-txt); font-size: 14px; line-height: 1.75; max-width: 56em; }

/* 工具选型指引：叙事逻辑 / 适用过程（sel.* 词典；整页宽，置于工具双栏之后） */
.sel-guide { margin: 10px 0 76px; padding: 30px 32px; border: 1px solid var(--work-line);
  border-radius: var(--radius); background: var(--work-panel); box-shadow: var(--shadow-work); }
.sel-guide .sg-h { font-size: 23px; font-weight: 800; color: var(--work-txt); margin: 0 0 10px; }
.sel-guide .sg-intro { font-size: 15.5px; line-height: 1.8; color: var(--work-muted); max-width: 64em; margin: 0 0 22px; }
.sel-guide .sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 6px; }
.sel-guide .sg-card { border: 1px solid var(--work-line); border-top: 2px solid var(--brand);
  border-radius: var(--radius); padding: 18px 20px; background: var(--work-panel2); }
.sel-guide .sg-ch { font-size: 15.5px; font-weight: 800; color: var(--brand-ink); margin: 0 0 8px; }
.sel-guide .sg-cp { font-size: 14px; line-height: 1.75; color: var(--work-muted); margin: 0; }
.sel-guide .sg-sub { font-size: 16px; font-weight: 800; color: var(--work-txt); margin: 24px 0 10px;
  padding-top: 16px; border-top: 1px dashed var(--work-line); }
.sel-guide .sg-flow, .sel-guide .sg-link { font-size: 14.5px; line-height: 1.8; color: var(--work-muted); max-width: 66em; }
.sel-guide .sg-flow ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.sel-guide .sg-flow li { padding-left: 2px; }
.sel-guide .sg-link p { margin: 0; }
@media (max-width: 720px) {
  .sel-guide .sg-grid { grid-template-columns: 1fr; }
  .sel-guide { padding: 24px 18px; }
}
