/* 自定义提示框样式 */
.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: 9999;
}

.alert-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.alert-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.alert-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.alert-body {
    padding: 20px;
    text-align: center;
}

.alert-body p {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.alert-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.alert-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 60px;
}

.alert-btn-primary {
    background-color: #5e87eb;
    color: white;
}

.alert-btn-primary:hover {
    background-color: #4a76d4;
}

.alert-btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.alert-btn-secondary:hover {
    background-color: #d0d0d0;
}

.alert-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
}

.alert-success .alert-icon {
    background-color: #e8f5e9;
    color: #4caf50;
}

.alert-error .alert-icon {
    background-color: #ffebee;
    color: #f44336;
}

.alert-warning .alert-icon {
    background-color: #fff3e0;
    color: #ff9800;
}

.alert-info .alert-icon {
    background-color: #e3f2fd;
    color: #2196f3;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.alert-box.slide-in {
    animation: slideIn 0.3s forwards;
}

/* Toast 样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background-color: #e8f5e9;
    color: #4caf50;
}

.toast-error .toast-icon {
    background-color: #ffebee;
    color: #f44336;
}

.toast-warning .toast-icon {
    background-color: #fff3e0;
    color: #ff9800;
}

.toast-info .toast-icon {
    background-color: #e3f2fd;
    color: #2196f3;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}