const { motion } = window.Motion; const { useEffect, useRef, useState } = React; const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches; const reveal = (delay) => prefersReducedMotion ? { initial: false, whileInView: { filter: "blur(0px)", opacity: 1, y: 0 }, viewport: { once: true, amount: 0.1 }, transition: { duration: 0 }, } : { initial: { filter: "blur(10px)", opacity: 0, y: 20 }, whileInView: { filter: "blur(0px)", opacity: 1, y: 0 }, viewport: { once: true, amount: 0.1 }, transition: { duration: 0.7, ease: "easeOut", delay }, }; const navItems = [ ["首页", "#home"], ["航程", "#capabilities"], ["世界", "#ai-scenery"], ["创新", "#batch-production"], ]; function Navbar({ onBook }) { const [mobileOpen, setMobileOpen] = useState(false); return ( ); } function StatCard({ icon, number, label }) { return
{icon}
{number}
{label}
; } function BookingDialog({ open, onClose }) { const [submitted, setSubmitted] = useState(false); const nameRef = useRef(null); useEffect(() => { if (!open) return; setSubmitted(false); const previousOverflow = document.body.style.overflow; document.body.style.overflow = "hidden"; const onKey = (event) => event.key === "Escape" && onClose(); window.addEventListener("keydown", onKey); setTimeout(() => nameRef.current?.focus(), 0); return () => { document.body.style.overflow = previousOverflow; window.removeEventListener("keydown", onKey); }; }, [open, onClose]); if (!open) return null; return
event.stopPropagation()} className="liquid-glass w-full max-w-md rounded-[1.5rem] p-6 md:p-8">

2026 首次载人航程

预订你的席位

{submitted ?

登记成功

任务团队会在舱位开放后第一时间与你联系。

:
{ event.preventDefault(); setSubmitted(true); }}>

提交仅用于演示,不会发送或保存个人信息。

}
; } function LiftoffDialog({ open, onClose }) { useEffect(() => { if (!open) return; const onKey = (event) => event.key === "Escape" && onClose(); window.addEventListener("keydown", onKey); return () => window.removeEventListener("keydown", onKey); }, [open, onClose]); if (!open) return null; return
event.stopPropagation()} className="liquid-glass w-full max-w-4xl overflow-hidden rounded-[1.5rem]">

观看启航

; } function Hero({ onBook, onLiftoff }) { return (
新航程首次载人火星航程将于 2026 年抵达
以从未想象过的方式探索宇宙。先锋级星舰与突破性工程,让安全而非凡的深空旅行真正触手可及。 } number="34.5 分钟" label="影像平均观看时长" />} number="28 亿+" label="覆盖全球探索者" />
与全球顶尖航天先驱共同探索
{["永曜", "维拉", "顶峰", "轨道", "泽诺"].map((name) => {name})}
); } const cards = [ { id: "ai-scenery", title: "智能场景", icon: "M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21H5Zm1-4h12l-3.75-5-3 4L9 13l-3 4Z", tags: ["自然语境", "照片级真实", "无限场景", "生态氛围"], body: "智能系统会分析产品特征,生成难辨真假的自然环境——从冰岛峭壁到薄雾森林。" }, { id: "batch-production", title: "批量制作", icon: "M4 6.47 5.76 10H20v8H4V6.47M22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.89-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4Z", tags: ["快速扩展", "视觉统一", "高效省时", "即刻发布"], body: "数分钟内完成整条产品线的视觉塑造,为目录与社交媒体建立统一形象,无需数周精修。" }, { id: "smart-lighting", title: "智能光影", icon: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1Zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7Z", tags: ["光线追踪", "物理阴影", "影棚品质", "日光同步"], body: "自动调整光线与材质,以真实阴影和自然日照实现毫无破绽的场景融合。" }, ]; function CapabilityCard({ card, index }) { return (
{card.tags.map((tag) => {tag})}

{card.title}

{card.body}

); } function Capabilities() { return (

// 核心能力

创作方式
全面进化

{cards.map((card, index) => )}
); } function App() { const [bookingOpen, setBookingOpen] = useState(false); const [liftoffOpen, setLiftoffOpen] = useState(false); return <> setBookingOpen(true)} onLiftoff={() => setLiftoffOpen(true)} /> setBookingOpen(false)} /> setLiftoffOpen(false)} />; } window.Navbar = Navbar; window.StatCard = StatCard; window.BookingDialog = BookingDialog; window.LiftoffDialog = LiftoffDialog; window.Hero = Hero; window.CapabilityCard = CapabilityCard; window.Capabilities = Capabilities; window.App = App; ReactDOM.createRoot(document.getElementById("root")).render();