import React, { useState } from 'react' interface CTASectionProps { language?: 'zh' | 'en' } export const CTASection: React.FC = ({ language = 'zh' }) => { const [email, setEmail] = useState('') const [submitted, setSubmitted] = useState(false) const content = { zh: { title: '开启您的AI转型之旅', subtitle: '立即体验图灵环流的强大能力,30天免费试用,无需信用卡', formTitle: '预约演示', namePlaceholder: '您的姓名', emailPlaceholder: '工作邮箱', companyPlaceholder: '公司名称', submitButton: '预约演示', submittedMessage: '感谢您的提交!我们的团队将在24小时内与您联系。', features: [ '30天免费试用', '企业级安全保障', '专业技术支持', '定制化解决方案', '数据隐私保护', '全球部署支持', ], contactInfo: { title: '或直接联系我们', phone: '+86 21 1234 5678', email: 'sales@turingflow.ai', hours: '周一至周五 9:00-18:00', }, }, en: { title: 'Start Your AI Transformation Journey', subtitle: 'Experience the power of TuringFlow today with a 30-day free trial, no credit card required', formTitle: 'Book a Demo', namePlaceholder: 'Your Name', emailPlaceholder: 'Work Email', companyPlaceholder: 'Company Name', submitButton: 'Book Demo', submittedMessage: 'Thank you for your submission! Our team will contact you within 24 hours.', features: [ '30-Day Free Trial', 'Enterprise Security', 'Technical Support', 'Custom Solutions', 'Data Privacy', 'Global Deployment', ], contactInfo: { title: 'Or Contact Us Directly', phone: '+86 21 1234 5678', email: 'sales@turingflow.ai', hours: 'Mon-Fri 9:00-18:00', }, }, } const t = content[language] const handleSubmit = (e: React.FormEvent) => { e.preventDefault() // In a real application, you would send this to your backend console.log('Form submitted:', { email }) setSubmitted(true) setTimeout(() => { setSubmitted(false) setEmail('') }, 5000) } return (
{/* Left Side - Form */}

{t.title}

{t.subtitle}

{submitted ? (

提交成功!

{t.submittedMessage}

) : (
setEmail(e.target.value)} className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-brand-primary focus:border-transparent transition-all" placeholder={t.emailPlaceholder} aria-label={t.emailPlaceholder} />

提交即表示您同意我们的 隐私政策服务条款

)}
{/* Right Side - Features & Contact */}

为什么选择我们

{t.features.map((feature, index) => (
{feature}
))}

{t.contactInfo.title}

{t.contactInfo.phone}
{t.contactInfo.hours}
{t.contactInfo.email}
销售团队

快速响应:

) }