html,
body {
  width: 100%;
  height: 100vh;
  font-size: 1rem;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 导航 */
nav {
  width: 100%;
  height: 28px;
  background: #fcfcfc;
  border-bottom: 1px solid #eeedf2;
  display: flex;
  padding: 0 16%;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #808080;
  /* overflow: hidden; */
}
.leftNav {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}
.rightNav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8rem;
}
.rightNav > div {
  /* width: 6%; */
  padding: 0 0.5%;
  font-size: 0.8rem;
  cursor: pointer;
}
.rightNav > div:last-child {
  width: auto;
  padding: 0 1%;
  background-color: rgb(249, 45, 94);
  color: white;
  text-align: center;
}
/* 头部 */
header {
  width: 63%;
  /* width: 100%; */
  margin: 0 auto;
  height: 130px;
  display: flex;
  justify-content: space-between;
  /* background-color: rgba(128, 128, 128, 0.1); */
}
header img {
  width: 16%;
  object-fit: contain;
}
.searchWrapper {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.searchWrapper .tips {
  width: 100%;
  margin-left: 52%;
  margin-top: 10px;
  color: #808080;
  font-size: 0.9rem;
  cursor: pointer;
}
.inputWrapper {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 5%;
}
.inputWrapper input {
  width: 50%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgb(108, 46, 249) !important;
  color: rgb(108, 46, 249);
  padding: 0 10px;
  cursor: pointer;
  outline: none;
  font-size: 1rem;
}
.inputWrapper input::placeholder {
  color: rgb(108, 46, 249);
}
.searchButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(108, 46, 249);
  color: white;
  width: 100px;
  border-radius: 20px;
  position: relative;
  left: -40px;
  cursor: pointer;
}
.inputWrapper img {
  width: 20px;
  margin-right: 6px;
}
/* 内容 */
main {
  width: 100%;
}
.headerButtonList {
  display: flex;
  padding: 0 17%;
  background-color: rgba(128, 128, 128, 0.1);
}
.headerButtonList > div {
  color: black;
  width: 16%;
  height: 35px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.headerButtonList a {
  color: rgb(108, 46, 249);
  font-weight: bold;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headerButtonList .bannerActive {
  color: white;
  background-color: rgb(108, 46, 249);
  margin-bottom: 2px;
  font-weight: bold;
}
.bannerActive a {
  color: white;
}
.banner {
  width: 100%;
  object-fit: contain;
}

.productList {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  /* width: 1200px; */
  width: 63%;
  z-index: 2;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}
.product {
  width: 19.2%;
  margin-right: 1%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(
    to bottom,
    rgb(254, 252, 247),
    rgb(253, 246, 229)
  );
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
  color: #43403b;
  border: 4px solid rgb(240, 228, 214);
  cursor: pointer;
}
.product:nth-child(5n)
{
  margin-right: 0;
}
.productImg {
  width: 100%;
  object-fit: cover;
  height: 60%;
}
.productName {
  padding: 0 10px;
  width: 100%;
  height: 16%;
  /* font-weight: bold; */
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.price {
  height: 12%;
  padding-left: 15px;
  font-size: 1.2rem;
  color: red;
  display: flex;
  align-items: center;
  font-weight: bold;
}
.price img {
  margin-left: 0.8rem;
  width: 4rem;
}
.businessName {
  width: 100%;
  height: 11%;
  font-size: 0.9rem;
  color: #808080;
  padding: 0 10px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
#demo-laypage-text {
  margin-top: -140px;
}
.layui-laypage {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.layui-laypage .layui-laypage-curr .layui-laypage-em {
  /* background-color:#faf7ee; */
  background-color: white;
  color: red;
}
.layui-laypage .layui-laypage-curr em {
  color: red;
  font-size: 1rem;
}
.layui-laypage a,
.layui-laypage span {
  display: inline-block;
  vertical-align: middle;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  margin: 0 -1px 5px 0;
  background-color: rgb(251, 247, 239);
  color: #333;
  font-size: 12px;
}
.layui-laypage a:hover {
  color: red;
}
.layui-laypage a[data-page] {
  font-size: 1rem;
}
.layui-laypage .layui-laypage-count {
  background-color: white;
  color: #656776;
  font-size: 1rem;
  font-weight: bold;
  margin-left: 30px;
}
