/* index.css - 首页样式 */

em {
    background-size: cover;
}

/* Swiper 轮播样式 */
#banner {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.bannerSwiper {
    width: 100%;
    height: 600px;
    margin: 0;
    padding: 0;
}

.bannerSwiper .swiper-wrapper {
    width: 100%;
}

.bannerSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bannerSwiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.bannerSwiper .swiper-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.bannerSwiper .swiper-pagination-bullet {
    width: 112px;
    height: 3px;
    border-radius: 0;
    background-color: var(--color);
    opacity: 0.8;
}

.bannerSwiper .swiper-pagination-bullet-active {
    background-color: #FFF;
    opacity: 1;
}

.bannerSwiper .swiper-button-next,
.bannerSwiper .swiper-button-prev {
    width: 70px;
    height: 70px;
    background: url(/static/images/lr.png) no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bannerSwiper .swiper-button-next {
    background-position: -48px 0px;
    right: 120px;
}

.bannerSwiper .swiper-button-prev {
    left: 120px;
}

.bannerSwiper:hover .swiper-button-next,
.bannerSwiper:hover .swiper-button-prev {
    opacity: 0.8;
}

.bannerSwiper:hover .swiper-button-next:hover,
.bannerSwiper:hover .swiper-button-prev:hover {
    opacity: 1;
}

.bannerSwiper .swiper-button-next:after,
.bannerSwiper .swiper-button-prev:after {
    display: none;
}

/* Factory Gallery Swiper 样式 - 全局样式（所有屏幕尺寸） */
.gallery-swiper-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.gallerySwiper {
    width: 100%;
    max-width: 1100px;
    height: 550px;
    margin: 0 auto;
    padding: 0;
}

.gallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallerySwiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallerySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallerySwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.gallerySwiper .swiper-pagination-bullet-active {
    background-color: var(--color);
}

/* 彻底隐藏 Swiper 按钮文字 - 必须在所有屏幕尺寸下生效 */
.gallerySwiper .swiper-button-next::after,
.gallerySwiper .swiper-button-prev::after,
.gallerySwiper .swiper-button-next:after,
.gallerySwiper .swiper-button-prev:after {
    display: none !important;
    content: '' !important;
    font-size: 0 !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    color: var(--color) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.gallerySwiper .swiper-button-prev {
    left: 20px;
}

.gallerySwiper .swiper-button-next {
    right: 20px;
}

.gallerySwiper .swiper-button-prev:hover,
.gallerySwiper .swiper-button-next:hover {
    background: var(--color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transform: scale(1.1);
}

.gallerySwiper .swiper-button-next i,
.gallerySwiper .swiper-button-prev i {
    font-size: 24px !important;
    font-weight: bold !important;
    display: block !important;
    text-indent: 0 !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* PC端显示导航按钮 */
@media screen and (min-width: 1025px) {
    .gallerySwiper .swiper-button-next,
    .gallerySwiper .swiper-button-prev {
        display: flex !important;
    }
}

/* 移动端适配样式 */
@media screen and (max-width: 1024px) {
    /* 轮播图移动端适配 */
    .bannerSwiper {
        height: 300px !important;
    }

    .bannerSwiper .swiper-slide img {
        height: 300px !important;
    }

    .bannerSwiper .swiper-button-next,
    .bannerSwiper .swiper-button-prev {
        display: none !important;
    }

    .bannerSwiper .swiper-pagination-bullet {
        width: 40px;
        height: 2px;
    }

    /* 楼层布局移动端适配 */
    .floor-layout {
        width: 100% !important;
        padding: 40px 15px 30px !important;
        box-sizing: border-box;
    }

    .floor-title {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    .intxt {
        font-size: 14px !important;
        line-height: 1.8 !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

    /* About Us 区域移动端适配 */
    .index-about ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .index-about ul li {
        width: 48% !important;
        margin-right: 4% !important;
        margin-bottom: 20px;
        font-size: 14px !important;
    }

    .index-about ul li:nth-child(2n) {
        margin-right: 0 !important;
    }

    .index-about ul li:nth-child(4n) {
        margin-right: 4% !important;
    }

    .index-about ul li a {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 15px !important;
    }

    .index-about ul li img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Hot Products 区域移动端适配 */
    .index-case ul {
        display: flex;
        flex-wrap: wrap;
    }

    .index-case ul li {
        width: 50% !important;
        margin-bottom: 10px;
    }

    .index-case ul li a {
        margin: 5px;
        height: 200px !important;
    }

    .index-case ul li a img {
        max-height: 200px !important;
    }

    .index-case ul li a span {
        font-size: 12px !important;
        height: 35px !important;
        line-height: 35px !important;
    }


    /* Factory Gallery 移动端适配 */
    .index-show {
        width: 100% !important;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
    }

    .index-show .floor-layout {
        padding: 40px 15px 30px !important;
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 !important;
    }

    .gallery-swiper-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .gallerySwiper {
        height: 300px !important;
    }

    .gallerySwiper .swiper-button-next,
    .gallerySwiper .swiper-button-prev {
        display: none !important;
    }

    /* Our Service Advantages 移动端适配 */
    .index-advantages {
        padding: 20px 0 40px !important;
        overflow: hidden;
    }

    .index-advantages .floor-layout {
        padding: 40px 15px 30px !important;
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 !important;
    }

    .index-advantages .adv-list {
        padding: 0 !important;
        margin: 20px 0 0 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .index-advantages .adv-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .index-advantages .adv-item {
        text-align: center;
        padding: 20px;
        background: #fff !important;
        border-radius: 8px;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        float: none !important;
        display: block !important;
    }

    .index-advantages .adv-icon {
        font-size: 40px !important;
        margin-bottom: 15px;
    }

    .index-advantages .adv-icon i {
        font-size: 40px !important;
    }

    .index-advantages .adv-title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }

    .index-advantages .adv-desc {
        font-size: 14px !important;
        line-height: 1.6;
    }

    /* News 区域移动端适配 */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px;
    }

    .news-item {
        margin-bottom: 0;
    }

    .news-image-wrapper {
        height: 180px !important;
    }

    .news-title {
        font-size: 16px !important;
    }

    .news-intro {
        font-size: 13px !important;
    }

    .news-meta {
        font-size: 12px !important;
    }

    .news-subtitle {
        font-size: 14px !important;
        padding: 0 15px;
    }

    /* Footer 区域移动端适配 */
    .floor-foot .floor-layout {
        padding: 30px 15px !important;
    }

    .foot-navlist {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
    }

    .foot-navlist li {
        margin: 5px 10px;
        font-size: 14px;
    }

    .floor-hd .floor-title {
        font-size: 20px !important;
        margin-bottom: 20px;
    }

    .foot-contact-info {
        width: 100% !important;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .foot-contact-info li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .foot-qrcode {
        width: 100% !important;
        text-align: center;
        margin-top: 20px;
    }

    .foot-qrcode dt img {
        width: 120px !important;
        height: 120px !important;
    }

    /* 右侧导航隐藏 */
    #fp-nav {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .bannerSwiper {
        height: 250px !important;
    }

    .bannerSwiper .swiper-slide img {
        height: 250px !important;
    }

    .floor-title {
        font-size: 20px !important;
    }

    .index-about ul li {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
    }

    .index-case ul li {
        width: 100% !important;
    }

    .index-case ul li a {
        height: 250px !important;
    }

    .index-case ul li a img {
        max-height: 250px !important;
    }

    .gallerySwiper {
        height: 250px !important;
    }
}

