/* 全局基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 可视化容器 */
#vis {
    width: 100%;
    max-width: 1000px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vega-Lite 自动生成的交互控件样式优化 */
.vega-bind {
    margin-top: 25px;
    font-size: 14px;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* 滑动条样式微调 */
.vega-bind input[type="range"] {
    cursor: pointer;
}

/* 文档说明区域样式 */
.document-section {
    max-width: 1000px;
    width: 100%;
    margin-top: 50px;
    line-height: 1.8;
    color: #333;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.document-section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}