/* 市场人员业绩管理系统 - Dashboard样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; } /* 页面头部 */ .header { background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%); color: white; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .header h1 { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; } .header h1 i { font-size: 32px; } .user-info { display: flex; align-items: center; gap: 15px; font-size: 16px; } .role-badge { background: rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 25px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, 0.3); } .role-badge i { font-size: 12px; } /* 数据筛选器 */ .filter-container { background: rgba(255, 255, 255, 0.95); margin: 20px; padding: 20px; border-radius: 15px; display: flex; gap: 20px; align-items: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); } .filter-item { display: flex; align-items: center; gap: 10px; } .filter-item label { font-weight: 600; color: #374151; font-size: 14px; } .filter-item select { padding: 10px 15px; border: 2px solid #e5e7eb; border-radius: 8px; background: white; color: #374151; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .filter-item select:hover { border-color: #667eea; } .filter-item select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .btn-export { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; } .btn-export:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } /* 统计卡片容器 */ .stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; padding: 0 20px 20px; } /* 统计卡片 */ .stat-card { background: rgba(255, 255, 255, 0.95); border-radius: 20px; padding: 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); display: flex; align-items: center; gap: 20px; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); } .stat-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } .stat-content { flex: 1; } .stat-value { font-size: 32px; font-weight: 700; color: #1f2937; margin-bottom: 5px; } .stat-label { font-size: 14px; color: #6b7280; font-weight: 500; margin-bottom: 8px; } .stat-trend { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; } .trend-up { color: #10b981; } .trend-down { color: #ef4444; } /* 区域容器 */ .section { padding: 20px; } .section h2 { font-size: 24px; font-weight: 700; color: white; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .section h2 i { font-size: 28px; } /* 图表容器 */ .charts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; } .chart-card { background: rgba(255, 255, 255, 0.95); border-radius: 20px; padding: 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .chart-card h3 { font-size: 16px; font-weight: 600; color: #374151; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; } .chart-card h3 i { font-size: 18px; color: #667eea; } /* 团队总览 */ .team-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .overview-card { background: rgba(255, 255, 255, 0.95); border-radius: 15px; padding: 20px; text-align: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; } .overview-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); } .overview-card h3 { font-size: 14px; color: #6b7280; margin-bottom: 10px; font-weight: 600; } .overview-card h3 i { font-size: 16px; color: #667eea; margin-bottom: 5px; } .overview-value { font-size: 36px; font-weight: 700; color: #1f2937; margin-bottom: 5px; } .overview-desc { font-size: 12px; color: #9ca3af; font-weight: 500; } /* 排名区域 */ .ranking-section h3 { font-size: 18px; font-weight: 600; color: white; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; } .ranking-section h3 i { font-size: 20px; } .ranking-table { background: rgba(255, 255, 255, 0.95); border-radius: 15px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .ranking-table table { width: 100%; border-collapse: collapse; } .ranking-table th, .ranking-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .ranking-table th { background: rgba(102, 126, 234, 0.1); font-weight: 600; color: #374151; font-size: 14px; } .ranking-table th i { margin-right: 5px; color: #667eea; } .ranking-table td { font-size: 14px; color: #374151; font-weight: 500; } .ranking-table tr:hover { background: rgba(102, 126, 234, 0.05); } .ranking-table tr:last-child td { border-bottom: none; } /* 排名徽章 */ .rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 700; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } .rank-first { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #92400e; } .rank-second { background: linear-gradient(135deg, #c0c0c0, #e5e5e5); color: #374151; } .rank-third { background: linear-gradient(135deg, #cd7f32, #e5a25d); color: white; } .rank-other { background: linear-gradient(135deg, #6b7280, #9ca3af); } /* 响应式设计 */ @media (max-width: 1200px) { .stats-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } .charts-container { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); } } @media (max-width: 768px) { .header { flex-direction: column; gap: 15px; text-align: center; } .filter-container { flex-direction: column; align-items: stretch; gap: 15px; } .stats-container { grid-template-columns: 1fr; padding: 0 15px 15px; } .charts-container { grid-template-columns: 1fr; } .team-overview { grid-template-columns: repeat(2, 1fr); } .ranking-table { overflow-x: auto; } .ranking-table table { min-width: 600px; } } @media (max-width: 480px) { .header h1 { font-size: 24px; } .user-info { flex-direction: column; gap: 8px; } .stat-card { flex-direction: column; text-align: center; gap: 15px; } .stat-icon { width: 60px; height: 60px; font-size: 24px; } .team-overview { grid-template-columns: 1fr; } .overview-value { font-size: 28px; } } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .stat-card, .chart-card, .overview-card { animation: fadeInUp 0.6s ease-out; } .chart-card:nth-child(2) { animation-delay: 0.1s; } .chart-card:nth-child(3) { animation-delay: 0.2s; } .chart-card:nth-child(4) { animation-delay: 0.3s; } /* 滚动条样式 */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* 加载动画 */ .loading-spinner { text-align: center; } .loading-spinner i { font-size: 48px; color: #667eea; animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* 特殊效果 */ .stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #667eea, #764ba2, #667eea); border-radius: 20px 20px 0 0; opacity: 0.7; } .overview-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 15px 15px 0 0; opacity: 0.5; }