:root {
  font-size: 16px;
}
@font-face {
  font-family: "WhyGarden";
  src: url("../fonts/BDOGrotesk-VF.woff2");
}

/*
 * 这条原来是整块注释掉的（大概是 height:100vh 撑坏了布局），背景色跟着一起没了。
 * 结果整站没有任何一处声明过背景：浏览器开深色模式时画布变黑，而正文是黑字
 * ——两个站、所有页面，深色模式的访客看到的是一片黑底黑字。
 *
 * 只恢复背景，不要那两行尺寸。color-scheme 一并声明，否则表单控件、滚动条
 * 还是会按深色渲染。
 */
html,
body {
  background: #fff;
  color-scheme: only light;
}

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

.swiper-pagination-bullet {
  background: #f6f6f6 !important;
  border: 1px solid #000 !important;
  width: 10px !important;
  height: 10px !important;
}
.my-bullet-active {
  opacity: 1 !important;
  background: #fff !important;
}

/* 搜索页面like页面下拉加载更多 */
.loadingMore {
  margin: 40px auto;
  width: 25px;
  height: 25px;
  background: url("../images/loading.gif") no-repeat center center;
  background-size: contain;
}

.menu-container {
  position: fixed;
  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;
}
.list-container .item:nth-child(4) a {
  width: 300px;
  height: 50px;
  background: url("../images/white-loge.png") no-repeat center center;
  background-size: contain;
}
.icons {
  display: flex;
  align-items: center;
}
.icons a {
  width: 18px;
  height: 18px;
}
.icons a:nth-child(1) {
  background: url("../images/user.png") no-repeat center;
  background-size: contain;
}
.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.change:last-child a:nth-child(1) {
  background: url("../images/user_2.png") no-repeat center;
  background-size: contain;
}
.icons.change:last-child a:nth-child(2) {
  background: url("../images/collect.png") no-repeat center;
  background-size: contain;
}
.icons.change: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 150px 120px 120px;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  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;
  position: relative;
}
.column-content .surplus a:nth-child(1) {
  background: url("../images/user_2.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;
}

/* 下拉显示 */
.xl-container {
  padding: 70px 40px 0px;
  justify-content: space-between;
  font-size: 14px;
  display: none;
}
.xl-left {
  flex: 0 0 auto;
}
.xl-left p,
.xl-left a {
  margin: 20px 0px;
  font-size: 12px;
  cursor: pointer;
}
.xl-center {
  flex: 1 1 auto;
  margin: 40px 70px 0px;
}
.xl-center a img {
  width: 100%;
  cursor: pointer;
  object-fit: contain;
}
.xl-right {
  flex: 0 0 auto;
}
.xl-right > a {
  margin: 20px 0px;
  font-size: 12px;
}
.xl-right div {
  width: 100%;
  margin: 18px 0px;
  height: 18px;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xl-right div > a {
  width: 20px;
  cursor: pointer;
  height: 20px;
}
.xl-right div > a:nth-child(1) {
  background: url("../images/user_2.png") no-repeat center;
  background-size: contain;
}
.xl-right div > a:nth-child(2) {
  background: url("../images/collect.png") no-repeat center;
  background-size: contain;
  margin: 0px 10px;
}
.xl-right div > a:nth-child(3) {
  background: url("../images/sousuo.png") no-repeat center;
  background-size: contain;
}

.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%;
  object-fit: contain;
}

/* 遮罩层 */
.h-opa {
  left: -100vw;
  opacity: 0;
  /*
   * 关闭时必须挡不住点击。只靠 left:-100vw 推出屏幕不可靠 —— vw 与实际视口
   * 宽度不一定相等（缩放、滚动条），差多少就有多宽的一条透明带留在屏幕左侧，
   * 而 opacity:0 的元素照样接收点击，那条带子里的东西就点不动了。
   * 移动端图集的左箭头正好落在里面。打开时由 JS 把它改回 auto。
   */
  pointer-events: none;
  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%;
}
.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;
}
.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,
.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,
.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%;
}
.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;
}
.card_2-container .card2-bottom > a:first-of-type {
  font-size: 1rem;
}
.card_2-container .card2-bottom .describe {
  /* Leave room for the absolutely positioned like button. */
  padding-right: 36px;
  white-space: nowrap;
  color: #666;
  /*超出范围隐藏*/
  overflow: hidden;
  /*文字超出用省略号*/
  text-overflow: ellipsis;
}

/* 页脚样式 */
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;
}
.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-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* minmax(0,…) so a card cannot force its column wider than the row. */
  gap: 45px 5px;
}
.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 {
  width: 30px;
  height: 30px;
  background: url("../images/loading.gif") no-repeat center center;
  background-size: contain;
  margin: 70px auto;
}
.empty-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}
.empty-container img {
  width: 64px;
  margin-bottom: 15px;
}
.empty-container p {
  font-size: 14px;
  color: #6f6f6f;
}

@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: fit-content;
  }
  .list-container {
    display: none;
  }

  /* 产品列表样式 */
  .subclass-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .banner {
    height: fit-content;
    min-height: 0px;
  }
  .banner img {
    height: auto;
    margin: 0px;
    object-fit: contain;
  }
}
@media screen and (max-width: 750px) {
  .banner img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .to-top-container {
    right: 1rem;
  }
  :root {
    font-size: 14px;
  }
  .card-bottom > a {
    font-size: 12px;
  }
  .card-bottom div {
    font-size: 12px;
  }
  .card-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 {
    grid-template-columns: repeat(2, minmax(0, 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;
  }
}

/* 语言切换：中文 | English，放在导航图标那一排的最右
   （与中文站同一个形态、同一个位置）。

   上面 .icons a 那几条是按位置给三个图标铺背景图的：
     .icons a          { width: 18px; height: 18px }
     .icons a:nth-child(1|2|3) { background: 用户 / 喜欢 / 搜索 }
   注意是后代选择器，不是直接子元素 —— 切换器里的 <a> 是 .lang-switch 的第 1 个
   子元素，不挡着也会被套上 18×18 和「用户」那张图。所以这里要显式解掉。 */
.icons .lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
}
.icons .lang-switch .lang-item {
  width: auto;
  height: auto;
  background: none;
  margin: 0;
  padding: 0 5px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  color: inherit;          /* 深色/浅色两种导航都跟着走，不写死 */
}
.icons .lang-switch .lang-item.active {
  font-weight: bold;
  cursor: default;
}

/* 中文 | English 中间那道竖线。和中文站同一个形态 ——
   用 ::before 生成，不写进标记，也就不会被当成可点的文字选中。 */
.icons .lang-switch .lang-item + .lang-item::before {
  content: "|";
  display: inline-block;
  margin-right: 10px;
  opacity: .45;
  font-weight: normal;      /* 挨着加粗的那个时，竖线别跟着变粗 */
  cursor: default;
}
.icons .lang-switch .lang-item + .lang-item {
  padding-left: 5px;
}
