/* 移动端样式（≤768px），与 index.html 配套；桌面端不生效 */

.m-header,
.m-nav-mask,
.m-nav-panel{
    display: none;
}

@media screen and (max-width: 768px) {
    .pc{
        display: none;
    }
    /* —— 顶栏 —— */
    .m-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 200;
        background: linear-gradient(95deg, #33428f 0%, #2fb4aa 100%);
        box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
    }

    .m-header-inner {
        display: flex;
        align-items: center;
        padding: 0.25rem 0.16rem;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }

    .m-header-logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .m-header-logo img {
        display: block;
        height: 0.55rem;
        width: auto;
    }

    .m-header-menubtn {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 0.44rem;
        height: 0.44rem;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .m-header-menubtn img {
        display: block;
        width: 0.36rem;
        height: auto;
        max-width: 36px;
    }

    /* —— 侧栏菜单 —— */
    .m-nav-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 210;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.m-nav-open .m-nav-mask {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .m-nav-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 220;
        width: 100%;
        height: 100dvh;
        background: #0d0d0d;
        color: #fff;

        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
    }

    body.m-nav-open .m-nav-panel {
        transform: translateX(0);
    }

    .m-nav-panel-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.16rem 0.14rem;
        border-bottom: 0.01rem solid #fff;
        background:linear-gradient(to right,#33428f 0%,#2fb4aa 100%);
        color: #fff;
    }

    .m-nav-panel-tit  img{
      height: 0.55rem;
    }

    .m-nav-panel-close {
        width: 0.4rem;
        height: 0.4rem;
        border: 0.01rem solid #fff;
        background: transparent;
        color: #fff;
        font-size: 0.28rem;
        line-height: 1;
        border-radius: 0.04rem;
        cursor: pointer;
    }

    .m-nav-panel-list {
        flex: 1;
        overflow-y: auto;
        padding: 0.08rem 0;
        background:linear-gradient(to right,#33428f 0%,#2fb4aa 100%);
        -webkit-overflow-scrolling: touch;
    }

    .m-nav-panel-list > li {
        border-bottom: 0.01rem solid #fff;
    }

    .m-nav-panel-link {
        display: block;
        padding: 0.18rem 0.2rem;
        font-size: 0.18rem;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .m-nav-panel-item.has-sub > .m-nav-panel-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .m-nav-panel-link:active {
        background: rgba(0, 0, 0, 0.2);
    }

    .m-nav-panel-link-arrow {
        flex-shrink: 0;
        width: 0.1rem;
        height: 0.1rem;
        margin-left: 0.12rem;
        border-right: 0.02rem solid #fff;
        border-bottom: 0.02rem solid #fff;
        transform: rotate(45deg);
        transition: transform 0.22s ease;
        opacity: 0.85;
    }

    .m-nav-panel-item.is-open .m-nav-panel-link-arrow {
        transform: rotate(-135deg);
        margin-top: 0.06rem;
    }

    .m-nav-panel-sub {
        display: none;
        margin: 0;
        list-style: none;
        background:linear-gradient(to right,#33428f 0%,#2fb4aa 100%);
        border-top: 0.01rem solid #fff;
    }

    .m-nav-panel-item.is-open .m-nav-panel-sub {
        display: block;
    }

    .m-nav-panel-sub li {
        border-bottom: 0.01rem solid #fff;
    }

    .m-nav-panel-sub li:last-child {
        border-bottom: none;
    }

    .m-nav-panel-sub a {
        display: block;
        padding: 0.18rem 0.2rem 0.18rem 0.32rem;
        font-size: 0.16rem;
        font-weight: normal;
        color: rgba(255, 255, 255, 1);
    }

    .m-nav-panel-sub a:active {
        background: #222;
        color: #fff;
    }

    body.m-nav-open {
        overflow: hidden;
        touch-action: none;
    }

    /* —— 隐藏桌面顶栏与主导航 —— */
    .top-header,
    .main-nav {
        display: none !important;
    }

    /* —— 通栏与留白 —— */
    .w1485 {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.16rem;
        padding-right: 0.16rem;
        box-sizing: border-box;
    }

    .home-main {

    }

    .home-upper-white {
        margin-bottom: 0.12rem;
    }

    /* —— 轮播 —— */
    .hero-section {
        margin: 0;
    }

    .hero-swiper{
        height: 2.2rem;
    }
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }
    .hero-swiper .swiper-slide{
        height: 2.2rem;
    }

    .hero-banner {
        width: 100%;
        height: auto;
        display: block;
        max-height: 2.2rem;
        object-fit: cover;
    }

    /* —— 教务动态 + 通知等：纵向堆叠 —— */
    .news-board {
        flex-direction: column !important;
        gap: 0.24rem !important;
    }

    .news-panel {
        min-width: 0 !important;
    }

    .panel-head {
        flex-wrap: wrap;
        margin-bottom: 0;
    }
    .panel-title {
        font-size: 0.24rem;
    }
    .panel-title-icon {
        width: 0.35rem;
        height: 0.35rem;
    }
    .jw-feature-swiper .jw-feature-prev,
    .jw-feature-swiper .jw-feature-next {
        display: none;
    }
    .jw-feature-swiper .swiper-slide{
        height: auto;
    }
    .jw-feature-link{
        padding-bottom: 0.1rem;
    }
    .jw-feature-visual {
        height: 2.8rem;
    }

    .jw-feature-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* —— 下区分院 / 高教：纵向 —— */
    .home-lower-stack .news-board {
        flex-direction: column !important;
    }

    /* —— 快捷区：上排图标 + 下三条横块（手风琴收缩、无右侧泛白） —— */
    .quick-strip {
        padding: 0.12rem 0 !important;
        margin: 0.2rem 0 !important;
    }

    .quick-strip-inner {
        overflow: visible;
        box-sizing: border-box;
    }

    .quick-accordion {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        min-height: 0 !important;
        box-shadow: unset;
    }

    .quick-m-icons-host {
        display: block;
        position: relative;
        z-index: 1;
        align-self: stretch;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
       padding: 0.36rem 0.06rem 0.32rem;
        background: linear-gradient(120deg, #2d3a7a 0%, #2fb4aa 100%);
        box-shadow: inset 0 -0.02rem 0 rgba(0, 0, 0, 0.08);
        border-bottom: 0.02rem solid rgba(255, 255, 255, 0.88);
    }

    /* 图标区插在「当前选中条」上方：idx0 顶栏；idx1 在条1与条2间；idx2 在条2与条3间 */
    .quick-accordion[data-active-idx="0"] .quick-m-icons-host {
        order: 1;
    }

    .quick-accordion[data-active-idx="0"] .qa-col:nth-child(2) .qa-col-tab {
        order: 2;
    }

    .quick-accordion[data-active-idx="0"] .qa-col:nth-child(3) .qa-col-tab {
        order: 3;
    }

    .quick-accordion[data-active-idx="0"] .qa-col:nth-child(4) .qa-col-tab {
        order: 4;
    }

    .quick-accordion[data-active-idx="1"] .qa-col:nth-child(2) .qa-col-tab {
        order: 1;
    }

    .quick-accordion[data-active-idx="1"] .quick-m-icons-host {
        order: 2;
    }

    .quick-accordion[data-active-idx="1"] .qa-col:nth-child(3) .qa-col-tab {
        order: 3;
    }

    .quick-accordion[data-active-idx="1"] .qa-col:nth-child(4) .qa-col-tab {
        order: 4;
    }

    .quick-accordion[data-active-idx="2"] .qa-col:nth-child(2) .qa-col-tab {
        order: 1;
    }

    .quick-accordion[data-active-idx="2"] .qa-col:nth-child(3) .qa-col-tab {
        order: 2;
    }

    .quick-accordion[data-active-idx="2"] .quick-m-icons-host {
        order: 3;
    }

    .quick-accordion[data-active-idx="2"] .qa-col:nth-child(4) .qa-col-tab {
        order: 4;
    }

    .quick-accordion[data-active-idx="1"] .quick-m-icons-host,
    .quick-accordion[data-active-idx="2"] .quick-m-icons-host {
        border-top: 0.01rem solid rgba(255, 255, 255, 0.22);
    }

    .quick-m-icons-host::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("../image/bannerbg.png") center / cover no-repeat;
        opacity: 0.16;
        mix-blend-mode: overlay;
        pointer-events: none;
    }

    /* 图标区底：居中向下小白三角，压住底部分界线 */
    .quick-m-icons-host::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom:0;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 0.07rem solid transparent;
        border-right: 0.07rem solid transparent;
        border-bottom: 0.08rem solid #fff;
        z-index: 5;
        pointer-events: none;
    }

    .quick-accordion .qa-col {
        display: contents;
    }

    .quick-accordion .qa-col .qa-col-body {
        display: none !important;
    }

    .quick-m-icons-host .quick-icons {
        position: relative;
        z-index: 2;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 0.02rem !important;
        width: 100% !important;
    }

    .quick-m-icons-host .quick-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .quick-m-icons-host .quick-ring {
        width: 0.44rem !important;
        height: 0.44rem !important;
        margin: 0 auto 0 !important;
    }

    .quick-m-icons-host .quick-ring img {
        width: 0.22rem !important;
        height: 0.22rem !important;
    }

    .quick-m-icons-host .quick-label {
        display: block;
        font-size: 0.15rem !important;
        line-height: 1.22 !important;
        margin-top: 0.15rem !important;
        padding: 0 !important;
        color: #fff;
        text-shadow: 0 0.01rem 0.04rem rgba(0, 0, 0, 0.28);
        text-align: center;
    }

    /* 三条横块：覆盖桌面竖条固定 1.57rem，三列与图标区同宽拉满 */
    .quick-accordion .qa-col-tab {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        align-self: stretch !important;
        box-sizing: border-box;
        cursor: pointer;
        position: relative;
        height: 0.73rem;
        padding: 0.14rem 0.2rem;
        border-top: 0.01rem solid rgba(255, 255, 255, 0.22);
    }

    /* 底图 + 左侧实色叠压，右侧保持色相加深而非发白 */
    .quick-accordion .qa-col.qv-1 .qa-col-tab {

        background-image: url("../image/img1m.png");
        background-repeat: no-repeat, no-repeat;
        background-position: 0 0, right -5% center;
        background-size: 100% 100%, auto 100%;
    }

    .quick-accordion .qa-col.qv-2 .qa-col-tab {

        background-image: url("../image/img2m.png");
        background-repeat: no-repeat, no-repeat;
        background-position: 0 0, right -5% center;
        background-size: 100% 100%, auto 100%;
    }

    .quick-accordion .qa-col.qv-3 .qa-col-tab {

        background-image: url("../image/img3m.png");
        background-repeat: no-repeat, no-repeat;
        background-position: 0 0, right -5% center;
        background-size: 100% 100%, auto 100%;
    }

    /* 紧贴图标区下方的横条顶：向上白三角（随 data-active-idx 落在 qv-1 / qv-2 / qv-3） */
    .quick-accordion .qa-col-tab::before {
        display: none;
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -98%);
        width: 0;
        height: 0;
        border-left: 0.07rem solid transparent;
        border-right: 0.07rem solid transparent;
        border-bottom: 0.08rem solid rgba(255, 255, 255, 0.95);
        z-index: 6;
        pointer-events: none;
        filter: drop-shadow(0 -0.02rem 0.04rem rgba(0, 0, 0, 0.1));
    }

    .quick-accordion[data-active-idx="0"] .qa-col.qv-1 .qa-col-tab::before {
        display: block;
    }

    .quick-accordion[data-active-idx="1"] .qa-col.qv-2 .qa-col-tab::before {
        display: block;
    }

    .quick-accordion[data-active-idx="2"] .qa-col.qv-3 .qa-col-tab::before {
        display: block;
    }

    .quick-accordion .qv-stack {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.08rem !important;
        width: 100%;
    }

    .quick-accordion .qv-text {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        font-size: 0.17rem !important;
        letter-spacing: 0.1em !important;
        order: 1;
    }

    .quick-accordion .qv-cap-line {
        width: 0.3rem !important;
        height: 0.03rem !important;
        order: 2;
        border-radius: 0.02rem;
    }

    /* —— 页脚 —— */
    .footer-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.16rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.08rem;
    }

    .footer-copy{
        margin: 0 auto;
        font-size: 0.16rem;
        text-align: center;
        justify-content: center;
        line-height: 1.6;
    }
    .site-footer{
        padding: 0.2rem 0;
    }


    /* ========== 新闻网列表页 .n_container ========== */
    .n_container > .w1485{
        padding: 0 3%;
    }

    .n_left {
        flex: none;
        width: 100%;
        display: none;
    }

    .n_left .con h1 {
        margin-top: -0.16rem;
        font-size: 0.2rem;
        padding: 0.18rem 0.14rem;
    }

    .n_right {
        padding: 0 0 0.32rem;
    }

    .n_right .mianbao {
        font-size: 0.12rem;
        padding: 0.1rem 0 0.12rem;
        margin-bottom: 0.18rem;
        display: none;
    }

    .n_titu{
        margin-top: 0.3rem;
    }
    .n_titu a.clearfix {
        flex-direction: column;
        align-items: stretch;
        gap: 0.14rem;
        padding: 0.18rem 0.16rem 0.14rem;
    }

    .n_titu li .pic {
        flex: none;
        width: 100%;
        max-width: none;
        align-self: stretch;
    }

    .n_titu li .pic img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        max-height: 2.4rem;
        object-fit: cover;
    }

    .n_titu h5.line1 {
        font-size: 0.2rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .n_titu p.line3 {
        font-size: 0.18rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    .n_titu .text > i{
        font-size: 0.18rem;
    }
    .n_titu .text > i img{
        width: 0.18rem;
        height: 0.18rem;
        margin-top: 0.02rem;
    }
    .n_titu li .pic1{
        width: 100%;
        flex: 1;
        max-width: 100%;
    }
    .TextList ul li a {
        flex-wrap: wrap;
        padding: 0.2rem
    }

    .TextList ul li a .data {
        width: 0.8rem;
        height: auto
    }
    .TextList ul li a .data b {
        font-size: 0.4rem;
    }
    .TextList ul li a .data i {
        font-size: 0.18rem;
    }
    .TextList ul li a p {
        margin-top: 0;
        width: calc(100% - 1rem);
        min-width: 0;
        line-height: 0.28rem;
        font-size: 0.2rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        white-space: break-spaces;
    }

    .TextList ul li a span {
        width: 100%;
        text-align: left;
        margin-left: 1.2rem;
        line-height: 0.24rem;
        margin-top: 0.06rem
    }
    .show01 h5{
        height: auto;
    }
    .show01 .show01-ul {
        justify-content: center;
        gap: 0.1rem 0.12rem;
        padding-bottom: 0.18rem;
    }

    .show01 .show01-ul li div {
        font-size: 0.18rem;
        padding: 0.07rem 0.12rem;
    }

    .show01 .show01-ul li div img {
        width: 0.18rem;
        height: 0.18rem;
    }
    .show02 p{
        font-size: 0.18rem !important;
    }
    .list_box_tc{
        margin-top: 0.4rem;
    }
    .piclist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.14rem 0.12rem;
    }

    .piclist-card-caption {
        font-size: 0.16rem;
        padding: 0.08rem 0.1rem;
    }
    #nav_slide {
        display: block;
    }

    #nav_slide {
        background: linear-gradient(95deg, #33428f 0%, #2fb4aa 100%);
        line-height: 50px;
        position: relative;
        z-index: 2
    }

    #nav_slide #bnt_back {
        position: absolute;
        left: 0.16rem;
        top: -2px
    }

    #nav_slide #bnt_back img {
        height: 20px;
        vertical-align: middle
    }

    #nav_slide .n_title {
        height: 50px
    }

    #nav_slide h1 {
        font-size: 16px;
        color: #fff;
        text-align: center
    }

    #bnt_sub_nav {
        position: absolute;
        right: 0.16rem;
        top: 14.5px;
        cursor: pointer
    }

    #bnt_sub_nav img {
        display: block;
        height: 20px;
        transition: transform 0.3s ease;
    }

    #bnt_sub_nav.on img {
        -webkit-transform: rotate(-180deg);
        transform: rotate(-180deg)
    }

    #sub_nav_content {
        background: #f2f2f2;
        z-index: 9;
        width: 100%;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.38s ease, opacity 0.28s ease, visibility 0.28s ease;
    }

    #sub_nav_content.is-open {
        max-height: unset;
        opacity: 1;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        visibility: visible;
    }

    #sub_nav_content ul {
        background: #FFFFFF
    }

    #sub_nav_content ul li {
        background: none;
        box-shadow: none;
        border-bottom: 1px solid #dedede;
        padding: 0 15px
    }

    #sub_nav_content ul li a {
        display: block;
        font-size: 16px;
        padding: 0;
        color: #333;
        width: 100%;
    }

    #sub_nav_content ul li.on>a {
        color: #33428f;
    }

    #sub_nav_content ul > li.has-sub {
        padding: 0;
    }

    #sub_nav_content ul > li.has-sub > a {
        padding: 0.12rem 0.15rem;
    }

    #sub_nav_content .news-nav-sub {
        background: #eceff2;
        border-top: 1px solid #dedede;
    }

    #sub_nav_content .news-nav-sub li {
        padding: 0 0.12rem 0 0.2rem;
        border-bottom: 1px solid #e4e4e4;
    }

    #sub_nav_content .news-nav-sub li:last-child {
        border-bottom: none;
    }

    #sub_nav_content .news-nav-sub a {
        padding: 0.1rem 0;
        font-size: 0.16rem;
    }

}