Files
novalon-website/public/novavis/css/style.css
T
zhangxiang 99eaa8c66a feat(landing): 睿视 landing 由本仓统一管理——源码子目录化 + 四道门禁移植 + 契约路由
承接 ADR-0014 §4「第二等产品镜像起必须子目录化 + rewrites 前缀映射并回溯睿视」。
上一轮(2026-12-02)只搬了字节,源码落在 public/ 根命名空间;本轮把源码、门禁、
发布职责一并收进本仓,authority 侧退役对应产物。

源码与 URL 契约:
- public/novavis/{index.html,css,js,assets,images/logos} 一棵树自成一体
- index.html 引用保持站点级绝对路径(/css /js /assets /images/logos)不变。
  因为同一份字节要服务两个落点:官网镜像 novalon.cn/novavis/,以及独立子域
  novavis.p.novalon.cn/(页面在根路径)。改绝对路径会把子域首页变成 /novavis/
- 故用 4 条 prefix rewrite 把根命名空间映射进子目录,而非改写 HTML

四道门禁(从 authority 的四个 python 脚本移植为 Playwright,已并入 test:all):
- e2e/landing/{layout,motion,demo,a11y}.spec.ts + 独立 config(单引擎单 project 串行)
- layout:几何与焦点 / motion:js-grow 渐进生长与 reduced-motion 直达终态
- demo:首屏剧本四步 + 徽标一一对应 + 无 JS 降级四层真实可见性
- a11y:结构与全量对比度(同色无条件阻断)+ axe critical/serious=0
- 实测 13 passed / EXIT=0(1.4m)

补一个映射期暴露的真缺陷:landing 的 main.js 固定 POST /api/v1/contact 且只认
code===200,而本仓只有 /api/contact(formData + 必填 subject),镜像侧转化路径
一直 404。新增 src/app/api/v1/contact/route.ts 按 authority 契约响应(JSON +
{code:200}),而非改前端去适配本仓——改前端等于把适配成本转嫁给子域,且会让
两个落点的成功判据不一致。9 个单测覆盖校验、限流、上游失败不透传 5xx。

文档与配置同步:CLAUDE.md → AGENTS.md(单文档真源)、docs/landing.md、
docs/deployment.md §八、ADR-0014、qa-tracker §32、README 与 quality-gates 脚本表、
Jenkinsfile 落地「♿ 可访问性门禁」阶段的 landing 四道门禁、eslint 忽略
.next-dev-live 构建产物目录(未忽略时 eslint . 会扫出 21195 errors)。

门禁:tsc 0 / eslint 0 / jest app/api/v1 9/9 / test:landing 13 passed。
2026-12-03 22:56:17 +08:00

1555 lines
88 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@charset "UTF-8";
/* ============================================
睿视 NovaVis Landing Page
Light mode(冷中性纸底)+ Police Blue 强调
语义 token 对齐 frontend/src/styles/tokens.ts(控制台)与
novavis-desktop/src/styles/tokens.css(桌面端)——产品三面同一视觉世界。
版式语法参考 qoder.com/zh/qoder 浅色主题,但不复制其暖灰底与水彩装饰
(PRODUCT.md anti-reference:避免 SaaS 奶油色/beige 暖色调)。
============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--brand: #0033A0;
--brand-dark: #001A4D;
--brand-light: #1A4FB5;
/* 浅底上的品牌蓝文字取深档:#0033A0 on #FFFFFF = 11.5:1,on #F5F7FA = 10.9:1。
旧值 #8AB4F8 是深底专用亮蓝,浅底上只有 2.1:1,禁止复用。
实心主按钮仍走 --brand(白字 11.5:1,Pantone 286 上屏)。 */
--brand-text: #0033A0;
--brand-soft: #E6EEFF;
--brand-soft-hover: #F2F6FF;
/* 双中性底(2026-11-24 按 qoder 实测反转,见 dogfood-output/ui-refactor/qoder-ref/qoder-style.md §3):
区段本体 = 白纸 #FFFFFF(--bg-page);hero / 页脚 / 卡片 / 展台 = 面板灰 #F5F7FA(--panel)。
旧版是「灰页 + 白卡」,与 qoder 正相反:卡片是落在白纸上的一层面板,靠 1px 描边界定、
零阴影。灰页 + 白卡会让整页读作灰底,卡片只能靠「更亮」才看得见。 */
--bg-page: #FFFFFF;
--bg-elevated: #FFFFFF;
--bg-card: #FFFFFF;
--panel: #F5F7FA;
--bg-card-2: #F1F5F9;
--bg-card-3: #E7EDF6;
/* 文字(浅底档,每一档都可承载信息)*/
--text: #0F172A;
--text-secondary: #334155;
--text-tertiary: #475569;
/* 比控制台 --nv-text-muted #64748B 收紧一档:landing 有 9–12px 微标签,
#64748B 在 #F5F7FA 上只有 4.42:1,#5B697C = 5.16:1。 */
--text-muted: #5B697C;
--text-inverse: #FFFFFF;
--text-inverse-secondary: rgba(255,255,255,0.82);
--border: #E2E8F0;
--border-strong: #CBD5E1;
--border-deep: rgba(255,255,255,0.18);
/* 窗口/大卡片悬浮:描边环 + 近晕 + 远晕,三层 alpha 依次 1px 环 / 5% / 10%。
口径来自 qoder 实测 `0 0 0 1px rgba(0,0,0,.039), 0 0 48px rgba(0,0,0,.039), 0 0 12px rgba(0,0,0,.051)`
——它的远晕 alpha 只有 3.9%,本页保留到 10% 是浅底上仍需一点分离度,但不再用 16%/20% 的重投影。 */
--window-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(15,23,42,0.05), 0 16px 40px rgba(15,23,42,0.10);
/* 仿真窗真源:novavis-desktop/src/styles/tokens.css */
--sim-page: #f5f5f5;
--sim-surface: #ffffff;
--sim-sunken: #f1f5f9;
--sim-chrome: #ffffff;
--sim-primary: #185abc;
--sim-primary-hover: #1a73e8;
--sim-selected: #e6f4ff;
--sim-text: #1f1f1f;
--sim-text-strong: #141414;
--sim-text-secondary: #595959;
--sim-text-tertiary: #6b6b6b;
--sim-border: #d9d9d9;
--sim-divider: #f0f0f0;
--sim-titlebar-h: 40px;
/* 注:此处曾有深色主题残留 `--border: rgba(255,255,255,.08)` / `--border-strong: rgba(255,255,255,.16)`,
在浅色化后仍留在 :root 末尾,把上方的浅底档定义(#E2E8F0 / #CBD5E1)整段覆盖掉。
后果是 31 处 `var(--border)` 全部解析成「白底上的半透明白线」=肉眼无边框,
卡片的平面分层彻底失效。已删除——浅底档是唯一真源,勿再回写深色值。 */
--radius-sm: 6px;
--radius: 10px;
--radius-lg: 16px;
--radius-xl: 20px;
--radius-pill: 999px;
--nav-height: 64px;
--announce-height: 36px;
/* qoder 实测:内容壳 1440 + 左右 64 内距 = 内容宽 1312 */
--max-width: 1440px;
--gutter: 64px;
--section-y: 84px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + var(--announce-height) + 24px); }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
color: var(--text); background: var(--bg-page);
line-height: 1.65;
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
/* ---- Skip & Focus ---- */
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 200; padding: 12px 20px; background: var(--brand); color: var(--text-inverse); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 14px; font-weight: 600; }
.skip-link:focus { top: 0; outline: 2px solid var(--brand); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
/* ---- Buttons ---- */
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 12px 28px; border-radius: var(--radius-pill);
font-size: 15px; font-weight: 500; border: none; cursor: pointer;
/* qoder 实测:主按钮 hover 只换底色(200ms ease-in-out),无位移、无发光、无阴影变化 */
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
white-space: nowrap; letter-spacing: 0.01em; font-family: inherit;
}
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-primary { background: var(--brand); color: var(--text-inverse); border: 1px solid var(--brand); }
.btn-primary:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn-outline {
background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--brand-soft-hover); border-color: var(--brand); color: var(--brand-text); }
/* ---- Section Titles ---- */
.section-title {
font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
/* 38 → 32:与 qoder 实测 h2(32/42)对齐,也给 110px 段间距留出了呼吸。
原 38px 与 hero 的 68px 之间只隔一档,层级不分明。 */
font-size: clamp(26px, 2.9vw, 32px); font-weight: 700;
letter-spacing: -0.01em; margin-bottom: 12px; text-wrap: balance; color: var(--text);
}
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 560px; text-wrap: pretty; line-height: 1.7; }
/* 副标题(qoder SectionHeader_title + _subtitle 口径):标题下一行说明,浅一档 */
.section-subtitle { font-size: 16px; color: var(--text-tertiary); margin-top: 10px; max-width: 640px; line-height: 1.6; }
/* ---- Announcement Bar ---- */
.announcement {
position: fixed; top: 0; left: 0; right: 0; z-index: 101;
height: var(--announce-height); background: var(--brand);
display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.14);
}
.announcement-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
.announcement-text {
font-size: 13px; font-weight: 500; color: var(--text-inverse);
letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
min-width: 0; max-width: 100%;
}
/* 移动端用短版:长句在 375 视口只能被裁掉半句,读起来像渲染故障 */
.announcement-text--short { display: none; }
/* ---- Nav ---- */
/* qoder 实测:导航 sticky 且恒定 64px,背景与 hero 同色,无毛玻璃、无底边线、无阴影;
滚到白底区段时靠同色条带显出边界。旧版 rgba(255,255,255,.86) + blur + 阴影
是 qoder 明确没做的反模式(见 qoder-style.md §5.2 / §7.4)。 */
.nav {
position: fixed; top: var(--announce-height); left: 0; right: 0; z-index: 100;
height: var(--nav-height); background: transparent;
transition: background-color 0.25s ease;
}
.nav.scrolled { background: var(--panel); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--text); }
.nav-logo img { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-tertiary); transition: color 0.15s ease, background 0.15s ease; }
.nav-links a:hover { color: var(--text); }
/* qoder 导航没有激活胶囊:当前位置只靠文字色 + 字重,不与转化入口抢视觉 */
.nav-links a.active { color: var(--brand-text); background: transparent; font-weight: 600; }
/* 导航里的「申请试用」与信息栏目同权重时读作第 7 个栏目(复评 P2-7)。
用描边胶囊升一档即可,不用实心主按钮——那会跟 hero 的 .btn-primary 抢唯一转化入口。 */
.nav-links a.nav-cta {
color: var(--brand-text); background: var(--brand-soft);
border: 1px solid rgba(0,51,160,0.28);
}
.nav-links a.nav-cta:hover { color: var(--text-inverse); background: var(--brand); border-color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border: none; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ---- Hero ---- */
/* Hero 构图对齐 qoder 实测(qoder-style.md §1 / §2):
居中窄文本列(802px,约 61% 内容宽)+ CTA + 下方一块产品窗口。
旧版是「左文右图」分栏,产品窗口被挤到半幅宽——而 qoder 把首屏预算全押在那块 1:1
复刻的产品窗口上,它是全站唯一的硬资产,不该当配图放在右半边。
底色 = 面板灰,与卡片同色;旧版的蓝色径向光晕是 qoder 明确没有的渐变(§7.5),已删。 */
.hero {
position: relative; min-height: 100vh;
padding: 150px 0 64px; background: var(--panel); overflow: hidden;
}
.hero-inner {
display: block; position: relative; z-index: 2; text-align: center;
}
.hero-copy { max-width: 802px; margin: 0 auto; }
.hero-title {
font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
/* 字号保持 68px 上限(brand register + 宋体大字是品牌资产,不向 qoder 的 36px 看齐);
字重 900→700:宋体没有真正的黑体档,900 会触发合成加粗,笔画糊边、小视口更明显。
700 与 .section-title 同档,纵向读起来是同一套标题体系。
行高 1.08→1.12:68px 宋体两行中文,1.08 会让第二行的字头贴住上一行字脚。 */
font-size: clamp(44px, 5.8vw, 68px); font-weight: 700; color: var(--text);
line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 24px; text-wrap: balance;
}
.hero-subtitle {
font-size: 16px; color: var(--text-secondary); line-height: 1.75; margin: 0 auto 32px;
text-wrap: pretty; max-width: 620px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; }
.hero-badges { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-badge {
display: inline-flex; align-items: center; gap: 6px;
padding: 5px 12px; border-radius: var(--radius-pill);
background: var(--brand-soft); border: 1px solid rgba(51,102,204,0.22);
color: var(--brand-text); font-size: 12px; font-weight: 600;
}
.hero-badge svg { flex-shrink: 0; }
.hero-visual {
position: relative; display: flex; flex-direction: column;
align-items: center; margin-top: 56px;
}
/* 首屏演示暂停开关(WCAG 2.2.2:自动播放内容须可停止;规格对齐 .showcase-pause) */
.demo-pause {
/* 不再绝对定位压在仿真标题栏/工具栏上:作为演示窗口下方的独立控件排布 */
position: static; margin-top: 16px;
display: inline-flex; align-items: center; gap: 6px;
height: 28px; padding: 0 12px;
/* 2026-11-07 §28.2 评审 SHOULD-FIX:本控件曾用深底 rgba(8,14,26,.82) + backdrop-filter,
理由注释是「压在仿真标题栏的假搜索框上、半透明底会透出文字」。但那条前提已消失——
上一行早已改成 position:static(独立排在演示窗口下方),实测 360→1920 步长 20 穷举
零断点与之重叠。于是它变成"同语义、同文案、同尺寸、同 .showcase-pause 规格"却唯一一个
深底的药丸,在浅色页面里突兀。统一到 .showcase-pause 的浅底药丸(--brand-soft)。
因此也不再需要反相文字档:浅底用 --text-secondary 即可(11.9:1)。 */
background: var(--brand-soft);
border: 1px solid var(--border-strong);
border-radius: var(--radius-pill);
color: var(--text-secondary); font-size: 12px; font-family: inherit;
cursor: pointer;
transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.demo-pause:hover { color: var(--brand-text); background: var(--brand-soft-hover); border-color: var(--brand-light); }
@media (prefers-reduced-motion: reduce) { .demo-pause { display: none; } }
/* 暂停态:冻结演示内所有进行中的 CSS 动画与过渡 */
#heroDemo.demo-paused *,
#heroDemo.demo-paused *::before,
#heroDemo.demo-paused *::after { animation-play-state: paused; }
/* ============================================
真实界面仿真 Mockup:色板与结构对齐 NovaVis 桌面端真实 UI:
浅色 Chrome(--sim-chrome #FFFFFF 的 TitleBar/侧栏/状态栏)
+ 浅色图布(#F8F9FA)+ 白色 Inspector + 深色浮层
注(2026-11-07):本注释原写「深海军蓝 Chrome(#001540)」,那是浅色化之前的形态,
现实际走 --sim-chrome(#FFFFFF),与 desktop 的 antd 默认口径一致;见 §28.2 评审 NIT。
============================================ */
.app-mockup {
/* 真尺寸画布:内部按 720px 排版(与 desktop /home 的 0.5 倍折算一致),
外层用 zoom 等比放大到 ~1000,而不是把 width 拉宽——后者只拉宽不加高,
窗口会变成 2.29:1 的横条、内部 7px 字相对更小(读作被压扁的截图)。
qoder 的比例是 1350:800 = 1.69;本页 720:436 = 1.65,zoom 后不变。 */
width: 100%; max-width: 720px;
background: #F8F9FA; border: 1px solid var(--border);
border-radius: 12px; overflow: hidden;
/* 阴影只留给窗本身:父卡 .showcase-card 已无阴影,卡片靠 1px 描边界定 */
box-shadow: var(--window-shadow);
}
/* ============================================
窗口外壳 —— 逐件对齐 novavis-desktop 改版后的五件套(ADR-0217 §D6 / 0281)
真源几何(1440×900 实测,`docs/evidence/g51-20261104/ui-layout/layout.json`):
AppHeader 64 │ NavRail 55 + ModuleLibrary 225 = 280 双列 │ TabBar 36 │ main │ StatusBar 24
本画布按 **0.5 倍** 折算(1440 真窗口 → 720px 插画),故 64→32 / 55→27 / 225→112 / 36→18 / 24→12。
为什么折算而不是逐处调字号:真源里那些数字(55/225/36/24)是产品真值,直接折半
等于「把缩放烧进每个尺寸」,将来 desktop 再改版只需改这一处比例。
2026-11-07 §28.2 评审 P1 落项:改版前这里画的是 42px 的「假 TitleBar」,
而主窗口的 TitleBar 根本不渲染(改版后并入 64px AppHeader)。
============================================ */
.nv-titlebar {
/* AppHeader 32px(真源 64)。内容顺序照 AppHeader.tsx:194-302 从左到右:
mac 槽 → 模块库开关 → BrandMark → 当前任务胶囊 → 搜索 → 右侧入口 */
display: flex; align-items: center; gap: 8px;
height: 32px; padding: 0 10px;
background: var(--sim-chrome); border-bottom: 1px solid var(--sim-divider);
}
/* 模块库开关:40×40 圆形按钮折算 20×20(design-system.css:440-445 的 54px 槽位) */
.nv-header-toggle {
width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center;
color: var(--sim-text-secondary);
border: 1px solid var(--sim-border);
}
/* BrandMark:28px 图标 +两行文字(BrandMark.tsx:14-19)。插画里保留两行的层级感 */
.nv-brand { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.nv-brand-mark { display: flex; flex-direction: column; line-height: 1.15; }
.nv-brand-name { font-size: 8.5px; font-weight: 600; color: var(--sim-text-strong); white-space: nowrap; }
.nv-brand-sub { font-size: 7px; color: var(--sim-text-tertiary); white-space: nowrap; }
/* 当前任务胶囊(AppHeader 的 current-task-chip):≤1279 在真源里隐藏,插画按 1440 形态保留 */
.nv-task-chip {
display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
padding: 2px 6px; border-radius: var(--radius-pill);
background: var(--sim-page); border: 1px solid var(--sim-divider);
font-size: 7.5px; color: var(--sim-text-secondary); white-space: nowrap;
}
.nv-task-chip b { font-weight: 600; color: var(--sim-text); }
.app-mockup-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.app-mockup-dot--red { background: #FF5F56; }
.app-mockup-dot--yellow { background: #FFBD2E; }
.app-mockup-dot--green { background: #27C93F; }
.nv-titlebar-logo {
/* 标题栏在浅色化后是 --sim-chrome(#FFFFFF):原 color:var(--text-inverse)(白) 与之同色,
实测 1.00 —— 品牌名「NovaVis」整段不可见。落 --sim-text-strong(antd colorTextHeading 档)。 */
display: inline-flex; align-items: center; gap: 6px; margin-left: 4px;
font-size: 12.5px; font-weight: 700; color: var(--sim-text-strong); letter-spacing: 0.01em;
}
.nv-titlebar-logo img { border-radius: 3px; display: block; }
.nv-titlebar-crumb { font-size: 11px; color: var(--sim-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-titlebar-crumb i { font-style: normal; margin: 0 4px; opacity: 0.5; }
.nv-titlebar-search {
/* 真源 MenuSearch:胶囊 rounded-pill + bg-ga-page + px-3 py-2,宽 max-w-[360px] → 折半 180。
底不能用 --border(那是描边色,做填充会与窗口底同色而"消失"):用 --sim-page 的浅灰。 */
margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
height: 16px; padding: 0 7px; border-radius: var(--radius-pill);
background: var(--sim-page); border: 1px solid var(--sim-divider);
font-size: 7.5px; color: var(--sim-text-tertiary); white-space: nowrap; flex-shrink: 0;
}
.nv-titlebar-search svg { width: 8px; height: 8px; }
.nv-titlebar-ver {
font-size: 10px; color: var(--sim-text-secondary); flex-shrink: 0;
border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px;
}
/* TabBar 18px(真源 36):卡片式页签,首页永远第一格且不可关闭。
antd `Tabs type=card` + cardHeight 32 + 条带 pt-1 → 36(TabBar.tsx:69-74)。 */
.nv-tabbar {
display: flex; align-items: flex-end; gap: 2px;
height: 18px; padding: 0 6px; flex-shrink: 0;
background: var(--sim-page); border-bottom: 1px solid var(--sim-divider);
}
.nv-tab {
display: inline-flex; align-items: center; gap: 3px;
height: 14px; padding: 0 6px;
border: 1px solid var(--sim-divider); border-bottom: none;
border-radius: 4px 4px 0 0;
background: var(--sim-surface);
font-size: 7.5px; color: var(--sim-text-secondary); white-space: nowrap;
}
.nv-tab.active { color: var(--sim-primary); font-weight: 600; }
.nv-tab svg { width: 5px; height: 5px; opacity: 0.7; }
/* 页签条右端的常驻快捷入口(GlobalQuickBar variant="inline") */
.nv-tabbar-quick { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding-bottom: 2px; }
.nv-tabbar-quick span {
font-size: 7px; color: var(--sim-text-tertiary); white-space: nowrap;
}
/* 主体三列:NavRail 27(真源 55)+ 组面板 112(真源 225)+ 主区
合计侧栏 139 = 真源 280 的折半(ADR-0241 W8:55 组索引 + 225 = 280)。 */
.nv-body {
/* hero 画的是 /home 任务工作台:无右侧 Inspector 列(那是图窗专属),
故这里是 rail 27 + 组面板 112 + 主区 1fr 三列。 */
display: grid; grid-template-columns: 27px 112px 1fr;
min-height: 372px; height: 372px; position: relative;
}
/* 左侧图标轨(NavRail.tsx):11 组图标,每项 48→24,glyph 40 正圆→20 */
.nv-rail {
display: flex; flex-direction: column; align-items: center; gap: 3px;
padding: 5px 0; background: var(--sim-surface);
border-right: 1px solid var(--sim-divider); overflow: hidden;
}
.nv-rail-item {
width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
color: var(--sim-text-tertiary);
}
.nv-rail-item svg { width: 10px; height: 10px; }
.nv-rail-item.active { background: var(--sim-selected); color: var(--sim-primary); }
/* ---- 左侧导航 ----
真实端模块库是固定高度、可滚动的面板(11 组、40+ 条目),仿真同样裁切:
限高 + 不显示滚动条 + 底部渐隐,表示「下面还有」,而不是把整个窗口撑高。 */
.nv-sidebar {
/* 真源 ModuleLibrary 宽 225 → 此处 112(0.5 倍)。条目字号随之收到 8.5px:
真源 .ant-menu-item 是 14px,折半约 7;这里取 8.5 是因为 7px 中文在 112px 列里
只剩"能看出是字"的程度,8.5 是可读下限(对比度已由门禁 4 保证)。
padding 4/5px 同理折半(真源 8/12)。 */
padding: 4px 5px 6px; background: var(--sim-chrome);
border-right: 1px solid var(--sim-divider);
overflow: hidden; position: relative;
}
.nv-sidebar::after {
content: ''; position: absolute; left: 0; right: 1px; bottom: 0; height: 26px;
background: linear-gradient(to bottom, rgba(255,255,255,0), var(--sim-chrome));
pointer-events: none;
}
.nv-sidebar-group {
font-size: 7.5px; letter-spacing: 0.12em; color: var(--sim-text-tertiary);
margin: 6px 5px 2px; font-weight: 600;
}
.nv-sidebar-item {
display: flex; align-items: center; gap: 5px;
padding: 3px 5px; border-radius: 4px; margin-bottom: 1px;
/* overflow-hidden + ellipsis:112px 列里「账户综合关联」6 字需截断而不是撑破 */
font-size: 8.5px; color: var(--sim-text-secondary); white-space: nowrap;
overflow: hidden; text-overflow: ellipsis;
transition: background 0.15s, color 0.15s;
}
.nv-sidebar-item svg { width: 9px; height: 9px; flex-shrink: 0; opacity: 0.75; }
.nv-sidebar-item.active {
background: var(--sim-primary); color: var(--text-inverse); font-weight: 600;
}
.nv-sidebar-item.active svg { opacity: 1; }
/* ---- 主工作区 ---- */
.nv-main {
display: flex; flex-direction: column; min-width: 0; background: #F8F9FA;
}
/* ---- 底部状态栏(StatusBar) ---- */
.nv-statusbar {
/* 真源 StatusBar 24px → 0.5 倍 = 12px。2026-11-07 §28.2 评审 SHOULD-FIX:
此处原为 26px(比例 1.08),是五件套里**唯一没折算**的一件,与注释和 README 的表都不符。
折到 12px 后字号必须同步收到 6px —— 12px 高装不下 9.5px 的字(那会溢出成裁切)。 */
display: flex; align-items: center; gap: 5px;
height: 12px; padding: 0 8px;
background: var(--sim-chrome); border-top: 1px solid var(--sim-divider);
font-size: 6.5px; color: var(--sim-text-secondary); white-space: nowrap; overflow: hidden;
}
.nv-statusbar-counts b { font-size: 6.5px; }
.nv-statusbar-dot {
width: 6px; height: 6px; border-radius: 50%; background: #5BA84D;
box-shadow: 0 0 6px rgba(91,168,77,0.9); flex-shrink: 0;
}
.nv-statusbar-counts { margin-left: 10px; flex-shrink: 0; }
/* 数值强调:状态条本身是 --sim-chrome 白底,数字不能用深底档亮灰(#CBD5E1 白底 1.48:1),
降一档取 --sim-text(#1f1f1f,与 antd colorText 同值)再靠字重区分主次。 */
.nv-statusbar-counts b { color: var(--sim-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.nv-statusbar-right { margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; }
/* ---- Hero Highlights Strip ---- */
.hero-highlights {
position: relative; z-index: 3;
padding: 26px 0; background: var(--bg-elevated);
border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hero-highlights-inner {
display: flex; align-items: center; justify-content: center; gap: 10px 24px; flex-wrap: wrap;
color: var(--text-secondary); font-size: 14px; letter-spacing: 0.01em;
}
.hero-highlights-dot { color: var(--brand-text); font-weight: 700; }
/* ========================================
Product Showcase — 大卡片轮播
======================================== */
.showcase { padding: var(--section-y) 0; }
/* qoder 实测:区段标题左对齐,与下方网格的左边缘对齐(不是居中排) */
.showcase-header { text-align: left; max-width: 1040px; margin: 0 auto 40px; }
.showcase-header .section-desc { max-width: 1040px; }
.showcase-card {
position: relative;
max-width: 1040px; margin: 0 auto;
/* 展台面板:qoder 的彩色展示块在本页兑成冷中性灰底板,窗写在它上面。
阴影只留给窗本身(qoder 实测卡片零阴影,靠 1px 描边界定)。 */
background: var(--bg-card-2); border: 1px solid var(--border);
border-radius: var(--radius-lg); overflow: hidden;
}
/* 自动轮播暂停开关(WCAG 2.2.2:移动内容须可停止) */
.showcase-pause {
position: absolute; top: 18px; right: 20px; z-index: 2;
display: inline-flex; align-items: center; gap: 6px;
height: 28px; padding: 0 12px;
background: var(--brand-soft);
border: 1px solid var(--border-strong);
border-radius: var(--radius-pill);
color: var(--text-secondary); font-size: 12px; font-family: inherit;
cursor: pointer;
transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.showcase-pause:hover { color: var(--text); background: var(--brand-soft); border-color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .showcase-pause { display: none; } }
.showcase-tabs {
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
/* #showcasePause 绝对定位在卡片右上角(right 20 + 宽约 76)。不预留右侧空间时,
窄视口下最后一只 tab 会被按钮压住且点不到(复评 P2-8) */
padding: 16px 112px 16px 20px; border-bottom: 1px solid var(--border);
background: transparent;
}
@media (prefers-reduced-motion: reduce) {
.showcase-tabs { padding-right: 20px; } /* 减弱动效下暂停按钮不显示,无需预留 */
}
.showcase-tabs .showcase-tab {
flex: 0 0 auto;
padding: 8px 16px; border-radius: var(--radius-pill);
background: transparent; border: 1px solid transparent;
color: var(--text-tertiary); font-size: 14px; font-weight: 500;
cursor: pointer; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
font-family: inherit;
}
.showcase-tabs .showcase-tab:hover { color: var(--text); background: transparent; }
/* 分段控件:激活项是白底描边(qoder 的卡内控件口径),不用品牌蓝软底 */
.showcase-tabs .showcase-tab.active { color: var(--text); background: var(--bg-elevated); border-color: var(--border); }
/* ---- 自动轮播进度条:active tab 底部细线 ---- */
.showcase-tabs .showcase-tab { position: relative; overflow: hidden; }
.showcase-tabs .showcase-tab .tab-progress {
position: absolute; left: 12px; right: 12px; bottom: 3px;
height: 2px; border-radius: 1px; overflow: hidden;
opacity: 0; pointer-events: none;
}
.showcase-tabs .showcase-tab.active .tab-progress { opacity: 1; }
.showcase-tabs .showcase-tab .tab-progress span {
display: block; height: 100%; width: 0;
background: var(--brand-light); border-radius: 1px;
}
/* 悬停暂停时进度条冻结由 JS 内联控制;减弱动效下不显示 */
@media (prefers-reduced-motion: reduce) {
.showcase-tabs .showcase-tab .tab-progress { display: none; }
}
.showcase-body { position: relative; }
.showcase-panel {
display: none; grid-template-columns: 1.4fr 1fr; gap: 0;
align-items: stretch;
}
.showcase-panel.active { display: grid; }
.showcase-visual {
display: flex; align-items: center; justify-content: center;
/* 「展台」底色原为 rgba(0,0,0,0.22):深色主题时代是在深底上压暗一层,
浅色化后在白卡上是一块灰黑板(1440 截图左半区明显发灰)。
改为与仿真窗同族的浅灰 --bg-card-2,读作「产品放在浅灰展台上」。 */
padding: 32px; background: transparent; border-right: 1px solid var(--border);
min-height: 420px;
}
.showcase-visual > svg { width: 100%; height: auto; display: block; }
/* ---- 真实界面截图窗口:真实 UI + 仿真窗框 ---- */
.showcase-window {
width: 100%; max-width: 640px;
border-radius: 12px; overflow: hidden;
background: #F8F9FA;
border: 1px solid var(--border);
/* 原为 `0 2px 4px rgba(0,0,0,.22), 0 16px 40px rgba(0,0,0,.38)`——深底时代的重投影。
父卡 .showcase-card 已是零阴影展台,子窗这个 38% 黑晕是漏项
(2026-11-07 §28.2 评审 SHOULD-FIX):浅底上读作"陷进黑影",与父卡口径分裂。
父子同口径后,仿真窗是"贴在展台上",分离靠 1px 描边而非黑晕。 */
box-shadow: var(--window-shadow);
}
.showcase-window-bar {
display: flex; align-items: center; gap: 7px;
height: 42px; padding: 0 14px;
background: var(--sim-chrome);
}
.showcase-window-title { margin-left: 5px; font-size: 11.5px; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.showcase-window-ver {
margin-left: auto; font-size: 10px; color: var(--sim-text-secondary);
border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px;
}
/* 页签条(真源 TabBar 36px)。showcase 窗宽约 640,按 0.5 倍折算 18px。 */
.showcase-tabbar {
display: flex; align-items: flex-end; gap: 2px;
height: 18px; padding: 0 6px;
background: var(--sim-page); border-bottom: 1px solid var(--sim-divider);
}
.showcase-tabbar .showcase-tab {
display: inline-flex; align-items: center;
height: 14px; padding: 0 6px;
border: 1px solid var(--sim-divider); border-bottom: none;
border-radius: 4px 4px 0 0; background: var(--sim-surface);
font-size: 7.5px; color: var(--sim-text-secondary); white-space: nowrap;
}
.showcase-tabbar .showcase-tab.active { color: var(--sim-primary); font-weight: 600; }
/* 图标轨(真源 NavRail 55px → 24px):11 组,当前组高亮。
旧版是 11 个灰圆点(HTML 里就是空 span),在 24px 轨里读作“加载占位符”而不是图标。
现用 mask 画 11 个真图标:mask 只取 alpha,故不用再为每个图标写内联 SVG。 */
.showcase-rail {
display: flex; flex-direction: column; align-items: center; gap: 3px;
padding: 5px 0; background: var(--sim-surface);
border-right: 1px solid var(--sim-divider);
}
.showcase-rail span {
width: 12px; height: 12px; flex-shrink: 0;
background: currentColor; color: var(--sim-text-tertiary); opacity: 0.62;
-webkit-mask: var(--rail-icon) center / 9px 9px no-repeat;
mask: var(--rail-icon) center / 9px 9px no-repeat;
}
.showcase-rail span.on { color: var(--sim-primary); opacity: 1; }
.showcase-rail span:nth-child(1) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 10l8-6 8 6v10h-6v-6h-4v6H4z'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(2) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 6h7l2 2h9v12H3z'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(3) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='17' cy='14' r='2.5'/%3E%3Cpath d='M9.5 10.5L15 13M8 11v3'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(4) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6 7v6l-4 2v-8z'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(5) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(6) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 5h18v14H3zM3 10h18M9 10v9'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(7) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v4h4'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(8) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 20V11M11 20V5M17 20v-6M22 20V8'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(9) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 6a3 3 0 0 1 0 6M17 14c2.8.5 5 2.9 5 6'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(10) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.4 8.7-8 10-4.6-1.3-8-5-8-10V6z'/%3E%3C/svg%3E"); }
.showcase-rail span:nth-child(11) { --rail-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 8h10M18 8h2M4 16h4M12 16h8M14 5v6M8 13v6'/%3E%3C/svg%3E"); }
/* 三列:图标轨 + 组面板 + 内容 */
.showcase-window-body { display: grid; grid-template-columns: 24px 104px 1fr; }
.showcase-window-body--solo { grid-template-columns: 1fr; }
.showcase-window-body:has(> .showcase-window-side:only-of-type) { grid-template-columns: 24px 104px 1fr; }
.showcase-window-side {
background: var(--sim-chrome); padding: 8px 7px;
border-right: 1px solid var(--sim-divider);
}
.showcase-window-side span {
display: block; padding: 4px 6px; border-radius: 4px; margin-bottom: 1px;
font-size: 8.5px; color: var(--sim-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.showcase-window-side span.active { background: var(--sim-primary); color: var(--text-inverse); font-weight: 600; }
/* 分组标题:与 hero 侧栏 .nv-sidebar-group 同口径(降字号 + 字距 + 弱色),
否则「分组」与「条目」视觉无差,层级读不出来。 */
.showcase-window-side span.side-group {
margin-top: 6px; padding: 3px 6px 2px;
font-size: 8px; font-weight: 600; letter-spacing: 0.12em;
color: var(--sim-text-tertiary); overflow: hidden; text-overflow: ellipsis;
}
.showcase-window-side span.side-group:first-child { margin-top: 0; }
.showcase-window img { display: block; width: 100%; height: auto; }
/* ---- 面板内演示特效层 ----
挂在 .showcase-shot 上,坐标为图内百分比;窗口 is-grown 后启动,
5.5s 一轮与 tab 自动轮播同步。 */
.showcase-shot { position: relative; min-width: 0; }
@keyframes fxDash { to { stroke-dashoffset: -28; } }
/* ---- 面板底部结论状态条(窗口级贴底条,与 TitleBar 对称,不遮挡内容) ---- */
.sim-status {
display: flex; align-items: center; gap: 8px;
background: var(--sim-chrome); padding: 9px 14px;
font-size: 11px; font-weight: 600; color: var(--sim-text); line-height: 1.4;
border-radius: 0 0 11px 11px;
}
.sim-status::before {
content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
background: #3FBF7F; box-shadow: 0 0 8px rgba(63,191,127,0.8);
}
.sim-gv { display: flex; flex-direction: column; }
.sim-gv-canvas { position: relative; }
/* ---- 图谱分析仿真 ---- */
.sim-gv { padding: 0; background: #F8F9FA; }
.sim-gv > svg { display: block; width: 100%; height: auto; }
.sim-gv-flow { animation: fxDash 1.2s linear infinite; }
.sim-gv-pulse { animation: gvPulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gvPulse {
0% { transform: scale(0.82); opacity: 0.9; }
60% { transform: scale(1.08); opacity: 0.45; }
100% { transform: scale(0.82); opacity: 0.9; }
}
.gv-tip, .gv-legend, .gv-minimap {
position: absolute; z-index: 2; opacity: 0;
}
.gv-tip {
top: 10px; right: 10px;
background: rgba(13,19,32,0.94); border: 1px solid rgba(51,102,204,0.4);
border-radius: 8px; padding: 7px 11px; line-height: 1.45;
box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.gv-tip b { display: block; font-size: 11px; color: var(--text-inverse); }
.gv-tip span { font-size: 10px; color: #CBD5E1; }
.gv-legend {
left: 12px; bottom: 12px;
background: rgba(13,19,32,0.92); border-radius: 8px; padding: 8px 11px;
font-size: 9.5px; color: #CBD5E1; line-height: 1.5;
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* 本浮层是深底(rgba(13,19,32,.92)):标题需反相档而**不是**浅底档 --sim-text-tertiary
(#6b6b6b 在深底上仅 2.86:1)。注:原注释里点名的 .nv-legend-title 已随图窗样式一并删除。 */
.gv-legend-title { font-weight: 600; color: var(--text-inverse-secondary); margin-bottom: 2px; }
.gv-legend-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gv-legend-row i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.gv-minimap {
right: 12px; bottom: 12px; width: 86px; height: 60px;
border-radius: 8px; overflow: hidden; background: rgba(13,19,32,0.92);
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.gv-minimap svg { display: block; width: 100%; height: 100%; }
/* ============================================
DOM 仿真面板(AI 助手 / 方策执行)
按真实端 UI 结构重绘,动画随 GROW 剧本
逐阶段点亮(tab 激活即重播整段业务过程)
============================================ */
/* 三块仿真面板共用的白底/内边距/纵向排布基座。
注意:每个仿真面板的根类都必须列在这里,否则会退回 block + 0 内边距 +
继承深色页面的白字,在浅色窗口底上等于不可见(本轮屏 2 曾因漏列而整屏不可读)。 */
.sim-ai, .sim-io, .sim-rep {
position: relative; height: 100%; overflow: hidden;
background: #fff; padding: 14px 16px;
display: flex; flex-direction: column; gap: 10px;
font-family: inherit;
}
/* ---- AI 助手 ---- */
.sim-head { display: flex; align-items: center; gap: 8px; }
.sim-head-icon {
width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
background: linear-gradient(135deg, #1A4DC4, #3366CC);
display: flex; align-items: center; justify-content: center;
}
.sim-head-text b { display: block; font-size: 13px; color: #0F172A; line-height: 1.3; }
.sim-head-text i { font-style: normal; font-size: 10px; color: var(--sim-text-tertiary); }
/* ---- 智能问答:指令框 / SQL 框 / 结果表 ---- */
.sim-field { display: flex; flex-direction: column; gap: 4px; }
.sim-field-label { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.sim-field-box {
border: 1px solid #DDE3EE; border-radius: 6px; background: #FDFDFE;
padding: 7px 9px; font-size: 10.5px; color: #334155; line-height: 1.5;
}
.sim-field-box--area { min-height: 40px; }
.sim-field-box--sql { background: #F6F8FC; color: #1E293B; }
.sim-field-box--sql code {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
font-size: 9.5px; line-height: 1.6; display: block; white-space: nowrap; overflow: hidden;
}
/* 指令历史表(真源 AI 页第三块) */
.sim-hist { margin-top: 8px; border: 1px solid #E5E9F2; border-radius: 6px; overflow: hidden; }
.sim-hist-row { display: grid; grid-template-columns: 1fr 60px 76px; gap: 6px;
padding: 4px 8px; font-size: 9px; color: var(--sim-text-secondary); border-top: 1px solid #EEF1F7; }
.sim-hist-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-hist-row--head { background: #F6F8FC; color: var(--text-muted); font-weight: 600; border-top: none; }
.sim-result { display: flex; flex-direction: column; gap: 0; border: 1px solid #DDE3EE; border-radius: 6px; overflow: hidden; }
.sim-result-head {
display: flex; align-items: center; justify-content: space-between;
padding: 6px 9px; background: #F6F8FC; border-bottom: 1px solid #DDE3EE;
}
.sim-result-head b { font-size: 10.5px; color: #0F172A; }
.sim-result-head span { font-size: 9.5px; color: var(--text-muted); }
.sim-result-row {
display: grid; grid-template-columns: 1.2fr .7fr .8fr; gap: 6px;
padding: 5px 9px; font-size: 10px; color: #334155;
font-variant-numeric: tabular-nums;
}
.sim-result-row--head { background: #FAFBFD; color: var(--text-muted); font-weight: 600; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-chip {
font-size: 10.5px; color: #334155; white-space: nowrap;
border: 1px solid #DDE3EE; background: #F8FAFF;
border-radius: 999px; padding: 3px 10px;
}
.sim-chip--on { background: var(--sim-primary); border-color: var(--sim-primary); color: var(--text-inverse); font-weight: 600; }
/* ---- 进出统计分析仿真 ---- */
.sim-io-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sim-io-title { font-size: 13px; font-weight: 700; color: #0F172A; }
.sim-io-meta { font-size: 10px; color: var(--text-muted); }
.sim-io-meta b { color: #1E293B; font-variant-numeric: tabular-nums; }
/* 8 卡:真源 StatCardGrid 是 4 列两行(InOutStatPage:1023-1032) */
.sim-io-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.sim-io-card {
border: 1px solid #E5E9F2; border-radius: 7px; background: #F8FAFF;
padding: 6px 8px; display: flex; flex-direction: column; gap: 2px;
}
.sim-io-card span { font-size: 9px; color: var(--text-muted); }
.sim-io-card b { font-size: 12px; color: #0F172A; font-variant-numeric: tabular-nums; }
.sim-io-neutral { color: #1A4DC4 !important; }
.sim-io-tabs { display: flex; align-items: center; gap: 4px; }
/* 分段控件(Segmented):胶囊组,选中项实底。真源不是下划线页签。 */
.sim-io-seg {
font-size: 9px; padding: 2px 9px; border-radius: var(--radius-pill);
background: #F2F5FA; color: var(--sim-text-secondary); white-space: nowrap;
}
.sim-io-seg.active { background: var(--sim-primary); color: var(--text-inverse); font-weight: 600; }
.sim-io-tab {
font-size: 10px; color: var(--text-muted); padding: 5px 9px;
border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.sim-io-tab.active { color: #1A4DC4; border-color: var(--sim-primary); font-weight: 600; }
.sim-io-async {
margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
font-size: 9.5px; color: var(--text-muted); white-space: nowrap;
}
.sim-io-async i { width: 20px; height: 11px; border-radius: 6px; background: var(--sim-primary); position: relative; }
.sim-io-async i::after {
content: ''; position: absolute; right: 1.5px; top: 1.5px;
width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.sim-io-table { display: flex; flex-direction: column; border: 1px solid #E5E9F2; border-radius: 6px; overflow: hidden; }
/* 15 列表格:窄容器下横向滚动(真源 DataTable 的同一行为),不删列不压字 */
.sim-io-scroll { overflow-x: auto; }
.sim-io-scroll .sim-io-row { grid-template-columns: 24px 72px 84px 34px 50px 50px 50px 62px 62px 62px 66px 42px 60px 34px 84px 84px; }
.sim-io-scroll .sim-io-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-io-row {
display: grid; grid-template-columns: 30px 1fr 1.05fr .5fr .85fr; gap: 6px;
padding: 5px 8px; font-size: 10px; color: #334155;
font-variant-numeric: tabular-nums; border-bottom: 1px solid #F0F3F8;
}
.sim-io-row:last-child { border-bottom: 0; }
.sim-io-row--head { background: #F6F8FC; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid #E5E9F2; }
/* ---- 生成分析报告仿真 ---- */
.sim-rep { gap: 9px; }
.sim-rep-head { font-size: 13px; font-weight: 700; color: #0F172A; }
.sim-rep-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-rep-field { display: flex; flex-direction: column; gap: 3px; }
.sim-rep-field > span { font-size: 9.5px; color: var(--text-muted); }
.sim-rep-select {
border: 1px solid #DDE3EE; border-radius: 6px; background: #fff;
padding: 6px 9px; font-size: 10px; color: var(--sim-text-tertiary);
}
.sim-rep-label {
display: flex; align-items: baseline; gap: 8px;
font-size: 10px; font-weight: 700; color: var(--sim-text-tertiary); letter-spacing: 0.04em;
}
.sim-rep-label span { font-weight: 600; color: #1A4DC4; }
.sim-rep-table { display: flex; flex-direction: column; border: 1px solid #E5E9F2; border-radius: 6px; overflow: hidden; }
.sim-rep-row {
display: grid; grid-template-columns: 1.6fr 1fr .6fr; gap: 6px;
padding: 5px 9px; font-size: 10px; color: #334155;
font-variant-numeric: tabular-nums; border-bottom: 1px solid #F0F3F8;
}
.sim-rep-row:last-child { border-bottom: 0; }
.sim-rep-row--head { background: #F6F8FC; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid #E5E9F2; }
.sim-rep-row i { font-style: normal; color: #1A4DC4; font-weight: 600; }
.sim-rep-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.sim-rep-btn {
font-size: 10px; color: #334155; white-space: nowrap;
border: 1px solid #DDE3EE; background: #fff; border-radius: 6px; padding: 5px 11px;
}
.sim-rep-btn--primary {
color: var(--text-inverse); background: var(--sim-primary); border-color: var(--sim-primary); font-weight: 600;
box-shadow: 0 2px 6px rgba(26,77,196,0.3);
}
.sim-rep-hint { font-size: 9.5px; color: var(--sim-text-tertiary); }
@media (prefers-reduced-motion: reduce) {
.sim-gv-pulse, .sim-gv-flow { animation: none; }
}
.showcase-copy {
padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
background: transparent;
}
.showcase-copy-title {
font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 14px; text-wrap: balance;
}
.showcase-copy-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 28px; }
.showcase-copy-list { list-style: none; }
.showcase-copy-list li {
position: relative; padding-left: 22px; margin-bottom: 12px;
font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.showcase-copy-list li::before {
content: ''; position: absolute; left: 0; top: 7px;
width: 7px; height: 7px; border-radius: 50%; background: var(--brand-light);
}
/* ========================================
Features — Static Grid
======================================== */
.features { padding: var(--section-y) 0; }
.features .section-title,
.features .section-desc { text-align: left; max-width: 1040px; margin-left: auto; margin-right: auto; }
.features .section-desc { margin: 0 auto 40px; }
/* 静态三列网格(qoder 无轮播:内容全部可见,没有箭头/小圆点)。
旧版 Swiper 轮播把 6 张能力卡藏了 4 张,还把“上一张/下一张”按钮压在卡片边上。 */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.feature-cell { min-width: 0; }
.feature-card {
/* 浅底卡片:文字色必须显式落到 --text。此处原为 `color: var(--text-inverse)`(深色主题时代的白字),
浅色化后 `--text-inverse` 仍是 #FFFFFF,与本行卡片底色(现为 --panel)曾同色,
实测对比度 1.00 —— 六张卡片的标题(.feature-card-title)肉眼完全不可见。
描述文字当时因为有各自的 color 声明才幸存,标题是唯一没被单独覆盖的一层。 */
padding: 32px 28px; border-radius: var(--radius-lg); color: var(--text);
height: 100%; display: flex; flex-direction: column;
border: 1px solid var(--border); background: var(--panel);
}
/* 静态卡片不做 hover 变化(qoder 实测零变化;换底色等于谎称可点) */
.feature-card-icon { margin-bottom: 24px; color: var(--brand-light); }
.feature-card-icon svg { display: block; }
.feature-card-title {
font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
font-size: 20px; font-weight: 700; margin-bottom: 10px; text-wrap: balance;
}
.feature-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
/* ========================================
Product Matrix — 交付清单卡片
======================================== */
.product-matrix { padding: var(--section-y) 0; }
.product-matrix .section-title,
.product-matrix .section-desc { text-align: left; max-width: 1040px; margin-left: auto; margin-right: auto; }
.product-matrix .section-desc { margin: 0 auto 40px; }
/* 非等宽栅格(qoder 实测 `384fr 412fr 476fr` 的同一手法):
四张卡原本 2×2 等宽,读起来是"功能清单";改成一宽一窄交替后,
视线有了主次(第一张「分析工作台」是主产品,给更多版面)。
1040 容器下:5fr + 4fr 两列,第一张与第三张各占 5fr 那一侧。 */
.product-grid {
display: grid; grid-template-columns: 5fr 4fr; gap: 20px;
max-width: 1040px; margin: 0 auto; align-items: start;
}
/* 1 + 2 + 1 的错落:第一张(主产品)通栏,中间两张 5:4 不等宽,最后一张通栏收尾。
为什么不干脆 2×2:等宽四宫格读起来是"功能清单",主产品没有版面优势;
通栏-错落-通栏让视线有起承转合,且尾卡通栏可承载更长的"本地化部署"叙述。 */
.product-grid > .product-card:first-child { grid-column: 1 / -1; min-height: 0; }
.product-grid > .product-card:last-child { grid-column: 1 / -1; min-height: 0; }
@media (max-width: 768px) {
.product-grid { grid-template-columns: 1fr; }
.product-grid > .product-card:first-child { grid-column: auto; }
}
.product-card {
padding: 32px 28px; border-radius: var(--radius-lg);
/* 同 .feature-card:原 color:var(--text-inverse) 在浅底卡片上=白字白底(1.00:1),
四张卡的标题全部不可见。文字色落 --text,标题单独继承即可。 */
color: var(--text); display: flex; flex-direction: column;
border: 1px solid var(--border); background: var(--panel);
}
.product-card-icon { margin-bottom: 20px; color: var(--text-secondary); }
.product-card-icon svg { display: block; }
.product-card-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.product-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1; }
/* ========================================
Scenarios — Color Block Cards
======================================== */
.scenarios { padding: var(--section-y) 0; }
.scenarios .section-title,
.scenarios .section-desc { text-align: left; max-width: 1312px; margin-left: auto; margin-right: auto; }
.scenarios .section-desc { margin: 0 auto 40px; }
.scenarios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.scenario-card {
/* 同 .feature-card / .product-card:白字白底(1.00:1),三张场景卡标题不可见。 */
padding: 40px 32px; border-radius: var(--radius-lg); color: var(--text);
border: 1px solid var(--border); background: var(--panel);
}
.scenario-card-tag {
display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
background: var(--brand-soft); color: var(--brand-text);
font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 18px;
}
.scenario-card-title { font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; font-size: 20px; font-weight: 700; margin-bottom: 10px; text-wrap: balance; }
.scenario-card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }
.scenario-card-points { list-style: none; padding: 16px 0 0; border-top: 1px solid var(--border); }
.scenario-card-points li { font-size: 13px; color: var(--text-tertiary); padding: 4px 0 4px 18px; position: relative; line-height: 1.6; }
.scenario-card-points li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); opacity: 0.5; }
/* ========================================
Process — Horizontal Steps
======================================== */
.process { padding: var(--section-y) 0; }
.process .section-title,
.process .section-desc { text-align: left; max-width: 1040px; margin-left: auto; margin-right: auto; }
.process .section-desc { margin: 0 auto 40px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.process-step {
position: relative; padding: 40px 32px; border-radius: var(--radius-lg);
background: var(--panel); border: 1px solid var(--border);
}
.process-step-number {
position: absolute; top: 20px; right: 24px;
font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; font-size: 48px; font-weight: 900;
color: rgba(15,23,42,0.04); line-height: 1; pointer-events: none;
}
.process-step-icon { margin-bottom: 20px; color: var(--brand-light); }
.process-step-icon svg { display: block; }
.process-step-phase {
display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
background: var(--brand-soft); font-size: 12px; font-weight: 600;
color: var(--brand-text); letter-spacing: 0.02em; margin-bottom: 12px;
}
.process-step-title { font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.process-step-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
/* ========================================
Trust / 信创
======================================== */
.trust { padding: var(--section-y) 0; }
.trust .section-title,
.trust .section-desc { text-align: left; max-width: 1040px; margin-left: auto; margin-right: auto; }
.trust .section-desc { margin: 0 auto 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto 40px; }
.trust-os-card { text-align: center; padding: 36px 20px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border); }
/* hover 只换描边、不位移(P2-1 的"全站"口径):qoder 实测卡片 hover 无位移无阴影。
本轮修 P2-1 时漏了这一处(HEAD 既有),reviewer 按 README 的"全站"措辞比对时发现。 */
.trust-os-icon { display: flex; align-items: center; justify-content: center; height: 36px; margin-bottom: 14px; }
.trust-os-icon img, .trust-os-icon svg { display: block; max-height: 32px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.trust-os-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.trust-os-desc { font-size: 12px; color: var(--text-tertiary); }
.trust-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 48px 0 0; border-top: 1px solid var(--border); }
.trust-metric { text-align: center; }
.trust-metric-value { display: block; font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; }
.trust-metric-label { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }
/* ========================================
Social Proof
======================================== */
.social-proof { padding: var(--section-y) 0; }
.social-proof .section-title,
.social-proof .section-desc { text-align: left; max-width: 1312px; margin-left: auto; margin-right: auto; }
.social-proof .section-desc { margin: 0 auto 40px; }
/* 「为谁打造」可核验事实矩阵(复评 P1-4:形容词换成可核验事实 + 核验方式)。
文字一律走 --text / --text-secondary / --text-tertiary(三者对 --bg 均 ≥ AA),
--text-muted 为装饰专用,不得用于正文。 */
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; text-align: left; }
.evidence-item { padding: 22px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.evidence-term { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.45; }
.evidence-fact { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: var(--text-secondary); }
.evidence-check { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--text-tertiary); }
.evidence-note { margin: 36px auto 0; max-width: 860px; font-size: 13px; line-height: 1.85; color: var(--text-tertiary); text-align: center; }
/* ========================================
FAQ
======================================== */
.faq { padding: var(--section-y) 0; }
.faq .section-title,
.faq .section-desc { text-align: left; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq .section-desc { margin: 0 auto 40px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
display: flex; align-items: center; justify-content: space-between;
width: 100%; padding: 22px 0; border: none; background: none;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
font-size: 16px; font-weight: 500; color: var(--text); cursor: pointer;
text-align: left; list-style: none; transition: color 0.15s ease;
}
.faq-question:hover { color: var(--brand-text); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
content: ''; display: inline-block; width: 20px; height: 20px;
background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5l5 5 5-5' stroke='%233366CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
transition: transform 0.25s ease; flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-answer { padding: 0 0 22px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
/* ========================================
CTA
======================================== */
.cta { padding: var(--section-y) 0; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-copy { justify-self: start; }
.cta-title { font-family: 'Noto Serif CJK SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif; font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--text); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.cta-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; text-wrap: pretty; }
.cta-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cta-form-field { display: flex; flex-direction: column; gap: 6px; }
.cta-form-field--full { margin-bottom: 20px; }
.cta-form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.cta-form-label span { color: #B4232C; }
.cta-form-input { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-page); color: var(--text); font-size: 14px; font-family: inherit; line-height: 1.5; transition: border-color 0.15s ease, background 0.15s ease; }
.cta-form-input::placeholder { color: var(--text-tertiary); }
.cta-form-input:focus { outline: none; border-color: var(--brand-light); background: var(--bg-page); }
.cta-form-input:invalid:not(:placeholder-shown):not(:focus) { border-color: #B4232C; }
.cta-form-error { font-size: 12px; color: #B4232C; min-height: 16px; }
.cta-form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-form-note { font-size: 13px; color: var(--text-tertiary); }
.cta-form-note a { color: var(--text-secondary); text-decoration: underline; transition: color 0.15s; }
.cta-form-note a:hover { color: var(--text); }
.cta-form-privacy { font-size: 12px; color: var(--text-tertiary); margin-top: 16px; line-height: 1.5; }
.cta-form-success { text-align: center; padding: 32px; color: var(--text); }
.cta-form-success p { font-size: 15px; }
.cta-form-alert { margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(248, 113, 113, 0.4); border-radius: var(--radius-sm); background: rgba(248, 113, 113, 0.08); }
.cta-form-alert-msg { font-size: 14px; color: #B4232C; line-height: 1.6; }
.cta-form-alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.cta-form-alert-link { font-size: 14px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.cta-form-alert-link:hover { color: var(--brand-light); }
.cta-form-alert-btn { padding: 5px 14px; font-size: 13px; font-family: inherit; color: var(--text); background: var(--bg-card-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.cta-form-alert-btn:hover { border-color: var(--brand-light); background: var(--bg-card-2); }
/* ---- Back to top ---- */
.back-to-top {
position: fixed; bottom: 32px; right: 32px; z-index: 50;
width: 44px; height: 44px; border-radius: 50%;
background: var(--bg-card); color: var(--text); border: 1px solid var(--border-strong); cursor: pointer;
display: flex; align-items: center; justify-content: center;
opacity: 0; visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--text-inverse); }
/* ---- Footer ---- */
.footer { padding: var(--section-y) 0 0; background: var(--panel); color: var(--text-tertiary); }
.footer-inner { display: flex; justify-content: space-between; gap: 56px; margin-bottom: 48px; }
.footer-brand { max-width: 360px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-size: 17px; font-weight: 600; color: var(--text); }
.footer-desc { font-size: 13px; line-height: 1.7; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 64px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-tertiary); padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-tertiary); }
/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
html { scroll-behavior: auto; }
.motion-particle { display: none; }
}
/* ---- Responsive ---- */
/* qoder 实测:区段纵向 84px(≥1280)→ 64px(≤1279)→ 48px(≤767);容器内距同步 64/32/20 */
@media (max-width: 1279px) {
:root { --gutter: 32px; --section-y: 64px; }
}
@media (max-width: 1024px) {
.evidence-grid { grid-template-columns: repeat(2, 1fr); }
.showcase-panel.active { grid-template-columns: 1fr; }
.showcase-visual { border-right: none; border-bottom: 1px solid var(--border); min-height: 320px; }
.showcase-copy { padding: 36px 28px; }
.hero-copy { max-width: 640px; }
.hero-subtitle { max-width: 560px; }
.hero-visual { margin-top: 40px; }
.app-mockup { max-width: 640px; margin: 0 auto; }
.features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* hero 仿真窗:真源五件套在窄视口维持相同比例,只把组面板略收(27+96)。
注意**不得再放大 .nv-sidebar-item 字号** —— 112→96px 的列里 10px 中文字会溢出,
2026-11-07 实测过这条(旧规则写的是 10px/5px 内距,配 96px 列直接撑破)。 */
.nv-body { grid-template-columns: 24px 96px 1fr; }
.nv-titlebar-search { display: none; }
.nv-home-ws { grid-template-columns: minmax(0, 1fr) 148px; }
.nv-home-cols, .nv-home-row { grid-template-columns: 8px minmax(0, 1fr) 24px 30px 24px 38px 34px 32px 38px; }
.product-grid { grid-template-columns: 5fr 4fr; }
.cta-inner { grid-template-columns: 1fr; gap: 48px; }
.trust-grid { grid-template-columns: repeat(3, 1fr); }
.process-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenarios-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 768px) {
:root { --gutter: 20px; --section-y: 48px; }
.hero { padding: 120px 0 0; }
.hero-title { font-size: 36px; letter-spacing: -0.02em; }
.hero-badges { justify-content: center; }
.hero-highlights-inner { gap: 8px 18px; text-align: center; }
/* 窄视口:组面板收起(真源 <960 也是收进抽屉),只留图标轨 + 主区;
右栏工具列改为在主区下方堆叠(真源 1024 以下同为单列、工具列在上)。 */
.nv-body { grid-template-columns: 24px 1fr; }
.nv-sidebar { display: none; }
.nv-titlebar-crumb { display: none; }
.nv-titlebar-search { display: none; }
.nv-home-ws { grid-template-columns: 1fr; }
.nv-home-side { display: none; }
/* 窄视口暂停键只留图标,避免读成「第五个 tab」并给 tabs 让出宽度 */
.showcase-pause { top: 12px; right: 12px; width: 32px; padding: 0; justify-content: center; }
.showcase-pause-text { display: none; }
.showcase-tabs { padding-right: 52px; }
/* 窄视口收起组面板(真源 <960 也是收抽屉),图标轨保留为 24px 单列。
旧规则写成 `1fr`:图标轨被拉成整行宽、11 个图标居中竖排,主区反而被压到 0 宽
(2026-11-24 复审实测:375 下窗内只剩一排悬空图标)。 */
.showcase-window-body { grid-template-columns: 24px 1fr; }
.showcase-window-side { display: none; }
/* 仿真窗内并排的卡片/筛选在 311px 宽下压成两行 */
.sim-io-cards { grid-template-columns: repeat(2, 1fr); }
.sim-rep-filters { grid-template-columns: 1fr; }
/* 修深色主题残留:面板底色 rgba(5,5,5,.98) + 深灰链接,在浅色站上是黑底黑字。 */
.nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; background: var(--panel); padding: 12px; border-bottom: 1px solid var(--border); }
.nav-links.open { display: flex; }
.nav-links a { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); color: var(--text-secondary); }
.nav-links a:hover { color: var(--text); background: var(--brand-soft-hover); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-text); }
.nav-links a.nav-cta { border-radius: var(--radius-sm); }
.nav-toggle { display: flex; }
.product-grid { grid-template-columns: 1fr; }
.features-grid { grid-template-columns: 1fr; }
.process-steps { grid-template-columns: 1fr; gap: 16px; max-width: 420px; margin: 0 auto; }
.scenarios-grid { grid-template-columns: 1fr; }
.trust-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
.trust-metrics { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.evidence-grid { grid-template-columns: 1fr; gap: 16px; }
.faq-question { font-size: 15px; padding: 18px 0; }
.faq-list { max-width: 100%; }
.back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
.cta-form-row { grid-template-columns: 1fr; }
.cta-form { padding: 24px; }
.footer-inner { flex-direction: column; gap: 36px; }
.footer-links { flex-wrap: wrap; gap: 28px; }
}
@media (max-width: 640px) {
.announcement-text--full { display: none; }
.announcement-text--short { display: inline; }
}
@media (max-width: 480px) {
.hero-title { font-size: 30px; }
/* 仿真窗在小视口必须跟着容器缩,否则固定 max-width 会撑出视口
(2026-11-07 实测:375 视口下 #heroDemo 宽 398 > 375,被 body 裁掉右侧一截)。
80px = hero 容器左右各 24px 内距 + 32px 余量,保证不被裁。 */
/* 窄视口:不再让内部响应式重排(那会把 8 列表格压成竖排字,2026-11-07 实测过)。
改抄 qoder 的做法 —— 内部保持**固定真尺寸**、外层整体 `scale()` 等比缩小。
这样窄屏看到的是"一张缩小但比例正确的产品截图",而不是"被压碎的布局"。
680px 是内部版面的设计宽(1440 真窗口的 0.47 倍),缩放比按可用宽度算。 */
/* 注意:`transform: scale(var(--x, calc(...)))` 里嵌 calc 作降级值在 Chromium 不生效
(实测 computed transform = none,宽度反而撑到 680px)。故缩放比分档写死,
每档对应一个明确断点的可用宽度,不用 calc 参与 var 的降级值。 */
/* transform-origin 必须 left top:用 top center 时缩放以中线为基准,元素右缘会推出视口
(2026-11-07 实测:375 视口下 right=466 > 375,整页出现横向滚动)。
配合 .hero-visual 的 flex 居中,缩完后仍视觉居中。 */
.app-mockup {
width: 620px; max-width: none; flex-shrink: 0;
transform: scale(0.62); transform-origin: left top;
/* 缩放后可见宽 384px:用外边距把画布盒子推回居中(origin 在 left top 时 auto 外边距无效) */
margin-left: calc((100% - 384.4px) / 2);
}
/* 外层按缩放后的可见高度占位(620×0.62 ≈ 384 宽、452×0.62 ≈ 280 高) */
.hero-visual { width: 100%; height: 280px; overflow: hidden; }
/* 极窄视口把侧栏整体让给主区,只留图标轨(真源 <960 收抽屉的同口径) */
.trust-grid { grid-template-columns: 1fr; }
.trust-metrics { grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-metric-value { font-size: 28px; }
.process-step-number { font-size: 40px; }
/* 375 档:再缩一档,保证 327px 可用宽内完整显示 */
.app-mockup { width: 560px; transform: scale(0.58); transform-origin: left top; margin-left: calc((100% - 324.8px) / 2); }
.hero-visual { height: 262px; }
}
/* ============================================
渐进生长动效(Hero mockup + 产品界面 Showcase)
--------------------------------------------
机制:JS 读取 data-grow 阶段号,按阶段串行推进,
阶段内的元素逐个点亮(stagger)。
关键:初始隐藏态仅在 html.js-grow 存在时生效——
JS 未接管(加载失败 / 被禁用 / 老浏览器)时图形照常完整显示,
不会出现"动画没跑、图也不见"的空白区。
============================================ */
@keyframes growFade {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes growPop {
from { opacity: 0; transform: scale(.86); }
to { opacity: 1; transform: scale(1); }
}
/* 初始隐藏态:容器隐藏其子元素,独立图形元素隐藏自身 */
.js-grow [data-grow] > *,
.js-grow [data-grow]:not(g) {
opacity: 0;
}
/* 点亮后的默认进场:淡入 + 轻微上浮 */
.js-grow [data-grow] > .is-grown {
opacity: 1;
animation: growFade .3s ease-out both;
}
/* 节点类(圆 / 方块)改用缩放生长,更有"长出来"的质感 */
.js-grow [data-grow] > circle.is-grown,
.js-grow [data-grow] > rect.is-grown {
transform-box: fill-box;
transform-origin: center;
animation: growPop .34s ease-out both;
}
/* 自身即图形元素的情况(如资金流向的流动粒子) */
.js-grow [data-grow]:not(g).is-grown {
opacity: 1;
animation: growFade .3s ease-out both;
}
/* 容器型 data-grow(DOM 窗口,如真实截图窗框):点亮时连同子元素一起淡入 */
.js-grow [data-grow].is-grown > * {
opacity: 1;
}
/* 减弱动效偏好:直接显示终态,不播动画 */
@media (prefers-reduced-motion: reduce) {
.js-grow [data-grow] > *,
.js-grow [data-grow]:not(g) {
opacity: 1;
animation: none;
}
}
/* ============================================
Hero Live Demo(软件演示动画)
--------------------------------------------
机制:JS 编排器(main.js DEMO 模块)在 #heroDemo 上
轮流挂 demo-step-1~4 类,CSS 按类切换各演示层的状态;
播完一轮循环重播。所有"初始隐藏"都以 .js-demo 前缀门控——
JS 未接管时全部演示层不可见,mockup 退化为静态完整态。
减弱动效偏好:挂 demo-final 一次性呈现终态,不排时间轴。
============================================ */
.app-mockup-body { position: relative; }
.app-mockup-main { position: relative; overflow: hidden; }
/* ---- 演示层:heredoc 见下方「/home 首屏四步剧本的状态样式」 ----
2026-11-07 清理:原此处有 .demo-import / .demo-import-card / .demo-import-progress /
@keyframes demoProgress / .demo-ai / .demo-ai-msg / .demo-cursor / .demo-suspect-path /
@keyframes demoDashFlow / demoSuspectGlow —— 全部是**图窗专属**的演示件。
hero 改画 /home 任务工作台后这些选择器在 DOM 中已不存在,留着就是死代码
(README 的 2026-11-04 一节记过同类教训:「删死代码,不留孤儿样式」)。
新剧本的四步状态样式见本文件末尾「/home 首屏四步剧本的状态样式」。 ---- */
/* ---- 步骤徽标(浮于工作区右上角)----
无 JS 时不出现(靠 js-demo 门控);但**页面静态内容本身不依赖它** ——
/home 的台账、读数、当前行都是纯 HTML,没有 JS 也完整可见(门禁 3 的 nojs 场景钉着这条)。 */
/* 位置放右下角:右上被 4 个快捷入口占着,左上被 h1 占着 */
.demo-chrome-badge { position: absolute; bottom: 16px; right: 190px; z-index: 5; display: none; }
.js-demo .demo-chrome-badge { display: flex; }
.demo-chrome-badge-item {
display: none; padding: 2px 8px; border-radius: var(--radius-pill);
background: rgba(13,19,32,0.92); border: 1px solid rgba(51,102,204,0.45);
/* 深底上的文字走反相白档:原 #8AB4F8 是深底时代的亮蓝,在浅化后仍留在深色浮层里
虽然可读,但与本页"浅底 + Police Blue"的单一色相纪律不一致,改用白色系。 */
color: var(--text-inverse-secondary); font-size: 9px; font-weight: 600; white-space: nowrap;
box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
/* 四步各显示自己的徽标,**步号与徽标同义**(BLOCKING-1):
step-1 新建任务 / step-2 打开任务 / step-3 导入数据 / step-4 就绪。
因为 main.js 的 enterStep() 已保证任何时刻只有当前那一步的类,这里不必再写"收起前一步"的反向规则。 */
.js-demo .demo-step-1 [data-badge="create"],
.js-demo .demo-step-2 [data-badge="open"],
.js-demo .demo-step-3 [data-badge="import"],
.js-demo .demo-step-4 [data-badge="ready"],
.js-demo .demo-final [data-badge="ready"] {
display: inline-flex; animation: growFade 0.3s ease-out both;
}
/* ---- 减弱动效偏好:/home 剧本不排时间轴 ----
原此处关的是图窗的进度条与可疑路径脉冲动画;换 /home 后那些元素已不存在。
现语义要说准:reduced-motion 下 main.js 只加 `demo-final`、**不逐步推进**,
故呈现的是「静态原始态 + 『就绪』徽标」,而不是"四步效果的终态"——
step-3 的动作条点亮在 reduced 下**不会**出现。这里只负责把过渡关掉。 */
@media (prefers-reduced-motion: reduce) {
.js-demo .nv-home-input--new,
.js-demo .nv-home-btn--primary,
.js-demo .nv-home-row,
.js-demo .nv-home-current-acts span,
.js-demo .nv-home-batch b { transition: none; }
}
/* ============================================
滚动渐显系统:JS 自动扫描标记 .rv,
进入视口后加 .in(上浮+显现,--rv-d 控制 stagger 延迟)。
基础隐藏态由 html.js-reveal 门控——JS 未接管时全量可见。
节奏(2026-11-07 收敛):位移 26→14px、时长 0.7→0.45s、stagger 90→60ms(封顶 450→240ms,见 main.js)。
理由:qoder 实测全站无滚动渐显;本页保留(内容量需要引导),但 B 端"快速查看"场景下
每个 section 慢 450ms 是净负面,故只做"轻推一下",不做"逐个飞入"(PRODUCT.md 反轻浮)。
位移 14px 是"几乎察觉不到但能感到顺序"的量级。
============================================ */
html.js-reveal .rv {
opacity: 0; transform: translateY(14px);
transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-d, 0s),
transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-d, 0s);
will-change: opacity, transform;
}
html.js-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
html.js-reveal .rv { opacity: 1; transform: none; transition: none; }
}
/* 卡片 hover:qoder 实测卡片 hover 的 transform / shadow / bg / border 全等,全站无抬升。
本页卡片是静态信息容器(不是可点入口),因此连底色也不换:hover 变化会谎称可点。 */
/* ---- (已删)Hero 氛围光斑 ----
旧版在 hero 上叠了两个漂移的径向光斑。qoder 实测全站零渐变、零发光,
首屏氛围全交给产品窗口本身;光斑属于常见的 SaaS hero 模板,故整段移除。 */
/* ============================================
/home 任务工作台(ADR-0281)—— hero 首屏仿真主体
真源:TaskHomePage.tsx:508-1036。所有尺寸按 0.5 倍折算(1440 真窗口 → 720 插画):
页面根 gap-3(12) → 6,p-4(16) → 8;工位 gap-6(24) → 12;右栏 340 → 170
任务行高 53 → 26;卡圆角 8 → 6;卡内 padding 16 → 8
版式要点(照 ADR-0281 §D1/D2,不得改回旧形态):
① 双区工位:左主结果面 + 右工具列(1024 下单列、工具列在上)
② 任务行两段式:主行 + 次行六列元信息;**列头只渲染一次**
③ 视口锁定:main 不滚,清单自己滚(.nv-home-rows)
============================================ */
.nv-home { padding: 6px; gap: 6px; overflow: hidden; }
/* ---- PageHeader:h1 + 副标题 + 右侧 4 个图标入口 ---- */
.nv-home-head { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.nv-home-head-text { min-width: 0; }
.nv-home-title { display: block; font-size: 13px; font-weight: 600; color: var(--sim-text-strong); line-height: 1.3; }
.nv-home-sub {
display: block; font-size: 7.5px; color: var(--sim-text-tertiary); line-height: 1.5;
margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 4 个图标快捷入口(改版后从文字按钮降级为图标 + Tooltip) */
.nv-home-quick { margin-left: auto; display: inline-flex; gap: 4px; flex-shrink: 0; }
.nv-home-quick span {
width: 16px; height: 16px; border-radius: 5px;
display: inline-flex; align-items: center; justify-content: center;
border: 1px solid var(--sim-border); background: var(--sim-surface);
font-size: 8px; color: var(--sim-text-secondary);
}
/* ---- 工位:左主 + 右 170px ---- */
.nv-home-ws { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 6px; min-height: 0; flex: 1; }
.nv-home-main { min-width: 0; display: flex; }
.nv-home-side { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* ---- 卡片基座:1px 边线、不用阴影(ADR-0261 / tokens.css 纪律 d) ---- */
.nv-home-card {
background: var(--sim-surface); border: 1px solid var(--sim-border);
border-radius: 6px; padding: 6px;
display: flex; flex-direction: column; min-width: 0;
}
.nv-home-main .nv-home-card { flex: 1; min-height: 0; }
.nv-home-card-title { font-size: 8.5px; font-weight: 600; color: var(--sim-text); white-space: nowrap; }
/* ---- 卡头:标题 + 排序条(改版后 actions 槽只放排序条) ---- */
.nv-home-card-head { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-bottom: 4px; }
.nv-home-sort { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 7px; color: var(--sim-text-tertiary); }
.nv-home-sort i { font-style: normal; color: var(--sim-text-secondary); }
.nv-home-sort i.on { color: var(--sim-primary); font-weight: 600; }
.nv-home-sort em { font-style: normal; color: var(--sim-primary); }
/* ---- 工具条:关键字查询 + 新建任务,一行 ---- */
.nv-home-tools { display: flex; align-items: center; gap: 3px; flex-shrink: 0; margin-bottom: 4px; }
.nv-home-input {
flex: 1; min-width: 0; height: 14px; padding: 0 5px; border-radius: 3px;
border: 1px solid var(--sim-border); background: var(--sim-surface);
font-size: 7px; color: var(--sim-text-tertiary);
display: inline-flex; align-items: center;
overflow: hidden; white-space: nowrap;
}
.nv-home-input--new { max-width: 76px; }
.nv-home-btn {
height: 14px; padding: 0 6px; border-radius: 3px; flex-shrink: 0;
border: 1px solid var(--sim-border); background: var(--sim-surface);
font-size: 7px; color: var(--sim-text-secondary);
display: inline-flex; align-items: center; white-space: nowrap;
}
.nv-home-btn--primary { background: var(--sim-primary); border-color: var(--sim-primary); color: var(--text-inverse); font-weight: 600; }
/* ---- 批量条 + 分页读数同一行 ---- */
.nv-home-batch {
display: flex; align-items: center; gap: 6px; flex-shrink: 0;
font-size: 7px; color: var(--sim-text-tertiary);
padding: 2px 0 4px;
}
.nv-home-batch b { color: var(--sim-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.nv-home-link { color: var(--sim-primary); }
.nv-home-pager { margin-left: auto; white-space: nowrap; }
/* ---- 列表网格:8 列(勾选/名称/创建人/案件类型/笔数/时段/打开/创建 + 操作) ---- */
.nv-home-cols,
.nv-home-row {
display: grid;
/* 列宽按真源六列的相对占比、在 345px 实测可用宽内定档:
勾选 8 │ 名称 minmax(0,1fr) │ 创建人 30 │ 案件类型 34 │ 笔数 26 │ 时段 46 │ 打开 40 │ 创建 38 │ 操作 42
合计固定 264 + 4*8 gap = 296,名称至少能拿到约 49px(真源里名称也随宽度挤压,不是无限宽)。 */
grid-template-columns: 8px minmax(0, 1fr) 26px 32px 24px 40px 36px 34px 40px;
gap: 4px; align-items: center;
}
/* 列头只渲染一次(ADR-0281 §D2):行内格子里只放值 */
.nv-home-cols {
flex-shrink: 0; padding: 2px 5px 3px;
font-size: 6.5px; font-weight: 600; color: var(--sim-text-tertiary);
border-bottom: 1px solid var(--sim-border); white-space: nowrap;
}
.nv-home-cols > span { overflow: hidden; text-overflow: ellipsis; }
.nv-home-c-name { font-weight: 600; }
/* ---- 清单:唯一内层滚动面(视口锁定) ---- */
.nv-home-rows { flex: 1; min-height: 0; overflow: hidden; }
.nv-home-row {
padding: 3px 5px; border-radius: 4px;
font-size: 7px; color: var(--sim-text-secondary);
border-bottom: 1px solid var(--sim-divider);
transition: background 0.3s ease, border-color 0.3s ease;
}
.nv-home-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-home-row .nv-home-c-name { color: var(--sim-text); font-weight: 600; }
/* 当前打开行:2px 左边框 + 蓝雾底(ADR-0281 §D2,描边不占布局) */
.nv-home-row.is-current {
background: var(--sim-selected);
box-shadow: inset 2px 0 0 var(--sim-primary);
}
.nv-home-cb {
width: 8px; height: 8px; border-radius: 2px;
border: 1px solid var(--sim-border); display: inline-flex;
align-items: center; justify-content: center;
font-size: 6px; color: var(--sim-primary);
}
.nv-home-row.is-current .nv-home-cb { background: var(--sim-primary); border-color: var(--sim-primary); color: #fff; }
.nv-home-rowacts { display: inline-flex; gap: 3px; }
.nv-home-rowacts i { font-style: normal; color: var(--sim-primary); white-space: nowrap; }
/* ---- 右栏:当前任务(一行)+ 两个默认收起的披露卡 ---- */
.nv-home-current-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; min-width: 0; }
.nv-home-badge {
flex-shrink: 0; padding: 1px 4px; border-radius: var(--radius-pill);
background: #EAF7EE; color: #1F7A3D;
font-size: 6.5px; font-weight: 600;
}
/* step-4「就绪」:徽标文案切换(进行中 → 已就绪),给最后一步一个可感知的落点 */
.nv-home-badge-done { display: none; }
.js-demo .demo-step-4 .nv-home-badge-on { display: none; }
.js-demo .demo-step-4 .nv-home-badge-done { display: inline; }
.js-demo .demo-step-4 .nv-home-badge { background: #E6F4FF; color: var(--sim-primary); }
.nv-home-current-name { font-size: 7.5px; color: var(--sim-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-home-current-acts { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.nv-home-current-acts span {
font-size: 6.5px; color: var(--sim-primary); white-space: nowrap;
border: 1px solid var(--sim-border); border-radius: 3px; padding: 1px 3px;
}
.nv-home-disclose { flex: 0 0 auto; }
.nv-home-disclose-line { font-size: 6.5px; color: var(--sim-text-tertiary); margin-top: 3px; line-height: 1.5; }
.nv-home-disclose-btn { font-size: 6.5px; color: var(--sim-primary); margin-top: 3px; }
/* ============================================
/home 首屏四步剧本的状态样式
(2026-11-07 重写:原剧本是图窗专属,hero 改画 /home 后必须重做)
与 index.html 的 .demo-step-1~4 类配合;无 JS 时这些类不出现,
故页面静态呈现的就是「终态」内容本身,不存在"必须动 JS 才看得见"的内容。
============================================ */
/* 步骤 1 · 新建任务:输入框获得高亮 + 主按钮按下感 */
.js-demo .nv-home-input--new { transition: border-color 0.3s ease, background-color 0.3s ease; }
.js-demo .demo-step-1 .nv-home-input--new { border-color: var(--sim-primary); background: var(--sim-selected); }
.js-demo .demo-step-1 .nv-home-btn--primary { box-shadow: 0 0 0 2px rgba(24,90,188,0.22); }
/* 步骤 2 · 打开任务:非当前行淡出,当前行浮现(表示"刚被打开") */
.js-demo .nv-home-row { opacity: 1; transition: opacity 0.4s ease, background 0.4s ease; }
.js-demo .demo-step-2 .nv-home-row:not(.is-current) { opacity: 0.55; }
.js-demo .demo-step-2 .nv-home-row.is-current { opacity: 1; }
/* 步骤 3 · 导入数据:右栏「当前任务」的动作条逐颗点亮 */
.js-demo .nv-home-current-acts span { transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.js-demo .demo-step-3 .nv-home-current-acts span:first-child,
.js-demo .demo-step-4 .nv-home-current-acts span:first-child {
background: var(--sim-primary); border-color: var(--sim-primary); color: var(--text-inverse);
}
/* 步骤 4 · 就绪:批量条两处读数变色(「已选 2 项」「共 6 个任务」)。
注:原注释写"配合 countUp 的数字滚动",countUp 已于本轮删除(hero 上无 data-count-to),
故 step-4 的可见效果就是这两处数字变色,不再有滚动动画。
体量很小(约 5×8px × 2 ≈ 0.14% 画面),四步的"叙事"主要由右上角徽标承担。 */
.js-demo .nv-home-batch b { transition: color 0.3s ease; }
.js-demo .demo-step-4 .nv-home-batch b { color: var(--sim-primary); }
/* ---- Hero 产品窗等比缩放(qoder 的 demo-canvas 手法,2026-11-24 复审落项) ----
720 真尺寸排版 + zoom 整体放大:字号/间距同比例变大,窗口保持 1.65:1。
`zoom` 会参与布局(占位跟着变),比 transform: scale 少一层手算高度,也不用 ResizeObserver。
Firefox < 126 忽略 zoom 时退回 720 窄窗,可读性不受损。 */
@media (min-width: 1025px) and (max-width: 1199px) {
.app-mockup { width: 720px; max-width: none; zoom: 1.15; }
}
@media (min-width: 1200px) {
.app-mockup { width: 720px; max-width: none; zoom: 1.389; }
}
/* 极窄视口(≤360):560×0.58 = 324.8 仍大于 320 的可用宽 280,右侧会被裁。
再降一档缩放并把画布盒子居中。 */
@media (max-width: 360px) {
.app-mockup { width: 520px; transform: scale(0.52); margin-left: calc((100% - 270.4px) / 2); }
.hero-visual { height: 236px; }
}