/* 基础样式 */
:root {
    --header-height: 80px;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 头部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* 减小logo和菜单的间距 */
}

.logo-section {
    flex-shrink: 0;
}

.logo-img {
    height: 20px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    /* 减小菜单项间距 */
    flex-wrap: wrap;
    /* 允许菜单项换行 */
    align-items: center;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

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

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    height: 30px;
}

.mobile-close-btn {
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bf-banner {
    width: 100%;
    margin-top: 80px;
    position: relative;
}

.banner-image-container {
    width: 100%;
    height: 728px;
    /* 可以根据需要调整高度 */
    position: relative;
}

.bf-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laboratory-section {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 添加装饰背景 */
.laboratory-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.laboratory-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: rgba(33, 150, 243, 0.03);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式优化 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}


.laboratory-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 左侧内容样式 */
.laboratory-content {
    width: 50%;
    height: 320px;
    /* 与右侧轮播图高度一致 */
}

.content-box {
    height: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.highlight-text {
    width: 100%;
}

.main-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 右侧轮播图样式 */
.laboratory-slider {
    width: 50%;
    height: 320px;
}

/* Swiper样式 */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* 与左侧卡片圆角一致 */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 与左侧卡片阴影一致 */
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    color: #333;
}

/* 分页器样式 */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.swiper-pagination-bullet-active {
    background: #fff;
}

/* 响应式布局 */
@media screen and (max-width: 992px) {
    .laboratory-wrapper {
        flex-direction: column;
    }

    .laboratory-content,
    .laboratory-slider {
        width: 100%;
    }

    .laboratory-slider {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .laboratory-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .laboratory-slider {
        height: 250px;
    }
}


.patent-section {
    margin: 20px 0;
    position: relative;
    background-color: #f5f8fa;
    /* 基础背景色 */
}

/* 添加上方渐变背景装饰 */
.patent-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #e8f0f5, #f5f8fa);
}


.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


.section-title {
    margin-top: 20px;
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.desc-text {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
}

.patent-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.patent-item {
    flex: 0 0 calc(50% - 15px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.patent-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    padding: 30px;
}

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

.patent-info {
    padding: 30px;
}

.problem,
.solution {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.number {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.patent-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.patent-info p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .patent-wrapper {
        flex-direction: column;
    }

    .patent-item {
        flex: 0 0 100%;
    }

    .patent-image {
        height: 250px;
    }
}


.patent-display-section {
    padding: 80px 0;
    background-color: #f5f8fa;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.desc-text {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
    text-align: center;
}

/* 专利证书网格布局 */
.patent-display-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.patent-display-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.patent-display-card:hover {
    transform: translateY(-5px);
}

.patent-display-card img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #fff;
    padding: 20px;
}

.patent-display-title {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #333;
    border-top: 1px solid #eef2f6;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .patent-display-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .patent-display-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .patent-display-grid {
        grid-template-columns: 1fr;
    }

    .patent-display-card img {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .banner-image-container {
        height: 400px;
        /* 移动端banner高度 */
    }

    .switch-pc-banner {
        display: none;
    }

    .switch-mobile-banner {
        display: block;
    }


}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 15px;
        gap: 20px;
    }

    .nav-menu {
        display: none;
        /* 隐藏原导航 */
    }

    .mobile-menu-btn {
        display: flex;
        /* 显示移动端菜单按钮 */
    }

    .header-inner {
        justify-content: space-between;
    }

}


@media (max-width: 480px) {
    .header {
        min-height: var(--header-height);
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 10px;
    }

}

@media (max-width: 890px) {

    /* 导航相关 */
    .nav-menu {
        display: none;
        /* 隐藏原导航 */
    }

    .mobile-menu-btn {
        display: flex;
        /* 显示移动端菜单按钮 */
    }

    .header-inner {
        justify-content: space-between;
    }

}

/* 菜单打开时的按钮样式 */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}