TuringToken/dist/assets/index-CQufQi67.js

91 lines
24 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{j as e}from"./semi-ui-fcB3D8nU.js";import{r,d as w,L as x}from"./react-core-C8o2IdY8.js";import{ax as S,ay as A,az as K,aA as T,aB as I,aC as L,aD as E,aE as N,aF as v,aG as z,aH as g,aI as b,aJ as f,aK as H}from"./index-DApEyau7.js";import{u}from"./i18n-DJWjvQyM.js";import"./tools-qobPTha0.js";import"./react-components-KaTRN41W.js";/**
* @license lucide-react v0.511.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],_=S("grid-3x3",O),j=["OpenAI 协议","Claude 协议","Gemini 协议","智能路由","统一计费","模型丰富","安全可靠","开箱即用"];function G(){const{t}=u(),[n,s]=r.useState(!1),i=r.useRef(null);r.useEffect(()=>{if(!n)return;const o=a=>{i.current&&!i.current.contains(a.target)&&s(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[n]);const c=localStorage.getItem("theme-mode")||"auto",d=r.useCallback(o=>{(o==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":o)==="dark"?(document.body.setAttribute("theme-mode","dark"),document.documentElement.classList.add("dark")):(document.body.removeAttribute("theme-mode"),document.documentElement.classList.remove("dark"))},[]),p=o=>{localStorage.setItem("theme-mode",o),d(o),s(!1)};r.useEffect(()=>{d(c);const o=window.matchMedia("(prefers-color-scheme: dark)"),a=()=>{const l=localStorage.getItem("theme-mode")||"auto";d(l)};return o.addEventListener("change",a),()=>o.removeEventListener("change",a)},[d]);const m={light:e.jsx(g,{size:16}),dark:e.jsx(b,{size:16}),auto:e.jsx(f,{size:16})};return e.jsxs("div",{className:"relative",ref:i,children:[e.jsx("button",{type:"button",onClick:()=>s(!n),className:"inline-flex items-center justify-center p-2 rounded-md text-white/60 hover:text-white hover:bg-white/10 transition-colors",children:m[c]||m.auto}),n&&e.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 min-w-[10rem] rounded-lg border border-white/10 bg-neutral-900 p-1 shadow-md",children:[{key:"light",icon:e.jsx(g,{size:16}),label:t("浅色模式")},{key:"dark",icon:e.jsx(b,{size:16}),label:t("深色模式")},{key:"auto",icon:e.jsx(f,{size:16}),label:t("自动模式")}].map(o=>e.jsxs("button",{type:"button",onClick:()=>p(o.key),className:`flex w-full items-center gap-2 rounded-md px-2.5 py-2 text-sm transition-colors ${c===o.key?"bg-white/10 text-white font-medium":"text-white/50 hover:bg-white/10 hover:text-white"}`,children:[o.icon,e.jsx("span",{children:o.label}),c===o.key&&e.jsx("span",{className:"ml-auto flex h-3.5 w-3.5 items-center justify-center",children:e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white"})})]},o.key))})]})}function R(){const{t,i18n:n}=u(),[s,i]=r.useState(!1),c=r.useRef(null);r.useEffect(()=>{if(!s)return;const o=a=>{c.current&&!c.current.contains(a.target)&&i(!1)};return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[s]);const d=(n.language||"").startsWith("zh")?"zh-CN":"en",p=o=>{n.changeLanguage(o),i(!1)},m={"zh-CN":"简体中文",en:"English"};return e.jsxs("div",{className:"relative",ref:c,children:[e.jsxs("button",{type:"button",onClick:()=>i(!s),className:"inline-flex items-center gap-1 rounded-md px-2 py-1.5 text-sm text-white/60 hover:text-white hover:bg-white/10 transition-colors",children:[e.jsx(H,{size:16}),e.jsx("span",{className:"hidden sm:inline text-xs",children:m[d]||d})]}),s&&e.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 min-w-[8rem] rounded-lg border border-white/10 bg-neutral-900 p-1 shadow-md",children:Object.entries(m).map(([o,a])=>e.jsxs("button",{type:"button",onClick:()=>p(o),className:`flex w-full items-center rounded-md px-2.5 py-1.5 text-sm transition-colors ${d===o?"bg-white/10 text-white font-medium":"text-white/50 hover:bg-white/10 hover:text-white"}`,children:[a,d===o&&e.jsx("span",{className:"ml-auto flex h-3.5 w-3.5 items-center justify-center",children:e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white"})})]},o))})]})}function M(){var o,a,l;const{t}=u(),[n]=r.useContext(A),[s]=r.useContext(K),[i,c]=r.useState(!1);w();const d=((o=s==null?void 0:s.status)==null?void 0:o.HeaderShowThemeToggle)!==!1,p=((a=s==null?void 0:s.status)==null?void 0:a.HeaderShowLanguageSelector)!==!1,m=r.useCallback(()=>{navigator.clipboard.writeText("https://tokendance.space"),c(!0),setTimeout(()=>c(!1),1500)},[]);return e.jsxs("section",{className:"relative bg-black text-white overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.04]",style:{backgroundImage:"radial-gradient(circle, white 1px, transparent 1px)",backgroundSize:"24px 24px"}}),e.jsx("div",{className:"fixed top-0 z-50 w-full border-b border-white/10 bg-black",children:e.jsxs("div",{className:"flex h-14 items-center px-4 lg:px-6 max-w-[1400px] mx-auto",children:[e.jsxs(x,{to:"/",className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx("img",{src:"/logo.jpg",alt:"logo",className:"w-7 h-7 rounded-full object-cover"}),e.jsx("span",{className:"font-heading text-lg font-bold tracking-tight text-white",children:"TuringToken"}),e.jsx("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded border border-white/20 text-white/40",children:"BETA"})]}),e.jsx("div",{className:"hidden md:block flex-1"}),e.jsx("nav",{className:"hidden md:flex items-center gap-0.5",children:[{key:"model",label:"模型",icon:e.jsx(T,{size:16}),to:"/pricing"},{key:"benchmark",label:"评测",icon:e.jsx(I,{size:16}),to:"/benchmarks"},{key:"docs",label:"文档",icon:e.jsx(L,{size:16}),to:"/docs"},{key:"console",label:"控制台",icon:e.jsx(_,{size:16}),to:"/console"}].map(h=>e.jsxs(x,{to:h.to,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-[14px] rounded-md transition-colors duration-150 text-white/60 hover:text-white",children:[h.icon,e.jsx("span",{className:"hidden sm:inline",children:t(h.label)})]},h.key))}),e.jsxs("div",{className:"flex items-center gap-1",children:[d&&e.jsx(G,{}),p&&e.jsx(R,{}),n.user?e.jsx(x,{to:"/console",className:"inline-flex items-center justify-center w-8 h-8 rounded-full hover:bg-white/20 border border-white/20 transition-colors duration-200 ml-2",title:n.user.display_name||n.user.username,children:e.jsx("span",{className:"w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold text-white",style:{backgroundColor:E(n.user.username)},children:(l=n.user.username)==null?void 0:l.charAt(0).toUpperCase()})}):e.jsx(x,{to:"/login",className:"inline-flex items-center bg-white text-black px-4 py-1.5 text-sm font-mono font-medium uppercase tracking-widest rounded hover:bg-transparent hover:text-white border border-white transition-colors duration-200 ml-2",children:t("登录")})]})]})}),e.jsxs("div",{className:"relative flex-1 grid md:grid-cols-2 gap-8 px-6 md:px-12 pt-[88px] pb-12 items-center max-w-[1400px] mx-auto w-full",style:{minHeight:"90vh"},children:[e.jsxs("div",{className:"home-fade-in",children:[e.jsx("p",{className:"font-mono text-sm text-white/30 mb-6 tracking-wide font-body",children:"// unified model API gateway"}),e.jsx("div",{className:"w-[60px] h-[4px] bg-white mb-6"}),e.jsxs("h1",{className:"font-heading text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-bold leading-[1.1] mb-6",children:[t("更快、更稳、更省"),e.jsx("br",{}),t("Token服务平台")]}),e.jsx("p",{className:"font-body text-white/50 text-base md:text-lg leading-relaxed mb-10",children:t("兼容 OpenAI / Claude / Gemini 等协议,覆盖文本、图像、视频、语音,智能路由,统一计费。")}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-3 sm:gap-4 font-body",children:[e.jsx(x,{to:"/console/token",className:"inline-flex items-center bg-white text-black px-6 py-3 text-sm font-mono font-medium uppercase tracking-widest hover:bg-transparent hover:text-white border border-white transition-colors duration-200",children:t("开始使用")}),e.jsxs(x,{to:"/pricing",className:"inline-flex items-center text-white/60 px-6 py-3 text-sm font-mono font-medium uppercase tracking-widest hover:text-white transition-colors duration-200",children:[t("查看价格")," →"]})]})]}),e.jsx("div",{className:"home-fade-in-delay-1 font-body",children:e.jsxs("div",{className:"bg-neutral-900 border border-white/10 rounded-none overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b border-white/10 bg-neutral-800/50",children:[e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx("span",{className:"w-3 h-3 rounded-full bg-red-500/60"}),e.jsx("span",{className:"w-3 h-3 rounded-full bg-yellow-500/60"}),e.jsx("span",{className:"w-3 h-3 rounded-full bg-green-500/60"})]}),e.jsx("span",{className:"font-mono text-[10px] text-white/20 tracking-wide",children:"terminal"}),e.jsx("button",{type:"button",onClick:m,className:"text-white/30 hover:text-white/70 transition-colors","aria-label":"Copy",children:i?e.jsx(N,{size:14}):e.jsx(v,{size:14})})]}),e.jsx("pre",{className:"p-5 text-sm font-mono leading-relaxed text-white/80 overflow-x-auto",children:e.jsx("code",{children:`curl https://api.turingtoken.ai/v1/chat/completions \\
-H "Authorization: Bearer $YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'`})})]})})]}),e.jsx("div",{className:"w-full overflow-hidden px-6 pb-2",children:e.jsxs("div",{className:"inline-flex whitespace-nowrap origin-left font-mono font-bold uppercase leading-[0.85] select-none tracking-tight",style:{fontSize:"clamp(4rem, 20vw, 12rem)",transform:"scaleX(1.04)"},children:[e.jsx("span",{className:"text-white",children:"Turing"}),e.jsx("span",{className:"text-white/30",style:{textShadow:"0 0 30px rgba(255,255,255,0.15), 4px 4px 12px rgba(0,0,0,0.5)"},children:"Token"})]})}),e.jsx("div",{className:"w-full border-t border-white/10 py-5 px-6 overflow-hidden",children:e.jsx("div",{className:"home-marquee flex gap-12 items-center",children:[...j,...j].map((h,C)=>e.jsx("span",{className:"font-mono text-sm text-white/40 whitespace-nowrap tracking-wider",children:h},C))})})]})}const P=[{titleKey:"多协议兼容",descKey:"原生支持 OpenAI、Claude、Gemini 文本协议,覆盖图像 / 视频 / 文本转语音生成。无需修改代码,切换 Base URL 即可接入。",code:'baseURL: "api.turingtoken.ai"'},{titleKey:"智能路由",descKey:"根据模型名称自动路由至对应供应商。一个入口,无需关心底层调度。",code:"route(model) → provider"},{titleKey:"统一计费",descKey:"跨供应商统一 Token 消耗统计与账单。告别多平台分别充值的混乱。",code:"billing.unified()"},{titleKey:"容错降级",descKey:"同一模型支持多供应商端点自动切换;单次请求可指定多个候选模型,逐级降级,保障服务持续可用。",code:"fallback: model[] → provider[]"},{titleKey:"模型丰富",descKey:"接入 MiniMax、通义千问、Kimi、智谱、DeepSeek 等国内头部模型。持续扩展中。",code:"models.list() → 80+"},{titleKey:"开箱即用",descKey:"一键登录,分钟级接入。兼容现有 SDK零迁移成本。",code:'import OpenAI from "openai"'}];function D(){const{t}=u();return e.jsx("section",{id:"features",className:"py-24 px-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsx("p",{className:"font-mono text-xs text-muted-foreground tracking-widest uppercase mb-3"}),e.jsx("h2",{className:"font-heading text-3xl font-bold md:text-4xl tracking-tight mb-16 text-foreground",children:t("为接入 AI 模型的开发者而造。")}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3",children:P.map((n,s)=>e.jsxs("div",{className:"group p-8 flex flex-col transition-all duration-200 hover:bg-foreground hover:text-background border-b sm:border-r border-border",children:[e.jsx("code",{className:"inline-block text-xs mb-4 font-mono border border-foreground/10 px-2 py-1 w-fit group-hover:border-background/30 group-hover:text-background transition-all duration-200",children:n.code}),e.jsx("h3",{className:"font-heading text-lg font-bold mb-2 text-foreground group-hover:text-background transition-all duration-200",children:t(n.titleKey)}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed group-hover:text-background/70 transition-all duration-200",children:t(n.descKey)})]},s))})]})})}const k=[{step:"01",titleKey:"注册账号",descKey:"通过邮箱一键注册,即刻开始使用。",link:"/register"},{step:"02",titleKey:"创建 API Key",descKey:"在控制台创建密钥,支持多 Key 管理与权限控制。",link:"/console/token"},{step:"03",titleKey:"发起请求",descKey:"使用你熟悉的 SDK 调用任意模型,完全兼容原生协议。",link:"/pricing"}];function U(){const{t}=u();return e.jsx("section",{id:"how-it-works",className:"border-y-4 border-border",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"px-6 md:px-12 pt-24 pb-12",children:[e.jsx("div",{className:"font-mono text-xs text-muted-foreground tracking-widest uppercase mb-3",children:"// how it works"}),e.jsx("h2",{className:"font-heading text-3xl font-bold md:text-4xl tracking-tight text-foreground",children:t("三步接入,分钟级上线")})]}),k.map((n,s)=>e.jsx(x,{to:n.link,className:`group block border-t border-border ${s===k.length-1?"border-b border-border":""} hover:bg-foreground transition-all duration-200`,children:e.jsxs("div",{className:"grid md:grid-cols-[120px_1fr_auto] gap-0 items-center",children:[e.jsx("div",{className:"px-6 md:px-12 py-8 md:border-r border-border group-hover:border-background/10 flex items-baseline transition-all duration-200",children:e.jsx("span",{className:"font-mono text-5xl md:text-6xl font-bold text-muted-foreground/30 group-hover:text-background leading-none transition-all duration-200",children:n.step})}),e.jsxs("div",{className:"px-6 md:px-12 py-8",children:[e.jsx("h3",{className:"font-mono text-lg font-bold uppercase tracking-wide mb-2 text-foreground group-hover:text-background transition-all duration-200",children:t(n.titleKey)}),e.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-background/50 transition-all duration-200",children:t(n.descKey)})]}),e.jsx("span",{className:"hidden md:block pr-8 font-mono text-xl text-muted-foreground/30 group-hover:text-background transition-all duration-200",children:"→"})]})},s))]})})}const B=["openai","claude","gemini"],$={openai:"OpenAI",claude:"Claude",gemini:"Gemini"},q=["curl","python","nodejs"],F={curl:"cURL",python:"Python",nodejs:"Node.js"},Q={openai:{curl:`curl https://api.turingtoken.ai/v1/chat/completions \\
-H "Authorization: Bearer $OPENAI_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'`,python:`from openai import OpenAI
client = OpenAI(
base_url="https://api.turingtoken.ai",
api_key="sk-your-key"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)`,nodejs:`import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.turingtoken.ai",
apiKey: "sk-your-key",
});
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);`},claude:{curl:`curl https://api.turingtoken.ai/v1/messages \\
-H "x-api-key: sk-your-key" \\
-H "anthropic-version: 2023-06-01" \\
-H "Content-Type: application/json" \\
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'`,python:`import anthropic
client = anthropic.Anthropic(
base_url="https://api.turingtoken.ai",
api_key="sk-your-key"
)
response = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.content[0].text)`,nodejs:`import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.turingtoken.ai",
apiKey: "sk-your-key",
});
const response = await client.messages.create({
model: "claude-sonnet-4-20250514",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.content[0].text);`},gemini:{curl:`curl "https://api.turingtoken.ai/v1beta/models/gemini-2.0-flash:generateContent?key=sk-your-key" \\
-H "Content-Type: application/json" \\
-d '{
"contents": [{"parts":[{"text": "Hello!"}]}]
}'`,python:`import google.generativeai as genai
genai.configure(api_key="sk-your-key")
model = genai.GenerativeModel("gemini-2.0-flash")
response = model.generate_content("Hello!")
print(response.text)`,nodejs:`import { GoogleGenerativeAI } from "@google/generative-ai";
const genAI = new GoogleGenerativeAI("sk-your-key");
const model = genAI.getGenerativeModel({
model: "gemini-2.0-flash",
});
const result = await model.generateContent("Hello!");
console.log(result.response.text());`}};function V(){var a;const{t}=u(),[n,s]=r.useState("openai"),[i,c]=r.useState("curl"),[d,p]=r.useState(!1),m=((a=Q[n])==null?void 0:a[i])||"",o=r.useCallback(()=>{navigator.clipboard.writeText(m),p(!0),setTimeout(()=>p(!1),1500)},[m]);return e.jsx("section",{id:"quick-start",className:"px-6 py-16",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("p",{className:"font-mono text-xs text-muted-foreground tracking-widest uppercase mb-2",children:"Quick Start"}),e.jsx("h2",{className:"font-heading text-2xl font-bold mb-8 text-foreground",children:t("快速开始")}),e.jsx("div",{className:"flex gap-0 mb-0",children:B.map(l=>e.jsx("button",{type:"button",onClick:()=>s(l),className:`font-mono text-sm px-4 py-2 transition-all duration-200 ${n===l?"bg-foreground text-background":"border-2 border-border bg-transparent hover:bg-foreground hover:text-background"}`,children:$[l]},l))}),e.jsxs("div",{className:"border-2 border-border",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-b-2 border-border bg-muted",children:[e.jsx("div",{className:"flex gap-3",children:q.map(l=>e.jsx("button",{type:"button",onClick:()=>c(l),className:`font-mono text-xs transition-colors ${i===l?"text-foreground font-bold border-b-2 border-foreground":"text-muted-foreground hover:text-foreground"}`,children:F[l]},l))}),e.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground transition-colors",title:"Copy",children:d?e.jsx(N,{size:16,className:"text-green-600"}):e.jsx(v,{size:16})})]}),e.jsx("div",{className:"bg-foreground text-background",children:e.jsx("pre",{className:"p-5 text-sm leading-relaxed overflow-x-auto font-mono",children:e.jsx("code",{children:m})})})]}),e.jsxs(x,{to:"/pricing",className:"group mt-6 flex items-center justify-between border-2 border-border p-5 hover:bg-foreground transition-all duration-200",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-mono text-xs text-muted-foreground group-hover:text-background/50 tracking-widest uppercase mb-1 transition-all duration-200",children:"Model Pricing"}),e.jsx("p",{className:"font-heading text-lg font-bold text-foreground group-hover:text-background transition-all duration-200",children:t("查看模型定价,了解完整列表")})]}),e.jsx("span",{className:"font-mono text-2xl text-foreground group-hover:text-background transition-all duration-200",children:"→"})]})]})})}function Y(){const{t}=u();return e.jsx("section",{id:"pricing",className:"py-24 px-6",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"text-xs font-mono text-muted-foreground mb-3 tracking-widest uppercase",children:"// pricing"}),e.jsx("h2",{className:"font-heading text-3xl font-bold md:text-4xl tracking-tight mb-16 text-foreground",children:t("获取 Token 额度")}),e.jsxs("div",{className:"bg-foreground text-background px-8 py-5 mb-6 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"shrink-0 border border-background/30 px-2.5 py-0.5 text-xs font-mono tracking-widest uppercase",children:t("今日特惠")}),e.jsx("span",{className:"font-heading text-lg font-bold",children:t("注册即送 ¥10 额度")})]}),e.jsx("span",{className:"text-sm text-background/50",children:t("新用户注册即赠 ¥10 Token7 天有效期")})]}),e.jsxs(x,{to:"/register",className:"group block border-2 border-border p-8 mb-6 hover:bg-foreground transition-all duration-200",children:[e.jsx("h3",{className:"font-heading text-2xl font-bold mb-3 text-foreground group-hover:text-background transition-all duration-200",children:t("立即注册,开始使用")}),e.jsx("p",{className:"text-sm text-muted-foreground group-hover:text-background/60 leading-relaxed mb-6 transition-all duration-200",children:t("兼容 OpenAI / Claude / Gemini 协议。一个 API Key调用所有主流模型。免去多平台充值与管理的麻烦。")}),e.jsxs("span",{className:"inline-flex items-center bg-foreground text-background border-2 border-foreground px-6 py-3 text-sm font-mono font-bold uppercase tracking-widest group-hover:bg-background group-hover:text-foreground transition-colors duration-200",children:[t("免费注册")," →"]})]})]})})}const y=[{name:"OpenAI",className:"opacity-60"},{name:"Claude",className:"opacity-60"},{name:"Gemini",className:"opacity-60"},{name:"DeepSeek",className:"opacity-60"},{name:"Qwen",className:"opacity-60"},{name:"MiniMax",className:"opacity-60"},{name:"Kimi",className:"opacity-60"},{name:"智谱",className:"opacity-60"},{name:"Groq",className:"opacity-60"},{name:"Azure",className:"opacity-60"}];function W(){const{t}=u(),n=w();return e.jsxs("section",{className:"bg-foreground text-background border-t-4 border-background",children:[e.jsx("div",{className:"w-full py-16 px-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto text-center",children:[e.jsx("p",{className:"font-mono text-xs text-background/30 tracking-widest uppercase mb-3",children:"// supported providers"}),e.jsx("h2",{className:"font-heading text-2xl font-bold mb-8",children:t("40+ AI 供应商,统一接入")}),e.jsx("div",{className:"overflow-hidden",children:e.jsx("div",{className:"home-marquee flex gap-16 items-center",children:[...y,...y].map((s,i)=>e.jsx("span",{className:"font-mono text-sm text-background/40 whitespace-nowrap tracking-wider",children:s.name},i))})}),e.jsx("div",{className:"mt-10",children:e.jsxs("button",{type:"button",onClick:()=>n("/pricing"),className:"inline-flex items-center bg-background text-foreground border-2 border-background px-8 py-3 text-sm font-mono font-bold uppercase tracking-widest hover:bg-transparent hover:text-background transition-colors duration-200",children:[t("查看全部模型")," →"]})})]})}),e.jsx("div",{className:"text-center pt-6 pb-8",children:e.jsx("p",{className:"font-mono text-xs text-background/30 tracking-wide",children:t("免费注册,分钟级接入。兼容你现有的 SDK 和工作流。")})})]})}function X(){const{t}=u();return e.jsx("footer",{className:"bg-foreground text-background border-t border-background/10 py-12 px-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto",children:[e.jsx("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6 mb-8",children:e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx(x,{to:"/pricing",className:"font-mono text-xs text-background/40 hover:text-background transition-all duration-200",children:t("定价")}),e.jsx(x,{to:"/console",className:"font-mono text-xs text-background/40 hover:text-background transition-all duration-200",children:t("控制台")})]})}),e.jsx("div",{className:"border-t border-background/10 pt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:e.jsxs("span",{className:"font-mono text-xs text-background/30",children:["© 2026 ",z()]})})]})})}const se=()=>{const{t}=u();return e.jsx("div",{className:"min-h-screen bg-background text-foreground",children:e.jsxs("div",{className:"home-page",children:[e.jsx(M,{}),e.jsx(D,{}),e.jsx(U,{}),e.jsx(V,{}),e.jsx(Y,{}),e.jsx(W,{}),e.jsx(X,{})]})})};export{se as default};