﻿@charset "utf-8";

/* 移动端：与 reset.css max-width 1024px 一致 */
@media screen and (max-width: 1024px) {

    .site-header-wrap{
        overflow: hidden;
        background: #8e1537 url(../images/topleft.png) left top no-repeat;
        background-size: cover;
    }
    .site-header-wrap::before{
        display: none;

    }
    .site-header-wrap::after{
        display: none;
    }
    .header-menu-btn {
        display: flex !important;
    }

    .header-menu-btn img {
        display: block;
        width: 0.36rem;
        height: auto;
        max-height: none;
    }

    .header-search {
        display: none !important;
    }

    .logo-img {
        height: 0.5rem;
    }

    .site-header-inner {
        padding-top: 0.16rem;
        padding-bottom: 0;
    }

    .header-top {
        padding-bottom: 0.14rem;
    }

    /* 侧滑全屏导航：背景与顶栏一致（底色 + 左上装饰图） */
    .main-nav {
        position: fixed;
        right: 0;
        left: auto;
        top: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1002;
        border-top: none;
        padding: 0.12rem 0.08rem 0.4rem;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        background: #8e1537;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .nav-drawer-close.wap {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 0.08rem 0.06rem 0.12rem;
        margin: 0 0 0.06rem;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 0.42rem;
        line-height: 1;
        cursor: pointer;
    }

    .main-nav .nav-list {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
    }

    .main-nav .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 0.01rem solid rgba(255, 255, 255, 0.2);
    }

    .main-nav .nav-item > a {
        padding: 0.15rem 0.1rem;
        white-space: normal;
        font-size: 0.18rem;
    }

    .main-nav .nav-item.has-sub > a {
        position: relative;
        padding-right: 0.36rem;
    }

    .main-nav .nav-item.has-sub > a::after {
        content: "";
        position: absolute;
        right: 0.1rem;
        top: 50%;
        width: 0.08rem;
        height: 0.08rem;
        margin-top: -0.06rem;
        border-right: 0.02rem solid rgba(255, 255, 255, 0.9);
        border-bottom: 0.02rem solid rgba(255, 255, 255, 0.9);
        transform: rotate(45deg);
        transform-origin: 50% 50%;
        transition: transform 0.25s ease, margin-top 0.25s ease;
        pointer-events: none;
    }

    .main-nav .nav-item.has-sub.is-sub-open > a::after {
        margin-top: -0.02rem;
        transform: rotate(225deg);
    }

    .main-nav .sub-nav {
        position: static;
        left: auto;
        top: auto;
        transform: none !important;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 0.16rem;
        background: rgba(0, 0, 0, 0.14);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s cubic-bezier(0.33, 1, 0.68, 1);
    }

    .main-nav .sub-nav::before {
        display: none;
    }

    .main-nav .nav-item.has-sub.is-sub-open .sub-nav {
        padding-bottom: 0.12rem;
        padding-top: 0.04rem;
    }

    .main-nav .sub-nav a {
        color: rgba(255, 255, 255, 0.9);
        text-align: left;
        padding: 0.1rem 0.08rem;
        font-size: 0.16rem;
    }

    .main-nav .sub-nav a:hover {
        color: #fff;
        background: rgba(0, 0, 0, 0.1);
    }

    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }

    /* 轮播 */
    .banner-img {
        height: 2rem;
    }

    .banner-pagination.swiper-pagination-bullets {
        bottom: 0.14rem !important;
        gap: 0.06rem;
    }

    .banner-pagination .swiper-pagination-bullet {
        width: 0.2rem;
        height: 0.05rem;
        border-radius: 0.025rem;
    }

    /* 新闻双栏 → 单栏 */
    .section-grid.section-grid--news {
        flex-direction: column;
        gap: 0.38rem;
    }

    .section-grid.section-grid--news > .panel-branch,
    .section-grid.section-grid--news > .panel-notice {
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    .panel-branch {
        height: auto !important;
    }

    .branch-body {
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .branch-swiper-wrap {
        width: 100% !important;
        height: auto !important;
    }

    .branch-swiper,
    .branch-swiper .swiper-wrapper,
    .branch-swiper .swiper-slide {
        height: auto !important;
    }

    .branch-slide-link,
    .branch-swiper-img {
        height: auto !important;
        max-height: 2.4rem;
    }

    .branch-swiper-img {
        min-height: 1.8rem;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .branch-list {
        flex: none !important;
        width: 100% !important;
        min-height: 0;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .branch-tit {
        height: auto !important;
        max-height: none;
        -webkit-line-clamp: 3;
    }

    /* 第二块双栏 */
    .section--beige .section-grid {
        flex-direction: column;
        gap: 0.28rem;
    }

    .section--beige .section-grid > .panel {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .learn-grid {
        grid-template-columns: 1fr;
        gap: 0.14rem;
    }

    .learn-card {
        min-height: 0;
        padding: 0.14rem 0.12rem;
    }

    .learn-card-tit {
        height: 0.504rem !important;
        margin-bottom: 0.08rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .learn-card-time {
        margin-bottom: 0;
    }

    .learn-card-text {
        display: none !important;
    }

    /* 学习园地：移动端统一红底（与 learn-card--red 一致） */
    .learn-card--white {
        background: #8e1537;
        border: 0.01rem solid rgba(0, 0, 0, 0.06);
    }

    .learn-card--white:hover {
        border-color: rgba(255, 255, 255, 0.28);
        box-shadow: 0 0.1rem 0.28rem rgba(0, 0, 0, 0.2), 0 0 0 0.01rem rgba(255, 255, 255, 0.08) inset;
    }

    .learn-card--white .learn-card-tit {
        color: #fff;
    }

    .learn-card--white .learn-card-time {
        color: rgba(255, 255, 255, 0.82);
    }

    .learn-card--white .learn-card-text {
        color: #c1c1c1;
    }

    /* 页脚：移动端对齐设计稿（隐藏装饰底图、Logo 与地址） */
    .site-footer {
        padding: 0;
        background: #8e1537;
    }

    .site-footer-top {
        padding: 0.24rem 0 0.32rem;
        background: url(../images/bottom.png) no-repeat center top;
        background-size: 100% auto;
    }

    .site-footer-top::after {
        display: none;
    }

    .footer-links {
        margin-bottom: 0;
        gap: 0.2rem;
        padding: 0.06rem 0.16rem;
    }

    .footer-links-tit {
        font-size: 0.24rem;
        font-weight: bold;
        color: #fff;
    }

    .footer-links-tit-line {
        width: 0.42rem;
        height: 0.03rem;
        margin-top: 0.1rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.14rem 0.16rem;
        width: 100%;
    }

    .footer-links-grid a {
        color: #fff;
        font-size: 0.16rem;
        line-height: 1.4;
        overflow-wrap: break-word;
    }

    .footer-mid {
        display: none !important;
    }

    .footer-address {
        display: none;
    }

    .footer-copy {
        text-align: center;
        font-size: 0.16rem !important;
        line-height: 1.5;
        padding: 0.14rem 0.12rem !important;
        margin: 0;
        background: #9a2d4b;
    }

    .section {
        padding: 0.28rem 0 0.32rem;
    }

    .panel-head {
        margin-bottom: 0.18rem;
    }

    .panel-title-cn {
        font-size: 0.26rem;
    }

    .panel-title-en {
        font-size: 0.14rem;
    }


    /* ========== 新闻网列表页 .n_container ========== */
    .n_container > .w15{
        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.2rem;
    }
    .n_titu a.clearfix {
        flex-direction: row;
        align-items: center;
        gap: 0.1rem;
        padding: 0.12rem 0.06rem;
    }

    .n_titu .text {
        flex-direction: row;
        align-items: center;
    }

    .n_titu h5.line1 {
        font-size: 0.18rem;
        white-space: nowrap;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .n_titu .text > i{
        font-size: 0.15rem;
    }
    .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;
    }

    #nav_slide {
        display: block;
        background: #8e1537;
        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: min(85vh, 5.6rem);
        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: #8e1537;
    }
}