/**
 * Custom Alert Styles
 * 自定义弹窗样式
 */

/* 遮罩层 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* 弹窗主体 */
.custom-alert-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1);
    opacity: 1;
}

/* 图标区域 */
.custom-alert-icon {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: center;
}

.custom-alert-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 不同类型的图标颜色 */
.alert-info .custom-alert-icon i {
    color: #3b82f6;
}

.alert-success .custom-alert-icon i {
    color: #10b981;
}

.alert-warning .custom-alert-icon i {
    color: #f59e0b;
}

.alert-error .custom-alert-icon i {
    color: #ef4444;
}

/* 内容区域 */
.custom-alert-content {
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.custom-alert-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.custom-alert-message {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 底部按钮区域 */
.custom-alert-footer {
    padding: 0 2rem 2rem;
    display: flex;
    justify-content: center;
}

.custom-alert-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.875rem 3rem;
    border-radius: 12px;
    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-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

.custom-alert-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-alert-box {
        max-width: 340px;
    }

    .custom-alert-icon {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .custom-alert-icon i {
        font-size: 3rem;
    }

    .custom-alert-content {
        padding: 0 1.5rem 1.25rem;
    }

    .custom-alert-title {
        font-size: 1.25rem;
    }

    .custom-alert-message {
        font-size: 0.9rem;
    }

    .custom-alert-footer {
        padding: 0 1.5rem 1.5rem;
    }

    .custom-alert-btn {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    .custom-alert-box {
        background: #1f2937;
    }

    .custom-alert-title {
        color: #f9fafb;
    }

    .custom-alert-message {
        color: #d1d5db;
    }
}
