.all-products{
  background-color: #F6F6F6;
  width: 100%;
  padding: 20px 0 50px;
  min-height: calc(100vh - 110px);
  box-sizing: border-box;
}

.all-products-container{
  max-width: 1200px;
  margin: 0 auto;
}

.all-products-banner{
  width: 100%;
  height: 138px;
  background: url(../images/all-products-banner.png) no-repeat center;
  border-radius: 5px;
  overflow: hidden;
}

.switch-btns{
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-btns>li{
  margin: 0 5px;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333333;
  background-color: #fff;
  border: 1px solid #E1E4E5;
  padding: 15px 40px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.switch-btns>li.current{
  background-color: #3689EF;
  border: 1px solid #3689EF;
  color: #fff;
}

.products-list{
  width: 100%;
  display: flex;
  flex-direction: column;
}

.product-item{
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 5px;
  padding: 30px 30px 50px;
  display: flex;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.product-item>img{
  width: 196px;
  height: 130px;
  margin-right: 30px;
  overflow: hidden;
}

.right-intro{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.right-intro>h2{
  font-size: 19px;
  font-family: Microsoft YaHei;
  font-weight: 580;
  color: #333333;
}

.right-intro>p{
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333333;
  line-height: 26px;
  margin: 16px 0 20px;
}

.more-intro{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.more-intro a{
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #3689EF;
  margin-right: 36px;
}

@media screen and (max-width:768px) {
  .all-products-container{
    padding: 0 1rem;
  }

  .all-products-banner{
    height: 5rem;
    background-size: cover;

  }

  .switch-btns{
    padding: 1rem;
    overflow-x: scroll;
    display: -webkit-box;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100vw;
    margin-left: -1rem;
  }

  .switch-btns::-webkit-scrollbar{
    display: none;
  }
  
  .switch-btns>li{
    margin: 0 10px 0 0;
    font-size: .8rem;
    padding: .5rem 1rem;
  }

  .product-item {
    padding: 1rem;
    align-items: flex-start;

  }

  .product-item>img{
    width: 6rem;
    height: auto;
    margin-right: 1rem;
  }

  .right-intro>h2{
    font-size: 1rem;
  }
  
  .right-intro>p{
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    line-height: 26px;
    margin: .8rem 0;
    text-overflow: -o-ellipsis-lastline;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		line-clamp: 3;
		-webkit-box-orient: vertical;
  }

  .more-intro a{
    margin-bottom: .5rem;
  }

  
}
