:root {
    --primary: #8B0000;
    --primary-light: #C1272D;
    --primary-lighter: #E6676B;
    --primary-pale: #F8D7DA;
    --text: #333333;
    --text-light: #666666;
    --bg: #FAFAFA;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.id-badge {
    font-family: monospace;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9em;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chart-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-btn.active {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    min-height: 500px;
}

#chart-display {
    width: 100%;
    height: 100%;
}

#server-control {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#server-control:hover {
    background: var(--primary);
    color: white;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary);
    color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chart-controls {
        flex-direction: column;
    }
}