/* 轮播图部分公用 */
.custom-carousel {
    height: 37.5rem;
    position: relative;
}

.custom-carousel .carousel-inner {
    overflow: inherit;
}

.custom-carousel .carousel-indicators {
    right: auto;
    left: 0;
    bottom: 0;
    transform: translateY(200%);
    margin: 0;
}

.custom-carousel .carousel-indicators li {
    width: 0.75rem;
    height: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.75rem;
    margin: 0;
    margin-right: 0.625rem;
    border: none;
    text-indent: 0;
    border: 0.125rem solid transparent;
    background-color: #333333;
    box-sizing: border-box;
    opacity: 1;
    overflow: inherit;
}

.custom-carousel .carousel-indicators li:last-child {
    margin: 0;
}

.custom-carousel .carousel-indicators li:last-child::after {
    content: none;
}


.custom-carousel .carousel-indicators .active {
    /* border-color: #DADADA; */
    background-color: transparent;
    border: 1px solid #2D2D2D;
}

.custom-carousel .carousel-inner .carousel-item .item-panel {
    position: absolute;
    width: 41.875rem;
    height: 15.625rem;
    background-color: rgba(51, 51, 51, 0.7);
    left: 6.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    text-align: left;
    padding: 2rem 2.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-carousel .carousel-inner .carousel-item.active .item-panel {
    opacity: 1;
}

.custom-carousel .carousel-inner .carousel-item.carousel-item-left .item-panel {
    opacity: 0;
}

.custom-carousel .carousel-inner .carousel-item.carousel-item-prev .item-panel,
.custom-carousel .carousel-inner .carousel-item.carousel-item-next .item-panel {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    display: inline-flex;
    width: 2.875rem;
    height: 2.875rem;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2rem;
    opacity: 1;
}


.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.5rem;
    color: #333333;

}

.carousel-control-prev {
    left: 1.5rem;
}

.carousel-control-next {
    right: 1.5rem;
}

.index-service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 26rem;
    border-radius: 0.375rem;
    background: #E4EAF0;
    transition: 0.2s;
}

.index-service-card a {
    display: flex;
    align-items: center;
}

.index-service-card .iconfont {
    padding: 0.25rem;
    border-radius: 5rem;
    border: 1px solid #2D2D2D;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    transition: 0.2s;
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    justify-content: end;
    background-color: rgba(51, 51, 51, 1);
    color: #fff;
}

.index-service-card:hover {
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg,
            transparent 49%,
            rgba(255, 255, 255, 0.2) 49%,
            rgba(255, 255, 255, 0.2) 51%,
            transparent 51%);
    background-size: 15px 15px;
}

.index-service-card:hover {
    color: #fff;
}

.index-service-card:hover .iconfont {
    width: 2.5rem;
    background-color: var(--primary-color) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.index-service-card:hover a {
    color: #fff;
}

.product-series-card {
    border-radius: 6px;
    opacity: 1;
    background: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #ECEBEB;
    transition: 0.2s;
    display: block;
}

.product-series-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.link-section {
    display: flex;
    min-height: 15rem;
}

.link-section .link-info {
    width: 45%;
    background: #EFF0F3;
    padding-left: 6.375rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s;
}

.link-section .link-info .iconfont {

    transition: 0.2s;
}

.link-section .link-info a:hover .iconfont {
    margin-left: 0.75rem !important;
}

.link-section .img-warp {
    width: 55%;
}


.selection-panel {
    height: 14.625rem;
    background-color: #F4F6F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6.25rem;
}

.selection-panel .selection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 13.75rem;
    height: 3.75rem;
    border-radius: 2.5rem;
    opacity: 1;
    color: var(--color-4d);
    box-sizing: border-box;
    border: 1px solid #C71F1E;
    padding: 0 3rem;
    transition: all 0.3s ease;
}

.selection-panel .selection-btn:hover {
    background-color: var(--theme-deep-color);
    color: #fff;
}


@keyframes slide {
    0% {
        width: 40%;
    }

    60% {
        width: 100%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

.home-warp .about-btn:hover {
    background-color: #fff;
}

.home-warp .about-btn:hover:before {
    animation: slide .5s forwards;
    z-index: 1;
}

.home-warp .about-btn:hover:after {
    display: flex;
    z-index: 3;
}

/* 标题 */
.d-title {
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.d-title-desc {
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
    margin-top: 1.875rem;
}


/* 产品列表 - 卡片 */

.product-card {
    width: 100%;
    min-height: 34.25rem;
    border-radius: 0.5rem;
    opacity: 1;
    background: #F4F6F8;
    box-sizing: border-box;
    border: 1px solid #ECEBEB;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1608);
    padding: 2.5rem;
}

.product-card .img-warp {
    height: 13.125rem;
    box-sizing: border-box;
    padding-top: 3rem;
}

.product-card .img-warp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card .tool {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.375rem;
}

.product-card .tool a {
    width: 100%;
    max-width: 25.5rem;
    height: 3.625rem;
}

.news-card {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solution-card {
    transition: 0.2s;
    border: 1px solid #ECEBEB;
    margin-bottom: 1.875rem;
}

.solution-card:hover {
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1608);
}

.news-item {
    transition: 0.2s;
}

.news-item:hover {
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1608);
}

.news-item-content {
    height: 16.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .news-card {
        padding-top: 1rem !important;
        height: auto !important;
        flex-direction: column;
        text-align: center;
    }

    .news-card h4 {
        padding-bottom: 1rem;
    }

    .news-card a {
        margin-top: 3rem;
    }

    .custom-carousel {
        height: 22.5rem;
    }

    .custom-carousel .carousel-indicators {
        left: 50%;
        bottom: -9rem;
        transform: translateX(-50%);
    }


    .custom-carousel .carousel-inner .carousel-item .item-panel {
        width: 60%;
        height: auto;
        right: auto !important;
        left: 50%;
        transform: translateX(-50%);
        padding: 1.5rem 2rem;
    }


    .selection-panel {
        flex-direction: column;
        height: auto !important;
        padding-block: 2rem;
    }

    .selection-panel>div.img-warp {
        margin-bottom: 3rem;
    }

    .selection-panel>div {
        margin-bottom: 1.5rem;
    }

    .selection-panel>div:nth-child(2) {
        margin-bottom: 3rem;
    }

    .link-section {
        display: flex;
        flex-direction: column-reverse;
    }

    .link-section .img-warp,
    .link-section .link-info {
        width: 100%;
    }

    .link-section .link-info {
        padding: 2rem;
    }

}