@import "tailwindcss"; :root { --background: #ffffff; --foreground: #171717; } @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); } @media (prefers-color-scheme: dark) { :root { --background: #0a0a0a; --foreground: #ededed; } } body { background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; } /* Markdown 渲染样式 - 专门用于聊天消息 */ .markdown-content { line-height: 1.5; font-size: 14px; } .markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4, .markdown-content h5, .markdown-content h6 { margin: 0.5em 0 0.3em 0; font-weight: 600; line-height: 1.3; } .markdown-content h1 { font-size: 1.5em; } .markdown-content h2 { font-size: 1.3em; } .markdown-content h3 { font-size: 1.2em; } .markdown-content h4 { font-size: 1.1em; } .markdown-content h5 { font-size: 1em; } .markdown-content h6 { font-size: 0.9em; } .markdown-content p { margin: 0.4em 0; line-height: 1.5; } .markdown-content ul, .markdown-content ol { margin: 0.4em 0; padding-left: 1.2em; list-style: revert; } .markdown-content li { margin: 0.2em 0; line-height: 1.4; } .markdown-content blockquote { margin: 0.5em 0; padding: 0.3em 0.8em; border-left: 3px solid #e5e7eb; background-color: #f9fafb; font-style: italic; } .markdown-content code { padding: 0.1em 0.3em; background-color: #f3f4f6; border-radius: 3px; font-family: 'Courier New', Courier, monospace; font-size: 0.9em; } .markdown-content pre { margin: 0.5em 0; padding: 0.8em; background-color: #f8f9fa; border-radius: 6px; overflow-x: auto; border: 1px solid #e9ecef; } .markdown-content pre code { padding: 0; background-color: transparent; border-radius: 0; font-size: 0.85em; line-height: 1.4; } .markdown-content table { margin: 0.5em 0; border-collapse: collapse; width: 100%; font-size: 0.9em; } .markdown-content th, .markdown-content td { padding: 0.3em 0.6em; border: 1px solid #e5e7eb; text-align: left; } .markdown-content th { background-color: #f9fafb; font-weight: 600; } .markdown-content hr { margin: 0.8em 0; border: none; border-top: 1px solid #e5e7eb; } .markdown-content a { color: #2563eb; text-decoration: underline; } .markdown-content a:hover { color: #1d4ed8; } .markdown-content strong { font-weight: 600; } .markdown-content em { font-style: italic; } /* 为用户消息的 Markdown 内容调整颜色 */ .bg-blue-600 .markdown-content, .bg-blue-600 .markdown-content h1, .bg-blue-600 .markdown-content h2, .bg-blue-600 .markdown-content h3, .bg-blue-600 .markdown-content h4, .bg-blue-600 .markdown-content h5, .bg-blue-600 .markdown-content h6 { color: white; } .bg-blue-600 .markdown-content code { background-color: rgba(255, 255, 255, 0.2); color: white; } .bg-blue-600 .markdown-content pre { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); } .bg-blue-600 .markdown-content blockquote { border-left-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.1); color: white; } .bg-blue-600 .markdown-content table th, .bg-blue-600 .markdown-content table td { border-color: rgba(255, 255, 255, 0.2); } .bg-blue-600 .markdown-content table th { background-color: rgba(255, 255, 255, 0.1); } .bg-blue-600 .markdown-content a { color: #bfdbfe; } .bg-blue-600 .markdown-content a:hover { color: #dbeafe; }