.tooltip {
    position: absolute;
    text-align: center;
    padding: 8px;
    font: 12px sans-serif;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    pointer-events: none;
}


.h3 {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    margin-bottom: 20px; 
}

.node rect {
    cursor: move;
    fill-opacity: .9;
    shape-rendering: crispEdges;
}

.node text {
    pointer-events: none;
    text-shadow: 0 1px 0 #fff;
    font-family: Helvetica, Arial, sans-serif;  /* 添加这行 */
    font-size: 12px;
}

.link {
    fill: none;
    stroke: #000;
    stroke-opacity: .05;
}

.link:hover {
    stroke-opacity: .25;
    cursor: pointer;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    min-width: 320px;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

.chart-wrapper {
    position: relative;
    /* 修改为固定高度或最小高度 */
    min-height: 800px;  /* 与 chartHeight 相同 */
    width: 100%;
}

svg, canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
/* 添加响应式页脚样式 */
footer {
    margin-top: autp;  /* 将页脚推到底部 */
    font-size: calc(0.8rem + 0.2vw);
}

/* 在小屏幕上调整间距 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .chart-wrapper {
        margin: 10px 0;
    }
}
