﻿#products .pages-banner-box{
    padding: 0;
}
.products-box{
    display: block;
    position: relative;
    width: 100%;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    font-size: 0;
}
.products-info-box{
    width: 100%;
    max-width:1536px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding-top: 24px;
}
.products-info{
    width: 33.33%;
    max-width: 100%;
    /* height: 33.33vw; */
    /* vertical-align: middle; */
    box-sizing: border-box;
    background-color: white;
    display: flex;
    align-items: center;
    /* border-right: 1px solid #d1d1d1;
    border-bottom: 1px solid #d1d1d1; */
    padding: 20px;

    transition: all .3s linear;
}
/* .products-info:nth-child(3n + 1){
    border-left: 1px solid #d1d1d1;
} */
.products-info:nth-child(1),
.products-info:nth-child(2),
.products-info:nth-child(3){
    border-top: 0;
}
#index .products-info{
    border-top: 1px solid #d1d1d1;
}
.products-info-title{
    /* min-height: 84px; */
    font-size: 28px;
    font-weight: bold;
    color: #79be3f;
    letter-spacing: 7px;
    margin-left: 7px;
    transition: all .3s linear;
    text-align: center;
}
.products-info-icon{
    margin: 40px 0;
    width: 60px;
    height: 60px;
}
.products-info-text-box{
    width: 370px;
    max-width: 100%;
    font-size: 14px;
    color: #555;
    letter-spacing: 3px;
    line-height: 1.8;
    text-align: justify;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

.cardhover{
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction:column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    vertical-align: middle;
    /* background-color: #e4e4e7; */
    border: 2px solid #79be3f;
    padding: 40px 20px;
}
.cardhover:hover{
    box-shadow: 0 10px 15px -3px #a1a1aa, 0 4px 6px -4px #a1a1aa;
    border: 2px solid #00a4a5;
}
.hover-icon{
    display: none;
}
/*-----------------hover------------------*/
/* .products-info:hover{
    background-color: #eee;
} */
.products-info:hover .products-info-title{
    color: #00a4a5;
}
.products-info:hover .products-info-icon{
    display: none;
}
.products-info:hover .products-info-icon.hover-icon{
    display: block;
}



@media only screen and (max-width: 1400px){

    .products-info{
        min-height: 480px;
    }
}
@media only screen and (max-width: 1200px){
    .products-info{
        min-height: 380px;
    }
}
@media only screen and (max-width: 1000px){
    .products-info{
        width: 50vw;
    }
    .products-info:nth-child(3n + 1) {
        border-left: none;
    }
    .products-info:nth-child(2n + 2) {
        border-right: 0;
    }
    .products-info-title{
        font-size: 26px;
    }
    #index .products-info{
        width: 100%;
        border-top: none;
    }
    #index .products-info-text-box{
        width: 90%;
    }
}
@media only screen and (max-width: 550px){
    .products-info{
        width: 100%;
        min-height: 280px;
    }
    .products-info:nth-child(2) {
        border-top: none;
    }
    .products-info:nth-child(n) {
        border-right: 0;
    }
    .products-info-title{
        font-size: 22px;
        min-height: 44px;
    }
    .products-info-text-box{
        font-size: 12px;
    }
    .products-info-icon{
        margin: 10px 0;
        width: 40px;
        height: 40px;
    }
}


@media only screen and (min-height: 1080px){
    .products-info{
        width: 100%;
        height:calc(100vh  / 4);
    }
    .products-info-text-box{
        width: 90%;
    }
}

/*animation*/

@media only screen and (min-width: 1001px){
    .products-info-title,
    .products-info-icon,
    .products-info-text-box{
        opacity: 0;
    }
    .products-info-title,
    .products-info-text-box{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .products-info-icon{
        animation: fade 0.5s ease 0s 1 both;
    }
}

@keyframes fadeInUp {
    from {
      opacity: 0;
      -webkit-transform: translate3d(0, 50%, 0);
      transform: translate3d(0, 50%, 0);
    }

    to {
      opacity: 1;
      -webkit-transform: none;
      transform: none;
    }
  }

@keyframes fade {
 from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
