.image-container {
    width: 100%;

}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-container1 {
    background-color: #e1dcdc;
    width: 100%;
    height: 100px;

}


.custom-link {
    color: #000000;
    text-decoration: none !important;
    margin: 0 15px;
    padding-right: 25px;
    font-size: 15px;
    border-right: 1.5px solid #000000;
    line-height: 15px;
}

.custom-product-dd{
    background-color: #e6e6e9;

}
.custom-product {
    padding: 15px;
    width: 1170px;
    height: auto;
    margin: 0 auto; /* 让元素水平居中 */
}
@media (max-width: 1200px) {
    .custom-product {
        width: 970px;
    }
}







.custom-link:hover {

    color: #9C1111;
}

.custom-link:last-child {
    border-right: none;
}

.custom-link:last-child {
    border-right: none;
}



.custom-link.highlighted {
    font-weight: bold;
    color: #9C1111;
}


.products-main {
    max-width: 1300px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    /* 设置下方间距 */
    margin: 30px auto 40px;
}

.products-main-n {
    overflow: hidden;
    background-color: #313131;
    opacity: 0;
    margin-right: 5px; /* 设置右侧间距 */
    margin-left: 5px;
    margin-bottom: 20px; /* 设置下方间距 */
    width: 420px;
    height: 230px;
    transform: translateY(10px);
    border: 1px solid #000; /* 设置边框线，根据需要修改颜色和宽度 */
    transition: opacity 0.5s ease, background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.5s ease;
}
@media (max-width: 1350px) {
    .products-main {
        max-width: 950px;
    }
    .products-main-n {
        width: 420px!important;
        margin-right: 16px!important; /* 设置右侧间距 */
        margin-left: 16px!important;
        transition: margin 0.5s ease, width 0.5s ease; /* 添加过渡效果 */

    }
}

@media (max-width: 1250px) {
    .products-main {
        max-width: 950px;
    }
    .products-main-n {
        width: 420px!important;
        margin-right: 18px!important; /* 设置右侧间距 */
        margin-left: 18px!important;
    }
}

@media (max-width: 950px) {
    .products-main {
        max-width: 920px;
    }
    .products-main-n {
        width: 420px!important;
        margin-right: 20px!important; /* 设置右侧间距 */
        margin-left: 20px!important;
    }
}

@media (max-width: 940px) {
    .products-main {
        max-width: 450px;
    }
    .products-main-n {
        width: 420px!important;
        margin-right: 20px!important; /* 设置右侧间距 */
        margin-left: 20px!important;
    }
}














.products-main-n.show {
    opacity: 1;
    transform: translateY(0);
}

.products-main-n img {
    width: 100%;
    height: auto;
    display: block;
}

.darken-image {

}


.products-main-n a {
    display: inline-block;
    padding: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.products-main-n:hover a {
    transform: scale(1.1);
    background-color: #df2e2e;
}

.products-main-n img {
    transition: transform 0.3s ease;
}

.products-main-n:hover img {
    transform: scale(1.2);
}

.overlay-image {
    position: absolute;
    top: 20%;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 1024px) {
    .products-main {
        grid-template-columns: 1fr;
    }
    .custom-product {
        width: 100%;
        padding: 1px;
        height: 100%;
        flex-direction: column;
        transition: all 0.3s ease;
    }
    .text-overlay {
        width: 180px !important;
    }
    .text-overlay p {
        margin-top: 20px; /* 调整上边距值，根据需要修改 */
        margin-left: 30px!important; /* 设置左边距，根据需要调整值 */
    }
    .products-main-n {
        height: 250px;
    }
    .text-overlay a {
        margin-top: 50px!important;
        margin-left: 10px!important; /* 设置左边距，根据需要调整值 */
    }
    .custom-link {

        border-right: none;
        transition: margin 0.3s ease;
        display: block;
        position: relative;
        /* 其他样式 */
        /* 添加下划线样式 */
        &::after {
            content: '';
            display: block;
            width: 100%; /* 下划线宽度为100% */
            height: 1px; /* 下划线高度 */
            background-color: #dcdbdb; /* 下划线颜色 */
            margin-top: 10px; /* 调整线条与文字的间距 */
            left: 0;
        }
    }
    .custom-box {
        flex-direction: column; /* 垂直显示 */
        margin-left: 0;
    }
    .custom-box a {
        margin-top: 10px; /* 调整线条与文字的间距 */
    }

    .image-container {
        display: none;
    }
}

.text-overlay {
    width: 180px;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
}

.text-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transform: skew(20deg);
    z-index: -1;
}


.text-overlay p {
    margin-top: 20px; /* 调整上边距值，根据需要修改 */
    margin-left: 20px; /* 设置左边距，根据需要调整值 */
    font-size: 32px; /* 设置字体大小，根据需要修改 */
    font-weight: bold; /* 设置为粗体 */
}

.text-overlay a {
    margin-top: 50px;
    margin-left: 40px;
    border: 1px solid #fff; /* 添加边框线，根据需要修改颜色和宽度 */
    color: #fff; /* 设置字体颜色，根据需要修改颜色 */
    text-decoration: none; /* 去掉下划线 */
    padding: 10px; /* 添加内边距，根据需要修改 */
}

@media (max-width: 1424px) {
    .text-overlay p {
        margin-top: 20px; /* 调整上边距值，根据需要修改 */
        margin-left: 10px; /* 设置左边距，根据需要调整值 */
    }
    .products-main-n {
        height: 250px;
    }

    .text-overlay a {
        margin-top: 50px;
        margin-left: 40px!important;
    }
}

@media (max-width: 1524px) {
    .text-overlay p {
        margin-top: 20px; /* 调整上边距值，根据需要修改 */
        margin-left: 5px; /* 设置左边距，根据需要调整值 */
    }
    .products-main-n {
        height: 250px;
    }

    .text-overlay a {
        margin-top: 50px;
        margin-left: 35px;
    }
}




.Freeze-height {
    min-height: 500px;
}

