diff --git a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/home-fullpage-visual-chromium-desktop.png b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/home-fullpage-visual-chromium-desktop.png index 102c313..8361c60 100644 Binary files a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/home-fullpage-visual-chromium-desktop.png and b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/home-fullpage-visual-chromium-desktop.png differ diff --git a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-dark-main-visual-chromium-desktop.png b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-dark-main-visual-chromium-desktop.png index 53bf60c..79a526c 100644 Binary files a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-dark-main-visual-chromium-desktop.png and b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-dark-main-visual-chromium-desktop.png differ diff --git a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-light-main-visual-chromium-desktop.png b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-light-main-visual-chromium-desktop.png index 53bf60c..79a526c 100644 Binary files a/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-light-main-visual-chromium-desktop.png and b/e2e/visual-snapshots/visual-chromium-desktop/visual-regression.spec.ts/theme-light-main-visual-chromium-desktop.png differ diff --git a/src/app/(marketing)/home-content-v15.test.tsx b/src/app/(marketing)/home-content-v15.test.tsx index d2b4013..a9daad7 100644 --- a/src/app/(marketing)/home-content-v15.test.tsx +++ b/src/app/(marketing)/home-content-v15.test.tsx @@ -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(); 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', () => { diff --git a/src/app/(marketing)/home-content-v15.tsx b/src/app/(marketing)/home-content-v15.tsx index 7a76d5a..4d0945b 100644 --- a/src/app/(marketing)/home-content-v15.tsx +++ b/src/app/(marketing)/home-content-v15.tsx @@ -158,13 +158,13 @@ function HeroSection({ heroData, stats }: { return (
- {/* 背景纹理:极淡的品牌色点阵(深色画布上可见) */} -
@@ -172,7 +172,7 @@ function HeroSection({ heroData, stats }: {
- {/* 品牌标识:深色画布使用白色版 Logo(浅色版见 header/footer) */} + {/* 品牌标识:浅色画布使用深色版 Logo(深色版见 footer 深色区块) */} {`${COMPANY_INFO.name} - {/* 品牌口号 Badge:深色画布上的品牌红电压 */} + {/* 品牌口号 Badge:浅色画布上的品牌红信号 */} {slogan && ( - + {slogan} )} - {/* 主标题:大胆、直接(深色画布上的白色宣言) */} + {/* 主标题:大胆、直接(浅色画布上的墨色宣言) */} {heading} @@ -224,10 +224,10 @@ function HeroSection({ heroData, stats }: { > {displayStats.map((stat, i) => (
- + {stat.value} - + {stat.label}
@@ -241,7 +241,7 @@ function HeroSection({ heroData, stats }: { initial={{ opacity: 0, y: 30 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.35, delay: 0.24, ease: EASE_OUT }} - className="text-lg sm:text-xl text-white/70 max-w-2xl leading-relaxed mb-10" + className="text-lg sm:text-xl text-text-secondary max-w-2xl leading-relaxed mb-10" > {subheading} @@ -259,7 +259,7 @@ function HeroSection({ heroData, stats }: { {secondaryCtaLabel} @@ -268,7 +268,7 @@ function HeroSection({ heroData, stats }: {
- {/* 右侧:产品视觉(SVG 数据看板示意,浅色卡片浮于深色画布) */} + {/* 右侧:产品视觉(SVG 数据看板示意,浅色卡片浮于浅色画布) */}