/** * PricingPlans.jsx — 月/年切换 + 三档套餐卡(React island)。 * 迁自原型 .price-toggle + .price-grid + site.js __setCycle。 * 铁律 10:CTA 为「获取激活码 / 免费下载」,不含任何支付表单;价格对齐 design/CLAUDE.md §7。 */ import { useState } from 'react'; import { Check } from 'lucide-react'; export default function PricingPlans({ data }) { const [cycle, setCycle] = useState('monthly'); const i = cycle === 'monthly' ? 0 : 1; return ( <>
{data.plans.map((p) => (
{p.highlight &&
{data.popular}
}
{p.name}
{p.price[i]} {data.permo}
{p.desc}
    {p.feats.map((f, fi) => (
  • {f}
  • ))}
))}
); }