/* 工厂风采+资质证书+视频展示 */
.factory-section {
    background-color: #fff;
}
.factory-tabs {
    text-align: center;
    margin: -10px 0 30px;
    font-size: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}
.factory-tabs span {
    display: inline-block;
    vertical-align: middle;
    font-size: 20px;
    line-height: 50px;
    padding: 0 60px;
    cursor: pointer;
    color: #999;
    position: relative;
    border: 1px solid #ddd;
    margin: 0 -1px;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    background-color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.factory-tabs span:first-child {
    border-radius: 4px 0 0 4px;
}
.factory-tabs span:last-child {
    border-radius: 0 4px 4px 0;
}
.factory-tabs span:hover {
    color: #b62020;
    border-color: #b62020;
    z-index: 1;
}
.factory-tabs span.active {
    background-color: #b62020;
    color: #fff;
    border-color: #b62020;
    z-index: 1;
}
.factory-swiper {
    padding-bottom: 80px;
    overflow: hidden;
}
.factory-swiper .swiper-slide {
    text-align: center;
}
.factory-swiper .swiper-slide a {
    display: block;
    overflow: hidden;
}
.factory-swiper .swiper-slide .img-cover {
    overflow: hidden;
}
.factory-swiper .swiper-slide .img-cover span {
    display: block;
    padding-top: 70%;
    background: no-repeat center / cover;
    -webkit-transition: all 0.8s;
    transition: all 0.8s;
}
.factory-swiper .swiper-slide:hover .img-cover span {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}
.factory-swiper .swiper-slide .text {
    padding: 20px 10px;
}
.factory-swiper .swiper-slide .text p {
    margin: 0;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 视频展示 */
.video-slide-player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    max-width: 900px;
    margin: 0 auto;
}
.video-slide-player-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}
.video-slide-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    outline: none;
    border: 0;
}
.factory-swiper .swiper-button-prev,
.factory-swiper .swiper-button-next {
    background-color: #6e6e6e;
    width: 50px;
    height: 80px;
    opacity: 0.5;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    margin-top: -40px;
}
.factory-swiper .swiper-button-prev:hover,
.factory-swiper .swiper-button-next:hover {
    opacity: 1;
}
.factory-swiper .swiper-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
}
.factory-swiper .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    border-radius: 0;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    margin: 0 8px !important;
}
.factory-swiper .swiper-pagination-bullet-active {
    background-color: #b62020;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
@media screen and (max-width: 767px) {
    .factory-tabs {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        margin: 0 0 20px;
    }
    .factory-tabs span {
        font-size: 14px;
        line-height: 36px;
        padding: 0 16px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .factory-tabs span:first-child {
        border-radius: 4px 0 0 4px;
    }
    .factory-tabs span:last-child {
        border-radius: 0 4px 4px 0;
    }
    .factory-swiper {
        padding-bottom: 60px;
    }
    .factory-swiper .swiper-slide .text p {
        font-size: 14px;
    }
    .factory-swiper .swiper-button-prev,
    .factory-swiper .swiper-button-next {
        width: 30px;
        height: 50px;
        background-size: 15px auto;
        margin-top: -25px;
    }
    .video-slide-player-wrap {
        max-width: 100%;
        border-radius: 0;
    }
}
