body{
    margin: 0;padding: 0;
    min-width: 1200px;
    background: rgba(247, 198, 204, 0.3)
}
.nav-stacked{
    text-align: center;
    font-size: 1.8rem;
}
.nav-pills.nav-stacked .active a ,.nav-stacked li:hover a,.nav-stacked li.active:hover a ,.nav.navbar-nav .active a , .nav.navbar-nav li:hover a ,.nav.navbar-nav li.active:hover a{
    color: #fff;
    background-color: #8a2626;
}
.nav-pills a{
    color: #ccc;
}
.navbar-nav{
    font-size: 1.8rem;
}

.navbar-collapse{
    margin: 0;
    padding:0;
}
.navbar{
    position: fixed;
    /* width: 65%; */
    width: 88%;
    top:0;
    z-index: 10;
}
.warpper{
    position: fixed;
    height: 100%;
    background:#bc0000;
    left: 10%;
    top: 0;
    width: 13.5%;
}
.logo{
    background: url('../img/logo4.png') no-repeat center;
    background-size: 20rem 14.46rem ;
    height: 300px;
}
#respro p{
    font-size: 1.8rem;
    margin-top: 15px;
}

.mb20{
    margin-bottom: 20px;
}
section{
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
}
/* 实验室主页 */
.picmap{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden;
    margin-top: 20px;
}
.direct_1{
    width: 30%;
}
.direct_1 img{
    width: 100%;
    height: 175px;
}
.pic_p1 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.pic_p2{
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
}
.perpic{
    width: 100%;
}
.part1{
    display: flex;
    flex-wrap: wrap;

    align-items: flex-start; 
    width: 100%;
}
.w18{
    width: 12%;
    height: 220px;
    overflow: hidden;
    text-align: center;
    position: relative;
    margin-top: 20px;
}
/* add:添加针对图片的样式 (推荐使用方案二) */
.lab-title {
    /* font-size: 2.8rem;   调整为希望的大小，rem是相对单位，也可以用 40px 等绝对单位 */
    font-size: 28px;
    font-weight: bold;   /* 设置为粗体 */
    color: #820000;      /* 北大红 */
    text-align: center;  /* 如果需要居中，可以加上这行 */
}

.w18 img {
    width: 80%;
    height: 80%;
    object-fit: cover; /* 让所有图片都以相同的方式填满容器 */
}
.mark {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(7, 9, 11, 0.4);
    color:#FFFFFF;
}
.mark p{
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.perpic img{
    width: 85%;
    cursor: pointer;
    transition: all 0.6s;
}
.perpic .w18:hover img{
    transform: translateZ(0) scale(1.4);
}
.perpic .w18:hover .mark{
    display: block;
}
.fx{
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    width: 100%;
}
.fx img{
    height: 350px;
    width: auto;
}
.lifestyle,.lifestyle1{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    overflow: hidden;
    flex-wrap: wrap;
    width: 100%;
}
.lifestyle1{
    align-items: center;
}
.li_fx1{
    width: 32%;
    margin-top: 20px;
    text-align: center;
}
.li_fx1 img{
    height: 200px;
}
.li_fx2{
    width: 18%;
    margin-top: 20px;
}
.li_fx2 img{
    width: 100%;
}
.li_fx3 {
    width: 24%;
    margin-top: 20px;
}
.li_fx3 img {
    width: 100%;
}
.li_fx4 {
    width: 24%;
    margin-top: 20px;
}
.li_fx4 img {
    width: 100%;
}


/* add */
/* .research-section {
    font-size: 1.7rem; 
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto; 
}
        
.research-section h3 {
            text-align: left;
            margin-bottom: 25px;
            font-size: 1.8em; 
            color: #212529;
            border-bottom: 2px solid #dee2e6;
            padding-bottom: 10px;
}

.research-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 25px; 
}

.research-box {
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 25px;
            flex: 1; 
            min-width: 280px; 
            background: linear-gradient(145deg, #ffffff, #f7f7f7);
            box-shadow: 5px 5px 15px #dedede, -5px -5px 15px #ffffff;
            text-align: center; 
            transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
        
.research-box:hover {
            transform: translateY(-5px);
            box-shadow: 8px 8px 20px #d1d1d1, -8px -8px 20px #ffffff;
}

.research-box .icon {
            font-size: 2.5em; 
            margin-bottom: 15px;
            line-height: 1;
}

.research-box h4 {
            margin: 0 0 15px 0;
            font-size: 1.25em; 
            color: #333;
}

.research-box .keywords {
            font-size: 0.9em; 
            color: #555;
            line-height: 1.7; 
}  */

/* 研究兴趣板块全局容器 - 使用Grid布局 */
.research-container {
    display: grid; /* 关键：将布局模式从 flex 改为 grid */
    grid-template-columns: repeat(2, 1fr); /* 关键：定义为两列，每列宽度平分剩余空间 */
    gap: 35px; /* 卡片之间的间距，可以适当调整 */
    padding: 0 20px; /* 在容器两侧留出一些空间，避免卡片紧贴边缘 */
}

/* 单个研究卡片 */
.research-box {
    /* 宽度将由grid系统自动管理，不再需要设置固定width */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px insightful rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 悬停效果 */
.research-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 卡片中的图片容器 */
.research-image {
    width: 100%;
    /* 关键：移除了固定的height，让图片自然撑开高度 */
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0; /* 在图片和标题之间加一条细线 */
}

/* 图片样式 */
.research-image img {
    width: 100%; /* 关键：让图片宽度充满容器 */
    height: auto; /* 关键：高度自动，保持图片原始比例 */
    aspect-ratio: 16 / 10; /* 推荐：设置一个宽高比，让所有图片框大小一致，16/9或16/10皆可 */
    object-fit: contain; /* 保证图片完整显示，如果想让图片填满可用 'cover' */
    padding: 10px; /* 让图片和边框之间有一点留白 */
    box-sizing: border-box;
}

/* 整个研究板块的主标题 */
/* .research-section h3 {
    text-align: center;
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    font-weight: 700;
} */

/* 卡片标题 - 字体已加大 */
.research-box h4 {
    font-size: 1.45rem; 
    font-weight: 600;
    padding: 25px 15px;
    margin: 0;
    color: #333;
}

/* 总结文字样式 - 字体已加大 */
.research-summary-text {
    margin-top: 50px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #820000; 
    font-family: "SimHei", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* 媒体查询：当屏幕宽度小于768px时（通常是平板和手机）*/
@media (max-width: 768px) {
    .research-container {
        grid-template-columns: 1fr; /* 关键：将布局改为单列 */
        gap: 25px; /* 调整小屏幕下的间距 */
        padding: 0; /* 移除侧边距 */
    }
}


.lab-overview {
    text-align: center; /* Center the image */
    margin-bottom: 40px; /* Space below the image */
}

.lab-overview img {
    max-width: 50%; /* Ensure image is responsive */
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
}



/* 新增：右侧封面展示区域的样式 */
.cover-showcase {
    padding-top: 50px; /* 调整与上方内容的距离 */
    position: sticky; /* 让这个区域在滚动时固定在屏幕上 */
    top: 20px; /* 固定在距离顶部20px的位置 */
}

.cover-showcase h4 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #555;
}

/* 图片容器 */
.image-holder {
    margin-bottom: 10px; /* 图片和下方标题的间距*/
}

.image-holder img {
    max-width: 250px; /*最大宽度 */
    width: 100%; 
    /* width: 250px;  */
    height: auto;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 封面标题 */
.cover-caption {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px; /* 每组图片和标题之间的间距 */
}

/* 默认隐藏所有的封面分组 */
.cover-group {
    display: none;
}

/* 只显示拥有 active 类的封面分组 */
.cover-group.active {
    display: block;
}
