:root {
  font-size: 16px;
}
@font-face {
  font-family: "WhyGarden";
  src: url("../fonts/BDOGrotesk-VF.woff2");
}

body {
  scroll-behavior: smooth;
  min-height: 100vh;
  transition: 0.3s;
}

main {
  max-width: 100vw;
  min-height: 100vh;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: "WhyGarden", "Microsoft YaHei", "微软雅黑";
}

a {
  color: inherit;
  display: block;
  text-decoration: none;
}
ul {
  list-style: none;
}
em {
  font-style: normal;
  color: #97000f;
}
::-webkit-input-placeholder {
  /* WebKit browsers，webkit内核浏览器 */
  color: #f00;
  font-size: 12px;
}
:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #f00;
  font-size: 12px;
}
::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  font-size: 12px;
  color: #f00;
}
:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  font-size: 12px;
  color: #f00;
}
.empty-container {
  text-align: center;
  color: #878787;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.empty-container p {
  font-size: 1rem;
  font-weight: bold;
}
.swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.4) !important;
  width: 8px !important;
  height: 8px !important;
  opacity: 1 !important;
}
.my-bullet-active {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* 搜索页面like页面下拉加载更多 */
.loadingMore {
  margin: 40px auto;
  width: 25px;
  height: 25px;
  background: url("../images/loading.gif") no-repeat center center;
  background-size: contain;
  display: none;
}

.menu-container {
  position: relative;
  left: 0;
  width: 100%;
  top: 0;
  z-index: 11;
}
/* pc端栏目 */
.list-container {
  display: flex;
  align-items: center;
  height: 80px;
  justify-content: space-around;
  font-size: 13px;
  color: #fff;
  background: #000;
  position: relative;
}
.img-logo {
  width: 300px;
  height: 50px;
  background: url("../images/white-loge.png") no-repeat center center;
  background-size: contain;
}
.img-logo.change {
  background: url("../images/WHYGARDEN-LOGO.png") no-repeat center center;
  background-size: contain;
}
.icons {
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 90px;
  transform: translateY(45px);
}
.icons > a {
  width: 18px;
  height: 18px;
}
.icons > a:nth-child(1) {
  background: url("../images/user.png") no-repeat center;
  background-size: contain;
}
.icons > a.ydl:nth-child(1) {
  background: url("../images/Loggedinb.png") no-repeat center;
  background-size: contain;
}

.logon-prompt {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 150px;
  height: 35px;
  padding: 0px 50px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  display: none;
}
.exit {
  margin-left: 5px;
  border-bottom: 1px solid #ffffff;
  line-height: 13px;
  display: none;
  cursor: pointer;
}

.icons > a:nth-child(2) {
  background: url("../images/like.png") no-repeat center;
  background-size: contain;
  margin: 0px 20px;
}
.icons > a:nth-child(3) {
  background: url("../images/search.png") no-repeat center;
  background-size: contain;
}
.icons.reversal:last-child a:nth-child(1) {
  background: url("../images/user_2.png") no-repeat center;
  background-size: contain;
}
.icons.reversal:last-child a:nth-child(2) {
  background: url("../images/collect.png") no-repeat center;
  background-size: contain;
}
.icons.reversal:last-child a:nth-child(3) {
  background: url("../images/sousuo.png") no-repeat center;
  background-size: contain;
}

/* 二级栏目 */
.son-column {
  position: absolute;
  height: 0px;
  transition: all 0.5s;
  overflow: hidden;
  transform-origin: top center;
  left: 0px;
  top: 80px;
  right: 0px;
}
.son-content {
  padding: 50px 0px 120px;
  justify-content: space-evenly;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  display: flex;
  align-items: flex-start;
  color: #000;
}
.son-item {
  max-height: 222px;
  font-size: 14px;
  flex-wrap: wrap;
}
.son-item:not(:last-child) {
  margin-right: 40px;
}

.son-item:nth-child(2) .son-column-content {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px 40px;
}
.son-item-title {
  font-weight: bold;
  margin-bottom: 30px;
  font-size: 1rem;
}
.son-column-content a {
  margin: 0px 5px 5px 0px;
  white-space: nowrap;
}
.son-column-content a:hover {
  text-decoration: underline !important;
}

/* 移动端栏目 */
.mobile-container {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 5px 15px;
}
.mobile-container .right {
  width: 18px;
  height: 18px;
  background: url("../images/search.png") no-repeat center;
  background-size: contain;
}
.mobile-container .title-logo a {
  width: 60%;
  margin: 0px auto;
}
.expand {
  cursor: pointer;
  width: 18px;
  height: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.expand span {
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  display: block;
}
.column-content {
  width: 280px;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  right: -280px;
  top: 0;
  background-color: #fff;
  z-index: 123;
  transition: all 0.3s;
}
.column-content .surplus {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 0px;
}
.column-content .surplus a {
  width: 23px;
  height: 23px;
  color: #000;
}
.column-content .surplus a:nth-child(1) {
  background: url("../images/user_2.png") no-repeat center;
  background-size: contain;
  position: relative;
}
.column-content .surplus a:nth-child(1)::after {
  content: attr(data-content-after);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  white-space: nowrap;
  height: 30px;
  line-height: 30px;
  padding: 0px 15px;
  color: #fff;
  transition: 0.3s;
  transform: scaleY(0);
  transform-origin: top center;
}
.column-content .surplus a.yddl:nth-child(1) {
  background: url("../images/yddl.png") no-repeat center;
  background-size: contain;
}
.column-content .surplus a:nth-child(2) {
  background: url("../images/collect.png") no-repeat center;
  background-size: contain;
}
.column-content > ul {
  padding: 10px 0px 60px;
  overflow-y: scroll;
  width: 100%;
  background: #fff;
  height: 100%;
  color: #000;
  transform-origin: right center;
  transition: 0.3s;
}
.column-content > ul li .b-title {
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 40px;
}
.column-content > ul li .b-title > a,
.column-content > ul li .b-title > p {
  padding: 0px 10px;
}
.b-title p:first-child {
  position: relative;
}
.b-title p:first-child::after {
  position: absolute;
  top: 50%;
  right: 5px;
  content: "＋";
  font-size: 20px;
  transform: translateY(-50%);
}
.b-title p:first-child.b-excerpt {
  border-bottom: 2px solid #585858;
}
.b-title p:first-child.b-excerpt::after {
  content: "－";
  font-size: 22px;
}
.sub-wrap {
  height: 0px;
  overflow: hidden;
  transition: 0.5s;
}
.b-content {
  font-size: 1.1rem;
  position: relative;
}
.b-content::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  width: 100%;
  height: 0px;
  border-bottom: 2px solid #585858;
}
.b-content .b-item {
  padding: 10px;
}
.b-content .b-item:not(:last-child) {
  border-bottom: 1px solid #666;
}
.b-item-title {
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.b-item-title::after {
  content: "";
  position: absolute;
  top: 50%;
  transition: 0.3s;
  transform: translateY(-50%);
  right: 0px;
  width: 14px;
  height: 14px;
  background: url("../images/below-arrow.png") no-repeat center center;
  background-size: contain;
}
.b-item-title.overturn::after {
  transform: translateY(-50%) rotate(-180deg);
}
.b-content .b-item ul {
  height: 0px;
  overflow: hidden;
  transition: 0.3s;
  margin-bottom: 5px;
}
.b-content .b-item ul li {
  padding: 8px 0px;
  font-size: 13px;
  color: #444;
}
.b-content .b-item ul li a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 遮罩层 */
.h-opa {
  left: -100vw;
  opacity: 0;
  transition: opacity 0.3s;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 122;
}

/* 卡片样式 */
.card-container {
  width: 100%;
  overflow: hidden;
}
.card-container .main {
  width: 100%;
  min-height: 220px;
}
.card-container .main img {
  width: 100%;
  object-fit: contain;
}
.card-container .card-bottom {
  position: relative;
  font-size: 14px;
  margin-top: 10px;
}
.card-container .card-bottom > a {
  font-weight: bold;
  margin: 3px 0px;
  font-size: 1rem;
  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
  padding-right: 20px;
  width: fit-content;
  max-width: 100%;
}
.card-container .card-bottom div {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-container .card-bottom div:first-of-type {
  color: #666;
}
.like {
  cursor: pointer;
  position: absolute;
  top: 0px;
  right: 0.8rem;
  width: 20px;
  height: 20px;
  background: url("../images/collect.png") no-repeat center center;
  background-size: contain;
}
.like.acvtie {
  background: url("../images/tuck.png") no-repeat center center;
  background-size: contain;
}

/* 卡片2样式 */
.card_2-container {
  width: 100%;
  overflow: hidden;
}
.card_2-container .main {
  width: 100%;
  min-height: 225px;
}
.card_2-container .main img {
  width: 100%;
  object-fit: contain;
}
.card_2-container .card2-bottom {
  position: relative;
  font-size: 14px;
  margin-top: 20px;
}
.card_2-container .card2-bottom a {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
  display: inline-block;
  max-width: 100%;
}

.card_2-container .card2-bottom a:first-of-type {
  margin-right: 8px;
}
.card_2-container .card2-bottom .describe {
  white-space: nowrap;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
  margin-bottom: 5px;
  max-width: 100%;
}

/* 页脚样式 */
footer {
  background: #333333;
  padding: 80px 0px 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #c0c0c0;
  justify-items: center;
  line-height: 30px;
  font-size: 13px;
  position: relative;
}
.bah {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #c0c0c0;
}

.footer-item:nth-child(2) > .footer-item-content > div a:first-of-type {
  width: fit-content;
  cursor: default;
  position: relative;
}
.footer-item:nth-child(2) > .footer-item-content > div a:first-of-type::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0px;
  padding: 5px;
  width: 110px;
  height: 110px;
  border-radius: 5px;
  transform-origin: top center;
  background: url("../images/xcx.png") no-repeat center center #fff;
  background-size: contain;
  transition: 0.3s;
  transform: scaleY(0);
}
@media (any-hover: hover) {
  .footer-item:nth-child(2)
    > .footer-item-content
    > div
    a:first-of-type:hover::before {
    transform: scaleY(1);
  }
}

.item-title {
  color: #fff;
  pointer-events: none;
}

/* 产品列表样式 */
.banner {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.banner img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.logo {
  font-size: 14px;
  margin: 70px 0px 15px;
  text-align: center;
}
.title {
  text-align: center;
  font-size: 32px;
}
.subclass {
  margin: 70px 20px;
}
.subclass-furniture,
.subclass-content,
.subclass-lamp,
.subclass-whole {
  grid-template-columns: repeat(4, 1fr);
  gap: 45px 5px;
  position: relative;
  display: none;
  min-height: 150px;
}
.subclass-content {
  display: grid;
}
.whole {
  font-size: 14px;
  width: fit-content;
  text-align: center;
  background: #000;
  color: #fff;
  width: 130px;
  height: 30px;
  line-height: 30px;
  margin: 70px auto;
}
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: url("../images/loading.gif") no-repeat center center;
  background-size: contain;
  display: none;
}

.to-top-container {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 50px;
  right: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 99;
}
.to-top-container > img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

@media screen and (max-width: 1100px) {
  .son-column {
    display: none;
  }
  .item {
    display: flex;
    align-items: center;
  }
  .item .picture {
    width: 20px;
    height: 20px;
  }
  .item > .picture:nth-child(2) {
    margin: 0px 15px;
  }
  .mobile-container {
    display: flex;
    height: 41px;
  }
  .list-container {
    display: none;
  }

  /* 产品列表样式 */
  .subclass-furniture,
  .subclass-content,
  .subclass-lamp,
  .subclass-whole {
    grid-template-columns: repeat(3, 1fr);
  }
  .banner {
    height: fit-content;
    min-height: 0px;
  }
  .banner img {
    height: auto;
    margin: 0px;
    object-fit: contain;
  }
}
@media screen and (max-width: 750px) {
  .to-top-container {
    right: 1rem;
  }
  .bah {
    bottom: 30px;
  }
  :root {
    font-size: 14px;
  }
  .card-container .main {
    min-height: 130px;
  }
  .card-bottom > a {
    font-size: 12px;
  }
  .card-bottom div {
    font-size: 12px;
  }
  .card-bottom div:first-of-type {
    display: none;
  }
  .card-bottom .like,
  .card2-bottom .like {
    right: 0rem;
  }

  /* 页脚样式 */
  footer {
    grid-template-columns: repeat(1, 1fr);
    padding: 50px 40px 80px;
    gap: 10px;
  }
  .item-title {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
  }
  .item-title::after {
    content: "";
    position: absolute;
    top: 50%;
    transition: 0.3s;
    transform: translateY(-50%);
    right: 0px;
    width: 16px;
    height: 16px;
    background: url("../images/foot-z.png") no-repeat center center;
    background-size: contain;
  }
  .item-title.overturn::after {
    transform: translateY(-50%) rotate(-180deg);
  }
  .footer-item {
    width: 100%;
    text-align: left;
  }

  .footer-item .footer-item-content {
    transition: 0.3s;
    height: 0px;
    overflow: hidden;
  }

  /* 产品列表样式 */
  .logo {
    margin: 20px 0px 10px;
  }
  .subclass {
    margin: 15px;
  }
  .subclass-content,
  .subclass-furniture,
  .subclass-lamp,
  .subclass-whole {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 5px;
  }
  .whole,
  .loading {
    margin: 50px auto;
  }
  .title {
    font-size: 20px;
  }

  /* 卡片2样式 */
  .card_2-container .bottom {
    margin-top: 10px;
  }
  .card_2-container .bottom > a {
    font-size: 12px;
  }
  .card_2-container .bottom > a:first-of-type {
    font-size: 1rem;
  }
  .card_2-container .bottom .describe {
    font-size: 12px;
  }
  .card_2-container .bottom .like {
    right: 0rem;
  }
  .card_2-container .main {
    min-height: 120px;
  }
  .card_2-container .card2-bottom {
    margin-top: 10px;
  }
  .card_2-container .card2-bottom a:first-of-type {
    font-size: 16px;
  }
  .card_2-container .card2-bottom > a,
  .card_2-container .card2-bottom .describe {
    display: block;
    width: fit-content;
    font-size: 13px;
    margin-bottom: 0px;
  }
}
