/* 自定义alert弹窗样式 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.custom-alert-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    width: 28.75rem;
    animation: alertShow 0.2s ease-out;
}

@keyframes alertShow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.custom-alert-content {
    padding:1.375rem 1.0625rem 1.25rem 1.0625rem;
}

.custom-alert-message {
    font-size: 0.8125rem;
    color: #343434;
    line-height: 1.5;
    word-wrap: break-word;
    /*min-height: 3.4375rem;*/
    margin-bottom: 0.5625rem;
}
.custom-alert-message-title{
    margin-bottom: 0.5625rem !important;
    min-height: auto !important;
    font-size: 0.9375rem !important;
}

.custom-alert-buttons {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}
.custom-alert-buttons-box{
    display: flex;
    justify-content: flex-end;
    border: 2px solid #1d72e4;
    border-radius: 9px;
    padding: 2px;
    width: max-content;
}
.custom-alert-btn {
    letter-spacing: 1px;
    background-color: #1d72e4;
    color: #fff;
    border: none;
    padding: 0.5rem 1.4375rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.custom-alert-btn:hover {
    background-color: #0056b3;
}
.custom-alert-buttons:hover {
    .custom-alert-buttons-box{
        animation: shakeAndScale 0.6s ease-in-out;
    }
}
@keyframes shakeAndScale {
    0% {
        border-color: rgba(29,114,228,0);
    }
    25% {
        border-color: rgba(29,114,228,.25);
    }
    50% {
        border-color: rgba(29,114,228,.50);
    }
    75% {
        border-color: rgba(29,114,228,.75);
    }
    100% {
        border-color: rgba(29,114,228,1);
    }
}


/* 小屏幕设备 (平板竖屏) */
@media (min-width: 768px) and (max-width: 991px) {


    /*.custom-alert-container {*/
    /*    width: 80% !important;*/
    /*}*/
    /*.custom-alert-message-title{*/
    /*    text-align: center;*/
    /*    font-size: 2rem;*/
    /*}*/
    /*.custom-alert-message{*/
    /*    font-size: 1.5625rem !important;*/
    /*}*/
    /*.custom-alert-buttons-box{*/
    /*    justify-content: center !important;*/
    /*}*/
    /*.custom-alert-btn{*/
    /*    font-size: 1.25rem !important;*/
    /*}*/
}

/* 超小屏幕设备 (手机) */
@media (min-width: 481px) and (max-width: 767px) {


    .custom-alert-container {
        width: 80% !important;
    }
    .custom-alert-message-title{
        text-align: center;
        font-size: 2rem;
    }
    .custom-alert-message{
        font-size: 1.5625rem !important;
    }
    .custom-alert-buttons-box{
        justify-content: center !important;
    }
    .custom-alert-btn{
        font-size: 1.25rem !important;
    }
}


/* 极小屏幕设备 (小手机) */
@media (max-width: 480px) {

    .custom-alert-container {
        width: 80% !important;
    }
    .custom-alert-message-title{
        /*text-align: center;*/
        font-size: 2rem;
    }
    .custom-alert-message{
        font-size: 1.5625rem !important;
    }
    .custom-alert-btn{
        font-size: 1.25rem !important;
    }
}