.trainWeek {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #225fff 0%, #0e2cdf 94%, #0d29dc 100%);
  overflow: hidden;

  .trainContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: url('./images/week/banner-week.png') no-repeat top center;
    background-size: contain;
    height: 342px;
  }

  .iconShare {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url('./images/icon-share.png') no-repeat center;
    background-size: contain;
  }

  &.trainMonth {
    background: linear-gradient(180deg, #c7c7ff 0%, #9c9bff 100%);

    .trainContainer {
      background: url('./images/month/banner-month.png') no-repeat top center;
      background-size: contain;
      height: 342px;
    }
  }

  &.trasinMonthShare {
    .trainContainer {
      background: url('./images/month/share-month-banner.png') no-repeat top center;
      background-size: contain;
      height: 342px;
    }
  }

  &.trasinWeekShare {
    .trainContainer {
      background: url('./images/week/share-week-banner.png') no-repeat top center;
      background-size: contain;
      height: 342px;
    }
  }
}

.headerContant {
  padding-top: 16px;
  padding-left: 17px;
  margin-bottom: 50px;

  &.teacherHeaderContant {
    .orchestra {
      color: #3e0ed7;
    }

    .trainTimer {
      color: #3a17fd;

      &::before,
      &::after {
        background: url('./images/month/teacher-icon-point.png') no-repeat center;
        background-size: contain;
      }
    }
  }

  .orchestra {
    padding: 3px 7px;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    font-size: 12px;
    color: #ffffff;

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

  .iconOrchestra {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .iconTrainWeek {
    height: 38px;
    width: 156px;
    padding: 18px 0 8px;
  }

  .trainTimer {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ffffff;
    line-height: 18px;
    position: relative;

    &::before,
    &::after {
      display: inline-block;
      margin-left: 4px;
      margin-right: 4px;
      content: ' ';
      width: 6px;
      height: 6px;
      background: url('./images/week/icon-point.png') no-repeat center;
      background-size: contain;
    }
  }
}

.trainPhoto {
  height: 58px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: url('./images/week/train-bg.png') no-repeat center;
  background-size: contain;
  padding: 0 15px;
  margin: 0 13px 10px;
  display: flex;
  align-items: center;

  &.teacherTrainPhoto {
    background: url('./images/month/teacher-train-bg.png') no-repeat center;
    background-size: contain;
    height: 60px;
  }

  .iconPhoto {
    width: 38px;
    height: 42px;
    margin-right: 5px;
  }

  span {
    padding: 0 4px;
    color: #41ffe2;
    font-family: DINA;
  }
}

.trainClass {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  padding: 12px 15px;
  margin: 0 13px 10px;
  display: flex;
  align-items: flex-start;
  min-height: 76px;
  background: rgba(66, 109, 255, 0.97) linear-gradient(276deg, #0a53d4 0%, #1133c0 100%);
  box-shadow: inset 6px 6px 0px 0px rgba(15, 57, 204, 0.41);
  border-radius: 18px;
  border: 3px solid #99ffdd;
  overflow: hidden;

  &::after {
    position: absolute;
    right: -3px;
    top: -3px;
    content: ' ';
    background: url('./images/icon-w.png') no-repeat center;
    background-size: cover;
    height: 49px;
    width: 28px;
  }

  .iconPhoto {
    width: 48px;
    height: 41px;
    margin-right: 5px;
    flex-shrink: 0;
  }

  span {
    padding: 0 4px;
    color: #41ffe2;
    font-family: DINA;
  }

  .subjectTips {
    line-height: 20px;
  }

  .subjectNames {
    padding-top: 2px;
    font-weight: 600;
    color: #ff7c88;
    line-height: 20px;
    font-size: 14px;
  }
}

.teacherTrainClass {
  background: rgba(92, 72, 239, 0.71);
  box-shadow: inset 4px 4px 0px 0px #7765ef;
  border: 3px solid #99ffdd;
}

.codeContainer {
  .codeImg {
    position: relative;
    width: 315px;
    height: 440px;
    z-index: 9;
    // background: url('./images/week/popup-week-banner.png') no-repeat top center;
    // background-size: contain;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;

    .popupWeekBanner {
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
    }

    &.teacherCodeImg {
      // background: url('./images/month/popup-week-banner.png') no-repeat top center;
      // background-size: contain;
      background-color: #ffffff;
    }

    .headerContantPopup {
      padding-top: 23px;
      padding-left: 18px;

      .trainTimer {

        &::before,
        &::after {
          display: none;
        }

        .point {
          margin-left: 4px;
          margin-right: 4px;
          width: 6px;
          height: 6px;
        }
      }
    }

    .codeTitle {
      text-align: center;
      padding-top: 13px;
      font-size: 24px;
      font-weight: bold;
      color: #ffffff;
      text-shadow: 1px 1px 7px #f4672a;
      max-width: 90%;
      padding-left: 5%;
    }

    .codeName {
      padding: 36px 8px 0;
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
    }

    .codeQr {
      position: relative;
      margin: 108px auto 0;
      width: 126px;
      height: 126px;
      padding: 12px;
      // background: url('./images/popup-qrcode-bg.png') no-repeat center;
      // background-size: contain;
      border-radius: 11px;
      overflow: hidden;
      box-sizing: border-box;

      img {
        width: 100%;
        height: 100%;
      }

      .popupQrcodeBg {
        position: absolute;
        top: 0;
        left: 0;
        width: 126px;
        height: 126px;
      }
    }

    .codeBtnText {
      margin: 20px auto 0;
      display: inline-block;
      background: linear-gradient(132deg,
          rgba(199, 239, 243, 0.25) 0%,
          rgba(229, 206, 251, 0.25) 40%,
          rgba(147, 194, 254, 0.25) 100%);
      box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.62);
      border-radius: 18px;
      padding: 6px 16px;
      font-size: 14px;
      color: #000977;
    }

    .codeTips {
      padding-top: 10px;
      font-size: 13px;
      font-weight: 600;
      color: #f16437;
      line-height: 18px;
      text-align: center;
    }
  }

  .close {
    position: absolute;
    top: 12px;
    right: 15px;
  }

  .codeBottom {
    position: relative;
    margin-top: 32px;
    background: #ffffff;
    border-radius: 20px 20px 0px 0px;
    padding-bottom: 10px;
  }

  .title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 22px;
    padding: 15px 15px 0;

    i {
      display: inline-block;
      margin-right: 6px;
      width: 4px;
      height: 12px;
      background: #ff8057;
      border-radius: 2px;
    }
  }

  .shareImg {
    width: 47px;
    height: 47px;
  }

  .shareText {
    padding-top: 6px;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
  }
}