.anniversary-2020 {
  background-color: #2E00DC;
  padding: 0 10px 75px;

  .banner {
    height: 220px;

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

  @mixin button {
    -webkit-appearance: none;
    outline: 0;
    border: 0;
    background: transparent;
  }

  nav {
    position: sticky;
    top: 0;
    left: 0;
    height: 44px;
    margin-bottom: 20px;
    margin-left: -10px;
    margin-right: -10px;
    background: #059BFF;
    color: #fff;
    font-size: 15px;
    z-index: 100;
    overflow: auto;

    ul {
      display: inline-flex;
      height: 100%;
      white-space: nowrap;
    }

    li {
      display: flex;
      align-items: center;
      width: 100px;
      height: 100%;
      padding: 0 1em;
      text-align: center;
      white-space: normal;

      &.active {
        background: #FFE400;
        color: #333;
      }
    }
  }

  .sign {
    position: fixed;
    top: 25%;
    right: 0;
    width: 56px;
    height: 54px;
    background: url("../images/sign.png");
    background-size: contain;
    z-index: 101;
  }

  a.rule-btn {
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    letter-spacing: 3px;
  }

  .block {
    &:target {
      &::before {
        display: block;
        content: " ";
        margin-top: -75px; // Set the Appropriate Height
        height: 75px; // Set the Appropriate Height
        visibility: hidden;
      }
    }

    &-title {
      width: 150px;
      height: 32px;
      margin: 0 auto 10px;
    }

    .container {
      padding: 10px;
      border: 2px solid;
      background: #2B5FFF;
      border-image: linear-gradient(0deg, rgba(40, 0, 254, 1), rgba(60, 168, 255, 1)) 10 10;
      border-radius: 2px;
    }
  }

  .prices {
    span:nth-child(1) {
      color: #FF2121;
      font-size: 18px;
      margin-right: 10px;
    }

    span:nth-child(2) {
      color: #777;
      font-size: 12px;
      text-decoration: line-through;
    }
  }

  .cover {
    position: relative;
    flex: 0 0 auto;
    width: 140px;
    height: 101px;
    margin-right: 10px;

    span {
      position: absolute;
      top: 0;
      right: 0;
      display: inline-block;
      width: 74px;
      height: 22px;
      background: linear-gradient(90deg, rgba(253, 61, 59, 1) 0%, rgba(255, 103, 77, 1) 100%);
      border-radius: 11px 0 0 11px;
      text-align: center;
      font-size: 12px;
      color: #fff;
      line-height: 22px;
    }

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

  .purchased {
    font-size: 12px;
    color: #09f;
  }

  .study {
    width: 91px;
    height: 28px;
    background: rgba(0, 153, 255, 1);
    border-radius: 2px;
    font-size: 13px;
    color: #fff;
  }

  .unavailable {
    width: 91px;
    height: 28px;
    background: rgba(153, 153, 153, 1) !important;
    border-radius: 2px;
    color: #fff;
    font-size: 13px;
  }

  .course-container {
    width: 355px;
    padding: 10px;
    background: rgba(43, 95, 255, 1);
    border: 2px solid;
    border-image: linear-gradient(0deg, rgba(40, 0, 254, 1), rgba(60, 168, 255, 1)) 10 10;
    border-radius: 2px;

    li:last-child {
      margin-top: 10px;
      margin-bottom: 5px;
      text-align: center;
    }

    .show-more {
      @include button;
      width: 95px;
      height: 33px;
      border: 1px solid rgba(255, 255, 255, 1);
      border-radius: 17px;
      color: #fff;
    }
  }

  .course {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    height: 121px;
    background-color: #fff;

    .info {
      position: relative;
      text-align: left;
    }

    .title, .des {
      width: 162px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .des {
      margin-bottom: 8px;
    }

    .btn {
      position: absolute;
      left: 0;
      bottom: 0;

      button {
        @include button;
        height: 28px;
        margin-right: 10px;
        border-radius: 2px;
        color: #fff;
      }
    }
  }

  .group {
    margin-bottom: 20px;

    .course .btn {
      .main {
        padding: 0 20px;
        background: #FF2121;
      }

      .study-btn {
        background: #09f;
      }
    }
  }

  .lottery {
    margin-bottom: 20px;
    background: rgba(45, 0, 219, 1);


    .block-title {
      width: 217px;
      height: 32px;
    }

    .rule {
      margin: 10px 0;
      font-size: 14px;
      color: #fff;
      text-align: center;

      a {
        text-decoration: underline;
        letter-spacing: 4px;
      }
    }

    .content {
      padding-top: 10px;
      padding-bottom: 18px;
      background: #2558FF;
    }

    .operations {
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      margin-bottom: 15px;

      a {
        color: #FFFDFF;
        font-size: 14px;
        text-decoration: underline;
      }
    }

    .lottery-info {
      .title {
        display: flex;
        align-items: center;
        width: 223px;
        height: 30px;
        padding-left: 18px;
        margin: 0 auto 9px;
        background: linear-gradient(90deg, rgba(37, 87, 255, 1) 0%, rgba(46, 0, 219, 1) 100%);
        border-radius: 15px;
        font-size: 15px;
        color: #FFFDFF;

        i {
          display: inline-block;
          width: 14px;
          height: 16px;
          margin-right: 9px;
          background: url("../images/lottery-icon.png") no-repeat;
          background-size: contain;
        }
      }

      li {
        padding: 0 10px;
        font-size: 12px;
        color: #FFFDFF;
      }

      .index {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 6px;
        background: rgba(255, 217, 9, 1);
        border-radius: 50%;
        color: #2D00DB;
        text-align: center;
        line-height: 12px;
      }
    }
  }

  .prize-container {
    border: 2px solid;
    border-image: linear-gradient(0deg, rgba(39, 0, 253, 1), rgba(59, 167, 255, 1)) 10 10;

    .prize-wrapper {
      position: relative;
      padding: 11px;
      margin-bottom: 8px;
    }

    .h-bar {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 280px;
      height: 6px;
      background: url("../images/h-bar.png");
      background-size: contain;

      & + .h-bar {
        top: initial;
        bottom: 0;
      }
    }

    .v-bar {
      position: absolute;
      top: 3px;
      left: 0;
      width: 6px;
      height: 198px;
      background: url("../images/v-bar.png");
      background-size: contain;

      & + .v-bar {
        left: initial;
        right: 0;
      }
    }

    .prizes {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      padding: 0 4px;

      li {
        width: 95px;
        height: 55px;
        padding: 5px;
        background: #2658FF;
        border-radius: 3px;

        &:nth-child(n + 4) {
          margin-top: 13px;
        }

        &:nth-child(5) {
          background-size: contain;

          &.available {
            background: url("../images/lottery-button-available.png") no-repeat;
          }

          &.unavailable {
            background: url("../images/draw.png") no-repeat !important;
          }
        }

        &.active {
          background: #FFE300;
        }
      }

      .draw {
        text-align: center;
        color: #fff;

        div:nth-child(1) {
          font-size: 18px;
        }

        div:nth-child(2) {
          font-size: 12px;
        }
      }

      .prize {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 85px;
        height: 47px;
        background: rgba(255, 254, 255, 1);
        box-shadow: 0 0 1px 0 rgba(10, 12, 122, 0.3);

        img {
          max-width: 59px;
          max-height: 38px;
        }
      }
    }
  }

  .am-carousel {
    margin-bottom: 6px;
    text-align: center;
    font-size: 14px;
    color: #FFDA09;

    .bullet {
      width: 351px;
      height: 30px;
      line-height: 30px;
      background: linear-gradient(90deg, rgba(46, 0, 220, 1) 0%, rgba(141, 10, 255, 1) 49%, rgba(46, 0, 220, 1) 100%);
    }
  }

  .group-answer {
    margin-bottom: 20px;

    .content {
      width: 355px;
      padding: 10px 7px 0;
      background: rgba(43, 95, 255, 1);
      border: 2px solid;
      border-image: linear-gradient(0deg, rgba(39, 0, 253, 1), rgba(59, 167, 255, 1)) 10 10;
      border-radius: 2px;
    }

    .func {
      position: relative;
      width: 341px;
      height: 149px;
      padding-top: 12px;
      margin: 0 auto;
    }

    .des {
      width: 341px;
      height: 95px;
      margin-top: -9px;
      margin-bottom: 15px;
      background: rgba(34, 39, 255, 1);
      border-radius: 0 0 4px 4px;

      .title {
        position: relative;
        padding: 8px 0;
        font-size: 14px;
        color: #fff;
        opacity: .5;
        text-align: center;

        @mixin pseudo {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          content: '';
          width: 10px;
          height: 2px;
          background-color: #fff;
          display: block;
        }

        &::before {
          @include pseudo;
          left: 103px;
        }

        &::after {
          @include pseudo;
          right: 103px;
        }
      }

      ol {
        padding: 0 15px;
        font-size: 12px;
        color: #EFF1FF;
      }
    }

    .team {
      i {
        position: absolute;
        left: 0;
        top: 15px;
        display: inline-block;
        width: 84px;
        height: 25px;
        background: url("../images/my-team.png");
        background-size: contain;
      }

      .func {
        background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/team-info-bg.png");
        background-size: contain;

        li {
          width: 30px;
          height: 30px;
          border: 0 solid rgba(255, 255, 255, 1);
          border-radius: 50%;
          overflow: hidden;
          line-height: 30px;
          text-align: center;

          &:last-child {
            border: 1px solid #fff;
            color: #fff;
          }
        }
      }


      .summary {
        font-size: 12px;
        text-align: center;
        color: #fff;

        span:nth-child(2) {
          margin-left: 20px;
        }

        .count {
          font-size: 18px;
          margin: 0 5px;
        }

      }

      ul {
        display: flex;
        justify-content: space-around;
        padding: 0 33px;
        margin-top: 10px;
        margin-bottom: 15px;
      }

      .invite {
        text-align: center;

        button {
          @include button;
          width: 160px;
          height: 30px;
          background: rgba(255, 228, 0, 1);
          border-radius: 4px;
          color: #2127FF;
          font-size: 14px;
        }
      }
    }

    .exercise {
      .func {
        height: 127px;
        padding-top: 34px;
        background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/exercise-bg.png") no-repeat;
        background-size: contain;
        text-align: center;
        color: #fff;

        .btn {
          margin-bottom: 9px;

          &.no-chance {
            button {
              background: #999;
            }
          }

          button {
            @include button;
            width: 160px;
            height: 30px;
            background: linear-gradient(90deg, rgba(34, 221, 255, 1) 0%, rgba(57, 167, 255, 1) 100%);
            border-radius: 4px;
            font-size: 14px;
            line-height: 30px;
            color: #fff;
          }

          i {
            display: inline-block;
            width: 14px;
            height: 14px;
            margin-right: 8px;
            background: url("../images/start-exercise.png");
            background-size: contain;
          }
        }

        span {
          font-size: 18px;
          margin: 0 5px;
        }
      }
    }

    .rank-list {
      color: #fff;

      .title {
        position: relative;
        text-align: center;
        font-size: 18px;
        @mixin pseudo {
          content: '';
          display: block;
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          width: 25px;
          height: 11px;
          background: url("../images/rank-title-decorator.png");
        }

        &::before {
          @include pseudo;
          left: 90px;
          background-size: contain;
        }

        &::after {
          @include pseudo;
          right: 90px;
          transform: translateY(-50%) scale(-1);
          background-size: contain;
        }
      }

      .description {
        margin-top: 10px;
        margin-bottom: 18px;
        text-align: center;
        font-size: 12px;
        opacity: .8;
      }

      .prize-display {
        ul {
          display: flex;
          flex-wrap: wrap;
          justify-content: space-between;
        }

        li {
          img {
            width: 167px;
            height: 80px;
          }
        }

        .top-three {

          img {
            width: 110px;
            height: 100px;
          }

          &:nth-child(3) {
            margin-right: 0;
          }
        }
      }

      .btn {
        height: 58px;
        padding-top: 10px;
        text-align: center;

        button {
          @include button;
          width: 95px;
          height: 33px;
          border: 1px solid rgba(255, 255, 255, 1);
          border-radius: 17px;
          font-size: 14px;
          color: #fff;
        }
      }
    }

  }

  .audition {
    margin-bottom: 20px;

    .block-title {
      width: 197px;
      height: 32px;
    }

    .course {
      .btn {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-size: 0;

        button {
          padding: 0 5%;
          font-size: 13px;
          border-radius: 2px;
          margin: 0;
        }

        .study-btn {
          background: #09f;
        }

        .audition-btn {
          background: linear-gradient(90deg, rgba(0, 201, 235, 1) 0%, rgba(0, 138, 242, 1) 100%);
        }

        button:nth-child(2) {
          margin-right: 0;
          background: linear-gradient(90deg, rgba(255, 68, 0, 1) 2%, rgba(255, 0, 2, 1) 100%);
        }
      }
    }

  }

  .stage-course {
    .block-title {
      width: 252px;
      height: 32px;
    }

    .stage {
      display: inline-block;
      width: 85px;
      height: 26px;
      line-height: 26px;
      background: linear-gradient(90deg, rgba(43, 95, 255, 1) 0%, rgba(46, 0, 220, 1) 100%);
      border-radius: 13px;
      font-size: 14px;
      color: #fff;
    }

    .course-container {
      li:first-child {
        margin-top: 20px;
        margin-bottom: 15px;
        text-align: center;
      }
    }

    .show-more-box {
      text-align: center;
    }

    .show-more {
      margin-bottom: 20px;
    }

    .prices {
      text-align: left;
    }

    .course {
      .btn {
        display: flex;
        justify-content: space-between;
        width: 100%;

        button {
          padding: 0 5%;
          font-size: 13px;
          border-radius: 2px;
          margin-right: 0;
        }

        button:nth-child(1) {
          background: linear-gradient(90deg, rgba(0, 201, 235, 1) 0%, rgba(0, 138, 242, 1) 100%);
        }

        button:nth-child(2) {
          background: linear-gradient(90deg, rgba(255, 68, 0, 1) 2%, rgba(255, 0, 2, 1) 100%);
        }
      }
    }

  }

  table {
    width: 105%;
    margin: 10px -7px 0;
    text-align: center;
    border-collapse: collapse;
    table-layout: fixed;

    thead {
      height: 38px;
      line-height: 38px;
      background: #00CBFF;
      color: #fff;
      border-spacing: 0;
      font-size: 0;

      th {
        width: 25%;
        font-size: 14px;

        &:nth-child(1) {
          width: 10%;
        }

        &:nth-child(2) {
          width: 30%;
        }

        &:nth-child(3) {
          width: 15%;
        }

        &:nth-child(4) {
          width: 43%;
        }

      }
    }

    tbody {
      tr {
        height: 48px;
        line-height: 48px;
        font-size: 12px;

        &:nth-of-type(even) {
          background: #2139F1;
        }
      }
    }

    a{
      text-decoration: underline;
    }

    td:nth-of-type(1) {
      font-size: 16px;

      img {
        width: 14px;
        height: 18px;
      }
    }

    td:nth-of-type(2), td:nth-of-type(4) {
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .avatar {
      width: 18px;
      height: 18px;
      margin-right: 6px;
      border-radius: 50%;
      vertical-align: middle;
    }
  }

  .modal-cover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .6);
    z-index: 200;

    .modal {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 300px;
      padding: 20px 25px;
      background: #fff;
      border-radius: 10px;
    }

    .close {
      position: absolute;
      bottom: -54px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 24px;
      color: #fff;
    }

    .title {
      font-size: 16px;
      color: #525C65;
      text-align: center;
      margin-bottom: 6px;
    }

    .tip {
      font-size: 13px;
      color: #ED6A1D;
    }

    .recipient {
      input {
        width: 100%;
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
        margin-top: 10px;
        border: 1px solid #DDD;
        font-size: 13px;

        &:first-child {
          margin-top: 15px;
        }

        &::placeholder {
          color: #999;
        }
      }

      button {
        @include button;
        width: 121px;
        height: 33px;
        transform: translateX(50%);
        margin-top: 18px;
        border-radius: 17px;
        color: #fff;
        font-size: 15px;
        background: #09f;

        &[disabled] {
          background: rgba(84, 92, 100, .3);
        }

      }
    }
  }
}

.rule-popup {
  .title {
    font-size: 16px;
    color: #525C65;
    text-align: center;
    margin-bottom: 6px;
  }

  .content {
    font-size: 14px;
    color: #525C65;
    white-space: pre-line;
    line-height: 21px;
  }
}

.prize-records {
  .modal {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .content {
    max-height: 280px;
    overflow: auto;
  }

  .rule {
    font-size: 13px;
    color: #ED6A1D;
    white-space: pre-line;
  }

  .records {
    li {
      .record {
        display: flex;
        justify-content: space-between;
        width: 270px;
        height: 30px;
        margin-top: 5px;
        line-height: 30px;
        background: rgba(255, 255, 255, 1);
        border: 1px solid rgba(209, 219, 228, .4);
      }

      .name {
        width: 140px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        color: #271BD3;
        font-size: 12px;
      }

      .time {
        color: #545C64;
        font-size: 12px;
      }
    }
  }

  .contact {
    width: 270px;
    height: 15px;
    line-height: 15px;
    background: rgba(240, 240, 240, 1);
    color: #333;
    font-size: 12px;
    text-align: center;
  }
}

.win-prize {
  .des {
    margin-bottom: 30px;
    text-align: center;
    font-size: 15px;
    color: #545C64;

    .name {
      color: #EB5018;
    }
  }

  .contact {
    width: 250px;
    padding: 12px 10px;
    margin-bottom: 40px;
    border: 1px solid rgba(221, 221, 221, 1);
    color: #271BD3;
  }

  button {
    width: 121px;
    height: 33px;
    transform: translateX(50%);
    background: rgba(0, 153, 255, 1);
    border-radius: 17px;
    font-size: 15px;
    color: #fff;
    -webkit-appearance: none;
    outline: 0;
    border: 0;
  }
}

.members {
  li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    border-bottom: 1px solid #E5E5E5;

    > div {
      display: flex;
      align-items: center;
    }

    .avatar {
      width: 24px;
      height: 24px;
      margin-right: 10px;
      border-radius: 50%;
    }

    .username {
      color: #333;
    }

    .status {
      &.correct {
        color: #2CDBAF;
      }

      &.wrong {
        color: #FF6000;
      }

      &.unanswered {
        color: #525C65;
      }
    }
  }
}

.follow {
  .tip {
    margin-bottom: 15px;
  }

  .qrcode {
    text-align: center;
  }

  img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }
}