/* ============ 通用重置和基础样式 ============ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}


/* ============ 导航栏样式 ============ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px) saturate(150%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
    overflow: visible;
    min-width: 320px;
}


/* 实验室logo样式 */

.lab-logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0px;
    transition: all 0.3s ease;
}

.lab-logo:hover {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1), 0 0 12px rgba(74, 158, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.7);
    transform: scale(1.02);
}

.lab-logo i {
    margin-right: 12px;
    color: #ffffff;
    font-size: 26px;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.lab-logo:hover i {
    color: #4a9eff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1), 0 0 12px rgba(74, 158, 255, 0.8);
}


/* 导航菜单样式 */

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    padding-left: 0;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: visible;
}

.nav-item {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1001;
}


/* 导航链接样式 */

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 28px;
    padding: 0 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
    line-height: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.7);
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1), 0 0 10px rgba(74, 158, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 25px;
    height: 4px;
    border-radius: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}


/* 下拉菜单样式 */

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px) saturate(150%);
    min-width: 180px;
    width: auto;
    white-space: nowrap;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1002;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* 下拉菜单箭头 */

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: white;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* 下拉菜单链接样式 */

.dropdown-content a {
    color: #ffffff;
    /* 改为白色，与导航栏一致 */
    padding: 12px 24px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-size: 28px;
    /* 改为28px，与导航栏字体大小一致 */
    font-weight: 700;
    /* 改为700，与导航栏字体粗细一致 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.7);
    /* 添加与导航栏相同的文字阴影 */
}

.dropdown-content a:hover {
    color: #ffffff;
    /* 悬停时保持白色 */
    background-color: rgba(255, 255, 255, 0.15);
    /* 悬停时增加背景透明度，与导航栏悬停效果一致 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1), 0 0 10px rgba(74, 158, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.8);
    /* 悬停时添加更深的阴影和蓝色发光效果 */
}

.dropdown-content a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #4a9eff;
}


/* ============ 轮播图样式 ============ */

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.7), rgba(0, 30, 60, 0.5));
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    width: 90%;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* 轮播图控制点样式 */

.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
}


/* ============ 主内容区域样式 ============ */

.main-content {
    width: 100%;
    padding: 80px 8%;
    background: linear-gradient(180deg, #f5f7fa, #e4edf9);
    min-height: calc(100vh - 90px);
}

.section {
    margin-bottom: 1px;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    color: #1a3c6e;
    /* margin-bottom: 40px; */
    text-align: left;
    position: relative;
    padding-bottom: 15px;
    width: 100%;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 80px;
    height: 4px;
    background-color: #4a9eff;
    border-radius: 2px;
} */


/* ============ 模块一：科研成果滚动墙 ============ */


/* ============ 科研成果模块：平衡两列布局，右侧卡片正常显示 ============ */

/* 模块整体容器 */
.research-section .module-container {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 两列父容器：拉伸使子项等高 */
.research-two-columns {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
}

/* 左右列公用样式 */
.research-left-col,
.research-right-col {
    flex: 1;
    min-width: 0;   
    backdrop-filter: blur(2px);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.research-left-col:hover,
.research-right-col:hover {   
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 左侧论文列表样式 */
.research-paper-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: '宋体', SimSun, 'Times New Roman', serif;
    font-size:1.25rem;
    font-weight: bold;
    line-height: 1.5;
    color: #2d3748;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.research-paper-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.85rem;
    padding: 0.6rem 0.5rem 0.6rem 0;
    border-bottom: 1px dashed rgba(74, 158, 255, 0.3);
    font-size: 1.25rem;
    font-weight: 700;
}

.paper-title-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2d3748;
}

.paper-conference {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(74, 158, 255, 0.12);
    border-radius: 24px;
    color: #1e5a9e;
    white-space: nowrap;
}

/* 右侧垂直滚动容器 */
.vertical-scroll-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    padding-right: 6px;
    min-height: 0;          /* 配合 flex 实现滚动 */
}

/* 滚动条美化（左右统一） */
.research-paper-list::-webkit-scrollbar,
.vertical-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.research-paper-list::-webkit-scrollbar-track,
.vertical-scroll-container::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 10px;
}
.research-paper-list::-webkit-scrollbar-thumb,
.vertical-scroll-container::-webkit-scrollbar-thumb {
    background: #4a9eff;
    border-radius: 10px;
}
.research-paper-list::-webkit-scrollbar-thumb:hover,
.vertical-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #2c7db6;
}

/* 右侧卡片样式：完全由内容撑开，不被压缩 */
.vertical-scroll-container .research-item {
    flex: none;                     /* 不参与弹性拉伸 */
    width: 100%;
    margin: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    border-radius: 16px;
    overflow: visible;              /* 避免裁剪内容 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* 覆盖全局可能影响高度的属性 */
    height: auto !important;
    min-height: auto !important;
}

/* 卡片悬停效果 */
.vertical-scroll-container .research-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.15);
}

/* 卡片内部间距微调，更适应垂直排列 */
.vertical-scroll-container .research-tag {
    margin: 16px 20px 6px;
}
.vertical-scroll-container .research-title {
    margin: 0 20px 10px;
    font-size: 1rem;
    line-height: 1.4;
}
.vertical-scroll-container .research-desc {
    margin: 0 20px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;          /* 限制描述行数，避免过长 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vertical-scroll-container .research-date {
    margin: 0;
    padding: 12px 20px;
    border-top: 1px solid #eef2f7;
    font-size: 0.85rem;
}

/* 确保图片自适应宽度，不变形 */
.vertical-scroll-container .research-image {
    width: 100%;
    height: 180px;                  /* 固定图片高度，视觉统一 */
    overflow: hidden;
}
.vertical-scroll-container .research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.vertical-scroll-container .research-item:hover .research-image img {
    transform: scale(1.03);
}

/* 响应式：小屏幕下堆叠，高度自适应 */
@media (max-width: 992px) {
    .research-two-columns {
        flex-direction: column;
        gap: 1.5rem;
    }
    .research-left-col,
    .research-right-col {
        width: 100%;
    }
    .research-paper-list,
    .vertical-scroll-container {
        max-height: none;
        overflow-y: visible;
    }
}


/* ============ 模块二：留空容器 ============ */

.empty-container {
    width: 100%;
    background: #ecf7f2 !important;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #7a8ca5;
}

.empty-content i {
    margin-bottom: 20px;
    color: #cbd5e0;
}

.empty-content p {
    font-size: 1.2rem;
    font-weight: 500;
}


/* ============ 模块三：通知公告和论文列表 ============ */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    background: #f0edf5 !important;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    align-items: stretch;
    border: 2px solid #e8e1f5;
}

.notice-column,
.papers-column {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

.notice-items,
.papers-items {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
    flex: 1;
}

.notice-items li,
.papers-items li {
    display: contents;
}

.notice-item,
.paper-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 160px;
}

.notice-item {
    border-left: 4px solid #4a9eff;
}

.paper-item {
    border-left: 4px solid #2ecc71;
}

.notice-item:hover,
.paper-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.column-title {
    font-size: 1.5rem;
    color: #1a3c6e;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    align-items: center;
}

.column-title i {
    margin-right: 10px;
    color: #4a9eff;
}

/* 通知卡片相对定位 */
.notice-item {
    position: relative;
}

/* 日期元素定位到右上角 */
.notice-item .notice-date {
    position: absolute;
    top: 25px;
    right: 25px;
    margin: 0;
    background: #fff;          /* 与卡片背景一致，避免遮挡 */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3c6e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 1;
}

/* 内容区域增加右侧内边距，防止标题与日期重叠 */
.notice-item .notice-content {
    padding-right: 110px;  /* 根据日期宽度调整 */
}

.notice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.notice-content h4 {
    font-size: 20px;
    color: #1a3c6e;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notice-content p {
    font-size: 18px;
    color: #7a8ca5;
    line-height: 1.5;
    flex: 1;
}

.paper-journal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.journal-name {
    background-color: #eef2f7;
    color: #4a9eff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.journal-year {
    color: #7a8ca5;
    font-size: 16px;
}

.paper-title {
    font-size: 18px;
    color: #1a3c6e;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.paper-authors {
    font-size: 18px;
    color: #7a8ca5;
    font-style: italic;
    line-height: 1.4;
}

.paper-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7a8ca5;
    margin-top: auto;
}

.paper-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.paper-stats i {
    font-size: 12px;
}

.notice-items {
    grid-auto-rows: minmax(160px, auto);
}

.papers-items {
    grid-auto-rows: minmax(160px, auto);
}


/* ============ 联邦夏令营模块 ============ */

.summer-camp-section {
    padding: 1.25rem 0;
}

.summer-camp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}


/* 左侧新闻栏 */

.camp-news-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.08);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f5ff;
}

.column-header h3 {
    font-size: 1.4rem;
    color: #1a3c6e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #2980b9;
    transform: translateX(3px);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-item {
    display: flex;
    background: #fafcff;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    border-top: 1px solid #f0f5ff;
    border-right: 1px solid #f0f5ff;
    border-bottom: 1px solid #f0f5ff;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left-color: #1a3c6e;
    background: #ffffff;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    background: #f0f7ff;
    border-radius: 8px;
    padding: 0.5rem;
    margin-right: 1.2rem;
    border: 1px solid #e1ecff;
}

.news-day {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a3c6e;
    line-height: 1;
}

.news-month {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.2rem;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.news-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

.news-meta i {
    margin-right: 0.3rem;
}


/* 右侧相册栏 */

.camp-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 2px solid #f0f7ff;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.08);
}

.main-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
    border: 2px solid #e8f0fe;
}

.main-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    padding-top: 3rem;
}

.gallery-caption h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.gallery-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.thumb-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e8f0fe;
    height: 100px;
}

.thumb-item.active {
    border-color: #3498db;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.thumb-item:hover:not(.active) {
    border-color: #bdc3c7;
    transform: scale(1.03);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem;
    text-align: center;
}


/* 夏令营信息框 */

.camp-info-box {
    background: white;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #1a3c6e;
}

.camp-info-box h4 {
    color: #1a3c6e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #3498db;
    width: 30px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #1a3c6e, #3498db);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(to right, #16325c, #2980b9);
}


/* ============ 页脚样式 ============ */

.footer {
    height: 200px;
    width: 100%;
    background-color: #1a3c6e;
    color: white;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-lab {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-lab i {
    margin-right: 10px;
    color: #4a9eff;
}

.footer-divider {
    width: 1px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 60px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 16px;
}

.footer-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.footer-info i {
    margin-right: 12px;
    color: #4a9eff;
    width: 20px;
}


/* ============ 响应式设计 ============ */


/* 超大屏幕 */

@media (min-width: 1920px) {
    .navbar {
        padding: 0 10%;
    }
    .nav-link {
        font-size: 28px;
        line-height: 44px;
        height: 44px;
    }
}


/* 大屏幕 */

@media (max-width: 1600px) {
    .nav-link {
        font-size: 26px;
        line-height: 42px;
        height: 42px;
    }
    .lab-logo {
        margin-right: 120px;
    }
}


/* 中等屏幕 */

@media (max-width: 1400px) {
    .navbar {
        padding: 0 6%;
    }
    .nav-link {
        font-size: 24px;
        line-height: 40px;
        height: 40px;
        padding: 0 8px;
    }
    .lab-logo {
        font-size: 26px;
        margin-right: 100px;
    }
    .lab-logo i {
        font-size: 24px;
    }
    .nav-menu {
        gap: 15px;
    }
}

@media (max-width: 1200px) {
    .nav-link {
        font-size: 22px;
        line-height: 38px;
        height: 38px;
        padding: 0 6px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.5);
    }
    .lab-logo {
        font-size: 24px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.4);
    }
    .research-item {
        flex: 0 0 calc(33.333% - 20px);
        min-height: 460px;
    }
}


/* 平板屏幕 */

@media (max-width: 992px) {
    .navbar {
        background-color: rgba(26, 60, 110, 0.9);
    }
    .nav-link {
        font-size: 20px;
        line-height: 36px;
        height: 36px;
        padding: 0 5px;
        text-shadow: none;
    }
    .lab-logo {
        font-size: 22px;
        text-shadow: none;
    }
    .research-item {
        flex: 0 0 calc(50% - 15px);
        min-height: 450px;
    }
    .nav-menu {
        gap: 15px;
    }
    .slide-content h1 {
        font-size: 2.8rem;
    }
    .footer-divider {
        margin: 0 30px;
    }
}


/* 小屏幕平板 */

@media (max-width: 768px) {
    .navbar {
        background-color: rgba(26, 60, 110, 0.95);
        padding: 0 20px;
        height: 60px;
        justify-content: space-between;
    }
    .nav-link {
        font-size: 18px;
        line-height: 50px;
        height: 50px;
        padding: 0 20px;
        text-shadow: none;
    }
    .lab-logo {
        font-size: 18px;
        text-shadow: none;
        margin-right: 0;
        flex-grow: 1;
    }
    .lab-logo i {
        font-size: 16px;
    }
    /* 移动端汉堡菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 30, 60, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    .nav-menu.active {
        display: flex;
        max-height: 500px;
        overflow-y: auto;
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-link {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        line-height: 50px;
        height: 50px;
        padding: 0 20px;
    }
    /* 汉堡菜单图标 */
    .hamburger-menu {
        display: block;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        flex-shrink: 0;
        background: none;
        border: none;
    }
    /* 移动端下拉菜单 */
    .dropdown-content {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-item:hover .dropdown-content,
    .dropdown-content.active {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }
    .dropdown-content a {
        color: #fff;
        padding: 12px 20px;
        font-size: 16px;
        justify-content: center;
    }
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    /* 其他移动端样式 */
    .slide-content h1 {
        font-size: 2.2rem;
    }
    .research-item {
        flex: 0 0 calc(100% - 10px);
        min-height: auto;
    }
    .research-title {
        -webkit-line-clamp: 2;
        max-height: 3em;
    }
    .research-desc {
        -webkit-line-clamp: 3;
        max-height: 4.8em;
    }
    .footer {
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .footer-divider {
        width: 80%;
        height: 1px;
        margin: 30px 0;
    }
    /* 模块三响应式 */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    .notice-item,
    .paper-item {
        min-height: auto;
        padding: 18px;
    }
    .notice-items,
    .papers-items {
        grid-auto-rows: auto;
    }
}


/* 非常小的屏幕 */

@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
        height: 55px;
    }
    .lab-logo {
        font-size: 16px;
    }
    .lab-logo i {
        font-size: 14px;
        margin-right: 8px;
    }
    .hamburger-menu {
        font-size: 20px;
        padding: 8px;
    }
    .info-grid {
        padding: 15px;
    }
    .notice-item,
    .paper-item {
        padding: 15px;
    }
    .notice-content h4,
    .paper-title {
        font-size: 15px;
    }
    .notice-content p,
    .paper-authors {
        font-size: 13px;
    }
}


/* 夏令营模块响应式 */

@media (max-width: 1024px) {
    .summer-camp-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .main-gallery-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-item {
        flex-direction: column;
    }
    .news-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.5rem;
        margin-right: 0;
        margin-bottom: 0.8rem;
        padding: 0.5rem 1rem;
        width: fit-content;
    }
    .news-day {
        font-size: 1.3rem;
    }
    .news-month {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumb-item {
        height: 80px;
    }
}


/* 移除重复的动画定义 */

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.lab-logo i,
.footer-lab i {
    /* 隐藏原始字体图标（FontAwesome的伪元素） */
    font-size: 0 !important;
    /* 转为块级/内联块，用于展示背景图片 */
    display: inline-block;
    /* 保留原图标占位间距 */
    margin-right: 12px;
    /* 图片尺寸与原图标视觉大小一致（桌面端） */
    width: 26px;
    height: 26px;
    /* 背景图片设置 */
    background-image: url('../../web_logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* 重置可能干扰图片显示的属性 */
    color: transparent;
    text-shadow: none;
    vertical-align: middle;
}

/* 悬停时保持图片不变，避免颜色或阴影干扰 */
.lab-logo:hover i,
.footer-lab:hover i {
    color: transparent;
    text-shadow: none;
    background-image: url('../../web_logo.jpg');
}

/* ============ 响应式尺寸调整 ============ */
@media (max-width: 1400px) {
    .lab-logo i,
    .footer-lab i {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 1200px) {
    .lab-logo i,
    .footer-lab i {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 992px) {
    .lab-logo i,
    .footer-lab i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .lab-logo i,
    .footer-lab i {
        width: 18px;
        height: 18px;
        margin-right: 8px;  /* 移动端间距适当缩小 */
    }
}

@media (max-width: 480px) {
    .lab-logo i,
    .footer-lab i {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
}


/* ============ 科研成果左侧轮播图 ============ */
.research-carousel-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #f0f2f5; /* 背景色，避免图片边缘出现空白时突兀 */
}

.carousel-slides {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例容器，可根据需求调整 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;   /* 新增：禁止所有非激活图片的点击 */
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;   /* 新增：仅激活图片可点击 */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* 保持原比例完整显示，不裁剪 */
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 5;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.carousel-dots .dot.active {
    background-color: #4a9eff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.8);
}

/* 右侧列表自适应高度 */
.research-right-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.research-paper-list {
    max-height: 700px;
    overflow-y: auto;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .research-two-columns {
        flex-direction: column;
    }
    .carousel-slides {
        padding-top: 60%; /* 手机上比例稍扁 */
    }
    .research-paper-list {
        max-height: none;
        overflow-y: visible;
    }
}


.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 1.2rem 1rem 0.8rem;
    text-align: left;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carousel-slide:hover .carousel-caption {
    opacity: 1;
    visibility: visible;
}

.carousel-caption h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


/* 固定标题栏样式（不透明，始终显示） */
.carousel-caption-fixed {
    background: #1a3c6e;   /* 不透明深色背景 */
    color: white;
    padding: 12px 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    border-top: 2px solid #4a9eff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-caption-fixed h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* 调整轮播容器，让标题栏在图片下方自然排列 */
.carousel-container {
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

.carousel-slides {
    order: 1;
}

.carousel-caption-fixed {
    order: 2;
}

.carousel-dots {
    order: 3;
    position: relative;  /* 取消绝对定位，跟随文档流 */
    bottom: auto;
    margin-top: 10px;
    margin-bottom: 5px;
}


/* 轮播容器保持相对定位 */
.carousel-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: #f0f2f5;
}

.carousel-slides {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例，可根据需求调整 */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* 链接包裹图片，占满整个容器 */
.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 悬浮标题层样式 - 始终显示 */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 1.2rem 1rem 0.8rem;
    text-align: left;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 让标题不干扰点击图片 */
}

.carousel-caption h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* 可选：鼠标悬停时标题层增强效果 */
.carousel-slide:hover .carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
}

/* 轮播控制点样式（保持原有） */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 15;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.carousel-dots .dot.active {
    background-color: #4a9eff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.8);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .carousel-slides {
        padding-top: 60%;
    }
    .carousel-caption h4 {
        font-size: 0.9rem;
    }
}