/* Dashboard Styles */ .dashboard { min-height: 100vh; background: #f8fafc; } /* Header */ .dashboard-header { background: white; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .header-content { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: bold; color: #667eea; } .logo-icon { width: 32px; height: 32px; } .user-actions { display: flex; align-items: center; gap: 1rem; } .welcome-text { color: #334155; font-weight: 600; font-size: 1rem; } .logout-btn { display: flex; align-items: center; gap: 0.5rem; background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } .logout-btn:hover { background: #dc2626; transform: translateY(-1px); } /* Dashboard Content */ .dashboard-content { max-width: 1400px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; } /* 仪表板概览 - 三栏布局 */ .dashboard-overview { display: grid; grid-template-columns: 300px 280px 1fr; gap: 2rem; } /* 左侧列:用户卡片和知识库入口垂直排列 */ .left-column { display: flex; flex-direction: column; gap: 1rem; height: 100%; } /* 统计卡片 */ .unified-stats-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; } /* 筛选卡片整合搜索框和标签云 */ .filter-card-wrapper { background: white; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; display: flex; flex-direction: column; } .filter-card-search { padding: 1.5rem 1.5rem 1rem 1.5rem; border-bottom: 1px solid #f1f5f9; } .filter-card-tags { flex: 1; } .filter-card-tags .tag-cloud-container { background: transparent; box-shadow: none; border: none; padding: 1rem 1.5rem 1.5rem 1.5rem; } .user-card { background: white; padding: 1.75rem 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 1.25rem; border: 1px solid #e2e8f0; flex: 3; } .filter-result-bar { background: white; padding: 1rem 1.5rem; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .filter-result-bar .clear-filters-btn { background: #ef4444; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 4px; } .filter-result-bar .clear-filters-btn:hover { background: #dc2626; transform: translateY(-1px); } .filter-result { color: #64748b; font-size: 0.875rem; font-weight: 500; } .user-avatar { width: 50px; height: 50px; background: linear-gradient(45deg, #667eea, #764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; } .user-details { flex: 1; } .user-name-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.35rem; } .user-details h2 { margin: 0; color: #1e293b; font-size: 1.25rem; font-weight: 600; } .user-email { color: #64748b; margin: 0 0 0.25rem 0; font-size: 0.875rem; } .join-date { color: #94a3b8; font-size: 0.75rem; margin: 0; } /* 统一的统计卡片样式 */ .unified-stats-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; } .unified-stats-card h3 { margin: 0 0 1rem 0; color: #1e293b; font-size: 1.1rem; font-weight: 600; } .stats-rows { display: flex; flex-direction: column; gap: 0; } .stat-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; } .stat-row:hover { background: #f8fafc; border-color: #c7d2fe; } .stat-row.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: #667eea; } .stat-row .stat-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; } .stat-row.active .stat-icon { background: rgba(255, 255, 255, 0.2); } .stat-row .stat-icon .icon { color: #64748b; } .stat-row.active .stat-icon .icon { color: white; } .stat-text { flex: 1; display: flex; justify-content: space-between; align-items: center; } .stat-label { font-size: 0.9rem; color: #64748b; font-weight: 500; } .stat-row.active .stat-label { color: white; } .stat-value { font-size: 1.25rem; font-weight: 700; color: #1e293b; } .stat-row.active .stat-value { color: white; } .stat-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 1rem; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; } .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-color: #c7d2fe; } .stat-card.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: #667eea; } .stat-card.active .stat-icon .icon { color: white; } .stat-card.active .stat-info h3, .stat-card.active .stat-info p { color: white; } .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; } .stat-card:nth-child(1) .stat-icon { background: linear-gradient(45deg, #06b6d4, #0891b2); color: white; } .stat-card:nth-child(2) .stat-icon { background: linear-gradient(45deg, #10b981, #059669); color: white; } .stat-card:nth-child(3) .stat-icon { background: linear-gradient(45deg, #f59e0b, #d97706); color: white; } .stat-info h3 { margin: 0; font-size: 2rem; font-weight: bold; color: #1e293b; } .stat-info p { margin: 0; color: #64748b; font-size: 0.9rem; } /* Filter Section */ .filter-section { background: white; border-radius: 16px; padding: 0; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); margin-bottom: 2rem; overflow: hidden; } .filter-header { padding: 1.5rem 2rem; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f8fafc, #eef2f7); } .filter-title { display: flex; align-items: center; gap: 8px; } .filter-title h2 { margin: 0; color: #1e293b; font-size: 1.3rem; font-weight: 600; } .clear-filters-btn { background: #ef4444; color: white; border: none; padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .clear-filters-btn:hover { background: #dc2626; transform: translateY(-1px); } .filter-summary { padding: 1rem 2rem; background: #f8fafc; border-top: 1px solid #f1f5f9; text-align: center; } .filter-result { color: #64748b; font-size: 0.875rem; font-weight: 500; } /* Meetings Section */ .meetings-section { background: white; border-radius: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); } .section-header { padding: 2rem 2rem 1rem 2rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: flex-start; } .section-title h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem 0; color: #1e293b; font-size: 1.5rem; } .section-title p { margin: 0; color: #64748b; } .create-meeting-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #667eea, #764ba2); color: white; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); white-space: nowrap; } .create-meeting-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4); color: white; text-decoration: none; } /* Loading and Error States */ .loading-container, .error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; color: #64748b; } .loading-spinner { width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .retry-btn { background: #667eea; color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; margin-top: 1rem; transition: background 0.3s ease; } .retry-btn:hover { background: #5a67d8; } /* Responsive Design */ @media (max-width: 768px) { .dashboard-content { padding: 1rem; } .dashboard-overview { grid-template-columns: 1fr; gap: 1rem; } .header-content { padding: 1rem; } .user-actions { flex-direction: column; gap: 0.5rem; align-items: flex-end; } .welcome-text { font-size: 0.9rem; } } /* User Menu */ .user-menu-container { position: relative; } .user-menu-trigger { display: flex; align-items: center; cursor: pointer; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; background: transparent; } .user-menu-trigger:hover { background: #f1f5f9; } /* Modal Styles */ .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; } .modal-content { background: white; padding: 2rem; border-radius: 8px; width: 90%; max-width: 500px; } .modal-content h2 { margin-top: 0; } .modal-content .form-group { margin-bottom: 1rem; } .modal-content .form-group label { display: block; margin-bottom: 0.5rem; } .modal-content .form-group input { width: 100%; padding: 0.5rem; border-radius: 4px; border: 1px solid #ccc; } .modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; } .error-message { color: red; margin-bottom: 1rem; } .success-message { color: green; margin-bottom: 1rem; } .user-card-actions { margin-top: 1rem; } .user-card-action-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #667eea, #764ba2); color: white; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); white-space: nowrap; } .user-card-action-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4); } /* Knowledge Base Entry Card */ .kb-entry-card { display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); padding: 0.75rem 1rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25); transition: all 0.3s ease; text-decoration: none; position: relative; overflow: hidden; flex: 2; } .kb-entry-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%); opacity: 0; transition: opacity 0.3s ease; } .kb-entry-card:hover::before { opacity: 1; } .kb-entry-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35); text-decoration: none; } .kb-entry-icon { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; backdrop-filter: blur(10px); } .kb-entry-content { flex: 1; } .kb-entry-content h2 { margin: 0 0 0.15rem 0; color: white; font-size: 0.95rem; font-weight: 700; } .kb-entry-content p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.75rem; font-weight: 400; } .kb-entry-arrow { color: white; opacity: 0.8; transition: all 0.3s ease; } .kb-entry-card:hover .kb-entry-arrow { opacity: 1; transform: translateX(4px); } /* Voiceprint Badge - 紧凑徽章样式 */ .voiceprint-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: none; white-space: nowrap; } .voiceprint-badge.uncollected { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3); } .voiceprint-badge.uncollected:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4); } .voiceprint-badge.collected { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3); } .voiceprint-badge.collected:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4); background: linear-gradient(135deg, #059669 0%, #047857 100%); } .voiceprint-badge .voiceprint-icon { animation: wave 2s ease-in-out infinite; } @keyframes wave { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.1); } }