Spaces:
Paused
Paused
| :root { | |
| --bg-primary: #0a0a0c; | |
| --bg-secondary: #16161a; | |
| --bg-tertiary: #222226; | |
| --text-primary: #f8f8fc; | |
| --text-secondary: #9494a5; | |
| --accent-blue: #60a5fa; | |
| --accent-purple: #c084fc; | |
| --accent-gradient: linear-gradient(135deg, #3b82f6, #9333ea, #db2777); | |
| --border-color: rgba(255, 255, 255, 0.05); | |
| --input-bg: #1a1a1e; | |
| --glass-bg: rgba(13, 13, 15, 0.85); | |
| --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3); | |
| --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4); | |
| --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5); | |
| --radius-sm: 8px; | |
| --radius-md: 14px; | |
| --radius-lg: 24px; | |
| --radius-xl: 32px; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; | |
| } | |
| html { | |
| font-size: 16px; | |
| -webkit-text-size-adjust: 100%; | |
| } | |
| body { | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| height: 100vh; | |
| overflow: hidden; | |
| line-height: 1.6; | |
| } | |
| .app-container { | |
| display: flex; | |
| height: 100%; | |
| max-width: 100vw; | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| /* Top Navigation */ | |
| .top-nav { | |
| padding: 8px 16px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border-bottom: 1px solid var(--border-color); | |
| z-index: 100; | |
| position: sticky; | |
| top: 0; | |
| } | |
| .nav-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .model-tag { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 8px 16px; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-xl); | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--accent-blue); | |
| transition: all 0.2s ease; | |
| } | |
| .model-tag:hover { | |
| border-color: var(--accent-blue); | |
| box-shadow: 0 0 20px rgba(90, 140, 255, 0.2); | |
| } | |
| .model-tag i { | |
| font-size: 16px; | |
| } | |
| .model-selector-container { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .status-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| margin-left: 10px; | |
| padding: 4px 10px; | |
| background: rgba(255, 255, 255, 0.03); | |
| border-radius: var(--radius-xl); | |
| border: 1px solid var(--border-color); | |
| } | |
| .status-label { | |
| font-size: 11px; | |
| color: var(--text-secondary); | |
| } | |
| .status-dot { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| display: inline-block; | |
| transition: all 0.3s ease; | |
| } | |
| .status-dot.online { | |
| background-color: #4ade80; | |
| box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); | |
| } | |
| .status-dot.offline { | |
| background-color: #f87171; | |
| box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); | |
| } | |
| .status-dot.unknown { | |
| background-color: #9ca3af; | |
| } | |
| .nav-btn { | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| padding: 10px 18px; | |
| border-radius: var(--radius-xl); | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| cursor: pointer; | |
| font-size: 14px; | |
| font-weight: 500; | |
| transition: all 0.2s ease; | |
| } | |
| .nav-btn:hover { | |
| background: var(--bg-tertiary); | |
| border-color: var(--accent-blue); | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 12px rgba(90, 140, 255, 0.2); | |
| } | |
| .nav-btn i { | |
| font-size: 14px; | |
| } | |
| .avatar-small { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: var(--accent-gradient); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 14px; | |
| font-weight: bold; | |
| color: white; | |
| box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3); | |
| } | |
| /* Chat Container */ | |
| .chat-container { | |
| flex: 1; | |
| overflow-y: auto; | |
| overflow-x: hidden; | |
| padding: 24px 15% 180px; | |
| scroll-behavior: smooth; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Custom Scrollbar */ | |
| .chat-container::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .chat-container::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .chat-container::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 3px; | |
| } | |
| .chat-container::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-secondary); | |
| } | |
| /* Welcome Screen */ | |
| .welcome-screen { | |
| height: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| max-width: 700px; | |
| margin: 0 auto; | |
| text-align: center; | |
| padding: 40px 20px; | |
| animation: fadeInUp 0.6s ease; | |
| } | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(30px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .welcome-screen h1 { | |
| font-size: 3rem; | |
| background: var(--accent-gradient); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| margin-bottom: 16px; | |
| font-weight: 700; | |
| letter-spacing: -0.5px; | |
| line-height: 1.2; | |
| } | |
| .welcome-screen p { | |
| font-size: 1.1rem; | |
| color: var(--text-secondary); | |
| margin-bottom: 40px; | |
| max-width: 500px; | |
| } | |
| .suggested-cards { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 16px; | |
| width: 100%; | |
| } | |
| .card { | |
| background: var(--bg-secondary); | |
| padding: 20px; | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-color); | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| font-size: 14px; | |
| text-align: left; | |
| color: var(--text-primary); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 2px; | |
| background: var(--accent-gradient); | |
| transform: scaleX(0); | |
| transition: transform 0.3s ease; | |
| } | |
| .card:hover { | |
| background: var(--bg-tertiary); | |
| border-color: rgba(90, 140, 255, 0.3); | |
| transform: translateY(-2px); | |
| box-shadow: var(--shadow); | |
| } | |
| .card:hover::before { | |
| transform: scaleX(1); | |
| } | |
| /* Message Styles */ | |
| .message { | |
| margin-bottom: 32px; | |
| display: flex; | |
| gap: 16px; | |
| max-width: 85%; | |
| animation: messageSlideIn 0.4s ease; | |
| } | |
| @keyframes messageSlideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .message.user { | |
| align-self: flex-end; | |
| flex-direction: row-reverse; | |
| } | |
| .message.assistant { | |
| align-self: flex-start; | |
| } | |
| .message .avatar { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| background: var(--bg-tertiary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex-shrink: 0; | |
| overflow: hidden; | |
| border: 1px solid var(--border-color); | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); | |
| } | |
| .message.user .avatar { | |
| background: var(--accent-gradient); | |
| } | |
| .message.assistant .avatar { | |
| background: var(--bg-secondary); | |
| } | |
| .message.assistant .avatar img { | |
| width: 70%; | |
| height: 70%; | |
| object-fit: contain; | |
| } | |
| .message.user .avatar i { | |
| color: white; | |
| font-size: 16px; | |
| } | |
| .content { | |
| line-height: 1.7; | |
| font-size: 15px; | |
| overflow-wrap: break-word; | |
| word-wrap: break-word; | |
| word-break: normal; | |
| hyphens: auto; | |
| min-width: 0; | |
| max-width: 100%; | |
| } | |
| .message.user .content { | |
| background: var(--bg-tertiary); | |
| padding: 12px 18px; | |
| border-radius: 18px 18px 4px 18px; | |
| border: 1px solid var(--border-color); | |
| max-width: 100%; | |
| word-break: break-word; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .message.assistant .content { | |
| color: var(--text-primary); | |
| padding: 8px 0; | |
| word-break: break-word; | |
| } | |
| .message.assistant .content p { | |
| margin-bottom: 12px; | |
| } | |
| .message.assistant .content p:last-child { | |
| margin-bottom: 0; | |
| } | |
| /* Input Area */ | |
| .input-area { | |
| position: fixed; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| padding: 20px 15% 24px; | |
| background: linear-gradient(to top, var(--bg-primary) 60%, transparent); | |
| z-index: 50; | |
| } | |
| .input-wrapper { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .input-container { | |
| background: var(--glass-bg); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border-radius: var(--radius-xl); | |
| padding: 14px 20px; | |
| display: flex; | |
| flex-direction: column; | |
| border: 1px solid var(--border-color); | |
| transition: all 0.2s ease; | |
| box-shadow: var(--shadow); | |
| } | |
| .input-container:focus-within { | |
| border-color: rgba(90, 140, 255, 0.4); | |
| box-shadow: 0 8px 32px rgba(90, 140, 255, 0.15); | |
| } | |
| textarea { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-primary); | |
| resize: none; | |
| outline: none; | |
| padding: 8px 0; | |
| font-size: 15px; | |
| max-height: 200px; | |
| min-height: 24px; | |
| line-height: 1.5; | |
| font-family: inherit; | |
| width: 100%; | |
| } | |
| textarea::placeholder { | |
| color: var(--text-secondary); | |
| } | |
| .input-actions { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-top: 10px; | |
| } | |
| .input-actions-left { | |
| display: flex; | |
| gap: 12px; | |
| align-items: center; | |
| } | |
| .input-actions button { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| padding: 10px; | |
| border-radius: 50%; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 16px; | |
| width: 36px; | |
| height: 36px; | |
| } | |
| .input-actions button:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: var(--text-primary); | |
| transform: scale(1.05); | |
| } | |
| #send-btn { | |
| background: var(--accent-blue); | |
| color: white; | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.2s ease; | |
| } | |
| #send-btn:hover { | |
| background: #4a7de8; | |
| transform: scale(1.05); | |
| box-shadow: 0 4px 12px rgba(90, 140, 255, 0.4); | |
| } | |
| #send-btn.disabled { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| cursor: not-allowed; | |
| opacity: 0.5; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| #send-btn.stop-mode { | |
| background: #f87171; | |
| color: white; | |
| box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4); | |
| animation: stopPulse 2s infinite; | |
| } | |
| #send-btn.stop-mode:hover { | |
| background: #ef4444; | |
| } | |
| @keyframes stopPulse { | |
| 0% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.05); | |
| box-shadow: 0 0 15px rgba(248, 113, 113, 0.6); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| } | |
| } | |
| .disclaimer { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| text-align: center; | |
| margin-top: 12px; | |
| opacity: 0.7; | |
| } | |
| /* Code Block Styling */ | |
| .code-block-wrapper { | |
| background: #0d0d0f; | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| margin: 20px 0; | |
| overflow: hidden; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .code-header { | |
| background: #1a1a1e; | |
| padding: 8px 16px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .code-lang { | |
| font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace; | |
| font-size: 11px; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| font-weight: 700; | |
| } | |
| .copy-code-btn { | |
| background: transparent; | |
| border: none; | |
| color: var(--text-secondary); | |
| padding: 4px 8px; | |
| border-radius: var(--radius-sm); | |
| font-size: 11px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .copy-code-btn:hover { | |
| background: rgba(255, 255, 255, 0.05); | |
| color: var(--text-primary); | |
| } | |
| .copy-code-btn.success { | |
| color: #4ade80; | |
| } | |
| pre { | |
| margin: 0 ; | |
| padding: 20px; | |
| background: #0d0d0f ; | |
| overflow-x: auto; | |
| } | |
| pre code { | |
| font-family: 'SF Mono', 'Consolas', 'Fira Code', monospace; | |
| font-size: 13px; | |
| line-height: 1.6; | |
| white-space: pre; | |
| word-break: normal; | |
| } | |
| /* Inline code */ | |
| :not(pre)>code { | |
| background: var(--bg-tertiary); | |
| padding: 3px 8px; | |
| border-radius: 6px; | |
| font-family: 'SF Mono', 'Consolas', monospace; | |
| font-size: 0.9em; | |
| color: var(--accent-blue); | |
| border: 1px solid var(--border-color); | |
| } | |
| /* Preview Container */ | |
| .preview-container { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| margin-bottom: 10px; | |
| } | |
| .preview-item { | |
| position: relative; | |
| width: 70px; | |
| height: 70px; | |
| border-radius: var(--radius-sm); | |
| border: 1px solid var(--border-color); | |
| overflow: hidden; | |
| background: var(--bg-tertiary); | |
| transition: all 0.2s ease; | |
| } | |
| .preview-item:hover { | |
| border-color: var(--accent-blue); | |
| transform: scale(1.02); | |
| } | |
| .preview-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .preview-item .file-icon { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| height: 100%; | |
| font-size: 10px; | |
| color: var(--text-secondary); | |
| gap: 4px; | |
| } | |
| .preview-item .file-icon i { | |
| font-size: 20px; | |
| } | |
| .preview-item button { | |
| position: absolute; | |
| top: 4px; | |
| right: 4px; | |
| background: rgba(0, 0, 0, 0.7); | |
| color: white; | |
| border: none; | |
| border-radius: 50%; | |
| width: 20px; | |
| height: 20px; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 12px; | |
| transition: all 0.2s ease; | |
| backdrop-filter: blur(4px); | |
| } | |
| .preview-item button:hover { | |
| background: #ff4d4d; | |
| transform: scale(1.1); | |
| } | |
| /* Tool Switch */ | |
| .tool-switch-container { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 6px 12px; | |
| background: var(--bg-tertiary); | |
| border-radius: var(--radius-xl); | |
| cursor: pointer; | |
| user-select: none; | |
| border: 1px solid var(--border-color); | |
| transition: all 0.2s ease; | |
| } | |
| .tool-switch-container:hover { | |
| background: #2d2d32; | |
| border-color: var(--accent-blue); | |
| } | |
| .tool-switch-container input { | |
| display: none; | |
| } | |
| .switch-slider { | |
| width: 32px; | |
| height: 16px; | |
| background: #444; | |
| border-radius: 10px; | |
| position: relative; | |
| transition: 0.3s; | |
| } | |
| .switch-slider::before { | |
| content: ""; | |
| position: absolute; | |
| height: 12px; | |
| width: 12px; | |
| left: 2px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| background: white; | |
| border-radius: 50%; | |
| transition: 0.3s; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); | |
| } | |
| input:checked+.switch-slider { | |
| background: var(--accent-blue); | |
| } | |
| input:checked+.switch-slider::before { | |
| transform: translateY(-50%) translateX(16px); | |
| } | |
| .switch-label { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| font-weight: 500; | |
| } | |
| input:checked~.switch-label { | |
| color: var(--accent-blue); | |
| } | |
| /* Typing Indicator */ | |
| .typing-indicator { | |
| display: flex; | |
| gap: 4px; | |
| padding: 12px 0; | |
| } | |
| .typing-indicator span { | |
| width: 8px; | |
| height: 8px; | |
| background: var(--text-secondary); | |
| border-radius: 50%; | |
| animation: typing 1.4s infinite ease-in-out both; | |
| } | |
| .typing-indicator span:nth-child(1) { | |
| animation-delay: -0.32s; | |
| } | |
| .typing-indicator span:nth-child(2) { | |
| animation-delay: -0.16s; | |
| } | |
| @keyframes typing { | |
| 0%, | |
| 80%, | |
| 100% { | |
| transform: scale(0); | |
| } | |
| 40% { | |
| transform: scale(1); | |
| } | |
| } | |
| /* Responsive Design */ | |
| /* Tablet */ | |
| @media (max-width: 1024px) { | |
| .chat-container, | |
| .input-area { | |
| padding-left: 8%; | |
| padding-right: 8%; | |
| } | |
| .welcome-screen h1 { | |
| font-size: 2.5rem; | |
| } | |
| } | |
| /* Mobile */ | |
| @media (max-width: 768px) { | |
| html { | |
| font-size: 15px; | |
| } | |
| .top-nav { | |
| padding: 12px 16px; | |
| } | |
| .nav-btn span { | |
| display: none; | |
| } | |
| .nav-btn { | |
| padding: 10px; | |
| border-radius: 50%; | |
| } | |
| .model-tag { | |
| padding: 6px 12px; | |
| font-size: 13px; | |
| } | |
| .chat-container { | |
| padding: 16px 4% 160px; | |
| } | |
| .input-area { | |
| padding: 12px 4% 16px; | |
| } | |
| .welcome-screen { | |
| padding: 24px 16px; | |
| } | |
| .welcome-screen h1 { | |
| font-size: 1.8rem; | |
| } | |
| .welcome-screen p { | |
| font-size: 1rem; | |
| margin-bottom: 24px; | |
| } | |
| .suggested-cards { | |
| grid-template-columns: 1fr; | |
| gap: 10px; | |
| } | |
| .card { | |
| padding: 14px 16px; | |
| font-size: 13px; | |
| } | |
| .message { | |
| max-width: 95%; | |
| margin-bottom: 20px; | |
| gap: 8px; | |
| min-width: 0; | |
| } | |
| .message .avatar { | |
| width: 32px; | |
| height: 32px; | |
| flex-shrink: 0; | |
| } | |
| .message .avatar i { | |
| font-size: 13px; | |
| } | |
| .content { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| word-break: normal; | |
| overflow-wrap: break-word; | |
| min-width: 0; | |
| max-width: calc(100% - 40px); | |
| } | |
| .message.user .content { | |
| padding: 10px 14px; | |
| border-radius: 18px 18px 4px 18px; | |
| max-width: 100%; | |
| } | |
| .input-container { | |
| padding: 10px 14px; | |
| border-radius: 22px; | |
| } | |
| textarea { | |
| font-size: 16px; | |
| /* Prevent zoom on iOS */ | |
| padding: 4px 0; | |
| } | |
| .input-actions { | |
| margin-top: 6px; | |
| } | |
| .input-actions button { | |
| width: 34px; | |
| height: 34px; | |
| font-size: 15px; | |
| } | |
| .tool-switch-container { | |
| padding: 4px 10px; | |
| } | |
| .switch-label { | |
| font-size: 11px; | |
| } | |
| .switch-label i { | |
| font-size: 12px; | |
| } | |
| .disclaimer { | |
| font-size: 11px; | |
| margin-top: 8px; | |
| } | |
| /* Code blocks on mobile */ | |
| .code-block-wrapper { | |
| margin: 12px -4%; | |
| border-radius: 0; | |
| border-left: none; | |
| border-right: none; | |
| } | |
| pre { | |
| padding: 12px; | |
| font-size: 12px; | |
| white-space: pre-wrap; | |
| word-wrap: break-word; | |
| overflow-wrap: break-word; | |
| } | |
| pre code { | |
| font-size: 12px; | |
| line-height: 1.5; | |
| word-break: normal; | |
| white-space: pre-wrap; | |
| } | |
| .preview-item { | |
| width: 60px; | |
| height: 60px; | |
| } | |
| } | |
| /* Small Mobile */ | |
| @media (max-width: 380px) { | |
| .welcome-screen h1 { | |
| font-size: 1.6rem; | |
| } | |
| .message { | |
| max-width: 95%; | |
| } | |
| .model-tag { | |
| font-size: 12px; | |
| padding: 5px 10px; | |
| } | |
| .model-tag i { | |
| font-size: 14px; | |
| } | |
| } | |
| /* Dark mode adjustments for syntax highlighting */ | |
| .hljs { | |
| background: transparent ; | |
| } | |
| /* Markdown content styling */ | |
| .message.assistant .content h1, | |
| .message.assistant .content h2, | |
| .message.assistant .content h3, | |
| .message.assistant .content h4 { | |
| margin: 20px 0 12px; | |
| color: var(--text-primary); | |
| font-weight: 600; | |
| } | |
| .message.assistant .content h1 { | |
| font-size: 1.5em; | |
| } | |
| .message.assistant .content h2 { | |
| font-size: 1.3em; | |
| } | |
| .message.assistant .content h3 { | |
| font-size: 1.15em; | |
| } | |
| .message.assistant .content ul, | |
| .message.assistant .content ol { | |
| margin: 12px 0; | |
| padding-left: 24px; | |
| } | |
| .message.assistant .content li { | |
| margin: 6px 0; | |
| } | |
| .message.assistant .content a { | |
| color: var(--accent-blue); | |
| text-decoration: none; | |
| border-bottom: 1px solid transparent; | |
| transition: border-color 0.2s; | |
| } | |
| .message.assistant .content a:hover { | |
| border-color: var(--accent-blue); | |
| } | |
| .message.assistant .content img { | |
| max-width: 100%; | |
| border-radius: var(--radius-md); | |
| margin: 12px 0; | |
| } | |
| .message.assistant .content blockquote { | |
| border-left: 3px solid var(--accent-blue); | |
| padding-left: 16px; | |
| margin: 12px 0; | |
| color: var(--text-secondary); | |
| font-style: italic; | |
| } | |
| .message.assistant .content table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 16px 0; | |
| font-size: 14px; | |
| } | |
| .message.assistant .content th, | |
| .message.assistant .content td { | |
| border: 1px solid var(--border-color); | |
| padding: 10px 14px; | |
| text-align: left; | |
| } | |
| .message.assistant .content th { | |
| background: var(--bg-tertiary); | |
| font-weight: 600; | |
| } | |
| .message.assistant .content tr:nth-child(even) { | |
| background: rgba(255, 255, 255, 0.02); | |
| } | |
| /* Mobile table adjustments */ | |
| @media (max-width: 768px) { | |
| .message.assistant .content table { | |
| font-size: 13px; | |
| } | |
| .message.assistant .content th, | |
| .message.assistant .content td { | |
| padding: 8px 10px; | |
| } | |
| } |