/** * Root Layout - Next.js 14 App Router * 移动端优化:添加视口设置和安全区域支持 */ import type { Metadata, Viewport } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import { QueryProvider } from "@/lib/react-query"; const inter = Inter({ subsets: ["latin"] }); export const metadata: Metadata = { title: "AI MCP Web UI", description: "AI 对话界面 - 支持 Claude AI 和 MCP 工具调用", manifest: "/manifest.json", appleWebApp: { capable: true, statusBarStyle: "default", title: "AI MCP Web UI", }, }; export const viewport: Viewport = { width: "device-width", initialScale: 1, maximumScale: 1, userScalable: false, viewportFit: "cover", themeColor: "#3b82f6", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {children} ); }