$namespace: "book-rank";

@include b(header) {
  width: 40%;
  line-height: 1rem;
  @include flex();

  .header-item {
    font-size: $--font-size-medium;
    position: relative;
    color: $--font-color-light;

    @include when(active) {
      color: $--color-theme-boy;
      font-size: $--font-size-biger;
      font-weight: bold;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0);
        width: 50%;
        height: 0.05rem;
        background: $--color-theme-boy;
        border-radius: 0.2rem;
      }
    }
  }
}

@include b(body) {
  .book-list-wrap {
    padding: 0.24rem;

    .empty {
      width: 100%;
      margin-top: 0.4rem;
    }

    .book-item-wrap {
      @include flex();

      .number-top {
        width: 0.4rem;
        margin-right: 0.14rem;
      }

      .number {
        width: 0.4rem;
        height: 0.4rem;
        line-height: 0.4rem;
        text-align: center;
        border-radius: 50%;
        border: 1px solid #e6e6e6;
        background: #f7f7f7;
        color: #999;
        font-size: 0.22rem;
        margin-right: 0.14rem;
      }

      &:not(:last-child) {
        margin-bottom: 0.3rem;
      }
    }

    .book-item {
      flex: 1;
    }

    .book-info {
      .name {
        font-size: $--font-size-biger;
        color: $--font-color-dark;
        margin-bottom: 0.36rem;
      }

      .intro {
        @include multi-line(3);
        font-size: $--font-size-small;
        color: $--font-color-medium;
      }
    }
  }
}
