@charset "UTF-8";
/**
 * 响应式适配样式表：超宽屏 / 桌面 / 平板横屏 / 平板竖屏 / 手机端
 * 含：大号徽标、放大字号、3标签分段切换、微信窄屏PNG二维码切换
 */

/* ==================== Ultra-Wide Fullscreen (>= 1680px) ==================== */
@media screen and (min-width: 1680px) {
    :root {
        --container-max: 1560px;
    }
    .header .inner {
        padding: 11px 0 10px;
    }
    .header .sitelogo img {
        height: 70px;
    }
    .head-right > img,
    .head-right .head-motto {
        height: 66px;
    }
    .nav .wp-menu .menu-item a.menu-link {
        font-size: 17px;
        height: 58px;
        line-height: 58px;
    }
}

/* ==================== Standard Laptop (1200px ~ 1439px) ==================== */
@media screen and (max-width: 1439px) {
    .wrapper .inner {
        width: min(95%, 1340px);
    }
    .header .sitelogo img {
        height: 60px;
    }
    .head-right > img,
    .head-right .head-motto {
        height: 57px;
    }
    .news_tu .news_list li.news .news_imgs {
        width: 124px;
        height: 165px;
    }
    .nav .wp-menu .menu-item a.menu-link {
        font-size: 15.5px;
        padding: 0 5px;
    }
}

/* ==================== Narrow Desktop & Half-Screen (<= 1279px): 学院新闻仅显示标题，保持清爽 ==================== */
@media screen and (max-width: 1279px) {
    .rili2 .news_list {
        gap: 4px;
    }
    .rili2 .news_list li.news {
        align-items: center;
        padding: 13px 10px;
    }
    .rili2 .news_list li.news .news_date {
        margin-top: 0;
    }
    .rili2 .news_list li.news .news_title {
        margin-bottom: 0;
    }
    .rili2 .news_list li.news .news_text {
        display: none !important;
    }
    .post-11 .focus,
    .post-11 .focus .focus-container {
        min-height: 320px;
        height: 348px !important;
    }
}

/* ==================== Tablet Landscape & Small Desktop (960px ~ 1199px) ==================== */
@media screen and (max-width: 1199px) {
    .wrapper .inner {
        width: 95%;
    }
    .header .inner {
        padding: 9px 0 9px;
    }
    .header .sitelogo img {
        height: 53px;
    }
    .head-right > img,
    .head-right .head-motto {
        height: 51px;
    }

    /* Keep all 12 nav items cleanly on a single horizontal row */
    .nav .wp-menu .menu-item a.menu-link {
        font-size: 14px;
        padding: 0 3px;
        height: 50px;
        line-height: 50px;
        gap: 2px;
    }
    .nav .wp-menu .menu-item a.menu-link > .menu-switch-arrow {
        width: 11px;
        height: 11px;
        background-size: 11px 11px;
    }

    /* Main News Section */
    .main1 {
        padding: 36px 0 42px;
    }
    .main1 .mod {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 26px;
        align-items: start;
    }
    .post-11 .focus,
    .post-11 .focus .focus-container {
        min-height: 310px;
        height: 336px !important;
    }

    /* Notices gap */
    .main5 .mod {
        gap: 36px;
    }

    /* Friendly Links */
    .main4 .list_con .news_list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* Sub-pages */
    .col_menu {
        width: 236px;
        flex: 0 0 236px;
    }
    .col_news {
        padding: 22px 26px 30px;
    }
    .news_tu .news_list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px 14px;
    }
    .news_title .articlelist1_a_title,
    .main4 .list_con a {
        font-size: 16px !important;
    }
    .infobox {
        padding: 34px 38px 42px;
    }
    .article {
        min-height: 400px;
    }

    /* Footer on 960~1199px: keep center truly centered with comfortable wrapping */
    #footer .inner .mod {
        grid-template-columns: minmax(260px, 1fr) auto minmax(140px, 1fr);
        gap: 18px 20px;
    }
    #footer .inner .foot-center p {
        gap: 8px 14px;
    }
}

/* ==================== Tablet Portrait (768px ~ 959px) ==================== */
@media screen and (max-width: 959px) {
    .wrapper .inner {
        width: 94%;
    }

    #header .inner {
        padding: 8px 0 8px;
    }
    .header .mod {
        gap: 14px;
    }
    .navi-aside-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header .sitelogo img {
        height: 46px;
    }
    .head-right > img,
    .head-right .head-motto {
        height: 44px;
    }

    #nav {
        display: none;
    }
    #floatAd0 {
        display: none !important;
    }

    /* Hero Banner: 严格保持 2290x813 比例 */
    .mbanner .focus,
    .mbanner .focus .focus-container {
        aspect-ratio: 2290 / 813;
        height: auto !important;
    }
    .mbanner .focus .focus-title-bar {
        bottom: 24px !important;
    }
    .mbanner .focus .focus-title {
        max-width: 86%;
        font-size: 18px;
        padding: 8px 15px;
    }
    .mbanner .focus .focus-navigation {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    .mbanner .focus .focus-prev { left: 14px; }
    .mbanner .focus .focus-next { right: 14px; }

    /* Main News stacks cleanly into 1 column */
    .main1 {
        padding: 32px 0 38px;
    }
    .main1 .mod {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .post-11 .focus,
    .post-11 .focus .focus-container {
        min-height: 330px;
        height: 340px !important;
    }

    /* Academic / Student / Youth Section: tidy 2-column grid */
    div#container-3,
    .main3 {
        padding: 40px 0 46px;
    }
    .sudy-tab .tab-menu li {
        height: 42px;
        line-height: 42px;
        padding: 0 22px 0 46px !important;
        font-size: 17px;
        background-position: 16px center;
    }
    .con3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 16px;
    }
    .con3 ul.news_list,
    .con3 ul.news_list2 {
        gap: 14px;
    }
    .con3 li,
    .con3 li.news.n3.clearfix,
    .con3 li.news.n6.clearfix {
        padding: 16px;
        gap: 13px;
    }
    .con3 .news_date {
        width: 62px;
        min-width: 62px;
    }
    .con3 .news_year {
        line-height: 34px;
        font-size: 20px;
    }
    .con3 .news_days {
        line-height: 24px;
        font-size: 11.5px;
    }
    .con3 .news_title {
        font-size: 16px;
    }

    /* Notices: borderless 2-column editorial */
    .main5 {
        padding: 40px 0 38px;
    }
    .main5 .mod {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
    .post.post1.post-302.mbox,
    .post.post1.post-303.mbox {
        padding: 0;
    }

    /* Friendly Links: 3 columns */
    .main4 .list_con .news_list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px 12px !important;
    }

    /* Sub-pages */
    #l-container {
        padding: 22px 0 42px;
    }
    #l-container .mod,
    #l-container .inner.clearfix {
        flex-direction: column;
        gap: 18px;
    }
    .col_menu {
        width: 100%;
        flex: none;
        position: static;
    }
    .col_menu .col_menu_head {
        cursor: pointer;
    }
    .column-switch {
        display: block;
    }
    .col_menu .col_menu_con {
        display: none;
        border-top: none;
    }
    .col_news {
        width: 100%;
        padding: 22px 24px 28px;
        min-height: 360px;
    }
    .news_tu .news_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    /* Footer: switch to PNG QR (#qrm) on <=959px so WeChat recognizes long-press! */
    #footer {
        padding: 32px 0 28px;
    }
    #footer .inner .mod {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }
    #footer .inner .foot-center {
        order: -1;
        flex: none;
        width: 100%;
        justify-self: center;
    }
    #footer .inner .foot-left {
        flex: none;
        width: 100%;
        align-items: center;
        justify-self: center;
    }
    #footer .inner .foot-right {
        justify-self: center;
    }
    #footer .inner .foot-center .footer-sep {
        display: none;
    }
    #footer .inner .foot-center p {
        gap: 10px 20px;
    }
    #footer .inner p {
        text-align: center;
    }
    #qrc {
        display: none !important;
    }
    #qrm {
        display: block !important;
        width: 144px;
        height: auto;
    }
}

/* ==================== Mobile Phones (<= 767px) ==================== */
@media screen and (max-width: 767px) {
    .wrapper .inner {
        width: 100%;
        padding: 0 16px;
    }
    #banner .inner {
        padding: 0;
    }

    /* 手机端加高页眉栏，放大重排竖构图 logo2.svg，同时保留右侧院训不消失 */
    #header .inner {
        padding: 15px 12px;
    }
    .header .mod {
        gap: 10px;
        align-items: center;
    }
    .navi-aside-toggle {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    .head-left {
        padding-top: 0;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }
    .header .sitelogo {
        width: 100%;
    }
    .header .sitelogo a {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 80px;
        background: url("images/logo2.svg") no-repeat left center / contain;
    }
    .header .sitelogo a img,
    .header .sitelogo a embed {
        display: none !important;
    }
    .head-right {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        padding: 0;
    }
    .head-right > img,
    .head-right > embed,
    .head-right .head-motto {
        height: 52px;
        width: auto;
        max-width: 96px;
    }

    /* 页面较窄（<=767px）时隐藏 cover 大幅封面图栏，首屏直达核心新闻 */
    #banner,
    .mbanner {
        display: none !important;
    }

    /* Section Header Sizes */
    .post .tt {
        padding-bottom: 11px;
        margin-bottom: 14px;
    }
    .post1 .tt .tit .title {
        font-size: 20px;
        padding-left: 33px;
        background-size: 24px 24px;
    }
    .post .more_btn .more_text,
    .post .more_btn a {
        padding: 5px 12px;
        font-size: 13px;
    }

    /* Section 1: 学院新闻 */
    .main1 {
        padding: 24px 0 32px;
    }
    .main1 .mod {
        gap: 24px;
    }
    .post-11 .focus,
    .post-11 .focus .focus-container {
        min-height: 220px;
        height: 220px !important;
        border-radius: 12px;
    }
    .post-11 .focus .focus-title {
        font-size: 15px;
        padding: 22px 14px 12px;
    }
    .post-11 .focus .focus-pagination {
        bottom: 48px;
        right: 12px;
    }
    .post-11 .focus .focus-navigation {
        opacity: 0.78;
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }
    .rili2 .news_list {
        gap: 6px;
    }
    .rili2 .news_list li.news {
        padding: 12px 8px;
        gap: 12px;
    }
    .rili2 .news_list li.news:hover {
        transform: none;
    }
    .rili2 .news_list li.news .news_date {
        width: 56px;
        min-width: 56px;
        padding: 6px 4px;
        border-radius: 8px;
    }
    .rili2 .news_list li.news .news_date .news_year {
        font-size: 19px;
    }
    .rili2 .news_list li.news .news_date .news_days {
        font-size: 11px;
    }
    .rili2 .news_list li.news .news_title {
        font-size: 16px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .rili2 .news_list li.news .news_text {
        font-size: 13.5px;
    }

    /* Section 2: 学术报告 / 学工动态 / 共青团工作 (All 3 tabs fit cleanly in 1 pill row!) */
    div#container-3,
    .main3 {
        padding: 32px 0 36px;
    }
    .sudy-tab .tab-menu {
        margin-bottom: 22px;
        padding: 4px;
        gap: 4px;
        max-width: 100%;
    }
    .sudy-tab .tab-menu li {
        height: 38px;
        line-height: 38px;
        padding: 0 14px 0 35px !important;
        font-size: 14.5px;
        background-position: 12px center;
        background-size: 17px 17px;
    }
    .con3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .con3 ul.news_list,
    .con3 ul.news_list2 {
        gap: 12px;
    }
    .con3 li,
    .con3 li.news.n3.clearfix,
    .con3 li.news.n6.clearfix {
        padding: 15px 14px;
        gap: 12px;
        border-radius: 11px;
    }
    .con3 .news_date {
        width: 60px;
        min-width: 60px;
    }
    .con3 .news_year {
        line-height: 33px;
        font-size: 19px;
    }
    .con3 .news_days {
        line-height: 23px;
        font-size: 11px;
    }
    .con3 .news_title {
        font-size: 16px;
    }
    .con3 .news_text,
    .con3 .news_text a {
        font-size: 13.5px !important;
    }

    /* Section 3: 通知公示 & 教学通知 (Clean Borderless Mobile) */
    .main5 {
        padding: 30px 0 32px;
    }
    .main5 .mod {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .post.post1.post-302.mbox,
    .post.post1.post-303.mbox {
        padding: 0;
        border-radius: 0;
    }
    .post.post1.post-302.mbox span.title,
    .post.post1.post-303.mbox span.title {
        background-size: 24px 24px;
        padding-left: 33px;
    }
    div#container-5 .news_title {
        font-size: 15.5px;
        padding: 11px 6px 11px 22px;
    }
    div#container-5 .news_title a {
        display: block;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Friendly Links */
    .main4 {
        padding: 28px 0 32px;
    }
    .post.post1.post-4.mbox span.title {
        font-size: 19px;
        background-size: 22px 22px;
        padding-left: 31px;
    }
    .main4 .list_con .news_list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .news_title .articlelist1_a_title,
    .main4 .list_con a {
        padding: 10px 10px 10px 32px;
        font-size: 15px !important;
        background-position: 9px center;
        background-size: 14px 14px;
    }

    /* Footer */
    #footer {
        padding: 28px 0 26px;
    }
    #footer .inner p {
        font-size: 13.5px;
        line-height: 1.8;
    }
    #footer .inner .foot-center p {
        gap: 6px 10px;
    }
    #footer .inner .foot-center p span {
        margin: 0;
    }
    #qrm {
        width: 140px;
    }

    /* Sub-pages Mobile：手机端隐藏中间过渡横幅图片 */
    .l-banner {
        display: none !important;
    }
    #l-container {
        padding: 16px 0 34px;
    }
    .col_menu .col_menu_head h3.col_name .col_name_text {
        line-height: 48px;
        font-size: 17px;
        padding: 0 48px 0 16px;
    }
    .col_news {
        padding: 18px 16px 24px;
        border-radius: 12px;
    }
    .col_metas .col_title h2 {
        font-size: 20px;
    }
    .col_metas .col_path {
        font-size: 13px;
    }
    .list .col_news_con .news_list li.news {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 6px 12px 22px;
    }
    .list .col_news_con .news_list li.news::before {
        top: 21px;
    }
    .list .col_news_con .news_list li.news span.news_title {
        font-size: 15.5px;
        line-height: 1.5;
    }
    .list .col_news_con .news_list li.news span.news_meta {
        font-size: 13px;
    }
    .list-page-toolbar {
        margin: 8px 0 4px;
        padding: 0;
        font-size: 12.5px;
    }
    .list-page-toolbar .list-size-label,
    .list-page-toolbar .list-size-unit {
        font-size: 12.5px;
    }
    .list-page-toolbar .size-pill {
        padding: 4px 9px;
        font-size: 12.5px;
    }
    .wp_paging li.pages_count,
    .wp_paging li.page_jump {
        display: none;
    }

    /* Article Detail Mobile */
    #d-container {
        padding: 16px 0 36px;
    }
    .infobox {
        padding: 22px 16px 30px;
        border-radius: 12px;
    }
    .article h1.arti_title {
        font-size: 19px;
        line-height: 1.45;
    }
    .article h2.arti_title {
        font-size: 15px;
    }
    .article .arti_metas {
        padding: 10px 12px;
        margin: 12px 0 18px;
    }
    .article .arti_metas span {
        display: inline-block;
        margin: 2px 8px;
        font-size: 13px;
    }
    .article .entry .read,
    .article .entry .read p {
        font-size: 16px;
        line-height: 1.88;
    }
    body:not(.role) .article .entry .read img:not(.sudy-attachment-icon):not([src^="data:image/svg+xml"]):not([src*="_ueditor/themes/"]):not([src*="fileTypeImages/"]):not([src*="icons/files/"]) {
        max-width: 100%;
        width: auto;
        height: auto !important;
    }
    /* 师资简介页（原 subCon.css）手机端温和适配，不改变原风格 */
    .role .t-con1 {
        margin-left: 8px;
        padding-left: 16px;
        padding-top: 14px;
        margin-bottom: 16px;
    }
    .role .t-title h2 {
        padding-top: 18px;
    }

    /* Teacher Grid & Organization Mobile */
    .news_tu .news_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .news_tu .news_list li.news {
        padding: 10px;
    }
    .news_tu .news_list li.news .news_imgs {
        width: 100%;
        max-width: 132px;
        aspect-ratio: 3 / 4;
        height: auto;
    }
    .news_tu .news_list li.news .news_title {
        font-size: 15px;
        padding-top: 9px;
    }
    .inss .part_xy .sub-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #jumphandle {
        right: 14px;
        bottom: 18px;
    }
    #jumphandle a {
        width: 38px;
        height: 38px;
    }
}

/* ==================== Small Phones (<= 420px) ==================== */
@media screen and (max-width: 420px) {
    #header .inner {
        padding: 14px 10px;
    }
    .header .mod {
        gap: 8px;
    }
    .navi-aside-toggle {
        width: 36px;
        height: 36px;
    }
    .header .sitelogo a {
        height: 74px;
        max-width: 100%;
    }
    .head-right > img,
    .head-right > embed,
    .head-right .head-motto {
        height: 46px;
        max-width: 84px;
    }
    .sudy-tab .tab-menu {
        padding: 4px;
        gap: 3px;
    }
    .sudy-tab .tab-menu li {
        height: 36px;
        line-height: 36px;
        padding: 0 10px 0 28px !important;
        font-size: 13.5px;
        background-position: 9px center;
        background-size: 15px 15px;
    }
    .inss .part_xy .sub-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .main4 .list_con .news_list {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
