feat(marketing): 重构营销页面与四层叙事组件体系

- 重构 About、Contact、Team 等静态营销页面
- 重构 News 新闻列表与详情页
- 重构 Products 产品目录、详情与独立产品页面
- 重构 Services 与 Solutions 服务/解决方案页面
- 重构 Detail 四层叙事组件 (Hero → Value → Trust → CTA)
- 重构 Sections 页面区块组件 (Hero, CTA, SocialProof, WhyUs 等)
- 新增 SectionHeader、ServiceCard、CaseCard 等可复用组件
This commit is contained in:
张翔
2026-07-07 06:53:40 +08:00
parent 767931202d
commit 829d83522c
57 changed files with 3912 additions and 2380 deletions
+130
View File
@@ -0,0 +1,130 @@
'use client';
interface CaseImpact {
value: string;
label: string;
}
interface CaseCardProps {
/** Industry label (e.g. "制造业") */
industry: string;
/** Case title */
title: string;
/** Challenge the client faced (Bain-style) */
challenge: string;
/** Solution we provided (Bain-style) */
solution: string;
/** @deprecated Use challenge + solution instead */
context?: string;
/** Quantified impact metrics (2 items) */
impact: CaseImpact[];
/** Client quote */
quote: string;
/** Client name/title */
author: string;
/** Optional background image URL */
image?: string;
className?: string;
}
export function CaseCard({
industry,
title,
challenge,
solution,
context,
impact,
quote,
author,
image,
className = '',
}: CaseCardProps) {
const displayChallenge = challenge || context || '';
const displaySolution = solution || '';
return (
<div
className={`group relative overflow-hidden p-6 sm:p-8 md:p-10 lg:p-14 flex flex-col transition-all duration-500 bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] hover:bg-[var(--color-bg-secondary)] ${className}`}
>
{/* Background image */}
{image && (
<div className="absolute inset-0 transition-opacity duration-500 opacity-[0.02] group-hover:opacity-[0.05]">
<img
src={image}
alt=""
className="w-full h-full object-cover"
loading="lazy"
/>
</div>
)}
<div className="relative z-10 flex flex-col flex-1">
{/* Industry tag */}
<div
className="text-[10px] tracking-[3px] uppercase font-medium mb-4 md:mb-5"
style={{ color: 'var(--color-text-muted)' }}
>
{industry}
</div>
{/* Title */}
<h3 className="font-sans text-[19px] sm:text-[22px] font-bold leading-[1.3] tracking-[-0.3px] text-[var(--color-text-primary)] mb-5 md:mb-6">
{title}
</h3>
{/* Bain-style: Challenge + Solution */}
<div className="space-y-4 mb-6 md:mb-8 flex-1">
{/* Challenge */}
<div>
<div
className="text-[10px] tracking-[2px] uppercase font-semibold mb-2"
style={{ color: 'var(--color-brand)' }}
>
挑战
</div>
<p className="text-[13px] sm:text-[14px] leading-relaxed text-[var(--color-text-secondary)]">
{displayChallenge}
</p>
</div>
{/* Solution (only if provided) */}
{displaySolution && (
<div>
<div
className="text-[10px] tracking-[2px] uppercase font-semibold mb-2"
style={{ color: 'var(--color-brand)' }}
>
方案
</div>
<p className="text-[13px] sm:text-[14px] leading-relaxed text-[var(--color-text-secondary)]">
{displaySolution}
</p>
</div>
)}
</div>
{/* Impact numbers — Results (Bain-style, most visual weight) */}
<div className="grid grid-cols-2 gap-4 sm:gap-6 pt-5 md:pt-7 mb-5 md:mb-7 border-t border-[var(--color-border-primary)]">
{impact.map((item, i) => (
<div key={i} className="transition-transform duration-300 group-hover:scale-[1.02]">
<div className="font-sans tabular-nums text-[32px] sm:text-[38px] md:text-[42px] font-bold leading-none mb-1 md:mb-1.5 tracking-[-1.5px] text-[var(--color-text-primary)]">
{item.value}
</div>
<div className="text-[10px] sm:text-[11px] text-[var(--color-text-muted)]">
{item.label}
</div>
</div>
))}
</div>
{/* Quote */}
<blockquote className="text-[13px] leading-relaxed italic mb-2 md:mb-3 text-[var(--color-text-secondary)]">
&ldquo;{quote}&rdquo;
</blockquote>
<cite className="text-[11px] sm:text-[12px] not-italic text-[var(--color-text-muted)]">
{author}
</cite>
</div>
</div>
);
}
@@ -0,0 +1,493 @@
'use client';
import { motion, useScroll, useTransform } from 'framer-motion';
import { useRef, useState, useEffect } from 'react';
import { ScrollReveal, StaggerReveal } from '@/components/ui/scroll-reveal';
import { SectionHeader } from '@/components/sections/section-header';
import { ServiceCard } from '@/components/sections/service-card';
import { ScrollProgress } from '@/components/ui/scroll-progress';
import { useReducedMotion } from '@/hooks/use-reduced-motion';
import { ArrowRight, Quote, Building2, Target, Lightbulb, TrendingUp } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { AnimatedCounter } from '@/components/ui/animated-counter';
const EASE = [0.22, 1, 0.36, 1] as const;
export interface CaseDetailData {
id: string;
client: string;
industry: string;
title: string;
subtitle: string;
challenge: string;
solution: string;
result: string;
metrics: { value: string; label: string; highlight?: boolean }[];
timeline: { phase: string; duration: string; description: string }[];
services: { id: string; title: string; description: string }[];
testimonial?: { quote: string; author: string; role: string };
}
interface CaseDetailHeroProps {
data: CaseDetailData;
}
function CaseDetailHero({ data }: CaseDetailHeroProps) {
const shouldReduceMotion = useReducedMotion();
const heroRef = useRef<HTMLDivElement>(null);
const { scrollYProgress } = useScroll({
target: heroRef,
offset: ['start start', 'end start'],
});
const opacity = useTransform(scrollYProgress, [0, 0.6], [1, 0]);
const contentY = useTransform(scrollYProgress, [0, 1], [0, 50]);
return (
<section
ref={heroRef}
className="relative min-h-[85svh] flex items-center overflow-hidden pt-20"
style={{ background: 'var(--color-bg-primary)' }}
>
<motion.div
className="relative z-10 w-full max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16 py-20 md:py-28"
style={{ opacity, y: shouldReduceMotion ? 0 : contentY }}
>
<motion.div
className="flex flex-wrap items-center gap-3 mb-8"
initial={shouldReduceMotion ? {} : { opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6, ease: EASE }}
>
<span
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-[11px] font-medium tracking-wider uppercase"
style={{
backgroundColor: 'var(--color-brand-soft)',
color: 'var(--color-brand)',
}}
>
<Building2 className="w-3.5 h-3.5" />
{data.industry}
</span>
<span className="text-[12px]" style={{ color: 'var(--color-text-muted)' }}>
{data.client}
</span>
</motion.div>
{/* Bain-style: big result number first */}
<motion.div
className="mb-8"
initial={shouldReduceMotion ? {} : { opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.1, ease: EASE }}
>
<div
className="font-sans text-[clamp(56px,12vw,120px)] font-black leading-none tracking-[-2px] mb-2"
style={{ color: 'var(--color-brand)' }}
>
{data.metrics[0]?.value || '40%'}
</div>
<div
className="text-lg md:text-xl font-medium"
style={{ color: 'var(--color-text-secondary)' }}
>
{data.metrics[0]?.label || '核心成果提升'}
</div>
</motion.div>
<motion.h1
className="font-sans text-[clamp(28px,5vw,48px)] font-bold leading-[1.15] tracking-[-0.5px] text-[var(--color-text-primary)] mb-6 max-w-3xl"
initial={shouldReduceMotion ? {} : { opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.9, delay: 0.25, ease: EASE }}
>
{data.title}
</motion.h1>
<motion.p
className="text-base md:text-lg max-w-2xl leading-relaxed mb-10 font-light"
style={{ color: 'var(--color-text-secondary)' }}
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.4, ease: EASE }}
>
{data.subtitle}
</motion.p>
{/* Quick stats row */}
<motion.div
className="grid grid-cols-3 gap-6 sm:gap-10 max-w-lg mb-10"
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.55, ease: EASE }}
>
{data.metrics.slice(1, 4).map((m, i) => (
<div key={i}>
<div
className="font-sans tabular-nums text-[28px] sm:text-[32px] font-bold leading-none mb-1.5"
style={{ color: m.highlight ? 'var(--color-brand)' : 'var(--color-text-primary)' }}
>
{m.value}
</div>
<div className="text-[11px] sm:text-[12px]" style={{ color: 'var(--color-text-muted)' }}>
{m.label}
</div>
</div>
))}
</motion.div>
<motion.div
className="flex flex-wrap gap-4"
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, delay: 0.7, ease: EASE }}
>
<Button size="lg" asChild>
<a href="/contact">
咨询类似方案
<ArrowRight className="w-4 h-4 ml-2" />
</a>
</Button>
<Button size="lg" variant="outline" asChild>
<a href="#solution">查看方案</a>
</Button>
</motion.div>
</motion.div>
</section>
);
}
function ChallengeSection({ data }: { data: CaseDetailData }) {
return (
<section className="relative py-20 sm:py-28 md:py-36 lg:py-44" style={{ background: 'var(--color-bg-primary)' }}>
<div className="max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16">
<div className="grid lg:grid-cols-12 gap-12 lg:gap-16 items-start">
<ScrollReveal className="lg:col-span-5">
<SectionHeader
label="Challenge"
title="业务"
highlight="挑战"
desc="每个项目,都从一个真实的业务痛点出发"
/>
</ScrollReveal>
<ScrollReveal delay={0.1} className="lg:col-span-7">
<div
className="p-8 sm:p-10 lg:p-12"
style={{
backgroundColor: 'var(--color-bg-secondary)',
}}
>
<div className="flex items-center gap-3 mb-6">
<Target className="w-6 h-6" style={{ color: 'var(--color-brand)' }} />
<span
className="text-sm font-semibold tracking-wider uppercase"
style={{ color: 'var(--color-brand)' }}
>
面临的挑战
</span>
</div>
<p
className="text-lg md:text-xl leading-relaxed mb-6"
style={{ color: 'var(--color-text-primary)' }}
>
{data.challenge}
</p>
</div>
</ScrollReveal>
</div>
</div>
</section>
);
}
function SolutionSection({ data }: { data: CaseDetailData }) {
return (
<section
id="solution"
className="relative py-20 sm:py-28 md:py-36 lg:py-44 overflow-hidden"
style={{ background: 'var(--color-bg-secondary)' }}
>
<div className="max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16">
<ScrollReveal className="mb-16 sm:mb-20 max-w-2xl">
<SectionHeader
label="Solution"
title="我们的"
highlight="方案"
desc="针对性的解决方案,每一步都有明确的目标"
/>
</ScrollReveal>
<div className="grid lg:grid-cols-2 gap-0" style={{ border: '1px solid var(--color-border-primary)' }}>
<div style={{ backgroundColor: 'var(--color-bg-primary)' }}>
<div className="p-8 sm:p-10 lg:p-12">
<div className="flex items-center gap-3 mb-6">
<Lightbulb className="w-6 h-6" style={{ color: 'var(--color-brand)' }} />
<span
className="text-sm font-semibold tracking-wider uppercase"
style={{ color: 'var(--color-brand)' }}
>
核心思路
</span>
</div>
<p className="text-base md:text-lg leading-relaxed" style={{ color: 'var(--color-text-secondary)' }}>
{data.solution}
</p>
</div>
</div>
<div className="p-8 sm:p-10 lg:p-12" style={{ backgroundColor: 'var(--color-bg-primary)' }}>
<div className="flex items-center gap-3 mb-6">
<TrendingUp className="w-6 h-6" style={{ color: 'var(--color-brand)' }} />
<span
className="text-sm font-semibold tracking-wider uppercase"
style={{ color: 'var(--color-brand)' }}
>
实施路径
</span>
</div>
<div className="space-y-5">
{data.timeline.map((t, i) => (
<div key={i} className="flex gap-4">
<div
className="shrink-0 w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold"
style={{
backgroundColor: 'var(--color-brand-soft)',
color: 'var(--color-brand)',
}}
>
{i + 1}
</div>
<div>
<div className="flex items-center gap-3 mb-1">
<h4 className="text-[var(--color-text-primary)] font-semibold">{t.phase}</h4>
<span className="text-[11px] px-2 py-0.5 rounded" style={{ backgroundColor: 'var(--color-bg-tertiary)', color: 'var(--color-text-muted)' }}>
{t.duration}
</span>
</div>
<p className="text-sm leading-relaxed" style={{ color: 'var(--color-text-secondary)' }}>
{t.description}
</p>
</div>
</div>
))}
</div>
</div>
</div>
</div>
</section>
);
}
function ResultsSection({ data }: { data: CaseDetailData }) {
const resultsRef = useRef<HTMLDivElement>(null);
const [inView, setInView] = useState(false);
const shouldReduceMotion = useReducedMotion();
useEffect(() => {
if (!resultsRef.current) return;
const observer = new IntersectionObserver(
([entry]) => {
if (entry?.isIntersecting) {
setInView(true);
observer.disconnect();
}
},
{ threshold: 0.2 }
);
observer.observe(resultsRef.current);
return () => observer.disconnect();
}, []);
const parseValue = (val: string): { num: number; suffix: string; isNumeric: boolean } => {
const match = val.match(/^([\d.]+)(.*)$/);
if (match && match[1] && !isNaN(parseFloat(match[1]))) {
return { num: parseFloat(match[1]), suffix: match[2] || '', isNumeric: true };
}
return { num: 0, suffix: val, isNumeric: false };
};
return (
<section
ref={resultsRef}
className="relative py-20 sm:py-28 md:py-36 lg:py-44 overflow-hidden"
style={{ background: 'var(--color-brand)' }}
>
{/* Background decoration */}
<div className="absolute inset-0 pointer-events-none">
<div
className="absolute w-[600px] h-[600px] rounded-full opacity-[0.15] blur-[120px]"
style={{
background: 'radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%)',
top: '-30%',
right: '-10%',
}}
/>
<div
className="absolute w-[400px] h-[400px] rounded-full opacity-[0.1] blur-[100px]"
style={{
background: 'radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%)',
bottom: '-20%',
left: '10%',
}}
/>
</div>
<div className="max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16 relative z-10">
<ScrollReveal className="mb-16 sm:mb-20 text-center max-w-3xl mx-auto">
<div
className="text-[10px] tracking-[4px] uppercase font-medium mb-4"
style={{ color: 'rgba(255,255,255,0.6)' }}
>
Results
</div>
<h2 className="font-sans text-3xl sm:text-4xl md:text-5xl font-bold text-white tracking-tight leading-tight mb-6">
可量化的业务成果
</h2>
<p className="text-lg text-white/60 leading-relaxed max-w-2xl mx-auto">
{data.result}
</p>
</ScrollReveal>
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-px mb-16" style={{ backgroundColor: 'rgba(255,255,255,0.15)' }}>
{data.metrics.slice(0, 4).map((m, i) => {
const { num, suffix, isNumeric } = parseValue(m.value);
const decimals = String(num).includes('.') ? String(num).split('.')[1]?.length ?? 0 : 0;
return (
<div
key={i}
className="p-10 sm:p-12 text-center transition-all duration-500 hover:bg-white/[0.05] group relative overflow-hidden"
style={{ backgroundColor: 'var(--color-brand)' }}
>
{m.highlight && (
<div className="absolute top-4 right-4 px-2 py-1 text-[10px] font-bold text-brand bg-white rounded-full">
核心指标
</div>
)}
<div className="font-sans tabular-nums text-[clamp(40px,8vw,64px)] font-black leading-none mb-3 text-white transition-transform duration-500 group-hover:scale-110">
{isNumeric && inView && !shouldReduceMotion ? (
<AnimatedCounter
value={num}
decimals={decimals}
suffix={suffix}
startOnView={false}
duration={2000}
/>
) : (
<>
{isNumeric ? num : suffix}
{isNumeric && suffix && (
<span className="text-[0.5em] font-bold text-white/80 ml-0.5">{suffix}</span>
)}
</>
)}
</div>
<div className="text-sm md:text-base text-white/60 font-medium">
{m.label}
</div>
</div>
);
})}
</div>
{data.testimonial && (
<ScrollReveal delay={0.3}>
<div className="max-w-4xl mx-auto">
<div className="relative p-8 sm:p-10 lg:p-14 border border-white/20 bg-white/[0.03] backdrop-blur-sm">
<Quote className="w-12 h-12 absolute -top-6 left-8 text-white/20" />
<blockquote className="text-xl sm:text-2xl md:text-3xl font-medium leading-relaxed text-white mb-8">
&ldquo;{data.testimonial.quote}&rdquo;
</blockquote>
<div className="flex items-center gap-4">
<div className="w-12 h-12 rounded-full bg-white/10 flex items-center justify-center">
<Building2 className="w-5 h-5 text-white/60" />
</div>
<div>
<div className="font-semibold text-white text-lg">{data.testimonial.author}</div>
<div className="text-sm text-white/50">{data.testimonial.role}</div>
</div>
</div>
</div>
</div>
</ScrollReveal>
)}
</div>
</section>
);
}
function RelatedServicesSection({ services }: { services: CaseDetailData['services'] }) {
return (
<section className="relative py-20 sm:py-28 md:py-36 lg:py-44" style={{ background: 'var(--color-bg-primary)' }}>
<div className="max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16">
<ScrollReveal className="mb-16 sm:mb-20 max-w-2xl">
<SectionHeader
label="Related"
title="相关"
highlight="服务"
desc="类似的项目,我们还提供这些专业服务"
/>
</ScrollReveal>
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<StaggerReveal staggerDelay={0.08}>
{services.slice(0, 3).map((s, i) => (
<ServiceCard
key={s.id}
number={String(i + 1).padStart(2, '0')}
title={s.title}
description={s.description}
href={`/services/${s.id}`}
color="brand"
/>
))}
</StaggerReveal>
</div>
</div>
</section>
);
}
function CTASection() {
return (
<section className="relative py-20 sm:py-28 md:py-36 lg:py-44 overflow-hidden" style={{ background: 'var(--color-bg-secondary)' }}>
<div className="max-w-[800px] mx-auto px-5 sm:px-8 lg:px-16 text-center relative z-10">
<ScrollReveal>
<h2 className="font-sans text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-[var(--color-text-primary)] leading-tight tracking-tight mb-6">
您也想实现类似的
<span style={{ color: 'var(--color-brand)' }}> 业务突破</span>
?
</h2>
<p className="text-lg md:text-xl mb-10 font-light" style={{ color: 'var(--color-text-secondary)' }}>
免费咨询,48小时内给出初步方案建议
</p>
<div className="flex flex-col sm:flex-row justify-center gap-4">
<Button size="lg" asChild>
<a href="/contact">
免费咨询
<ArrowRight className="w-4 h-4 ml-2" />
</a>
</Button>
<Button size="lg" variant="outline" asChild>
<a href="/cases">查看更多案例</a>
</Button>
</div>
</ScrollReveal>
</div>
</section>
);
}
export default function CaseDetailPage({ data }: { data: CaseDetailData }) {
return (
<main className="min-h-screen">
<ScrollProgress />
<CaseDetailHero data={data} />
<ChallengeSection data={data} />
<SolutionSection data={data} />
<ResultsSection data={data} />
<RelatedServicesSection services={data.services} />
<CTASection />
</main>
);
}
@@ -49,7 +49,7 @@ export function ChallengeSection() {
<div className="h-px flex-1 bg-[var(--color-border-primary)]" />
</div>
<h2 className="text-3xl sm:text-4xl font-semibold text-[var(--color-text-primary)] text-center">
您的挑战,我们的<span className="text-[var(--color-brand-primary)] font-calligraphy">使命</span>
您的挑战,我们的<span className="text-[var(--color-brand)] font-calligraphy">使命</span>
</h2>
<p className="text-base text-[var(--color-text-muted)] text-center mt-4 max-w-xl mx-auto">
深入理解企业数字化进程中的核心痛点,提供针对性解决方案
+11 -64
View File
@@ -1,7 +1,7 @@
'use client';
import { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring, useTransform } from 'framer-motion';
import { useRef } from 'react';
import { motion } from 'framer-motion';
import { StaticLink } from '@/components/ui/static-link';
import { Button } from '@/components/ui/button';
import { BrandStamp } from '@/components/ui/brand-visuals';
@@ -27,66 +27,14 @@ export function CTASection({
}: CTASectionProps) {
const shouldReduceMotion = useReducedMotion();
const containerRef = useRef<HTMLDivElement>(null);
const mouseX = useMotionValue(0);
const mouseY = useMotionValue(0);
const [isHovered, setIsHovered] = useState(false);
const springX = useSpring(mouseX, { stiffness: 80, damping: 20 });
const springY = useSpring(mouseY, { stiffness: 80, damping: 20 });
const glowX = useTransform(springX, [0, 1], ['-10%', '110%']);
const glowY = useTransform(springY, [0, 1], ['-10%', '110%']);
function handleMouseMove(e: React.MouseEvent<HTMLDivElement>) {
if (!containerRef.current || shouldReduceMotion) {return;}
const rect = containerRef.current.getBoundingClientRect();
mouseX.set((e.clientX - rect.left) / rect.width);
mouseY.set((e.clientY - rect.top) / rect.height);
}
return (
<section
id="cta"
ref={containerRef}
onMouseMove={handleMouseMove}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
className="relative py-24 md:py-32 overflow-hidden"
style={{ backgroundColor: 'var(--color-cta-bg)' }}
style={{ backgroundColor: 'var(--color-bg-secondary)' }}
>
<div className="pointer-events-none absolute inset-0">
{!shouldReduceMotion && (
<motion.div
className="absolute inset-[-20%]"
style={{
background:
'radial-gradient(circle at center, rgba(196, 30, 58, 0.08) 0%, transparent 50%)',
x: glowX,
y: glowY,
opacity: isHovered ? 1 : 0.5,
}}
transition={{ opacity: { duration: 0.6 } }}
/>
)}
<div
className="absolute inset-0"
style={{
background:
'linear-gradient(to top, rgba(196, 30, 58, 0.06) 0%, transparent 40%), linear-gradient(135deg, transparent 40%, rgba(196, 30, 58, 0.03) 100%)',
}}
/>
<div
className="absolute inset-0 opacity-[0.03]"
style={{
backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")`,
backgroundRepeat: 'repeat',
backgroundSize: '128px 128px',
}}
/>
</div>
<div className="container-wide relative z-10">
<motion.div
initial={shouldReduceMotion ? {} : { opacity: 0, scale: 0.96, y: 16 }}
@@ -103,29 +51,29 @@ export function CTASection({
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.4, delay: 0.15 }}
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-white/5 border border-white/10 mb-8"
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-[var(--color-brand-soft)] border border-[var(--color-border-primary)] mb-8"
>
<Sparkles className="w-3.5 h-3.5 text-[var(--color-brand-primary)]" />
<span className="text-sm font-medium text-white/80">开始对话</span>
<Sparkles className="w-3.5 h-3.5 text-[var(--color-brand)]" />
<span className="text-sm font-medium text-[var(--color-text-primary)]">开始对话</span>
</motion.div>
<h2 className="text-4xl sm:text-5xl lg:text-6xl font-semibold text-white mb-6 tracking-tight leading-tight">
<h2 className="text-4xl sm:text-5xl lg:text-6xl font-semibold text-[var(--color-text-primary)] mb-6 tracking-tight leading-tight">
{title}
</h2>
<p className="text-lg md:text-xl text-white/65 leading-relaxed mb-10 max-w-2xl mx-auto">
<p className="text-lg md:text-xl text-[var(--color-text-secondary)] leading-relaxed mb-10 max-w-2xl mx-auto">
{description}
</p>
<div className="flex flex-wrap items-center justify-center gap-3 mb-10">
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/5 border border-white/10 text-white/60 text-xs">
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] text-xs">
<MessageCircle className="w-3.5 h-3.5" />
<span>免费咨询</span>
</div>
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/5 border border-white/10 text-white/60 text-xs">
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] text-xs">
<Clock className="w-3.5 h-3.5" />
<span>30 分钟内响应</span>
</div>
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/5 border border-white/10 text-white/60 text-xs">
<div className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] text-xs">
<ShieldCheck className="w-3.5 h-3.5" />
<span>无销售压力</span>
</div>
@@ -144,7 +92,6 @@ export function CTASection({
<Button
size="lg"
variant="outline"
className="border-white/20 text-white hover:bg-white/10 hover:border-white/35 backdrop-blur-sm"
asChild
>
<StaticLink href={secondaryHref}>{secondaryLabel}</StaticLink>
+14 -16
View File
@@ -61,18 +61,16 @@ export function HeroSectionV2() {
{...fadeUp(0)}
className="mb-6"
>
<span className="inline-flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 rounded-full bg-[var(--color-brand-primary-bg)] text-[var(--color-brand-primary)] text-xs sm:text-sm font-medium border border-[var(--color-brand-primary)]/10">
<span className="inline-flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 rounded-full bg-[var(--color-brand-bg)] text-[var(--color-brand)] text-xs sm:text-sm font-medium border border-[var(--color-brand)]/10">
{COMPANY_INFO.slogan}
</span>
</motion.div>
<motion.p
{...fadeUp(0.1)}
className="text-lg sm:text-xl lg:text-2xl text-[var(--color-text-primary)] mb-3"
className="text-lg sm:text-xl lg:text-2xl text-[var(--color-text-secondary)] mb-3 font-medium"
>
<span className="font-semibold text-[var(--color-brand-primary)] font-calligraphy">
企业数字化转型服务商
</span>
企业数字化转型服务商
</motion.p>
<motion.h1
@@ -95,7 +93,7 @@ export function HeroSectionV2() {
{...fadeUp(0.35)}
className="flex flex-col sm:flex-row items-start gap-4 mb-10"
>
<Button size="lg" asChild className="min-h-[52px] px-8 text-base font-semibold shadow-lg shadow-[var(--color-brand-primary)]/20">
<Button size="lg" asChild className="min-h-[52px] px-8 text-base font-semibold shadow-lg shadow-[var(--color-brand)]/20">
<StaticLink href="/contact">
免费获取定制方案
<ArrowRight className="w-4 h-4 ml-2" />
@@ -117,7 +115,7 @@ export function HeroSectionV2() {
className="relative ink-glow-border rounded-2xl lg:opacity-95"
style={
{
'--glow-start': 'var(--color-brand-primary)',
'--glow-start': 'var(--color-brand)',
'--glow-end': 'var(--color-warning)',
} as React.CSSProperties
}
@@ -129,13 +127,13 @@ export function HeroSectionV2() {
className="absolute inset-0 rounded-2xl pointer-events-none transition-opacity duration-500"
style={{
opacity: isCardHovered ? 1 : 0,
background: `radial-gradient(400px circle at ${mousePos.x}px ${mousePos.y}px, rgba(var(--color-brand-primary-rgb), 0.06), transparent 40%)`,
background: `radial-gradient(400px circle at ${mousePos.x}px ${mousePos.y}px, rgba(var(--color-brand-rgb), 0.06), transparent 40%)`,
}}
/>
<div className="relative rounded-2xl bg-[var(--color-bg-primary)]/80 backdrop-blur-sm p-6 sm:p-8 lg:p-10">
<div className="w-12 h-12 lg:w-14 lg:h-14 rounded-xl bg-[var(--color-brand-primary-bg)] flex items-center justify-center mb-5 lg:mb-6">
<Handshake className="w-5 h-5 lg:w-6 lg:h-6 text-[var(--color-brand-primary)]" strokeWidth={1.8} />
<div className="w-12 h-12 lg:w-14 lg:h-14 rounded-xl bg-[var(--color-brand-bg)] flex items-center justify-center mb-5 lg:mb-6">
<Handshake className="w-5 h-5 lg:w-6 lg:h-6 text-[var(--color-brand)]" strokeWidth={1.8} />
</div>
<h3 className="text-lg lg:text-xl font-semibold text-[var(--color-text-primary)] mb-2">
@@ -153,12 +151,12 @@ export function HeroSectionV2() {
key={step.label}
className="flex items-center gap-3 lg:gap-4 p-2.5 lg:p-3 rounded-lg bg-[var(--color-bg-section)]/60"
>
<div className="w-8 h-8 lg:w-9 lg:h-9 rounded-lg bg-[var(--color-brand-primary-bg)] flex items-center justify-center shrink-0">
<Icon className="w-3.5 h-3.5 lg:w-4 lg:h-4 text-[var(--color-brand-primary)]" strokeWidth={2.2} />
<div className="w-8 h-8 lg:w-9 lg:h-9 rounded-lg bg-[var(--color-brand-bg)] flex items-center justify-center shrink-0">
<Icon className="w-3.5 h-3.5 lg:w-4 lg:h-4 text-[var(--color-brand)]" strokeWidth={2.2} />
</div>
<div className="flex-1 min-w-0">
<div className="flex items-center gap-1.5 lg:gap-2">
<span className="text-[10px] lg:text-xs font-bold text-[var(--color-brand-primary)]">0{idx + 1}</span>
<span className="text-[10px] lg:text-xs font-bold text-[var(--color-brand)]">0{idx + 1}</span>
<span className="text-xs lg:text-sm font-medium text-[var(--color-text-primary)]">{step.label}</span>
</div>
<p className="text-[10px] lg:text-xs text-[var(--color-text-muted)] mt-0.5 hidden sm:block">{step.desc}</p>
@@ -178,13 +176,13 @@ export function HeroSectionV2() {
key={cap.label}
className="flex items-center gap-2 px-3 py-2 rounded-lg border transition-colors duration-200"
style={{
backgroundColor: idx === 0 ? 'var(--color-brand-primary-bg)' : idx === 1 ? 'rgba(var(--color-accent-blue-rgb), 0.06)' : idx === 2 ? 'rgba(var(--color-accent-purple-rgb), 0.06)' : 'rgba(var(--color-accent-cyan-rgb), 0.06)',
borderColor: idx === 0 ? 'rgba(var(--color-brand-primary-rgb), 0.15)' : 'var(--color-border-primary)',
backgroundColor: idx === 0 ? 'var(--color-brand-bg)' : idx === 1 ? 'rgba(var(--color-accent-blue-rgb), 0.06)' : idx === 2 ? 'rgba(var(--color-accent-purple-rgb), 0.06)' : 'rgba(var(--color-accent-cyan-rgb), 0.06)',
borderColor: idx === 0 ? 'rgba(var(--color-brand-rgb), 0.15)' : 'var(--color-border-primary)',
}}
>
<Icon
className="w-4 h-4"
style={{ color: idx === 0 ? 'var(--color-brand-primary)' : idx === 1 ? 'var(--color-accent-blue)' : idx === 2 ? 'var(--color-accent-purple)' : 'var(--color-accent-cyan)' }}
style={{ color: idx === 0 ? 'var(--color-brand)' : idx === 1 ? 'var(--color-accent-blue)' : idx === 2 ? 'var(--color-accent-purple)' : 'var(--color-accent-cyan)' }}
strokeWidth={2.2}
/>
<span className="text-xs font-medium text-[var(--color-text-primary)]">{cap.label}</span>
+24
View File
@@ -0,0 +1,24 @@
export { SectionHeader } from './section-header';
export { ServiceCard } from './service-card';
export { ServiceGrid } from './service-grid';
export { ProductCard as SectionProductCard } from './product-card';
export { ProductMatrixSection } from './product-matrix-section';
export { CaseCard } from './case-card';
export { default as CaseDetailPage } from './case-detail-page';
export { InsightCard } from './insight-card';
export { IndustryGrid } from './industry-grid';
export { StatsBar } from './stats-bar';
export { SocialProofSection } from './social-proof-section';
export { WhyUsSection } from './why-us-section';
export { ChallengeSection } from './challenge-section';
export { MethodologySection } from './methodology-section';
export { CTASection } from './cta-section';
export { HeroSectionV2 } from './hero-section-v2';
export { QuestionCard } from './question-card';
+46
View File
@@ -0,0 +1,46 @@
'use client';
import { type ElementType } from 'react';
interface IndustryItem {
icon: ElementType;
name: string;
count: string;
href?: string;
}
interface IndustryGridProps {
items: IndustryItem[];
className?: string;
}
export function IndustryGrid({ items, className = '' }: IndustryGridProps) {
return (
<div
className={`grid grid-cols-2 sm:grid-cols-4 gap-px rounded-sm overflow-hidden ${className}`}
style={{ background: 'var(--color-border-secondary)' }}
>
{items.map((item, i) => {
const Icon = item.icon;
return (
<div
key={i}
className="group relative overflow-hidden py-8 sm:py-10 px-4 sm:px-6 text-center cursor-pointer transition-all duration-400 bg-[var(--color-bg-primary)] hover:bg-[var(--color-bg-secondary)]"
role="button"
tabIndex={0}
>
<div className="relative z-10">
<Icon className="w-7 h-7 sm:w-8 sm:h-8 mx-auto mb-2 sm:mb-3 transition-transform duration-400 group-hover:scale-110 text-[var(--color-text-primary)] group-hover:text-[var(--color-brand)]" />
<div className="text-[13px] sm:text-[14px] font-medium transition-colors duration-400 text-[var(--color-text-primary)] group-hover:text-[var(--color-brand)]">
{item.name}
</div>
<div className="text-[10px] sm:text-[11px] mt-1 sm:mt-1.5 transition-colors duration-400 text-[var(--color-text-subtle)] group-hover:text-[var(--color-text-muted)]">
{item.count}
</div>
</div>
</div>
);
})}
</div>
);
}
+91
View File
@@ -0,0 +1,91 @@
'use client';
import { type ReactNode } from 'react';
import { ArrowUpRight } from 'lucide-react';
interface InsightCardProps {
/** Category tag (e.g. "白皮书", "观点") */
tag: string;
/** Title */
title: string;
/** Description */
desc: string;
/** Optional date string */
date?: string;
/** Whether this is a featured (large) card with image */
featured?: boolean;
/** Image URL for featured card */
image?: string;
/** Optional link element (avoid nesting <a> in <a>) */
link?: ReactNode;
className?: string;
}
export function InsightCard({
tag,
title,
desc,
date,
featured = false,
image,
link,
className = '',
}: InsightCardProps) {
if (featured) {
return (
<div
className={`group relative overflow-hidden flex flex-col justify-end min-h-[260px] sm:min-h-[300px] md:min-h-[360px] p-8 sm:p-10 md:p-12 lg:p-14 rounded-sm cursor-pointer bg-[var(--color-bg-secondary)] border border-[var(--color-border-primary)] hover:bg-[var(--color-bg-tertiary)] ${className}`}
>
{/* Background image */}
{image && (
<img
src={image}
alt=""
className="absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-105 opacity-10"
loading="lazy"
/>
)}
<div className="relative z-10">
<div className="text-[10px] tracking-[3px] uppercase font-medium mb-4 md:mb-5"
style={{ color: 'var(--color-brand)' }}>
{tag}
</div>
<h3 className="font-sans text-[20px] sm:text-[24px] md:text-[26px] font-bold leading-[1.3] text-[var(--color-text-primary)] mb-2 md:mb-3">
{title}
</h3>
<p className="text-[13px] sm:text-[14px] leading-relaxed max-w-[400px] mb-5 md:mb-6 text-[var(--color-text-secondary)]">
{desc}
</p>
<span className="text-[12px] inline-flex items-center gap-1.5 transition-colors duration-300 text-[var(--color-text-muted)] group-hover:text-[var(--color-brand)]">
阅读全文
<ArrowUpRight className="w-3 h-3" />
</span>
</div>
</div>
);
}
return (
<div
className={`group p-6 sm:p-8 md:p-10 transition-all duration-400 cursor-pointer flex flex-col bg-[var(--color-bg-primary)] hover:bg-[var(--color-bg-secondary)] ${className}`}
>
<div className="text-[10px] tracking-[2px] uppercase font-medium mb-3 md:mb-4"
style={{ color: 'var(--color-brand)' }}>
{tag}
</div>
<h4 className="font-sans text-[16px] sm:text-[17px] font-semibold leading-[1.5] mb-2 text-[var(--color-text-primary)]">
{title}
</h4>
<p className="text-[13px] leading-relaxed flex-1 mb-4 md:mb-5 text-[var(--color-text-muted)]">
{desc}
</p>
<div className="flex items-center justify-between">
{date && (
<span className="text-[11px] text-[var(--color-text-subtle)]">{date}</span>
)}
{link && <span className="text-[12px] text-[var(--color-text-subtle)]">{link}</span>}
</div>
</div>
);
}
@@ -23,7 +23,7 @@ export function MethodologySection() {
className="text-center max-w-3xl mx-auto mb-14"
>
<h2 id="methodology-heading" className="text-3xl sm:text-4xl font-semibold text-[var(--color-text-primary)] mb-4">
实施<span className="text-[var(--color-brand-primary)]">方法论</span>
实施<span className="text-[var(--color-brand)]">方法论</span>
</h2>
<p className="text-base text-[var(--color-text-muted)]">
经过多年实践验证的四阶段模型,确保每个项目都能科学推进、高效落地
@@ -45,13 +45,13 @@ export function MethodologySection() {
<div className="p-6 md:p-8">
<div
className="w-10 h-10 rounded-full flex items-center justify-center mb-5 text-sm font-bold"
style={{ backgroundColor: `rgba(var(--color-brand-primary-rgb), ${bgOpacity})`, color: 'var(--color-brand-primary)' }}
style={{ backgroundColor: `rgba(var(--color-brand-rgb), ${bgOpacity})`, color: 'var(--color-brand)' }}
>
{phase.number}
</div>
<h3 className="text-lg font-semibold text-[var(--color-text-primary)] mb-1">{phase.title}</h3>
<p className="text-xs text-[var(--color-brand-primary)] font-medium mb-3">{phase.subtitle}</p>
<p className="text-xs text-[var(--color-brand)] font-medium mb-3">{phase.subtitle}</p>
<p className="text-sm text-[var(--color-text-muted)] leading-relaxed mb-5">{phase.description}</p>
<div className="mb-4">
@@ -59,7 +59,7 @@ export function MethodologySection() {
<ul className="space-y-1.5">
{phase.activities.map((activity, i) => (
<li key={i} className="flex items-start gap-2 text-xs text-[var(--color-text-muted)]">
<CheckCircle2 className="w-3.5 h-3.5 text-[var(--color-brand-primary)] mt-0.5 shrink-0" />
<CheckCircle2 className="w-3.5 h-3.5 text-[var(--color-brand)] mt-0.5 shrink-0" />
{activity}
</li>
))}
@@ -71,7 +71,7 @@ export function MethodologySection() {
<ul className="space-y-1.5">
{phase.deliverables.map((deliverable, i) => (
<li key={i} className="flex items-start gap-2 text-xs text-[var(--color-text-subtle)]">
<span className="w-1.5 h-1.5 bg-[var(--color-brand-primary)]/40 rounded-full mt-1.5 shrink-0" />
<span className="w-1.5 h-1.5 bg-[var(--color-brand)]/40 rounded-full mt-1.5 shrink-0" />
{deliverable}
</li>
))}
+83
View File
@@ -0,0 +1,83 @@
'use client';
import { type ReactNode } from 'react';
import { StaticLink } from '@/components/ui/static-link';
import { ArrowRight } from 'lucide-react';
interface ProductCardProps {
/** Icon component to render */
icon: ReactNode;
/** Product name */
title: string;
/** One-line description */
description: string;
/** Link href */
href: string;
/** Optional badge label */
badge?: string;
className?: string;
}
export function ProductCard({
icon,
title,
description,
href,
badge,
className = '',
}: ProductCardProps) {
return (
<StaticLink
href={href}
className={`group relative block p-6 sm:p-8 lg:p-10 bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] rounded-sm transition-all duration-500 overflow-hidden ${className}`}
style={{ minHeight: '44px', minWidth: '44px' }}
>
{/* Left accent bar — visible on hover */}
<div
className="absolute left-0 top-0 bottom-0 w-[3px] bg-[var(--color-brand)] transition-transform duration-500 origin-top"
style={{ transform: 'scaleY(0)' }}
onMouseEnter={(e) => {
e.currentTarget.style.transform = 'scaleY(1)';
}}
/>
{/* Content */}
<div className="relative z-10">
{/* Icon */}
<div className="w-10 h-10 sm:w-12 sm:h-12 rounded-lg bg-[var(--color-brand-bg)] flex items-center justify-center mb-4 sm:mb-5 transition-transform duration-500 group-hover:scale-110">
{icon}
</div>
{/* Badge + Title */}
<div className="flex items-center gap-2 mb-2">
<h3 className="font-sans text-[17px] sm:text-[19px] font-semibold text-[var(--color-text-primary)]">
{title}
</h3>
{badge && (
<span className="text-[10px] tracking-[2px] uppercase px-2 py-0.5 rounded-full bg-[var(--color-brand-bg)] text-[var(--color-brand)] font-medium">
{badge}
</span>
)}
</div>
{/* Description */}
<p className="text-[13px] sm:text-[14px] text-[var(--color-text-muted)] leading-relaxed mb-4 sm:mb-5">
{description}
</p>
{/* CTA link */}
<span className="inline-flex items-center gap-1.5 text-[13px] font-medium text-[var(--color-text-primary)] transition-all duration-300 group-hover:text-[var(--color-brand)] group-hover:gap-2.5">
了解更多
<ArrowRight className="w-3.5 h-3.5 transition-transform duration-300 group-hover:translate-x-1" />
</span>
</div>
{/* Hover background lift */}
<div className="absolute inset-0 bg-[var(--color-bg-hover)] opacity-0 transition-opacity duration-500 pointer-events-none" />
<div
className="absolute inset-0 opacity-0 transition-opacity duration-500 pointer-events-none"
onMouseEnter={(e) => { e.currentTarget.style.opacity = '1'; }}
/>
</StaticLink>
);
}
@@ -25,12 +25,12 @@ export function ProductMatrixSection() {
产品矩阵
</h2>
<p className="text-base text-[var(--color-text-muted)] max-w-lg">
6 款自研产品覆盖企业数字化全场景,目前全部<span className="text-[var(--color-brand-primary)] font-medium">研发中</span>,欢迎提前了解规划
6 款自研产品覆盖企业数字化全场景,目前全部<span className="text-[var(--color-brand)] font-medium">研发中</span>,欢迎提前了解规划
</p>
</div>
<div className="flex items-center gap-2">
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-[var(--color-brand-primary-bg)] text-[var(--color-brand-primary)] text-xs font-medium border border-[var(--color-brand-primary)]/10">
<span className="w-1.5 h-1.5 rounded-full bg-[var(--color-brand-primary)] animate-pulse" />
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-[var(--color-brand-bg)] text-[var(--color-brand)] text-xs font-medium border border-[var(--color-brand)]/10">
<span className="w-1.5 h-1.5 rounded-full bg-[var(--color-brand)] animate-pulse" />
研发中 · 即将上线
</span>
<span className="text-sm text-[var(--color-text-subtle)] font-mono tracking-wider hidden md:block">
+58
View File
@@ -0,0 +1,58 @@
'use client';
import { StaticLink } from '@/components/ui/static-link';
import { ChevronRight } from 'lucide-react';
interface QuestionCardProps {
/** The strategic question */
question: string;
/** The answer/description */
description: string;
/** Link href */
href: string;
/** Link text (default "了解详情") */
linkText?: string;
className?: string;
}
export function QuestionCard({
question,
description,
href,
linkText = '了解详情',
className = '',
}: QuestionCardProps) {
return (
<div
className={`group md:grid md:grid-cols-2 border-b border-[var(--color-border-primary)] relative overflow-hidden ${className}`}
>
{/* Left accent bar — visible on hover */}
<div className="absolute left-0 top-0 bottom-0 w-[3px] hidden md:block transition-transform duration-500 origin-top bg-[var(--color-brand)]"
style={{ transform: 'scaleY(0)' }}
onMouseEnter={(e) => { e.currentTarget.style.transform = 'scaleY(1)'; }}
/>
{/* Question — left column */}
<div className="py-6 md:py-12 lg:py-16 md:pr-12 lg:pr-16 flex flex-col justify-center">
<h3 className="font-sans text-[18px] sm:text-[20px] md:text-[clamp(20px,3vw,28px)] font-bold leading-[1.35] tracking-[-0.3px] md:tracking-[-0.5px] text-[var(--color-text-primary)]">
{question}
</h3>
</div>
{/* Answer — right column */}
<div className="pb-6 md:py-12 lg:py-16 md:pl-12 lg:pl-16 md:border-l border-[var(--color-border-primary)] flex flex-col justify-center">
<p className="text-[14px] sm:text-[15px] leading-relaxed mb-5 md:mb-7 text-[var(--color-text-muted)]">
{description}
</p>
<StaticLink
href={href}
className="inline-flex items-center gap-2 text-[13px] font-medium text-[var(--color-text-primary)] transition-all duration-300 hover:text-[var(--color-brand)] group/link"
style={{ minHeight: '44px', minWidth: '44px' }}
>
{linkText}
<ChevronRight className="w-3.5 h-3.5 transition-transform duration-300 group-hover/link:translate-x-1" />
</StaticLink>
</div>
</div>
);
}
+100
View File
@@ -0,0 +1,100 @@
'use client';
import { motion } from 'framer-motion';
import { useReducedMotion } from '@/hooks/use-reduced-motion';
interface SectionHeaderProps {
/** English label shown above title (e.g. "What We Do") */
label: string;
/** Main title text */
title: string;
/** Optional highlighted part of the title (rendered in brand red) */
highlight?: string;
/** Optional description below the title */
desc?: string;
/** Whether this header is on a dark background */
light?: boolean;
className?: string;
}
const EASE = [0.22, 1, 0.36, 1] as const;
export function SectionHeader({
label,
title,
highlight,
desc,
light = false,
className = '',
}: SectionHeaderProps) {
const shouldReduceMotion = useReducedMotion();
return (
<motion.div
className={`mb-12 md:mb-16 lg:mb-20 ${className}`}
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.6, ease: EASE }}
>
{/* Eyebrow label with brand accent bar */}
<div className="flex items-center gap-3 mb-4 md:mb-5">
{/* Brand accent bar — grows from bottom on entry */}
<motion.div
className="w-1 rounded-full origin-bottom"
style={{
height: '1rem',
backgroundColor: light
? 'rgba(255,255,255,0.5)'
: 'var(--color-brand)',
}}
initial={shouldReduceMotion ? {} : { scaleY: 0 }}
whileInView={{ scaleY: 1 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.4, delay: 0.1, ease: EASE }}
/>
<motion.div
className="text-[10px] tracking-[4px] uppercase font-medium"
style={{
color: light
? 'rgba(255,255,255,0.5)'
: 'var(--color-brand)',
}}
initial={shouldReduceMotion ? {} : { opacity: 0, x: -8 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.4, delay: 0.2, ease: EASE }}
>
{label}
</motion.div>
</div>
{/* Title */}
<h2
className="font-sans text-[clamp(28px,6vw,52px)] font-bold leading-[1.1] tracking-[-1px] mb-4 md:mb-5"
style={{ color: light ? '#FFFFFF' : 'var(--color-text-primary)' }}
>
{title}
{highlight && (
<span style={{ color: 'var(--color-brand)' }}>
{highlight}
</span>
)}
</h2>
{/* Description */}
{desc && (
<p
className="text-[15px] leading-relaxed max-w-[480px]"
style={{
color: light
? 'rgba(255,255,255,0.5)'
: 'var(--color-text-muted)',
}}
>
{desc}
</p>
)}
</motion.div>
);
}
+98
View File
@@ -0,0 +1,98 @@
'use client';
import { motion } from 'framer-motion';
import { useReducedMotion } from '@/hooks/use-reduced-motion';
import Link from 'next/link';
import { ArrowRight } from 'lucide-react';
export type ServiceColor = 'brand' | 'blue' | 'teal' | 'amber' | 'purple';
interface ServiceCardProps {
number: string;
title: string;
description: string;
color?: ServiceColor;
href: string;
className?: string;
delay?: number;
}
const colorMap: Record<ServiceColor, string> = {
brand: 'var(--color-brand)',
blue: 'var(--color-accent-blue)',
teal: 'var(--color-accent-teal)',
amber: 'var(--color-accent-amber)',
purple: 'var(--color-accent-purple)',
};
export function ServiceCard({
number,
title,
description,
color = 'brand',
href,
className = '',
delay = 0,
}: ServiceCardProps) {
const shouldReduceMotion = useReducedMotion();
const accentColor = colorMap[color];
return (
<motion.div
className={`group relative bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] rounded-[var(--radius-lg)] overflow-hidden transition-all duration-[var(--transition-normal)] ease-[var(--ease-ink)] hover:-translate-y-1 hover:shadow-[var(--shadow-lg)] hover:border-[var(--color-brand)]/30 ${className}`}
initial={shouldReduceMotion ? {} : { opacity: 0, y: 24 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.6, delay, ease: [0.22, 1, 0.36, 1] }}
>
{/* Left accent bar — grows from bottom on entry */}
<motion.div
className="absolute left-0 top-0 bottom-0 w-[3px] origin-bottom transition-all duration-[var(--transition-normal)] group-hover:w-1.5"
style={{ backgroundColor: accentColor }}
initial={shouldReduceMotion ? {} : { scaleY: 0 }}
whileInView={{ scaleY: 1 }}
viewport={{ once: true, margin: '-40px' }}
transition={{ duration: 0.4, delay: delay - 0.1 > 0 ? delay - 0.1 : 0, ease: [0.22, 1, 0.36, 1] }}
/>
<div className="p-6 md:p-8 pl-6 md:pl-8">
{/* Large background number */}
<div
className="absolute top-4 right-6 text-[5rem] font-black leading-none select-none pointer-events-none transition-opacity duration-[var(--transition-normal)] group-hover:opacity-10"
style={{ color: 'var(--color-border-light)', opacity: 0.06 }}
aria-hidden="true"
>
{number}
</div>
{/* Number label */}
<div
className="text-xs font-bold tracking-[0.18em] uppercase mb-4"
style={{ color: accentColor }}
>
Service {number}
</div>
{/* Title */}
<h3 className="text-xl md:text-2xl font-bold mb-3 leading-tight text-[var(--color-text-primary)]">
{title}
</h3>
{/* Description */}
<p className="text-sm md:text-base leading-relaxed mb-6 text-[var(--color-text-secondary)]">
{description}
</p>
{/* Link */}
<Link
href={href}
className="inline-flex items-center text-sm font-medium transition-all duration-[var(--transition-fast)] group-hover:gap-2.5 text-[var(--color-brand)]"
style={{ minHeight: '44px', minWidth: '44px' }}
>
<span>了解详情</span>
<ArrowRight className="w-4 h-4 transform transition-transform duration-[var(--transition-fast)] group-hover:translate-x-1" />
</Link>
</div>
</motion.div>
);
}
+60
View File
@@ -0,0 +1,60 @@
'use client';
import { ServiceCard, type ServiceColor } from './service-card';
import { SectionHeader } from './section-header';
interface ServiceItem {
number: string;
title: string;
description: string;
color?: ServiceColor;
href: string;
}
interface ServiceGridProps {
label?: string;
title: string;
highlight?: string;
desc?: string;
items: ServiceItem[];
className?: string;
columns?: 2 | 3 | 4;
}
export function ServiceGrid({
label = '我们的服务',
title,
highlight,
desc,
items,
className = '',
columns = 3,
}: ServiceGridProps) {
const gridCols = {
2: 'md:grid-cols-2',
3: 'md:grid-cols-2 lg:grid-cols-3',
4: 'md:grid-cols-2 lg:grid-cols-4',
};
return (
<section className={`section-padding ${className}`}>
<div className="container-x">
<SectionHeader label={label} title={title} highlight={highlight} desc={desc} />
<div className={`grid grid-cols-1 ${gridCols[columns]} gap-6 md:gap-8`}>
{items.map((item, index) => (
<ServiceCard
key={item.number}
number={item.number}
title={item.title}
description={item.description}
color={item.color}
href={item.href}
delay={index * 0.1}
/>
))}
</div>
</div>
</section>
);
}
@@ -13,7 +13,7 @@ const METRICS = [
const TESTIMONIALS = [
{
quote: 'Novalon 团队不仅技术扎实,更重要的是真正理解我们的业务痛点,方案落地性很强。',
quote: '睿新致远团队不仅技术扎实,更重要的是真正理解我们的业务痛点,方案落地性很强。',
author: '某金融机构 数字化负责人',
role: '数字化转型项目',
},
@@ -31,7 +31,7 @@ export function SocialProofSection() {
<section id="social-proof" role="region" aria-labelledby="social-proof-heading" className="py-16 md:py-24 lg:py-28 relative overflow-hidden">
{/* Background accent */}
<div className="absolute inset-0 bg-[var(--color-bg-primary)]" aria-hidden="true" />
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[var(--color-brand-primary)]/10 to-transparent" aria-hidden="true" />
<div className="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[var(--color-brand)]/10 to-transparent" aria-hidden="true" />
<div className="absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-[var(--color-border-primary)] to-transparent" aria-hidden="true" />
<div className="container-wide relative z-10">
@@ -70,8 +70,8 @@ export function SocialProofSection() {
transition={{ duration: 0.5, delay: idx * 0.1, ease: [0.16, 1, 0.3, 1] }}
className="text-center group"
>
<div className="w-12 h-12 rounded-full bg-[var(--color-brand-primary)]/5 flex items-center justify-center mx-auto mb-4 group-hover:bg-[var(--color-brand-primary)]/10 transition-colors duration-300">
<Icon className="w-5 h-5 text-[var(--color-brand-primary)]" strokeWidth={1.5} />
<div className="w-12 h-12 rounded-full bg-[var(--color-brand)]/5 flex items-center justify-center mx-auto mb-4 group-hover:bg-[var(--color-brand)]/10 transition-colors duration-300">
<Icon className="w-5 h-5 text-[var(--color-brand)]" strokeWidth={1.5} />
</div>
<div className="text-4xl md:text-5xl font-bold text-[var(--color-text-primary)] tracking-tight mb-1">
{metric.value}
@@ -96,15 +96,15 @@ export function SocialProofSection() {
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: '-60px' }}
transition={{ duration: 0.5, delay: 0.2 + idx * 0.1, ease: [0.16, 1, 0.3, 1] }}
className="relative p-6 md:p-8 rounded-2xl bg-[var(--color-bg-section)] border border-[var(--color-border-primary)] hover:border-[rgba(var(--color-brand-primary-rgb),0.2)] transition-all duration-300"
className="relative p-6 md:p-8 rounded-2xl bg-[var(--color-bg-section)] border border-[var(--color-border-primary)] hover:border-[rgba(var(--color-brand-rgb),0.2)] transition-all duration-300"
>
<Quote className="w-8 h-8 text-[var(--color-brand-primary)]/15 mb-4" strokeWidth={1.5} />
<Quote className="w-8 h-8 text-[var(--color-brand)]/15 mb-4" strokeWidth={1.5} />
<blockquote className="text-[var(--color-text-secondary)] text-base leading-relaxed mb-6">
&ldquo;{t.quote}&rdquo;
</blockquote>
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-[var(--color-brand-primary)]/10 to-[var(--color-brand-primary)]/5 flex items-center justify-center">
<span className="text-sm font-semibold text-[var(--color-brand-primary)]">{t.author[0]}</span>
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-[var(--color-brand)]/10 to-[var(--color-brand)]/5 flex items-center justify-center">
<span className="text-sm font-semibold text-[var(--color-brand)]">{t.author[0]}</span>
</div>
<div>
<div className="text-sm font-medium text-[var(--color-text-primary)]">{t.author}</div>
+131
View File
@@ -0,0 +1,131 @@
'use client';
import { useState, useEffect, useRef } from 'react';
interface StatItem {
number: string;
unit: string;
label: string;
desc?: string;
}
interface StatsBarProps {
items: StatItem[];
/** Whether to show on dark background */
dark?: boolean;
className?: string;
}
function CountUpNumber({ end, startCounting }: { end: number; startCounting: boolean }) {
const [count, setCount] = useState(0);
const frameRef = useRef<number>(0);
useEffect(() => {
if (!startCounting) return;
const duration = 1800;
const startTime = performance.now();
const easeOutCubic = (t: number) => 1 - Math.pow(1 - t, 3);
const animate = (now: number) => {
const progress = Math.min((now - startTime) / duration, 1);
const eased = easeOutCubic(progress);
setCount(Math.floor(end * eased));
if (progress < 1) {
frameRef.current = requestAnimationFrame(animate);
} else {
setCount(end);
}
};
frameRef.current = requestAnimationFrame(animate);
return () => cancelAnimationFrame(frameRef.current);
}, [end, startCounting]);
return <>{count}</>;
}
export function StatsBar({ items, dark = false, className = '' }: StatsBarProps) {
const [inView, setInView] = useState(false);
const sectionRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const el = sectionRef.current;
if (!el) return;
const observer = new IntersectionObserver(
([entry]) => {
if (entry?.isIntersecting) {
setInView(true);
observer.disconnect();
}
},
{ threshold: 0.1 },
);
observer.observe(el);
return () => observer.disconnect();
}, []);
return (
<div
ref={sectionRef}
className={`grid grid-cols-2 md:grid-cols-3 lg:grid-cols-${items.length} gap-px rounded-sm overflow-hidden ${className}`}
style={{
background: dark ? 'rgba(255,255,255,0.04)' : 'var(--color-border-primary)',
}}
>
{items.map((item, i) => (
<div
key={i}
className="py-10 sm:py-12 md:py-14 px-4 sm:px-6 md:px-8 text-center transition-all duration-[var(--transition-normal)] ease-[var(--ease-ink)] hover:bg-[var(--color-bg-hover)] group"
style={{ background: dark ? 'var(--color-brand)' : 'var(--color-bg-primary)' }}
>
<div
className="font-sans tabular-nums text-[clamp(36px,8vw,64px)] font-bold leading-none mb-1 md:mb-2 tracking-[-0.02em] transition-all duration-[var(--transition-slow)] ease-[var(--ease-ink)] group-hover:scale-105"
style={{
color: dark ? '#FFFFFF' : 'var(--color-text-primary)',
transform: inView ? 'scale(1)' : 'scale(0.9)',
opacity: inView ? 1 : 0,
transitionDelay: `${i * 80}ms`,
}}
>
{inView ? (
<CountUpNumber end={parseInt(item.number)} startCounting={true} />
) : (
item.number
)}
<span
style={{
color: dark ? 'rgba(255,255,255,0.6)' : 'var(--color-brand)',
fontSize: '0.4em',
fontWeight: 700,
}}
>
{item.unit}
</span>
</div>
<div
className="text-[12px] sm:text-[13px] font-medium mb-3 md:mb-4 tracking-[0.08em] uppercase transition-all duration-[var(--transition-normal)]"
style={{
color: dark ? 'rgba(255,255,255,0.5)' : 'var(--color-text-muted)',
opacity: inView ? 1 : 0,
transform: inView ? 'translateY(0)' : 'translateY(8px)',
transitionDelay: `${i * 80 + 150}ms`,
}}
>
{item.label}
</div>
{item.desc && (
<div
className="text-[12px] sm:text-[13px] leading-relaxed transition-all duration-[var(--transition-normal)]"
style={{
color: dark ? 'rgba(255,255,255,0.35)' : 'var(--color-text-subtle)',
opacity: inView ? 1 : 0,
transform: inView ? 'translateY(0)' : 'translateY(6px)',
transitionDelay: `${i * 80 + 250}ms`,
}}
>
{item.desc}
</div>
)}
</div>
))}
</div>
);
}
+15 -15
View File
@@ -51,8 +51,8 @@ export function WhyUsSection() {
<section id="why-us" className="relative py-20 md:py-28 bg-[var(--color-bg-section)] bg-texture-dots overflow-hidden">
{/* Decorative large numbers background */}
<div className="absolute inset-0 overflow-hidden pointer-events-none" aria-hidden="true">
<span className="absolute -top-24 -left-12 text-[20rem] font-bold text-[var(--color-brand-primary)]/[0.02] leading-none select-none font-calligraphy">睿</span>
<span className="absolute -bottom-32 -right-8 text-[16rem] font-bold text-[var(--color-primary)]/[0.02] leading-none select-none">新</span>
<span className="absolute -top-24 -left-12 text-[20rem] font-bold text-[var(--color-brand)]/[0.02] leading-none select-none font-calligraphy">睿</span>
<span className="absolute -bottom-32 -right-8 text-[16rem] font-bold text-[var(--color-brand)]/[0.02] leading-none select-none">新</span>
</div>
<div className="container-wide relative z-10">
<motion.div
@@ -62,12 +62,12 @@ export function WhyUsSection() {
transition={{ duration: 0.5, ease: [0.16, 1, 0.3, 1] }}
className="mb-14"
>
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-[var(--color-brand-primary-bg)] border border-[var(--color-brand-primary)]/10 mb-4">
<span className="w-1.5 h-1.5 rounded-full bg-[var(--color-brand-primary)]" />
<span className="text-xs font-medium tracking-wider text-[var(--color-brand-primary)]">核心优势</span>
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-[var(--color-brand-bg)] border border-[var(--color-brand)]/10 mb-4">
<span className="w-1.5 h-1.5 rounded-full bg-[var(--color-brand)]" />
<span className="text-xs font-medium tracking-wider text-[var(--color-brand)]">核心优势</span>
</div>
<h2 className="text-3xl sm:text-4xl font-semibold text-[var(--color-text-primary)] mb-4">
为什么选择<span className="text-[var(--color-brand-primary)] font-calligraphy">我们</span>
为什么选择<span className="text-[var(--color-brand)] font-calligraphy">我们</span>
</h2>
<p className="text-base text-[var(--color-text-muted)]">
我们不是一家&ldquo;做完就跑&rdquo;的外包公司,而是愿意与您一起成长的数字化转型同行者
@@ -84,27 +84,27 @@ export function WhyUsSection() {
whileInView={{ opacity: 1, y: 0, scale: 1 }}
viewport={{ once: true, margin: '-60px' }}
transition={{ duration: 0.5, delay: idx * 0.08, ease: [0.16, 1, 0.3, 1] }}
className="relative group p-6 md:p-8 rounded-2xl bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] hover:border-[rgba(var(--color-brand-primary-rgb),0.25)] transition-all duration-300"
className="relative group p-6 md:p-8 rounded-2xl bg-[var(--color-bg-primary)] border border-[var(--color-border-primary)] hover:border-[rgba(var(--color-brand-rgb),0.25)] transition-all duration-300"
>
<div className="flex items-start justify-between mb-4">
<div
className="w-11 h-11 rounded-xl flex items-center justify-center"
style={{
backgroundColor: idx === 0 ? 'var(--color-brand-primary-bg)' :
backgroundColor: idx === 0 ? 'var(--color-brand-bg)' :
idx === 1 ? 'rgba(var(--color-accent-blue-rgb), 0.08)' :
idx === 2 ? 'rgba(var(--color-accent-purple-rgb), 0.08)' :
idx === 3 ? 'rgba(var(--color-accent-cyan-rgb), 0.08)' :
'var(--color-brand-primary-bg)',
'var(--color-brand-bg)',
}}
>
<Icon
className="w-5 h-5"
style={{
color: idx === 0 ? 'var(--color-brand-primary)' :
color: idx === 0 ? 'var(--color-brand)' :
idx === 1 ? 'var(--color-accent-blue)' :
idx === 2 ? 'var(--color-accent-purple)' :
idx === 3 ? 'var(--color-accent-cyan)' :
'var(--color-brand-primary)',
'var(--color-brand)',
}}
strokeWidth={1.8}
/>
@@ -113,11 +113,11 @@ export function WhyUsSection() {
<div
className="text-2xl font-bold leading-none"
style={{
color: idx === 0 ? 'var(--color-brand-primary)' :
color: idx === 0 ? 'var(--color-brand)' :
idx === 1 ? 'var(--color-accent-blue)' :
idx === 2 ? 'var(--color-accent-purple)' :
idx === 3 ? 'var(--color-accent-cyan)' :
'var(--color-brand-primary)',
'var(--color-brand)',
}}
>{pillar.stat}</div>
<div className="text-[10px] text-[var(--color-text-subtle)] mt-0.5">{pillar.statLabel}</div>
@@ -169,8 +169,8 @@ export function WhyUsSection() {
key={tech.name}
className="group flex flex-col items-center gap-1.5"
>
<div className="px-4 py-2 rounded-lg bg-[var(--color-bg-section)] border border-[var(--color-border-primary)] group-hover:border-[rgba(var(--color-brand-primary-rgb),0.2)] group-hover:bg-[var(--color-brand-primary-bg)]/30 transition-all duration-300">
<span className="text-sm font-mono font-medium text-[var(--color-text-subtle)] group-hover:text-[var(--color-brand-primary)] transition-colors duration-300 tracking-wider">
<div className="px-4 py-2 rounded-lg bg-[var(--color-bg-section)] border border-[var(--color-border-primary)] group-hover:border-[rgba(var(--color-brand-rgb),0.2)] group-hover:bg-[var(--color-brand-bg)]/30 transition-all duration-300">
<span className="text-sm font-mono font-medium text-[var(--color-text-subtle)] group-hover:text-[var(--color-brand)] transition-colors duration-300 tracking-wider">
{tech.abbr}
</span>
</div>