﻿/* Mobile overrides for small screens */
@media only screen and (max-width: 768px) {
    :root {
        --content-width: 100%;
    }

    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }

    .wrapper {
        max-width: 100%;
        padding: 0 12px;
        overflow-x: hidden;
    }

    /* .footer-logo img{
            display: none;
    } */
    .footer-logo {
        height: 50px;
    }

    .top-tools {
        display: none;
    }

    .header .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .logo-box img {
        height: 60px;
        max-width: 100%;
        padding: 10px 0 0 0;
    }

    .top-tools {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }

    /* ensure placeholder is visible on header background */
    .header .search-box input::placeholder {
        color: #fff !important;
    }

    .header-top::before {
        background: none;
    }

    .top-links {
        width: 100%;
        text-align: left;
    }

    .header-bottom {
        width: 100%;
    }

    .nav-links {
        position: static;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        background: transparent;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        max-height: none;
    }

    .nav-links.open {
        transform: none;
        opacity: 1;
    }

    .nav-item {
        width: auto;
        padding-bottom: 0;
        border-bottom: none;
        background: transparent;
    }

    .nav-item>a {
        padding: 10px 14px;
        color: #333 !important;
        background: #fff;
    }

    .search-box input {
        width: 100%;
        font-size: 13px;
    }

    .header {
        /* padding: 10px 0 0 0; */
        position: relative;
        z-index: 20;
        overflow: visible;
        background:  url(bgtop.png) no-repeat ;
        /* background-color: #ad0600; */
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        left: auto;
        z-index: 25;
        width: min(190px, 78%);
        max-height: calc(100vh - 140px);
        display: flex;
        flex-direction: column;
        gap: 0;
        font-size: 14px;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
        background: #f8efdc;
        box-shadow: -10px 0 22px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(10px);
        padding: 8px 8px 14px;
        border-radius: 0 0 0 12px;
    }

    .nav-links.open {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-item {
        width: 100%;
        padding-bottom: 0;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        background: #f8efdc;
    }

    .nav-item>a {
        display: block;
        padding: 14px 12px;
        color: #333 !important;
        background: #f8efdc;
    }

    .nav-item>a:hover,
    .nav-links .nav-item.active>a,
    .nav-links .nav-item.open>a {
        color: #ef1f1f !important;
        background: #f8efdc !important;
    }

    .nav-item .submenu {
        display: block;
        width: 100%;
        position: relative;
        left: 0;
        transform: none !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: #f4e5d0;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-item .submenu.open,
    .nav-item.open .submenu,
    .nav-links .nav-item .submenu.open,
    .nav-links .nav-item.open .submenu {
        max-height: 9999px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-item .submenu a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 0;
        color: #333;
        background: #f4e5d0;
    }

    .nav-item .submenu a:hover {
        color: #c61d23;
    }

    .hero {
        height: 100px;
    }

    .hero-slide img {
        /* object-fit: cover; */
    }

    .hero-arrow {
        padding: 10px;
    }

    .hero-controls {
        gap: 6px;
    }

    .news-module,
    .red-module-container {
        flex-direction: column;
        gap: 18px;
    }

    /* 关闭手机端动画，避免移动端偏移和横向空白 */
    .scroll-animate,
    .news-focus,
    .news-list,
    .notice-list,
    .notice-list li,
    .research-grid
    /* .hero-slide,
    .hero-slide img,
    .hero-arrow,.hero-controls */

        {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .news-focus,
    .news-list,
    .notice-list,
    .research-grid {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
    }

    /* Hide the large news image on mobile and let the list expand */
    .news-focus {
        display: none;
        min-height: 0;
    }

    .news-list {
        padding: 0;
        width: 100%;
        height: auto;
        display: block;
    }

    .news-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid rgba(167, 55, 49, 0.14);
        padding: 14px 0;
    }

    .news-list li:last-child {
        border-bottom: none;
    }

    .date-box-bg {
        width: 66px;
        height: 66px;
        margin-right: 0;
        border-radius: 0;
    }

    .date-box-bg .day {
        font-size: 15px;
        line-height: 1;
    }

    .date-box-bg .year-month {
        margin: 4px 0 0 3px;
        font-size: 10px;
        letter-spacing: 3px;
    }
.news-text{
    border:none;
}
.section-title.section-title-right .section-title-more{
    top:62%
}
    .news-list .news-text {
        min-width: 0;
        flex: 1;
        color: #333;
        font-size: 18px;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2;
        max-height: 57px;
        overflow: hidden;
    }

    .notice-list li,
    .activity-card,
    .research-card {
        width: 100%;
    }

    .red-module-container {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .half-col {
        width: 100%;
    }

    .sub-title {
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .sub-title-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #fff;
        padding: 8px 14px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        transition: background 0.2s ease, transform 0.2s ease;
        white-space: nowrap;
    }

    .sub-title-more:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

    .sub-title-more img {
        width: 18px;
        height: 18px;
        display: inline-block;
        vertical-align: middle;
    }

    .activity-card {
        padding: 16px 14px 18px;
        min-height: 0;
        border-left-width: 6px;
    }

    .activity-card+.activity-card {
        margin-top: 12px;
    }

    .activity-card::before {
        top: 20px;
        right: 16px;
        width: 64px;
    }

    .act-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
    }

    .act-date-tag {
        flex-direction: row;
        align-items: baseline;
        min-width: 0;
        width: fit-content;
        padding: 8px 12px;
        font-size: 20px;
    }

    .act-date-tag span {
        margin: 0 0 0 8px;
        font-size: 13px;
    }

    .act-speaker {
        width: 100%;
        gap: 8px;
    }

    .act-speaker p {
        font-size: 18px;
    }

    .act-speaker span {
        font-size: 14px;
    }

    .act-title {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 4px;
        min-height: 0;
    }

    .act-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
        text-align: left;
    }

    .act-info span {
        align-items: flex-start;
        gap: 6px;
        line-height: 1.45;
    }

    .act-info span img {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .research-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .research-card {
        padding: 18px;
        background: #fff;
        border: 1px solid #eee;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        min-height: auto;
    }

    .research-card .rs-top {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .research-card .rs-date {
        font-size: 20px;
    }

    .research-card .rs-date span {
        font-size: 12px;
    }

    .research-card .rs-tag {
        font-size: 13px;
        padding: 4px 12px;
    }

    .research-card .rs-title {
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    .research-card .rs-meta {
        font-size: 14px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .research-card .rs-author {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .research-card .rs-author-avatar {
        width: 44px;
        height: 44px;
    }

    .research-card .rs-author-name {
        font-size: 16px;
    }

    .research-card .rs-author-title {
        font-size: 13px;
    }


.quick-links {
        display: flex;
        align-items: center;
        padding: 0 5px;
        justify-content: space-between;
        /* display: grid; */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .q-item {
        padding: 14px 12px;
    }

    .footer {
        padding: 16px 0 12px;
    }

    .footer .wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        text-align: left;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: min(100%, 420px);
        max-width: 100%;
        padding-top: 0;
        margin: 0 0 0 40px;
        align-items: start;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        line-height: 1.45;
        font-size: 13px;
        margin: 0;
        width: 100%;
        min-width: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-sizing: border-box;
        text-align: left;
    }

    .footer-nav:nth-child(3) {
        grid-column: 1 / -1;
    }

    .footer-nav h4 {
        margin-bottom: 0;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: #fff;
    }

    .footer-link-list {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        gap: 4px;
        width: 100%;
        text-align: left;
    }

    .footer-link-list a,
    .footer-link-list span {
        display: block;
        margin: 0;
        word-break: break-word;
        font-size: 12px;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.82);
    }

    .footer-nav a {
        display: block;
        margin: 0;
        word-break: break-word;
    }

    .footer-info {
        text-align: center;
        line-height: 1.6;
        font-size: 13px;
    }

    .footer-info>div {
        border-top: none;
        margin-top: 10px;
        padding-top: 10px;
    }

    .footer-info img {
        display: block;
        margin: 10px auto 0;
        max-width: 70px;
        height: auto;
    }

    .footer-copyright {
        width: min(100%, 360px);
        margin: 12px auto 0;
        padding: 8px 0 0;
        font-size: 11px;
        line-height: 1.65;
        gap: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        text-align: center;
    }

    .footer-copyright img {
        display: block;
        margin: 0 auto;
        max-width: 56px;
        height: auto;
    }

    .section-title {
        justify-content: center;
    }

    .nav-toggle,
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        cursor: pointer;
        z-index: 31;
        padding: 8px;
    }

    .nav-toggle span,
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }

    .nav-toggle.open span:nth-child(1),
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2),
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3),
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    .footer {
    background: url(bottombg.png) center center;

}
}