/* 全局样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; } .container { max-width: 1400px; margin: 0 auto; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; } /* 头部 */ header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; text-align: center; } header h1 { font-size: 2.5em; margin-bottom: 10px; } .subtitle { font-size: 1.1em; opacity: 0.9; } /* 标签页导航 */ .tabs { display: flex; background: #f8f9fa; border-bottom: 2px solid #e9ecef; } .tab-btn { flex: 1; padding: 15px 20px; background: none; border: none; font-size: 1.1em; cursor: pointer; transition: all 0.3s; color: #666; font-weight: 500; } .tab-btn:hover { background: #e9ecef; } .tab-btn.active { background: white; color: #667eea; border-bottom: 3px solid #667eea; } /* 标签页内容 */ .tab-content { display: none; padding: 30px; } .tab-content.active { display: block; } /* 区域头部 */ .section-header { margin-bottom: 25px; } .section-header h2 { color: #333; margin-bottom: 15px; } .controls { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; } .controls label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #555; } .controls select, .controls input { padding: 8px 12px; border: 2px solid #e9ecef; border-radius: 6px; font-size: 0.95em; transition: border-color 0.3s; } .controls select:focus, .controls input:focus { outline: none; border-color: #667eea; } .btn-primary { padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 6px; font-size: 0.95em; font-weight: 600; cursor: pointer; transition: transform 0.2s; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); } .btn-secondary { padding: 10px 20px; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; border: none; border-radius: 6px; font-size: 0.95em; font-weight: 600; cursor: pointer; transition: transform 0.2s; } .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4); } /* 统计卡片 */ .stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 25px; } .stat-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; border-radius: 12px; color: white; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .stat-card h3 { font-size: 0.9em; opacity: 0.9; margin-bottom: 10px; } .stat-value { font-size: 1.8em; font-weight: bold; } /* 表格样式 */ .table-container { overflow-x: auto; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } table { width: 100%; border-collapse: collapse; background: white; } thead { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } thead th { padding: 15px; text-align: left; font-weight: 600; font-size: 0.95em; } tbody tr { border-bottom: 1px solid #e9ecef; transition: background 0.2s; } tbody tr:hover { background: #f8f9fa; } tbody td { padding: 12px 15px; font-size: 0.9em; } /* 颜色标记 */ .positive { color: #28a745; font-weight: 600; } .negative { color: #dc3545; font-weight: 600; } .neutral { color: #6c757d; } .font-bold { font-weight: 900 !important; font-size: 1.05em; background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); } .badge-win { background: #28a745; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.85em; font-weight: 600; } .badge-loss { background: #dc3545; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.85em; font-weight: 600; } /* 图表容器 */ .chart-container { position: relative; height: 500px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } /* 对比网格 */ .comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; } .compare-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } .compare-card h3 { color: #667eea; margin-bottom: 15px; border-bottom: 2px solid #e9ecef; padding-bottom: 10px; } .stats-list p { margin: 8px 0; padding: 8px; background: #f8f9fa; border-radius: 6px; } /* 分析网格 */ .analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 25px; } .chart-box { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); } .chart-box h3 { color: #667eea; margin-bottom: 15px; text-align: center; } .chart-box canvas { max-height: 300px; } /* 页脚 */ footer { background: #f8f9fa; padding: 20px; text-align: center; color: #666; margin-top: 30px; } /* 响应式设计 */ @media (max-width: 768px) { header h1 { font-size: 1.8em; } .tabs { flex-direction: column; } .controls { flex-direction: column; align-items: stretch; } .stats-cards { grid-template-columns: 1fr; } .chart-container { height: 300px; } }