/* 主轮播区域 */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    height: calc(100vh - 80px);
    /* 为导航栏留出空间，确保主轮播满屏可视区域 */
}

/* 左侧留言咨询 */
.consultation-sidebar {
    position: absolute;
    left: 4px;
    bottom: 60px;
    width: 180px;

    z-index: 20;
    overflow: hidden;
}

.consultation-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(245, 245, 245, 0.55);
    color: #fff;
    gap: 8px;
    position: relative;
    font-size: 14px;
}

.consultation-header i {
    font-size: 16px;
}

.consultation-header span {
    letter-spacing: 1px;
    color: #000;
    font-size: 16px;
    flex: 1;
}

.consultation-toggle {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 26px;
    background: rgba(255, 255, 255, 0);
    border: none;
    border-radius: 4px;
    color: #161616;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.consultation-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.consultation-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.consultation-sidebar.active .consultation-toggle i {
    transform: rotate(180deg);
}

.consultation-content {
    background: rgba(255, 255, 255, 0.35);
    padding: 14px 14px 14px;
    max-height: 520px;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 1;
}


.consultation-sidebar.collapsed .consultation-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.consultation-form .form-item {
    margin-bottom: 8px;
}

.consultation-form label {
    display: block;
    color: #333;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 6px 10px;
    color: #333;
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.consultation-form input {
    background: rgba(245, 245, 245, 0.35);
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.6);
}

.consultation-form textarea {
    background: rgba(245, 245, 245, 0.55);

    height: 70px;
    line-height: 2;
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.8);
}



.submit-btn {
    width: 50%;

    padding: 6px 10px;
    background: rgba(245, 245, 245, .35);
    color: #333;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(236, 236, 236, .7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* 右侧联系方式 */
.contact-sidebar {
    position: absolute;
    right: 74px;
    bottom: 40px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.contact-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.1);
}

.contact-item i {
    font-size: 20px;
}

/* 弹出框样式 */
.contact-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.contact-item:hover .contact-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.popup-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.popup-content p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.qr-code {
    margin-top: 10px;
    text-align: center;
}

.qr-code img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* QQ客服链接样式 */
.qq-service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qq-service-link:hover {
    color: #0099ff;
    background: rgba(0, 153, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
}

/* 弹出框箭头 */
.contact-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(255, 255, 255, 0.95);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

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

.hero-slide {
    width: 100%;
    height: 100%;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide img {
    width: 100%;
    height: 100%;
}



/* 轮播图计数器 */
.slide-counter {
    position: absolute;
    bottom: 38px;
    right: 0;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    z-index: 10;
}

.slide-counter .current-slide {
    color: #ff4444;
    font-weight: bold;
}

/* Swiper 自定义样式 */
.hero-swiper .swiper-pagination {
    bottom: 38px !important;
    top: auto !important;
    left: 0px !important;
    width: 480px !important;
    height: 4px !important;
    background: none !important;
    border-radius: 0 !important;
    position: absolute !important;
    display: flex !important;
    gap: 0 !important;
    opacity: 1 !important;
}

.hero-swiper .swiper-pagination .swiper-pagination-bullet {
    flex: 1 !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    border-radius: 0px !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-swiper .swiper-pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    border: none !important;
}



/* 覆盖为黑色圆形按钮 + 白色“尖角”样式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    top: 46%;
    background: #1b1b1b !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    color: transparent !important;
}

.hero-swiper .swiper-button-next {
    right: 80px;
}

.hero-swiper .swiper-button-prev {
    left: 80px;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    content: '' !important;
}

.hero-swiper .swiper-button-next::before,
.hero-swiper .swiper-button-prev::before {
    content: '';
    position: absolute;
    left: 52%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hero-swiper .swiper-button-next::before {
    left: 48% !important;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: #4e4e4e !important;
}

.hero-swiper .swiper-horizontal {
    bottom: 0 !important;
}

/* 产品家族 */
.product-family {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #000;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 19px;
    color: #666;
    font-weight: 300;
}

.product-display {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-showcase {
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: translateY(-10px);
}

.product-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-item i {
    font-size: 32px;
    color: #ff4444;
}

.category-item span {
    font-size: 19px;
    font-weight: 500;
    color: #333;
}

/* 产品家族轮播样式（与主轮播一致但独立命名） */
.product-swiper {
    width: 100%;
    height: 100%;
}

.product-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-pagination {
    position: absolute !important;
    top: auto !important;
    bottom: 38px !important;
    left: 0px !important;
    width: 480px !important;
    height: 4px !important;
    background: none !important;
    border-radius: 0 !important;
    z-index: 20;
    opacity: 1 !important;
    display: flex !important;
    gap: 0 !important;
}

.product-swiper .swiper-pagination .swiper-pagination-bullet {
    flex: 1 !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    border-radius: 0px !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-swiper .swiper-pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    border: none !important;
}

.product-button-next,
.product-button-prev {
    color: transparent;
    background: rgba(0, 0, 0, 0.27);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    z-index: 10;
}

.product-button-next {
    right: 80px;
}

.product-button-prev {
    left: 80px;
}

.product-button-next:after,
.product-button-prev:after {
    content: '';
}

.product-button-next::before,
.product-button-prev::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.product-button-next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.product-button-next:hover,
.product-button-prev:hover {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
}

.product-counter {
    position: absolute;
    bottom: 38px;
    right: 0;
    color: #000;
    padding: 8px 15px;
    font-size: 14px;
    z-index: 10;
}

.product-counter .product-current {
    color: #ff4444;
    font-weight: bold;
}



/* 产品优势 */
.product-advantages {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #000;
}

.advantages-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}

.advantages-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.advantages-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantages-pagination {
    position: absolute !important;
    top: auto !important;
    bottom: 38px !important;
    left: 0px !important;
    width: 480px !important;
    height: 4px !important;
    background: none !important;
    border-radius: 0 !important;
    z-index: 20;
    opacity: 1 !important;
    display: flex !important;
    gap: 0 !important;
}

.advantages-swiper .swiper-pagination .swiper-pagination-bullet {
    flex: 1 !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    border-radius: 0px !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

.advantages-swiper .swiper-pagination .swiper-pagination-bullet-active {
    background: #fff !important;
    border: none !important;
}

.advantages-button-next,
.advantages-button-prev {
    color: transparent;
    background: rgba(0, 0, 0, 0.27);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    z-index: 10;
}

.advantages-button-next {
    right: 80px;
}

.advantages-button-prev {
    left: 80px;
}

.advantages-button-next:after,
.advantages-button-prev:after {
    content: '';
}

.advantages-button-next::before,
.advantages-button-prev::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.advantages-button-next::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.advantages-button-next:hover,
.advantages-button-prev:hover {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
}

.advantages-counter {
    position: absolute;
    bottom: 38px;
    right: 0;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    z-index: 10;
}

.advantages-current {
    margin-right: 2px;
}

.advantages-total {
    margin-left: 2px;
}

/* CTA 按钮（左下角） */
.advantages-cta {
    position: absolute;
    width: 1280px;
    margin: 0 auto;
    bottom: 140px;
    gap: 24px;
    z-index: 15;
}

@media (min-width:1560px) {
    .advantages-cta {
        width: 1535px;
    }
}

.adv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 46px;
    font-size: 14px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all .25s ease;
    margin-right: 24px;
}

.adv-btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
}

.adv-btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.adv-btn-primary {
    color: #000;
    background: #fff;
}

.adv-btn-primary:hover {
    background: #f2f2f2;
}

/* 关于我们 */

.about-us-left img {
    width: 580px;
    margin-top: 100px;
    height: auto;
}

.about-us-content .about-us-right {
    width: calc(100% - 620px);
}

.about-us-content .about-us-right h2 {
    margin-bottom: 220px;
    font-size: 52px;
}

.about-us-content .about-us-right p {
    line-height: 1.8;
    letter-spacing: 1px;
}

.about-us-content .about-us-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 46px;
    font-size: 14px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all .25s ease;
    margin-right: 24px;
    border: 1px solid #000;
    color: #000;
    margin-top: 48px;
}

.laboratory-content img {
    width: 100%;
}

.laboratory-content .container a {

    border: 1px solid #fff;
    color: #fff;
    position: absolute;
    bottom: 180px;
    right: 0;
}



/* 新闻中心 */
.news-section {
    background: #fff;
}

.news-tabs {
    padding-bottom: 10px;
}

.news-tabs .tab-btn {
    font-size: 15px;
    background: transparent;
    letter-spacing: 1px;
    font-weight: 700;
    border: none;
    color: #7d7d7d;
    padding: 8px 30px 8px 0;
    cursor: pointer;
    position: relative;
}

.news-tabs .tab-btn:last-child {
    padding-right: 0;
}

.news-tabs .tab-btn.active {
    color: #000;
}

.news-tabs .tab-btn:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 3px;
    background: #000;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 34px;
    margin-top: 24px;
}

.news-item .news-image {
    display: block;
    width: 100%;
    height: 0;
    padding-top: 62.5%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.news-item .news-image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.news-meta {
    margin-top: 12px;
    color: #9aa0a6;
    font-size: 13px;
}

.news-title {
    margin-top: 6px;
    font-weight: 500;
    font-size: 15px;
    color: #333;
}





/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff4444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e63939;
}