.knowledgeLibrary {
  min-height: 100vh;
  background: url('./images/bg.png') no-repeat top center;
  background-size: contain;
  position: relative;

  .wroingBtn {
    display: flex;
    align-items: center;
    height: 24px;
    background: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    color: #0e71bc;
    padding: 0 8px;

    .iconWroing {
      width: 14px;
      height: 14px;
      background: url('./images/icon-wroing-question.png') no-repeat center;
      background-size: contain;
      display: inline-block;
    }
  }

  .iconExamQuestion {
    position: fixed;
    right: 0;
    bottom: 20vh;
    z-index: 99;
    width: 66px;
    height: 66px;
  }
}

.btnGroup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 20px;

  .btnPractice,
  .btnTest {
    display: inline-block;
    width: 139px;
    height: 49px;
    border: none;

    &:hover {
      opacity: 0.8;
    }
  }

  .btnPractice {
    background: url('./images/btn-practice.png') no-repeat center;
    background-size: contain;
  }

  .btnTest {
    margin-left: 17px;
    background: url('./images/btn-test.png') no-repeat center;
    background-size: contain;
  }
}

.containerSection {
  background: #87d1f0;
  border-radius: 20px 20px 0px 0px;
  padding: 15px;
  overflow: hidden;

  &.librarySection {
    min-height: calc(100vh - var(--header-height) - 129px);
  }

  &.woringSection {
    min-height: calc(100vh - var(--header-height) - 60px);
    margin-top: 60px;

    .woringContent {
      min-height: calc(100vh - var(--header-height) - 90px);
      border-radius: 20px;
      overflow: hidden;
      background-color: #fff;
      padding: 15px;

      img {
        width: 100% !important;
      }
    }
  }

  :global {
    .van-collapse {
      border-radius: 20px;
      overflow: hidden;
      background-color: #fff;
    }

    .van-collapse-item {
      border-radius: 20px !important;
      overflow: hidden;
    }

    .van-cell {
      padding: 16px 15px;
    }

    .van-collapse-item__content {
      padding: 0 15px 12px;
      border-radius: 20px;
    }

    .van-cell__title {
      display: flex;
      align-items: center;
      font-size: 17px;
      font-weight: 600;
      color: #333333;

      &::before {
        content: ' ';
        display: inline-block;
        width: 4px;
        height: 14px;
        border-radius: 2px;
        margin-right: 6px;
        background: linear-gradient(to bottom, #259cfe, #3fc2ff);
      }

      span {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .unitItem {
    position: relative;
    overflow: hidden;
    max-height: 154px;
    border-radius: 20px;

    &+.unitItem {
      margin-top: 12px;
    }

    .name {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      font-size: 16px;
      font-weight: bold;
      color: #781714;
      line-height: 19px;
      display: flex;
      align-items: center;
      justify-content: center;

      span {
        max-width: 70%;
        text-align: center;
      }
    }
  }

  .unitImg {
    width: 100%;
    max-height: 154px;
  }
}
