/* 通用提示组件样式 */
.custom-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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px 40px;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.custom-alert-overlay.active .custom-alert {
    transform: translateY(0) scale(1);
}

.alert-message {
    font-size: 1rem;
    color: var(--gray);
    margin: 20px 0;
    line-height: 1.5;
}

/* 加载动画 */
.alert-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* 按钮样式 */
.alert-btn {
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.alert-btn:hover {
    background-color: #2a86e6;
    transform: translateY(-2px);
}

/* 成功状态图标 */
.alert-success {
    color: #4cd964;
    font-size: 3rem
}

/* 错误状态图标 */
.alert-error {
    color: var(--red);
    font-size: 3rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
