diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 2e3fd06c..3cfebc9b 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,5 +1,5 @@ { - "*.{js,jsx,ts,tsx}": [ + "!(public)/**/*.{js,jsx,ts,tsx}": [ "eslint --fix" ] } diff --git a/next.config.mjs b/next.config.mjs index 1e865de1..98a44f06 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -102,6 +102,18 @@ const nextConfig = { httpAgentOptions: { keepAlive: true, }, + async rewrites() { + return [ + // 睿视 NovaVis landing 入口(2026-12-02 从 novavis-authority/landing **原样**迁入 + // public/novavis/,内容零修改):源站按目录默认文档约定服务(https://novavis.p.novalon.cn/), + // Next 的 public 文件层不做目录 → index.html 补全(实测 /novavis/ 308 → /novavis → 404), + // 故入口用 rewrite 补齐。资产绝对路径(/css/style.css、/js/main.js、/assets/*、 + // /images/logos/*)已按同名落 public 根,与源站 URL 语义一致、无需改写。 + // landing 零内联脚本(唯一 script 为同源 /js/main.js)+ 4 处内联 style 属性, + // 生产 CSP(script-src 'self' + style-src 'self' 'unsafe-inline')实测放行。 + { source: '/novavis', destination: '/novavis/index.html' }, + ]; + }, async headers() { return [ { diff --git a/public/assets/favicon.png b/public/assets/favicon.png new file mode 100644 index 00000000..cf75350b Binary files /dev/null and b/public/assets/favicon.png differ diff --git a/public/assets/novavis-logo-icon.png b/public/assets/novavis-logo-icon.png new file mode 100644 index 00000000..70daf0d2 Binary files /dev/null and b/public/assets/novavis-logo-icon.png differ diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 00000000..c2f7a318 --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,1554 @@ +@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; } +} diff --git a/public/images/logos/apple.svg b/public/images/logos/apple.svg new file mode 100644 index 00000000..614e8bb7 --- /dev/null +++ b/public/images/logos/apple.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/logos/kylin.png b/public/images/logos/kylin.png new file mode 100644 index 00000000..415ec82d Binary files /dev/null and b/public/images/logos/kylin.png differ diff --git a/public/images/logos/uos-symbol.svg b/public/images/logos/uos-symbol.svg new file mode 100644 index 00000000..f0e53e32 --- /dev/null +++ b/public/images/logos/uos-symbol.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/public/images/logos/windows.svg b/public/images/logos/windows.svg new file mode 100644 index 00000000..4fbbd4e7 --- /dev/null +++ b/public/images/logos/windows.svg @@ -0,0 +1 @@ + diff --git a/public/js/main.js b/public/js/main.js new file mode 100644 index 00000000..303ab930 --- /dev/null +++ b/public/js/main.js @@ -0,0 +1,860 @@ +/* ============================================ + 睿视 NovaVis Landing Page — Scripts + ============================================ */ + +/* -------------------------------------------- + 渐进生长动效(GROW) + -------------------------------------------- + 机制:读取图形元素上的 data-grow 阶段号,按阶段串行推进, + 阶段内元素依次点亮;进入视口才播放,离开视口复位。 + 三个设计要点: + 1. html.js-grow 仅在本模块成功初始化后保留——中途报错会移除, + 避免图形停在"已隐藏但动画没跑"的空白状态。 + 2. 资金流向的 SMIL 流动粒子由本模块统一启停, + 不再一进页面就无条件循环空转。 + 3. 尊重 prefers-reduced-motion——直接呈现终态,不排时间轴。 + -------------------------------------------- */ +const GROW = (() => { + const STAGGER = 70; // 阶段内相邻元素的点亮间隔(毫秒) + const PHASE_GAP = 240; // 相邻阶段之间的间隔(毫秒) + + const reduced = window.matchMedia + ? window.matchMedia('(prefers-reduced-motion: reduce)') + : { matches: false }; + + // 取待点亮目标:容器 取其子元素,独立图形元素取自身 + function targetsOf(el) { + if (el.tagName.toLowerCase() === 'g') return Array.from(el.children); + return [el]; + } + + // 按 data-grow 阶段号分组收集 + function collect(root) { + const phases = {}; + let max = 0; + root.querySelectorAll('[data-grow]').forEach((el) => { + const n = parseInt(el.getAttribute('data-grow'), 10) || 1; + (phases[n] = phases[n] || []).push(el); + if (n > max) max = n; + }); + return { phases, max }; + } + + class Player { + constructor(root) { + this.root = root; + this.svg = root.querySelector('svg'); + this.timers = []; + this.hasSmil = !!(this.svg && this.svg.querySelectorAll('animate').length); + if (this.hasSmil) this.holdSmil(); + } + + holdSmil() { + try { + this.svg.pauseAnimations(); + this.svg.setCurrentTime(0); + } catch (e) { /* 浏览器不支持 SMIL 控制时忽略 */ } + } + + releaseSmil() { + try { this.svg.unpauseAnimations(); } catch (e) { /* 同上 */ } + } + + stop() { + this.timers.forEach(clearTimeout); + this.timers = []; + } + + reset() { + this.stop(); + if (this.hasSmil) this.holdSmil(); + this.root.querySelectorAll('.is-grown').forEach((el) => { + el.classList.remove('is-grown'); + }); + } + + play() { + this.reset(); + const { phases, max } = collect(this.root); + + // 减弱动效偏好:一次性点亮到终态,不排时间轴 + if (reduced.matches) { + for (let p = 1; p <= max; p++) { + (phases[p] || []).forEach((el) => { + targetsOf(el).forEach((t) => t.classList.add('is-grown')); + }); + } + return; + } + + let cursor = 0; + for (let p = 1; p <= max; p++) { + const group = phases[p]; + if (!group) continue; + const targets = []; + group.forEach((el) => targetsOf(el).forEach((t) => targets.push(t))); + targets.forEach((t, i) => { + this.timers.push(setTimeout(() => { + t.classList.add('is-grown'); + }, cursor + i * STAGGER)); + }); + cursor += targets.length * STAGGER + PHASE_GAP; + } + + // 所有阶段走完后再放开 SMIL 粒子 + if (this.hasSmil) { + this.timers.push(setTimeout(() => this.releaseSmil(), cursor)); + } + } + } + + return { + reduced, + create(root) { return new Player(root); }, + }; +})(); + +// 尽早标记,避免图形先完整显示再被隐藏造成闪烁。 +// 若后续动效初始化失败,DOMContentLoaded 里会移除该标记,让图形恢复静态可见。 +document.documentElement.classList.add('js-grow'); + +/* -------------------------------------------- + Hero Live Demo(软件演示动画编排) + -------------------------------------------- + 机制:在 #heroDemo 上轮流挂 demo-step-1~4 类驱动 CSS, + 剧本:导入数据 → 构建图谱(复用 GROW 渐进生长)→ + 异常检测(可疑路径脉冲 + 指标滚动)→ AI 结论,播完循环。 + 尊重 prefers-reduced-motion——挂 demo-final 一次呈现终态。 + -------------------------------------------- */ +const DEMO = (() => { + // 各步骤时长(毫秒):总计约 14.6s 后循环 + const DUR = { s1: 2600, s2: 3400, s3: 3200, s4: 3800, hold: 1600 }; + + class Player { + constructor(root, growPlayer) { + this.root = root; + this.grow = growPlayer; + this.timers = []; + this.raf = null; + this.frozen = false; + } + + stop() { + this.timers.forEach(clearTimeout); + this.timers = []; + if (this.raf) cancelAnimationFrame(this.raf); + this.raf = null; + } + + // 冻结:停在当前画面(WCAG 2.2.2)——清时间轴,CSS 动画由 demo-paused 挂起 + freeze() { + if (this.frozen) return; + this.frozen = true; + this.stop(); + if (this.grow) { + this.grow.stop(); + try { if (this.grow.svg) this.grow.svg.pauseAnimations(); } catch (e) { /* 不支持 SMIL 控制时忽略 */ } + } + this.root.classList.add('demo-paused'); + } + + unfreeze() { + this.frozen = false; + this.root.classList.remove('demo-paused'); + } + + reset() { + this.stop(); + this.frozen = false; + this.root.classList.remove('demo-paused'); + this.root.classList.remove('demo-step-1', 'demo-step-2', 'demo-step-3', 'demo-step-4', 'demo-final'); + if (this.grow) this.grow.reset(); + // 注:原此处把 [data-count-to] 归零再滚动。hero 换 /home 后该属性已无消费方 + // (台账读数是静态数据,写成 0 会出现"共 0 个任务"却列着 4 行), + // 故 countUp 与这段归零一并删除(2026-11-07 §28.2 评审 BLOCKING-1 的连带清理)。 + } + + // 侧边栏高亮切换(模拟软件内导航点击) + setNav(key) { + this.root.querySelectorAll('[data-nav]').forEach((el) => { + el.classList.toggle('active', el.getAttribute('data-nav') === key); + }); + } + + play() { + this.reset(); + const root = this.root; + + // 每一步**先清掉其它步的类再加自己的**。 + // 为什么必须清:`.demo-step-N` 是"该步的样式"选择器,类若只加不删,后一步会继承 + // 前面所有步的样式(2026-11-07 §28.2 评审 BLOCKING-1 实测:5.6s 起类名恒为 + // `demo-step-2 demo-step-3 demo-step-4`,导致 `.demo-step-2 .nv-home-row:not(.is-current) + // {opacity:.55}` 一直不撤销)。 + const STEPS_ALL = ['demo-step-1', 'demo-step-2', 'demo-step-3', 'demo-step-4']; + const enterStep = (n) => { + const want = 'demo-step-' + n; + STEPS_ALL.forEach((c) => { if (c !== want) root.classList.remove(c); }); + root.classList.add(want); + }; + + // 减弱动效偏好:一次性呈现终态,不排时间轴 + if (GROW.reduced.matches) { + root.classList.add('demo-final'); + this.setNav('graph'); + return; + } + + const t = (fn, ms) => this.timers.push(setTimeout(fn, ms)); + + // ---- /home 任务工作台的四步剧本(2026-11-07 重写)---- + // 原剧本是图窗专属(导入卡片 → 图谱生长 → 可疑路径 → AI 结论)。hero 改画 /home 后, + // 那些元素在 DOM 里不存在,剧本会作用在空气上。四步与真源一一对应: + // step-1 新建任务 ← 卡体工具条「新任务名称 + 新建任务」(TaskHomePage:797-841) + // step-2 打开任务 ← 行内主操作「打开」(:99);当前行变 is-current + // step-3 导入数据 ← 右栏「当前任务」卡的动作「导入数据」(:600-641) + // step-4 就绪 ← 终态(任务已打开、数据已导入) + // 徽标(index.html 的 data-badge)与这四步**同义同步**,不得错位。 + + // 步骤 1 · 新建任务 + enterStep(1); + this.setNav('import'); + + // 步骤 2 · 打开任务 + t(() => { + enterStep(2); + this.setNav('graph'); + }, DUR.s1); + + // 步骤 3 · 导入数据 + t(() => { + enterStep(3); + }, DUR.s1 + DUR.s2); + + // 步骤 4 · 就绪 + t(() => { + enterStep(4); + }, DUR.s1 + DUR.s2 + DUR.s3); + + // 停顿后从头循环 + t(() => this.play(), DUR.s1 + DUR.s2 + DUR.s3 + DUR.s4 + DUR.hold); + } + } + + return { + create(root, growPlayer) { return new Player(root, growPlayer); }, + }; +})(); + +document.addEventListener('DOMContentLoaded', () => { + // ---- 滚动渐显:自动扫描各 section 内容,进入视口后 stagger 入场 ---- + // 目标由选择器清单声明(HTML 零改动);hero/highlights 首屏直出不参与。 + // 基础隐藏态由 html.js-reveal 门控:初始化失败时移除标记,全量可见。 + try { + const REVEAL_SELECTOR = [ + '.showcase-header > *', + '.features .section-title', '.features .section-desc', '.feature-card', + '.product-matrix .section-title', '.product-matrix .section-desc', '.product-card', + '.process .section-title', '.process .section-desc', '.process-step', + '.scenarios .section-title', '.scenarios .section-desc', '.scenario-card', + '.social-proof .section-title', '.social-proof .section-desc', + '.trust .section-title', '.trust .section-desc', '.trust-grid > *', + '.faq .section-title', '.faq .section-desc', '.faq-item', + '.cta-inner > *' + ].join(', '); + const revealEls = Array.from(document.querySelectorAll(REVEAL_SELECTOR)) + .filter(el => !el.closest('.hero') && !el.closest('.hero-highlights')); + // 同容器内兄弟 stagger:序号 × 60ms,封顶 240ms。 + // 2026-11-07 由 90/450 收敛(P3-1):qoder 实测无滚动渐显,本页保留但必须"轻"—— + // 450ms 的尾延迟在 B 端"快速查看"场景里读作卡顿。 + const siblingIndex = new Map(); + for (const el of revealEls) { + const parent = el.parentElement; + const key = parent; + const i = siblingIndex.get(key) ?? 0; + siblingIndex.set(key, i + 1); + el.classList.add('rv'); + el.style.setProperty('--rv-d', Math.min(i * 60, 240) + 'ms'); + } + const revealIn = (el) => el.classList.add('in'); + if ('IntersectionObserver' in window && !GROW.reduced.matches) { + const io = new IntersectionObserver((entries) => { + entries.forEach((entry) => { + if (entry.isIntersecting) { revealIn(entry.target); io.unobserve(entry.target); } + }); + }, { threshold: 0.12, rootMargin: '0px 0px -36px 0px' }); + revealEls.forEach((el) => io.observe(el)); + } else { + revealEls.forEach(revealIn); + } + document.documentElement.classList.add('js-reveal'); + } catch (err) { + document.documentElement.classList.remove('js-reveal'); + } + + const nav = document.getElementById('nav'); + const navToggle = document.getElementById('navToggle'); + const navLinks = document.getElementById('navLinks'); + + // ---- Nav scroll state ---- + function updateNav() { + nav.classList.toggle('scrolled', window.scrollY > 10); + } + window.addEventListener('scroll', updateNav, { passive: true }); + updateNav(); + + // ---- Nav scroll-spy:标出当前所在章节(aria-current=location,不只靠颜色) ---- + const navSectionLinks = Array.from( + navLinks.querySelectorAll('a[href^="#"]') + ).filter((a) => document.querySelector(a.getAttribute('href'))); + function updateActiveSection() { + const marker = window.scrollY + 180; + let current = null; + for (const link of navSectionLinks) { + const section = document.querySelector(link.getAttribute('href')); + if (section && section.getBoundingClientRect().top + window.scrollY <= marker) { + current = link; + } + } + for (const link of navSectionLinks) { + const isCurrent = link === current; + link.classList.toggle('active', isCurrent); + if (isCurrent) link.setAttribute('aria-current', 'location'); + else link.removeAttribute('aria-current'); + } + } + window.addEventListener('scroll', updateActiveSection, { passive: true }); + updateActiveSection(); + + // ---- Features:静态三列网格(qoder 无轮播;2026-11-24 移除 Swiper 依赖) ---- + + // ---- Showcase tabs (ARIA tab pattern with keyboard support) ---- + // 限定在外层分段控件内:窗内 TabBar 复用同名类,若一并选中,点击它拿不到 aria-controls,会把四个 panel 全部 hidden(2026-11-24 实测缺陷)。 + const showcaseTabs = Array.from(document.querySelectorAll('.showcase-tabs .showcase-tab')); + const showcasePanels = Array.from(document.querySelectorAll('.showcase-panel')); + + // roving tabindex:整组只留一只 tab 可被 Tab 键到达,指向 active。 + // 守卫——焦点仍停在某只 tab 上时不摘它的 tabindex(摘了会把键盘用户正在操作的控件移出 + // 序列):点击/方向键路径已先 focus 目标再同步,故此处实际保护的是自动轮播那条 + // `focus: false` 的路径(回调已在 focusin 之前入队的竞态)。复评 P2-9。 + function syncRovingTabindex() { + showcaseTabs.forEach(t => { + const isActive = t.classList.contains('active'); + // 只在「持焦且已非 active」时不摘(自动轮播 focus:false 路径的竞态兜底); + // 持焦且就是 active 时必须照常写 0,否则整组会一只都不在 Tab 序列里。 + if (!isActive && document.activeElement === t) return; + t.setAttribute('tabindex', isActive ? '0' : '-1'); + }); + } + + function activateShowcaseTab(targetTab, opts) { + const noFocus = opts && opts.focus === false; + const targetId = targetTab.getAttribute('aria-controls'); + showcaseTabs.forEach(t => { + const isTarget = t === targetTab; + t.classList.toggle('active', isTarget); + t.setAttribute('aria-selected', String(isTarget)); + }); + showcasePanels.forEach(p => { + const isTarget = p.id === targetId; + p.classList.toggle('active', isTarget); + p.hidden = !isTarget; + }); + // 切换后重播该 panel 的渐进生长动画 + const panel = document.getElementById(targetId); + if (panel && growPlayers.has(panel)) growPlayers.get(panel).play(); + if (!noFocus) targetTab.focus(); + // 必须在 focus() 之后同步:focus() 之前持焦的还是旧 tab,会被上面的守卫跳过, + // 于是「方向键切换」后旧 tab 残留 tabindex="0" —— 整组出现两只可 Tab 到达的 tab + syncRovingTabindex(); + } + + showcaseTabs.forEach((tab, index) => { + tab.addEventListener('click', () => { activateShowcaseTab(tab); scheduleCycle(); }); + tab.addEventListener('keydown', (e) => { + let nextIndex = index; + if (e.key === 'ArrowRight') { + nextIndex = (index + 1) % showcaseTabs.length; + } else if (e.key === 'ArrowLeft') { + nextIndex = (index - 1 + showcaseTabs.length) % showcaseTabs.length; + } else if (e.key === 'Home') { + nextIndex = 0; + } else if (e.key === 'End') { + nextIndex = showcaseTabs.length - 1; + } else { + return; + } + e.preventDefault(); + activateShowcaseTab(showcaseTabs[nextIndex]); + scheduleCycle(); + }); + }); + + // ---- Showcase 自动轮播(演示动画)---- + // 机制:视口内每 CYCLE_MS 自动切到下一个 tab(面板入场动画照播); + // 悬停卡片暂停(进度条冻结在当前位置),移出恢复;点击/键盘切换会重置进度。 + // 减弱动效偏好:不轮播、进度条由 CSS 隐藏。 + const CYCLE_MS = 5500; + const showcaseCard = document.querySelector('.showcase-card'); + let cycleTimer = null; + let showcaseInView = false; + let showcaseHovered = false; + let showcaseFocused = false; + let showcasePaused = false; + + function resetProgress(animate) { + showcaseTabs.forEach((tab) => { + const bar = tab.querySelector('.tab-progress span'); + if (!bar) return; + bar.style.transition = 'none'; + bar.style.width = '0'; + if (animate && tab.classList.contains('active')) { + void bar.offsetWidth; // 强制回流,确保进度从头开始 + bar.style.transition = `width ${CYCLE_MS}ms linear`; + bar.style.width = '100%'; + } + }); + } + + function scheduleCycle() { + clearTimeout(cycleTimer); + cycleTimer = null; + // 悬停/焦点/暂停/不在视口/减弱动效下不重播进度条,也不排下一次切换 + if (!showcaseInView || showcaseHovered || showcaseFocused || showcasePaused || GROW.reduced.matches) return; + resetProgress(true); + cycleTimer = setTimeout(() => { + const idx = showcaseTabs.findIndex((t) => t.classList.contains('active')); + const next = showcaseTabs[(idx + 1) % showcaseTabs.length]; + activateShowcaseTab(next, { focus: false }); + scheduleCycle(); + }, CYCLE_MS); + } + + function freezeProgress() { + // 进度条冻结在当前位置 + showcaseTabs.forEach((tab) => { + const bar = tab.querySelector('.tab-progress span'); + if (!bar) return; + const w = getComputedStyle(bar).width; + bar.style.transition = 'none'; + bar.style.width = w; + }); + } + + function holdCycle() { + clearTimeout(cycleTimer); + cycleTimer = null; + // 冻结在当前位置,让位结束后由 scheduleCycle 重新计时 + freezeProgress(); + } + + function pauseCycle() { + showcaseHovered = true; + holdCycle(); + } + + // ---- 轮播暂停开关(WCAG 2.2.2:自动移动内容须提供显式停止手段)---- + const showcasePauseBtn = document.getElementById('showcasePause'); + function setCyclePaused(paused) { + showcasePaused = paused; + if (!showcasePauseBtn) return; + showcasePauseBtn.setAttribute('aria-pressed', String(paused)); + showcasePauseBtn.setAttribute('aria-label', paused ? '继续自动轮播' : '暂停自动轮播'); + const txt = showcasePauseBtn.querySelector('.showcase-pause-text'); + if (txt) txt.textContent = paused ? '继续' : '暂停'; + showcasePauseBtn.querySelectorAll('.showcase-pause-icon').forEach((icon, i) => { + icon.style.display = (paused ? i === 1 : i === 0) ? '' : 'none'; + }); + if (paused) { + holdCycle(); + } else { + scheduleCycle(); + } + } + if (showcasePauseBtn) { + if (GROW.reduced.matches) showcasePauseBtn.hidden = true; + showcasePauseBtn.addEventListener('click', () => setCyclePaused(!showcasePaused)); + } + + if (showcaseCard && 'IntersectionObserver' in window && !GROW.reduced.matches) { + new IntersectionObserver((entries) => { + entries.forEach((entry) => { + showcaseInView = entry.isIntersecting; + if (showcaseInView) scheduleCycle(); + else { clearTimeout(cycleTimer); resetProgress(false); } + }); + }, { threshold: 0.35 }).observe(showcaseCard); + + showcaseCard.addEventListener('mouseenter', pauseCycle); + showcaseCard.addEventListener('mouseleave', () => { + showcaseHovered = false; + scheduleCycle(); + }); + + // 键盘焦点进入卡片即让位(与悬停暂停同理:读不完就被切走,WCAG 2.2.2) + showcaseCard.addEventListener('focusin', () => { + showcaseFocused = true; + holdCycle(); + }); + showcaseCard.addEventListener('focusout', (e) => { + if (showcaseCard.contains(e.relatedTarget)) return; // 卡片内部移动不恢复 + showcaseFocused = false; + syncRovingTabindex(); // 焦点离开后收敛回「只有 active 可 Tab 到达」 + scheduleCycle(); + }); + } + + // ---- Hero Live Demo + 渐进生长动效:Showcase 四个 panel ---- + // growPlayers 在此声明,确保 activateShowcaseTab 引用时始终可用(即便初始化失败) + const growPlayers = new Map(); + + try { + // Hero 走 DEMO 编排器(内部复用 GROW 点亮图谱),Showcase 仍走 GROW + const heroDemo = document.getElementById('heroDemo'); + const heroGrow = heroDemo ? GROW.create(heroDemo) : null; + const demoPlayer = heroDemo ? DEMO.create(heroDemo, heroGrow) : null; + + showcasePanels.forEach(root => growPlayers.set(root, GROW.create(root))); + + const growObserver = 'IntersectionObserver' in window + ? new IntersectionObserver((entries) => { + entries.forEach(entry => { + const player = growPlayers.get(entry.target); + if (!player) return; + // 隐藏的 panel(非当前 tab)交给 tab 切换时重播,此处不处理 + if (entry.target.hidden) return; + if (entry.isIntersecting) player.play(); + else player.reset(); + }); + }, { threshold: 0.25 }) + : null; + + function observeGrow(root) { + if (growObserver) growObserver.observe(root); + else growPlayers.get(root).play(); // 不支持 IntersectionObserver 时直接播放 + } + + showcasePanels.forEach(observeGrow); + + // Hero Live Demo:进视口播放、离场复位循环;支持显式暂停与悬停冻结(WCAG 2.2.2) + if (demoPlayer) { + document.documentElement.classList.add('js-demo'); + const demoPauseBtn = document.getElementById('demoPause'); + let userPaused = false; + let pointerInside = false; + + function setDemoPausedUI(paused) { + userPaused = paused; + if (!demoPauseBtn) return; + demoPauseBtn.setAttribute('aria-pressed', String(paused)); + demoPauseBtn.setAttribute('aria-label', paused ? '继续播放首屏演示动画' : '暂停首屏演示动画'); + const txt = demoPauseBtn.querySelector('.demo-pause-text'); + if (txt) txt.textContent = paused ? '继续' : '暂停'; + demoPauseBtn.querySelectorAll('.demo-pause-icon').forEach((icon, i) => { + icon.style.display = (paused ? i === 1 : i === 0) ? '' : 'none'; + }); + } + + function applyDemoState() { + if (userPaused || pointerInside) demoPlayer.freeze(); + else if (demoPlayer.frozen) { demoPlayer.unfreeze(); demoPlayer.play(); } + } + + if (demoPauseBtn) { + if (GROW.reduced.matches) demoPauseBtn.hidden = true; + else demoPauseBtn.addEventListener('click', () => { setDemoPausedUI(!userPaused); applyDemoState(); }); + } + + const heroVisual = heroDemo.parentElement; + if (heroVisual) { + ['mouseenter', 'focusin'].forEach(evt => heroVisual.addEventListener(evt, () => { pointerInside = true; applyDemoState(); })); + ['mouseleave', 'focusout'].forEach(evt => heroVisual.addEventListener(evt, () => { pointerInside = false; applyDemoState(); })); + } + + const demoObserver = 'IntersectionObserver' in window + ? new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (!entry.isIntersecting) { demoPlayer.reset(); return; } + if (userPaused) { setDemoPausedUI(true); demoPlayer.freeze(); } + else if (!demoPlayer.frozen) demoPlayer.play(); + }); + }, { threshold: 0.25 }) + : null; + + if (demoObserver) { + // Hero 在首屏:延后到 load 之后再启动,避免与首屏渲染争抢资源 + if (document.readyState === 'complete') demoObserver.observe(heroDemo); + else window.addEventListener('load', () => demoObserver.observe(heroDemo), { once: true }); + } else { + demoPlayer.play(); + } + } + } catch (err) { + // 动效初始化失败:移除标记,图形恢复为完整可见的静态态 + document.documentElement.classList.remove('js-grow'); + document.documentElement.classList.remove('js-demo'); + growPlayers.clear(); + } + + // ---- Mobile nav toggle with aria ---- + // 可访问名随状态变化:读屏用户听到的是「打开菜单 / 关闭菜单」,而不是固定的「菜单」 + function setNavExpanded(expanded) { + navToggle.setAttribute('aria-expanded', String(expanded)); + navToggle.setAttribute('aria-label', expanded ? '关闭菜单' : '打开菜单'); + navLinks.classList.toggle('open', expanded); + } + + navToggle.addEventListener('click', () => { + setNavExpanded(navToggle.getAttribute('aria-expanded') !== 'true'); + }); + + navLinks.querySelectorAll('a').forEach(link => { + link.addEventListener('click', () => setNavExpanded(false)); + }); + + // Close mobile nav on Escape + document.addEventListener('keydown', (e) => { + if (e.key === 'Escape' && navLinks.classList.contains('open')) { + setNavExpanded(false); + navToggle.focus(); + } + }); + + // ---- Back to top button ---- + const backToTop = document.getElementById('backToTop'); + function updateBackToTop() { + backToTop.classList.toggle('visible', window.scrollY > 600); + } + window.addEventListener('scroll', updateBackToTop, { passive: true }); + updateBackToTop(); + + backToTop.addEventListener('click', () => { + window.scrollTo({ top: 0, behavior: 'smooth' }); + }); + + // ---- FAQ accordion: close siblings on open ---- + document.querySelectorAll('.faq-item').forEach(item => { + item.addEventListener('toggle', () => { + if (item.open) { + const faqList = item.closest('.faq-list'); + faqList.querySelectorAll('.faq-item').forEach(sibling => { + if (sibling !== item) sibling.open = false; + }); + } + }); + }); + + // ---- Trial form validation ---- + const form = document.getElementById('trialForm'); + if (!form) return; + + const nameInput = document.getElementById('name'); + const orgInput = document.getElementById('org'); + const phoneInput = document.getElementById('phone'); + const emailInput = document.getElementById('email'); + const submitBtn = document.getElementById('submitBtn'); + const submitBtnHtml = submitBtn.innerHTML; + + function setError(input, errorEl, msg) { + input.setAttribute('aria-invalid', 'true'); + errorEl.textContent = msg || ''; + } + + function clearError(input, errorEl) { + input.removeAttribute('aria-invalid'); + errorEl.textContent = ''; + } + + function validatePhone(value) { + return /^1[3-9]\d{9}$/.test(value.replace(/\s/g, '')); + } + + function validateEmail(value) { + return !value || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value); + } + + function validateField(input, errorEl, validator, emptyMsg, invalidMsg) { + const value = input.value.trim(); + if (!value) { + // emptyMsg 为 null 表示选填字段:留空即通过 + if (!emptyMsg) { + clearError(input, errorEl); + return true; + } + setError(input, errorEl, emptyMsg); + return false; + } + if (validator && !validator(value)) { + setError(input, errorEl, invalidMsg); + return false; + } + clearError(input, errorEl); + return true; + } + + // Live validation on blur + nameInput.addEventListener('blur', () => { + validateField(nameInput, document.getElementById('nameError'), null, '请输入您的姓名'); + }); + orgInput.addEventListener('blur', () => { + validateField(orgInput, document.getElementById('orgError'), null, '请输入您所在的单位名称'); + }); + phoneInput.addEventListener('blur', () => { + validateField( + phoneInput, + document.getElementById('phoneError'), + validatePhone, + '请输入您的联系电话', + '请输入正确的手机号码' + ); + }); + emailInput.addEventListener('blur', () => { + validateField( + emailInput, + document.getElementById('emailError'), + validateEmail, + null, + '请输入正确的邮箱地址' + ); + }); + + // Clear error on input + [nameInput, orgInput, phoneInput, emailInput].forEach(input => { + input.addEventListener('input', () => { + const errorEl = document.getElementById(input.name + 'Error'); + if (errorEl) clearError(input, errorEl); + }); + }); + + // ---- Failure & copy helpers ---- + function requestText(name, org, phone, email, message) { + return `姓名:${name}\n单位:${org}\n电话:${phone}${email ? '\n邮箱:' + email : ''}${message ? '\n\n需求描述:\n' + message : ''}`; + } + + function legacyCopy(text) { + const ta = document.createElement('textarea'); + ta.value = text; + ta.setAttribute('readonly', ''); + ta.style.position = 'fixed'; + ta.style.opacity = '0'; + document.body.appendChild(ta); + ta.select(); + let ok = false; + try { ok = document.execCommand('copy'); } catch (err) { ok = false; } + document.body.removeChild(ta); + return ok; + } + + function copyText(text) { + if (navigator.clipboard && navigator.clipboard.writeText) { + return navigator.clipboard.writeText(text).then(() => true).catch(() => legacyCopy(text)); + } + return Promise.resolve(legacyCopy(text)); + } + + // 失败时保留已填内容,显示可见错误提示,并给出「邮件发送 / 复制内容」两个出口 + function showFailureAlert(reason, fields) { + submitBtn.disabled = false; + submitBtn.style.opacity = '1'; + submitBtn.innerHTML = submitBtnHtml; + + const old = form.querySelector('.cta-form-alert'); + if (old) old.parentNode.removeChild(old); + + const alertBox = document.createElement('div'); + alertBox.className = 'cta-form-alert'; + alertBox.setAttribute('role', 'alert'); + + const msg = document.createElement('p'); + msg.className = 'cta-form-alert-msg'; + msg.textContent = reason; + alertBox.appendChild(msg); + + const actions = document.createElement('div'); + actions.className = 'cta-form-alert-actions'; + + const mailLink = document.createElement('a'); + mailLink.className = 'cta-form-alert-link'; + mailLink.href = 'mailto:contact@novalon.cn?subject=' + + encodeURIComponent('睿视 NovaVis 试用申请 — ' + fields.org) + + '&body=' + encodeURIComponent(requestText(fields.name, fields.org, fields.phone, fields.email, fields.message)); + mailLink.textContent = '通过邮件发送申请'; + actions.appendChild(mailLink); + + const copyBtn = document.createElement('button'); + copyBtn.type = 'button'; + copyBtn.className = 'cta-form-alert-btn'; + copyBtn.textContent = '复制申请内容'; + copyBtn.addEventListener('click', () => { + copyText(requestText(fields.name, fields.org, fields.phone, fields.email, fields.message)) + .then( ok => { copyBtn.textContent = ok ? '已复制,粘贴到邮件即可发送' : '复制失败,请手动选择文本'; }); + }); + actions.appendChild(copyBtn); + + alertBox.appendChild(actions); + form.insertBefore(alertBox, form.querySelector('.cta-form-submit')); + } + + // Submit: POST to backend, show failure alert with recovery paths + form.addEventListener('submit', (e) => { + e.preventDefault(); + + const nameOk = validateField(nameInput, document.getElementById('nameError'), null, '请输入您的姓名'); + const orgOk = validateField(orgInput, document.getElementById('orgError'), null, '请输入您所在的单位名称'); + const phoneOk = validateField( + phoneInput, + document.getElementById('phoneError'), + validatePhone, + '请输入您的联系电话', + '请输入正确的手机号码' + ); + const emailOk = validateField( + emailInput, + document.getElementById('emailError'), + validateEmail, + null, + '请输入正确的邮箱地址' + ); + + if (!nameOk || !orgOk || !phoneOk || !emailOk) { + const firstInvalid = form.querySelector('[aria-invalid="true"]'); + if (firstInvalid) firstInvalid.focus(); + return; + } + + const name = nameInput.value.trim(); + const org = orgInput.value.trim(); + const phone = phoneInput.value.trim(); + const email = emailInput.value.trim(); + const message = document.getElementById('message').value.trim(); + + // Disable button during submission + submitBtn.disabled = true; + submitBtn.style.opacity = '0.7'; + submitBtn.textContent = '提交中...'; + + const payload = { name, org, phone }; + if (email) payload.email = email; + if (message) payload.message = message; + const fields = { name, org, phone, email, message }; + + fetch('/api/v1/contact', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(payload) + }) + .then(res => res.json().then(data => ({ ok: res.ok, data }))) + .then(({ ok, data }) => { + if (ok && data.code === 200) { + // 成功:确认块可被屏幕阅读器播报,焦点随之移动 + form.innerHTML = '

✓ 感谢您的申请!我们将在 1 个工作日内与您联系。

'; + const successBox = form.querySelector('.cta-form-success'); + if (successBox) successBox.focus(); + } else { + showFailureAlert('提交未成功:' + ((data && data.message) || '服务器返回异常,请稍后重试'), fields); + } + }) + .catch(() => { + showFailureAlert('提交失败(网络异常),请检查网络后重试,或通过以下方式联系我们。', fields); + }); + }); +}); diff --git a/public/novavis/index.html b/public/novavis/index.html new file mode 100644 index 00000000..8da60c26 --- /dev/null +++ b/public/novavis/index.html @@ -0,0 +1,1172 @@ + + + + + + + + + + + + + 睿视 NovaVis — 智能金融数据分析平台 + + + + + + + + + + + + + +
+ +
+
+
+

从交易数据中
看见隐藏的真相

+

+ 面向经侦、反洗钱、反欺诈场景的智能图分析工作站。 + 将复杂资金流转转化为可交互的关系网络,本地部署、信创适配、数据不出域。 +

+ +
+ + + 国产信创体系适配 + + + + 数据全程不出域 + +
+
+
+ +
+ +
+
+ + +
+
+ 单机私有化部署 + + 按功能模块授权 + + 授权操作留痕可查 + + Ed25519 签名授权文件 +
+
+ + +
+
+
+

一个工作台,覆盖分析全流程

+

从数据导入到报告输出,所有能力集成在同一桌面应用中

+
+
+
+ + + + +
+ +
+
+ +
+

账户综合关联

+

把账户交易记录构建为可视化关系网络,全上图后在画布上拖拽缩放、逐层展开关联节点。

+
    +
  • 按卡号或集合一键全上图
  • +
  • 层级 / 力导向 / 分组三种布局
  • +
  • 节点属性与面板统计随选随看
  • +
+
+
+ + + +
+
+
+
+ + +
+
+

覆盖数据分析全流程

+

从数据导入到报告生成,一个桌面应用完成所有工作

+
+
+
+ +

多源数据导入

+

支持银行流水、账单、话单、物流等常见格式批量导入,自动识别字段并清洗校验。

+
+
+
+
+ +

关系图谱分析

+

将交易记录转化为交互式关系网络,自由探索账户节点与隐藏关联。

+
+
+
+
+ +

资金流向追踪

+

多层穿透资金流转路径,自动识别循环转账、快进快出等异常模式。

+
+
+
+
+ +

AI 智能分析

+

内置异常检测模型,自动标记可疑交易,分析结果可解释、可追溯。

+
+
+
+
+ +

一键报告生成

+

关键节点、资金流向、关系图谱一键导出为标准文档,即导即用。

+
+
+
+
+ +

安全合规保障

+

本地化部署,数据全程不出域,满足执法机关与金融机构合规审计要求。

+
+
+
+
+
+ + +
+
+

为专业场景打造

+

从分析工作台到授权治理,一套交付;自带运行环境,无需外部数据库

+
+
+ +

分析工作台

+

面向经侦与反洗钱分析师的一体化桌面端:数据导入、关系图谱、资金穿透、异常标记与报告输出在同一工作台完成。

+
+
+ +

授权与审批治理

+

所有授权经 Ed25519 数字签名签发;续期、升级与吊销可经审批工作流闭环处理,紧急处置即时生效且全程留痕、责任到人。

+
+
+ +

权限与审计控制台

+

用户、角色、菜单与权限分级管控,关键操作全部写入审计日志,满足合规检查与事后追溯要求。

+
+
+ +

本地化部署交付

+

自带完整运行环境,无需外部数据库与应用服务器;数据全程本地处理不出域,适配国产信创体系。

+
+
+
+
+ + +
+
+

三步构建完整证据链

+

从原始数据到分析报告,每一步都清晰可追溯

+
+
+ + + 数据准备 +

导入数据,自动构建关系网络

+

导入银行流水、支付宝/微信账单、话单、物流单据及交易记录,系统自动识别字段类型、清洗异常数据,并将账户间交易自动构建为关系网络。

+
+
+ + + 交互分析 +

自由探索,发现隐藏线索

+

在交互式关系网络中拖拽缩放,按时间、金额、账户类型等维度灵活筛选,AI 模型同步标记异常交易与可疑模式。

+
+
+ + + 证据输出 +

一键导出,形成完整证据链

+

将分析过程中发现的关键节点、可疑路径、资金流向与统计摘要一键导出为规范文档,即导即用,直接作为证据材料归档。

+
+
+
+
+ + +
+
+

为专业分析场景而生

+

深度适配执法机关与金融机构的实际工作流

+
+
+ 经济犯罪侦查 +

多账户资金网络穿透分析

+

将涉案账户的银行流水一键导入,自动构建交易关系网络。逐层穿透资金流转路径,快速识别核心嫌疑账户、洗钱中转节点与最终受益人,锁定关键证据。

+
    +
  • 支持多轮穿透追溯,自动标记循环转账
  • +
  • 时间轴与资金量双维度交叉分析
  • +
  • 一键导出关系图谱与资金链路图
  • +
+
+
+ 反洗钱合规 +

可疑交易智能识别与报送

+

对接银行交易数据,AI 模型自动识别大额交易、频繁转账、快进快出等可疑模式。系统生成合规报告,满足监管机构对大额与可疑交易报送的格式要求。

+
    +
  • 支持监管报送标准格式一键导出
  • +
  • 可配置的可疑交易判定规则
  • +
  • 审计日志全程记录,满足合规检查
  • +
+
+
+ 金融反欺诈 +

团伙欺诈网络识别与预警

+

基于交易关联关系自动发现欺诈团伙结构,分析风险传导路径。对新进入的交易实时比对历史欺诈模式,提前预警潜在风险,协助风控团队快速响应。

+
    +
  • 团伙结构自动聚类与可视化
  • +
  • 历史案例模式库持续积累
  • +
  • 可与现有风控系统联动
  • +
+
+
+
+
+ + + + + +
+
+

主流桌面系统,信创兼容

+

同时支持 Windows、macOS 及国产信创桌面操作系统,满足多场景部署需求

+
+
+ +

Windows

+

Windows 10 / 11

+
+
+ +

macOS

+

Apple Silicon / Intel

+
+
+ +

统信 UOS

+

桌面版

+
+
+ +

麒麟 Kylin

+

银河麒麟桌面版

+
+
+ +

安全合规

+

数据不出域 · Ed25519 签名 · AES-256 加密

+
+
+
+
+ 4 类 + 桌面操作系统
提供原生安装包
+
+
+ 单机 + 分析工作台本地运行
数据不出域
+
+
+ Ed25519 + 授权电子签名
篡改可验证
+
+
+ 30 分钟 + 私有化部署
安装与初始化参考时长
+
+
+
+
+ + +
+
+

常见问题

+

关于部署、对接与使用的常见疑问

+
+
+ 如何部署 睿视 NovaVis? +
+

睿视 NovaVis支持本地化部署,提供 Windows、macOS 及国产信创操作系统(统信 UOS、麒麟 Kylin)的原生安装包。通常 30 分钟内即可完成安装与初始化配置。

+
+
+
+ 需要什么样的 IT 环境? +
+

最低配置:4 核 CPU、8GB 内存、50GB 可用磁盘空间。推荐配置:8 核 CPU、16GB 内存、SSD 固态硬盘。无需外部数据库或应用服务器,应用自带完整的运行环境。

+
+
+
+ 支持哪些数据格式导入? +
+

支持 Excel(.xlsx / .xls)、CSV、TSV 等常用格式的批量导入,适配银行流水、支付宝/微信账单、话单、物流单据等多种数据源,系统自动识别字段类型并完成数据清洗校验。数据全程在本地处理,运行不依赖外部数据库服务。

+
+
+
+ 能否与现有系统对接? +
+

分析工作台为单机桌面端,数据以本地文件导入,不依赖外部数据库服务;授权治理模块为独立服务端,提供签发、审批与审计相关的 HTTP 接口。信创环境提供统信 UOS、银河麒麟桌面版原生安装包(兼容性见上方「信创兼容」小节)。

+
+
+
+ 试用流程是怎样的? +
+

提交试用申请后,我们将在 1 个工作日内与您联系,了解您的具体使用场景。确认后提供安装包与试用授权,试用期为 30 天,期间提供全程技术支持。

+
+
+
+
+
+ + +
+
+
+

让数据说话,用关联破案

+

申请试用 睿视 NovaVis,体验新一代智能金融数据分析平台的强大能力。我们将在 1 个工作日内与您联系。

+
+
+
+
+ + + +
+
+ + + +
+
+
+
+ + + +
+
+ + + +
+
+
+ + +
+
+ +

或发送邮件至 contact@novalon.cn

+
+

您提交的信息仅用于产品试用沟通,不会分享给第三方。

+
+
+
+
+ + + + + + + + +