/* 可复用的提示模态窗口样式 */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.alert-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alert-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-modal-overlay.active .alert-modal {
    transform: translateY(0) scale(1);
}

.alert-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.alert-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-modal-icon.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.alert-modal-icon.error {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.alert-modal-icon.warning {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.alert-modal-icon.info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.alert-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.alert-modal-body {
    padding: 24px;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.alert-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    background: #f9f9f9;
}

.alert-modal-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: center;
}

.alert-modal-btn.confirm {
    background: var(--primary, #4CAF50);
    color: white;
}

.alert-modal-btn.confirm:hover {
    background: var(--primary-dark, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.alert-modal-btn.confirm:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .alert-modal {
        width: 95%;
        max-width: 350px;
    }
    
    .alert-modal-header {
        padding: 16px 20px;
    }
    
    .alert-modal-body {
        padding: 20px;
    }
    
    .alert-modal-footer {
        padding: 12px 20px;
    }
    
    .alert-modal-btn {
        padding: 8px 20px;
        min-width: 70px;
    }
}

/* 动画效果 */
@keyframes alertModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.alert-modal {
    animation: alertModalFadeIn 0.3s ease forwards;
}
