@tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 214 32% 98%; --foreground: 222 47% 11%; --card: 0 0% 100%; --card-foreground: 222 47% 11%; --popover: 0 0% 100%; --popover-foreground: 222 47% 11%; --primary: 239 84% 67%; --primary-foreground: 0 0% 100%; --secondary: 214 32% 96%; --secondary-foreground: 222 47% 11%; --muted: 214 32% 96%; --muted-foreground: 215 16% 47%; --accent: 239 100% 97%; --accent-foreground: 239 84% 67%; --destructive: 347 89% 60%; --destructive-foreground: 0 0% 98%; --border: 220 20% 94%; --input: 220 20% 94%; --ring: 239 84% 67%; --radius: 0.75rem; --sidebar-background: 220 13% 95%; --sidebar-foreground: 215 16% 47%; --sidebar-primary: 239 84% 67%; --sidebar-primary-foreground: 0 0% 100%; --sidebar-accent: 239 100% 97%; --sidebar-accent-foreground: 239 84% 67%; --sidebar-border: 220 20% 94%; --sidebar-ring: 239 84% 67%; } } @layer base { * { @apply border-border; } html { @apply antialiased; } html, body, #root { height: 100%; overflow: hidden; } body { @apply bg-canvas text-ink-600 font-sans; font-feature-settings: "tnum"; } h1, h2, h3, h4 { @apply text-ink-900; letter-spacing: 0.02em; } } @layer utilities { .font-num { font-family: Manrope, "Noto Sans SC", sans-serif; letter-spacing: -0.02em; } .text-brand-gradient { background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; } .border-brand-gradient { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #6366F1 0%, #818CF8 100%) border-box; } .scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; } .scrollbar-thin::-webkit-scrollbar-thumb { background: #E3E6EE; border-radius: 999px; } } /* ---------- Markdown 渲染 ---------- */ .md-body { font-size: 14px; line-height: 1.7; color: #475569; } .md-body h3 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; color: #0f172a; } .md-body h4 { font-size: 14px; font-weight: 700; margin: 10px 0 4px; color: #0f172a; } .md-body p { margin: 6px 0; } .md-body ul, .md-body ol { margin: 6px 0 6px 20px; } .md-body ul { list-style: disc; } .md-body ol { list-style: decimal; } .md-body li { margin: 3px 0; } .md-body strong { font-weight: 700; color: #0f172a; } .md-body table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; } .md-body th, .md-body td { border: 1px solid #e8eef5; padding: 6px 8px; text-align: left; vertical-align: top; } .md-body th { background: #EEF0FF; font-weight: 600; color: #4F46E5; } .md-body hr { border: 0; border-top: 1px solid #e8eef5; margin: 12px 0; } .md-body code { background: #EEF0FF; border-radius: 4px; padding: 0 4px; font-size: 13px; color: #4F46E5; } .md-body .md-note { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #92600a; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 8px 0; } /* 流式光标 */ .stream-caret::after { content: "▍"; color: #6366F1; animation: caret-blink 1.25s ease-out infinite; } /* 进入动画 */ @keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } .fade-up { animation: fadeUp 0.25s ease both; } /* 问候条小蜜蜂:轻柔悬浮 + 微微摇摆,模拟飞行 */ @keyframes beeFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } } .bee-float { animation: beeFloat 2.8s ease-in-out infinite; will-change: transform; }