/* 自定义弹窗样式 */
.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: 1000;
}

.custom-alert-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    border-left: 5px solid #34c759; /* 默认绿色边框 */
}

.custom-alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-alert-icon {
    font-size: 28px;
    margin-right: 10px;
}

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

.custom-alert-icon.success {
    color: #34c759;
}

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

.custom-alert-icon.info {
    color: #007aff;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: bold;
    flex-grow: 1;
}

.custom-alert-content {
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.custom-alert-button {
    width: 100%;
    padding: 10px;
    background-color: #34c759; /* 默认使用绿色按钮 */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-alert-button:hover {
    background-color: #2aa147; /* 深绿色 */
}

/* 针对错误弹窗的特殊样式 */
.custom-alert-box.error {
    background-color: #ffebeb; /* 浅红色背景 */
    border-left: 5px solid #ff3b30; /* 红色边框 */
}

.custom-alert-box.error .custom-alert-title {
    color: #ff3b30;
}

.custom-alert-box.error .custom-alert-button {
    background-color: #ff3b30;
}

.custom-alert-box.error .custom-alert-button:hover {
    background-color: #d9302c;
}

/* 针对警告弹窗的特殊样式 */
.custom-alert-box.warning {
    background-color: #fff9eb; /* 浅黄色背景 */
    border-left: 5px solid #ff9500; /* 黄色边框 */
}

.custom-alert-box.warning .custom-alert-title {
    color: #ff9500;
}

.custom-alert-box.warning .custom-alert-button {
    background-color: #ff9500;
}

.custom-alert-box.warning .custom-alert-button:hover {
    background-color: #cc7a00;
}

/* 针对信息弹窗的特殊样式 */
.custom-alert-box.info {
    background-color: #e6f2ff; /* 浅蓝色背景 */
    border-left: 5px solid #007aff; /* 蓝色边框 */
}

.custom-alert-box.info .custom-alert-title {
    color: #007aff;
}

.custom-alert-box.info .custom-alert-button {
    background-color: #007aff;
}

.custom-alert-box.info .custom-alert-button:hover {
    background-color: #0056b3;
}
