/* 优雅粉白弹窗 - 完整版 */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);      /* 淡灰色半透明遮罩 */
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.alert-modal-content {
    background: #ffffff;
    border-radius: 40px;
    padding: 28px 24px 32px;
    width: 85%;
    max-width: 340px;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 40px -12px rgba(245, 100, 120, 0.35);
    border: 1px solid rgba(255, 140, 160, 0.2);
    position: relative;
}

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

/* 图标容器 - 新渐变色 */
.alert-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgb(248 164 10 / 68%), #ff8fb3);
    box-shadow: 0 8px 18px rgba(255, 110, 140, 0.25);
}

/* 图标内 SVG 样式（白色） */
.alert-modal-icon svg {
    width: 38px;
    height: 38px;
    fill: white;
    stroke: white;
    stroke-width: 1.2;
}

/* 不同提示类型共用同一渐变（覆盖原有单色背景） */
.alert-modal-icon.success,
.alert-modal-icon.error,
.alert-modal-icon.warning,
.alert-modal-icon.info {
    background: linear-gradient(to right, rgb(248 164 10 / 68%), #ff8fb3);
}

/* 标题文字 */
.alert-modal-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2d2f36;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

/* 内容文字 */
.alert-modal-text {
    font-size: 1rem;
    line-height: 1.45;
    color: #5e5e6a;
    margin: 12px 0 28px;
    padding: 0 8px;
}

/* 按钮区域布局 */
.alert-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 基础按钮样式 */
.alert-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 1 auto;
    min-width: 100px;
}

/* 单按钮（确定） - 新渐变色 + 宽度 80% */
.alert-modal-btn-single {
    background: linear-gradient(to right, rgb(248 164 10 / 68%), #ff8fb3);
    color: white;
    box-shadow: 0 6px 14px rgba(255, 100, 130, 0.3);
    width: 90%;
    max-width: 280px;
    flex: none;
}

.alert-modal-btn-single:hover {
    background: linear-gradient(to right, rgb(248 144 10 / 78%), #ff7aa8);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 80, 110, 0.35);
}

/* 双按钮：取消按钮（灰色） */
.alert-modal-btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
}

.alert-modal-btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* 双按钮：确认按钮 - 新渐变色 + 宽度 80% */
.alert-modal-btn-confirm {
    background: linear-gradient(to right, rgb(248 164 10 / 68%), #ff8fb3);
    color: white;
    box-shadow: 0 6px 14px rgba(255, 100, 130, 0.3);
    width: 80%;
    max-width: 280px;
    flex: none;
}

.alert-modal-btn-confirm:hover {
    background: linear-gradient(to right, rgb(248 144 10 / 78%), #ff7aa8);
    transform: translateY(-1px);
}

/* 点击反馈 */
.alert-modal-btn:active {
    transform: scale(0.96);
}

/* 可选：右上角关闭按钮（如需添加） */
.alert-modal-content .close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #ffeef2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #ff7a9c;
    transition: 0.2s;
}

.alert-modal-content .close-icon:hover {
    background: #ffe2e8;
    color: #ff5179;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .alert-modal-content {
        padding: 24px 20px 28px;
        border-radius: 32px;
    }
    .alert-modal-title {
        font-size: 1.5rem;
    }
    .alert-modal-icon {
        width: 64px;
        height: 64px;
    }
    .alert-modal-icon svg {
        width: 32px;
        height: 32px;
    }
    .alert-modal-btn {
        padding: 10px 20px;
        width: 90%;
    }
}