/* ============================================================
   御麒麟 · 前端设计系统 v2.1 · 全量上线生产版（T-20260903-51 · 2026-09-03）
   基线：v2.0（T-20260903-64b/50 六页落地版）全量保留；本版新增 §11 页级组件收敛
   （investor/demo/sales/trust 页内 <style> 全部入库，HTML 内联样式清零）与
   §12 生产组件层（抽屉导航/加载/骨架屏/表单态/Toast/空态/错误页/无障碍）。
   品牌：御麒麟 = 安全AI（中旭嘉创科技 · yuqilinai.com）
   唯一 token 源：36_设计规范2.0/tokens_2.0.css（本文件 :root 为其全量内联，
   站点零外部依赖故内联分发；值级一致，禁止脱源改动 §17）。
   基线六色（规范 1.0 直取）：brand.gold #2457FF · brand.navy #07142B ·
     functional.blue #2F6BFF · neutral.gray #A8B2C3 · neutral.white #FFFFFF。
   历史变量名（--brand-900/--ink-*/--sp-*/--r-*/--sh-* 等）全部保留为别名层，
   指向 tokens_2.0 正式变量，向后兼容六页既有 class。
   ============================================================ */

/* ---------- 1. 设计令牌（tokens_2.0 全量内联） ---------- */
:root {
  /* ===== Color · brand（直取） ===== */
  --brand-gold: #2457FF;      /* Logo、主CTA、品牌强调、TRC印章 */
  --brand-navy: #07142B;      /* 官网/产品深色底、发布会 */
  --functional-blue: #2F6BFF; /* AI、数据、链接、交互高亮 */
  --neutral-gray: #A8B2C3;    /* 辅助文字、次级信息 */
  --neutral-white: #FFFFFF;   /* 反白Logo、浅色正式背景 */

  /* ===== 功能梯度 50-900（推导：tint 混白 / shade 混黑） ===== */
  --gold-50:  #FEFBF5; --gold-100: #FEF6E6; --gold-200: #EAF0FF;
  --gold-300: #FAD88C; --gold-400: #F8CA62; --gold-500: #2457FF;
  --gold-600: #1B3FCC; --gold-700: #B88A22; --gold-800: #876519; --gold-900: #564010;
  --blue-50:  #F5F8FF; --blue-100: #E6EDFF; --blue-200: #C5D6FF;
  --blue-300: #8DAEFF; --blue-400: #6390FF; --blue-500: #2F6BFF;
  --blue-600: #295EE0; --blue-700: #2350BF; --blue-800: #1A3B8C; --blue-900: #102559;
  --navy-50:  #F3F3F4; --navy-100: #E1E3E6; --navy-200: #BABDC4;
  --navy-300: #777E8A; --navy-400: #454F60; --navy-500: #07142B;
  --navy-600: #061226; --navy-700: #050F20; --navy-800: #040B18; --navy-900: #02070F;
  --gray-50:  #FBFBFC; --gray-100: #F5F6F8; --gray-200: #E7E9EE;
  --gray-300: #CFD5DE; --gray-400: #BEC5D2; --gray-500: #A8B2C3;
  --gray-600: #949DAC; --gray-700: #7E8692; --gray-800: #5C626B; --gray-900: #3B3E44;

  /* ===== 状态色（hover +12% 黑 / active +25% 黑 / disabled +72% 白） ===== */
  --gold-hover: #1B3FCC;  --gold-active: #B88A22;  --gold-disabled: #EAF0FF;
  --blue-hover: #295EE0;  --blue-active: #2350BF;  --blue-disabled: #C5D6FF;
  --focus-ring-blue: rgba(47,107,255,.14);
  --focus-ring-gold: rgba(245,184,46,.14);
  --focus-ring-danger: rgba(239,68,68,.14);

  /* ===== 语义色（§3.1 基色直取） ===== */
  --semantic-success: #22C55E;
  --semantic-info:    #2F6BFF;
  --semantic-warning: #B45309;
  --semantic-danger:  #EF4444;
  --semantic-neutral: #6B7280;
  /* 语义梯度（推导） */
  --success-100:#E4F8EC; --success-300:#85DFA6; --success-500:#22C55E; --success-700:#1A9446; --success-800:#136C34;
  --warning-100:#FEF3E2; --warning-300:#FACA79; --warning-500:#B45309; --warning-700:#B87608; --warning-800:#875706;
  --danger-100:#FDE9E9;  --danger-300:#F69898;  --danger-500:#EF4444;  --danger-700:#B33333;  --danger-800:#832525;
  /* 语义文本色（浅底深文本，站点在产值转正） */
  --success-text: #067647;
  --warning-text: #B54708;
  --danger-text:  #B42318;
  --info-text:    #2350BF;  /* = blue-700 */

  /* ===== 表面 / 文本 / 边框 ===== */
  --surface-page: #F6F7FB;
  --surface-card: #FFFFFF;
  --surface-dark-card: #122A52;
  --text-primary: #101828;
  --text-secondary: #344054;
  --text-tertiary: #667085;
  --text-muted: var(--neutral-gray);
  --text-inverse: #FFFFFF;
  --text-inverse-soft: #D0D5DD;
  --border-default: #E4E7EC;
  --border-strong: #CFD5DE;

  /* ===== Typography（§4 八级字阶 · 四档字重） ===== */
  --font-family-base: "Source Han Sans CN", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-family-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Source Han Sans CN", monospace;
  --text-xs: 12px;  --text-sm: 14px;  --text-md: 16px;  --text-lg: 20px;
  --text-xl: 24px;  --text-2xl: 32px; --text-3xl: 48px; --text-4xl: 64px;
  --leading-tight: 1.25;  /* Display/H1 */
  --leading-title: 1.35;  /* H2/H3 */
  --leading-body: 1.6;    /* 正文 */
  --leading-caption: 1.5;
  --font-weight-regular: 400; --font-weight-medium: 500;
  --font-weight-semibold: 600; --font-weight-bold: 700;

  /* ===== Spacing（§7 8pt 网格） ===== */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 48px; --space-9: 64px;

  /* ===== Radius（§7 主用 4/8/16 + 胶囊） ===== */
  --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px;
  --radius-xl: 12px; --radius-2xl: 16px;
  --radius-full: 9999px;

  /* ===== Shadow（两级，深夜蓝同构；禁止发光投影） ===== */
  --shadow-1: 0 1px 2px rgba(7,20,43,.06), 0 1px 3px rgba(7,20,43,.10);   /* 卡片静止 */
  --shadow-2: 0 8px 24px rgba(7,20,43,.14), 0 2px 6px rgba(7,20,43,.10);  /* 弹层/悬浮/hover 抬升 */

  /* ===== Motion（150/300ms） ===== */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --easing-standard: cubic-bezier(.2,0,.1,1);
  --easing-emphasize: cubic-bezier(.2,0,0,1);

  /* ========== 历史别名层（向后兼容，全部指向 tokens_2.0） ========== */
  --brand-900: var(--brand-navy);     /* 深夜蓝 */
  --brand-700: var(--blue-500);       /* 功能蓝 */
  --brand-600: var(--blue-400);       /* 功能蓝·亮（ hover 请用 --blue-hover ） */
  --brand-100: var(--blue-100);       /* 功能蓝·浅底 */
  /* 注意：--gold-600 在 tokens_2.0 梯度中 = #1B3FCC（gold-hover）；
     历史「品牌金」语义请用 --gold-500（#2457FF），六页 HTML 已全量迁移。 */
  --ink-900: var(--text-primary);
  --ink-700: var(--text-secondary);
  --ink-600: #475467;               /* T-20260907-04 补：介于 700/500 之间的正文强调阶（原 N2/N7/N8 页内引用未定义，已收敛 §11.5-11.7） */
  --ink-500: var(--text-tertiary);
  --ink-300: var(--neutral-gray);
  --bg-page: var(--surface-page);
  --bg-card: var(--surface-card);
  --line:    var(--border-default);
  /* 语义历史名（浅底/描边升级为 tokens_2.0 语义梯度） */
  --ok:   var(--success-text); --ok-bg:   var(--success-100); --ok-line:   var(--success-300);
  --warn: var(--warning-text); --warn-bg: var(--warning-100); --warn-line: var(--warning-300);
  --bad:  var(--danger-text);  --bad-bg:  var(--danger-100);  --bad-line:  var(--danger-300);
  --info: var(--semantic-info); --info-bg: var(--blue-100);
  /* 字体/字阶别名 */
  --font-sans: var(--font-family-base);
  --font-num:  var(--font-family-mono);
  --fs-display: var(--text-3xl); --fs-h1: var(--text-2xl); --fs-h2: var(--text-xl);
  --fs-h3: var(--text-lg);      --fs-body: var(--text-md); --fs-small: var(--text-sm); --fs-tiny: var(--text-xs);
  /* 间距别名（8pt 网格不变） */
  --sp-1: var(--space-1); --sp-2: var(--space-2); --sp-3: var(--space-3); --sp-4: var(--space-4);
  --sp-6: var(--space-5); --sp-8: var(--space-6); --sp-12: var(--space-8); --sp-16: var(--space-9);
  /* 圆角别名（规范主用 4/8/16 + 胶囊） */
  --r-sm: var(--radius-sm);    /* 4px 按钮/输入框/tag/badge */
  --r-md: var(--radius-lg);    /* 8px 卡片/表格容器/下拉 */
  --r-lg: var(--radius-2xl);   /* 16px 模态/Hero 大卡/终端窗 */
  --r-pill: var(--radius-full);
  /* 阴影别名（规范仅两级；历史三级 --sh-3 降级合并入二级） */
  --sh-1: var(--shadow-1);
  --sh-2: var(--shadow-2);
  --sh-3: var(--shadow-2);
}

/* 深色表面令牌（深底区块使用 .dark 作用域，与 tokens_2.0 dark 段一致） */
.dark, [data-theme="dark"] {
  --surface-card: var(--surface-dark-card);
  --text-primary: var(--text-inverse);
  --text-secondary: var(--text-inverse-soft);
  --text-tertiary: var(--neutral-gray);
  --border-default: rgba(255,255,255,.12);
  /* 历史别名同步 */
  --ink-900: #f2f4f7; --ink-700: var(--text-inverse-soft); --ink-600: #C6CBD6; --ink-500: var(--neutral-gray);
  --bg-card: var(--surface-dark-card); --line: rgba(255,255,255,.14);
}

/* ---------- 2. 基础重置与排版（§4 八级字阶/四档字重/行高阶） ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-page); color: var(--ink-900);
  font-family: var(--font-sans); font-size: var(--fs-body);       /* 16px Body 基准 */
  line-height: var(--leading-body);                                /* 1.6 正文行高 */
  font-weight: var(--font-weight-regular);
  font-feature-settings: "tnum"; /* 数字等宽对齐 */
}
h1 { font-size: var(--fs-h1); line-height: var(--leading-tight); font-weight: var(--font-weight-bold);     margin: 0 0 var(--sp-3); }
h2 { font-size: var(--fs-h2); line-height: var(--leading-title); font-weight: var(--font-weight-semibold); margin: 0 0 var(--sp-3); }
h3 { font-size: var(--fs-h3); line-height: var(--leading-title); font-weight: var(--font-weight-semibold); margin: 0 0 var(--sp-3); }
h4 { font-size: var(--fs-body); line-height: var(--leading-title); font-weight: var(--font-weight-semibold); margin: 0 0 var(--sp-3); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--functional-blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
img, svg { max-width: 100%; }
code { font-family: var(--font-num); }

/* ---------- 3. 布局栅格（桌面优先 12 列，内容区 ≤1200） ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-16) 0; }
.section + .section { padding-top: 0; }
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 导航与页脚（通用骨架：白底导航 + Mark/标准字 + 金 CTA） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(7,20,43,.05); /* T-04：静止态微 elevation，吸顶不飘 */
}
.nav-inner { display: flex; align-items: center; gap: var(--sp-8); height: 64px; }
.nav-logo { display: flex; align-items: center; gap: var(--sp-3); font-weight: var(--font-weight-bold); font-size: var(--text-md); color: var(--brand-900); }
.nav-logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: var(--sp-6); margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-700); font-size: var(--fs-small); font-weight: var(--font-weight-semibold); }
.nav-links a:hover { color: var(--brand-700); text-decoration: none; }
.nav-links a.active { color: var(--brand-900); border-bottom: 2px solid var(--gold-500); padding-bottom: 2px; }

.footer { background: var(--brand-900); color: var(--text-inverse-soft); padding: var(--sp-12) 0 var(--sp-8); margin-top: var(--sp-16); border-top: 2px solid rgba(245,184,46,.35); } /* T-04：页脚金色发丝线，品牌收口 */
.footer a { color: var(--text-inverse-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); }
.footer h3 { color: var(--text-inverse); font-size: var(--fs-small); margin-bottom: var(--sp-3); }
.footer ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-tiny); line-height: 2.2; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-8); padding-top: var(--sp-4); font-size: var(--fs-tiny); color: var(--neutral-gray); }

/* ---------- 5. 组件：按钮（方案A · T-20260903-72：主CTA/Primary 统一品牌金 .btn-gold；.btn-primary 收敛为金同轨别名；蓝仅保留 .btn-secondary 技术次级 / ghost·outline-light 描边；五态：default/hover/active/disabled/focus） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  border: 0; border-radius: var(--r-sm); padding: 12px 24px;
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--font-weight-bold);
  cursor: pointer; text-decoration: none !important;
  transition: background-color var(--duration-fast) var(--easing-standard),
              color var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-fast) var(--easing-standard),
              border-color var(--duration-fast) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring-blue); }
.btn:disabled, .btn.disabled { background: var(--blue-disabled); color: var(--neutral-white); cursor: not-allowed; box-shadow: none; }
/* 方案A（规范 §8：Primary 品牌金；技术次级可用蓝）：.btn-primary 自 2026-09-03 起
   收敛为 .btn-gold 同轨别名（金底 #2457FF + 深夜蓝字，对比 ~8:1），站点主CTA 一律用 .btn-gold；
   蓝底填充不再作为任何 Primary 样式，技术次级请用 .btn-secondary。 */
.btn-primary { background: var(--gold-500); color: var(--brand-navy); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--gold-hover); color: var(--brand-navy); box-shadow: var(--sh-2); }
.btn-primary:active { background: var(--gold-active); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-gold); }
.btn-primary:disabled { background: var(--gold-disabled); color: var(--gold-800); }
.btn-gold { background: var(--gold-500); color: var(--brand-navy); box-shadow: var(--sh-1); }
.btn-gold:hover { background: var(--gold-hover); box-shadow: var(--sh-2); }
.btn-gold:active { background: var(--gold-active); }
.btn-gold:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-gold); }
.btn-gold:disabled { background: var(--gold-disabled); color: var(--gold-800); }
.btn-secondary { background: var(--brand-100); color: var(--blue-700); } /* AA（T-50）：blue-500 3.8:1→blue-700 6.0:1，同色相取深阶 */
.btn-secondary:hover { background: var(--blue-200); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--brand-700); color: var(--brand-700); }
/* 深底描边次 CTA（蓝描边，navy hero 专用） */
.btn-outline-light { background: transparent; border: 1px solid var(--blue-300); color: var(--blue-100); }
.btn-outline-light:hover { background: rgba(47,107,255,.14); border-color: var(--blue-200); color: var(--neutral-white); }
.btn-lg { padding: 16px 32px; font-size: var(--text-md); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-small); }

/* ---------- 6. 组件：卡片三态（静止一级影 / hover 抬升二级影） / 标签 / 提示 ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--sp-6);
  transition: box-shadow var(--duration-fast) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard);
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); } /* T-04：hover 抬升反馈 */
.card h3 { font-size: var(--fs-h3); }
.card .muted { color: var(--ink-500); font-size: var(--fs-small); }

.tag {
  display: inline-flex; align-items: center; margin: 4px 6px 0 0;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-tiny); font-weight: var(--font-weight-bold);
}
.tag-bad  { background: var(--bad-bg);  color: var(--bad);  border: 1px solid var(--bad-line); }
.tag-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.tag-ok   { background: var(--ok-bg);   color: var(--ok);   border: 1px solid var(--ok-line); }
.tag-info { background: var(--info-bg); color: var(--info-text); }
.tag-gold { background: var(--gold-100); color: var(--gold-800); border: 1px solid var(--gold-500); }

.callout { border-radius: var(--r-md); padding: var(--sp-4); font-size: var(--fs-small); border: 1px solid; }
.callout-ok   { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok); }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.callout-bad  { background: var(--bad-bg);  border-color: var(--bad-line);  color: var(--bad); }

/* 页面主张落地句（C 类主张体系 C-3 映射位） */
.claim { font-size: var(--text-lg); line-height: var(--leading-body); font-weight: var(--font-weight-semibold); margin: 0 0 var(--sp-3); }
.claim-gold { color: var(--gold-500); }        /* 深底用 */
.claim-gold-dark { color: var(--gold-700); }   /* 浅底用（对比度达标） */

/* ---------- 7. 组件：表单（Focus 蓝环） / 表格 ---------- */
.input, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; font-family: var(--font-sans); font-size: var(--fs-small); line-height: var(--leading-body);
  background: var(--neutral-white); color: var(--ink-900); outline: none; resize: vertical;
  transition: border-color var(--duration-fast) var(--easing-standard),
              box-shadow var(--duration-fast) var(--easing-standard);
}
.textarea { min-height: 240px; }
.input:focus, .textarea:focus { border-color: var(--brand-700); box-shadow: 0 0 0 3px var(--focus-ring-blue); }

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--neutral-white); }
.table th {
  text-align: left; padding: 12px 16px; background: var(--brand-900); color: var(--text-inverse);
  font-weight: var(--font-weight-bold); white-space: nowrap;
}
.table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-700); vertical-align: top; }
.table tr:hover td { background: var(--bg-page); }
.table .num { font-family: var(--font-num); font-weight: var(--font-weight-bold); color: var(--blue-700); white-space: nowrap; } /* AA（T-50） */

/* ---------- 8. 页面级模块 ---------- */
.eyebrow { font-size: var(--fs-tiny); letter-spacing: .14em; font-weight: var(--font-weight-bold); color: var(--gold-800); text-transform: uppercase; } /* AA（T-50）：浅底默认 gold-800（5.4:1）；深底上下文在 §9 回 gold-500 */

/* Hero · 深底（首页/投资人：navy 发布会规格）
   T-20260907-04：渐变末端亮蓝（blue-500/400）降级为 navy 深渊渐变＋金色径向辉光——
   对齐 cert-card 既有质感语言；修复 lead 落亮蓝端 3.09:1 不达 AA（修复后落区 12.62:1）。 */
.hero { background: radial-gradient(1100px 520px at 84% -12%, rgba(245,184,46,.14), transparent 62%), linear-gradient(165deg, var(--navy-600) 0%, var(--brand-navy) 52%, var(--navy-800) 100%); color: var(--text-inverse); padding: var(--sp-16) 0; border-top: 2px solid rgba(245,184,46,.55); }
.hero h1 { font-size: var(--fs-display); line-height: var(--leading-tight); letter-spacing: .01em; }
.hero .lead { color: var(--blue-200); font-size: var(--text-lg); line-height: var(--leading-body); max-width: 720px; }
.hero .grid-2 { align-items: center; }
/* Hero · 浅底（产品/销售/信任：白底正式规格） */
.hero-light { background: linear-gradient(180deg, var(--neutral-white) 0%, var(--gold-50) 100%); color: var(--text-primary); padding: var(--sp-16) 0; border-bottom: 1px solid var(--gold-200); } /* T-04：白→gold-50 暖意微渐变＋金色发丝底边 */
.hero-light h1 { font-size: var(--fs-display); line-height: var(--leading-tight); letter-spacing: .01em; color: var(--text-primary); }
.hero-light .lead { color: var(--text-tertiary); font-size: var(--text-lg); line-height: var(--leading-body); max-width: 720px; }
/* Hero · 紧凑变体（trust 验证页首屏：规范 §12 首屏五秒回答后直上工具卡） */
.hero-tight { padding: var(--sp-12) 0; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.stat-cell { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.stat-cell .k { font-size: var(--fs-tiny); color: var(--ink-500); }
.stat-cell .v { font-size: var(--text-xl); font-weight: var(--font-weight-bold); color: var(--brand-700); font-family: var(--font-num); margin-top: 2px; }

.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); margin-top: var(--sp-6); } /* T-50：步进带与上方卡片组留一档间距（原首页内联） */
.flow-steps .step { padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; background: var(--neutral-white); font-size: var(--fs-tiny); font-weight: var(--font-weight-bold); color: var(--blue-700); } /* AA（T-50） */
.flow-steps .step small { display: block; color: var(--ink-500); font-weight: var(--font-weight-medium); margin-top: 4px; }

/* 终端窗组件（代码块/审计链：等宽栈 + 16px 圆角大卡） */
.code-view { background: #101828; color: #e4e7ec; border-radius: var(--r-lg); padding: var(--sp-4); font: 12px/1.6 var(--font-num); white-space: pre-wrap; word-break: break-all; min-height: 180px; }

.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .price { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--brand-navy); font-family: var(--font-num); } /* T-04：blue-500(4.50:1 临界)→navy(14.7:1)，价格用深夜蓝压阵 */
.price-card .price small { font-size: var(--fs-small); color: var(--ink-500); font-weight: var(--font-weight-medium); font-family: var(--font-sans); }
.price-card.featured { border: 2px solid var(--gold-500); box-shadow: var(--sh-2); }
.price-card .badge { position: absolute; top: -12px; right: 16px; }
.price-card ul { list-style: none; padding: 0; margin: var(--sp-4) 0; font-size: var(--fs-small); color: var(--ink-700); flex: 1; }
.price-card ul li { padding: 6px 0 6px 22px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--semantic-success); font-weight: var(--font-weight-bold); }

.section-title { text-align: center; max-width: 760px; margin: 0 auto var(--sp-12); }
.section-title h2 { font-size: var(--fs-h1); }
.section-title p { color: var(--ink-500); }

.demo-banner { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); border-radius: var(--r-md); padding: 12px 16px; font-size: var(--fs-tiny); font-weight: var(--font-weight-bold); text-align: center; margin-bottom: var(--sp-6); }

/* ---------- 9. 全站统一布局组件层（T-20260903-50 版式统一：内联样式收敛/组件变体/首屏节律/演示态公共件） ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.btn-row--center { justify-content: center; }
.btn-row--lg { margin-top: var(--sp-6); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.card-icon { display: block; width: 48px; height: 48px; }
.card--center { text-align: center; }
.card--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.card--feature { max-width: 860px; margin-left: auto; margin-right: auto; border-left: 4px solid var(--gold-500); }
.card--flush { padding: 0; overflow: hidden; }
.card--form { max-width: 680px; margin-left: auto; margin-right: auto; }
.card--lift { box-shadow: var(--sh-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wrap--narrow { max-width: 860px; }
.footnote { text-align: center; font-size: var(--fs-tiny); color: var(--ink-500); margin-top: var(--sp-4); }
.hero-media { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
/* 首屏节律：hero 自带 64px 底距，其后首节不再叠加 64px 上距（消除 128px 断层） */
.hero + .section, .hero-light + .section, .hero-tight + .section { padding-top: 0; }
/* 色带节律：浅蓝 band 节自带完整上内距（覆盖相邻节零上距规则，内容不贴 band 顶边） */
.section--band { background: var(--brand-100); }
.section--band, .section + .section--band, .hero + .section--band, .hero-light + .section--band { padding-top: var(--sp-16); }
/* 数据带变体（investor 三列 / demo 报告内嵌） */
.stat-band--3 { grid-template-columns: repeat(3, 1fr); }
.stat-band--inset { margin: var(--sp-4) 0; }
.stat-cell--lg { padding: var(--sp-6) var(--sp-4); }
.stat-cell--lg .v { font-size: var(--text-2xl); }
/* 收尾 CTA 大卡（原首页内联渐变卡组件化） */
.cta-card { text-align: center; padding: var(--sp-8) var(--sp-6); background: radial-gradient(640px 320px at 88% -18%, rgba(245,184,46,.18), transparent 65%), linear-gradient(160deg, var(--navy-600), var(--navy-800)); color: var(--neutral-white); border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-1); } /* T-04：同 hero 深渊渐变语言 */
.cta-card .eyebrow, .hero .eyebrow { color: var(--gold-500); } /* 深底上下文回金（浅底默认 gold-800 见 §8） */
.cta-card h2 { font-size: var(--fs-h1); }
.cta-card p { color: var(--blue-200); max-width: 640px; margin: 0 auto; }
.section-title--tight { margin-bottom: var(--sp-5); }
/* 演示态公共件（原 demo/trust/sales 页内重复定义收敛至全局） */
.demo-badge { position: fixed; top: 76px; right: 14px; z-index: 99; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--r-pill); padding: 4px 16px; font: 700 12px/1.6 var(--font-num); box-shadow: var(--sh-2); letter-spacing: .06em; }
.mode-bar { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; background: var(--brand-100); border: 1px solid var(--brand-700); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-6); font-size: var(--fs-small); }
.mode-bar .lbl { font-weight: var(--font-weight-bold); color: var(--blue-700); } /* AA（T-50） */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { display: none; }
.switch .sl { position: absolute; inset: 0; background: var(--gray-500); border-radius: 999px; cursor: pointer; transition: background-color var(--duration-fast) var(--easing-standard); }
.switch .sl::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--neutral-white); border-radius: 50%; transition: transform var(--duration-fast) var(--easing-standard); }
.switch input:checked + .sl { background: var(--ok); }
.switch input:checked + .sl::before { transform: translateX(22px); }
.mock-note { font-size: var(--fs-tiny); color: var(--warn); font-weight: var(--font-weight-bold); }

/* ---------- 10. 响应式基线（T-20260903-50 三断点：1024 平板横/小桌面·导航换行 / 768 平板竖 / 480 手机） ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1, .hero-light h1 { font-size: var(--text-2xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band--3 { grid-template-columns: repeat(3, 1fr); }
  .nav-inner { flex-wrap: wrap; height: auto; padding: var(--sp-2) 0; gap: var(--sp-2) var(--sp-4); }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); } /* 六链接+CTA 在窄桌面不再溢出（原单行溢出） */
}
@media (max-width: 768px) {
  .wrap { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-12) 0; }
  .section + .section { padding-top: 0; }
  .section--band, .section + .section--band, .hero + .section--band, .hero-light + .section--band { padding-top: var(--sp-12); }
  .hero, .hero-light { padding: var(--sp-12) 0; }
  .hero-tight { padding: var(--sp-8) 0; }
  .stat-band, .stat-band--3 { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .demo-badge { top: auto; bottom: var(--sp-4); right: var(--sp-3); } /* 移动端改悬浮右下，不压首屏内容 */
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1, .hero-light h1 { font-size: var(--text-xl); }
  .nav-links a { font-size: var(--fs-tiny); }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; } /* 已上提至 §15 ≤768 档（P2-4），此处由 768 断点统一覆盖 */
  :root { --fs-display: var(--text-2xl); }
}

/* ---------- 11. 页级组件收敛层（T-20260903-51：四页 <style> 块全量入库，HTML 内联样式清零） ---------- */
/* 11.1 investor 投资人页 */
.milestone { display: grid; grid-template-columns: 90px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.milestone:last-child { border-bottom: 0; }
.milestone .stage { font-weight: var(--font-weight-bold); color: var(--blue-700); font-family: var(--font-num); }
.milestone .done { color: var(--ok); }
.team-cell { text-align: center; padding: var(--sp-6) var(--sp-4); }
.avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto var(--sp-3); background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); display: flex; align-items: center; justify-content: center; color: var(--neutral-white); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); }
.stat-cell .note { font-size: var(--fs-tiny); margin-top: var(--sp-2); }

/* 11.2 demo 演示台（四幕） */
.acts { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-8); }
.acts .act { flex: 1; text-align: center; padding: 12px 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--neutral-white); font-size: var(--fs-tiny); font-weight: var(--font-weight-bold); color: var(--ink-500); }
.acts .act.on { border-color: var(--gold-500); color: var(--brand-700); background: var(--gold-100); box-shadow: var(--sh-1); }
.pane { display: none; }
.pane.on { display: block; animation: fade var(--duration-base) var(--easing-emphasize); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.scenario { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-3) 0; }
.scenario .lbl { font-size: var(--fs-small); font-weight: var(--font-weight-bold); color: var(--ink-500); line-height: 34px; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--ink-500); background: var(--neutral-white); transition: border-color var(--duration-fast) var(--easing-standard), background-color var(--duration-fast) var(--easing-standard); cursor: pointer; }
.drop.over { border-color: var(--brand-600); background: var(--brand-100); color: var(--brand-700); }
.drop .drop-icon { font-size: var(--text-2xl); }
.drop .drop-hint { font-size: var(--fs-tiny); margin-top: var(--space-1); }
.file-list { margin-top: var(--sp-3); font-size: var(--fs-small); padding: 0; }
.file-list li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: var(--sp-2); background: var(--neutral-white); list-style: none; }
.file-list .err-text { color: var(--bad); }
.hit-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: var(--sp-3); align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.hit-row .hit-loc { text-align: right; }
.cert-card { background: linear-gradient(150deg, var(--brand-900), var(--brand-700)); color: var(--neutral-white); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-3); position: relative; overflow: hidden; }
.cert-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(245,184,46,.35), transparent 70%); }
.cert-card .cert-title { font-size: var(--fs-tiny); letter-spacing: .12em; color: var(--gold-500); font-weight: var(--font-weight-bold); }
.cert-card .cid { font: 700 18px/1.4 var(--font-num); color: var(--gold-500); letter-spacing: .04em; }
.cert-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: var(--fs-small); margin: var(--sp-4) 0 0; }
.cert-card dt { color: var(--blue-200); }
.cert-card dd { margin: 0; font-family: var(--font-num); word-break: break-all; }
.seal { display: inline-flex; align-items: center; gap: var(--sp-2); background: rgba(6,118,71,.22); border: 1px solid var(--ok-line); color: var(--success-100); border-radius: var(--r-pill); padding: 8px 16px; font-weight: var(--font-weight-bold); font-size: var(--fs-small); margin-top: var(--sp-4); }
.concl-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-4); }
.concl-grid .tag-link { text-decoration: none; }

/* 11.3 trust 验证页 */
.id-row { display: flex; gap: var(--sp-3); max-width: 720px; }
.id-row .input { flex: 1; font-family: var(--font-num); }
.badge-ed { display: inline-flex; align-items: center; gap: var(--sp-2); border-radius: var(--r-pill); padding: 8px 18px; font-weight: var(--font-weight-bold); font-size: var(--fs-small); }
.badge-ed.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.badge-ed.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad); }
.badge-ed.unknown { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: var(--fs-small); }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; font-family: var(--font-num); word-break: break-all; }
.api-log { background: var(--navy-900); color: var(--text-inverse-soft); border-radius: var(--r-md); padding: var(--sp-4); font: 12px/1.6 var(--font-num); white-space: pre-wrap; min-height: 120px; max-height: 260px; overflow: auto; }
.api-log .ok { color: var(--success-300); }
.api-log .err { color: var(--danger-300); }
.api-log .dim { color: var(--gray-500); }
.file-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-top: var(--sp-3); }
.demo-cert-row { font-size: var(--fs-tiny); margin-top: var(--sp-2); }
.demo-cert-row a { cursor: pointer; }

/* 11.4 sales 销售页 */
.trust-line { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-5) 0 var(--sp-6); }
.trust-line span { background: var(--blue-50); border: 1px solid var(--blue-200); border-radius: var(--r-sm); padding: 8px 16px; font-size: var(--fs-small); color: var(--info-text); }
.steps3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
.steps3 .st { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--neutral-white); }
.steps3 .num { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; background: var(--blue-600); color: var(--neutral-white); border-radius: 50%; font-weight: var(--font-weight-bold); margin-bottom: var(--sp-3); }
.steps3 ul { margin: 8px 0 0 18px; font-size: var(--fs-small); color: var(--ink-700); }
.steps3 .st-sub { display: block; font-weight: var(--font-weight-medium); }
.steps3-tail { text-align: center; margin-top: var(--sp-5); font-weight: var(--font-weight-bold); color: var(--brand-700); }
.chain { background: var(--brand-900); color: var(--blue-100); border-radius: var(--r-md); padding: var(--sp-4); font: 14px/1.6 var(--font-num); margin: var(--sp-5) 0; overflow-x: auto; white-space: nowrap; }
.chain b { color: var(--gold-500); }
details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--neutral-white); padding: 0; margin-bottom: var(--sp-2); }
details summary { cursor: pointer; padding: var(--sp-4); font-weight: var(--font-weight-bold); list-style: none; min-height: 28px; }
details summary::before { content: "＋ "; color: var(--gold-500); font-weight: var(--font-weight-bold); }
details[open] summary::before { content: "－ "; }
details .a { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-small); color: var(--ink-700); }
.pay-slot { border: 2px dashed var(--gold-500); border-radius: var(--r-md); background: var(--gold-100); padding: var(--sp-4); margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--gold-800); }
.field-label { display: block; font-weight: var(--font-weight-bold); font-size: var(--fs-small); margin-bottom: var(--space-1); }
.form-note { font-size: var(--fs-tiny); }
.price-note { font-size: var(--fs-tiny); }
.price-sub { font-size: var(--fs-small); }

/* ---------- 11.5-11.7 页级组件收敛（T-20260907-04：N2/N7/N8 页内 <style> 块全量入库，内容逐字保留；--ink-600 已在别名层补齐） ---------- */
/* 11.5 N7 体检页（checkup） */
.n7-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); counter-reset: n7step; }
.n7-step { position: relative; padding: var(--sp-3) var(--sp-3) var(--sp-3) calc(var(--sp-6) + var(--sp-2)); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-md); font-size: var(--fs-small); color: var(--ink-500); counter-increment: n7step; }
.n7-step::before { content: counter(n7step); position: absolute; left: var(--sp-3); top: var(--sp-3); width: var(--sp-5); height: var(--sp-5); display: grid; place-items: center; border-radius: 50%; background: var(--gray-200); color: var(--brand-navy); font-family: var(--font-num); font-weight: var(--font-weight-bold); }
.n7-step b { display: block; color: var(--brand-navy); font-size: var(--fs-body); }
.n7-step.is-active { border-color: var(--gold-500); background: var(--gold-100); }
.n7-step.is-active::before { background: var(--gold-500); color: var(--brand-navy); }
.n7-step.is-done { border-color: var(--success-300); }
.n7-step.is-done::before { background: var(--success-500); color: var(--neutral-white); }
.n7-chars { font-size: var(--fs-tiny); color: var(--ink-500); text-align: right; margin-top: var(--sp-1); }
.n7-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); align-items: center; }
.n7-scan-note { font-size: var(--fs-small); color: var(--info-text); }
.n7-result { margin-top: var(--sp-5); }
.n7-counts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.n7-count-chip { display: inline-flex; gap: var(--sp-2); align-items: baseline; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--gray-200); border-radius: 999px; background: var(--gray-50); font-size: var(--fs-small); color: var(--ink-600); }
.n7-count-chip b { font-family: var(--font-num); color: var(--brand-navy); }
.n7-score-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.n7-score { font-family: var(--font-num); font-size: var(--text-4xl); font-weight: var(--font-weight-bold); line-height: 1; }
.n7-score-label { font-size: var(--fs-small); color: var(--ink-500); }
.n7-masked { white-space: pre-wrap; word-break: break-all; font-size: var(--fs-small); }
.n7-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.n7-note { font-size: var(--fs-tiny); color: var(--ink-500); }
@media (max-width: 900px) { .n7-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .n7-cols { grid-template-columns: 1fr; } }
/* 11.6 N2 案例库页（cases） */
.n2-toolbar { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: flex-end; margin-top: var(--sp-5); }
.n2-toolbar .field { min-width: 200px; flex: 0 1 240px; }
.n2-count { font-size: var(--fs-small); color: var(--ink-500); margin-left: auto; align-self: center; white-space: nowrap; }
#statDemo, #statReal { display: inline-block; min-width: 2.5ch; text-align: center; }
.n2-count b { color: var(--brand-navy); font-family: var(--font-num); }
.n2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.n2-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.n2-card .card-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.n2-id { font-family: var(--font-num); font-weight: var(--font-weight-bold); color: var(--brand-navy); letter-spacing: .02em; }
.n2-title { margin: 0; font-size: var(--fs-h3); }
.n2-ind { font-size: var(--fs-small); color: var(--ink-500); }
.n2-quote { margin: 0; padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--gold-500); background: var(--gold-100); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: var(--font-weight-medium); }
.n2-meta { font-size: var(--fs-small); color: var(--ink-600); }
.n2-meta b { color: var(--brand-navy); font-weight: var(--font-weight-semibold); }
.n2-hits { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); margin: 0; padding: 0; list-style: none; }
.n2-hits .tag { font-size: var(--fs-tiny); }
.n2-note { font-size: var(--fs-tiny); color: var(--ink-500); }
.n2-foot { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); align-items: center; margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid var(--gray-200); font-size: var(--fs-tiny); color: var(--ink-500); }
.n2-foot .tag { font-size: var(--fs-tiny); }
.n2-trc { font-family: var(--font-num); }
.n2-skel { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); }
@media (max-width: 768px) {
  .n2-toolbar .field { flex: 1 1 100%; }
  .n2-count { margin-left: 0; }
}
/* 11.7 N8 离线验签包页（verify-trc-downloads） */
.n8-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.n8-file { display: flex; flex-direction: column; gap: var(--sp-2); }
.n8-file .n8-fname { font-family: var(--font-num); font-weight: var(--font-weight-semibold); word-break: break-all; }
.n8-file dl { margin: 0; font-size: var(--fs-small); color: var(--ink-600); display: grid; grid-template-columns: auto 1fr; gap: var(--sp-1) var(--sp-3); }
.n8-file dt { color: var(--ink-500); }
.n8-file dd { margin: 0; font-family: var(--font-num); word-break: break-all; }
.n8-file .btn-row { margin-top: auto; padding-top: var(--sp-2); }
.n8-steps { counter-reset: n8step; margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.n8-steps li { position: relative; padding: var(--sp-2) 0 var(--sp-2) calc(var(--sp-6) + var(--sp-2)); counter-increment: n8step; }
.n8-steps li::before { content: counter(n8step); position: absolute; left: 0; top: var(--sp-2); width: var(--sp-5); height: var(--sp-5); display: grid; place-items: center; border-radius: 50%; background: var(--gold-500); color: var(--brand-navy); font-family: var(--font-num); font-weight: var(--font-weight-bold); font-size: var(--fs-small); }
.n8-steps code, .n8-file code { font-size: var(--fs-small); }

/* ---------- 12. 生产组件层（T-20260903-51 新增：抽屉导航 / 加载 / 骨架屏 / 表单态 / Toast / 空态 / 错误页 / 无障碍） ---------- */
/* 12.0 无障碍基底 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -48px; z-index: 200; background: var(--brand-navy); color: var(--neutral-white); padding: 8px 16px; border-radius: var(--r-sm); font-size: var(--fs-small); font-weight: var(--font-weight-bold); transition: top var(--duration-fast) var(--easing-standard); }
.skip-link:focus { top: var(--sp-2); color: var(--neutral-white); text-decoration: none; }
:focus-visible { outline: none; }
a:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-blue); border-radius: var(--radius-xs); }
.input:focus-visible, .textarea:focus-visible { border-color: var(--brand-700); box-shadow: 0 0 0 3px var(--focus-ring-blue); }
summary:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-blue); }

/* 12.1 移动端抽屉导航（≤768 启用；桌面保持现行平铺导航） */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--neutral-white); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-blue); }
.nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(7,20,43,.48); opacity: 0; pointer-events: none; transition: opacity var(--duration-base) var(--easing-standard); }
.nav-scrim.open { opacity: 1; pointer-events: auto; }
.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(320px, 84vw); background: var(--neutral-white); box-shadow: var(--sh-2); transform: translateX(100%); visibility: hidden; transition: transform var(--duration-base) var(--easing-emphasize), visibility 0s linear var(--duration-base); display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-5) var(--sp-6); overflow-y: auto; }
.nav-drawer.open { transform: translateX(0); visibility: visible; transition: transform var(--duration-base) var(--easing-emphasize); }
.nav-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.nav-drawer .drawer-title { font-weight: var(--font-weight-bold); color: var(--brand-900); }
.nav-drawer .drawer-close { width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--neutral-white); cursor: pointer; font-size: var(--text-lg); line-height: 1; color: var(--ink-700); }
.nav-drawer a.drawer-link { display: block; padding: 14px var(--sp-2); border-bottom: 1px solid var(--line); color: var(--ink-700); font-size: var(--fs-body); font-weight: var(--font-weight-semibold); }
.nav-drawer a.drawer-link:hover { color: var(--brand-700); text-decoration: none; }
.nav-drawer a.drawer-link.active { color: var(--brand-900); border-left: 3px solid var(--gold-500); padding-left: var(--sp-3); }
.nav-drawer .drawer-cta { margin-top: var(--sp-5); justify-content: center; }
body.drawer-lock { overflow: hidden; }

/* 12.2 加载态（按钮 spinner / 区块骨架屏） */
.btn.is-loading { pointer-events: none; opacity: .85; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin var(--duration-base) linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: var(--gray-100); border-radius: var(--r-sm); min-height: 16px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.2s infinite; transform: translateX(-100%); }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-row { height: 44px; margin-bottom: var(--sp-2); }

/* 12.3 表单态（Error 必须文字解释 §8；Success/Loading 见组件清单总则） */
.field .field-error { display: none; color: var(--danger-text); font-size: var(--fs-tiny); font-weight: var(--font-weight-medium); margin-top: var(--space-1); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--semantic-danger); }
.field.has-error .input:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 3px var(--focus-ring-danger); }
.field.has-error .field-error { display: block; }
.field .req { color: var(--semantic-danger); }
.callout-loading { background: var(--info-bg); border-color: var(--blue-200); color: var(--info-text); }

/* 12.4 Toast（轻量反馈，顶部居中，自动消退） */
.toast-zone { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: var(--sp-2); pointer-events: none; }
.toast { pointer-events: auto; background: var(--brand-navy); color: var(--text-inverse); border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 12px 20px; font-size: var(--fs-small); font-weight: var(--font-weight-medium); animation: fade var(--duration-base) var(--easing-emphasize); max-width: min(480px, 90vw); }
.toast.toast-ok { border-left: 4px solid var(--semantic-success); }
.toast.toast-err { border-left: 4px solid var(--semantic-danger); }

/* 12.5 空态 / 错误态（表格与数据区通用） */
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--ink-500); }
.empty-state .empty-icon { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.error-state { text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--danger-text); }

/* 12.6 404 错误页 */
.error-hero { background: radial-gradient(900px 460px at 50% -16%, rgba(245,184,46,.13), transparent 62%), linear-gradient(165deg, var(--navy-600) 0%, var(--brand-navy) 52%, var(--navy-800) 100%); color: var(--text-inverse); padding: var(--sp-16) 0; text-align: center; border-top: 2px solid rgba(245,184,46,.55); } /* T-04：同 hero */
.error-hero .err-code { font-family: var(--font-num); font-size: var(--text-4xl); font-weight: var(--font-weight-bold); color: var(--gold-500); line-height: 1; margin: 0 0 var(--sp-3); }
.error-hero h1 { font-size: var(--fs-h1); }
.error-hero p { color: var(--blue-200); max-width: 560px; margin: 0 auto var(--sp-5); }
.error-hero .btn-row { justify-content: center; }
.error-links { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: center; margin-top: var(--sp-6); font-size: var(--fs-small); }
.error-links a { color: var(--blue-200); display: inline-block; padding: 12px 16px; margin: -12px -16px; }

/* 12.8 Evidence 三元结构组件＋Pill/Metric 规范成文（T-20260907-12k · P1-6，tokens 仅增量零替换）
   证据件/结论/指向 三卡布局；卡片统一 12-16px 圆角＋1px border；Pill 类只用于状态；Metric 大数字＋小解释层级。 */
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.ev-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--sp-4); box-shadow: var(--shadow-1); }
.ev-card .ev-label { font-size: var(--fs-tiny); font-weight: var(--font-weight-bold); color: var(--ink-500); letter-spacing: .08em; margin-bottom: var(--sp-2); }
.ev-card .ev-body { font-size: var(--fs-small); color: var(--ink-700); word-break: break-all; }
/* Pill：仅承载状态语义（规范 §六），不作通用标签容器 */
.pill { display: inline-flex; align-items: center; gap: var(--sp-1); border-radius: var(--radius-full); padding: 4px 12px; font-size: var(--fs-tiny); font-weight: var(--font-weight-bold); border: 1px solid; }
.pill-ok  { background: var(--ok-bg);  border-color: var(--ok-line);  color: var(--ok); }
.pill-bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.pill-warn{ background: var(--warn-bg);border-color: var(--warn-line);color: var(--warn); }
/* Metric：大数字＋小解释（双层级，禁止同级混排） */
.metric .metric-v { font-family: var(--font-num); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--blue-700); line-height: var(--leading-tight); }
.metric .metric-note { font-size: var(--fs-tiny); color: var(--ink-500); margin-top: var(--space-1); }
.kv dd.kv-note { font-family: var(--font-sans); } /* 验证说明为自然语言，不走等宽 */
.expert-box { border-top: 1px dashed var(--border-strong); padding-top: var(--sp-3); }
.expert-box summary { cursor: pointer; color: var(--blue-700); font-size: var(--fs-small); }

/* 12.9 TRC 验签单次确认动效（T-20260907-12k · P2-2：结果出现一次过渡，不循环） */
.verdict-stamp { font-family: var(--font-num); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); letter-spacing: .06em; line-height: 1.25; margin-top: var(--sp-3); min-height: 0; }
.verdict-stamp.is-ok  { color: var(--ok);  animation: verdict-confirm var(--duration-base) var(--easing-emphasize) 1; }
.verdict-stamp.is-bad { color: var(--bad); animation: verdict-confirm var(--duration-base) var(--easing-emphasize) 1; }
@keyframes verdict-confirm { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* 12.7 动效降级（prefers-reduced-motion） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 12.7b 降级增强（T-20260907-12k · P2-2）：reduced-motion 下移动端动效减 90%——hover 位移/抬升、抽屉滑移、开关滑动、验签戳全部静止 */
@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .card:hover, .card--lift:hover, .btn:hover { transform: none; }
  .card:hover, .card--lift:hover { box-shadow: var(--sh-1); }
  .verdict-stamp.is-ok, .verdict-stamp.is-bad { animation: none !important; }
  .nav-scrim, .nav-drawer, .nav-drawer.open { transition: none; }
  .switch .sl, .switch .sl::before { transition: none; }
  .skeleton::after { animation: none !important; }
}

/* ---------- 13. 响应式补充（T-51：抽屉断点接管 / 页级组件断点；三断点体系 1024/768/480 不变） ---------- */
@media (max-width: 900px) {
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { flex-wrap: nowrap; height: 64px; }
  .concl-grid { grid-template-columns: 1fr; }
  .hit-row { grid-template-columns: 88px 1fr; }
  .hit-row .hit-loc { display: none; }
  .id-row { flex-direction: column; }
  .milestone { grid-template-columns: 1fr; gap: var(--space-1); }
  .cert-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .evidence { grid-template-columns: 1fr; } /* T-20260907-12k：Evidence 移动端单列 */
}
@media (max-width: 480px) {
  .error-hero .err-code { font-size: var(--text-3xl); }
  .toast-zone { top: auto; bottom: var(--sp-4); }
}

/* ---------- 14. 生产化补遗（T-51 第二棒：HTML 内联样式清零收尾工具类） ---------- */
[hidden] { display: none !important; }
.u-m0 { margin: 0; }
.u-as-center { align-self: center; }
.u-ml-2 { margin-left: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); } .mt-7 { margin-top: var(--sp-7); } /* T-20260907-04：demo 页内联 margin 收敛 */
.u-fs-h3 { font-size: var(--fs-h3); } /* T-20260907-04：404 页内联字号收敛 */
.pane3-actions { margin-top: var(--sp-4); text-align: right; }
.form-actions { margin-top: var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.table-scroll:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring-blue); }

/* ---------- 15. 响应式四断点对齐补丁（T-20260907-12n · P2-4：京研社§二十断点表复核；既有 1024/900/768/480 规则零重构，仅补缺失档位与明显不符项） ----------
   京研社表项 → 现站处理对照：
   ① ≥1440 高端品牌大留白·内容宽1200–1280 → 原无 ≥1440 档；补 .wrap 1280＋节距 96px
   ② 1200–1439 标准桌面·Hero右侧视觉缩小 → 原无此档；补 hero-media 限宽居中
   ③ 768–1199 平板·双栏变主次纵向 → 原 grid-2 至 480 才单列；补 hero 双栏纵向堆叠
   ④ <768 CTA固定底部或浮动·等效可达 → 480 档全宽 CTA 上提至 ≤768（481–767 补档）；demo-badge 移动端已悬浮右下＝等效可达 */
@media (min-width: 1440px) {
  .wrap { max-width: 1280px; }
  .section { padding: calc(var(--sp-9) + var(--sp-6)) 0; }
  .section + .section { padding-top: 0; }
  .section--band, .section + .section--band, .hero + .section--band, .hero-light + .section--band { padding-top: calc(var(--sp-9) + var(--sp-6)); }
  .hero, .hero-light { padding: calc(var(--sp-9) + var(--sp-6)) 0; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .hero .hero-media, .hero-light .hero-media { max-width: 480px; justify-self: center; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero .grid-2, .hero-light .grid-2 { grid-template-columns: 1fr; } /* 平板：双栏变主次纵向 */
  .hero .hero-media, .hero-light .hero-media { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .btn-row .btn { flex: 1 1 100%; justify-content: center; } /* 原 480 档规则上提：481–767 补档，CTA 全宽触达＝等效可达 */
}
