: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;
  /* 不用 space-around：它按项数平分留白、不管每项多宽，
     右边比左边重就会把 LOGO 顶偏。改成等宽分格，见下面 */
  justify-content: space-between;
  padding: 0 30px;
  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;
}

/* LOGO **正对屏幕中线**。
   原来是 space-around：留白按项数平分，而每项多宽它不管 —— 右边多一组图标
   加中英切换（216px），左右重量不等，LOGO 就被顶到左边。1600 宽下量到的是
   英文站偏 122px、中文站偏 70px，拉条参考线一眼就看得出来。
   1500px 以下 .list-container 是 display:none（换成移动端那套），
   所以下面这几条只在 1500 往上生效。 */
/* 每一项占等宽的一格。左边三项、右边两项加一组图标，各三格 —— LOGO 那格
   自然就落在正中，两边的留白也一样宽。空间是按「格」分的，不是按文字长短，
   所以「联系我们 | CONTACT」比「ABOUT」长也不会把 LOGO 顶偏 */
.list-container > .item,
.list-container > .icons {
  flex: 1 1 0;
  min-width: 0;
}
.list-container > .item {
  display: flex;
  justify-content: center;
}
.list-container > .icons {
  justify-content: flex-end;
}
/* LOGO 那格宽度固定，并且**钉在屏幕中线上**。
   只靠上面的等分也能居中，但那要求左右两边的项数一样多 —— 而导航项是后台
   能加能减的，哪天两边不一样了，等分就又偏了。这一条和项数无关，兜住它 */
.list-container > .nav-logo {
  flex: 0 0 300px;
}
.list-container > .nav-logo .img-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.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;
  /* 三个图标之间。原来 20px，收紧到 13px，和英文站一致 */
  margin: 0px 13px;
}
.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（照搬旧站的值）。旁边的 flex-wrap 说明
     本意是「超高就分栏」，但 .son-item 装的是标题 + 内容块两个子元素，
     wrap 对内容块内部不起作用 —— 实际效果不是分栏，是**直接切掉**。

     而 222px 恰好卡在一行的边界上：我们的栏目比旧站多，
     第一列 8 条要 252px、家具那列 13 条要 232px，都差一行。
     差一行的后果是「有的浏览器看得见最后一条、有的看不见」——
     浏览器之间字体度量差一两个像素就够了。截掉的那条栏目等于从导航里消失。

     所以不设上限，让它按内容撑开。菜单会高一点（392px → 420px 左右），
     这是相对旧站的一处有意偏差：**宁可菜单高一点，也不能让一个栏目点不到**。 */
  font-size: 14px;
  flex-wrap: wrap;
}
.son-item:not(:last-child) {
  margin-right: 40px;
}

.son-item[data-nav-group="furniture"] .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: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  min-height: 64px;
  border-bottom: 1px solid #eeeeee;
}
.column-content .surplus > a {
  display: block;
  width: 44px;
  height: 44px;
  color: #000;
}
.column-content .surplus > a:nth-child(1) {
  background: url("../images/user_2.png") no-repeat center;
  background-size: 23px 23px;
  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: 23px 23px;
}
.column-content .surplus > a:nth-child(2) {
  background: url("../images/collect.png") no-repeat center;
  background-size: 23px 23px;
}
.column-content .surplus .lang-switch {
  justify-self: end;
  margin-left: 0;
  min-width: 0;
  height: 44px;
}
.column-content .surplus .lang-switch .lang-item {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 10px 4px;
  font-size: 14px;
  line-height: 24px;
  background: none;
}
.column-content .surplus .lang-switch .lang-item + .lang-item::before {
  margin-right: 8px;
}
.column-content > ul {
  padding: 10px 0px 60px;
  overflow-y: scroll;
  width: 100%;
  background: #fff;
  height: calc(100% - 64px);
  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%;
  width: max-content;
  max-width: calc(100% - 48px);
  transform: translateX(-50%);
  font-size: 13px;
  color: #c0c0c0;
  text-align: center;
}

.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;
}

/* 导航栏目现在由后台动态生成。当前勾选项在常见 1280/1440 宽度下已经放不进
   单行桌面导航，与其把文字挤成两行或切到屏幕外，不如提前切换到抽屉导航。 */
@media screen and (max-width: 1500px) {
  .mobile-container {
    display: flex;
    height: 41px;
  }
  .list-container {
    display: none;
  }
}

@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;
  }
  :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 {
    display: block;
    padding: 32px 24px calc(92px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .item-title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-right: 0;
    cursor: default;
    pointer-events: none;
  }
  .item-title::after {
    display: none;
  }
  .footer-item {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .footer-item + .footer-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-item .footer-item-content {
    height: auto !important;
    overflow: visible;
    padding-bottom: 14px;
  }
  .footer-item .footer-item-content a {
    overflow-wrap: anywhere;
  }
  .bah {
    bottom: calc(28px + env(safe-area-inset-bottom));
  }

  /* 产品列表样式 */
  .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;
  }
}
