.herbPage,
.processingPage {
  background: #f7f7f7;
}

.herbGrid {
  display: grid;
  grid-template-columns: repeat(5, 2.52rem);
  gap:  0.35rem;
  padding: 0.42rem 0 0.48rem;
}

.herbGrid .item {
  display: block;
  overflow: hidden;
  color: #1a1a1a;
  background: #F5F0EA;
  text-decoration: none;
}

.herbGrid .imgBox {
  display: block;
  width: 2.52rem;
  height: 1.41rem;
  overflow: hidden;
}

.herbGrid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.herbGrid .name {
  display: block;
  overflow: hidden;
  height: 0.48rem;
  padding: 0 0.18rem;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.16rem;
  font-weight: 400;
  line-height: 0.48rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
  border: 1px solid #E6E1DC;
}

.herbGrid .item:hover img {
  transform: scale(1.08);
}

.herbGrid .item:hover .name {
  color: #fff;
  background: #da261d;
  border-color: #da261d;
}

.processingLayout {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.3rem;
  align-items: start;
  padding: 0.4rem 0 0.5rem;
}

.processingNav {
  padding: 0.24rem 0.2rem;
  background: #fff;
}

.processingNav h1 {
  margin-bottom: 0.2rem;
  color: #da261d;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.24rem;
  font-weight: 700;
  line-height: 0.34rem;
}

.processingNav a {
  display: block;
  height: 0.5rem;
  padding: 0 0.16rem;
  color: #333;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.16rem;
  font-weight: 400;
  line-height: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.processingNav a:hover,
.processingNav a.active {
  color: #da261d;
  background: #fdebea;
}

.processingList {
  display: grid;
  gap: 0.1rem;
}

.processingList .item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 0.3rem;
  gap: 0.2rem;
  align-items: center;
  min-height: 1.77rem;
  padding: 0.16rem 0.22rem 0.16rem 0.16rem;
  color: #333;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.processingList .imgBox {
  display: block;
  width: 2.6rem;
  height: 1.45rem;
  overflow: hidden;
}

.processingList img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.processingList .text {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  min-width: 0;
  padding: 0.04rem 0;
}

.processingList b {
  overflow: hidden;
  color: #1a1a1a;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.18rem;
  font-weight: 700;
  line-height: 0.28rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.processingList i {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.1rem;
  color: #666;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 0.14rem;
  font-style: normal;
  font-weight: 400;
  line-height: 0.22rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.processingList time {
  display: block;
  margin-top: auto;
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 0.12rem;
  font-weight: 400;
  line-height: 0.18rem;
}

.processingList .more {
  position: relative;
  display: block;
  width: 0.3rem;
  height: 0.3rem;
  border: 0.01rem solid #d0d0d0;
  border-radius: 50%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.processingList .more::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.07rem;
  height: 0.07rem;
  border-top: 0.01rem solid #999;
  border-right: 0.01rem solid #999;
  content: "";
  transform: translate(-65%, -50%) rotate(45deg);
  transition: border-color 0.3s ease;
}

.processingList .item:hover {
  box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.08);
  transform: translateY(-0.03rem);
}

.processingList .item:hover img {
  transform: scale(1.08);
}

.processingList .item:hover b {
  color: #da261d;
}

.processingList .item:hover .more {
  border-color: #da261d;
  background: #da261d;
}

.processingList .item:hover .more::after {
  border-color: #fff;
}

@media (max-width: 900px) {
  .herbPage,
  .processingPage {
    padding-top: 1.5rem;
  }

  .herbGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem;
    padding-top: 0.25rem;
  }

  .herbGrid .imgBox {
    width: 100%;
    height: auto;
    aspect-ratio: 252 / 141;
  }

  .processingLayout {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-top: 0.25rem;
  }

  .processingNav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.08rem;
    padding: 0.16rem;
  }

  .processingNav h1 {
    grid-column: 1 / -1;
    margin-bottom: 0.04rem;
  }

  .processingNav a {
    height: 0.42rem;
    padding: 0 0.08rem;
    line-height: 0.42rem;
    text-align: center;
  }

  .processingList .item {
    grid-template-columns: 1.5rem minmax(0, 1fr) 0.24rem;
    gap: 0.12rem;
    min-height: 1.15rem;
    padding: 0.1rem;
  }

  .processingList .imgBox {
    width: 1.5rem;
    height: 0.95rem;
  }

  .processingList b {
    font-size: 0.16rem;
    line-height: 0.24rem;
  }

  .processingList i {
    margin-top: 0.04rem;
    font-size: 0.12rem;
    line-height: 0.18rem;
  }

  .processingList .more {
    width: 0.24rem;
    height: 0.24rem;
  }
}

@media (max-width: 900px) {
  .herbPage,
  .processingPage {
    padding-top: 0;
  }

  .herbGrid {
    gap: 0.18rem;
    padding: 0.28rem 0 0.42rem;
  }

  .herbGrid .name {
    height: 0.52rem;
    padding: 0 0.16rem;
    font-size: 0.22rem;
    line-height: 0.52rem;
  }

  .processingLayout {
    padding: 0.28rem 0 0.46rem;
  }

  .processingNav {
    gap: 0.1rem;
    padding: 0.18rem;
  }

  .processingNav h1 {
    font-size: 0.28rem;
    line-height: 0.38rem;
  }

  .processingNav a {
    height: 0.52rem;
    overflow: hidden;
    font-size: 0.22rem;
    line-height: 0.52rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .processingList {
    gap: 0.18rem;
  }

  .processingList .item {
    grid-template-columns: 2.1rem minmax(0, 1fr) 0.34rem;
    gap: 0.16rem;
    min-height: 1.55rem;
    padding: 0.14rem;
  }

  .processingList .imgBox {
    width: 2.1rem;
    height: 1.27rem;
  }

  .processingList b {
    font-size: 0.22rem;
    line-height: 0.32rem;
  }

  .processingList i {
    margin-top: 0.08rem;
    font-size: 0.18rem;
    line-height: 0.28rem;
  }

  .processingList time {
    font-size: 0.18rem;
    line-height: 0.24rem;
  }

  .processingList .more {
    width: 0.3rem;
    height: 0.3rem;
  }
}
