/* below 1440px */
@media (max-width: 90em) {
  .new-title {
    margin-left: 0;
  }
  .ebook-title-pic {
    left: 20%;
  }
  .ebook-title {
    text-align: center;
    margin-left: 25%;
  }
  .usedbook-title-pic {
    left: 5%;
  }
  .goods-title-pic {
    left: 10%;
  }
  .goods-title {
    margin-left: 25%;
  }
  .wecollect-title-pic {
    left: 0;
  }
  .wecollect-title {
    margin-left: 35%;
  }
}

/* below 1200px */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .promotion-pic {
    top: -10rem;
  }
  .new-title-pic {
    display: none;
  }
  .new-title-pic-md {
    display: block;
    position: absolute;
    top: -11rem;
    right: 0;
    z-index: -1;
  }
  .new-title-pic-img-md {
    width: 70rem;
  }
  .usedbook-title-pic {
    left: 0;
  }
  /* .magazine-title-pic {
    display: none;
  }
  .magazine-title-pic-md {
    display: block;
    position: absolute;
    top: -11rem;
    left: 0;
    z-index: -1;
  }
  .magazine-title-pic-img-md {
    width: 58rem;
  } */
  .side-bar {
    width: 6rem;
    bottom: 9rem;
  }
  .sb-01 {
    width: 5.5rem;
    height: 6rem;
  }
  .sb-02 {
    width: 5.5rem;
    height: 7rem;
  }
  .sb-03 {
    width: 5.5rem;
    height: 7rem;
  }
  .sb-04 {
    width: 5.5rem;
    height: 5.9rem;
  }
  .sb-05 {
    width: 5.5rem;
    height: 10.3rem;
  }
  .sb-06 {
    width: 5.5rem;
    height: 7rem;
  }
  .sb-07 {
    width: 5.5rem;
    height: 8.2rem;
  }
}

/* below 1040px */
@media (max-width: 65em) {
  .hero-intro {
    margin-right: 6.4rem;
  }
  .book-grid {
    max-width: 70rem;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6.4rem;
    margin: 0 auto;
  }
  .bn-grid-2 {
    max-width: 80rem;
    grid-template-columns: 1fr;
    row-gap: 6.4rem;
    margin: 0 auto;
    margin-top: 8rem;
  }
  .bn-grid-4 {
    max-width: 80rem;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6.4rem;
    margin: 0 auto;
    margin-top: 8rem;
  }
  .bn-grid-21 {
    max-width: 80rem;
    grid-template-columns: 1fr;
    margin: 0 auto;
    margin-top: 8rem;
  }
  .bn-square {
    max-width: 25rem;
    justify-self: center;
  }
  .bn-square-pic-none {
    display: none;
  }
}

/* below 944px */
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
  .side-bar {
    width: 7rem;
    bottom: 12rem;
  }
  .sb-01 {
    width: 6.2rem;
    height: 6.4rem;
  }
  .sb-02 {
    width: 6.2rem;
    height: 7.6rem;
  }
  .sb-03 {
    width: 6.2rem;
    height: 7.6rem;
  }
  .sb-04 {
    width: 6.2rem;
    height: 6.5rem;
  }
  .sb-05 {
    width: 6.2rem;
    height: 11.4rem;
  }
  .sb-06 {
    width: 6.2rem;
    height: 7.6rem;
  }
  .sb-07 {
    width: 6.2rem;
    height: 8.8rem;
  }
}

/* below 848px */
@media (max-width: 53em) {
  .section-hero {
    background-position: right top;
  }
  .hero-flex-end {
    display: flex;
    justify-content: center;
  }
  .hero-intro {
    margin-right: 0;
  }
}

/* below 752px */
@media (max-width: 47em) {
  .side-bar {
    display: none;
  }
  .w3-button,
  .w3-xxlarge {
    display: block;
  }
  .hero-intro {
    margin-right: auto;
  }
  .hero-intro-pic {
    left: -5rem;
  }
  .hero-intro-pic-img {
    width: 20rem;
  }
  .promotion-pic {
    display: none;
  }
  .new-title {
    margin-top: 3.2rem;
  }
  .ebook-title {
    display: none;
  }
  .ebook-title-md {
    display: block;
    text-align: right;
    margin-left: auto;
  }
  .ebook-title-img-md {
    width: 55rem;
  }
  .ebook-title-pic {
    left: 5%;
  }
  .magazine-title-pic {
    right: 0;
  }
  .magazine-title {
    text-align: center;
    margin-top: 3.6rem;
  }
  .goods-title-pic {
    left: 0;
  }
  .goods-title {
    display: none;
  }
  .goods-title-md {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-top: 3.2rem;
  }
  .goods-title-img-md {
    width: 57rem;
  }
  .wecollect-title {
    display: none;
    text-align: center;
    margin-left: 30rem;
  }
  .wecollect-title-md {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-top: 10rem;
  }
  .wecollect-title-img-md {
    width: 55rem;
  }
  .activity {
    margin: 0 3.2rem;
    margin-top: 12rem;
  }
}

/* below 560px */
@media (max-width: 35em) {
  .hero-title-pic-img {
    width: 30rem;
  }
  .hero-intro {
    margin-bottom: 6.4rem;
  }
  .hero-intro-pic {
    left: -2rem;
    top: -15rem;
  }
  .hero-intro-pic-img {
    width: 18rem;
  }
  .promotion-box {
    width: 100%;
    margin-bottom: 3.2rem;
  }
  .promotion-date-img {
    width: 36rem;
  }
  .promotion-date-vip {
    display: none;
  }
  .promotion-date-vip-sm {
    display: block;
  }
  .promotion-date-vip-img {
    width: 36rem;
    margin-bottom: 1rem;
  }
  .promotion-lottery-grid {
    grid-template-columns: 1fr;
    row-gap: 1.4rem;
  }
  .promotion-lottery-pic {
    width: 23rem;
  }
}

/* below 544px */
@media (max-width: 34em) {
  .main-container {
    padding: 0 2.4rem;
  }
  .hero-title-pic {
    display: none;
  }
  .hero-intro {
    padding: 2rem;
    transform: rotate(0deg);
    margin-bottom: 4.6rem;
  }
  .promotion-box {
    padding: 3.2rem;
    transform: rotate(0deg);
  }
  .new-title {
    text-align: center;
    margin-top: 2.4rem;
  }
  .new-title-pic-img-md,
  .usedbook-title-pic-img,
  .magazine-title-pic-img,
  .goods-title-pic-img,
  .wecollect-title-pic-img {
    width: 100%;
  }
  .usedbook-title {
    text-align: center;
    margin-left: auto;
    margin-top: 4.6rem;
  }
  .new-title-img,
  .ebook-title-img-md,
  .usedbook-title-img,
  .magazine-title-img,
  .goods-title-img-md,
  .wecollect-title-img-md {
    width: 100%;
  }
  .magazine-title {
    margin-right: auto;
    margin-top: 6.4rem;
  }
  .goods-title-md {
    margin-top: 2rem;
  }
  .title-bottom {
    margin-bottom: 3.2rem;
  }
  .book-grid,
  .bn-grid-2,
  .bn-grid-4 {
    gap: 2.4rem;
    row-gap: 3.2rem;
  }
  .bn-grid-2,
  .bn-grid-4,
  .bn-grid-21 {
    margin-top: 4.6rem;
  }
  .book-box {
    width: 100%;
    padding: 1rem 0;
  }
  .book-img {
    height: 24rem;
  }
  .good-img {
    height: 20rem;
  }
  .activity {
    padding-top: 4.6rem;
    margin-top: 8rem;
  }
  .activity-header {
    margin-bottom: 3.2rem;
  }
  .activity-item-context {
    margin-left: 2.4rem;
  }
}
