/* 上海师范大学外国语学院 响应式样式（PC ≥1200 / 平板 992-1199 / 手机 ≤767，最低适配 320px） */
@media screen and (max-width: 1875px) {
    .col_menu{box-sizing: border-box;padding: 0 20px;}
    .main2 .inner{    
        width: 1600px;
        max-width: calc(100% - 40px);
        margin: 0 auto;
    }
    .post-21{margin-left: 0;padding-left: 20px;box-sizing: border-box;max-width: calc(100% - 100px);}
    .main2 .mr{padding-right: 20px;box-sizing: border-box;}
}
@media screen and (max-width: 1660px) {
    .nav .wp-menu .menu-item a.menu-link{padding: 0 37px;}
}
@media screen and (max-width: 1560px) {
    .nav .wp-menu .menu-item a.menu-link{padding: 0 33px;}
            .footer .foot-top {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 28px 0;
        text-align: center;
    }
        .footer .foot-l {
        width: 240px;
        max-width: 100%;
    }

    .footer .foot-r {
        flex-direction: column;
        gap: 16px;
    }

    .footer .foot-r .foot-info p {
        line-height: 26px;
        font-size: 14px;
    }

    .footer .foot-code .news_list {
        display: flex;
        justify-content: center;
    }

    .footer .foot-code li.news {
        float: none;
        margin: 0 10px;
    }

    .footer .foot-bottom .bq {
        line-height: 24px;
        font-size: 13px;
        padding: 12px 0;
    }
}

/* 中屏桌面：压缩导航与页脚间距 */
@media screen and (max-width: 1439px) {
    .nav .wp-menu .menu-item a.menu-link {
        padding: 0 28px;
        font-size: 17px;
    }

    .footer .foot-r {
        gap: 40px;
    }
    .post-22 .news_list .news_imgs{width: 50%;}
    .post-22 .news_list.list1 .news .news_wz{width: calc(50% - 36px);}
}
@media screen and (max-width: 1300px){
    .nav .wp-menu .menu-item a.menu-link {
        padding: 0 24px;
    }
}
/* 平板横屏 */
@media screen and (max-width: 1199px) {
    .lib_comp--010035 .post-12 .news_imgs{padding-top: 490px;}
    .lib_comp--010035 .post-12 .slick-dots{bottom: 0;}
    .nav .wp-menu .menu-item a.menu-link {
        padding: 0 20px;
        font-size: 16px;
    }
    #head .inner {
        padding-bottom: 60px;
    }

    .header .head-left {
        width: 420px;
    }

    .header .head-right {
        margin-top: 34px;
    }

    .main1 .inner,
    .main3 .inner,
    .main4 .inner {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .post-10 .tt {
        margin-bottom: 40px;
    }

    .post-31 .tt {
        margin-bottom: 44px;
    }

    .post .tt .tit .title {
        font-size: 30px;
        line-height: 40px;
    }

    .lib_comp--010035 .mod {
        gap: 32px;
    }

    .lib_comp--010035 .post-12 .news_date {
        width: 120px;
        height: 88px;
    }

    .lib_comp--010035 .post-12 .news_date .dd {
        font-size: 36px;
        line-height: 50px;
    }

    .lib_comp--010035 .post-13 .news_con {
        padding-left: 20px;
        padding-right: 16px;
        height: auto;
        min-height: 100px;
    }
    .post-22{margin-left: 40px;}

    .mbanner .slick-dots {
        right: 40px;
        bottom: 20px;
    }

    .mbanner .slick-prev {
        left: 20px;
    }

    .mbanner .slick-next {
        right: 20px;
    }

    .post-31 .slick-prev {
        left: 10px;
    }

    .post-31 .slick-next {
        right: 10px;
    }

    .footer .foot-l {
        width: 260px;
    }

    .l-banner {
        padding-top: 30%;
    }

    .col_menu {
        margin-top: -88px;
    }

    .col_metas .col_title {
        font-size: 34px;
        height: 52px;
        line-height: 52px;
    }

    .col_metas .col_path {
        line-height: 52px;
        font-size: 14px;
    }

    .col_list .wp_listcolumn .wp_column a {
        line-height: 56px;
        height: 56px;
        font-size: 16px;
        padding: 0 8px;
    }

    .col_list .wp_listcolumn .wp_column .sub_list {
        top: 56px;
    }

    #l-container .inner {
        padding-bottom: 80px;
    }

    #d-container .inner {
        padding-bottom: 100px;
        gap: 40px;
    }

    .nearbox {
        flex: 0 0 400px;
        width: 400px;
        padding: 24px;
    }

    .nearbox .zjyw {
        font-size: 24px;
        line-height: 34px;
    }

    .nearbox .news_list {
        margin-top: 32px;
    }
}
@media screen and (max-width: 1099px) {
    .nav .wp-menu .menu-item a.menu-link {
        padding: 0 16px;
        font-size: 16px;
    }
}
/* 平板竖屏 */
@media screen and (max-width: 999px) {
.lib_comp--010035 .post-12 .news_title {
    font-size: 18px;
    line-height: 30px;
    color: #333;
    white-space: unset; 
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    -webkit-line-clamp: 2;
}
.lib_comp--010035 .post-12 .slick-dots{bottom: 100px;}
.post-31 .news_list .news .news_kzzd>div{
display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;}
    .lib_comp--010035 .post-12 .news_imgs{padding-top: 66.67%;}
    .lib_comp--010035 .post-12,
    .lib_comp--010035 .post-13{max-width: 100%;}
    #head .inner {
        padding-bottom: 40px;
    }

    .header .head-right {
        margin-top: 24px;
    }

    .main2 .mod,
    .main4 .mod,
    .lib_comp--010035 .mod {
        flex-wrap: wrap;
    }

    .main2 .ml,
    .main2 .mr,
    .main4 .ml,
    .main4 .mr {
        width: 100%;
    }

    .lib_comp--010035 .ml,
    .lib_comp--010035 .mr {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .lib_comp--010035 .mr {
        margin-top: 40px;
    }

    .post-21 {
        width: auto;
        max-width: none;
        margin: 32px 24px 0;
        padding-left: 0;
    }

    .post-22 {
        width: auto;
        max-width: none;
        margin: 40px 24px 0;
        padding-bottom: 48px;
    }

    .post-22:before {
        display: none;
    }

    #d-container .inner {
        display: block;
    }

    .infobox {
        flex: none;
        width: auto;
        min-height: 0;
    }

    .nearbox {
        flex: none;
        width: auto;
        position: static;
        margin-top: 32px;
    }

    .article .entry .read img,
    .col_news_list .wp_entry img {
        max-width: 100%;
    }

    .col_news_list .news_list .news .news_imgs {
        width: 40%;
    }
    body.nav-open {
        overflow: hidden;
    }

    .header .head_top {
        align-items: center;
        padding-bottom: 16px;
        padding-top: 16px;
    }

    .header .head-left {
        width: auto;
    }

    .header .sitelogo {
        margin-top: 0;
    }

    .header .sitelogo img {
        height: 36px;
        width: auto;
        max-width: 58vw;
    }

    .site-lang.lang1 {
        display: none;
    }

    .navi-aside-toggle {
        display: block;
        order: 2;
        flex: none;
        width: 26px;
        height: 20px;
        margin: 0 18px 0 auto;
        cursor: pointer;
        position: relative;
    }

    .navi-aside-toggle:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        box-shadow: 0 8px 0 #fff, 0 16px 0 #fff;
    }

    .header .head-right {
        order: 3;
        margin-top: 0;
    }

    /* 移动端抽屉导航：与首页一致 */
    #nav {
        position: fixed;
        top: 0;
        right: -280px;
        bottom: 0;
        width: 280px;
        max-width: 84%;
        margin: 0;
        padding: 64px 0 40px;
        background: #1254af;
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.4s ease;
    }

    body.nav-open #nav {
        right: 0;
        z-index: 999;
    }

    .nav-mask {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    body.nav-open .nav-mask {
        opacity: 1;
        visibility: visible;
    }

    #nav .wp-menu {
        display: block;
        margin: 0;
        padding: 0 20px;
    }

    #nav .wp-menu .menu-item {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    #nav .wp-menu .menu-item a.menu-link {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        line-height: 48px;
        font-size: 16px;
        color: #fff;
    }

    #nav .wp-menu .menu-item a.menu-link:after {
        display: none;
    }

    #nav .wp-menu .menu-switch-arrow {
        display: block;
        flex: none;
        width: 18px;
        height: 18px;
        background: none;
        position: relative;
        transition: transform 0.3s;
    }

    #nav .wp-menu .menu-switch-arrow:before {
        content: "";
        position: absolute;
        left: 4px;
        top: 4px;
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, 0.8);
        border-bottom: 2px solid rgba(255, 255, 255, 0.8);
        transform: rotate(45deg);
    }

    #nav .wp-menu .menu-switch-arrow.open {
        transform: rotate(180deg);
    }

    .post-31 .news_list .news{margin: 0 10px;}
    .post-31 .slick-next{right: 10px;}
    .post-31 .slick-prev{left: 10px;}
    #nav .sub-menu {
        position: static;
        display: none;
        transform: none;
        min-width: 0;
        background: transparent;
        box-shadow: none;
    }

    #nav .sub-menu .sub-item a {
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        text-align: left;
        height: 40px;
        line-height: 40px;
        font-size: 15px;
        padding: 0 0 0 12px;
    }

    #nav .sub-menu .sub-item a:hover,
    #nav .sub-menu .sub-item.hover>a {
        color: #fff;
        background: transparent;
    }
    .main4 .mr{margin-top: 40px;}



}

/* 手机端 */
@media screen and (max-width: 767px) {
    .post-21 .news_list .list1.news .news_title{height:unset;display: -webkit-box;}
    .post-21 .news_list .news .news_text{display:none;}
    .post-21 .news_list .news a{display:flex;justify-content:space-between;position: relative;box-shadow:rgba(0, 0, 0, .2) 0 0 .1rem}
    .lib_comp--010035 .mod{gap:10px}
    .post-21 .news_list .news .news_date{width:65px;}
    .lib_comp--010035 .post-13 .news_date{padding-right: 22px;}
    .lib_comp--010035 .post-12 .news_text{width:calc(100% - 100px);-webkit-line-clamp: 2;padding: 0;display: flex;align-items: center;justify-content: center;height: 88px;padding-right: 20px;padding-bottom: 11px;}
    .lib_comp--010035 .post-12 .news_date{width: 80px;}
    .lib_comp--010035 .post-12 .slick-dots li{width:10px;height:10px;}
    .lib_comp--010035 .post-12 .slick-dots li.slick-active,
    .mbanner .slick-dots li.slick-active{width:15px;height:15px;}

    #banner .slide_imgs:before {
        height: 100px;
    }

    .mbanner .slick-dots {
        right: 16px;
        bottom: 16px;
    }

    .mbanner .slick-dots li {
        margin: 0 8px;
        width: 10px;
        height: 10px;
    }

    .mbanner .slick-prev,
    .mbanner .slick-next {
        width: 40px;
        height: 40px;
    }

    .mbanner .slick-prev {
        left: 10px;
    }

    .mbanner .slick-next {
        right: 10px;
    }

    .main1 .inner,
    .main3 .inner,
    .main4 .inner {
        padding: 32px 0 48px;
    }

    .main2 .inner {
        padding-bottom: 48px;
    }

    .post .tt .tit .title {
        font-size: 24px;
        line-height: 34px;
    }

    .post-10 .tt,
    .post-31 .tt {
        margin-bottom: 28px;
    }

    .post-21 .tt,
    .post-22 .tt,
    .main4 .post .tt {
        margin-bottom: 24px;
    }

    .post-31 .tt .more_btn {
        margin-right: 4%;
    }

    .post-31 .news_list .news .news_wz {
        padding: 16px 16px 8px;
        gap: 12px;
    }

    .post-31 .news_list .news .news_line {
        padding: 0 16px;
    }

    .post-31 .news_list .news .news_kzzd {
        padding: 4px 16px 18px;
        font-size: 14px;
        line-height: 1.5;
    }

    .post-31 .slick-prev,
    .post-31 .slick-next {
        width: 40px;
        height: 40px;
        top: 14%;
    }

    .post-31 .slick-prev {
        left: 6px;
    }

    .post-31 .slick-next {
        right: 6px;
    }


    .post-41 .news_list .news .news_imgs {
        padding-top: 23%;
    }

    .lib_comp--010067 .post-33 .news_list li.news {
        width: 100%;
    }

    .lib_comp--010067 .post-33 .news_list li.news a {
        height: auto;
        min-height: 100px;
    }

    .main2 .ml {
        margin-top: 0;
        padding-bottom: 20px;
    }

    .main2 .mr {
        padding-bottom: 32px;
        padding-right: 0;
    }

    .post-21 {
        margin: 24px 16px 0;
    }

    .post-22 {
        margin: 28px 16px 0;
        padding-bottom: 32px;
    }

    .post-21 .news_list .news .news_title {
        padding-left: 16px;
        padding-right: 16px;
        height: 90px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        width: calc(100% - 85px);
        position: absolute;
        right: 0;
        box-sizing: border-box;
        /* padding-top: 14px; */
        box-shadow: unset;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
    }
    .post-31 .news_list{margin: 0 -10px;}

    .l-banner {
        padding-top: 240px;
    }

    #l-container .inner {
        padding-bottom: 48px;
    }

    .col_menu {
        margin-top: -75px;
    }

    .col_menu_con {
        margin-top: 16px;
    }

    .col_metas .col_title {
        float: none;
        display: block;
        font-size: 24px;
        height: auto;
        line-height: 34px;
    }

    .col_metas .col_path {
        float: none;
        line-height: 22px;
        font-size: 13px;
        padding-top: 6px;
    }

    .col_list .wp_listcolumn {
        flex-wrap: wrap;
    }

    .col_list .wp_listcolumn .wp_column a {
        line-height: 42px;
        height: 42px;
        font-size: 15px;
        padding: 0 8px;
    }

    .col_list .wp_listcolumn .wp_column .sub_list {
        top: 42px;
    }

    .col_news {
        margin-top: 24px;
        min-height: 0;
    }

    .col_news_list .news_list {
        gap: 20px;
    }

    .col_news_list .news_list .news {
        padding: 14px 12px;
    }

    .col_news_list .news_list .news a {
        display: block;
    }

    .col_news_list .news_list .news .news_imgs {
        width: 100%;
        padding-top: 52%;
    }

    .col_news_list .news_list .news .news_con {
        padding: 12px 4px 0;
    }

    .col_news_list .news_list .news .news_date .dd,
    .col_news_list .news_list .news .news_date .yy {
        margin-top: 0;
    }

    .col_news_list .news_list .news .news_date .dd {
        font-size: 14px;
        color: #666;
    }

    .col_news_list .news_list .news .news_date .yy {
        font-size: 16px;
    }

    .col_news_list .news_list .news .news_title {
        font-size: 17px;
        line-height: 26px;
        margin-top: 8px;
    }

    .col_news_list .news_list .news .news_text {
        height: auto;
        font-size: 14px;
        line-height: 24px;
        margin-top: 6px;
        -webkit-line-clamp: 2;
    }

    #d-container .inner {
        display: block;
        padding: 24px 0 48px;
    }

    .infobox {
        min-height: 0;
    }

    .nearbox {
        margin-top: 32px;
        padding: 20px 16px;
    }

    .nearbox .zjyw {
        font-size: 20px;
        line-height: 30px;
    }

    .nearbox .news_list {
        margin-top: 24px;
        padding-bottom: 24px;
    }

    .article h1.arti_title {
        font-size: 20px;
        line-height: 32px;
    }

    .article h2.arti_title {
        font-size: 15px;
        line-height: 26px;
    }

    .article .arti_metas span {
        font-size: 13px;
        line-height: 24px;
        margin: 0 4px;
    }

    .article .entry {
        margin-top: 28px;
    }

    .article .entry .read,
    .article .entry .read p {
        font-size: 16px;
        line-height: 30px;
    }

    .article .entry .read img,
    .col_news_list .wp_entry img {
        max-width: 100%;
    }



    .layer-inner {
        width: calc(100% - 40px);
        max-width: 550px;
    }

    .search-con .close {
        width: 44px;
        height: 44px;
        top: 20px;
        right: 12px;
    }
}

/* 小屏手机（最低 320px） */
@media screen and (max-width: 479px) {
    .lib_comp--010035 .post-13 .news_intro{display:none;}
    .lib_comp--010035 .post-13 .news_title{white-space:unset;}
    .lib_comp--010035 .mr{margin-top:10px;}
    .post-22{padding-bottom:0}
    .post-22 .news_list.list2 li.news:last-child{margin-bottom:0;}
    .post-41 .news_list .news {
        width: 100%;
    }
 .lib_comp--010035 .post-12 .news_text{padding-bottom: 0px;}
    .header .sitelogo img {
        height: 32px;
    }

    .navi-aside-toggle {
        margin-right: 12px;
    }

    .post .tt .tit .title {
        font-size: 22px;
    }

    .mbanner .slick-prev,
    .mbanner .slick-next {
        display: none;
    }

    .post-31 .slick-prev {
        left: 2px;
    }

    .post-31 .slick-next {
        right: 2px;
    }
.post-22 .news_list .news a{flex-direction: column;}
    .post-22 .news_list .news_imgs {
        width: 100%;
        padding-top: 71.666667%;
        overflow: hidden;
        height: 0;
    }
    .post-22 .news_list.list1 .news .news_wz{width: 100%;padding-right: 0;}
    .post-22 .news_list.list2{flex-direction: column;}
    .post-22 .news_list.list2 li.news{width: 100%;margin-bottom: 20px;}
.lib_comp--010067 .post-33 .news_list{gap: 20px;}
    .nearbox {
        padding: 16px 12px;
    }

    .nearbox .zjyw {
        font-size: 18px;
    }

    .col_list .wp_listcolumn .wp_column a {
        padding: 0 6px;
        font-size: 14px;
    }

    .article .arti_metas span {
        display: inline-block;
    }

    .footer .foot-l {
        width: 200px;
    }

    .footer .foot-bottom .bq {
        font-size: 12px;
    }
}
