feat(brand): 首页影像版式与名+号字标上线

- 首页按咨询机构影像版式重排,保留原站文案与“洞察→行业→能力”段序
- 导航/页脚/品牌页换用上下锁定字标,alt 维持法定主体名
- 修复 reduce 下 PageTransition 祖先 opacity 停留导致的白屏
- 4 浏览器 × 9 宽度多端复核,axe 0 violation
- 视觉基线 106 张更新并只读复跑 125/125
This commit is contained in:
zhangxiang committed 2026-10-20 11:09:32 +08:00
1 parent f6e750c318
commit acb6b67357
153 files changed
+1313 -178

No files matched your search

+6 -1
View File
@@ -366,7 +366,12 @@ test.describe('P1: 品牌视觉审计 - SVG Logo 详细检查', { tag: '@regress
const svg = await res.text();
const textNodes = [...svg.matchAll(/<text[^>]*>([^<]*)<\/text>/g)].map((m) => m[1]?.trim() ?? '');
if (textNodes.length === 0) {
expect(asset, `${asset} 是几何字标却带 <text>`).toBeTruthy();
// 2026-10-20 起导航改用「名 + 号」上下锁定(几何字标,零 <text>)。
// 只判「没有 <text>」会放过 name-alone 误落库,故补两条结构判据:
// ① viewBox 必须是上下锁定的 255.6 × 119.82(name-alone 为 255.6 × 96);
// ② 英文号的图层平移坐标必须在场(name-alone 没有这一层)。
expect(svg, `${asset} 不是上下锁定:viewBox 应为 255.6 × 119.82`).toContain('viewBox="0 0 255.6 119.82"');
expect(svg, `${asset} 缺少英文号图层(translate(17.9474,78))`).toContain('translate(17.9474,78)');
continue;
}
expect(textNodes.length, `${asset} 内一个 <text> 都没有 ⇒ 取到的不是标识资产`).toBeGreaterThan(0);