/* 弹框样式 */
.custom-modal-overlay {
    display: none; /* 默认隐藏 */
}

.custom-modal-overlay.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-modal-box {

    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
    z-index: 0;
}

/* 可以自定义宽高的弹框样式 */


/* 自定义样式示例 - 可以根据需要覆盖 */
.custom-modal-box.custom {
    background: #2a2a3e;
}

.custom-modal-box.image-modal {
    max-width: 90%;
    width: auto;
}

.custom-modal-box.image-modal .custom-modal-content {
    padding: 0;
}

.custom-modal-header {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}



.custom-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.35rem;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-close:hover {
    color: #00d9ff;
}


.custom-modal-btn {
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-modal-btn:hover {
    -webkit-filter: brightness(120%);
    -ms-filter: brightness(120%);
    -o-filter: brightness(120%);
    -moz-filter: brightness(120%);
    opacity: 0.85\0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
