/* 首页手机端样式，仅在窄屏生效，电脑端布局保持不变 */
@media screen and (max-width: 767px) {
    body {
        font-family: "Microsoft YaHei", sans-serif;
        font-size: 14px;
        overflow-x: hidden;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .container [class*="col-"] {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 顶部校徽 */
    .top-banner-mobile {
        height: auto;
        line-height: normal;
        padding: 8px 0;
    }

    .top-banner-mobile .container {
        padding-top: 0 !important;
    }

    .top-banner-mobile img {
        display: block;
        width: auto !important;
        max-width: 100% !important;
        height: 46px !important;
        margin: 0 auto;
    }

    /* 导航：展开后纵向排列，避免被 45px 高度裁切 */
    .navbar-top-ext {
        margin-bottom: 0;
    }

    .navbar-top-ext .navbar-header {
        float: none !important;
        height: auto !important;
        padding: 6px 0 !important;
    }

    .navbar-top-ext .navbar-toggle {
        display: block;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0;
        padding: 8px 4px !important;
    }

    #navbar-top {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        line-height: normal !important;
        padding: 0 !important;
        border-top: 1px solid #f0f0f0;
    }

    #navbar-top .navbar-nav,
    #navbar-top .navbar-nav > li {
        float: none !important;
        width: 100%;
        margin: 0;
    }

    #navbar-top .navbar-nav > li {
        border-bottom: 1px solid #f3f3f3;
    }

    #navbar-top .navbar-nav > li > a {
        display: block;
        height: auto !important;
        line-height: 44px !important;
        padding: 0 4px !important;
    }

    #navbar-top .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #faf7f7;
    }

    #navbar-top .dropdown-menu > li > a {
        line-height: 40px !important;
        padding: 0 16px !important;
        white-space: normal;
    }

    /* 主体栏目改为上下排列 */
    .container[role="main"] {
        margin-top: 14px !important;
    }

    h3.section-title {
        height: auto !important;
        overflow: hidden;
        font-size: 16px !important;
        line-height: 28px;
        margin: 18px 0 8px;
        padding-bottom: 8px;
    }

    h3.section-title .glyphicon {
        float: left;
        line-height: 28px;
    }

    .inxBtCol {
        float: left;
        line-height: 28px;
    }

    /* 标题旁的横向滚动条改到下一行，并限制在屏幕宽度内 */
    .txtMarquee-left {
        float: none !important;
        clear: both;
        width: 100% !important;
        height: 28px;
        margin: 4px 0 0;
        overflow: hidden;
        font-size: 14px;
        font-weight: normal;
        letter-spacing: 0;
        line-height: 28px;
    }

    .txtMarquee-left .bd,
    .txtMarquee-left .bd .tempWrap {
        width: 100% !important;
        height: 28px !important;
        overflow: hidden !important;
    }

    .txtMarquee-left .bd ul li {
        height: 28px;
        line-height: 28px;
    }

    .txtMarquee-top {
        width: 100%;
        overflow: hidden;
    }

    /* 轮播图按屏宽缩小 */
    #top-slider-zone,
    #news-slider,
    .slider-pro {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 10px;
    }

    #news-slider .sp-mask,
    #news-slider .sp-slides-container {
        height: 190px !important;
    }

    .sp-slide img,
    .slider-pro img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* 图文新闻：日期在左，标题和摘要在右 */
    .info-full {
        height: auto !important;
        min-height: 0;
        margin-bottom: 0 !important;
        overflow: hidden;
        padding: 8px 0 !important;
        text-align: left !important;
        border-bottom: 1px solid #f2e6e6;
    }

    .info-full .info-date {
        width: 52px !important;
        height: auto !important;
        float: left !important;
    }

    .info-date-day {
        height: 28px;
        line-height: 28px;
        font-size: 14px;
    }

    .info-text {
        float: none !important;
        width: auto !important;
        height: auto !important;
        margin-left: 62px;
        overflow: hidden;
        text-align: left;
    }

    .info-text > div {
        margin-bottom: 4px !important;
        font-size: 15px !important;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .info-text p {
        margin: 0;
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 标题在左、日期在右，日期不再压住标题 */
    .info-full > a,
    a > .info-full {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 36px;
    }

    .info-full > a > div,
    a > .info-full > div {
        float: none !important;
        line-height: 1.4 !important;
    }

    .info-full > a > div:first-child,
    a > .info-full > div:first-child {
        flex: 1;
        min-width: 0;
        text-align: left !important;
    }

    .info-full > a > div:first-child > div,
    a > .info-full > div:first-child > div {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 15px !important;
    }

    .info-full > a > div:last-child,
    a > .info-full > div:last-child {
        flex: none;
        white-space: nowrap;
        font-size: 13px;
        color: #8f000b;
    }

    div[style*="float:right"]:has(> a[style*="990000"]),
    div[style*="float: right"]:has(> a[style*="990000"]) {
        float: none !important;
        clear: both;
        text-align: right;
        margin: 6px 0 4px !important;
    }

    /* 学生风采：一屏两张，可横向滑动 */
    .wrapper {
        width: 100% !important;
        overflow: hidden;
    }

    .picScroll-left {
        width: 100% !important;
        border: 0;
        overflow: hidden;
    }

    .picScroll-left .bd,
    .picScroll-left .tempWrap {
        width: 100% !important;
        overflow: hidden !important;
    }

    .picScroll-left .bd ul li {
        width: 48% !important;
        margin: 0 1% !important;
        float: left !important;
    }

    .picScroll-left .bd ul li img {
        width: 100% !important;
        height: 110px !important;
        object-fit: cover;
        padding: 0 !important;
    }

    .picScroll-left .bd ul li span {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 13px;
        line-height: 20px;
    }

    /* 页脚不再固定 820px */
    .inxfooterCenter {
        width: 100% !important;
        padding: 0 8px 12px;
    }

    .inxfooter p {
        float: none !important;
        width: 100%;
        margin: 0;
        padding: 16px 8px !important;
        font-size: 14px !important;
        line-height: 1.7;
        text-align: center;
    }
}
