:root { --el-color-primary: #6366f1; /* 主色调 */ --primary: #6366f1; --primary-light: #818cf8; --primary-dark: #4f46e5; /* 渐变色 */ --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6); --gradient-2: linear-gradient(135deg, #3b82f6, #06b6d4); /* 功能色 */ --success: #10b981; --warning: #f59e0b; --danger: #ef4444; --info: #06b6d4; /* 中性色 */ --bg-dark: #0f172a; --bg-card: #1e293b; --bg-hover: #334155; --border: #475569; /* 文字色 */ --text-primary: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b; /* 辅助色 */ --accent: #8b5cf6; --secondary: #3b82f6; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg-dark); color: var(--text-primary); font-size: 14px; line-height: 1.5; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: var(--bg-dark); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* App布局 */ .app-container { display: flex; height: 100vh; overflow: hidden; } .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; margin-left: 260px; } .content-area { flex: 1; display: flex; overflow: hidden; } /* 侧边栏 */ .sidebar { width: 260px; background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; } .sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); } .logo { display: flex; align-items: center; gap: 12px; } .logo-icon { width: 40px; height: 40px; background: var(--gradient-1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .logo-text { font-size: 18px; font-weight: 700; color: var(--text-primary); } .logo-subtitle { font-size: 11px; color: var(--text-secondary); } /* 导航菜单 */ .nav-menu { flex: 1; overflow-y: auto; padding: 16px 12px; } .nav-section { margin-bottom: 20px; } .nav-section-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 12px; margin-bottom: 8px; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s; margin-bottom: 4px; color: var(--text-secondary); } .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-item.active { background: rgba(99, 102, 241, 0.2); color: var(--primary); } .nav-icon { width: 20px; font-size: 16px; } .nav-text { flex: 1; font-size: 13px; } .nav-badge { background: var(--danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; } /* 用户卡片 */ .sidebar-footer { padding: 16px; border-top: 1px solid var(--border); } .user-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-hover); border-radius: 10px; cursor: pointer; } .user-avatar { width: 36px; height: 36px; background: var(--gradient-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; } .user-name { font-size: 13px; font-weight: 600; } .user-role { font-size: 11px; color: var(--text-secondary); } /* 顶部栏 */ .top-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border); position: relative; } .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; } .breadcrumb-item { color: var(--text-secondary); } .breadcrumb-item.active { color: var(--text-primary); } .breadcrumb-separator { color: var(--text-muted); } .top-actions { display: flex; align-items: center; gap: 12px; } .search-box { position: relative; width: 300px; } .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; } .search-input { width: 100%; padding: 8px 12px 8px 36px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 13px; } .search-input::placeholder { color: var(--text-muted); } .search-input:focus { outline: none; border-color: var(--primary); } .action-btn { width: 36px; height: 36px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; position: relative; } .action-btn:hover { background: var(--border); color: var(--text-primary); } .action-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; } /* 按钮样式 */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; } .btn-primary { background: var(--gradient-1); color: white; } .btn-primary:hover { opacity: 0.9; } .btn-secondary { background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--border); color: var(--text-primary); } .btn-sm { padding: 6px 12px; font-size: 12px; } /* 对话区域 */ .chat-section { flex: 1; display: flex; flex-direction: column; background: var(--bg-dark); min-width: 0; } .chat-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-card); } .brain-status { display: flex; align-items: center; gap: 16px; } .brain-avatar { width: 48px; height: 48px; background: var(--gradient-1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; } .brain-info h2 { font-size: 18px; font-weight: 600; margin-bottom: 4px; } .brain-info p { font-size: 12px; color: var(--text-secondary); } .chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; } .message { display: flex; gap: 12px; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; } .message-avatar.ai { background: var(--gradient-1); } .message-avatar.user { background: var(--gradient-2); } .message-content { flex: 1; min-width: 0; } .message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .message-author { font-size: 13px; font-weight: 600; } .message-time { font-size: 11px; color: var(--text-muted); } .message-bubble { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; font-size: 14px; line-height: 1.7; } .message.user .message-bubble { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); } .message-bubble p { margin-bottom: 8px; } .message-bubble ul { margin: 8px 0; padding-left: 20px; } .message-bubble li { margin-bottom: 6px; } /* 快捷操作 */ .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .quick-action { padding: 6px 12px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; cursor: pointer; transition: all 0.2s; } .quick-action:hover { background: var(--primary); border-color: var(--primary); color: white; } /* 输入区域 */ .chat-input-area { padding: 16px 24px; background: var(--bg-card); border-top: 1px solid var(--border); } .input-container { display: flex; gap: 12px; align-items: center; } .input-wrapper { flex: 1; display: flex; align-items: center; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 12px; padding: 4px; } .input-action { width: 36px; height: 36px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; } .input-action:hover { background: var(--border); color: var(--text-primary); } .chat-input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 14px; padding: 8px; } .chat-input::placeholder { color: var(--text-muted); } .chat-input:focus { outline: none; } .send-btn { width: 40px; height: 40px; background: var(--gradient-1); border: none; border-radius: 10px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; } .send-btn:hover { opacity: 0.9; } /* 数据面板 */ .data-panel { width: 320px; background: var(--bg-card); border-left: 1px solid var(--border); overflow-y: auto; padding: 20px; } .panel-section { margin-bottom: 24px; } .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .panel-title { font-size: 14px; font-weight: 600; } .panel-action { font-size: 12px; color: var(--primary); cursor: pointer; } .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .stat-card { background: var(--bg-hover); border-radius: 10px; padding: 12px; } .stat-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; } .stat-value { font-size: 20px; font-weight: 700; } .stat-change { font-size: 10px; display: flex; align-items: center; gap: 4px; margin-top: 4px; } .stat-change.up { color: var(--success); } /* 进度列表 */ .progress-list { display: flex; flex-direction: column; gap: 12px; } .progress-item { display: flex; flex-direction: column; gap: 6px; } .progress-header { display: flex; justify-content: space-between; font-size: 12px; } .progress-bar { height: 6px; background: var(--bg-dark); border-radius: 3px; overflow: hidden; } .progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; } .progress-fill.blue { background: var(--primary); } .progress-fill.purple { background: var(--accent); } .progress-fill.cyan { background: var(--info); } /* 活动列表 */ .activity-list { display: flex; flex-direction: column; gap: 12px; } .activity-item { display: flex; gap: 10px; } .activity-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; } .activity-icon.email { background: rgba(99, 102, 241, 0.2); color: var(--primary); } .activity-icon.whatsapp { background: rgba(37, 211, 102, 0.2); color: #25D366; } .activity-icon.linkedin { background: rgba(10, 102, 194, 0.2); color: #0A66C2; } .activity-text { font-size: 12px; } .activity-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; } /* 洞察卡片 */ .insight-card { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 12px; padding: 14px; } .insight-header { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 8px; } .insight-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; } /* 弹窗 */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal { background: var(--bg-card); border-radius: 16px; width: 100%; max-width: 700px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); } .modal-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; } .modal-close { width: 32px; height: 32px; background: var(--bg-hover); border: none; border-radius: 8px; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; } .modal-close:hover { background: var(--border); color: var(--text-primary); } .modal-body { flex: 1; overflow-y: auto; padding: 20px; } .modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 20px; border-top: 1px solid var(--border); } /* 表单样式 */ .form-section { margin-bottom: 24px; } .form-section-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .form-group { margin-bottom: 16px; } .form-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; } .form-input, .form-select { width: 100%; padding: 10px 14px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 13px; } .form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); } .form-input::placeholder { color: var(--text-muted); } .required { color: var(--danger); } /* 标签 */ .keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; } .keyword-tag { padding: 6px 12px; background: rgba(99, 102, 241, 0.2); border-radius: 20px; font-size: 12px; display: flex; align-items: center; gap: 6px; } .keyword-tag i { cursor: pointer; opacity: 0.6; } .keyword-tag i:hover { opacity: 1; } /* 数据源选择 */ .source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .source-card { padding: 16px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; } .source-card:hover { border-color: var(--primary); } .source-card.selected { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); } .source-icon { font-size: 24px; margin-bottom: 8px; } .source-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; } .source-desc { font-size: 10px; color: var(--text-muted); } /* 规则切换 */ .rule-item { display: flex; gap: 12px; padding: 12px; background: var(--bg-dark); border-radius: 10px; margin-bottom: 8px; } .rule-toggle { width: 44px; height: 24px; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; flex-shrink: 0; } .rule-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: all 0.2s; } .rule-toggle.active { background: var(--success); } .rule-toggle.active::after { left: 23px; } .rule-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; } .rule-desc { font-size: 11px; color: var(--text-secondary); } /* 打字指示器 */ .typing-indicator { display: flex; gap: 4px; } .typing-indicator span { width: 8px; height: 8px; background: var(--primary); 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); } } /* 智能卡片 */ .smart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-top: 12px; } .smart-card-header { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } /* 客户列表 */ .customer-list { display: flex; flex-direction: column; gap: 8px; } .customer-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-hover); border-radius: 8px; cursor: pointer; } .customer-flag { font-size: 20px; } .customer-info { flex: 1; } .customer-name { font-size: 13px; font-weight: 500; } .customer-detail { font-size: 11px; color: var(--text-secondary); } .customer-score { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; } .customer-score.score-high { background: rgba(16, 185, 129, 0.2); color: var(--success); } .customer-score.score-medium { background: rgba(245, 158, 11, 0.2); color: var(--warning); } /* 风险预警 */ .risk-alert-list { display: flex; flex-direction: column; gap: 10px; } .risk-alert-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; } .risk-alert-item.high { background: rgba(239, 68, 68, 0.1); border-left: 3px solid var(--danger); } .risk-alert-item.medium { background: rgba(245, 158, 11, 0.1); border-left: 3px solid var(--warning); } .risk-alert-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; } .risk-alert-item.high .risk-alert-icon { color: var(--danger); } .risk-alert-item.medium .risk-alert-icon { color: var(--warning); } .risk-alert-title { font-size: 12px; font-weight: 600; } .risk-alert-desc { font-size: 10px; color: var(--text-secondary); } /* 进化卡片 */ .evolution-card { background: var(--bg-hover); border-radius: 12px; padding: 14px; } .evolution-badge { display: inline-block; padding: 3px 8px; background: rgba(99, 102, 241, 0.2); color: var(--primary); border-radius: 10px; font-size: 10px; font-weight: 600; margin-bottom: 8px; } .evolution-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; } .evolution-stats { margin-bottom: 10px; } .evolution-stat-value { font-size: 20px; font-weight: 700; color: var(--success); } .evolution-stat-label { font-size: 10px; color: var(--text-secondary); } .evolution-content { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; } /* 页面样式 */ .page { display: none; } .page.active { display: flex; flex: 1; } /* 数据页面 */ .data-page { flex: 1; display: flex; flex-direction: column; padding: 24px; overflow-y: auto; } .data-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .data-title { font-size: 20px; font-weight: 600; } /* 统计行 */ .stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; } .stat-card-lg { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; } .stat-card-lg:hover { border-color: var(--primary); } .stat-icon-lg { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; } .stat-icon-lg.blue { background: rgba(99, 102, 241, 0.2); color: var(--primary); } .stat-icon-lg.green { background: rgba(16, 185, 129, 0.2); color: var(--success); } .stat-icon-lg.purple { background: rgba(139, 92, 246, 0.2); color: var(--secondary); } .stat-icon-lg.orange { background: rgba(245, 158, 11, 0.2); color: var(--warning); } .stat-content-lg h3 { font-size: 24px; font-weight: 700; } .stat-content-lg p { font-size: 12px; color: var(--text-secondary); } /* 市场网格 */ .market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; } .market-card { background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); padding: 20px; } .market-card-header { margin-bottom: 16px; } .market-card-title { font-size: 14px; font-weight: 600; } .market-chart { display: flex; align-items: flex-end; justify-content: space-around; height: 150px; padding-top: 20px; } .chart-bar { width: 40px; background: var(--gradient-1); border-radius: 6px 6px 0 0; position: relative; transition: height 0.5s; } .chart-bar .bar-value { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; white-space: nowrap; } .chart-bar::after { content: attr(data-label); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); } /* 帮助网格 */ .help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .help-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; } .help-card:hover { border-color: var(--primary); } .help-icon { font-size: 32px; margin-bottom: 12px; } .help-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; } .help-desc { font-size: 12px; color: var(--text-secondary); } /* 设置区域 */ .settings-section { background: var(--bg-card); border-radius: 14px; border: 1px solid var(--border); margin-bottom: 20px; overflow: hidden; } .settings-title { padding: 16px 20px; font-size: 14px; font-weight: 600; background: var(--bg-hover); display: flex; align-items: center; gap: 10px; } .settings-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; } .settings-item:last-child { border-bottom: none; } .settings-item-info h4 { font-size: 13px; font-weight: 500; margin-bottom: 2px; } .settings-item-info p { font-size: 11px; color: var(--text-secondary); } .settings-item-right { display: flex; align-items: center; gap: 10px; } .settings-value { font-size: 12px; color: var(--text-secondary); } .settings-value.success { color: var(--success); } .settings-value.warning { color: var(--warning); } .settings-toggle { width: 44px; height: 24px; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; } .settings-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: all 0.2s; } .settings-toggle.active { background: var(--success); } .settings-toggle.active::after { left: 23px; } /* 任务菜单 */ .task-menu { position: absolute; top: 100%; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: none; z-index: 100; } .task-menu.show { display: block; } .task-menu-item { display: flex; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; } .task-menu-item:hover { background: var(--bg-hover); } .task-menu-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; } .task-menu-icon.prospect { background: rgba(99, 102, 241, 0.2); } .task-menu-icon.marketing { background: rgba(16, 185, 129, 0.2); } .task-menu-icon.analysis { background: rgba(245, 158, 11, 0.2); } .task-menu-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; } .task-menu-text p { font-size: 11px; color: var(--text-secondary); } /* 过渡动画 */ .fade-enter-active, .fade-leave-active { transition: opacity 0.3s ease; } .fade-enter-from, .fade-leave-to { opacity: 0; } /* 响应式 */ @media (max-width: 1400px) { .data-panel { width: 280px; } .stat-row { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 1200px) { .sidebar { width: 220px; } .main-content { margin-left: 220px; } .data-panel { display: none; } } @media (max-width: 992px) { .sidebar { transform: translateX(-100%); } .main-content { margin-left: 0; } .stat-row { grid-template-columns: repeat(2, 1fr); } .help-grid { grid-template-columns: repeat(2, 1fr); } }