$namespace: "book-limit-free";

@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) {
  .limit-tip {
    width: 70%;
    margin: 0.3rem auto;
    text-align: center;
    border: 1px solid #ef5a52;
    border-radius: 0.4rem;
    font-size: $--font-size-small;
    color: #ef5a52;
    background: rgba(239, 90, 82, 0.1);
    line-height: 1;
    padding: 0.15rem 0;
  }

  .book-list-wrap {
    padding: 0 0.24rem;

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

    .empty-text {
      text-align: center;
      margin-top: 5px;
      font-size: 0.28rem;
      color: #999;
    }

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

      .status {
        position: absolute;
        top: 0;
        right: 0;
        font-size: $--font-size-tiny;
        text-align: center;
        color: #ffe5c0;
        background: #2f3548;
        border-radius: 0.05rem;
        width: 0.6rem;
        height: 0.34rem;
      }
    }

    .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;
      }
    }
  }
}
