@media only screen and (max-width: 900px) {

    /* 模态框样式 */
    #myModal.modal {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
    }

    .modal-content {
        position: relative;
        top: calc(50vh - 70px);
        left: calc(50vw - 120px);
        background-color: #fff;
        text-align: center;
        width: 240px;
        height: 140px;
        border: none;
    }

    /* 图片和关闭按钮样式 */
    #myModal .modal-img-container {
        position: relative;
        display: inline-block;
        padding: 0;
    }

    #myModal .modal-img-container img {
        margin: 0;
        width: 240px;
        height: 140px;
    }

    #myModal .close-btn {
        position: absolute;
        top: 2px;
        right: 2px;
        background-color: #333;
        color: #fff;

        font-size: 14px;
        letter-spacing: 2px;
        border: none;
        cursor: pointer;
        transition: opacity 0.2s ease-in-out;
        background-color: rgba(0, 0, 0, 0);
    }

    #myModal .close-btn:hover {
        opacity: 0.8;
    }


    /* 禁用下层元素 */
    #myModal .disable-interaction {
        pointer-events: none;
    }


}

@media only screen and (min-width: 900px) {

    /* 模态框样式 */
    #myModal.modal {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        text-align: center;
    }

    #myModal .modal-content {
        position: relative;
        top: calc(50vh - 350px);
        left: calc(50vw - 600px);
        background-color: #fff;
        text-align: center;
        width: 1200px;
        height: 700px;
        border: none;
    }

    /* 图片和关闭按钮样式 */
    #myModal .modal-img-container {
        position: relative;
        display: inline-block;
        padding: 0;
    }

    #myModal .modal-img-container img {
        margin: 0;
        width: 1200px;
        height: 700px;
    }

    #myModal .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: #333;
        color: #fff;
        padding: 6px 10px;
        font-size: 16px;
        letter-spacing: 5px;
        border: none;
        cursor: pointer;
        transition: opacity 0.2s ease-in-out;
        background-color: rgba(0, 0, 0, 0);
    }

    #myModal .close-btn:hover {
        opacity: 0.8;
    }


    /* 禁用下层元素 */
    #myModal .disable-interaction {
        pointer-events: none;
    }

}