.relationship-graph-container {
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 20px auto;
    background-color: #f9f6f0;
    border: 1px solid #d4b95e;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

#relationship-graph {
    width: 100%;
    height: 100%;
}

#relationship-graph svg {
    display: block;
    margin: 0 auto;
}

#relationship-graph circle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#relationship-graph circle:hover {
    stroke: #ff6347;
    stroke-width: 2px;
}

#relationship-graph text {
    pointer-events: none;
    user-select: none;
}

.graph-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
    color: #8b4513;
    font-weight: bold;
}

.graph-legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #d4b95e;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-color.sindberg {
    background-color: #ff6347;
}

.legend-color.other {
    background-color: #1f77b4;
}

/* 事件提示框样式 */
.event-tooltip {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.fixed-info-box {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.fixed-info-box h3 {
    font-size: 16px;
    border-bottom: 1px solid #d4b95e;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.fixed-info-box ul {
    margin-top: 0;
}

.fixed-info-box li:hover {
    text-decoration: underline;
}