import React, { useState } from 'react'; import { ChevronLeft, Check, Crown, Zap, Star, Shield, Smartphone, Infinity } from 'lucide-react'; interface SubscriptionProps { onBack: () => void; } const PLANS = [ { id: 'month', name: '月度协议', price: '¥28', period: '/月', desc: '灵便之选,随时取消', isPopular: false }, { id: 'year', name: '年度神经连接', price: '¥298', period: '/年', desc: '节省 20%,尊享全年', originalPrice: '¥336', isPopular: true }, ]; const PRIVILEGES = [ { icon: Infinity, title: '剧本库无限畅玩', desc: '解锁全部付费/限定剧本' }, { icon: Zap, title: '高频信号通道', desc: '解锁 Extreme 级震动强度' }, { icon: Smartphone, title: '多设备同步', desc: '支持多台 Link-X 设备同时控制' }, { icon: Star, title: 'AI 专属人格', desc: '解锁隐藏性格与深度记忆模式' }, { icon: Crown, title: '尊贵身份标识', desc: '专属头像框与社区徽章' }, { icon: Shield, title: '隐私加密通道', desc: '端对端加密,无痕浏览' }, ]; const Subscription: React.FC = ({ onBack }) => { const [selectedPlan, setSelectedPlan] = useState('year'); const [isProcessing, setIsProcessing] = useState(false); const handleSubscribe = () => { setIsProcessing(true); setTimeout(() => { setIsProcessing(false); alert('订阅成功!欢迎加入神经连接计划。'); onBack(); }, 1500); }; return (
{/* Header */}

订阅管理

{/* Hero Section */}
{/* Gold Glow */}

升级至 Wei AI Pro

解锁全部感官限制,获得更加深度的沉浸式体验。

{/* Plan Selection */}
{PLANS.map((plan) => { const isSelected = selectedPlan === plan.id; return (
setSelectedPlan(plan.id)} className={`relative p-0.5 rounded-2xl transition-all duration-300 active:scale-[0.99] ${ isSelected ? 'bg-gradient-to-r from-[#F59E0B] to-[#FCD34D] shadow-[0_0_20px_rgba(245,158,11,0.15)]' : 'bg-white/10' }`} >
{isSelected && }

{plan.name}

{plan.isPopular && ( 超值推荐 )}

{plan.desc}

{plan.originalPrice && ( {plan.originalPrice} )}
{plan.price} {plan.period}
); })}
{/* Privileges Grid */}

会员特权

{PRIVILEGES.map((item, idx) => (

{item.title}

{item.desc}

))}
{/* Terms */}

订阅将自动续费。取消需在当前周期结束前24小时内操作。

点击下方按钮即代表同意《会员服务协议》

{/* Bottom Action Bar */}
); }; export default Subscription;