1import{r as c,j as e}from"./react-vendor-BxoUhqX6.js";import{b as f,u as j,a as b,E as y,y as h,C as N,k as v}from"./index-CR94Sc3y.js";import{A as w}from"./arrow-left-tmmVnOsc.js";import{C as P}from"./chevron-down-vJuovLQF.js";import{C}from"./chevron-up-BhPjtVsF.js";import{C as S}from"./circle-check-CtIO4ZQT.js";import{u as q}from"./usePageMeta-C94jjl0E.js";import{P as k}from"./PricingContent-C66bF2CD.js";import"./clsx-B-dksMZM.js";import"./i18n-vendor-Coo-X0AG.js";import"./check-DJEGI8P0.js";import"./external-link-BN1OQuTi.js";import"./imageCredits-B_TbiSbG.js";const E=["q1","q2","q3","q4","q5"],K=()=>{const{t:r}=f();q({title:r("pricing.title"),description:r("seo.pricingDescription")});const p=j(),[o,u]=c.useState(null),[l]=b(),i=l.get("success")==="true",x=l.get("canceled")==="true",d=l.get("session_id"),m=l.get("out_trade_no"),[g,t]=c.useState("idle"),a=y();return c.useEffect(()=>{!i||g!=="idle"||(d&&!a&&(t("syncing"),h("/mainserver/api/stripe/sync-session",{method:"POST",body:JSON.stringify({sessionId:d})}).then(s=>s.json()).then(s=>{s.success?(t("synced"),console.log("[PricingPage] Stripe session synced:",s.data)):(t("error"),console.warn("[PricingPage] Stripe sync failed:",s.error))}).catch(s=>{t("error"),console.error("[PricingPage] Stripe sync error:",s)})),m&&a&&(t("syncing"),h("/mainserver/api/alipay/sync-order",{method:"POST",body:JSON.stringify({outTradeNo:m})}).then(s=>s.json()).then(s=>{s.success?(t("synced"),console.log("[PricingPage] Alipay order synced:",s.data)):(t("error"),console.warn("[PricingPage] Alipay sync failed:",s.error))}).catch(s=>{t("error"),console.error("[PricingPage] Alipay sync error:",s)})))},[i,d,m,g,a]),c.useEffect(()=>{if(i||x){const s=setTimeout(()=>{window.history.replaceState({},"","/pricing")},8e3);return()=>clearTimeout(s)}},[i,x]),e.jsxs("div",{className:"min-h-screen pb-16",children:[i&&e.jsxs("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-50 bg-green-600 text-white px-6 py-3 rounded-xl shadow-lg flex items-center gap-3 animate-scale-in",children:[e.jsx(S,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:r("pricing.paymentSuccess")})]}),x&&e.jsxs("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-50 bg-gray-700 text-white px-6 py-3 rounded-xl shadow-lg flex items-center gap-3 animate-scale-in",children:[e.jsx(N,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:r("pricing.paymentCanceled")})]}),e.jsxs("div",{className:"max-w-5xl mx-auto px-6 pt-8 pb-2",children:[e.jsxs(v,{to:"/",className:"inline-flex items-center gap-2 text-gray-500 hover:text-gray-900 mb-6 transition-colors",children:[e.jsx(w,{className:"w-4 h-4"}),r("pricing.backToHome")]}),e.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:r("pricing.title")}),e.jsx("p",{className:"mt-1 text-sm text-gray-500 max-w-xl",children:r("pricing.subtitle")})]}),e.jsx("div",{className:"max-w-5xl mx-auto px-6 mt-6",children:e.jsx(k,{})}),a&&e.jsxs("div",{className:"max-w-4xl mx-auto px-6 mt-16",children:[e.jsx("h2",{className:"text-lg font-bold text-gray-800 text-center mb-6",children:"æå¡è¯´æ"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-blue-50 border border-blue-100 rounded-2xl p-5",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsx("h3",{className:"font-semibold text-blue-900",children:"ååæ§è´¨"})}),e.jsxs("p",{className:"text-sm text-blue-800 leading-relaxed",children:["æ¬å¹³å°éå®èææ°åååââ",e.jsx("strong",{children:"AI 积å"}),"å",e.jsx("strong",{children:"订é
æå¡"}),"ã 积åç¨äºè°ç¨å¹³å°ä¸ç AI 大模åè½åï¼ææ¬çæãå¾ååä½ãè§é¢åæãè¯é³åæçï¼ï¼
1订é
æå¡æä¾ææ/å¹´ç积åé
é¢åå¢å¼åè½ã"]}),e.jsx("p",{className:"text-xs text-blue-600 mt-2 font-medium",children:"ååç±»åï¼èææå¡ / 软件æå¡"})]}),e.jsxs("div",{className:"bg-green-50 border border-green-100 rounded-2xl p-5",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsx("h3",{className:"font-semibold text-green-900",children:"äº¤ä»æ¹å¼"})}),e.jsxs("p",{className:"text-sm text-green-800 leading-relaxed",children:["æ¯ä»æååï¼ç§¯å",e.jsx("strong",{children:"ç«å³å°è´¦"}),"ï¼æ éçå¾
ï¼å¯å¨è´¦æ·é¡µé¢å®æ¶æ¥çä½é¢ã 订é
æå¡æ¿æ´»åï¼æçåè½ç«å³çæã"]}),e.jsx("p",{className:"text-xs text-green-700 mt-2 bg-green-100 inline-block px-2 py-0.5 rounded-full font-medium",children:"仿¬¾æå â 积å/æçç«å³å°è´¦"})]}),e.jsxs("div",{className:"bg-purple-50 border border-purple-100 rounded-2xl p-5",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsx("h3",{className:"font-semibold text-purple-900",children:"使ç¨è¯´æ"})}),e.jsxs("ul",{className:"text-sm text-purple-800 space-y-1.5",children:[e.jsx("li",{children:"⢠积åæä½¿ç¨ç AI è½åæ¶èï¼ä¸åæ¨¡åæ¶èä¸å"}),e.jsx("li",{children:"⢠æªè®¢é
ç¨æ·æ¯æ¥èªå¨å·æ° 50 ç¹è¯ç¨ç§¯åï¼å½æ¥ææ"}),e.jsx("li",{children:"⢠è´ä¹°ç积åé¿æææï¼ä¸è®¾ä½¿ç¨æé"}),e.jsx("li",{children:"⢠订é
å¶ç§¯åæ¯æ/å¹´åèªå¨åæ¾"})]})]}),e.jsxs("div",{className:"bg-orange-50 border border-orange-100 rounded-2xl p-5",children:[e.jsx("div",{className:"flex items-center gap-2 mb-3",children:e.jsx("h3",{className:"font-semibold text-orange-900",children:"鿬¾æ¿ç"})}),e.jsx("p",{className:"text-sm text-orange-800 leading-relaxed",children:"èæååï¼ç§¯å/订é
ï¼ä¸ç»å
å¼ï¼å³å¼å§æä¾æå¡ã å¦å å¹³å°åå å¯¼è´æå¡ä¸å¯ç¨ï¼å¯ç³è¯·é款ï¼ç¨æ·ä¸ªäººåå ä¸äºé款ã"}),e.jsx("a",{href:"/refund",className:"text-xs text-orange-600 hover:text-orange-700 underline mt-2 inline-block font-medium",children:"æ¥ç宿´é款æ¿ç â"})]})]}),e.jsx("div",{className:"mt-4 bg-gray-50 border border-gray-200 rounded-2xl p-5",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-gray-700 mb-1",children:"ç»è¥ä¸»ä½"}),e.jsx("p",{className:"text-sm text-gray-600",children:"æå·å¤é¸£äºä¸ä¿¡æ¯ç§ææéå
¬å¸"}),e.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:["ICP 夿¡å·ï¼",e.jsx("a",{href:"https://beian.miit.gov.cn/",target:"_blank",rel:"noopener noreferrer",className:"hover:text-gray-600 underline",children:"æµICPå¤2026015769å·-1"})]})]}),e.jsxs("div",{className:"flex flex-col gap-1 text-sm text-gray-600",children:[e.jsx("p",{className:"font-semibold text-gray-700",children:"èç³»æ¹å¼"}),e.jsx("a",{href:`mailto:${p.supportEmail||"[email protected]"}`,className:"hover:text-indigo-600 transition-colors",children:p.supportEmail||"[email protected]"}),e.jsx("p",{className:"text-xs text-gray-400",children:"工使¥ 10:00â18:00ï¼å京æ¶é´ï¼"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("a",{href:"/terms",className:"text-xs text-gray-500 hover:text-gray-700 underline block mb-1",children:"æå¡æ¡æ¬¾"}),e.jsx("a",{href:"/privacy",className:"text-xs text-gray-500 hover:text-gray-700 underline block mb-1",children:"éç§æ¿ç"}),e.jsx("a",{href:"/refund",className:"text-xs text-gray-500 hover:text-gray-700 underline block",children:"鿬¾æ¿ç"})]})]})})]}),e.jsxs("div",{className:"max-w-2xl mx-auto px-6 mt-20",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 text-center mb-8",children:r("pricing.faq.title")}),e.jsx("div",{className:"space-y-3",children:E.map((s,n)=>e.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 overflow-hidden transition-all",children:[e.jsxs("button",{onClick:()=>u(o===n?null:n),className:"w-full flex items-center justify-between p-4 text-left hover:bg-gray-50 transition-colors",children:[e.jsx("span",{className:"font-medium text-gray-800",children:r(`pricing.faq.${s}`)}),o===n?e.jsx(C,{className:"w-4 h-4 text-gray-400"}):e.jsx(P,{className:"w-4 h-4 text-gray-400"})]}),o===n&&e.jsx("div",{className:"px-4 pb-4 text-sm text-gray-600 border-t border-gray-100 pt-3",children:r(a&&s==="q4"?"pricing.faq.a4cn":`pricing.faq.a${n+1}`)})]},n))})]}),!a&&e.jsx("div",{className:"max-w-2xl mx-auto px-6 mt-16 text-center",children:e.jsx("p",{className:"text-sm text-gray-400",children:r("pricing.footer")})})]})};export{K as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.