@media only screen and (min-width: 768px) {
    .eb-menu, .eb-title  {
        display: none;
    }
}
@media only screen and (min-width: 1024px) {
    .container {
        width: 1000px;
    }
    #main .container > .wrapper {
        margin-right: calc(28% + 10px);
    }
}
@media only screen and (max-width: 768px) {
    #header .container {
        padding: 0 12px;
    }
    #search #search-input, .nav {
        display: none;
    }
    #search .search-icon {
        position: static;
        width: auto;
        padding: 10px 2px 10px 10px;
        margin-right: 10px;
    }
    .nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 64px;
        background-color: #fff;
        box-shadow: 0 2px 4px var(--c-shadow-1);
        border-top: solid 1px var(--c-shadow-1);
        z-index: 11;
    }
    .nav .nav-item {
        display: flex;
        justify-content: center;
        border-bottom: solid 1px var(--c-shadow-1);
    }
    .nav .nav-item .nav-link {
        height: 46px;
        font-size: 15px;
    }
    .nav-link.active span::after {
        bottom: -4px;
    }

    .container {
        width: 100%;
        box-sizing: border-box;
    }
    .eb-menu {
        display: flex;
        align-items: center;
        font-size: 18px;
        padding: 10px 0;
    }
    .eb-title {
        flex-grow: 1;
        margin-left: 10px;
    }
    #main .container .left, #main .pagination, #footer .container > .wrapper {
        margin-right: 0;
    }

    #main .card .cover, #side-card .item1 {
        display: none;
    }

    .category.container {
        padding: 20px;
    }
    .container .right {
        display: none;
    }
    .category-2.container .category-card {
        margin-right: 0;
    }
    .category.container .category-card {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 3%;
    }
    .category.container .cover, .category-2.container .cover {
        height: 40px;
        flex: 60px 0 0;
    }
    .category-card .content {
        align-items: center;
    }

    .back {
        position: fixed;
        right: 20px;
        bottom: 20px;
        border-radius: 50%;
        box-shadow: 0 2px 4px var(--c-shadow-1);
        background-color: rgba(250, 106, 99, 0.9);
        color: #fff;
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    #search-result {
        position: fixed;
        left: 0;
        top: 64px;
        min-height: 100px;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 10px 0;
    }
    #search-result .content {
        max-height: 150px;
        padding-left: 0;
        padding-right: 0;
    }
    #search-result .arrow {
        left: initial;
        right: 46px;
    }
    #search-input-2 {
        display: block;
        font-size: 15px;
    }
    /*手机端只显示目录*/
    #sc-box .side-card:not(#toc) {
        height: 0;
        opacity: 0;
    }
    #sc-box .side-card .content {
        transition: all 200ms;
        opacity: 0;
    }
    #sc-box {
        top: 69px;
        right: -62px;
        transition: all 200ms;
    }
    #toc {
        background-color: rgba(255, 255, 255, 0.8);
        padding: 18px 12px 10px 12px;
        border-radius: 10px;
    }
    #toc .title {
        font-size: 13px;
    }
    #toc .content .item1 {
        font-size: 12px;
    }
    #toc .item1, #toc .title {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
}