style(theme): 更新网站主题色彩方案与字体配置

- 调整主色调从 #1C1C1C 至 #1A1A1A,优化视觉层次
- 更新背景色系为暖白色调 (#FAFAF7, #F5F4F0 等)
- 配置中文字体栈,添加 serif 字体支持
- 优化文本颜色梯度,提升可读性
- 调整边框颜色,统一水墨风格
- 添加 Google Search Console 验证码配置项
- 新增桌面应用架构专家代理配置文件
- 重构 E2E 测试等待策略,提升稳定性
- 添加回归测试脚本,增强质量保障
This commit is contained in:
张翔 committed 2026-06-17 11:37:25 +08:00
1 parent a3cc4c9d43
commit 415a103a24
50 files changed
+3651 -1186

No files matched your search

+4 -5
View File
@@ -1,7 +1,7 @@
'use client';
import { useState, useEffect } from 'react';
import { motion, useScroll, useSpring } from 'framer-motion';
import { motion, useScroll, useSpring, useTransform } from 'framer-motion';
import { useReducedMotion } from '@/hooks/use-reduced-motion';
export function ScrollProgress() {
@@ -21,6 +21,8 @@ export function ScrollProgress() {
restDelta: 0.001,
});
const glowLeft = useTransform(glowX, (v) => `calc(${v * 100}% - 30px)`);
useEffect(() => {
const handleScroll = () => {
setIsVisible(window.scrollY > 80);
@@ -55,14 +57,11 @@ export function ScrollProgress() {
<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))',
left: glowLeft,
background: 'linear-gradient(90deg, transparent, var(--color-brand-primary), transparent)',
filter: 'blur(3px)',
opacity: 0.6,
}}
animate={{
'--glow-x': glowX,
}}
/>
)}
</motion.div>