﻿.bossgoo-index-products8 .titlebox {
  text-align: center;
}

.bossgoo-index-products8 .titlebox .maintitle {
  color: var(--themeColor);
  position: relative;
  display: inline-block;
}

.bossgoo-index-products8 .titlebox .maintitle:before,
.bossgoo-index-products8 .titlebox .maintitle:after {
  position: absolute;
  content: " ";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--themeColor);
  right: 110%;
  top: calc(50% - 2px);
}

.bossgoo-index-products8 .titlebox .maintitle:after {
  left: 110%;
  right: auto;
}

.bossgoo-index-products8 .prolist {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.bossgoo-index-products8 .prolist .probox {
  width: 18.8%;
  height: auto;
  margin-right: 1.5%;
  position: relative;
  margin-bottom: 20px;
  background: #fff;
}

.bossgoo-index-products8 .prolist .probox .imgbox {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
}

.bossgoo-index-products8 .prolist .probox .imgbox .innerbox {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bossgoo-index-products8 .prolist .probox .imgbox .innerbox img {
  width: 95%;
  height: 95%;
  object-fit: contain;
}

.bossgoo-index-products8 .prolist .probox .name {
  display: block;
  padding: 0 20px;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background-color: white;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bossgoo-index-products8 .prolist .probox .contact {
  position: absolute;
  left: 50%;
  bottom: calc(30% - 40px);
  transform: translate(-50%, -50%);
  width: 60%;
  border-radius: 20px;
  height: 40px;
  line-height: 40px;
  color: #000;
  text-align: center;
  font-size: 20px;
  display: none;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.bossgoo-index-products8 .prolist .probox:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.bossgoo-index-products8 .prolist .probox:hover .contact {
  display: block;
}

.bossgoo-index-products8 .prolist .probox:hover .name {
  background-color: var(--themeColor);
  color: white;
}

.bossgoo-index-products8 .prolist .probox:nth-child(5n) {
  margin-right: 0;
}

.bossgoo-index-products8 .prolist .probox:nth-child(n + 6) {
  margin-bottom: 0;
}

@media only screen and (max-width: 1040px) {
  .bossgoo-index-products8 .titlebox .maintitle:before,
  .bossgoo-index-products8 .titlebox .maintitle:after {
    width: 0.6rem;
    height: 0.04rem;
    top: calc(50% - 0.02rem);
  }
  .bossgoo-index-products8 .prolist {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-bottom: 0.4rem;
  }
  .bossgoo-index-products8 .prolist .probox {
    margin-right: 1.5%;
    margin-bottom: 0.4rem;
  }
  .bossgoo-index-products8 .prolist .probox .name {
    background-color: #fff;
    padding: 0 0.2rem;
    height: 0.8rem;
    line-height: 0.4rem;
    font-size: 0.28rem;
  }
  .bossgoo-index-products8 .prolist .probox .contact {
    display: none;
  }
  .bossgoo-index-products8 .prolist .probox:hover {
    box-shadow: none;
  }
  .bossgoo-index-products8 .prolist .probox:hover .contact {
    display: none;
  }
  .bossgoo-index-products8 .prolist .probox:hover .name {
    background-color: #fff;
    color: #666;
  }
}

@media only screen and (max-width: 767px) {
  .bossgoo-index-products8 .titlebox .maintitle:before,
  .bossgoo-index-products8 .titlebox .maintitle:after {
    width: 0.4rem;
  }
  .bossgoo-index-products8 .prolist {
    padding-bottom: 0.5rem;
  }
  .bossgoo-index-products8 .prolist .probox {
    width: 49.5%;
    margin-right: 1%;
    margin-bottom: 0.2rem;
  }
  .bossgoo-index-products8 .prolist .probox .name {
    padding: 0 0.3rem;
    height: 0.4rem;
    line-height: 0.4rem;
  }
  .bossgoo-index-products8 .prolist .probox .contact {
    display: none;
  }
  .bossgoo-index-products8 .prolist .probox:nth-child(5n) {
    margin-right: 1%;
  }
  .bossgoo-index-products8 .prolist .probox:nth-child(2n) {
    margin-right: 0%;
  }
  .bossgoo-index-products8 .prolist .probox:nth-child(n + 6) {
    margin-bottom: 0.2rem;
  }
  .bossgoo-index-products8 .prolist .probox:nth-child(n + 9) {
    margin-bottom: 0;
  }
}