.courseList {
  min-height: 100vh;
  background-image: url('../../images/bg.png');
  background-size: 100% 346px;
  background-repeat: no-repeat;
  box-sizing: border-box;
  background-color: #fafafa;
}

.periodContent {
  display: flex;
  padding: 20px;

  .cover {
    position: relative;
    width: 107px;
    height: 130px;
    margin-right: 30px;
    border-radius: 2px;
    overflow: hidden;
    overflow: hidden;
    background: url('./image/bg.png') no-repeat;
    background-size: 100% 100%;
    flex-shrink: 0;

    & > img {
      display: block;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.3s;
      object-fit: cover;
    }

    :global {
      .van-image__loading {
        position: relative;
        height: 100%;
        animation: van-skeleton-blink var(--van-skeleton-duration) ease-in-out
          infinite;
      }
    }

    &::before {
      content: '';
      position: absolute;
      left: 5px;
      width: 5px;
      height: 100%;
      background: linear-gradient(
        270deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.03) 100%
      );
      box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.2);
      z-index: 1;
    }
  }

  .contentTitle {
    font-weight: 600;
    font-size: 16px;
    color: #131415;
    line-height: 22px;
    padding-bottom: 8px;
  }

  .contentLabel {
    font-weight: 400;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 20px;
  }
}

.periodTitle {
  display: flex;
  align-items: center;
  padding: 20px 20px 0;

  .pIcon {
    width: 20px;
    height: 20px;
    margin-top: -2px;
    margin-right: 6px;
  }

  .pTitle {
    font-size: 16px;
    font-weight: 600;
    color: #2d3131;
    margin-right: 8px;
  }

  .pNum {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1;
  }
}

.periodList {
  :global {
    .van-cell-group--inset {
      margin: 0;
    }

    .van-cell-group,
    .van-cell {
      background: transparent;
    }

    .van-cell {
      padding: 18px 20px;

      &::after {
        left: 20px;
        right: 20px;
        border-color: rgba(242, 242, 242, 1);
        transform: none;
      }

      .van-cell__title {
        padding-right: 8px;

        span {
          font-size: 15px;
          font-weight: 600;
          color: #333333;
          line-height: 21px;
          word-break: break-all;
        }

        .van-cell__label {
          font-size: 12px;
          font-weight: 400;
          color: #aaaaaa;
          line-height: 17px;
          margin: 0;
        }
      }

      .van-cell__value {
        flex: inherit;
        flex-shrink: 0;
        display: flex;
        align-items: center;
      }
    }
  }
}

.circleProgress {
  width: 24px;
  height: 24px;
  position: relative;
  .basePlay {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  :global {
    .van-circle {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 20px;
      height: 20px;
    }
  }
  .tips {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6.5px;
    height: 6.5px;
    background: #b3b3b3;
    border-radius: 1px;
  }
}
.periodItem {
  width: 36px;
  height: 40px;
  margin-right: 8px;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}

.courseDialog {
  width: 305px;
  box-sizing: border-box;
  :global {
    .van-dialog__header {
      // padding-top: 0;
    }
  }

  .iconCross {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    color: #ccc;
    z-index: 99;
  }
}

.periodItemModel {
  position: relative;

  .iconCachePoint {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    object-fit: contain;
    width: 13px;
    height: 13px;
  }

  .periodTip {
    position: absolute;
    left: -7px;
    top: 0;
    max-height: 15px;
    display: block;
    object-fit: contain;
  }

  .downloading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    font-size: 11px;
    color: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.btnGroup {
  padding: 20px 25px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #f2f2f2;
  background-color: #fff;
}

.courseDialog {
  padding: 20px 15px;

  // :global {
  //   .van-popup__close-icon {
  //     color: #333;
  //     top: 24px;
  //   }
  // }
  .iconClose {
    width: 19px;
    height: 19px;
    position: absolute;
    top: 23px;
    right: 20px;
    z-index: 9;
    background: url('./image/icon-close.png') no-repeat center;
    background-size: contain;
  }

  .title {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #131415;
    line-height: 25px;
    text-align: center;
  }

  .content {
    padding: 20px 5px 25px;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    line-height: 24px;
  }

  .popupBtnGroup {
    display: flex;
    align-items: center;

    & > button {
      height: 40px;
      flex: 1;
      font-weight: 400;
      font-size: 16px !important;

      &:last-child {
        margin-left: 15px;
      }
    }
  }
}
.btnLeft {
  color: #333;
  border-color: #dbdbdb;
}
.btnRight {
  background: #fe2451;
  border-color: #fe2451;
}
.finch {
  width: 150px;
  margin: 140px auto 0;
}

.finchLoad {
  text-align: center;
  color: #333;
  font-size: 15px;
  margin-top: 4px;
  margin-bottom: 120px;
}
.footers {
  padding: 0 25px 20px; // height: 45px;

  :global {
    .van-button {
      font-size: 18px;
      font-weight: 500;
      color: #ffffff;
      line-height: 25px;
      &.van-button--disabled {
        opacity: initial;
        background: linear-gradient(
          270deg,
          #ff7a93 0%,
          #ff9daa 100%
        ) !important;
      }
    }
  }
}
