/* 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;
    }

    .header {
        padding: 10px 0;
    }
    /* .footer-logo img{
            display: none;
    } */
     .footer-logo{
height: 50px;
     }
.top-tools{
    display: none;
}

    .header .wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }


    .logo-box img {
        height: 48px;
        max-width: 100%;
    }

    .head-right {
        width: 100%;
        min-width: 0;
        align-items: stretch;
    }

    .top-tools {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .search-box {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-box input {
        width: 100%;
        font-size: 13px;
    }

    .header {
        padding: 10px 0;
        position: relative;
        z-index: 20;
        overflow: visible;
    }

    .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: #c61d23 !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: 240px;
    }

    .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;
        border-bottom: 1px dashed #ddd;
        padding: 12px 0;
    }

    .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: 18px;
    }

    .activity-card + .activity-card {
        margin-top: 12px;
    }

    .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: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .q-item {
        padding: 14px 12px;
    }

    .footer .wrapper {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 12px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        line-height: 1.6;
        font-size: 14px;
        margin: 0 auto;
        width: 100%;
    }

    .footer-nav a {
        display: inline-block;
        margin: 4px 6px;
        word-break: keep-all;
    }

    .footer-info {
        text-align: center;
        line-height: 1.8;
        font-size: 14px;
    }

    .footer-info > div {
        border-top: none;
        margin-top: 12px;
        padding-top: 12px;
    }

    .footer-info img {
        display: block;
        margin: 12px auto 0;
        max-width: 80px;
        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);
    }
}
