/* 自定义弹窗样式 */
#customAlert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* 确保显示在最前面 */
    justify-content: center;
    align-items: center;
}

#customAlert.show {
    display: flex;
}

#customAlert .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

#customAlert p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

#customAlert .alert-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#customAlert button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#alertConfirm {
    background-color: var(--primary-color);
    color: white;
}

#alertConfirm:hover {
    background-color: #2980b9;
}

#alertCancel {
    background-color: #e0e0e0;
    color: #333;
}

#alertCancel:hover {
    background-color: #ccc;
}
