/* Banner样式 */
.textile-banner {
    height: 400px;
    background: url('/image/Textile/benner.png') no-repeat center;
    background-size: cover;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.textile-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.banner-content p {
    font-size: 24px;
    opacity: 0.9;
}

/* 页面内容样式 */
.textile-content {

    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 图片拼接样式 */
.textile-gallery {
    padding: 0;
    background: #fff;
}

.gallery-row {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    gap: 0;
}

.gallery-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
    height: 759px;
	cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: none;
    flex-direction: column;
}
.overlay-content{
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    position: relative;
   
    flex-direction: column;
}

.overlay .img1 {
    width: 40px;
    height: 32px;
    margin-bottom: 40px;
}
.overlay span{
    width: 24px;
    height: 3px;
    background: #fff;
    position: relative;
    top: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* 标题部分样式 */
.textile-title {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.title-content {
    max-width: 1200px;
    margin: 0 auto;
}

.title-content h2 {
    font-size: 18px;
    color: #333;

    font-weight: normal;
}

.subtitle {
    font-size: 18px;
    color: #333;

    font-weight: normal;
}

.highlight {
    font-size: 18px;

    font-weight: normal;
}

.sanp {
    color: #DA251C;
}

/* 高端纺织生产线样式 */
.textile-production {
    padding: 80px 0;
    background: #F8F8F8;
    text-align: center;
}

.production-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.production-content h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.production-subtitle {
    font-size: 18px;
    color: #999;
    margin-bottom: 0;
}

.production-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
}

.production-item {
    position: relative;
    overflow: hidden; /* 确保放大效果不会溢出 */
    border-radius: 20px;
}

.production-item:nth-child(2) {
    margin-top: 131.2px;
}

.production-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* 添加平滑过渡 */
}

/* 添加悬停放大效果 */
.production-item:hover img {
    transform: scale(1.05); /* 悬停时放大 */
}

/* 优化文字叠加层效果 */
.production-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: #fff;
    opacity: 0; /* 初始隐藏 */
    transform: translateY(20px); /* 初始位置略微向下 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.production-item:hover .overlay {
    opacity: 1; /* 悬停时显示 */
    transform: translateY(0); /* 恢复原位 */
}

.production-item .overlay h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* 响应式适配 */
@media (max-width: 1440px) {
    .production-content {
        padding: 0 40px;
    }

    .production-item {
        width: 400px;
        height: 546px;
    }

    .production-item:nth-child(2) {
        margin-top: 109.2px;
        /* 546px * 20% */
    }
}

@media (max-width: 1200px) {
    .production-item {
        width: 320px;
        height: 437px;
    }

    .production-item:nth-child(2) {
        margin-top: 87.4px;
        /* 437px * 20% */
    }
    .overlay-content{
        top: 0;
    }
}

@media (max-width: 992px) {
    .gallery-row {
        flex-wrap: wrap;
    }

    .gallery-item {
        flex: 1 1 50%;
        height: 400px;
    }

    /* 生产线部分 */
    .production-gallery {
        flex-direction: column;
        gap: 30px;
    }

    .production-item {
        width: 100%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
    }

    .production-item:nth-child(2) {
        margin-top: 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .production-content h2 {
        font-size: 24px;
    }

    .production-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .textile-banner {
        height: 300px;
        margin-top: 60px;
    }

    .banner-content h1 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .banner-content p {
        font-size: 18px;
    }

    /* 标题部分 */
    .textile-title {
        padding: 40px 20px;
    }

    .title-content h2,
    .subtitle,
    .highlight {
        font-size: 16px;
    }

    /* 图片拼接部分 */
    .gallery-item {
        flex: 1 1 100%;
        height: 300px;
    }

    .overlay h3 {
        font-size: 20px;
    }

    /* 生产线部分 */
    .textile-production {
        padding: 40px 0;
    }

    .production-content {
        padding: 0 20px;
    }

    .production-item {
        height: 300px;
    }

    .production-item .overlay h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .textile-banner {
        height: 200px;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .gallery-item {
        height: 250px;
    }

    .production-item {
        height: 250px;
    }

    .overlay h3 {
        font-size: 18px;
    }
}