.banner {
  width: 100%;
  position: relative;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 360px;
  transform: translate(0%, -50%);
}
.banner-title p {
  font-weight: 800;
  font-size: 40px;
  color: #ffffff;
  line-height: 48px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.banner img {
  display: block;
  vertical-align: bottom;
  margin-bottom: 0;
  padding-bottom: 0;
}
.container-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin: 20px auto;
}

.books-box {
  width: 900px;
  padding: 20px 20px;
  background: #fff;
  box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px 4px 4px 4px;
}
.books-taps {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0px 20px;
}
.books-tap {
  cursor: pointer;
}
.books-tap-active > .books-tap-title {
  background: rgba(37, 99, 235, 1);
  color: #fff;
  box-shadow: 8px 12px 20px 0px rgba(37, 99, 235, 0.3);
}
.books-tap-active > .inverted-triangle {
  border-bottom: 20.784px solid rgba(37, 99, 235, 1);
}
.books-tap:hover .books-tap-title {
  background: rgba(37, 99, 235, 1);
  color: #fff;
  box-shadow: 8px 12px 20px 0px rgba(37, 99, 235, 0.3);
}

.books-tap-title {
  width: 400px;
  height: 100px;
  background: rgba(116, 37, 235, 0.1);
  border-radius: 8px 8px 8px 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  color: rgba(116, 37, 235, 0.55);
  line-height: 24px;
  text-align: center;
  font-style: normal;
  text-transform: none;
}

.inverted-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20.784px solid #f1e9fd;
  transform: rotate(60deg);
  /* 20.784px = 12px * 1.732 (√3的近似值) */
  margin-top: -5px;
  margin-left: 191px;
}

.books-tap:hover .inverted-triangle {
  border-bottom: 20.784px solid rgba(37, 99, 235, 1);
}

.books-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 40px 20px;
  border-bottom: 1.5px solid #dddddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.books-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.books-item-img {
  width: 160px;
  height: 240px;
  border-radius: 0px 0px 0px 0px;
  overflow: hidden;
}

.books-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.books-item-info {
  margin-left: 20px;
}
.books-item-info-title {
  font-weight: 500;
  font-size: 24px;
  color: #000000;
  line-height: 24px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.books-item-info-text {
  font-weight: 400;
  font-size: 14px;
  color: #64748b;
  line-height: 20px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-top: 12px;
}
.books-item-info-tips {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.books-item-info-tip {
  padding: 5px 20px;
  background: #e7f3ff;
  border-radius: 4px 4px 4px 4px;
  font-weight: 400;
  font-size: 13px;
  color: #2563eb;
  line-height: 13px;
  text-align: center;
  font-style: normal;
  text-transform: none;
  margin-right: 12px;
  margin-bottom: 10px;
}
.books-item-info-time {
  margin-top: 90px;
  font-weight: 400;
  font-size: 14px;
  color: #64748b;
  line-height: 14px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.hotRanking {
  width: 280px;
  padding: 20px;
  background: #fff;
  box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.1);
  border-radius: 4px 4px 4px 4px;
}

.hotRanking-title {
  font-weight: 700;
  font-size: 20px;
  color: #3d3d3d;
  line-height: 24px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  padding-bottom: 20px;
}

.hotRankingItem {
  width: 239px;
  height: 49px;
  background: #ffffff;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #dddddd;
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;

  font-weight: 400;
  font-size: 14px;
  color: #333333;
  line-height: 18px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
}

.hotRankingItem:hover {
  background: #e7f3ff;
  border-radius: 4px 4px 4px 4px;
  color: #2563eb;
}

@media (max-width: 1439px) and (min-width: 768px) {
  .container-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px auto;
  }
  .books-box {
    width: 100%;
    padding: 20px 20px;
    background: #fff;
    box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.1);
    border-radius: 4px 4px 4px 4px;
  }
  .books-tap {
    cursor: pointer;
    width: 45%;
  }
  .books-tap-title {
    width: 100%;
    height: 100px;
    background: rgba(116, 37, 235, 0.1);
    border-radius: 8px 8px 8px 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: rgba(116, 37, 235, 0.55);
    line-height: 24px;
    text-align: center;
    font-style: normal;
    text-transform: none;
  }
  .inverted-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20.784px solid #f1e9fd;
    transform: rotate(60deg);
    margin-top: -5px;
    margin-left: 47%;
  }
}
@media (max-width: 767px) {
  .container-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px auto;
  }
  .books-box {
    width: 100%;
    padding: 20px 20px;
    background: #fff;
    box-shadow: 2px 4px 8px 0px rgba(0, 0, 0, 0.1);
    border-radius: 4px 4px 4px 4px;
  }
  .books-tap {
    cursor: pointer;
    width: 45%;
  }
  .books-tap-title {
    width: 100%;
    height: 45px;
    background: rgba(116, 37, 235, 0.1);
    border-radius: 8px 8px 8px 8px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    color: rgba(116, 37, 235, 0.55);
    line-height: 15px;
    text-align: center;
    font-style: normal;
    text-transform: none;
  }
  .inverted-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20.784px solid #f1e9fd;
    transform: rotate(60deg);
    margin-top: -5px;
    margin-left: 47%;
  }
  .books-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0px;
    border-bottom: 1.5px solid #dddddd;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
  }
  .books-item-info-time {
    margin-top: 0px;
    font-weight: 400;
    font-size: 14px;
    color: #64748b;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
  .books-item-info {
    margin-left: 0px;
    margin-top: 20px;
  }
  .books-taps {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 0px;
  }
}
