.book {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  z-index: 100;
  padding-top: 10vh;

  .back {
    position: absolute;
    left: 41px;
    top: 24px;
  }

  &.bookHide {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }

  :global {
    .bookWrap {
      margin: 0 auto;
    }

    .animated {
      transition: margin-left 0.2s ease-in-out;
    }

    .page {
      background: white;
    }

    .shadow {
      box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
    }

    .page-wrapper {
      perspective: 2000px;
    }
  }
}

.wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-color: #ffd8a1;
  width: calc(100% + 1px);

  &::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
    background-color: #fff;
    z-index: 1;
  }

  .wrapItem {
    position: relative;
    padding: 20px 20px;
    height: 100%;
    overflow: hidden;
    z-index: 2;
  }

  .item {
    display: flex;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 20px;
    margin: 20px 0;
    word-break: break-all;
  }
  .name {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }
  .des {
    line-height: 16px;
    font-size: 12px;
    font-weight: 400;
  }

  .icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .last {
    font-size: 12px;
    color: #ff5a56;
    margin-left: 6px;
    font-weight: 400;
  }
}

:global(.even) {
  .wrap {
    left: -1px;
    &::before {
      right: 0;
      border-radius: 4px 0 0 4px;
    }

    &::after {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      bottom: 0;
      width: 24px;
      background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 20%,
        rgba(229, 199, 156, 0.4) 100%
      );
      z-index: 3;
    }
  }
}

:global(.odd) {
  .wrap {
    left: -1px;
    &::before {
      left: 0;
      border-radius: 0 4px 4px 0;
    }

    &::after {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 24px;
      background: linear-gradient(
        to right,
        rgba(255, 225, 183, 0.35) 8%,
        rgba(255, 255, 255, 0) 100%
      );
      z-index: 2;
    }
  }

  .wrapItem {
    padding-left: 20px;
  }
}
.preIcon {
  width: 22px;
  height: 13px;
  margin-right: 5px;
}

.nameText {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
