feat: V2/V3组件体系与水墨雅致视觉改造

- 新增detail-v2组件库(HeroV2/V3, TrustSectionV2, CTASectionV2等)
- Hero组件水墨雅致改造:浅色宣纸底/深色墨色文字/墨韵纹理
- 方案卡片添加推荐组合徽标(Package图标)
- 独立产品页从V1组件迁移到V2/V3
- 修复why-us-section未使用导入和ESLint引号转义错误
This commit is contained in:
张翔 committed 2026-06-07 16:19:44 +08:00
1 parent 2d602c0e57
commit 724a00f582
32 files changed
+3690 -87

No files matched your search

+20
View File
@@ -15,6 +15,12 @@ export function ScrollProgress() {
restDelta: 0.001,
});
const glowX = useSpring(scrollYProgress, {
stiffness: 120,
damping: 25,
restDelta: 0.001,
});
useEffect(() => {
const handleScroll = () => {
setIsVisible(window.scrollY > 80);
@@ -45,6 +51,20 @@ export function ScrollProgress() {
background: 'var(--color-brand-primary)',
}}
/>
{!shouldReduceMotion && (
<motion.div
className="absolute top-1/2 -translate-y-1/2 w-[60px] h-[3px] -mt-[0.5px]"
style={{
left: 'calc(var(--glow-x) * (100% - 60px))',
background: 'linear-gradient(90deg, transparent, var(--color-brand-primary), transparent)',
filter: 'blur(3px)',
opacity: 0.6,
}}
animate={{
'--glow-x': glowX,
}}
/>
)}
</motion.div>
);
}