
.toast-notification {

    position: fixed;

    right: 20px;
    min-width: 300px;
    max-width: 500px;
    margin-left: 20px;
    padding-left: 100px;
    padding-right: 45px;
    padding-top: 25px;
    padding-bottom: 25px;
    min-height: 80px;
    max-height: 120px;
    background: #fff;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    z-index: 9999;


    display: flex;
    align-items: center;
    justify-content: center;


    animation: slideIn 0.2s ease-out forwards;
    overflow: hidden;
}


.toast-notification::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #4636ff;
}

.toast-notification::before {
    content: attr(data-icon);
    position: absolute;
    /*top: 50%;*/
    left: 37px;
    padding-top: 15px;
    padding-bottom: 15px;
    transform: translateY(-3%);
    font-size: 40px;
    line-height: 1;
}



.toast-notification--success::after {
    background-color: #4caf50 !important;
}
.toast-notification--success::before {
    color: #4caf50 !important;
}

.toast-notification--dev::after {
    background-color: #4caf50 !important;
}
.toast-notification--dev::before {
    color: #4caf50 !important;
}

.toast-notification--warn::after {
    background-color: #ff9800 !important;
}
.toast-notification--warn::before {
    color: #ff9800 !important;
}

.toast-notification--error::after {
    background-color: #f44336 !important;
}
.toast-notification--error::before {
    color: #f44336 !important;
}



.toast-notification--error.error-flash {
    animation:
            slideIn     0.2s ease-out forwards,
            errorFlash  0.8s ease-in-out 0.4s 1;
}

/* 退出动画（保持不变） */
@keyframes slideOut {
    from { right: 20px; opacity: 1; }
    to   { right: -320px; opacity: 0; }
}

/* 进入动画（改成更快） */
@keyframes slideIn {
    from { right: -320px; opacity: 0; }
    to   { right:  20px; opacity: 1; }
}

/* error 的闪烁阴影 */
@keyframes errorFlash {
    0%   { box-shadow: 0 0   0px rgba(244,67,54,0.8); }
    50%  { box-shadow: 0 0  12px rgba(244,67,54,0.8); }
    100% { box-shadow: 0 0   0px rgba(244,67,54,0.8); }
}