/* === 自定义确认弹窗（深色毛玻璃风格） === */

.fx-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 5, 10, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.fx-confirm-overlay.fx-show {
    opacity: 1;
}

.fx-confirm-dialog {
    position: relative;
    width: min(420px, 92%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(19, 22, 31, 0.98), rgba(10, 12, 18, 0.96));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    overflow: hidden;
    padding: 32px 28px 24px;
}

.fx-confirm-overlay.fx-show .fx-confirm-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 图标区 */
.fx-confirm-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    animation: fxConfirmIconIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes fxConfirmIconIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fx-confirm-overlay.fx-danger .fx-confirm-icon-wrap {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

/* 标题 */
.fx-confirm-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

/* 描述 */
.fx-confirm-message {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
    margin: 0 0 28px;
    padding: 0 8px;
}

/* 按钮区 */
.fx-confirm-actions {
    display: flex;
    gap: 12px;
}

.fx-confirm-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    outline: none;
}

.fx-confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fx-confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.fx-confirm-btn-ok {
    background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.fx-confirm-btn-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* 危险模式 */
.fx-confirm-overlay.fx-danger .fx-confirm-btn-ok {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.fx-confirm-overlay.fx-danger .fx-confirm-btn-ok:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* 退场动画 */
.fx-confirm-overlay.fx-hide {
    opacity: 0;
}

.fx-confirm-overlay.fx-hide .fx-confirm-dialog {
    transform: translateY(8px) scale(0.97);
    opacity: 0;
}

/* === 浅色模式覆盖 === */

body.theme-light .fx-confirm-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-light .fx-confirm-dialog {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}

body.theme-light .fx-confirm-title {
    color: #1a1a2e;
}

body.theme-light .fx-confirm-message {
    color: rgba(0, 0, 0, 0.55);
}

body.theme-light .fx-confirm-btn-cancel {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .fx-confirm-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.theme-light .fx-confirm-btn-ok {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: #fff;
}

body.theme-light .fx-confirm-btn-ok:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

body.theme-light .fx-confirm-overlay.fx-danger .fx-confirm-btn-ok {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

body.theme-light .fx-confirm-overlay.fx-danger .fx-confirm-btn-ok:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
