/* =====================================================================
   🎨 BBSGOOD Iframe 沙箱弹窗样式 - 丝滑流畅适配
   ===================================================================== */

/* 1. 遮罩层 */
.bbs-auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 9, 19, 0.82);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bbs-auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. 弹窗框体 */
.bbs-auth-modal {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    width: 440px;          /* 保证宽屏显示舒服 */
    max-width: 92%;
    height: 520px;         /* 固定容器高度，长表单在内部 iframe 里滚动 */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.bbs-auth-overlay.active .bbs-auth-modal {
    transform: scale(1);
}

/* 关闭按钮 */
.bbs-auth-close {
    position: absolute;
    right: 18px;
    top: 14px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s;
}
.bbs-auth-close:hover {
    color: #f8fafc;
    background: #ef4444;
    border-color: #ef4444;
}

/* 3. 🌟 关键：对 iframe 容器的无缝剔除和无感伪装 */
#bbsAuthIframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    border-radius: 16px;
}

/* 4. 轻量提示 */
.bbs-toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    opacity: 0;
    transition: all 0.3s ease;
}
.bbs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}