* {
    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%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .meta {
    color: #666;
    font-size: 1.1em;
}

.team-selector {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.team-selector label {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
}

.team-selector select {
    padding: 12px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    min-width: 280px;
    background: white;
    transition: border-color 0.3s;
}

.team-selector select:hover {
    border-color: #667eea;
}

.team-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-card .value {
    color: #333;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1.2;
}

.stat-card.wins .value {
    color: #10b981;
}

.stat-card.losses .value {
    color: #ef4444;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.chart-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.95em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 响应式 */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header {
        padding: 20px;
    }
    
    .team-selector {
        padding: 20px;
    }
    
    .team-selector label {
        display: block;
        margin-bottom: 10px;
    }
    
    .team-selector select {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card .value {
        font-size: 2em;
    }
    
    .chart-container {
        padding: 20px;
    }
}
