/* 纤维页面样式 */

/* 全局样式 */
/* 纤维类型切换按钮 */
.fiber-type-switch {
    padding: 10px 0;
    background-color: #F5F5F5;
    height:max-content;
    min-height:1rem
}


.switch-buttons {
    display: flex;
    justify-content: center;
    gap: 300px; /* 根据设计图调整间距 */
}

.fiber-type-item {
    position: relative;
    cursor: pointer;
    text-align: center;
}

.fiber-type-text {
    font-size: 2.5rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7); /* 未选中状态为70%透明度 */
    transition: color 0.3s ease;
}

.fiber-type-item.active .fiber-type-text {
    color: #000; /* 选中状态为纯黑色 */
}

.fiber-type-underline {
    height: 8px;
    background-color: #000;
    width: 70%; /* 下划线宽度 */
    margin: 10px auto 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fiber-type-item.active .fiber-type-underline {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .switch-buttons {
        gap: 150px;
    }
    
    .fiber-type-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .switch-buttons {
        gap: 50px;
    }

    /* .fiber-type-switch {

    height:5rem;

    } */

    .fiber-type-text {
        font-size: 1.5rem;
    }
    
    .fiber-type-underline {
        height: 6px;
    }
}

@media (max-width: 576px) {
    .switch-buttons {
       align-items: center;
        gap: 80px;
    }
    
    .fiber-type-text {
        font-size: 1rem;
    }
    
    .fiber-type-underline {
        height: 4px;
    }
}

/* 产品形式 */
.product-forms {
    padding: 80px 0;
    background-color: #fff;
    min-height:900px;
}

.product-forms-header {
    margin-bottom: 30px;
}

.product-forms-title {
    font-size: 60px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
}

.product-forms-underline {
    width: 120px;
    height: 4px;
    background-color: #000;
    margin-top: 20px;
}

.product-forms-description {
    padding:0 60px;
    margin-bottom: 60px;
}

.product-forms-text {

    color: #000;
    max-width: 1800px;
}

.product-forms-showcase {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-form-item {
    flex: 1 1 calc(25% - 15px);
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.product-form-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.product-form-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-form-item:hover img {
    transform: scale(1.05);
}

.product-form-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    backdrop-filter: blur(3.45px);
}

.product-form-content {
    position: absolute;
    /* top: 75%; */
    top:85%;
    left: 20px;
    width: 100%;
    text-align: left;
    color: #fff;
    z-index: 2;
    transform: translateY(-50%);
}

.product-form-title {

    font-weight:bold;
    margin-bottom: 5px;
    color:#fff;
}

.product-form-subtitle {

    font-weight:bold;
    margin-bottom: 10px;
    color: #fff;
}

.product-form-description {

    font-weight:bold;
    opacity: 0.8;
    color:#fff
}

    



@media (max-width: 1280px) {

    .product-form-content
    {
        left:10px
    }

    .product-forms
    {
        min-height: 700px;
    }

    
    .product-form-main {
        flex: 1 1 460px;
        max-width: 600px;
    }
    
    .product-form-secondary {
        flex: 1 1 230px;
        max-width: 300px;
    }
    

}

@media (max-width: 768px) {

    .product-form-item {

    min-width: 150px;

    }

    .product-form-image-wrapper {
        height: 150px;
    }

    .product-form-content
    {
        left:10px
    }


    .product-form-main {
        flex: 1 1 100%;
        max-width: 100%;
    }

    
    .product-form-secondary {
        flex: 1 1 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
    

}

@media (max-width: 576px) {
    .product-form-secondary {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* 应用领域 */
.application-areas {
    padding: 80px 0;
    background-color: #F5F5F5;
    min-height: 850px;
}

.application-header {
    margin-bottom: 60px;
}

.application-title {

    color: #000;
    margin-bottom: 20px;
}

.application-underline {
    width: 120px;
    height: 4px;
    background-color: #000;
    margin-top: 20px;
}

.application-showcase {
    display: flex;
    gap: 10px;
    width: 100%;
    position: relative;
}

/* 左侧分类样式 */
.application-categories {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
    min-width: 300px; /* 确保最小宽度 */
    max-width: 300px; /* 确保最大宽度 */
}

.category-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-image-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.category-item.active .category-overlay {
    opacity: 0.4;
}

.category-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 0 5px;
    z-index: 2;
    margin-top: 0;
    font-weight: bold;
}

/* 右侧轮播区域样式 */
.application-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: calc(100% - 340px); /* 减去左侧分类区域的宽度和间距 */
}

.carousel-container {
    display: none;
    width: 100%;
    overflow: hidden;
}

.carousel-container.active {
    display: block;
}

.carousel-track {
    display: flex; 
    transition: transform 0.5s ease; 
    width: max-content; 
    transform: translateX(0px);
    gap:20px
}

.carousel-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0;
    flex: 0 0 auto;
    width: 420px; /* 固定宽度 */
    height: 670px;
}

.carousel-image-wrapper {
    position: relative;
    height: 670px;
    width: 420px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}


.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 600px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    border-radius: 4px;
    pointer-events: none; /* 确保不会阻止点击事件 */
}
.carousel-content {
    position: absolute;
    bottom: 20px;
    top:90%;
    left: 20px;
    width: 100%;
    text-align: left;
    color: #fff;
    /* padding: 0 20px; */
}

.carousel-title {
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
}

.carousel-subtitle {
    color: #fff;
    opacity: 0.8;
    font-weight: bold;
}

.slider-navigation {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    height: 100%;
}

.slider-navigation:first-child {
    left: 0;
}

.slider-navigation:last-child {
    right: 0;
}

.slider-prev_fiber1,
.slider-next_fiber1 {
    position: relative;
    top: 0;
    height: 360px;
    background-color:var(--suncell-white);
    border: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
  
}


.carousel-prev,
.carousel-next {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



/* 响应式调整 */
@media (max-width: 1600px) {
    .application-carousel {
        flex-wrap: wrap;
    }
    
    .carousel-image-wrapper {
        height: 600px;
    }
}

@media (max-width: 1200px) {
    .application-showcase {
        flex-direction: column;
    }
    
    .application-categories {
        flex-direction: row;
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .category-item {
        flex: 1;
        max-width: 33.333%;
    }
    
    .category-image-wrapper {
        height: 200px;
    }
    
    .application-carousel {
        width: 100%;
    }
    
    .carousel-image-wrapper {
        height: 500px;
        width: 100%;
    }
    
    .carousel-item {
        width: 350px;
    }
    

}

@media (max-width: 768px) {
    .application-title {
        font-size: 40px;
    }
    
    .application-categories {
        
        max-width: 100%;
    }
    .application-showcase{
        gap:5px;
    }
    .category-item {


        flex: 1 1 calc(33% - 15px);
        min-width: 120px;


    }
    
    .category-image-wrapper {
        height: 100px;
    }

    .carousel-container.active {
        width: 100%;
    }
    
    .carousel-item {
        width: 250px;
        height:375px;
    }
    
    .carousel-image-wrapper {
        height: 450px;
        width: 300px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        width: 250px;
    }
    
    .carousel-image-wrapper {
        height: 375px;
        width: 250px;
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-forms-grid,
    .application-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-forms-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }
    

    
    .switch-btn {
        width: 80%;
    }
}

.fiber-page {

    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 0;
    padding: 0 15px;
}



/* 顶部横幅 - Figma还原 */
.fiber-banner {
    position: relative;
    width: 100%;
    background-image: url('../assets/images/fiber/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;

    display: flex;
    justify-content: center;

    text-align: center;
    align-items: center;
    min-height:500px
}

/* 顶部横幅遮罩 */
.fiber-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.fiber-banner .container {
    position: relative;
    z-index: 2;
    width: min(1500px, 92%);
}



.fiber-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    /* max-width: 600px; */
    padding: 0 20px;
}



.fiber-banner h1 {
    margin: 0;
    width: 100%;

    line-height: 1.2;
    letter-spacing: .5px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}








.btn-primary {
    display: block;
    background-color: #fff;
    color: #333;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: fit-content;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* 品牌介绍 */
.fiber-intro {
    padding: 20px 60px;
    text-align: center;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    min-height: 900px;
 
}

.industrial-content
{
    /* 移除min-height，使用display属性控制显示与否 */
    display: none; /* 默认隐藏，通过JS控制显示 */
}

.fiber-intro h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #000;
}

.fiber-intro p {

    margin: 0 auto 0;

}
.fiber_intro_text{
    text-align: left;
    margin-bottom: 40px;
    hyphens: auto;
}

.fiber-features {
    display: flex;
    justify-content: space-between;

    margin: 20px 0;
    margin-bottom: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width:1400px
}




.feature-item {
    flex: 0 0 auto;
    width: 250px;
    margin: 0 10px;
    text-align: center;
}

.feature-item .icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 15px;
}

.feature-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item h3 {
   
    color: var(--suncell-black);
    margin-top: 10px;
    line-height: 1.5;
}

.fiber-description {
    max-width: 100%;
    margin: 40px 40px;
    margin-bottom: 10px;
   
    color: #666;

    min-height: 9rem;
}



.feature-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item .icon {
    position: relative;
    margin-bottom: 10px;
}

.feature-item .active-icon {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.feature-item.active .default-icon {
    display: none;
}

.feature-item.active .active-icon {
    display: block;
}

.feature-item h3 {
    transition: color 0.3s ease;
}

.feature-item.active h3 {
    color: var(--suncell-green-dark); /* 激活状态的文字颜色 */
    text-decoration: underline;
    text-underline-offset: 0.3em;
}

/* 描述文本样式 */
.feature-desc {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-desc.active {
    display: block;
    opacity: 1;
}

/* 产品展示 */
.fiber-products {
    padding: 0 0;
    /* background-image: url('../assets/images/fiber/products_bg.jpg'); */
    background-size: cover;
    background-position: center;
    min-height:500px;
    height:70vh;
  
}

.fiber-products .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-showcase {
    display: flex;
    flex: 1;
    width: 100%; /* 确保占满父容器宽度 */
    margin-bottom: 0; /* 移除之前的margin */
    padding: 0 0; /* 使用padding代替margin */
}

.product-showcase.reverse {
    flex-direction: row-reverse;
}

.product-image {
    width: 33.333%; /* 宽度为product-showcase的三分之一 */
    position: relative;
    overflow: hidden;
    height: 100%; /* 设置固定高度确保图片可见 */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片裁剪并填满容器 */
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-info {
    width: 66.666%; /* 宽度为product-showcase的三分之二 */
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容垂直靠上 */
    align-items: flex-start; /* 水平左对齐 */
}

.product-info h2 {
    margin-bottom: 20px;
    margin-top:20px;
    position: relative;
    text-align: left; /* 水平居中 */
    width: 100%; /* 确保标题占据整个宽度 */
}

.wavy-line {
    height: 10px;
    background-image: url('../assets/images/fiber/wavy-line.svg');
    background-repeat: repeat-x;
    margin-bottom: 20px;
}

.product-info p {

    line-height: 1.3;
}

/* 原材料新设计 */
.fiber-raw-materials {
    padding: 100px 60px;
    background-color: var(--suncell_green_bg); /* 浅绿色背景 */
    text-align: left;
    min-height: 100px;
    height:max-content;
}


.raw-materials-content {
    margin-top: 40px;
}

.raw-materials-text {


    max-width: 100%;
    margin: 0 auto;
}

/* 原材料 */
.fiber-materials {
    padding: 0 0;
    /* background-image: url('../assets/images/fiber/materials_bg.jpg'); */
    background-size: cover;
    background-position: center;
    min-height: 650px;
}

.fiber-materials .container {
    padding: 0 20px;
}

.fiber-materials h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.fiber-materials p {
    margin: 0 auto 50px;
}

.slider-track{
    gap: 20px;
}

/* 轮播图片样式 */
.fiber-materials .product-item {
    flex: 0 0 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fiber-materials .product-item img {
    height: 600px;
    width: 400px; /* 宽高比2:3 */
    object-fit: cover; /* 如果图片比例不合适，会进行裁剪 */
    object-position: center; /* 居中裁剪 */
    /* transition: transform 0.3s ease; */
    border-radius: 4px;
}

.fiber-materials .product-item h3 {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
    text-align: left;
    color: #fff;
    z-index: 2;
    opacity: 1;
    transform: none;
}

/* .fiber-materials .product-item:hover h3 {
    transform: translateY(0);
    opacity: 1;
} */


.container_slider_fiber1 {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 确保轮播容器有足够的空间 */
.fiber-materials .products-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
    max-width: 100%;
}



/* 轮播导航按钮样式调整 */
.fiber-materials .products-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.fiber-materials .slider-navigation_fiber1
{

height:100%

}

.fiber-materials .slider-navigation_fiber1 button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.fiber-materials .slider-navigation_fiber1 button svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}



.fiber-materials .carousel-prev,
.fiber-materials .carousel-next {
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.fiber-materials .slider-prev:hover,
.fiber-materials .slider-next:hover,
.fiber-materials .carousel-prev:hover,
.fiber-materials .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* 悬停时背景更深 */
}

/* 响应式调整 */




.material-gallery {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.material-item {
    flex: 1;
    min-width: 220px;
    margin: 0 10px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.material-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.material-item:hover img {
    transform: scale(1.05);
}

.material-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.industry_intro{
    padding-top: 40px;
}
/* 响应式设计 */
@media (max-width: 1280px) {
    .fiber-intro {
        min-height: 900px;
    }
    .fiber-raw-materials{
        min-height: 500px;
    }

    .feature-item .icon {
        width: 64px;
        height: 64px;
    }

    .feature-item {
        width: 200px;
    }
}
@media (max-width: 992px) {
    .fiber-products .container {
        height: auto;
    }
    
    .product-showcase {
        height: auto;
        padding: 30px 0;
    }
    
    .product-showcase, 
    .product-showcase.reverse {
        flex-direction: column;
    }
    
    .product-image, 
    .product-info {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .product-image {
        height: 300px; /* 在移动设备上设置固定高度 */
        position: relative;
    }
}

@media (max-width: 768px) {
    .fiber-banner {
        padding: 60px 0;
        min-height: 420px;
    }

    .fiber-intro {
        min-height: 700px;
    }

    .fiber_intro_2
    {
        min-height:800px;
    }


    .feature-item .icon {
        width: 32px;
        height: 32px;
    }

    .fiber-products {
        min-height: 600px;
    }
    .feature-item {
        margin-bottom: 30px;
        width: 150px;

    }


    .material-item {
        min-width: 45%;
    }
}

@media (max-width: 576px) {
    .fiber-banner h1 {
        font-size: 28px;
    }
    
    .material-item {
        min-width: 100%;
    }
}


@media (max-width: 480px) {
    .fiber-banner
    {
        min-height: 600px;
        height:70vh;
    }
    .fiber-banner h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    /* .fiber-banner-content{
        padding: 0 0;
    } */
    .fiber-intro {
        padding: 20px 10px;
        text-align: center;
        background-color: #fff;
        background-size: cover;
        background-position: center;
        min-height: 300px;
        height:max-content;
    
    }
    .fiber-description {
        margin: 20px 10px;
        min-height: 100px;
    }
    .feature-item {
        margin-bottom: 20px;
        width: 140px;

    }

    .fiber-features {
    margin: 20px 0;
    }

    .fiber-products{
        min-height: 100px;
        height: max-content;
    }
    
    .fiber-raw-materials {
        padding: 60px 10px;
        min-height: 200px;

    }

    .fiber-materials {
    background-position: center;
    min-height: 100px;
    height: 400px;
    }


    .fiber-materials .container {
    padding: 0 0px;
    }


    .container_slider_fiber1 {
    padding: 0 0;
    }

    .industry_intro{
    padding-top: 0px;
    }

    .product-overlay {

    width: 2400px;
    height: 360px;

    }

    .fiber-materials .product-item {
        flex: 0 0 240px;
    }

    .fiber-materials .product-item img {
    height: 360px;
    width: 240px; /* 宽高比2:3 */
    }
    .fiber-materials .products-slider {
        gap:5px;
    }
    .fiber-materials .products-container
    {
        gap:5px;
    }
    .fiber-materials .slider-navigation_fiber1 button {
    padding: 0px;
    }

    .product-forms {
    padding: 60px 0;
    min-height: 200px;
    height:max-content;

    }

    .product-form-subtitle
    {
        margin-top: 0;
        margin-bottom: 5px;
    }
    .product-forms-description {
        padding:0 10px;
        margin-bottom: 30px;
        margin-top: 0;
    }

    .product-form-content {

        left: 2px;

    }



    .application-areas {
        padding: 60px 0;

    }
    .category-item {
        min-width: 100px;
    }
    .application-areas
    {
        min-height: 100px;
    }
    .switch-buttons{
        gap: 60px;

    }


}