/* ============================================
   鱼骨图样式
   ============================================ */

.fishbone-container {
    width: 100%;
    height: 500px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: auto;
}

.fishbone-container svg {
    width: 100%;
    height: 100%;
}

.fishbone-controls {
    padding: 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
}

.fishbone-node {
    cursor: pointer;
}

.fishbone-node:hover rect {
    fill: #e6f7ff;
}

.fishbone-link {
    fill: none;
    stroke: #999;
    stroke-width: 1.5px;
}

.fishbone-node rect {
    fill: #fff;
    stroke: var(--primary-color);
    stroke-width: 2px;
    rx: 4;
}

.fishbone-node text {
    font-size: 12px;
    fill: var(--text-color);
    dominant-baseline: middle;
    text-anchor: middle;
}

.fishbone-node.root rect {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.fishbone-node.root text {
    fill: #fff;
    font-weight: 600;
}

.fishbone-tooltip {
    position: absolute;
    z-index: 2000;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(24, 28, 35, 0.94);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    white-space: normal;
}

.fishbone-tooltip strong {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 13px;
}

.fishbone-tooltip em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}
