/**
 *51ziy.com版权所有，未经允许请勿复制！
 */
#custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 99999; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; 
    display: none; 
}

#custom-alert-overlay.active {
    opacity: 1;
    pointer-events: auto; 
    display: block;
}

#custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); 
    padding: 20px 28px;
    background-color: #ffffff; 
    color: #333740;
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 6px 15px rgba(0, 0, 0, 0.1);
    z-index: 100000; 
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 15px; 
    font-weight: 500; 
    line-height: 1.6;
    display: flex;
    align-items: center;
    min-width: 280px;
    max-width: 450px;
    text-align: center;
    justify-content: center;
    border-top: 4px solid #4A90E2;
    display: none;
}

#custom-alert::before { 
    content: "!"; 
    font-size: 22px;
    font-weight: bold;
    margin-right: 12px;
    color: #4A90E2; 
    border: 2px solid #4A90E2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 28px; 
    text-align: center;
    flex-shrink: 0; 
}


#custom-alert.success::before {
    content: "✓"; 
    color: #4CAF50;
    border-color: #4CAF50;
}
#custom-alert.success {
    border-top-color: #4CAF50;
}

#custom-alert.error::before {
    content: "×"; 
    color: #f44336;
    border-color: #f44336;
}
#custom-alert.error {
    border-top-color: #f44336;
}

#custom-alert.info::before {
    content: "i";
    font-style: italic;
    font-weight: bold;
    color: #2196F3;
    border-color: #2196F3;
}
#custom-alert.info {
    border-top-color: #2196F3;
}


#custom-alert.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); 
    pointer-events: auto;
    display: flex; 
}


body.dark-theme #custom-alert-overlay {
    background-color: rgba(20, 20, 20, 0.6); 
}

body.dark-theme #custom-alert {
    background-color: #313843; 
    color: #e0e0e0; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 6px 15px rgba(0, 0, 0, 0.25);
    border-top-color: #58a6ff; 
}

body.dark-theme #custom-alert::before {
    color: #58a6ff;
    border-color: #58a6ff;
}

body.dark-theme #custom-alert.success::before {
    color: #66bb6a;
    border-color: #66bb6a;
}
body.dark-theme #custom-alert.success {
    border-top-color: #66bb6a;
}

body.dark-theme #custom-alert.error::before {
    color: #ef5350;
    border-color: #ef5350;
}
body.dark-theme #custom-alert.error {
    border-top-color: #ef5350;
}

body.dark-theme #custom-alert.info::before {
    color: #42a5f5;
    border-color: #42a5f5;
}
body.dark-theme #custom-alert.info {
    border-top-color: #42a5f5;
}