.books_top {
  margin-bottom: 45px;
}

.books_top .books {
  margin-top: 0;
}

.inx-tit {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

.books {
  padding-top: 30px;
  padding-bottom: 35px;
  border: 1px solid #eee;
  margin-top: 65px;
}

.books_container {
  width: 94%;
  margin: 0 auto;
}

.books_title {
  margin-bottom: 32px;
}

.books_change {
  float: left;
}

.books_change a {
  float: left;
  padding-bottom: 5px;
  margin-right: 14px;
  font-size: 16px;
}

.books_change a:hover {
  text-decoration: none;
}

.books_change a.on {
  color: #e30003;
  border-bottom: 3px solid #e30003;
}

.books_more {
  float: right;
  color: #bcbcbc;
  font-size: 12px;
}

.books_list {
  float: left;
  width: 23.5%;
  height: 242px;
  margin-right: 2%;
  transition: box-shadow .5s ease;
}

.books_list:last-child, .books_list.active {
  margin-right: 0;
}

.books_list:hover {
  box-shadow: 0 0 25px rgba(137, 137, 137, 0.2);
  border-color: transparent;
}

.books_list:hover .buy {
  background-color: #e40009;
  border-color: #e40009;
  color: #fff;
}

.books_list:hover .books_name {
  color: #e52d16;
}

.books_list img {
  display: block;
  width: 90px;
  height: 110px;
  margin: 20px auto;
}

.books_name {
  height: 40px;
  margin: 0 20px 5px 20px;
  color: #5d5d5d;
  font-size: 14px;
  line-height: 22px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  float: left;
  margin-left: 20px;
  font-size: 14px;
  color: #e52d16;
}

.buy {
  float: right;
  width: 60px;
  height: 23px;
  border: 1px solid #dbdbdb;
  margin-top: 6px;
  margin-right: 20px;
  background-color: #f7f7f7;
  line-height: 23px;
  text-align: center;
  font-size: 12px;
  border-radius: 4px;
  transition: background-color .5s ease;
}

.rec_shadow {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .7);
  z-index: 10;
}

.rec_wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#rec_close {
  position: absolute;
  top: -28px;
  right: -20px;
  cursor: pointer;
  transition: transform .5s ease;
}

#rec_close:hover {
  transform: rotate(180deg);
}

@media screen and (max-width: 1250px) {
  .inx-tit {
    margin-bottom: 15px;
  }

  .books_title {
    margin-bottom: 15px;
  }

  .books_change a.on {
    border-bottom: 2px solid #e30003;
  }

  .books_change a {
    margin-right: 8px;
  }
}

@media screen and (max-width: 1080px) {
  .books {
    width: 96%;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .inx-tit {
    padding: 0 0 .8rem;
  }

  .inx-tit h3 {
    font-size: 1rem;
  }

  .books_title {
    margin-bottom: .5rem;
  }

  .books_change {
    float: none;
    display: inline;
  }

  .books_change a {
    float: none;
    display: inline-block;
    padding-bottom: .25rem;
    margin-right: .1rem;
    margin-bottom: .5rem;
    font-size: .72rem;
  }

  .books_change a.on {
    border-bottom: 0.075rem solid #d84844;
  }

  .books_more {
    float: none;
    display: inline-block;
    margin-left: .5rem;
    font-size: .7rem;
  }

  .books_list {
    width: calc(48% - 0.05rem);
    height: auto;
    border: 0.025rem solid #dbdbdb;
    padding-bottom: 1rem;
    margin-right: 2%;
    margin-bottom: .5rem;
  }

  .books_list:nth-child(even) {
    margin-right: 0;
  }

  .books_list img {
    width: 7rem;
    height: auto;
    margin: .5rem auto;
  }

  .books_name {
    height: 1.8rem;
    margin: 0 .7rem .5rem .7rem;
    font-size: .7rem;
    line-height: .92rem;
  }

  .price {
    margin-top: .1rem;
    margin-left: .7rem;
    font-size: .85rem;
  }

  .buy {
    width: 2.8rem;
    height: 1.2rem;
    margin-right: .7rem;
    line-height: 1.2rem;
    font-size: .7rem;
  }
}
