  /* 遮罩层 */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* 遮罩层淡入动画 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

/* 弹框主体 */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    z-index: 1001;
    /* 弹框缩放和淡入动画 */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 标题样式 */
.modal h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

/* 消息内容 */
.modal p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

/* 关闭按钮 */
.close-btn {
    background-color: #FF6905;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #e85f04;
}

/* 触发按钮样式 */
.trigger-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
    transition: background-color 0.2s ease;
}

.trigger-btn:hover {
    background-color: #218838;
}

/* 不同类型的弹框颜色 */
.modal.success h3 {
    color: #28a745;
}

.modal.error h3 {
    color: #dc3545;
}

.modal.warning h3 {
    color: #ffc107;
}

/* 按钮容器 */
.modal-buttons {
    margin-top: 20px;
}

.modal-buttons button {
    margin: 0 5px;
}

.cancel-btn {
    background-color: #6c757d;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #545b62;
}