* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 彻底取消高亮 */
}

.box {
  /* width: 90%; */
  margin: 80px 20% 0px;
}
.main-content {
  margin-bottom: 15px;
}
.box ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10px, 1fr));
}

.box ul li {
  font-size: 14px;
  font-weight: 500;
  aspect-ratio: 3/1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3f3f3;
  border-radius: 30px;
  margin: 10px 10px;
  padding: 5px 10px;
  cursor: pointer;
}

.box ul li:hover {
  background-image: linear-gradient(90deg, #49d391, #34d0aa);
  color: #fff;
}

.box .content {
  margin-top: 15px;
  cursor: pointer;
}

.box .content:first-of-type {
  margin-top: 5px;
}
.box .sort {
  margin: 15px 0 10px;
  padding-left: 10px;
  font-size: 14px;
  font-weight: 500;
  border-left: 5px solid #49d391;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.grid .item {
  aspect-ratio: 4/5;
  /* background-color: orange; */
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  /* border: 2px solid #e2e8f0; */
  box-shadow: 0 0px 8px #e2e8f0;
  transition: 0.1s;
  font-size: 30px;
  font-weight: bold;
  position: relative;
}

.grid .active {
  outline: 1px solid #49d391;
  background-color: #49d39022;
  /* box-shadow: 0 0px 2px rgba(0, 0, 0, 0.5); */
}

.grid .item span {
  margin-top: 5px;
  font-size: 25px;
  font-weight: normal;
  color: #475569;
}

.grid .item .playing::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 4px;
  background: #49d391;
  border-radius: 2px;
  box-shadow: -8px 0 0 #49d391, -16px 0 0 #49d391;
  animation: soundBars 1.2s ease-in-out infinite;
}

@keyframes soundBars {
  0%,
  100% {
    height: 4px;
    transform: translateY(8px);
  }
  25% {
    height: 16px;
    transform: translateY(0);
  }
  50% {
    height: 10px;
    transform: translateY(4px);
  }
  75% {
    height: 20px;
    transform: translateY(-4px);
  }
}

.grid .item .like::before {
  content: var(--like-text, '');
  position: absolute;
  font-size: 15px;
  color: #475569;
  top: 15px;
  left: 15px;
}
