﻿.productTotalNav{
    width:100%;
    height: auto;overflow: hidden;
    margin:50px auto;
}

.productTotalNav li{
    width:40%;float: left;
    padding:30px 3% 100px 3%;
    transform: all 0.5s;
    margin:20px 2%;
    background-image: url(../Images/indexProductBg.jpg);
    background-size: cover;
    border-radius: 10px;
}
.productClassList{
    width:100%;
    position: relative;
    z-index: 1;
}
.productClassList s{
    display: inline-block;
    width:40px;
    height: 2px;
    background-color: var(--secondary-color);
}
.productClassList h1{
    font-size: var(--font-title);
    font-weight: bold;
    line-height:60px;
}
.productClassList h3{
    line-height:30px;
    color:var(--font-gray-color);
    margin:20px auto;
}
.productClassList .icon{
    display: block;
    height: 50px;
    position: relative;
}
.productClassList .icon span{
    display: inline-block;
    width:50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--primary-color);
    color:#fff;
    text-align: center;
    border-radius: 50%;
    transition: all 0.5s;
    position: absolute;
    top: 50%;
    left: 0;
}
.productClassList .img{
    position: absolute;
    bottom: 0;
    right:2%;
    width:100%;
    text-align: right;
    z-index: -1;
}
.productClassList .img img{
    max-width:70%;
    transition: all 0.5s;
}
.productTotalNav li:hover{
    background-color: var(--bgColor-gray);
}
.productTotalNav li:hover .productClassList .icon span{
    background-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--bgColor-gray);
}
.productTotalNav li:hover .productClassList .img img{
    transform: scale(1.2);
}

/*产品列表*/
.listProduct{
    width:100%;
    height:auto;overflow:hidden;
}
.listProduct li{
    width:20.5%;float:left;
    margin:20px 1%;
    background-color: var(--font-white-color);
    padding:10px 1% 10px 1%;
    box-shadow: 0 0 10px #eee;
    text-align: center;
    transition: all 0.5s;
    border: 2px solid var(--font-white-color);
}
.listProduct li div{
    width:100%;
    height: 300px;overflow: hidden;
    position: relative;
}
.listProduct li div img{
    width:100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s;
}
.listProduct li h2{
    font-size: var(--font-subTitle);
    line-height:40px;
}
.listProduct li h3{
    display: block;
    line-height: 40px;
    color:var(--font-gray-color);
    font-size: 14px;
    font-weight: 300;
}
.listProduct li:hover{
    box-shadow: 0 0 10px #ccc;
    border: 2px solid var(--primary-color);
}
.listProduct li:hover div img{
    transform: scale(1.1);
}

/*产品详情*/
.productShowWidth{
    width:100%;
    height: auto;overflow: hidden;
    background-color: var(--bgColor-gray);
    padding:50px 0;
}
.productShowTop{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.productShowPic {
    flex: 1;
    width: 48%;
    float: left;
    margin-right: 2%;
    text-align: center;
    padding: 10px 0;
    height: auto;overflow: hidden;
}

    .productShowPic img {
        max-width: 100%;
        transition: all 0.5s;
    }
    .productShowPic img:hover { 
        transform: scale(1.1);
    }

.productShowDesc {
    flex: 1;
    float: left;
    padding-top: 10px;
}

    .productShowDesc h1 {
        width: 100%;
        height: auto;
        overflow: hidden;
        line-height: 40px;
        font-size: var(--font-title);
        font-weight: bold;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .productShowDesc h2 {
        width: 100%;
        height: auto;
        overflow: hidden;
        line-height: 30px;
        font-size: 14px;
        color: var(--font-gray-color);
    }

    .productShowDesc div {
        width: 100%;
        height: auto;
        overflow: hidden;
        margin-top: 30px;
    }

        .productShowDesc div a {
            display: inline-block;
            background-color: #183b57;
            color: #fff;
            padding: 0 30px;
            line-height: 40px;
            transition: all 0.5s;
            border-radius: 30px;
            margin-right: 20px;
            transition: all 0.5s;
        }
            .productShowDesc div .contact{
                background-color: var(--primary-color);
            }
            .productShowDesc div .tel{
                background-color: var(--secondary-color);
            }
            .productShowDesc div .contact:hover{
                background-color: var(--primary-light-color);
                box-shadow: 0 0 10px #ccc;
            }
            .productShowDesc div .tel:hover{
                background-color: var(--secondary-light-color);
                box-shadow: 0 0 10px #ccc;
            }


.productShowTitle {
    width: 99%;
    height: 50px;
    line-height: 50px;
    font-size: var(--font-subTitle);
    color:#333;
    border-bottom: 1px solid #eee;
    text-indent: 25px;
    position: relative;
}
.productShowTitle::before{
    content: '';
    position:absolute;
    top:15px;
    left: 0;
    width:10px;
    height: 10px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
}

.productShowContent {
    width: 100%;
    height: auto;
    overflow: hidden;
    line-height: 30px;
    font-size: 16px;
    margin: 50px auto;
}

    .productShowContent img {
        max-width: 100%;
        margin: 5px 0;
    }

.productShowReCommendTitle{
    width: 100%;
    height: auto;overflow: hidden;
    line-height:50px;
    font-size: var(--font-title);
    font-weight: bold;
}
.productShowReCommendList{
    width: 100%;
    height: auto;overflow: hidden;
    margin:50px auto;
    position: relative;
    padding-bottom: 20px;
}

.productShowRecommend{
    width:94%;
    height: auto;overflow: hidden;
    background-color: var(--bgColor-white);
    padding:20px 3%;
    transition: all 0.5s;
    margin:20px auto;
}
.productShowRecommendPic{
    width:40%;float: left;margin-right: 5%;
    height: auto;overflow: hidden;
}
.productShowRecommendPic img{
    width: 100%;
    transition: all 0.5s;
}
.productShowRecommend:hover img{
    transform: scale(1.1);
}
.productShowRecommendDesc{
    width:55%;float: left;
    text-align: left;
}
.productShowRecommendDesc h2{
    display: block;
    font-size: var(--font-middleTitle);
    font-weight: bold;
    line-height: 40px;
}
.productShowRecommendDesc s{
    display: block;
    width:40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top:10px;
    margin-bottom: 10px;
}
.productShowRecommendDesc h3{
    display: block;
    font-size: 14px;
    color: var(--font-gray-color);
    line-height: 25px;
    height: 75px;overflow: hidden;
}
.productShowRecommend:hover{
    box-shadow: 0 0 10px #ccc;
}

@media(max-width:768px){
    /*产品分类导航*/
    .productTotalNav {
        margin: 30px auto;
    }
    .productTotalNav li {
        width: 84%;
        margin: 20px 3%;
        padding: 20px 5% 60px 5%;
    }

    /*产品列表*/
    .listProduct {
        margin: 0;
    }
    .listProduct li {
        width: 84%;
        margin: 20px 3%;
        padding: 10px 5%;
    }
    .listProduct li div {
        height: 220px;
    }
    .listProduct li div img {
        height: 220px;
    }
    .listProduct li h2 {
        font-size: 14px;
        line-height: 30px;
        height: 30px;
        overflow: hidden;
    }
    .listProduct li h3 {
        font-size: 12px;
        line-height: 30px;
    }

    /*产品详情*/
    .productShowWidth {
        padding: 20px 0;
    }
    .productShowTop {
        flex-direction: column;
    }
    .productShowPic {
        width: 90%;
        margin-right: 0;
        padding: 10px 5%;
    }
    .productShowPic img {
        max-width: 100%;
    }
    .productShowDesc {
        width: 90%;
        padding: 10px 5%;
        margin: 0;
    }
    .productShowDesc h1 {
        font-size: 22px;
        line-height: 32px;
        margin-bottom: 15px;
    }
    .productShowDesc h2 {
        font-size: 13px;
        line-height: 24px;
    }
    .productShowDesc div {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .productShowDesc div a {
        width: 120px;
        margin-right: 0;
        text-align: center;
    }

    /*相关产品推荐*/
    .productShowReCommendTitle {
        font-size: 22px;
        padding: 0 15px;
    }
    .productShowReCommendList {
        margin: 20px auto;
    }
    .productShowRecommend {
        flex-direction: column;
        padding: 15px;
    }
    .productShowRecommendPic {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .productShowRecommendPic img {
        width: 100%;
        height: auto;
    }
    .productShowRecommendDesc {
        width: 100%;
    }
    .productShowRecommendDesc h2 {
        font-size: 16px;
        line-height: 30px;
    }
    .productShowRecommendDesc h3 {
        font-size: 13px;
        line-height: 22px;
        height: auto;
    }

    /*详情页左侧标签*/
    .productShowLeft {
        width: 100%;
        float: left;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .productShowLeft .layui-tab .layui-tab-title li {
        width: 31%;
        font-size: 14px;
    }
    .productShowRight {
        width: 100%;
        float: left;
    }
    .productShowRightTitle {
        width: 100%;
        font-size: 16px;
    }
    .productShowContent {
        width: 100%;
        margin: 20px auto;
    }
    .productShowContent img {
        max-width: 100%;
    }
    .productShowRightList {
        width: 100%;
        margin-top: 20px;
    }
    .productShowRightList li {
        width: 98%;
        margin: 10px 0;
    }
    .productShowRightList li h2 {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
    }
}
