"use client"; import { useState } from "react"; import { Check, Shield, Clock, Sparkles, ArrowRight } from "lucide-react"; const BRAND = { color: "#6366F1", colorLight: "#818CF8", colorRgb: "99,102,241" }; const PLANS = [ { id: "zhi_free", name: "Free", description: "个人学习入门", monthlyPrice: 0, yearlyPrice: 0, features: [ { text: "公开知识库访问", included: true }, { text: "基础课程试看", included: true }, { text: "社区讨论", included: true }, { text: "认证考试", included: false }, { text: "错题本", included: false }, { text: "优先更新", included: false }, ], cta: "免费使用", }, { id: "zhi_pro", name: "Pro", description: "专业进阶", monthlyPrice: 199, yearlyPrice: 1910, features: [ { text: "公开知识库访问", included: true }, { text: "全部课程解锁", included: true }, { text: "认证考试资格", included: true }, { text: "错题本与排行榜", included: true }, { text: "优先内容更新", included: true }, { text: "专属学习报告", included: true }, ], cta: "立即升级", popular: true, }, { id: "zhi_enterprise", name: "Enterprise", description: "团队培训", monthlyPrice: 599, yearlyPrice: 5750, features: [ { text: "Pro 全部功能", included: true }, { text: "定制课程体系", included: true }, { text: "多席位管理", included: true }, { text: "学习数据分析", included: true }, { text: "专属客户经理", included: true }, { text: "API 接口", included: true }, ], cta: "联系销售", }, ]; const FAQS = [ { q: "可以随时取消吗?", a: "可以。随时在账户设置中取消订阅,取消后当前周期结束前仍可正常使用。" }, { q: "免费版和Pro版有什么区别?", a: "免费版可以浏览公开知识库和试看基础课程。Pro版解锁全部课程、认证考试、错题本等高级功能。" }, { q: "支持发票吗?", a: "支持。支付成功后可在订单详情页申请增值税普通发票或专用发票。" }, { q: "企业版可以定制课程吗?", a: "可以。企业版支持根据您的行业需求定制专属课程体系,并提供多席位统一管理。" }, ]; export default function PricingPage() { const [isYearly, setIsYearly] = useState(false); const c = BRAND.color; const cRgb = BRAND.colorRgb; return (
{/* Header */}
简单透明的定价

选择适合您的学习计划

从免费入门到企业培训,邻知为不同阶段的学习者提供合适的方案

{/* Billing Toggle */}
{/* Plans Grid */}
{PLANS.map((plan) => { const price = isYearly ? plan.yearlyPrice : plan.monthlyPrice; const isFree = price === 0; return (
{plan.popular && (
最受欢迎
)}

{plan.name}

{plan.description}

{isFree ? "免费" : `¥${price}`} {!isFree && ( {isYearly ? "/年" : "/月"} )}
{!isFree && isYearly && (
相当于 ¥{Math.round(price / 12)}/月
)}
{plan.cta}
{plan.features.map((f, i) => (
{f.included ? ( ) : ( )} {f.text}
))}
); })}
{/* FAQ */}

常见问题

{FAQS.map((faq, i) => (

{faq.q}

{faq.a}

))}
{/* Trust */}
7天无理由退款
即时开通
随时可取消
); }