/* ========================================
   连续滚动布局样式
   用于替代垂直分栏Swiper切换
   ======================================== */

/* === 页面容器 === */
.page-content { 
    overflow: visible;
}

.sections-container {
    width: 100%;
}

/* === Section基础样式 === */
section {
    position: relative;
    width: 100%;
}

.fullscreen-section {
    width: 100%;
    position: relative;
}

/* === Banner特殊处理 - 全屏高度 === */
.section-banner {
    height: 100vh;
    min-height: 600px;
}

/* === 其他section - 内容高度 + 间距 === */
.section-products,
.section-partners,
.section-news,
.section-product-showcase {
}

/* === 移除原有垂直滑动相关样式 === */
.z_kdc_bar { 
    display: none !important;
}

header {
    background-color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, .15) !important;
    color: #333 !important;
}

/* === 产品展示容器样式 === */
.product-showcase-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.product-showcase-container .container {
    max-width: 1400px;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
}

.product-showcase-container .main-content {
    display: flex;
    box-sizing: border-box;
    /* 确保flex容器能正确处理收缩 */
    width: 100%;
    min-width: 0;
    gap: 0;
}

.product-showcase-container .left-carousel {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 关键：防止flex容器收缩不足 */
    min-width: 0;
    overflow: hidden;
}

.product-showcase-container .right-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* 关键：防止flex容器收缩不足 */
    min-width: 0;
    overflow: hidden;
}

/* === 响应式调整 === */
@media screen and (max-width: 900px) {
    /* Banner在移动端高度调整 */
    .section-banner {
        height: auto;
        min-height: 400px;
    }
    
    /* 移动端section间距 */
    .section-products,
    .section-partners,
    .section-news,
    .section-product-showcase {
        padding: 40px 0;
    }
    
    /* 产品展示容器移动端适配 */
    .product-showcase-container .main-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .section-products,
    .section-partners,
    .section-news,
    .section-product-showcase {
        padding: 30px 0;
    }
}

/* === 修复缩略图容器在缩放时的布局问题 === */
.product-showcase-container .thumbnail-carousel {
    /* 防止容器内容超出 */
    overflow: hidden;
}

.product-showcase-container .thumbnail-swiper {
    /* 确保swiper容器正确处理宽度变化 */
    width: 100%;
    display: block;
}

/* 防止thumbnail-slide在缩放时过度扩展 */
.product-showcase-container .swiper-slide {
    width: auto !important;
    height: auto !important;
}

.product-showcase-container .thumbnail-slide {
    /* 确保基于视口宽度的尺寸不会导致布局问题 */
    flex-shrink: 0;
    display: block;
}

