.chart-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.chart-tab-btn {
    padding: 6px 16px;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.chart-tab-btn:hover {
    background: #e0e0e0;
}

.chart-tab-btn.active {
    background: #667eea;
    color: white;
}

.chart-panel {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.chart-panel.active {
    display: flex;
    flex-direction: column;
}

.zoom-controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.zoom-btn {
    padding: 4px 12px;
    background: #e0e0e0;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

.zoom-btn:hover {
    background: #ccc;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    cursor: grab;
}

.chart-container:active {
    cursor: grabbing;
}

.chart-container canvas {
    max-height: 100%;
    width: 100%;
}

.pie-chart-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.pie-chart-container canvas {
    max-width: 400px;
    max-height: 400px;
}

/* 年份图表的容器也支持拖拽光标 */
#yearChart {
    cursor: grab;
}

#yearChart:active {
    cursor: grabbing;
}