:root { --primary-color: #6366f1; --primary-dark: #4f46e5; --secondary-color: #8b5cf6; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --bg-primary: #ffffff; --bg-secondary: #f9fafb; --bg-tertiary: #f3f4f6; --text-primary: #111827; --text-secondary: #6b7280; --text-tertiary: #9ca3af; --border-color: #e5e7eb; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; } [data-theme="dark"] { --bg-primary: #111827; --bg-secondary: #1f2937; --bg-tertiary: #374151; --text-primary: #f9fafb; --text-secondary: #d1d5db; --text-tertiary: #9ca3af; --border-color: #374151; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background-color: var(--bg-secondary); color: var(--text-primary); line-height: 1.6; transition: background-color 0.3s, color 0.3s; } .header { background: var(--bg-primary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); } .header-container { max-width: 1400px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 600; color: var(--primary-color); } .logo i { font-size: 1.5rem; } .nav { display: flex; gap: 1rem; align-items: center; } .nav-link { color: var(--text-secondary); text-decoration: none; padding: 0.5rem 1rem; border-radius: var(--radius-md); transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; } .nav-link:hover { color: var(--primary-color); background: var(--bg-tertiary); } .anycoder-link { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white !important; font-weight: 500; } .anycoder-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); } .main-container { display: flex; height: calc(100vh - 73px); max-width: 1400px; margin: 0 auto; gap: 1rem; padding: 1rem; } .sidebar { width: 320px; background: var(--bg-primary); border-radius: var(--radius-lg); padding: 1.5rem; overflow-y: auto; box-shadow: var(--shadow-md); } .model-selector h3 { margin-bottom: 1rem; font-size: 1.125rem; font-weight: 600; } .search-box { position: relative; margin-bottom: 1rem; } .search-box i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); } .search-box input { width: 100%; padding: 0.625rem 1rem 0.625rem 2.5rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.875rem; transition: all 0.2s; } .search-box input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .model-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; } .category-btn { padding: 0.375rem 0.75rem; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); border-radius: var(--radius-sm); font-size: 0.75rem; cursor: pointer; transition: all 0.2s; } .category-btn:hover { background: var(--bg-tertiary); } .category-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); } .model-list { display: flex; flex-direction: column; gap: 0.5rem; } .model-item { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; } .model-item:hover { background: var(--bg-tertiary); border-color: var(--primary-color); } .model-item.selected { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1)); border-color: var(--primary-color); } .model-name { font-weight: 500; font-size: 0.875rem; } .model-size { font-size: 0.75rem; color: var(--text-tertiary); } .chat-container { flex: 1; background: var(--bg-primary); border-radius: var(--radius-lg); display: flex; flex-direction: column; box-shadow: var(--shadow-md); overflow: hidden; } .chat-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .current-model { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; } .model-status { width: 8px; height: 8px; border-radius: 50%; background: var(--success-color); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .chat-actions { display: flex; gap: 0.5rem; } .action-btn { padding: 0.5rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; } .action-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; } .welcome-message { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); } .welcome-message i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .welcome-message h2 { margin-bottom: 0.5rem; color: var(--text-primary); } .quick-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; } .example-btn { padding: 0.75rem 1.25rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; } .example-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); transform: translateY(-2px); box-shadow: var(--shadow-md); } .message { display: flex; gap: 0.75rem; animation: fadeIn 0.3s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { flex-direction: row-reverse; } .message-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0; } .message.user .message-avatar { background: var(--primary-color); color: white; } .message.assistant .message-avatar { background: var(--bg-tertiary); color: var(--text-secondary); } .message-content { max-width: 70%; padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-color); } .message.user .message-content { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; border: none; } .message-text { white-space: pre-wrap; word-wrap: break-word; } .message-time { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.25rem; } .typing-indicator { display: flex; gap: 0.25rem; padding: 0.5rem 0; } .typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); animation: typing 1.4s infinite; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } } .chat-input-container { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); background: var(--bg-primary); } .input-wrapper { display: flex; gap: 0.75rem; align-items: flex-end; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0.75rem; transition: all 0.2s; } .input-wrapper:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } #messageInput { flex: 1; border: none; background: transparent; color: var(--text-primary); font-size: 0.875rem; resize: none; outline: none; max-height: 120px; line-height: 1.5; } #messageInput::placeholder { color: var(--text-tertiary); } .input-actions { display: flex; gap: 0.5rem; } .input-action-btn { padding: 0.5rem; background: transparent; border: none; color: var(--text-tertiary); cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; } .input-action-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); } .send-btn { padding: 0.5rem 0.75rem; background: var(--primary-color); border: none; color: white; cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; } .send-btn:hover { background: var(--primary-dark); transform: translateY(-1px); } .send-btn:disabled { opacity: 0.5; cursor: not-allowed; } .input-info { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-tertiary); } .settings-modal, .model-info-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .settings-modal.active, .model-info-modal.active { display: flex; } .modal-content { background: var(--bg-primary); border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); } .modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { font-size: 1.25rem; font-weight: 600; } .close-btn { background: transparent; border: none; color: var(--text-tertiary); cursor: pointer; padding: 0.5rem; border-radius: var(--radius-sm); transition: all 0.2s; } .close-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); } .modal-body { padding: 1.5rem; } .setting-group { margin-bottom: 1.5rem; } .setting-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; } .setting-group input[type="range"] { width: 100%; margin-bottom: 0.5rem; } .setting-group select, .setting-group textarea { width: 100%; padding: 0.625rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); color: var(--text-primary); font-size: 0.875rem; } .setting-group textarea { resize: vertical; min-height: 80px; } .modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; } .btn-primary { padding: 0.625rem 1.25rem; background: var(--primary-color); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; transition: all 0.2s; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); } .model-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; } .stat-card { text-align: center; padding: 1rem; background: var(--bg-secondary); border-radius: var(--radius-md); } .stat-card i { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 0.5rem; } .stat-card h4 { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); } .stat-card p { font-size: 0.875rem; color: var(--text-tertiary); } .model-categories-info ul { list-style: none; padding: 0; } .model-categories-info li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); } .model-categories-info li:last-child { border-bottom: none; } @media (max-width: 768px) { .main-container { flex-direction: column; } .sidebar { width: 100%; max-height: 300px; } .message-content { max-width: 85%; } .quick-actions { flex-direction: column; align-items: center; } .example-btn { width: 100%; max-width: 250px; } .model-stats { grid-template-columns: 1fr; } } @media (max-width: 480px) { .header-container { padding: 1rem; } .nav { gap: 0.5rem; } .nav-link span { display: none; } .main-container { padding: 0.5rem; gap: 0.5rem; } .chat-header { padding: 0.75rem 1rem; } .chat-messages { padding: 1rem; } .chat-input-container { padding: 0.75rem 1rem; } .modal-content { width: 95%; margin: 1rem; } .sidebar { width: 100%; max-height: 250px; } }