.tabs {
  width: 7.5rem;
  max-width: 7.5rem;
  margin: 0 auto;
  font-size: 0;
}
.tabs > .tab > ul {
  width: 7.02rem;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0.48rem;
}
.tabs > .tab > ul > li {
  line-height: 0.48rem;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 0.32rem;
  text-align: center;
  color: #666666;
  margin-right: 0.42rem;
  position: relative;
  cursor: pointer;
}
.tabs > .tab > ul > li:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.02rem;
  margin: 0 auto;
  width: 0;
  background-color: #ED1C24;
  transition: width 0.3s ease;
}
.tabs > .tab > ul .tab-active {
  position: relative;
  font-size: 0.32rem;
  color: #ED1C24;
  transition: all 0.3s ease;
}
.tabs > .tab > ul .tab-active:after {
  width: 100%;
  transition: width 0.2s;
}
.tabs > .content {
  position: relative;
  width: 7.5rem;
  max-width: 7.5rem;
  height: 3.3rem;
  margin: 0.16rem auto 0;
  box-sizing: border-box;
}
.tabs > .content > ul {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.tabs > .content > ul > li {
  background-color: #fff;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(0);
  width: 7.02rem;
  height: 3.3rem;
  font-size: 0.32rem;
  opacity: 0;
  padding: 0.24rem;
  border-radius: 0.24rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.tabs > .content > ul > li > img {
  width: 6.54rem;
  height: 2.81rem;
}
.tabs > .content > ul .content-active {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: all;
}
