@media screen and (max-width: 1400px) {
    main {
        min-width: auto;
    }
    footer {
        min-width: auto;
    }
}
@media screen and (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    main {
        min-width: auto;
    }
    header {
        display: none;
        min-width: auto;
    }
    footer .footer-main {
        width: 95%;
    }
    .side-nav {
        display: block;
    }
    main {
        padding-top: var(--header-h5-height);
    }
    .header-h5 {
        width: 100%;
        height: var(--header-h5-height);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0;
        z-index: 1000;
    }
    .header-left .logo img {
        height: 35px;
    }
    /* 搜索框样式 */
    .header-center {
        flex-grow: 1; /* 占据剩余空间 */
        margin: 0 15px;
    }
    .search-box {
        display: flex;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        max-width: 280px;
        margin-left: auto;
    }
    .search-box input {
        flex-grow: 1;
        border: none;
        background: transparent;
        padding: 8px 12px;
        font-size: 1rem;
        height: auto;
        outline: none;
        width: 100%;
    }
    .search-box .search-btn {
        background: transparent;
        border: none;
        padding: 8px 12px;
        cursor: pointer;
        color: #666;
    }

    /* 汉堡菜单按钮样式 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* --- 侧边导航和遮罩层样式 --- */
    .side-nav {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100%;
        background-color: #AC272A;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.2s ease-in-out;
        z-index: 999;
        padding-top: var(--header-h5-height)
    }
    .side-nav.is-open {
        right: 0;
        overflow-y: scroll;
    }
    .side-nav .nav-link {
        display: flex;
        align-items: center;
        color: #f1f1f1;
        border-bottom: 1px solid #b58585;
        transition: background-color 0.2s;
        font-size: 1rem;
        height: 60px;
        padding: 0 20px;
        background-color: #AC272A;
    }
    .side-nav .nav-link:hover {
        background-color: #C92E31;
    }
    .side-nav .nav-link > img {
        width: 90px;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: 998;
    }
    .overlay.is-open {
        opacity: 1;
        visibility: visible;
    } 

    .side-nav .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .side-nav .dropdown-toggle::after {
        content: '';
        display: inline-block;
        width: 6px;   /* 箭头宽度 */
        height: 6px;  /* 箭头高度 */
        border-left: 2px solid #666; /* 左边框 */
        border-bottom: 2px solid #666; /* 下边框 */
        transform: rotate(-45deg); /* 旋转 -45 度，形成一个指向右下角的箭头 */
        transition: transform 0.3s ease; /* 添加旋转过渡 */
        flex-shrink: 0; /* 防止箭头被压缩 */
    }
    .side-nav .nav-item-dropdown.is-open > .dropdown-toggle::after {
        transform: rotate(135deg);
    }
    .side-nav .dropdown-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s ease-in-out;
    }
    .side-nav .dropdown-wrapper .dropdown-toggle {
        padding-left: 20px;
    }
    .side-nav .nav-item-dropdown.is-open > .dropdown-wrapper {
        grid-template-rows: 1fr;
    }
    .side-nav .dropdown-menu {
        /* 必须要给高度不然默认会影藏 */
        height: auto; 
        overflow: hidden; 
        padding: 0;
        margin: 0;
    }
    .side-nav .dropdown-item {
        display: flex;
        color: #333;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        height: 50px;
        padding-left: 20px;
        background-color: #f5f5f5;
    }
    .side-nav .dropdown-item img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        margin-right: 5px;
    }
    .side-nav .dropdown-item:hover {
        background-color: #C92E31;
    }
    .side-nav .dropdown-menu .dropdown-menu .dropdown-item {
        padding-left: 30px;
    }
    /* 面包屑 */
    .breadcrumb {
        padding-left: 10px;
    }

    /* banner */
    .banner-main {
        min-width: auto;
    }
    .banner-main .text {
        font-size: 2.4rem;
    }

    /* 文章 */
    .news-tabs-box {
        width: 95%;
    }
    .news-tabs-box .lists .item {
        width: calc(33.33% - (40px * 2 / 3));
    }
    .news-tabs-box .lists .item .text-n {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    .news-tabs-box .tabs .cell {
        font-size: 1.6rem;
    }

    .index-pages .block1 .block-main {
        width: 95%;
        flex-direction: column;
    }
    .index-pages .block1 .block-main-left {
        width: 100%;
    }
    .index-pages .block1 .hot-item {
        width: 45%;
    }
    .index-pages .block1 .lists {
        width: 50%;
    }
    .index-pages .block1 .hot-item__img-box {
        aspect-ratio: 380 / 242;
        height: auto;
    }
    .index-pages .block1 .right__lists .item {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    .index-pages .block1 .text-t {
        font-size: 1rem;
    }
    .index-pages .block1 .block-main-left .item {
        align-items: flex-start;
    }
    .index-pages .block1 .block-main-left .item__img-box {
        width: 25%;
        height: auto;
        aspect-ratio: 100 / 70;
    }
    .index-pages .block1 .block-main-left .item .text-t {
        left: calc(25% + 20px);
        bottom: 1rem;
    }
    .index-pages .block1 .right__lists .text-n {
        font-size: 1.3rem;
        line-height: 1.5;
    }
    .index-pages .block2 .block-main {
        width: 95%;
    }
    .index-pages .block2 .tabs {
        column-gap: 2%
    }
    .index-pages .block2 .tabs__content .img-box {
        aspect-ratio: 288 / 240;
        height: auto;
    }
    .index-pages .block2 .tabs__content .item {
        width: auto;
        padding-bottom: 60px;
        height: auto;
    }
    .index-pages .block2 .tabs__label .cell {
        font-size: 1.1rem;
        width: 200px;
        height: 60px;
        padding: 0 20px;
    }
    .index-pages .block2 .tabs__label .cell.active::after {
        right: 20px;
    }
    .index-pages .block2 .tips {
        line-height: 1.5;
    }
    .index-pages .block2 .tabs__content .text-n {
        font-size: 1.1rem;
        padding: 0 10px;
        line-height: 1.5;
    }
    .index-pages .block2 .tabs__content .text-t {
        left: 10px;
        font-size: 1rem;
    }
    .index-pages .block3 .block-main {
        width: 95%;
    }
    .index-pages .block3 .img-box, .index-pages .block3 .item {
        aspect-ratio: 587 / 160;
        height: auto;
    }
    .index-pages .block4 .block-main {
        width: 95%;
        column-gap: 3%;
    }
    .index-pages .block4 .left .lists {
        margin-top: 20px;
    }
    .index-pages .block4 .right .item {
        height: 5rem;
    }
    .index-pages .block4 .right .text-n {
        font-size: 1.1rem;
    }
    .index-pages .block5 .swiper-box {
        height: auto;
    }
    .index-pages .block5 .block-main {
        width: 95%;
    }
    .index-pages .block5 .swiper-tabs .img-box {
        width: 150px;
    }
    .index-pages .block5 .img-box {
        width: 70%;
    }
    .index-pages .block6 .block-main {
        width: 95%;
    }
    .index-pages .block6 .tabs-content {
        width: 95%;
    }
    .index-pages .block7 .block-main {
        width: 95%;
    }
    .news-pages .tabs-content .lists2 .cell {
        width: calc(50% - (40px * 1 / 2));
    }
    .news-pages .tabs-content .lists2 .cell .text-n {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    .tournament-pages .main-box .lists {
        width: 95%;
    }
    .tournament-pages .main-box .item {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .tournament-pages .main-box .left {
        width: 100%;
        max-width: 800px;
    }
    .tournament-pages .main-box .right {
        width: 100%;
        max-width: 800px;
    }
    .tournament-pages .main-box .img-box {
        position: static;
        width: 100%;
        max-width: 800px;
        height: auto;
    }
    .tournament-pages .main-box .right .text-bg {
        font-size: 3rem;
    }
    .project-pages .news-tabs-box .tabs .cell .text {
        font-size: 1.4rem;
    }
    .project-pages .news-tabs-box .tabs {
        gap: 2%;
    }
    .policy-pages .lists-box {
        width: 95%;
    }
    .news-details-pages .main-box {
        width: 95%;
    }
    .base-pages .base-sign {
        width: 95%;
    }
    .faculty-pages .lists .item {
        width: auto;
        flex: 1 1 450px;
        padding: 0 20px;
        gap: 20px;
        /* align-items: self-start; */
        /* flex-direction: column; */
    }
    .file-download-pages .lists {
        width: 95%;
    }
    .file-download-pages .lists .text-n {
        font-size: 1.1rem;
    }
    .sevice-pages .main-box {
        width: 95%;
    }
    .sevice-pages .tips {
        padding: 0 10px;
        line-height: 1.5;
    }
    .sevice-pages .table-box {
        width: 100%;
    }
    .sevice-pages .table-box .table-header .cell-wrapper .cell:nth-child(5) {
        width: auto;
    }
    .sevice-pages .table-box .cell-wrapper .cell:nth-child(5) {
        width: auto;
    }
}

/* 特殊改动 */
@media screen and (max-width: 900px) {
    .index-pages .block5 .swiper {
        width: 100%;
        height: 340px;
    }
    .index-pages .block5 .swiper-slide {
        gap: 2%;
    }
    .index-pages .block5 .swiper-slide .content-box {
        padding: 20px;
    }
    .index-pages .block5 .swiper-box {
        flex-direction: column;
    }
    .index-pages .block5 .swiper-box .swiper-tabs {
        gap: 10px;
        flex-direction: row;
    }
    .index-pages .block5 .swiper-tabs .img-box {
        flex: 1;
    }
    .index-pages .block5 .swiper-slide .text-n {
        font-size: 1.2rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }
    .news-tabs-box .lists .item {
        width: calc(50% - (40px * 1 / 2));
    }
    .news-details-pages .main-box {
        flex-direction: column;
    }
    .news-details-pages .main-box .left {
        width: 100%;
    }
    .news-details-pages .main-box .right {
        width: 100%;
    }
    .news-details-pages .main-box .info {
        gap: 20px;
    }
}

/* 手机端 */
@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }
    footer {
        height: 400px;
    }
    footer .footer-main .content-box .item:nth-of-type(1) {
        display: none;
    }
    footer .footer-main .content-box .item:nth-of-type(2) {
        margin-left: 0;
        font-size: 0.9rem;
        width: 240px;
    }
    footer .footer-main .content-box .item:nth-of-type(2) .cell {
        line-height: 1.5;
    }
    .news-tabs-box .tabs .cell {
        font-size: 1.4rem;
    }
    .news-tabs-box .lists .item {
        width: 100%;
        padding: 0 20px;
    }
    .index-pages .banner,
    .banner-main{
        height: 250px;
    }
    .index-pages .banner .swiper-button-prev, .index-pages .banner .swiper-button-next {
        display: none;
    }
    .index-pages .block-title .title-l .name {
        font-size: 2rem;
    }
    .index-pages .block1 .text-n {
        font-size: 1.3rem;
        line-height: 1.5;
    }
    .index-pages .block1 .content-box {
        display: flex;
        flex-direction: column;
    }
    .index-pages .block1 .hot-item,
    .index-pages .block1 .lists {
        width: 100%;
    }
    .index-pages .block1 .hot-item {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    .index-pages .block2 .tabs {
        flex-direction: column;
    }
    .index-pages .block2 .tabs__label {
        flex-direction: row;
        margin-bottom: 30px;
    }
    .index-pages .block2 .tabs__label .cell {
        flex: 1;
        justify-content: center;
    }
    .index-pages .block2 .tabs__label .cell.active::after {
        display: none;
    }
    .index-pages .block2 .tabs__content {
        column-gap: 10px;
        flex-direction: column;
    }
    .index-pages .block2 .tabs__content .img-box {
        width: 100%;
        /* height: 220px; */
    }
    .index-pages .block3 .img-box, .index-pages .block3 .item {
        flex: 1 1 100%;
    }
    .index-pages .block3 .lists {
        gap: 15px;
    }
    .index-pages .block3 .item-text {
        font-size: 3vw;
        padding-left: 4vw;
    }
    .index-pages .block4 .block-main {
        flex-direction: column;
    }
    .index-pages .block5 .swiper-tabs .img-box {
        height: 70px;
    }
    .index-pages .block5 .swiper {
        height: auto;
    }
    .index-pages .block5 .swiper-slide {
        flex-direction: column;
        row-gap: 10px;
    }
    .index-pages .block5 .img-box {
        width: 100%;
    }
    .index-pages .block5 .swiper-slide .content-box {
        padding: 10px;
    }
    .index-pages .block5 .swiper-slide .text-d {
        -webkit-line-clamp: 8
    }
    .index-pages .block7 .lists .cell {
        width: 100%;
    }
    .index-pages .block6 .tabs .cell {
        width: 150px;
        font-size: 1.1rem;
    }
    .news-pages .tabs-content .lists2 .cell {
        width: 100%;
    }
    .project-pages .news-tabs-box .guide-box {
        height: auto;
    }
    .project-pages .news-tabs-box .tabs .cell {
        height: 70px;
    }
    .project-pages .news-tabs-box .tabs .cell::after {
        bottom: 15px;
        height: 1px;
    }
    .project-pages .guide-box .text-n {
        font-size: 1.6rem;
    }
    .project-pages .guide-box * {
        line-height: 1.5;
    }
    .project-pages .guide-box .text-d {
        position: static;
        margin-top: 20px;
        text-align: left;
        padding: 0;
    }
    .project-pages .guide-box .icon-bg {
        left: 20px;
        bottom: 20px;
    }
    .project-pages .guide-box .text-bg {
        display: none;
    }
    .base-pages .base-sign {
        flex-direction: column;
        gap: 10px;
        padding: 40px 0;
    }
    .base-pages .base-sign .item {
        width: auto;
        gap: 10px;
    }
    .base-pages .base-sign .item .small {
        height: auto;
    }
    .base-pages .base-sign .item .big {
        height: auto;
    }
     .faculty-pages .lists .item .img-box {
        width: 170px;
        height: 260px;
    }
    .faculty-pages .lists .item {
        height: 260px;
        gap: 10px;
    }
    .faculty-pages .lists .item .info {
        margin-top: 20px;
        padding-bottom: 20px;
    }
    .news-tabs-box .lists .text-d {
        margin-top: 10px;
    }
    .faculty-pages .lists .item .img-box {
        margin-top: -20px;
    }
    .sevice-pages .input-row {
        gap: 20px;
    }
    .sevice-pages .input-row input {
        width: 0;
    }
    .sevice-pages .radio-group {
        gap: 30px;
    }
    .sevice-pages .table-box .cell-wrapper,
    .sevice-pages .table-box .reply-box {
        padding: 0 10px;
    }
    .sevice-pages .table-box .cell-wrapper .cell:nth-child(1) {
        width: 90px;
    }
    .sevice-pages .table-box .cell-wrapper .cell:nth-child(2) {
        width: 75px;
    }
    .sevice-pages .table-box .cell-wrapper .cell:nth-child(3) {
        width: 70px;
    }
    .news-details-pages .main-box .left .title {
        font-size: 1.6rem;
    }
    .news-details-pages .main-box .content {
        padding-bottom: 60px;
    }
}

