feat(home): Hero 浅色化(暗黑模式 token 友好)+ 视觉基线更新

- 撤销 P4 hero 深色全出血(bg-ink),回归浅色方案:bg-bg-primary + text-ink
- 全部使用 CSS 变量 token(bg-bg-primary/text-ink/text-text-secondary/text-brand),
  暗黑模式可直接覆盖 token 实现适配,无需逐元素反色
- logo-white.svg → logo.svg(浅色画布深色版)、点阵纹理淡化(0.06→0.03)
- 测试同步:hero logo 断言 /logo-white.svg → /logo.svg
- 视觉基线更新 3 张:home-fullpage / theme-light-main / theme-dark-main
- 附带修复:hero 背景原误用无效类 bg-primary(Tailwind 嵌套色名应为
  bg-bg-primary),全项目排查无同类误用
This commit is contained in:
2026-08-31 17:47:38 +08:00
parent 0ed1331d1f
commit fea5da7917
5 changed files with 18 additions and 18 deletions
@@ -88,13 +88,13 @@ jest.mock('lucide-react', () => {
};
});
describe('HomeContentV15 - 深色 Hero(对标 Accenture 纯黑 Hero)', () => {
it('renders the dark canvas hero with a white logo variant', () => {
describe('HomeContentV15 - 浅色 Hero(暗黑模式 token 友好)', () => {
it('renders the light canvas hero with a brand logo variant', () => {
render(<HomeContentV15 />);
expect(screen.getByTestId('hero-section')).toBeInTheDocument();
const heroLogo = screen.getByTestId('mock-next-image');
expect(heroLogo).toHaveAttribute('src', '/logo-white.svg');
expect(heroLogo).toHaveAttribute('src', '/logo.svg');
});
it('keeps a single primary CTA and demotes the secondary action to a text link', () => {