@import url('../css/base.css');
@import url('../css/header-footer.css');
.merch-title-t {
  color: #333333;
  font-size: 18px;
  font-family: B;
  margin-top: 24px;
}
.trending-go {
  text-align: center;
}
.trending-go span {
  font-size: 24px;
  font-family: B;
  position: relative;
  color: #333;
}
.trending-go span::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 8px;
  background: #FECB1E;
  border-radius: 35px 35px 35px 35px;
  z-index: -1;
}
.merch,
.recommend-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}
.merch a,
.recommend-list a {
  display: block;
  width: calc((100% - 64px) / 5);
  height: 100%;
  padding: 24px 24px 16px 24px;
  background: #FFFFFF;
  border-radius: 24px;
  margin: 0 16px 16px 0;
  transition: all 0.3s;
}
.merch a:hover,
.recommend-list a:hover {
  transform: translateY(-10px);
  box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.2);
}
.merch a:nth-child(5n),
.recommend-list a:nth-child(5n) {
  margin-right: 0;
}
.merch a img,
.recommend-list a img {
  width: 100%;
}
.merch a h2,
.recommend-list a h2 {
  font-size: 16px;
  color: #333333;
  line-height: 24px;
  height: 48px;
  font-family: B;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 8px;
}
.merch a .merch-f,
.recommend-list a .merch-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.merch a .merch-f .layui-rate li i.layui-icon,
.recommend-list a .merch-f .layui-rate li i.layui-icon {
  font-size: 16px;
  color: #FFD926;
}
.merch a .merch-f .price,
.recommend-list a .merch-f .price {
  font-size: 18px;
  color: #FF2626;
  line-height: 28px;
  font-family: B;
}
.merch-sr {
  margin-top: 8px;
}
.merch-d {
  margin-top: 12px;
}
#recommend .r-bg {
  display: block;
  width: 100%;
  height: 68px;
  line-height: 68px;
  text-align: center;
  background: #396DFF;
  font-size: 24px;
  color: #FFFFFF;
  font-family: B;
  border-radius: 16px;
}
#merch-detail {
  position: relative;
  display: flex;
  width: 1200px;
  height: 388px;
  background: #FFFFFF;
  border-radius: 24px;
  margin-top: 8px;
  padding: 24px 24px 0 24px;
}
#merch-detail .merch-detail-l {
  width: 263px;
}
#merch-detail .merch-detail-l .merch-detail-l-img {
  width: 263px;
  height: 263px;
}
#merch-detail .merch-detail-l .merch-detail-l-img img {
  display: none;
}
#merch-detail .merch-detail-l .merch-detail-l-img img:nth-child(1) {
  display: block;
}
#merch-detail .merch-detail-l .image1 {
  width: 263px;
  height: 263px;
  object-fit: cover;
}
#merch-detail .merch-detail-l ul {
  display: flex;
  overflow: hidden;
  margin-top: 8px;
}
#merch-detail .merch-detail-l ul li {
  width: 47px;
  height: 47px;
  margin-right: 7px;
}
#merch-detail .merch-detail-l ul li:nth-child(5n) {
  margin-right: 0;
}
#merch-detail .merch-detail-l ul li img {
  width: 47px;
  height: 47px;
  object-fit: cover;
  cursor: pointer;
}
#merch-detail .merch-detail-l ul li img:hover {
  border-radius: 8px;
  border: 1px solid #FFD926;
}
#merch-detail .merch-detail-m {
  width: 518px;
  margin-left: 16px;
}
#merch-detail .merch-detail-m h2 {
  font-size: 18px;
  color: #000000;
  line-height: 28px;
  height: 56px;
  font-family: B;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#merch-detail .merch-detail-m table {
  width: 373px;
  height: 144px;
  margin-top: 17px;
  border-spacing: 0;
  table-layout: fixed;
}
#merch-detail .merch-detail-m table tr:first-child td:first-child {
  border-top-left-radius: 10px;
}
#merch-detail .merch-detail-m table tr:first-child td:last-child {
  border-top-right-radius: 10px;
}
#merch-detail .merch-detail-m table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
#merch-detail .merch-detail-m table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}
#merch-detail .merch-detail-m table tr:first-child td {
  border-bottom: none;
}
#merch-detail .merch-detail-m table tr:last-child td {
  border-top: none;
}
#merch-detail .merch-detail-m table tr:nth-child(2) td {
  border-bottom: none;
}
#merch-detail .merch-detail-m table tr td {
  border: 1px solid #e8e8e8;
  padding-left: 12px;
}
#merch-detail .merch-detail-m table tr td:nth-child(n) {
  width: 131px;
  font-size: 14px;
  color: #000;
  font-family: R;
}
#merch-detail .merch-detail-m table tr td:nth-child(2n) {
  width: 242px;
  font-size: 16px;
  color: #333333;
  font-family: R;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
#merch-detail .merch-detail-m table tr td:first-child {
  border-right: none;
}
#merch-detail .merch-detail-m table tr td .layui-rate li i.layui-icon {
  font-size: 14px;
  color: #767676;
}
#merch-detail .merch-detail-m .price {
  margin-top: 12px;
  color: #FF2626;
  margin-left: 10px;
}
#merch-detail .merch-detail-m .price span:nth-child(1) {
  font-size: 16px;
  font-family: R;
}
#merch-detail .merch-detail-m .price span:nth-child(2) {
  font-size: 20px;
  font-family: B;
}
#merch-detail .merch-detail-m a {
  display: block;
  width: 373px;
  height: 47px;
  line-height: 47px;
  text-align: center;
  background: #7098FF;
  border-radius: 50px;
  font-size: 16px;
  font-family: B;
  margin-top: 10px;
}
#merch-detail .merch-detail-r {
  margin-left: 19px;
}
#merch-detail .merch-detail-r .ad3 {
  width: 336px;
  height: 302px;
  background: #F8F8F8;
  text-align: center;
}
#merch-detail .merch-detail-r span {
  display: block;
  font-size: 12px;
  color: #CCCCCC;
  font-family: M;
  text-align: center;
}
#merch-detail .note2 {
  position: absolute;
  left: 24px;
  bottom: 16px;
  color: #999999;
  font-size: 12px;
  font-family: R;
}
#editer {
  width: 1200px;
  padding: 24px;
  background: #fff;
  margin-top: 16px;
}
#editer h2 {
  font-size: 18px;
  text-align: center;
  font-family: B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#editer .editer-text {
  font-size: 16px;
  line-height: 28px;
  font-family: R;
}
.media .mediatitle {
  color: #333333;
  font-size: 18px;
  font-family: B;
}
.media .media-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}
.media a {
  display: block;
  width: calc((100% - 48px) / 4);
  margin: 0 16px 16px 0;
}
.media a:nth-child(4n) {
  margin-right: 0;
}
.media a .media-t {
  position: relative;
}
.media a .media-t .pic1 {
  width: 100%;
  height: 162px;
  border-radius: 10px;
  object-fit: cover;
}
.media a .media-t .pic2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  z-index: 22;
}
.media a .media-t .media-f {
  display: flex;
  position: absolute;
  bottom: 12px;
  padding: 0 12px;
  width: 100%;
  justify-content: space-between;
  z-index: 22;
}
.media a .media-t .media-f span {
  display: block;
  font-size: 14px;
  color: #FFFAFA;
  font-family: R;
}
.media a .media-t .media-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
.media a h2 {
  color: #333333;
  line-height: 24px;
  font-size: 16px;
  margin-top: 12px;
  font-family: B;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.media a:hover h2 {
  color: #FECB1E;
}
@media screen and (min-width: 860px) and (max-width: 1280px) {
  #merch-detail {
    width: 100%;
    overflow-x: scroll;
  }
  #merch-detail::-webkit-scrollbar {
    display: none;
  }
  #editer {
    width: 100%;
  }
  .merch a,
  .recommend-list a {
    width: calc((100% - 48px) / 4);
    padding: 16px;
  }
  .merch a:nth-child(5n),
  .recommend-list a:nth-child(5n) {
    margin-right: 16px;
  }
  .merch a:nth-child(4n),
  .recommend-list a:nth-child(4n) {
    margin-right: 0;
  }
  .media a {
    width: calc((100% - 48px) / 4);
  }
  .media a .media-t .pic1 {
    height: 100%;
  }
  .media a .media-t .media-f {
    justify-content: flex-end;
  }
  .media a .media-t .media-f span:nth-child(1) {
    display: none;
  }
}
@media screen and (min-width: 750px) and (max-width: 859px) {
  #merch-detail {
    width: 100%;
    overflow-x: scroll;
  }
  #merch-detail::-webkit-scrollbar {
    display: none;
  }
  #editer {
    width: 100%;
  }
  .merch a,
  .recommend-list a {
    width: calc((100% - 48px) / 4);
    padding: 16px 16px 8px 16px;
  }
  .merch a:nth-child(5n),
  .recommend-list a:nth-child(5n) {
    margin-right: 16px;
  }
  .merch a:nth-child(4n),
  .recommend-list a:nth-child(4n) {
    margin-right: 0;
  }
  .merch a .merch-f .layui-rate li i.layui-icon,
  .recommend-list a .merch-f .layui-rate li i.layui-icon {
    font-size: 14px;
  }
  .merch a .merch-f .price,
  .recommend-list a .merch-f .price {
    font-size: 16px;
  }
  .media a {
    width: calc((100% - 48px) / 4);
  }
  .media a .media-t .pic1 {
    height: 100%;
  }
  .media a .media-t .media-f {
    bottom: 4px;
    justify-content: flex-end;
  }
  .media a .media-t .media-f span:nth-child(1) {
    display: none;
  }
  .media a .media-t .hot {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 24px;
    line-height: 24px;
  }
}
@media screen and (min-width: 560px) and (max-width: 749px) {
  #merch-detail {
    display: block;
    width: 100%;
    height: auto;
    padding-bottom: 12px;
  }
  #merch-detail .merch-detail-l {
    width: 100%;
  }
  #merch-detail .merch-detail-l .merch-detail-l-img {
    width: 100%;
    height: auto;
  }
  #merch-detail .merch-detail-l .merch-detail-l-img .image1 {
    width: 100%;
    height: auto;
  }
  #merch-detail .merch-detail-l ul li {
    width: 80px;
    height: 80px;
  }
  #merch-detail .merch-detail-l ul li img {
    width: 80px;
    height: 80px;
  }
  #merch-detail .merch-detail-m {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }
  #merch-detail .merch-detail-m table {
    width: 100%;
  }
  #merch-detail .merch-detail-m a {
    width: 100%;
  }
  #merch-detail .merch-detail-r {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }
  #merch-detail .merch-detail-r .ad3 {
    display: none;
  }
  #merch-detail .merch-detail-r span {
    display: none;
  }
  #merch-detail .note2 {
    position: static;
  }
  #editer {
    width: 100%;
  }
  .merch a,
  .recommend-list a {
    width: calc((100% - 32px) / 3);
    padding: 16px 16px 8px 16px;
  }
  .merch a:nth-child(5n),
  .recommend-list a:nth-child(5n) {
    margin-right: 16px;
  }
  .merch a:nth-child(3n),
  .recommend-list a:nth-child(3n) {
    margin-right: 0;
  }
  .merch a .merch-f .layui-rate li i.layui-icon,
  .recommend-list a .merch-f .layui-rate li i.layui-icon {
    font-size: 14px;
  }
  .merch a .merch-f .price,
  .recommend-list a .merch-f .price {
    font-size: 16px;
  }
  .media a {
    width: calc((100% - 32px) / 3);
  }
  .media a:nth-child(4n) {
    margin-right: 16px;
  }
  .media a:nth-child(3n) {
    margin-right: 0;
  }
  .media a .media-t .pic1 {
    height: 100%;
  }
  .media a .media-t .media-f {
    bottom: 4px;
    justify-content: flex-end;
  }
  .media a .media-t .media-f span:nth-child(1) {
    display: none;
  }
  .media a .media-t .hot {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 24px;
    line-height: 24px;
  }
}
@media screen and (min-width: 0) and (max-width: 559px) {
  #merch-detail {
    display: block;
    width: 100%;
    height: auto;
    padding-bottom: 12px;
  }
  #merch-detail .merch-detail-l {
    width: 100%;
  }
  #merch-detail .merch-detail-l .merch-detail-l-img {
    width: 100%;
    height: auto;
  }
  #merch-detail .merch-detail-l .merch-detail-l-img .image1 {
    width: 100%;
    height: auto;
  }
  #merch-detail .merch-detail-m {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }
  #merch-detail .merch-detail-m table {
    width: 100%;
  }
  #merch-detail .merch-detail-m table tr td:nth-child(2n) {
    width: 100%;
  }
  #merch-detail .merch-detail-m a {
    width: 100%;
  }
  #merch-detail .merch-detail-r {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }
  #merch-detail .merch-detail-r .ad3 {
    display: none;
  }
  #merch-detail .merch-detail-r span {
    display: none;
  }
  #merch-detail .note2 {
    position: static;
  }
  #editer {
    width: 100%;
  }
  .merch a,
  .recommend-list a {
    width: calc((100% - 16px) / 2);
    padding: 16px 16px 8px 16px;
  }
  .merch a:nth-child(5n),
  .recommend-list a:nth-child(5n) {
    margin-right: 16px;
  }
  .merch a:nth-child(2n),
  .recommend-list a:nth-child(2n) {
    margin-right: 0;
  }
  .merch a h2,
  .recommend-list a h2 {
    font-size: 14p;
  }
  .merch a .merch-f .layui-rate li i.layui-icon,
  .recommend-list a .merch-f .layui-rate li i.layui-icon {
    font-size: 12px;
  }
  .merch a .merch-f .price,
  .recommend-list a .merch-f .price {
    font-size: 14px;
  }
  .media a {
    width: calc((100% - 16px) / 2);
  }
  .media a:nth-child(4n) {
    margin-right: 16px;
  }
  .media a:nth-child(2n) {
    margin-right: 0;
  }
  .media a .media-t .pic1 {
    height: 100%;
  }
  .media a .media-t .media-f {
    bottom: 4px;
    justify-content: flex-end;
  }
  .media a .media-t .media-f span:nth-child(1) {
    display: none;
  }
  .media a .media-t .hot {
    top: 8px;
    right: 8px;
    width: 48px;
    height: 24px;
    line-height: 24px;
  }
}
