/* ----- 數據分析頁面 ----- */
.analytics-section { min-height: 100vh; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 1rem; padding: 2rem; }
.chart-card h4 { color: var(--glow-primary); margin-bottom: 1.5rem; }
.chart-card h4 i { margin-right: 0.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: 1.5rem; background: var(--bg-darker); border-radius: 0.75rem; }
.stat-value { font-size: 2rem; font-weight: bold; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.pie-chart-container { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.pie-chart { width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--level-god) 0deg 0deg, var(--level-dragon) 0deg 90deg, var(--level-demon) 90deg 216deg, var(--level-tiger) 216deg 306deg, var(--level-wolf) 306deg 360deg); position: relative; }
.pie-chart::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; background: var(--bg-card); border-radius: 50%; transform: translate(-50%, -50%); }
.pie-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.legend-color { width: 16px; height: 16px; border-radius: 3px; }
.legend-color.god { background: var(--level-god); }
.legend-color.dragon { background: var(--level-dragon); }
.legend-color.demon { background: var(--level-demon); }
.legend-color.tiger { background: var(--level-tiger); }
.legend-color.wolf { background: var(--level-wolf); }
.bar-chart { display: flex; flex-direction: column; gap: 1rem; }
.bar-item { display: flex; align-items: center; gap: 1rem; }
.bar-label { width: 100px; font-size: 0.9rem; color: var(--text-secondary); flex-shrink: 0; }
.bar-container { flex: 1; height: 30px; background: var(--bg-darker); border-radius: 0.5rem; overflow: hidden; }
.bar { height: 100%; border-radius: 0.5rem; transition: width 1s ease; }
.bar.dragon { background: var(--gradient-dragon); }
.bar.demon { background: var(--gradient-demon); }
.bar.tiger { background: var(--gradient-tiger); }
.bar.wolf { background: var(--gradient-wolf); }
.bar-value { width: 100px; text-align: right; font-size: 0.9rem; color: var(--text-muted); }
.line-chart { position: relative; height: 250px; background: var(--bg-darker); border-radius: 0.75rem; padding: 1rem; }
.chart-grid { position: absolute; top: 1rem; left: 1rem; right: 1rem; bottom: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.grid-line { border-bottom: 1px dashed var(--border-color); }
.trend-line { position: absolute; top: 1rem; left: 1rem; right: 1rem; bottom: 3rem; }
.chart-labels { position: absolute; bottom: 0.5rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.progress-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.progress-item { display: flex; align-items: center; gap: 1rem; }
.progress-label { display: flex; align-items: center; gap: 0.5rem; width: 200px; flex-shrink: 0; font-size: 0.9rem; }
.progress-track { flex: 1; height: 20px; background: var(--bg-darker); border-radius: 0.5rem; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 0.5rem; transition: width 1s ease; }
.progress-fill.god { background: var(--gradient-god); }
.progress-fill.dragon { background: var(--gradient-dragon); }
.progress-fill.demon { background: var(--gradient-demon); }
.progress-fill.tiger { background: var(--gradient-tiger); }
.progress-fill.wolf { background: var(--gradient-wolf); }
.progress-percent { width: 80px; text-align: right; font-size: 0.9rem; color: var(--glow-secondary); }