html,
body {
  background: #fafafa;
}

nav {
  position: fixed;
  left: 0;
  top: 1rem;
  bottom: 0;
  overflow-y: auto;
  z-index: 99999999;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  overflow-x: hidden;
}

nav ul {
  list-style: none;
  background: #fafafa;
}

nav ul li {
  width: 1rem;
  height: 0.4rem;
  border-radius: 0 0.08rem 0.08rem 0;
  position: relative;
  padding-top: 0.14rem;
  cursor: pointer;
  background: #fafafa;
  margin-bottom: 0.1rem;
}

nav ul li:last-child {
  margin-bottom: 0;
}

nav ul li:hover {
  background: #ffffff;
}

nav ul li:hover i {
  display: block;
  width: 0.04rem;
  height: 0.2rem;
  background: #ea3221;
  border-radius: 0.04rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

nav ul li:hover .side {
  display: none;
}

nav ul li:hover .side-active {
  display: block;
}

nav ul li img {
  display: block;
  width: 0.24rem;
  height: 0.24rem;
  margin: 0 auto 0.09rem;
}

nav ul li .side-active {
  display: none;
}

nav ul li span {
  font-weight: 400;
  font-size: 0.14rem;
  color: #666666;
  display: block;
  text-align: center;
  max-width: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.1rem;
}

nav ul li.active {
  background: #ffffff;
  cursor: default;
}

nav ul li.active span {
  font-weight: bold;
  font-size: 0.14rem;
  color: #1e1e1e;
}

nav ul li.active .side-active {
  display: block;
}

nav ul li.active .side {
  display: none;
}

nav ul li.active i {
  display: block;
  width: 0.04rem;
  height: 0.2rem;
  background: #ea3221;
  border-radius: 0.04rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

nav::-webkit-scrollbar {
  width: 0.06rem;
}

nav::-webkit-scrollbar-track {
  background: transparent;
}

nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.04rem;
}

nav::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* ================= article ================= */

article {
  margin: 0.92rem 0.2rem 0.4rem 1.4rem;
  display: flex;
}

article .slider,
article .tns-outer {
  width: 12rem;
  height: 2.2rem;
  margin-right: 0.2rem;
  position: relative;
  text-align: center;
}

article .tns-ovh {
  border-radius: 0.12rem;
}

article .tns-nav {
  position: absolute;
  z-index: 9999;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 0.1rem;
}

article .tns-nav button {
  width: 0.16rem;
  height: 0.08rem;
  border-radius: 0.04rem;
  border: 0.01rem solid #ffffff;
  background: transparent;
  margin: 0 0.05rem;
}

article .tns-nav .tns-nav-active {
  border: none;
  width: 0.16rem;
  height: 0.08rem;
  background: #ffffff;
  border-radius: 0.04rem;
}

article .slider a {
  display: block;
  width: 100%;
  height: 100%;
}

article .tns-outer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

article .side-img a {
  display: block;
  width: 100%;
  height: 2.2rem;
}

article .side-img a.no-pointer {
  cursor: default;
}

article .img {
  width: 5.2rem;
  height: 2.2rem;
  object-fit: cover;
  border-radius: 0.12rem;
}

/* ================= section ================= */

section {
  margin: 0 0.2rem 0 1.4rem;
  flex: 1;
}

section .block {
  margin-bottom: 0.6rem;
}

section .title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  align-items: center;
}

section .title span {
  font-weight: bold;
  font-size: 0.2rem;
  color: #1e1e1e;
}

section .title a {
  font-weight: 400;
  font-size: 0.14rem;
  color: #666666;
  display: flex;
}
section .title a i {
  display: inline-block;
  width: 0.08rem;
  height: 0.08rem;
  border-top: 0.02rem solid #999;
  border-right: 0.02rem solid #999;
  transform: rotate(45deg);
  margin-top: 0.03rem;
  margin-left: 0.05rem;
}
section .title a:hover i {
  border-top: 0.02rem solid #DC251E;
  border-right: 0.02rem solid #DC251E;
}
section .list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

section .list ul li {
  flex: 1 1 3rem;
  max-width: 3.32rem;
  background: #ffffff;
  border-radius: 0.2rem;
  border: 0.01rem solid #eeeeee;
  position: relative;
  padding: 0.42rem 0.4rem;
  cursor: pointer;
}

section .list ul li:hover {
  box-shadow: 0px 3px 10px 1px rgba(0,0,0,0.1);
}

section .list ul li img {
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: 0.32rem;
}

section .list ul li h3 {
  font-weight: bold;
  font-size: 0.2rem;
  color: #1e1e1e;
  margin-bottom: 0.2rem;
  max-width: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 0.26rem;
}

section .list ul li i {
  font-style: normal;
  font-weight: 400;
  font-size: 0.16rem;
  color: #666666;
  margin-bottom: 0.46rem;
  line-height: 0.24rem;
  height: 0.48rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

section .list ul li a {
  display: block;
  width: 1.04rem;
  height: 0.4rem;
  line-height: 0.4rem;
  text-align: center;
  background: #f5f5f5;
  border-radius: 0.08rem;
  font-weight: bold;
  font-size: 0.16rem;
  color: #1e1e1e;
}

section .list ul li span {
  display: block;
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  height: 0.28rem;
  line-height: 0.28rem;
  text-align: center;
  border-radius: 0.08rem;
  min-width: 0.68rem;
  max-width: 2.5rem;
  padding: 0 0.16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section .list ul li .discount {
  font-weight: bold;
  font-size: 0.14rem;
  color: #1e1e1e;
  background: #fce100;
}

section .list ul li .hot {
  background: #dc251e;
  font-weight: bold;
  font-size: 0.14rem;
  color: #ffffff;
}