fix(dark-mode): 修复视觉审查发现的2处硬编码浅色背景

- Hero右侧快速导航卡片: bg-white/80 → bg-[var(--color-bg-primary)]/80
- CTA区块: 新增--color-cta-bg变量(浅色#FAFAFA/深色#141414)
- 视觉验证通过: 8页全量截图确认无遗留问题
This commit is contained in:
张翔
2026-05-10 10:13:09 +08:00
parent 27d486d820
commit 0d517078ad
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -65,6 +65,7 @@
--color-accent-cyan-rgb: 8, 145, 178;
--color-footer-bg: #1C1C1C;
--color-cta-bg: #FAFAFA;
--color-footer-text: #A0A0A0;
--color-footer-text-muted: #666666;
--color-footer-text-dim: #999999;
@@ -198,6 +199,7 @@
--color-accent-cyan-rgb: 6, 182, 212;
--color-footer-bg: #000000;
--color-cta-bg: #141414;
--color-footer-text: #8C8C8C;
--color-footer-text-muted: #525252;
--color-footer-text-dim: #737373;
+1 -1
View File
@@ -27,7 +27,7 @@ export function CTASection({
const shouldReduceMotion = useReducedMotion();
return (
<section id="cta" className="relative py-20 md:py-28 bg-[var(--color-primary)] overflow-hidden">
<section id="cta" className="relative py-20 md:py-28 bg-[var(--color-cta-bg)] overflow-hidden">
<div
className="pointer-events-none absolute inset-0"
style={{
+1 -1
View File
@@ -157,7 +157,7 @@ export function HeroSectionV2() {
}}
/>
<div className="relative rounded-2xl bg-white/80 backdrop-blur-sm p-8 lg:p-10">
<div className="relative rounded-2xl bg-[var(--color-bg-primary)]/80 backdrop-blur-sm p-8 lg:p-10">
<div className="w-14 h-14 rounded-xl bg-[var(--color-brand-primary-bg)] flex items-center justify-center mb-6">
<Handshake className="w-6 h-6 text-[var(--color-brand-primary)]" strokeWidth={1.8} />
</div>