/* 自定义提示弹窗样式 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000; /* 确保在最上层 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: #fff;
    width: 360px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.custom-alert-header {
    padding: 12px 20px;
    background-color: #4a6fa5; /* 主色调 */
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-alert-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.custom-alert-close:hover {
    color: #fff;
}

.custom-alert-body {
    padding: 24px 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.custom-alert-footer {
    padding: 12px 20px 20px;
    display: flex;
    justify-content: center;
}

.custom-alert-btn {
    background-color: #4a6fa5;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 80px;
}

.custom-alert-btn:hover {
    background-color: #3d5d8a;
}

/* 不同类型的样式变体 */
.custom-alert-success .custom-alert-header {
    background-color: #E0F7E9; /* 浅绿色背景 */
    color: #2e7d32; /* 深绿色文字 */
}
.custom-alert-success .custom-alert-close {
    color: #2e7d32;
}
.custom-alert-success .custom-alert-btn {
    background-color: rgba(65, 209, 127, 0.15); /* 浅一点的绿色背景 */
    color: #41D17F;
    border: 1px solid rgba(65, 209, 127, 0.3);
}
.custom-alert-success .custom-alert-btn:hover {
    background-color: rgba(65, 209, 127, 0.25);
}

.custom-alert-warning .custom-alert-header {
    background-color: #FFF3E0; /* 浅橙色 */
    color: #ef6c00;
}
.custom-alert-warning .custom-alert-close {
    color: #ef6c00;
}
.custom-alert-warning .custom-alert-btn {
    background-color: rgba(243, 166, 41, 0.15);
    color: #F3A629;
    border: 1px solid rgba(243, 166, 41, 0.3);
}
.custom-alert-warning .custom-alert-btn:hover {
    background-color: rgba(243, 166, 41, 0.25);
}

.custom-alert-error .custom-alert-header {
    background-color: #FFEBEE; /* 浅红色 */
    color: #c62828;
}
.custom-alert-error .custom-alert-close {
    color: #c62828;
}
.custom-alert-error .custom-alert-btn {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}
.custom-alert-error .custom-alert-btn:hover {
    background-color: rgba(231, 76, 60, 0.25);
}
