.container {
  position: relative;
  // width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: url('../../common/images/icon_bg.png') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
  padding: 61px 18px 18px 37px;
}

.back {
  position: fixed;
  left: 15px;
  top: 17px;
  width: 31px;
  height: 31px;

  &>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &:active {
    opacity: 0.8;
  }
}

.centerSearch {
  position: absolute;
  top: 15px;
  right: 18px;

  // padding: 6px 9px;
  width: 300px;

  :global {
    .van-search {
      width: 100%;
      z-index: 1;
      padding: 0px 0px;
    }

    .van-field__control::-webkit-input-placeholder {
      font-size: 12px;
    }
  }
}

.section {
  display: flex;
  // padding: 0 18px 0 27px;
  height: calc(100vh - 79px);

  .directorySection {
    width: 111px;
    // background: #B5E1FF;
    background: url('./image/d-top.png') no-repeat top center;
    background-size: contain;
    border-radius: 18px;
    margin-right: 15px;

    .directionc {
      overflow-y: auto;
      overflow-x: hidden;
      margin-top: 23px;
      padding: 12px 7px 12px;
      background: #b5e1ff;
      border-radius: 0 0 18px 18px;
      height: calc(100% - 24px);

      &::-webkit-scrollbar {
        width: 0;
        display: none;
      }
    }

    .dirItem {
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      color: #131415;
      padding: 0 7px;
      height: 33px;
      line-height: 33px;
      text-align: center;
      white-space: nowrap;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 5px;

      &.active {
        background-color: #fff;
        background: #fef8ef;
        border-radius: 6px;
        color: #0ca2ea;
      }
    }
  }
}

.content {
  overflow-y: auto;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  position: relative;
  // display: flex;
  flex: 1;
  // background-color: #FFFFFF;
  border-radius: 18px;
  padding: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  // border-image: linear-gradient(134deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9)) 2 2;

  .wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-top: 18px;
    transition: all 0.3s ease;
    // gap: 0 32px;
    // padding-left: 16px;
    // height: 100%;
    // padding: 20px 63px 0;

    &.emtpyWrap {
      width: 100%;
      height: 100%;
      padding-top: 0;
    }



    :global {
      .van-empty__description {
        color: #777;
      }
    }
  }

  .loadingWrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 99;
  }

  :global {
    .van-empty {
      padding-bottom: 0 !important;
    }

    .van-empty__description {
      font-size: 14px;
      color: #fff;
    }

    .van-empty__image {
      width: 200px;
      height: 200px;
    }
  }
}

.wrapfirstI {
  width: 25%;
  height: calc(100% * 161 / 128);
}



.wrapItem {
  position: relative;
  // width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 1;
  margin-bottom: 18px;
  // height: calc(100% * 0.5);

  .item {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    // height: 144px;
    background-color: #edeff2;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);

    img {
      width: 100%;
      aspect-ratio: 53 / 75;
    }


    &::before {
      content: '';
      position: absolute;
      top: 4px;
      right: -4px;
      width: 4px;
      height: calc(100% - 8px);
      background-color: #c5c5c5;
      z-index: 1;
    }

    &::after {
      content: '';
      position: absolute;
      top: 2px;
      right: -2px;
      width: 4px;
      height: calc(100% - 4px);
      background-color: #e7e7e7;
      z-index: 2;
    }


  }

  .name {
    font-size: 13px;
    font-weight: 400;
    color: #131415;
    line-height: 16px;
    text-align: left;
  }

  .favoriteBtn {
    position: absolute;
    top: 113px;
    right: 20px;
    z-index: 3;
  }
}

.containerImg {
  position: relative;
  display: block;
  width: 100%;
  height: 170px;

  &::before {
    content: '';
    position: absolute;
    top: 4px;
    right: -4px;
    width: 4px;
    height: calc(100% - 8px);
    background-color: #c5c5c5;
    z-index: 1;
  }

  &::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -2px;
    width: 4px;
    height: calc(100% - 4px);
    background-color: #e7e7e7;
    z-index: 2;
  }
}

.cover {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  line-height: 0;
  // height: calc(100% * 161 / 128 - 20px);
  background-color: #edeff2;
  background-image: url('../courseware-list/image/icon_default.svg');
  background-repeat: no-repeat;
  background-position: center center;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-repeat: no-repeat;
    background-image: linear-gradient(to right,
        rgba(0, 0, 0, 0.2) 0,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 0.5%),
      linear-gradient(to right,
        rgba(0, 0, 0, 0.1) 0.3%,
        rgba(255, 255, 255, 0.09) 1.1%,
        transparent 1.3%);
    background-size: 50% 100%, 50% 100%;
    background-position: 0% top, 9% top;
  }

  :global {
    img {
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }
  }

  &.loaded {
    img {
      opacity: 1;
    }
  }
}

// 平板
.containerTablet {
  padding: 81px 18px 18px 37px;

  .back {
    top: 25px;
  }

  .centerSearch {
    width: 92%;
    top: 25px;
  }

  .directorySection {
    width: 181px;

    .directionc {
      margin-top: 36px;
      height: calc(100% - 36px);
    }

    .dirItem {
      height: 46px;
      line-height: 46px;
      font-size: 17px;
    }
  }

  .wrap {
    padding: 0 10px;
    padding-top: 18px;
  }

  .wrapfirstI {


    .wrapItem {
      padding: 0 30px
    }
  }
}