/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.custom-alert-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

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

.custom-alert-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.custom-alert-header.error {
    background: linear-gradient(135deg, #f56565 0%, #ed64a6 100%);
}

.custom-alert-header.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.custom-alert-header.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.custom-alert-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    display: inline-block;
}

.custom-alert-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.custom-alert-body {
    padding: 2rem;
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}

.custom-alert-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(102, 126, 234, 0.05)" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(102, 126, 234, 0.03)" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(102, 126, 234, 0.02)" stroke-width="1"/></svg>');
    background-size: 200px 200px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.custom-alert-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

.custom-alert-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 120px;
}

.custom-alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.custom-alert-button-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.custom-alert-button:focus {
    outline: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-alert-content {
        width: 95%;
        max-width: none;
    }
    
    .custom-alert-header {
        padding: 1.25rem;
    }
    
    .custom-alert-icon {
        font-size: 2.5rem;
    }
    
    .custom-alert-title {
        font-size: 1.25rem;
    }
    
    .custom-alert-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .custom-alert-footer {
        padding: 0 1.5rem 1.5rem;
    }
}