* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

.network-container {
    position: relative;
    height: 88vh;
    border-radius: 10px;
    border: 3px solid #ccc;
    overflow: hidden;
    margin: 1vh 5%;
    margin-left: 85px;
    margin-right: 85px;
}

#network-graph {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 节点样式 */
.node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node:hover {
    stroke-width: 2px;
    stroke: #ffffff;
    background-color: hsla(273, 45%, 80%, 0.861);  /* 深蓝色 */
    box-shadow: 0 0 10px hsla(273, 45%, 80%, 0.861);
    transition: all 0.3s ease;
}

/* 关系线样式 */
.link {
    stroke: #999;
    stroke-opacity: 0.6;
}

/* 关系标签样式 */
.link-label {
    font-size: 12px;
    fill: #777;
    pointer-events: none;
    transform: translateY(-8px);
}

/* 信息面板样式 */
#info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1000; /* 确保足够高 */
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    color: #333;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

#info-content {
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #ffffff;
    margin-right: 5px;
}

.node-label {
    white-space: pre;
    pointer-events: none;
    fill: #333;
    dominant-baseline: middle;
    /* 垂直居中 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    /* 增强对比度 */
    transform: translateY(0.1em);

    /* 微调垂直位置 */
}

#network-graph svg {
    overflow: visible;
    /* 允许边缘溢出显示 */
    margin: 0 auto;
}
/* 在Relationship.css末尾添加 */
/* 下载按钮样式 */
.download-container {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

.download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 19px;
    background-color: hsla(273, 25%, 50%, 0.861);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-btn:hover {
    background-color: hsla(273, 45%, 80%, 0.861);  /* 深蓝色 */
    transform: translateY(4px) scale(1.05);
    box-shadow: 0 0 10px hsla(273, 45%, 80%, 0.861);
    transition: all 0.3s ease;
}

.download-btn .icon {
    font-size: 24px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.download-btn:hover .icon {
    transform: scale(1.1);
}

@keyframes flow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .download-btn .icon {
        font-size: 20px;
        margin-right: 12px;
    }
}