
/* ============================================================================
   BI PAGE MODAL
   ============================================================================ */
.bi-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.bi-page-overlay.active {
    opacity: 1;
}

.bi-page-modal {
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 900px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-smooth);
}

.bi-page-overlay.active .bi-page-modal {
    transform: scale(1);
}

.bi-page-modal.fullscreen {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
}

.bi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-dim);
    flex-shrink: 0;
}

.bi-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bi-modal-actions {
    display: flex;
    gap: var(--space-sm);
}

.bi-modal-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bi-modal-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--nexus-primary);
    color: var(--nexus-primary);
}

.bi-modal-body {
    flex: 1;
    overflow: hidden;
    background: var(--bg-void);
}

.bi-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Button 样式调整 - 让 button 看起来像 link */
.bi-tool-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    cursor: pointer;
}
