.front-page {
    background-color: #fff;
}

/* 产品板块 */
.product-section .product-content {
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));*/
    gap: max(1.2vw, 20px);
}

.product-item {
    border-radius: 8px;
    background-color: rgb(245, 245, 245);
    padding: max(1.5vw, 20px) 0;
}
.product-item img {
    transition: all var(--animation-duration);
    width: 200px;
    height: 200px;
}
.product-item:hover img {
    transform: scale(1.05);
}
.product-content .product-item:hover span {
    color: var(--theme-color);
}

.product-item .product-item-title {
    font-size: var(--widget-title-p-1-fs);
    color: #1C1C1C;
    font-weight: 600;
}

/* 解决方案板块样式 */
.solution-section {
    margin-top: var(--section-top);
}

.solution-section .solution-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    height: max(40vw, 400px);
}

/* 解决方案项样式 */
.solution-section .solution-item-wrapper {
    position: relative;
    overflow: hidden;
}

.solution-section .solution-item {
    width: 100%;
    height: 100%;
    position: relative;
    background-position: center;
    background-size: cover;
}

/* 默认遮罩层 */
.solution-section .solution-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,rgba(31,42,50,0.40), #1f2a32);
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.10);
}

/* 内容样式 */
.solution-section .solution-item-content {
    bottom: var(--section-top);
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    flex-direction: column;
    grid-gap: 8px;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Hover 内容样式 */
.solution-section .solution-item-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,117,201,0.00), #0075c9);
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.solution-section .solution-item-hover-content .solution-item-hover-content-item {
    bottom: var(--section-top);
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    padding: 0 max(1.2vw, 10px);
}
.solution-section .solution-item-hover-content .solution-item-hr {
    width: 40px;
    border-radius: 1px;
    height: 1px;
    margin: 24px 0;
    background-color: #FFFFFF;
}
.solution-section .solution-item-hover-content .solution-item-description {
    font-size: var(--widget-title-p-4-fs);
    color: #FFFFFF;
    text-align: center;
}
/* Hover 效果 */
.solution-section .solution-item-wrapper:hover .solution-item-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Hover 时原始内容淡出 */
.solution-section .solution-item-wrapper:hover .solution-item-content {
    opacity: 0;
}

.solution-section .solution-item-image {
    width: max(2.3vw, 30px);
    height: max(2.3vw, 30px);
}

.solution-section .solution-item-title {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 600;
    white-space: nowrap;
    color: #FFFFFF;
}

.solution-section .widget-title,
.solution-section .widget-title p {
    color: #FFFFFF;
    z-index: 9;
}

.solution-section .widget-title h2:after {
    background-color: #FFFFFF;
}
.advantages-section {
    padding: 0 var(--main-padding-l-f) calc(var(--section-bottom) / 2 + 380px) !important;
    position: relative;
}
/* .advantages-section::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--section-top) * 1.5);
    background-image: url(../images/home_cer_img_bg.webp);
    background-position: left;
    background-repeat: no-repeat;
    z-index: -1;
} */
.advantages-section .advantage-number-list {
    margin: 0 auto 32px auto;
    grid-gap: max(10vw, 20px);
    width: fit-content;
    flex-wrap: wrap;
    justify-content: center;
}
.advantages-section .advantage-number-list .advantage-number-item .advantage-number-item-number {
    font-size: var(--widget-title-h2-fs);
    font-weight: 600;
    grid-gap: 8px;
    color: var(--theme-color);
}
.advantages-section .advantage-number-list .advantage-number-item .advantage-number-item-title {
    font-size: var(--widget-title-p-1-fs);
    font-weight: 400;
    color: var(--theme-p-color);
    text-align: center;
}
.advantages-section .sidebar-content {
    display: flex;
    background-color: #fff;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: var(--main-max-width) !important;
    width: 100%;
}
.advantages-section .sidebar-content .advantages-content {
    flex: 1;
    padding: 0 max(4vw, 40px);
    min-width: 500px;
}
.advantages-section .sidebar-content .advantages-content-item {
    grid-gap: max(1.4vw, 20px);
    padding: max(1.6vw, 20px) 0;
}
.advantages-section .sidebar-content .advantages-content-item:nth-child(2) {
    border-top: 1px solid #EEEEEE;
    border-bottom: 1px solid #EEEEEE;
}
.advantages-section .sidebar-content .advantages-content-item .advantages-content-item-icon {
    width: max(5vw, 40px);
    height: max(5vw, 40px);
    background-color: rgba(0,117,201,.04);
    border-radius: 8px;
}
.advantages-section .sidebar-content .advantages-content-item .advantages-content-item-icon img {
    width: max(2.5vw, 40px);
    height: max(2.5vw, 40px);
}
.advantages-section .sidebar-content .advantages-content-item .advantages-content-item-title {
    flex: 1;
}

.advantages-section .sidebar-content .advantages-content-item .advantages-content-item-title h3 {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 600;
}
.advantages-section .sidebar-content .advantages-content-item .advantages-content-item-title div {
    font-size: var(--widget-title-p-4-fs);
    color: #999;
    margin-top: 10px;
    list-style: none;
}

.certificate-section {
    background-image: url(../images/home_cer_img_bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: calc(var(--section-bottom));
}
.certificate-section .image-list {
    margin: 0 auto;
    grid-gap: max(2vw, 20px);
}
.certificate-section .image-list img {
    object-fit: contain;
    max-width: 90%;
}
.certificate-section .certificate-content .certificate-swiper .swiper-slide .certificate-content-item-title {
    font-size: var(--widget-title-p-4-fs);
    font-weight: 700;
    padding: 7px 16px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 16px;
    line-height: 1;
    width: fit-content;
    white-space: normal;
    max-width: 100%;
}
.certificate-section .certificate-swiper {
    padding: max(2.2vw, 20px) 0 max(4vw, 40px);
}
.certificate-section .certificate-swiper .swiper-slide {
    width: max(11vw, 210px);
    gap: max(1.2vw, 20px);
    overflow: hidden;
    cursor: pointer;
}
.certificate-section .certificate-swiper .swiper-slide img {
    width: 170px;
    height: 250px;
    object-fit: cover;
}
.blog-news-section {
    background-color: #F2F3F4;
    padding-bottom: var(--section-bottom);
}
.blog-news-section .blog-news-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: max(1.2vw, 20px);
}
.blog-news-section .blog-news-content .blog-news-item {
    transition: all .5s;
    border-radius: 8px;
}
.blog-news-section .blog-news-content .blog-news-item:hover {
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.16);
}
.blog-news-section .blog-news-content .blog-news-item .blog-news-item-image img {
    transition: all .5s;
    object-fit: cover;
}
.blog-news-section .blog-news-item .blog-news-item-image:hover img {
    transform: scale(1.2);
}
.blog-news-section .blog-news-content .blog-news-item .blog-news-item-tag {
    font-size: var(--widget-title-p-4-fs);
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 8px;
}
.blog-news-section .blog-news-content .blog-news-item .blog-news-item-content {
    padding: max(0.8vw, 10px) max(1.2vw, 20px);
    background-color: #fff;
}
.blog-news-section .blog-news-content .blog-news-item .blog-news-item-content .blog-news-item-title {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: max(1.6vw, 20px);
}
.blog-news-section .blog-news-content .blog-news-item .blog-news-item-content .blog-news-item-date {
    font-size: var(--widget-title-p-4-fs);
    color: #999;
}

/* Banner Swiper 基础样式 */
.banner-swiper {
    width: 100%;
    /* height: var(--banner-height); */
    position: relative;
    overflow: hidden;
}

.banner-swiper .swiper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
}
.banner-swiper .swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 预览区域 */
.preview-area {
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    /* background: rgba(0, 0, 0, 0.1); */
    opacity: 0;
    transition: opacity var(--animation-duration) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-area:hover {
    opacity: 1;
}

.preview-left {
    left: 0;
}

.preview-right {
    right: 0;
}

/* 导航按钮 */
.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-duration) ease;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

.banner-swiper .swiper-button-prev {
    left: 20px;
}

.banner-swiper .swiper-button-next {
    right: 20px;
}

.preview-area:hover .swiper-button-prev,
.preview-area:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

.banner-swiper .swiper-button-prev:after,
.banner-swiper .swiper-button-next:after {
    font-size: 20px;
}

.banner-swiper .slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--animation-duration) ease;
}

.banner-swiper .slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页器样式 */
.banner-swiper .swiper-pagination {
    bottom: 20px !important;
}

.banner-swiper .swiper-pagination-bullet {
    width: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all var(--animation-duration) ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 5px;
    background: #fff;
}
.product-section .product-wrapper {
        display: flex;
        flex-direction: column;
        gap: max(1vw, 10px);
    }
.product-section .product-wrapper .product-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.product-section .product-wrapper .product-content .product-item {
    width: max(20vw, 250px);
    height: max(20vw, 250px);
    max-width: 340px;
    max-height: 320px;
    justify-content: space-around;
}
@media screen and (max-width: 900px) {
    .advantages-section .sidebar-content {
        display: block;
        position: static;
        transform: none;
    }
    .advantages-section .sidebar-content .advantages-content {
        min-width: auto;
    }
}
/* 响应式样式 */
@media (max-width: 768px) {
    .banner-swiper {
        height: auto;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .banner-swiper .swiper-button-next:after,
    .banner-swiper .swiper-button-prev:after {
        font-size: 20px;
    }

    .banner-swiper .swiper-pagination-bullet {
        width: 10px;
    }

    .banner-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }
    .advantages-section .sidebar-content  {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .solution-section .solution-content,
    .solution-section {
        display: none;
    }
    .advantages-section .sidebar-content .advantages-content-item {
        flex-direction: column;
    }
    .advantages-section .advantage-number-list {
        grid-gap: max(5vw, 20px);
        flex-direction: column;
    }
    .advantages-section,
    .certificate-section {
        padding: 0 !important;
    }
}

/* Banner Swiper 预览区域样式 */
.banner-swiper {
    position: relative;
    overflow: hidden;
}

.swiper-preview-left,
.swiper-preview-right {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.swiper-preview-left {
    left: 0;
}

.swiper-preview-right {
    right: 0;
}

/* 确保图片不会溢出幻灯片容器 */
.banner-swiper .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-swiper-button-prev,
.product-swiper-button-next,
.blog-news-swiper-button-prev,
.blog-news-swiper-button-next{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    background: rgba(0,0,0,.3);
}
.product-swiper-button-prev:hover,
.product-swiper-button-next:hover,
.blog-news-swiper-button-prev:hover,
.blog-news-swiper-button-next:hover {
    background: #1565c0;
}
.product-swiper-button-prev,
.blog-news-swiper-button-prev {
    left: 10px;
}
.product-swiper-button-next,
.blog-news-swiper-button-next {
    right: 10px;
}
.product-swiper-button-prev::after,
.product-swiper-button-next::after,
.blog-news-swiper-button-prev::after,
.blog-news-swiper-button-next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    padding: 3px;
}
.product-swiper-button-prev::after,
.blog-news-swiper-button-prev::after{
    transform: rotate(135deg);
    margin-left: 6px;
}
.product-swiper-button-next::after,
.blog-news-swiper-button-next::after{
    transform: rotate(-45deg);
    margin-right: 6px;
}
@media (max-width: 990px) {
    .product-swiper-button-prev,
    .product-swiper-button-next,
    .blog-news-swiper-button-prev,
    .blog-news-swiper-button-next{
        display: flex;
    }
}
