/**
 * 全站移动端样式（PC 版确定后统一维护）
 * 断点：980px / 640px / 480px，与 pc-show / m-show 一致
 */

@media screen and (max-width: 980px) {
    body.home,
    body.content-page,
    body.list-page {
        overflow-x: hidden;
    }

    /* 移动顶栏主题色 */
    .headerm:after {
        display: block;
        background: #07699c;
    }

    /* 移动顶栏：搜索按钮定位（菜单按钮左侧） */
    .headerm {
        align-items: center;
    }

    .headerm .serbtnm {
        position: absolute;
        right: .92rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
        font-size: .24rem;
        color: #fff;
        line-height: 1;
        padding: .08rem;
    }

    /* 搜索弹层：右上角展开（非屏幕居中/底部） */
    body.home .layer,
    body.content-page .layer,
    body.list-page .layer {
        display: block;
        background: rgba(0, 0, 0, 0.35);
    }

    body.home .layer .serclose,
    body.content-page .layer .serclose,
    body.list-page .layer .serclose {
        position: fixed;
        top: .12rem;
        right: .12rem;
        width: .36rem;
        height: .36rem;
        line-height: .36rem;
        font-size: .22rem;
        color: #fff;
        z-index: 100001;
    }

    body.home .layer .search_box,
    body.content-page .layer .search_box,
    body.list-page .layer .search_box {
        position: fixed;
        top: .55rem;
        right: .12rem;
        left: .12rem;
        width: auto;
        max-width: none;
        margin: 0;
        height: .44rem;
        line-height: .44rem;
        transform: translateY(-6px);
        opacity: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        overflow: hidden;
    }

    body.home .layer.showdiv .search_box,
    body.content-page .layer.showdiv .search_box,
    body.list-page .layer.showdiv .search_box {
        transform: none;
        opacity: 1;
    }

    body.home .layer .search_box .inp,
    body.content-page .layer .search_box .inp,
    body.list-page .layer .search_box .inp {
        height: .44rem;
        line-height: .44rem;
        font-size: .15rem;
    }

    body.home .layer .search_box .sub,
    body.content-page .layer .search_box .sub,
    body.list-page .layer .search_box .sub {
        height: .44rem;
        line-height: .44rem;
        font-size: .15rem;
        width: .9rem;
        flex-shrink: 0;
    }

    /* ========== 首页 ========== */
    .homea:before,
    .homea:after,
    .homee:before,
    .homeg:before {
        display: none;
    }

    .homea {
        padding: .4rem 0 0 0;
    }

    
    .homea .aright ul {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .homea .aright ul li {
        flex: none !important;
        align-items: stretch;
        min-height: 1.2rem;
        padding: .12rem 0;
        box-sizing: border-box;
    }

    .homea .aright ul li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        box-sizing: border-box;
    }

    .homea .aright ul li .txt {
        flex: 1;
        width: auto;
        min-width: 0;
        padding-left: .12rem;
        padding-top: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: .72rem;
    }

    .homea .aright ul li .txt h4 {
        flex: 1;
        margin: 0 !important;
        min-height: 0;
    }

    /* 首页标题/摘要：与列表页移动版一致（标题 16px / 摘要 14px） */
    .homea .aright ul li .txt h4 a,
    .homea .aleft .slide-newsTxt h4 a {
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .homea .aright ul li .txt h4 a {
        min-height: 48px;
        max-height: 48px;
    }

    .homea .aright ul li .txt-meta {
        display: none;
    }

    .homeb .djzz-feature-txt h4,
    .homeb .djzz-feature-txt h4 a,
    .homeb .djzz-list li h4,
    .homeb .djzz-list li h4 a,
    .homeg .jstd-feature-txt h4,
    .homeg .jstd-feature-txt h4 a,
    .homeg .jstd-list li h4,
    .homeg .jstd-list li h4 a,
    .homec .xywh-slide .xywh-txt h4,
    .homec .xywh-slide .xywh-txt h4 a,
    .homec-party .xywh-slide .xywh-txt h4,
    .homec-party .xywh-slide .xywh-txt h4 a,
    .homec-party .Ctrlyear .txt h4,
    .homec-party .Ctrlyear .txt h4 a,
    .homed .Ctrlyear .txt h4,
    .homed .Ctrlyear .txt h4 a {
        font-size: 16px;
        line-height: 1.5;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        display: block;
    }

    .homeb .djzz-summary,
    .homeg .jstd-feature-txt p,
    .homec .xywh-slide .xywh-summary,
    .homec-party .xywh-slide .xywh-summary,
    .homec-party .Ctrlyear .txt p,
    .homed .Ctrlyear .txt p {
        font-size: 14px;
        line-height: 1.65;
        color: #888;
        height: auto;
        max-height: none;
        margin: 0;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .homeb .aleft .tzgg-list li h4 {
        flex: 1;
        min-width: 0;
        margin: 0 .12rem 0 0;
        margin-bottom: 0;
        font-size: 16px;
        line-height: 1.5;
        font-weight: normal;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: .72rem;
    }

    .homeb .aleft .tzgg-list li h4 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        text-overflow: ellipsis;
        word-break: break-word;
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
        color: #333;
    }

    .homeb .aleft .tzgg-list li h4 a.l2 {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 48px;
        max-height: 48px;
    }

    .homea .aleft .slideTxts {
        padding: .12rem .18rem;
    }

    /* 太工新闻：移动端显示 10 条 */
    .homea .aright ul li.news-item-mobile {
        display: flex;
    }

    .homea .aright ul li:nth-child(n+11) {
        display: none !important;
    }

    /* 教学科研：移动端 10 条 + 左侧日期块（同太工新闻） */
    .homeb .djzz-list li.djzz-item-mobile {
        display: flex;
    }

    .homeb .djzz-list li:nth-child(n+11) {
        display: none !important;
    }

    .homeb .djzz-list li {
        flex: none !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        min-height: 1.2rem;
    }

    .homeb .djzz-list li time {
        display: none !important;
    }

    .homeb .djzz-list li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: .04rem;
        box-shadow: 0 .02rem .08rem rgba(7, 105, 156, .06);
        border-left: 3px solid #07699c;
        padding: .06rem 0;
        box-sizing: border-box;
    }

    .homeb .djzz-list li .news-date-day {
        font-size: .28rem;
        font-weight: bold;
        line-height: 1;
        color: #07699c;
    }

    .homeb .djzz-list li .news-date-ym {
        font-size: .11rem;
        line-height: 1.2;
        color: rgba(7, 105, 156, .75);
        margin-top: .04rem;
    }

    .homeb .djzz-list li .txt {
        flex: 1;
        min-width: 0;
        padding-left: .12rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: .72rem;
    }

    .homeb .djzz-list li .txt h4 {
        flex: 1;
        margin: 0 !important;
    }

    .homeb .djzz-list li .txt h4 a {
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 48px;
        max-height: 48px;
        white-space: normal;
    }

    /* 通知公告：移动 3 条 + 白底列表 + 右侧日期块 */
    .homeb .aleft .tzgg-list {
        margin: 0;
        padding: .04rem .18rem .1rem;
        list-style: none;
        background: #fff;
        border-radius: .06rem;
        box-shadow: 0 .04rem .2rem rgba(0, 66, 186, .08);
    }

    .homeb .aleft .tzgg-list li {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        flex-direction: row;
        min-height: 1.2rem;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: .12rem 0;
        margin-bottom: 0;
        border-bottom: 1px dashed #e8e8e8;
    }

    .homeb .aleft .tzgg-list li:nth-child(n+4) {
        display: none;
    }

    .homeb .aleft .tzgg-list li:nth-child(3) {
        border-bottom: none;
    }

    .homeb .aleft .tzgg-list li time {
        display: none;
    }

    .homeb .aleft .tzgg-list li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: .04rem;
        box-shadow: 0 .02rem .08rem rgba(7, 105, 156, .06);
        border-left: none;
        border-right: 3px solid #07699c;
        padding: .06rem 0;
        box-sizing: border-box;
    }

    .homeb .aleft .tzgg-list li .news-date-day {
        font-size: .28rem;
        font-weight: bold;
        line-height: 1;
        color: #07699c;
    }

    .homeb .aleft .tzgg-list li .news-date-ym {
        font-size: .11rem;
        line-height: 1.2;
        color: rgba(7, 105, 156, .75);
        margin-top: .04rem;
    }

    .homec-party .Ctrlyear,
    .homed .Ctrlyear {
        width: calc(100% - 1rem);
    }

    /* 校园文化：移动端 Ctrlyear 下方 5 条，右侧日期块（同太工新闻，色条在右） */
    .homed .homed-list-mobile {
        margin: .16rem .12rem 0;
    }

    .homed .homed-list-mobile ul {
        margin: 0;
        padding: .04rem .12rem .1rem;
        list-style: none;
        border-top: 1px dashed #e8e8e8;
    }

    .homed .homed-list-mobile li {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        min-height: 1.2rem;
        padding: .12rem 0;
        border-bottom: 1px dashed #e8e8e8;
    }

    .homed .homed-list-mobile li:last-child {
        border-bottom: none;
    }

    .homed .homed-list-mobile li h4 {
        flex: 1;
        min-width: 0;
        margin: 0 .12rem 0 0;
        font-weight: normal;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: .72rem;
    }

    .homed .homed-list-mobile li h4 a {
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
        color: #333;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 48px;
        max-height: 48px;
        white-space: normal;
    }

    .homed .homed-list-mobile li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: .04rem;
        box-shadow: 0 .02rem .08rem rgba(7, 105, 156, .06);
        border-left: none;
        border-right: 3px solid #07699c;
        padding: .06rem 0;
        box-sizing: border-box;
    }

    .homed .homed-list-mobile li .news-date-day {
        font-size: .28rem;
        font-weight: bold;
        line-height: 1;
        color: #07699c;
    }

    .homed .homed-list-mobile li .news-date-ym {
        font-size: .11rem;
        line-height: 1.2;
        color: rgba(7, 105, 156, .75);
        margin-top: .04rem;
    }

    /* 竞赛天地 / 媒体太工：移动端 5 条 + 日期块 */
    .homeg .jstd-list li {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        min-height: 1.2rem;
        padding: .12rem 0;
    }

    .homeg .jstd-list li:nth-child(n+4) {
        display: flex !important;
    }

    .homeg .jstd-list li:nth-child(n+6) {
        display: none !important;
    }

    .homeg .jstd-list li time {
        display: none !important;
    }

    .homeg .jstd-list li h4 {
        flex: 1;
        min-width: 0;
        margin: 0;
        font-weight: normal;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: .72rem;
    }

    .homeg .jstd-list li h4 a {
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
        color: #333;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 48px;
        max-height: 48px;
        white-space: normal;
    }

    /* 竞赛天地：左侧日期块（色条在左，同太工新闻） */
    .homeg .aleft .jstd-list li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: .04rem;
        box-shadow: 0 .02rem .08rem rgba(7, 105, 156, .06);
        border-left: 3px solid #07699c;
        padding: .06rem 0;
        box-sizing: border-box;
        margin-right: .12rem;
    }

    /* 媒体太工：右侧日期块（色条在右） */
    .homeg .aright .jstd-list li h4 {
        margin-right: .12rem;
    }

    .homeg .aright .jstd-list li .news-date {
        width: .72rem;
        height: .72rem;
        min-height: .72rem;
        flex-shrink: 0;
        align-self: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: .04rem;
        box-shadow: 0 .02rem .08rem rgba(7, 105, 156, .06);
        border-left: none;
        border-right: 3px solid #07699c;
        padding: .06rem 0;
        box-sizing: border-box;
    }

    .homeg .jstd-list li .news-date-day {
        font-size: .28rem;
        font-weight: bold;
        line-height: 1;
        color: #07699c;
    }

    .homeg .jstd-list li .news-date-ym {
        font-size: .11rem;
        line-height: 1.2;
        color: rgba(7, 105, 156, .75);
        margin-top: .04rem;
    }

    /* 移动端区块顺序：数据太工移至媒体太工（homeg）下方 */
    #main-content-region.body_b {
        display: flex;
        flex-direction: column;
    }

    #main-content-region.body_b .homeg {
        order: 2;
    }

    #main-content-region.body_b .homef {
        order: 3;
    }

    #main-content-region.body_b .homee {
        order: 4;
    }

    #main-content-region.body_b .footer.ind {
        order: 5;
    }

    /* 数据太工 */
    .homeg {
        padding-bottom: .15rem;
    }

    .homef {
        padding: .35rem 0 1rem;
    }

    .homef .sico .ico {
        width: 1rem;
        height: 1rem;
    }

    .homef .sico .txt span em {
        font-size: .28rem;
    }

    .homef .sico .txt p {
        font-size: .12rem;
        line-height: 1.4;
    }

    .homef .swiper-pagination-bullets .swiper-pagination-bullet {
        font-size: .2rem;
    }

    /* 栏目标题 */
    .intit h3 span em {
        font-size: .32rem;
    }

    .intit h3 i {
        width: .54rem;
        height: .54rem;
        font-size: .28rem;
        line-height: .5rem;
    }

    .intit h3 i:after {
        width: .5rem;
        height: .5rem;
    }

    /* 页脚版权区 */
    .footer.ind .foot-copy .wp {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* ========== 内页（列表 + 内容） ========== */
    body.content-page .nymain.details > .wp.zi3,
    body.list-page .list-wrap {
        box-sizing: border-box;
    }

    /* 列表/内容页：折叠菜单展开时顶栏（含关闭按钮）置于菜单之上 */
    body.list-page .headerm .navbtnm,
    body.content-page .headerm .navbtnm {
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 640px) {
    .homea .aright ul li {
        min-height: 0.8rem;
    }

    .homea .aright ul li .news-date {
        width: .68rem;
        height: .68rem;
        min-height: .68rem;
    }

    .homea .aright ul li .news-date-day {
        font-size: .26rem;
    }

    .homeb .djzz-list li {
        min-height: 0.8rem;
    }

    .homeb .djzz-list li .news-date {
        width: .68rem;
        height: .68rem;
        min-height: .68rem;
    }

    .homeb .djzz-list li .news-date-day {
        font-size: .26rem;
    }

    .homeb .aleft .tzgg-list li {
        min-height: 0.8rem;
    }

    .homeb .aleft .tzgg-list li .news-date {
        width: .68rem;
        height: .68rem;
        min-height: .68rem;
    }

    .homeb .aleft .tzgg-list li .news-date-day {
        font-size: .26rem;
    }

    .homeg .jstd-list li {
        min-height: 0.8rem;
    }

    .homeg .jstd-list li .news-date {
        width: .68rem;
        height: .68rem;
        min-height: .68rem;
    }

    .homeg .jstd-list li .news-date-day {
        font-size: .26rem;
    }

    .homed .homed-list-mobile li {
        min-height: 0.8rem;
    }

    .homed .homed-list-mobile li .news-date {
        width: .68rem;
        height: .68rem;
        min-height: .68rem;
    }

    .homed .homed-list-mobile li .news-date-day {
        font-size: .26rem;
    }

    .intit h3 span em {
        font-size: .28rem;
    }

    body.content-page .detail .detailwen .detailtitle h3 {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    body.content-page .detail .detailwen .detailcon,
    body.content-page .detail .detailwen .detailcon p {
        font-size: 16px !important;
        line-height: 1.75 !important;
    }

    body.content-page .detail .detailwen .detailcon p {
        margin: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .homea {
        /* padding: .3rem 0; */
    }

    .homea .aleft .slide-newsPic .pic {
        height: 52vw;
    }

    .homea .aright ul li .news-date {
        width: .64rem;
        min-height: .48rem;
    }

    .homea .aright ul li .news-date-day {
        font-size: .24rem;
    }

    .homeb .djzz-list li .news-date {
        width: .64rem;
        min-height: .48rem;
    }

    .homeb .djzz-list li .news-date-day {
        font-size: .24rem;
    }

    .homeb .aleft .tzgg-list li .news-date {
        width: .64rem;
        min-height: .48rem;
    }

    .homeb .aleft .tzgg-list li .news-date-day {
        font-size: .24rem;
    }

    .homed .homed-list-mobile li .news-date {
        width: .64rem;
        min-height: .48rem;
    }

    .homed .homed-list-mobile li .news-date-day {
        font-size: .24rem;
    }

    .homeg .jstd-list li .news-date {
        width: .64rem;
        min-height: .48rem;
    }

    .homeg .jstd-list li .news-date-day {
        font-size: .24rem;
    }

    .homef .sico .txt span em {
        font-size: .24rem;
    }

    .intit h3 span em {
        font-size: .26rem;
    }

    .intit h3 span:after {
        font-size: .22rem;
    }
}
