/* 移动端适配样式 */

/* iOS设备安全区域适配 
        height: calc(3.75rem + max(env(safe-area-inset-top), 0px)) !important;*/
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(env(safe-area-inset-top), 0px) !important;
    }
    
    .nav-links {
        top: calc(3.75rem + max(env(safe-area-inset-top), 0px)) !important;
        max-height: calc(100vh - 3.75rem - max(env(safe-area-inset-top), 0px)) !important;
    }
}
/* 移动端菜单按钮默认隐藏 */
.mobile-menu-btn {
    display: none;
}

/* 基础响应式设置 */
@media screen and (max-width: 768px) {
    /* 重置基础样式 */
    * {
        box-sizing: border-box;
    }

    /* 基础设置 - 适配flexible.js */
    html {
        /* flexible.js会动态设置font-size，这里不需要手动设置 */
    }

    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
    }

    /* 导航栏移动端适配 */
    .navbar {
        height: 3.75rem !important;/* 60px */
        padding: 0 0.9375rem; /* 15px */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
        backdrop-filter: blur(10px);
		/* Safari兼容性 - 调整透明度以确保在苹果设备上显示一致 */
		background: -webkit-linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
		backdrop-filter: blur(10px);
    }

    .navbar-content {
        padding: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
    }

    .logo {
        width: 7.5rem;!important; /* 120px */
        height: 2.25rem;!important; /* 36px */
        min-width: auto;
        min-height: auto;
        flex-shrink: 0;
    }

    .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 隐藏桌面端导航链接 */
    .nav-links {
        display: none;
        position: fixed;
        top: 1.75rem; /* 60px */
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.25rem 0; /* 20px */
        margin-left: 0;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 3.75rem); /* 60px */
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item > h2 {
        padding: 0.9375rem 1.25rem; /* 15px 20px */
        margin: 0;
    }

    .nav-item > h2 > a {
        font-size: 1rem; /* 16px */
        line-height: 1.5rem; /* 24px */
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-decoration: none;
    }

    /* 移动端下拉箭头 */
    .nav-item.dropdown .dropdown-arrow {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    /* 移动端下拉菜单 */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: all 0.3s ease;
        z-index: auto;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
    }

    .nav-item.dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 13.33rem !important; /* 500px / 37.5 = 13.33rem */
        transform: translateY(0) !important;
    }

    .nav-item.dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-item.dropdown .dropdown-menu a {
        display: block;
        padding: 0.75rem 2.5rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.9rem;
        line-height: 1.4;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-item.dropdown .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .nav-item.dropdown .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }

    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 0.64rem;!important; /* 24px / 37.5 = 0.64rem */
        height: 0.48rem;!important; /* 18px / 37.5 = 0.48rem */
        cursor: pointer;
        padding: 0;
        background: none;
        border: none;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* more链接移动端适配 */
    .more-link {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 0.375rem; /* 14px / 37.5 = 0.375rem */
        padding: 0.133rem 0.267rem; /* 5px 10px */
        border-radius: 0.133rem; /* 5px */
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #666666;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .more-link:hover {
        color: #333333;
        background: rgba(0, 0, 0, 0.1);
        text-decoration: none;
    }

    /* section-header移动端适配 */
    .section-header {
        position: relative;
        margin-bottom: 0.4rem; /* 15px / 37.5 = 0.4rem */
        padding-right: 2rem; /* 为more链接留出空间 */
    }

    .section-header h2 {
        font-size: 0.8rem; /* 30px / 37.5 = 0.8rem */
        line-height: 1.2;
        margin-bottom: 0.133rem; /* 5px */
    }

    .section-subtitle {
        font-size: 0.373rem; /* 14px / 37.5 = 0.373rem */
        line-height: 1.2;
    }

    /* 隐藏语言切换和桌面菜单 */
    .language-switch,
    .menu {
        display: none;
    }

    /* 轮播图移动端适配 */
    .hero {
        position: relative;
        height: auto;
        margin-top: 3.75rem !important;/* 60px */
        min-height: 13.33rem; /* 增加高度以完整显示图片 */
        z-index: 1; /* 确保在导航栏下方 */
    }

    .hero .carousel {
        position: relative;
        height: 13.33rem;
        min-height: 13.33rem;
        z-index: 1;
    }

    .hero .carousel-image {
        width: 100%;
        height: 100%;
        padding-bottom: 0;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .hero .carousel-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block; /* 覆盖PC端的display: none */
    }

    .carousel-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem; /* 20px */
        background: rgba(0, 0, 0, 0.4);
        z-index: 2;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .hero-content .big-title {
        font-size: 1.125rem; /* 18px */
        line-height: 1.5rem; /* 24px */
        margin-bottom: 0.625rem; /* 10px */
        width: auto;
        height: auto;
        font-weight: 600;
    }

    .hero-content .subtitle {
        font-size: 0.875rem; /* 14px */
        line-height: 1.125rem; /* 18px */
        margin-bottom: 0;
        width: auto;
    }

    .hero .hero-indicators {
        position: absolute;
        bottom: 0.9375rem; /* 15px */
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.25rem; /* 4px */
        z-index: 3;
    }

    .hero .hero-indicator {
        width: 0.5rem; /* 8px */
        height: 0.5rem; /* 8px */
        margin: 0 0.25rem; /* 4px */
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background-color 0.3s ease;
        z-index: 3;
    }

    .hero .hero-indicator.active {
        background-color: #ffffff;
    }

    /* 内容区域移动端适配 */
    main {
        padding-top: 0;
    }

    section {
        padding: 1.875rem 0.9375rem; /* 30px 15px */
    }

    .container {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }

    /* 通用标题样式 - 移动端优化 */
    h1, h2, h3, h4, h5, h6 {
        margin: 0 0 1rem 0;
        font-weight: 600;
    }

    h1 {
        font-size: 1.75rem; /* 28px */
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem; /* 24px */
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem; /* 20px */
        line-height: 1.4;
    }

    h4 {
        font-size: 1.125rem; /* 18px */
        line-height: 1.4;
    }

    p {
        font-size: 0.875rem; /* 14px */
        line-height: 1.6;
        margin: 0 0 1rem 0;
    }

    /* 网格布局通用样式 - 移动端优化，增大间距让内容更好铺满 */
    .grid {
        display: grid;
        gap: 0.8rem; /* 30px / 37.5 */
        width: 100%;
    }

    .grid-1 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem; /* 37.5px / 37.5 */
    }

    /* 卡片样式 */
    .card {
        background: #fff;
        border-radius: 0.5rem;
        padding: 0.9375rem; /* 15px */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 0.9375rem; /* 15px */
    }

    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 0.25rem;
    }

    /* 新闻公告移动端适配 */
    .news-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .news-more {
        position: absolute;
        top: 4rem;
        right: 1rem;
        border-radius: 6px;
        padding: 0.5rem 0.8rem;
        text-align: center;
        min-width: 60px;
    }

    .more-link {
        text-decoration: none;
        font-weight: 500;
        font-size: 0.8rem;
        display: block;
    }

    .more-link:hover {
        color: #c0392b;
        text-decoration: none;
    }

    /* 学术成果部分移动端适配 */
    .academic-more {
        position: absolute;
        top: 4rem;
        right: 1rem;
        background: #fff;
        border: 1px solid #e74c3c;
        border-radius: 6px;
        padding: 0.5rem 0.8rem;
        text-align: center;
        min-width: 60px;
        color: #e74c3c;
        font-size: 0.8rem;
    }

    .academic-more:hover {
        background: #e74c3c;
        color: #fff;
    }

    /* 研究方向部分移动端适配 */
    .research-more {
        position: absolute;
        top: 4rem;
        right: 1rem;
        background: #fff;
        border: 1px solid #e74c3c;
        border-radius: 6px;
        padding: 0.5rem 0.8rem;
        text-align: center;
        min-width: 60px;
        color: #e74c3c;
        font-size: 0.8rem;
    }

    .research-more:hover {
        background: #e74c3c;
        color: #fff;
    }

    /* 生活剪影部分移动端适配 */
    .life-more {
        position: absolute;
        top: 4rem;
        right: 1rem;
        background: #fff;
        border: 1px solid #e74c3c;
        border-radius: 6px;
        padding: 0.5rem 0.8rem;
        text-align: center;
        min-width: 60px;
        color: #e74c3c;
        font-size: 0.8rem;
    }

    .life-more:hover {
        background: #e74c3c;
        color: #fff;
    }

    /* 新闻轮播图移动端适配 - 优化高度和字体比例 */
    .news-carousel {
        width: 100%;
        height: 15rem; /* 240px - 增加高度让显示更正常 */
        margin-bottom: 1.25rem; /* 20px */
        position: relative;
        overflow: hidden;
        border-radius: 0.5rem;
    }

    .news-carousel-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .news-carousel-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
        z-index: 0;
    }

    .news-carousel-item.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .news-image {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .image-overlay {
        position: absolute;
        bottom: 0; /* 调整底部位置，给指示器留出空间 */
        left: 0; /* 调整左侧位置 */
        right: 0; /* 添加右侧边距 */
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .image-overlay h3 {
        font-size: 1rem; /* 17.6px - 适中字体 */
        font-weight: 600;
        width: 5.625rem; /* 140px */;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        line-height: 1.4; /* 增加行高，避免挤在一起 */
        letter-spacing: 0.02rem;
    }

    .image-overlay .en-title {
        font-size: 1rem; /* 16px - 适中字体 */
        font-weight: 500;
        margin-bottom: 0.5rem;
        width: 14.625rem; /* 140px */;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        line-height: 1.4; /* 增加行高，避免挤在一起 */
        letter-spacing: 0.02rem;
    }

    .image-overlay .en-text {
        font-size: 0.7rem;
        width: 20.625rem;
        line-height: 1.5; /* 增加行高，避免挤在一起 */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        opacity: 0.95;
        letter-spacing: 0.01rem;
    }

    .news-indicators {
        position: absolute;
        display: flex;
        width: 4rem; /* 140px */
        height: 1rem;
        gap: 0.5rem; /* 增加间距 */
        z-index: 10;
    }

    .news-indicator {
        width: 0.533rem; /* 20px / 37.5 */
        height: 0.107rem; /* 4px / 37.5 */
        background: rgba(255, 255, 255, 0.4);
        border-radius: 0.053rem; /* 2px / 37.5 */
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .news-indicator.active {
        background: #ffffff;
    }

    .news-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem; /* 22.5px / 37.5 */
        width: 100%;
    }

    .news-item {
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        height: auto;
        min-height: 3.5rem;
        padding: 0.8rem;
        background: #FAFAFC;
        border-radius: 0.4rem;
        box-shadow: none;
        border: 1px solid #f0f0f0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        width: 100%;
        position: relative;
        overflow: hidden; /* 防止子元素超出容器 */
    }

    .news-item:hover {
        transform: translateY(-0.053rem);
        box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.1);
    }

    .news-item .dot {
        flex-shrink: 0;
        margin-top: 0.15rem; /* 微调对齐第一行文字 */
        margin-right: 0.4rem;
        width: 0.3rem;
        height: 0.3rem;
        background-image: url('../images/dot.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .news-item .dot img {
        display: none; /* 隐藏原有的img标签 */
    }

    .news-title {
        flex: 1;
        overflow: hidden;
        padding-right: 4rem; /* 为右侧日期留出空间 */
    }

    .news-title .title_1 {
        font-size: 0.7rem;
        line-height: 1.3;
        font-weight: 600;
        margin-bottom: 0.3rem;
        height: auto;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-title .title_2 {
        font-size: 0.6rem;
        line-height: 1.4;
        height: auto;
        display: box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .news-meta {
        position: absolute;
        top: 0.8rem;
        right: 0.8rem;
        text-align: right;
        font-size: 0.7rem;
        min-width: 3rem;
    }

    .news-meta .news-day,
    .news-meta .news-date {
        display: block;
        line-height: 1.2;
        font-size: 0.7rem;
    }

    /* 学术成果移动端适配 - 使用rem单位 */
    .academic-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem; /* 调整间距适配两列布局 */
        margin-bottom: 1rem; /* 37.5px / 37.5 */
    }

    .academic-item {
        width: 100%;
        background: #fff;
        height: 15rem;
        border-radius: 0.4rem; /* 15px / 37.5 */
        overflow: hidden;
        box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .academic-item:hover {
        transform: translateY(-0.1rem); /* -3.75px / 37.5 */
        box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
    }

    .academic-image {
        width: 100%;
        height: 10rem; /* 调整高度适配两列布局 */
        overflow: hidden;
        position: relative;
    }

    .academic-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .academic-item:hover .academic-image img {
        transform: scale(1.05);
    }

    .academic-content {
        padding: 0.8rem;
    }
    
    .academic-content .title_1 {
	    width: 100%;
	    height: 0.587rem;
	    font-family: PingFang SC, PingFang SC;
	    font-weight: bold;
	    font-size: 0.7rem;
	    color: #022726;
	    text-align: left;
	}

    .academic-content h3 {
        font-size: 0.9rem; /* 调整为适合两列布局的字体大小 */
        line-height: 1.4;
        margin-bottom: 0.5rem;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .academic-content p {
        font-size: 0.6rem; /* 调整为适合两列布局的字体大小 */
        line-height: 1.5;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 减少行数以适配两列布局 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 研究方向移动端适配 - 使用rem单位 */
    .research-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem; /* 调整间距适配两列布局 */
        margin-bottom: 1rem; /* 37.5px / 37.5 */
    }

    .research-item {
        width: auto;
        height: auto;
        background: #fff;
        border-radius: 0.4rem; /* 15px / 37.5 */
        overflow: hidden;
        box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .research-item:hover {
        transform: translateY(-0.1rem); /* -3.75px / 37.5 */
        box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
    }

    .research-image {
        width: 100%;
        height: 12.5rem; /* 200px */
        overflow: hidden;
        position: relative;
    }

    .research-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .research-item:hover .research-image img {
        transform: scale(1.05);
    }

    .research-content {
        padding: 0.8rem;
    }
    
    .research-content .title_1 {
	    width: 100%;
	    height: 0.587rem;
	    font-family: PingFang SC, PingFang SC;
	    font-weight: bold;
	    font-size: 0.7rem;
	    color: #022726;
	    text-align: left;
	}

    .research-content h3 {
        font-size: 0.9rem; /* 调整为适合两列布局的字体大小 */
        line-height: 1.4;
        height: auto;
        margin-bottom: 0.5rem;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .research-content p {
        white-space: break-spaces;
        width: auto;
        font-size: 0.75rem; /* 调整为适合两列布局的字体大小 */
        line-height: 1.5;
        height: auto;
        display: block;
        -webkit-line-clamp: 2; /* 减少行数以适配两列布局 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        white-space:nowrap;
        text-overflow:ellipsis;
    }

    /* 生活剪影移动端适配 - 使用rem单位 */
    .life-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem; /* 调整间距适配两列布局 */
        margin-bottom: 1rem; /* 37.5px / 37.5 */
    }

    .life-item {
        background: #fff;
        border-radius: 0.4rem; /* 15px / 37.5 */
        overflow: hidden;
        box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .life-item:hover {
        transform: translateY(-0.1rem); /* -3.75px / 37.5 */
        box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
    }

    .life-image {
        width: 100%;
        height: 12.5rem; /* 200px */
        overflow: hidden;
        position: relative;
    }

    .life-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .life-item:hover .life-image img {
        transform: scale(1.05);
    }

    font-size: 0.7rem; {
        padding: 0.8rem;
    }
    .life-content .title_1 {
	    width: 100%;
	    height: 0.587rem;
	    font-family: PingFang SC, PingFang SC;
	    font-weight: bold;
	    font-size: 0.7rem;
	    color: #FFFFFF;
	    text-align: left;
	}

    .life-content h3 {
        font-size: 0.9rem; /* 调整为适合两列布局的字体大小 */
        line-height: 1.4;
        height: auto;
        font-weight: 600;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* 小屏手机适配 (480px以下) - 使用rem单位 */
@media screen and (max-width: 480px) {
    /* flexible.js会动态设置html字体大小，无需手动设置 */

    .navbar {
        height: 1.867rem; /* 70px / 37.5 */
        padding: 0 0.4rem; /* 15px / 37.5 */
    }

    .mobile-menu-btn {
        width: 1.067rem; /* 40px / 37.5 */
        height: 1.067rem; /* 40px / 37.5 */
    }

    .mobile-menu-btn span {
        height: 0.067rem; /* 2.5px / 37.5 */
    }

    .hero {
        height: 10.6rem; /* 360px / 37.5 */
        margin-top: 0.867rem; /* 70px / 37.5 */
    }

    .big-title {
        font-size: 1.2rem; /* 45px / 37.5 */
        line-height: 1.3;
    }

    .subtitle {
        font-size: 0.8rem; /* 30px / 37.5 */
        line-height: 1.4;
    }

    section {
        padding: 1.5rem 0.8rem; /* 56.25px 30px / 37.5 */
        margin-top: 1.333rem;
    }

    h1 {
        font-size: 1.2rem; /* 45px / 37.5 */
    }

    h2 {
        font-size: 1rem; /* 37.5px / 37.5 */
    }

    h3 {
        font-size: 0.9rem; /* 33.75px / 37.5 */
    }

    h4 {
        font-size: 0.8rem; /* 30px / 37.5 */
    }

    p {
        font-size: 0.7rem; /* 26.25px / 37.5 */
    }

    /* 强制所有网格为单列 */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.8rem; /* 30px / 37.5 */
    }

    /* 保持研究方向和生活剪影的两列布局 */
    .research-grid,
    .life-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem; /* 减小间距适配小屏 */
    }

    /* 新闻项目优化 */
    .news-item {
        padding: 0.6rem; /* 22.5px / 37.5 */
        gap: 0.5rem; /* 18.75px / 37.5 */
    }

    .news-title .title_1 {
        font-size: 0.8rem; /* 30px / 37.5 */
    }

    .news-title .title_2 {
        font-size: 0.7rem; /* 26.25px / 37.5 */
    }

    /* 学术成果优化 */
    .academic-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem; /* 减小间距适配小屏 */
    }

    .academic-image {
        height: 8rem; /* 适配小屏两列布局 */
    }

    .academic-content {
        padding: 0.6rem; /* 减小内边距适配小屏 */
    }

    .academic-content h3 {
        font-size: 0.75rem; /* 适配小屏两列布局 */
        line-height: 1.3;
    }

    .academic-content p {
        font-size: 0.65rem; /* 适配小屏两列布局 */
        line-height: 1.4;
        -webkit-line-clamp: 2;
        height: auto;
    }

    /* 研究方向和生活剪影优化 */
    .research-content h3 {
        font-size: 0.75rem; /* 适配小屏两列布局 */
        line-height: 1.3;
    }

    .research-content p {
        font-size: 0.65rem; /* 适配小屏两列布局 */
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .life-content h3 {
        font-size: 0.75rem; /* 适配小屏两列布局 */
        line-height: 1.3;
    }

    .research-image,
    .life-image {
        height: auto; /* 168.75px / 37.5 */
    }

    .research-content,
    .life-content {
        padding: 0.8rem; /* 30px / 37.5 */
    }

    .research-content h3,
    .life-content h3 {
        font-size: 0.8rem; /* 30px / 37.5 */
        line-height: 1.3;
    }

    .research-content p {
        font-size: 0.7rem; /* 26.25px / 37.5 */
        -webkit-line-clamp: 2;
    }
}

/* 平板适配 (769px - 1024px) - 使用rem单位 */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        height: 1.867rem; /* 70px / 37.5 */
        padding: 0 0.8rem; /* 30px / 37.5 */
    }

    .logo img {
        height: 1.067rem; /* 40px / 37.5 */
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.8rem !important; /* 30px / 37.5 */
        max-height: none !important;
        overflow: visible !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .carousel {
        height: 10.667rem; /* 400px / 37.5 */
    }

    .hero-content .big-title {
        font-size: 0.853rem; /* 32px / 37.5 */
        line-height: 1.067rem; /* 40px / 37.5 */
    }

    .hero-content .subtitle {
        font-size: 0.48rem; /* 18px / 37.5 */
        line-height: 0.64rem; /* 24px / 37.5 */
    }

    .container {
        padding: 0 0.8rem; /* 30px / 37.5 */
        max-width: 90%;
        margin: 0 auto;
    }

    .grid-2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {
    /* 触摸优化 */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }

    /* 文字选择优化 */
    p, span, div, h1, h2, h3, h4, h5, h6 {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    /* 滚动优化 */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    /* 表格响应式 */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    /* 按钮触摸优化 */
    button, .btn, a {
        touch-action: manipulation;
        font-size: 0.875rem; /* 14px */;
    }

    /* 输入框优化 */
    input, textarea, select {
        font-size: 0.427rem; /* 16px / 37.5 - 防止iOS缩放 */
    }

    /* Footer移动端适配 */
    .footer {
        padding: 1.5rem 1rem;
        background: #f8f9fa;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-section {
        width: 100%;
    }

    .footer-section h3 {
        font-size: 0.8rem; /* 18px */
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.7rem !important; /* 14px */
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        padding-top: 0;
    }

    .map-container {
        width: 100%;
        height: 12.5rem; /* 200px */
        border-radius: 0.5rem;
        order: 2;
    }

    .contact-details {
        order: 1;
        padding-top: 0;
        gap: 0.75rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.7rem; /* 14px */
        font-weight: 500;
    }

    .contact-item span {
        width: 100%;
        font-size: 0.7rem; /* 14px */
        font-weight: normal;
        display: contents;
    }

    .footer-bottom {
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .footer-bottom-copyright {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom-copyright p {
        font-size: 0.7rem; /* 12px */
        margin: 0;
    }

    .footer-bottom-copyright div {
        display: none;
    }
}

/* 显示/隐藏类 */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}
