/* 微信公众号弹窗样式 - 替代Bootstrap Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 0.5rem;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    outline: 0;
}

.modal-body {
    position: relative;
    padding: 1rem;
}

.modal .position-relative {
    position: relative !important;
}

.modal .position-absolute {
    position: absolute !important;
}

.modal .top-0 {
    top: 0 !important;
}

.modal .start-50 {
    left: 50% !important;
}

.modal .img-fluid {
    max-width: 100%;
    height: auto;
}

.modal .bg-transparent {
    background-color: transparent !important;
}

.modal .border-0 {
    border: 0 !important;
}

.modal .rounded-0 {
    border-radius: 0 !important;
}

/* 弹窗关闭按钮 */
.pop_close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255, 255, 255, 0.8); */
    border-radius: 50%;
    transition: background-color 0.2s ease;
    margin-top: -40px;
}

/* .pop_close:hover {
    background: rgba(255, 255, 255, 1);
} */

.pop_close img {
    width: 25px;
    height: 25px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 90%;
        margin: 1rem auto;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
}