@charset "UTF-8";

/* 页面主容器 */
.graph_wrap {
    display: flex;
    width: 100%;
    height: calc(100vh - 82px);
    min-height: 700px;
    background: url(/imgs/chain_bg.png) no-repeat center/cover;
}

.graph_wrap * {
    box-sizing: border-box;
}

/* 右侧主内容区 */
.main_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 图表头部 */
.graph_header {
    padding: 20px 30px;
    z-index: 5;
}

.graph_title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
}

/* 图表容器 */
.graph_container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#graph_chart {
    width: 100%;
    height: 100%;
}

/* 节点标签样式 */
.node-label {
    font-family: "Microsoft Yahei", "SimSun", sans-serif;
    font-size: 12px;
    color: #333;
}

/* 图表下方的标签文字 */
.node-label-below {
    font-family: "Microsoft Yahei", "SimSun", sans-serif;
    font-size: 12px;
    color: #333;
    margin-top: 4px;
}

/* 背景城市剪影效果 */
.graph_container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(200, 220, 240, 0.3) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* 响应式适配 */

@media screen and (max-width: 768px) {
    #top-blank2023 {
        height: 3em;
    }
    
    .graph_wrap {
        min-height: calc(100vh - 3em);
    }
    
    .graph_header {
        padding: 15px 20px;
    }
    
    .graph_title {
        font-size: 18px;
    }
    
    .graph_container {
        min-height: 400px;
    }
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e6e6e6;
    border-top-color: #0041b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐藏元素 */
.none {
    display: none !important;
}
