/* 针对最大宽度为 480px 的设备（通常为手机） */
.mobile-nav,
.mobile-toolbar-content,
.mobile-toolbar-modal,
.mobile-toolbar {
    display: none;
}

@media (max-width: 480px) {
    body {
        width: 100%;
        min-width: 0;
    }
    .dialog {
        width: 90%;
    }
    .translate-modal {
        bottom: 80px !important;
        right: -26px !important;
        opacity: .4;
        transition: all .3s;
    }

    .translate-modal.open-mobile {
        right: 10px !important;
        opacity: 1;
    }

    #translatemodel.translate-modal .translate-modal-control {
        display: none;
    }

    #translatemodel.translate-modal.open-mobile .translate-modal-control {
        display: flex;
    }

    #translatemodel .translate-img {
        width: 50px;
    }

    .demo-main .right-content {
        height: 100%;
        background-color: white;
        overflow-x: hidden;
    }

    .demo-main .article-total-info {
        display: none;
    }

    .demo-main .left-content {
        display: none;
    }

    .demo-main .article-main {
        width: 100%;
        padding: 0 24px 24px 24px;
        box-shadow: none;
    }

    .demo-main .article-main table {
        overflow: auto;
        white-space: nowrap;
    }

    .demo-main .table-container {
        width: 100%;
        overflow-x: auto;
    }

    body #dragElement {
        width: 100%;
    }

    .mobile-nav,
    .mobile-toolbar {
        /* display: flex; */
        position: fixed;
        gap: 12px;
        left: 0;
        align-items: center;
        background: white;
        width: 100%;
        padding: 0 12px;
    }
    .mobile-meun-show {
        display: flex;
    }
    .mobile-nav {
        top: 0;
        height: 45px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        background-color: transparent;
        backdrop-filter: blur(20px);
    }

    .p2-mobile-book-back img {
        width: 20px;
        cursor: pointer;
    }

    .p2-mobile-book-title {
        flex: 1;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
        font-weight: bold;
        font-size: 16px;
        color: #000;
    }

    .mobile-toolbar {
        height: 55px;
        z-index: 999;
        justify-content: space-around;
        bottom: 0;
        /* 底部工具栏阴影：向上扩散，与上方内容区分 */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    }

    .mobile-toolbat-item {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .mobile-toolbat-item img {
        width: 16px;
    }

    .mobile-toolbar-modal {
        /* display: flex; */
        align-items: flex-end;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99;
        padding-bottom: 55px;
    }

    .mobile-toolbar-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 80%;
        background-color: white;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .mobile-toolbar-drag {
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-toolbar-drag-tag {
        display: inline-block;
        width: 64px;
        height: 6px;
        background-color: #ebebeb;
        border-radius: 30px;
        cursor: pointer;
    }

}