/** * 移动端 UI 样式 - 参考通义千问手机端设计 * 简洁、现代、流畅的移动端体验 */ /* ========== 基础重置 ========== */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: #f5f5f5; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ========== 滚动条美化 ========== */ ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); } /* ========== 通用组件 ========== */ /* 卡片容器 */ .mobile-card { background: white; border-radius: 16px; padding: 20px; margin: 15px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); } /* 按钮基础样式 */ .mobile-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; } .mobile-btn:active { transform: scale(0.95); } /* 主按钮 */ .mobile-btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; } /* 次要按钮 */ .mobile-btn-secondary { background: #f5f5f5; color: #333; border: 1px solid #e0e0e0; } /* 幽灵按钮 */ .mobile-btn-ghost { background: transparent; color: #667eea; border: 1px solid #667eea; } /* ========== AI 对话气泡 ========== */ .chat-bubble { padding: 12px 16px; border-radius: 16px; margin: 10px 0; max-width: 80%; word-wrap: break-word; line-height: 1.6; font-size: 15px; } .chat-bubble.user { background: linear-gradient(135deg, #667eea, #764ba2); color: white; margin-left: auto; border-bottom-right-radius: 4px; } .chat-bubble.ai { background: white; color: #333; margin-right: auto; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } /* ========== 输入框样式 ========== */ .mobile-input { width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 15px; outline: none; transition: border-color 0.3s ease; } .mobile-input:focus { border-color: #667eea; } .mobile-input::placeholder { color: #999; } /* ========== 标签页样式 ========== */ .tab-bar { display: flex; gap: 10px; padding: 10px 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; /* Firefox */ } .tab-bar::-webkit-scrollbar { display: none; /* Chrome/Safari */ } .tab-item { min-width: 80px; padding: 10px 20px; background: white; border: 1px solid #e0e0e0; border-radius: 20px; text-align: center; font-size: 14px; color: #666; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; } .tab-item.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-color: transparent; } .tab-item:active { transform: scale(0.95); } /* ========== 加载动画 ========== */ .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(102, 126, 234, 0.2); border-top-color: #667eea; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* ========== 空状态 ========== */ .empty-state { text-align: center; padding: 60px 20px; } .empty-state-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.5; } .empty-state-title { font-size: 18px; color: #666; margin-bottom: 10px; } .empty-state-desc { font-size: 14px; color: #999; line-height: 1.6; } /* ========== 列表项样式 ========== */ .list-item { display: flex; align-items: center; padding: 15px; background: white; border-bottom: 1px solid #f0f0f0; transition: background 0.2s ease; } .list-item:active { background: #f5f5f5; } .list-item-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 15px; } .list-item-content { flex: 1; } .list-item-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 4px; } .list-item-desc { font-size: 13px; color: #999; } .list-item-arrow { font-size: 18px; color: #ccc; } /* ========== 模态框样式 ========== */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; } .modal-overlay.show { opacity: 1; } .modal-content { background: white; border-radius: 20px; padding: 24px; width: 85%; max-width: 400px; max-height: 80vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.3s ease; } .modal-overlay.show .modal-content { transform: translateY(0); } /* ========== 工具类 ========== */ .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .gap-10 { gap: 10px; } .gap-20 { gap: 20px; } .text-center { text-align: center; } .text-primary { color: #667eea; } .text-secondary { color: #999; } .mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } /* ========== 响应式适配 ========== */ @media (max-width: 375px) { .mobile-header h1 { font-size: 16px; } .chat-bubble { max-width: 85%; font-size: 14px; } .mobile-btn { padding: 10px 20px; font-size: 14px; } } /* ========== 暗黑模式(预留) ========== */ @media (prefers-color-scheme: dark) { /* 未来支持暗黑模式时的样式 */ :root { --bg-primary: #1a1a1a; --bg-secondary: #2a2a2a; --text-primary: #ffffff; --text-secondary: #999999; } } /* ===== 2026-09-09 简洁灰化覆盖(多维鹰·AI智能中控台视觉收敛;后置同文件覆盖)===== */ .mobile-btn-primary,.chat-bubble.user,.user-message,.mode-btn.active,.btn-primary-mobile, .form-submit-button,.form-button.form-submit-button,.profile-avatar,.welcome-card,.send-btn,#send-btn{ background:#eef2f7 !important;background-image:none !important;color:#1e293b !important; border:none !important;box-shadow:none !important;} .chat-bubble,.chat-bubble.ai,.chat-bubble.user,.ai-message,.message-bubble{ font-size:14px !important;line-height:1.7 !important;color:#1e293b !important;} .chat-bubble.ai,.ai-message{background:#f1f5f9 !important;background-image:none !important;} .function-nav button{ background:#f1f5f9 !important;background-image:none !important;color:#475569 !important; border:none !important;box-shadow:none !important;font-size:12px !important; padding:5px 11px !important;border-radius:15px !important;margin:0 !important;transform:none !important;} #chat-input,.ai-chat-input{font-size:14px !important;border:1px solid #e2e8f0 !important;border-radius:16px !important;} .mobile-header h1{font-size:15px !important;color:#334155 !important;} .nav-item span{font-size:11px !important;} .text-primary{color:#64748b !important;}