/* 自定义弹窗背景遮罩 */
.custom-alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 自定义弹窗主体 */
.custom-alert {
    background: #fff;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    z-index: 9999;
    text-align: center;
}

/* 弹窗标题 */
.custom-alert h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 弹窗内容 */
.custom-alert p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* 按钮容器 */
.custom-alert .btn-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* 按钮基础样式 */
.custom-alert button {
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

/* 登录按钮 */
.custom-alert .btn-login {
    background: var(--black777);
    color: white;
}

.custom-alert .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(4 198 102 / 50%);
}

/* 取消按钮 */
.custom-alert .btn-cancel {
    background: #f1f1f1;
    color: #666;
}

.custom-alert .btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .custom-alert {
        width: 280px;
        padding: 20px;
    }

    .custom-alert .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}