'use client'; import { useState, useMemo } from 'react'; import { motion } from 'framer-motion'; import { CTAButton } from '@/components/ui/cta-button'; import { Building2, ArrowUpRight, Target, Lightbulb, Filter } from 'lucide-react'; import { type CaseStudy, } from '@/lib/constants/cases'; import { cn } from '@/lib/utils'; const EASE_OUT = [0.22, 1, 0.36, 1] as const; const PAGE_METRICS = [ { value: '首批', label: '客户共创', sub: '案例持续积累中' }, { value: '10+', label: '人核心团队', sub: '复合型技术团队' }, { value: '100%', label: '结果导向', sub: '以业务改善为衡量标准' }, { value: '6大', label: '行业场景', sub: '制造零售医疗等' }, ]; function CaseCard({ caseItem, index }: { caseItem: CaseStudy; index: number }) { return (
{caseItem.industry} {caseItem.companySize}

{caseItem.title}

挑战

{caseItem.challenge}

方案

{caseItem.solution}

{caseItem.metrics.slice(0, 2).map((m, i) => (
{m.value}
{m.label}
))}
{caseItem.client}
查看详情
); } export default function CasesContentV3({ cases: casesProp, industries: industriesProp, pageCopy, }: { cases?: CaseStudy[]; industries?: { id: string; label: string }[]; pageCopy?: Record | null; }) { const [selectedIndustry, setSelectedIndustry] = useState('all'); const industries = industriesProp ?? []; const heroTitle1 = (pageCopy?.casePageHeroTitle1 as string) || '每一个项目,'; const heroTitle2 = (pageCopy?.casePageHeroTitle2 as string) || '都以成果为目标'; const heroDescription = (pageCopy?.casePageHeroDescription as string) || '我们正在与首批客户共同创造价值故事。\n从挑战到方案,从过程到成果——用数据说话,用结果证明。'; const heroDescriptionLines = heroDescription.split('\n'); const filterTitle = (pageCopy?.casePageFilterTitle as string) || '全部案例'; const filterDescription = (pageCopy?.casePageFilterDescription as string) || '按行业筛选,找到与您业务最相关的成功故事'; const filteredCases = useMemo(() => { const allCases = casesProp ?? []; if (selectedIndustry === 'all') return allCases; return allCases.filter(c => c.industry === selectedIndustry); }, [selectedIndustry, casesProp]); return (
{/* Hero Section */}
Case Studies
{heroTitle1}
{heroTitle2}
{heroDescriptionLines.map((line, i) => ( {i > 0 &&
} {line}
))}
首批客户共创中 10+ 人核心团队 6 大行业场景 100% 结果导向
{/* Metrics Strip */}
{PAGE_METRICS.map((metric, i) => (
{metric.value}
{metric.label}
{metric.sub}
))}
{/* Cases List Section */}
All Cases

{filterTitle}

{filterDescription}

{industries.map((industry) => ( ))}
{filteredCases.length > 0 ? (
{filteredCases.map((caseItem, i) => ( ))}
) : (

暂无该行业的案例

)}
{/* CTA Section */}

您的成功故事,
从这里开始

无论您处于数字化转型的哪个阶段,我们都有相应的经验和能力帮助您。
让我们聊聊您的挑战,看看能创造什么样的成果。

预约咨询 了解服务
); }