.header {
    width: 100%;
    height: 70px;
    background-color: #ffffff;  /* 白色背景 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);  /* 添加阴影 */
}

.warp {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.warp ul {
    list-style: none;
    /* 去掉列表样式 */
    margin: 0;
    padding: 0;
}

.warp li {
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    height: 70px;
    float: left;
    /* 左浮动 */
}

.lab-name {
    padding-left: 10px;
    font-size: 23px;
    color: #01436B;  /* 深蓝色文字 */
}

.warp li img {
    max-width: 100%;
    max-height: 100%;

    /* 保持图片比例 */
    border-right: 2px solid rgba(140, 140, 140, 0.35);
    /* 添加右边框 */
    padding-right: 10px;
    /* 添加右边距 */
    padding-left: 0;
}

.nav-right {
    float: right;
    
}

.nav-right a {
    font-size: 16px;
    color: #333333;  /* 深灰色文字 */
    margin: 0 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-right li:hover {
    background-color: #f5f5f5;  /* 悬浮时浅灰背景 */
}

.nav-right li:hover a {
    color: #01436B;  /* 悬浮时深蓝色 */
}

.banner {
    width: 100%;
    justify-content: center;
    /* 水平居中 */
    display: flex;
    /* 使用flex布局 */
    padding-top: 10px;
    background-size: cover;
    background-position: center;
    background-image: url("../images/bg_bggenerator_com1.jpg");
    /* 修改路径，使用 ../ 回到上一级目录 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeIn 3s ease-in-out;
    /* 添加淡入动画 */
    pointer-events: none;
    /* 禁止整个banner区域的鼠标事件 */
    user-select: none;
    /* 禁止选择 */
    position: relative;
    /* 添加相对定位 */
    flex-direction: column;
    /* 使子元素垂直排列 */
    align-items: center;
    /* 水平居中对齐 */
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.banner img {
    display: block;
    /* 防止图片底部间隙 */
    pointer-events: none;
    /* 禁止鼠标事件 */
    user-select: none;
    /* 禁止选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    /* 禁止拖动 */
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -ms-user-drag: none;
    cursor: default;
    /* 默认光标 */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    border: none;
    /* 移除边框 */
    -webkit-appearance: none;
    /* 移除默认外观 */
    appearance: none;
    /* 标准属性，增强兼容性 */
}

.banner p {
    margin-top: 5px;
    /* 与图片的间距 */
    font-size: 40px;
    color: #01436B;
    text-align: center;
}

.intro {
    padding: 60px 0;
    background: #f8f9fa;
}

.intro h1 {
    font-size: 32px;
    color: #01436B;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.intro h1 .iconfont {
    font-size: 36px;
    color: #01436B;
}

.intro>.warp {
    border-bottom: 2px solid rgba(140, 140, 140, 0.35);

}

.intro>.warp>h1>span {
    font-size: 28px;
}

.intro-warp {
    width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.intro-warp p {
    text-indent: 2em;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.intro-banner {
    width: 743px;
    height: 447px;
    background-image: url("../images/tacilesensor.jpg");
    /* 修改路径，使用 ../ 回到上一级目录 */
    background-size: cover;
    margin: 0 auto;
    margin-top: 20px;
}

.intro-banner p {
    font-size: 20px;
    color: #01436B;
    padding-top: 470px;
    margin-top: 10px;
    text-align: center;
}

.slider {
    width: 743px;
    height: 447px;
    position: relative;
    margin:  auto;
    overflow: hidden;
    border-radius: 10px;
    
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    margin-bottom: 20px;
}

.slide p {
    font-size: 24px;
    color: #01436B;
    text-align: center;
    margin: 0;
    padding-right: 50px;
    
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 67, 107, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.slider-nav button:hover {
    background: rgba(1, 67, 107, 0.9);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(1, 67, 107, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #01436B;
}

.copyright {
    background: #002248;
    padding: 30px 0;
    color: #fff;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom p:first-child {
    font-weight: 500;
    color: #fff;
}

.latest-container {
    padding: 60px 0;
    background: #fff;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* 两列布局 */
    gap: 40px;
    margin-top: 20px;
}

.latest-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.latest-section h2 {
    font-size: 24px;
    color: #01436B;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-section h2 .iconfont {
    font-size: 24px;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.latest-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.latest-item .date,
.latest-item .journal {
    min-width: 100px;
    font-size: 14px;
    color: #666;
}

.latest-item .title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.latest-item .title:hover {
    color: #01436B;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: #01436B;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.view-more:hover {
    background: rgba(1, 67, 107, 0.1);
    transform: translateX(5px);
}

.view-more .iconfont {
    font-size: 12px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .warp {
        padding: 0 15px;
    }

    /* 导航栏适配 */
    .header {
        height: auto;
    }

    .header .warp {
        flex-direction: column;
        padding: 10px;
    }

    .nav-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-right li {
        margin: 5px;
    }

    .nav-right a {
        font-size: 14px;
        margin: 0 10px;
    }

    /* banner适配 */
    .banner {
        height: auto;
        padding: 20px 0;
    }

    .banner img {
        width: 90%;
        height: auto;
    }

    .banner p {
        font-size: 20px;
        padding: 0 15px;
        text-align: center;
    }

    /* 实验室简介适配 */
    .intro-warp {
        padding: 20px;
    }

    .intro-warp p {
        font-size: 14px;
    }

    /* 轮播图适配 */
    .slider {
        height: auto;
    }

    .slide img {
        height: auto;
        max-height: 300px;
    }

    .slide p {
        font-size: 16px;
    }

    .slider-nav button {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* 最新动态适配 */
    .latest-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-section {
        padding: 15px;
    }

    .latest-item {
        padding: 10px;
    }

    /* 页脚适配 */
    .footer-bottom {
        padding: 15px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}