'use client'; import { motion } from 'framer-motion'; import { ArrowUpRight, CheckCircle2 } from 'lucide-react'; import type { Service, CaseStudy } from '@/lib/constants/services'; const EASE_OUT = [0.22, 1, 0.36, 1] as const; const FEATURE_ICONS = ['⚡', '⏱', '👥', '🏆', '📈', '🛡']; function DetailHero({ service }: { service: Service }) { const firstBenefit = service.benefits?.[0] || '效率提升 40%'; return ( {service.title} {firstBenefit} {service.description} 12年 行业深耕 95%+ 准时交付 98% 客户续约 免费咨询 查看案例 ); } function OverviewSection({ service }: { service: Service }) { return ( 解决什么问题 {service.overview} {service.benefits?.slice(0, 4).map((benefit, i) => ( {benefit} ))} ); } function FeaturesSection({ service }: { service: Service }) { return ( 核心能力 每一项都经过 500+ 项目实战打磨 {service.features.map((feature, index) => { const [title, desc] = feature.split(':'); const icon = FEATURE_ICONS[index % FEATURE_ICONS.length]; return ( {icon} {desc ? title : feature.slice(0, 10)} {desc || feature} ); })} ); } function ProcessSection({ service }: { service: Service }) { if (!service.process || service.process.length === 0) return null; return ( 服务流程 标准化流程,确保每个项目可控、可预期 {service.process.slice(0, 5).map((step, index) => { const [title, desc] = step.split(':'); return ( {desc ? title : step.slice(0, 6)} {desc || step} ); })} ); } function CaseStudiesSection({ caseStudies = [] }: { caseStudies?: CaseStudy[] }) { if (caseStudies.length === 0) return null; return ( 真实案例,可衡量的成果 {caseStudies.slice(0, 4).map((cs, i) => ( {cs.industry} • {cs.client} {cs.challenge.slice(0, 30)} {cs.solution} 查看详情 ))} ); } function CTASection() { return ( 准备好开始了吗? 无论是一个明确的项目,还是一个模糊的想法,我们都愿意坐下来和您一起理清楚。 首次咨询免费,没有任何销售压力。 预约免费咨询 返回服务列表 ); } export default function ServiceDetailContentV4({ service }: { service: Service }) { return ( ); }
{service.overview}
每一项都经过 500+ 项目实战打磨
{desc || feature}
标准化流程,确保每个项目可控、可预期
{desc || step}
{cs.solution}
无论是一个明确的项目,还是一个模糊的想法,我们都愿意坐下来和您一起理清楚。 首次咨询免费,没有任何销售压力。