﻿@media (max-width: 1025px) {
    .zxxw {
        width: 48% !important;
    }

    .news-slick {
        display: none;
    }

    .zxxw .list {
        width: 99%;
    }

    .xxgg {
        width: 48% !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
        /* 减少顶部间距 */
    }

    .logo img {
        max-width: 100%;
        /* 缩小logo宽度 */
        height: auto;
        /* 保持比例 */
    }

    .mobile-nav-toggle {
        display: block;
        /* 在移动端显示 */
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background:  #a70a0a;
        transition: all 0.5s ease;
        z-index: 9998;
        overflow-y: auto;
        padding-top: 60px;
    }

    .nav-container.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        width: 100% !important;
        padding: 0;
    }

    .nav li {
        width: 100% !important;
        float: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav li a {
        text-align: left;
        padding: 15px 20px;
        line-height: 1.5 !important;
    }

    .nav li .lv2 {
        position: static;
        width: 100% !important;
        display: none;
        background: rgba(0, 0, 0, 0.1);
    }

    .nav li .lv2 a {
        padding-left: 30px !important;
    }

    .nav li .lv2 .tri {
        display: none;
    }

    /* 添加下拉箭头 */
    .nav li.has-dropdown>a:after {
        content: "+";
        float: right;
        transition: transform 0.3s;
    }

    .nav li.has-dropdown.active>a:after {
        content: "-";
    }

    .slider-container {
        display: none !important;
        /* 强制隐藏轮播图 */
    }

    .nav-search {
        display: block !important;
        padding: 15px;
        background: rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-search .search {
        width: 100%;
        padding: 0;
        border: none;
    }

    .nav-search .input {
        display: block !important;
        /* 强制显示输入框 */
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgb(253, 248, 248);
        border-radius: 4px;
        padding: 8px 10px;
    }

    .nav-search .input::placeholder {
        color: rgb(255, 255, 255);
    }

    .nav li.nav-search {
        display: none !important;
    }

    .nav-search .submit {
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        width: 20px;
        height: 20px;
        background-image: url(template_files/1/images/search-icon-white.png);
        background-size: contain;
    }

    /* 隐藏原本的搜索框 */
    .header .search {
        display: none;
    }

    /* 调整导航项间距 */
    .nav li {
        padding: 0;
    }

    .nav li a {
        padding: 15px 20px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 模块整体居中 */
    }

    .container {
        width: 447px;
    }

    /* 联系我们和友情链接模块 */
    .contact,
    .links1 {
        width: 100%;
        max-width: 300px;
        /* 限制最大宽度 */

        text-align: left;
        /* 内容保持左对齐 */
    }

    /* 友情链接容器 */
    .links-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* 友情链接列 */
    .links-column {
        margin-bottom: 5px;
    }

    /* 列表样式 */
    .links1 ul {
        list-style-position: outside;
    }

    /* 版权信息 */
    .copyright {
        text-align: center;
    }

    .section.inset.container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        width: 90%;
        height: auto;
        /* 取消固定高度 */
        background-size: cover;
        background: #ffffff;
        overflow: hidden;
    }

    .sidebar h3 {
        cursor: pointer;
        position: relative;
    }

    .sidebar h3:after {
        content: "+";
        position: absolute;
        right: 15px;
        transition: transform 0.3s;
    }

    .sidebar h3.active:after {
        content: "-";
    }

    .sidebar h3 .arrow {
        position: absolute;
        right: 15px;
        transition: transform 0.3s;
    }

    .sidebar h3.active .arrow {
        transform: rotate(180deg);
    }

    .sidebar .lv2-nav {
        display: none;
        /* 确保默认隐藏 */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .sidebar .lv2-nav.active {
        display: block;
        max-height: 500px;
        /* 设置一个足够大的值容纳所有内容 */
        transition: max-height 0.3s ease-in;
    }

    .sidebar .lv2-nav li {
        padding: 10px 15px;
        border-bottom: 1px solid #ddd;
    }

    .sidebar .lv2-nav li a {
        display: block;
        color: #333;
    }

    .sidebar .lv2-nav li.cur a {
        color: #015abe;
        font-weight: bold;
    }

    .main {
        width: 90%;
        margin: 10px auto;
        /* 上下20px，左右自动居中 */
    }

    /* 列表内容 */
    .list3 {
        width: 100%;
        text-align: left;
        /* 保持文字左对齐 */
    }

    /* 保持文本段落样式不变 */
    .list3 p,
    .v_news_content p {
        text-align: justify;
        /* 保持两端对齐 */
        text-indent: 2em;
        /* 保持首行缩进 */
    }

    .section.container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 学院新闻模块调整 */
    .zxxw-mobile {
        width: 95%;

    }

    .zxxw {
        width: 100% !important;
        float: none !important;
    }

    .zxxw .news-slick {
        width: 100% !important;
        margin: 0 auto;
    }

    .zxxw .list {
        width: 100% !important;
        float: none !important;
    }

    /* 学院通知模块调整 */
    .xxgg-mobile {
        width: 95%;

    }

    .xxgg {
        width: 100% !important;
        float: none !important;

    }

    /* 保持原有的文字效果 */
    .news-slick .title,
    .news-slick .info,
    .list .title,
    .list2 .title {
        font-size: inherit;
        line-height: inherit;
        color: inherit;
        text-align: inherit;
    }

    /* 轮播图和内容上下分布 */
    .news-slick {
        display: flex;
        flex-direction: column;
    }

    .news-slick .img-scale {
        position: relative;
        display: block !important;
        /* 强制显示 */
        height: auto !important;
        /* 高度自适应 */

    }

    /* 确保标题显示 */
    .news-slick .title {
        display: block !important;
        margin: 15px 0 10px !important;
        padding: 0 15px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        color: #000 !important;
        text-align: left !important;
    }

    .news-slick .date1,
    .news-slick .title,
    .news-slick .info {
        order: 2;
    }

}