/**
 * B+树可视化样式
 * @author changyadai
 * 
 * 算法特有样式 - B+树节点、叶子链和SVG渲染
 */

/* SVG 树容器 */
.tree-svg {
    display: block;
    margin: 0 auto;
    min-width: 100%;
}

/* 叶子链指示器 */
.leaf-chain-indicator {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: #22c55e;
    opacity: 0.7;
}

/* B+树节点动画 */
.bplus-node {
    transition: all 0.3s ease;
}

.bplus-node:hover rect:first-child {
    filter: url(#shadow) brightness(1.1);
}

/* B+树特有按钮 */
.btn-accent {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* 对比表格 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table td {
    color: var(--text-secondary);
}

/* B+树特有的复杂度注释样式 */
.complexity-note {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
}

/* 高亮应用场景 */
.use-case.highlight {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
}

/* 可视化容器覆盖 - 支持横向滚动 */
.visualization-container {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}
