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

  & + .year19-index {
    display: none;
  }

  .to-index-tip {
    display: block;
    height: 30px;
    line-height: 30px;
    margin-left: -10px;
    margin-right: -10px;
    background-color: #fff066;
    text-align: center;
    font-size: 14px;
    color: #ff2121;
  }

  .banner {
    position: relative;
    height: 300px;

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

    .count-down {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 208px;
      height: 30px;
      background: linear-gradient(
        -90deg,
        rgba(145, 51, 199, 1) 0%,
        rgba(245, 47, 2, 1) 100%
      );
      border-radius: 15px;
      font-size: 16px;
      color: #fff;
      text-align: center;
      line-height: 30px;
    }
  }

  @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;
  }

  .live-icon-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 101;
    text-align: center;
    .live-icon {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 218px;
      z-index: 102;
      margin-left: -109px;
      margin-top: -114px;
    }
    .live-icon-close {
      width: 24px;
      height: 24px;
      margin-top: 15px;
    }
  }

  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;
    }

    .title {
      font-size: 15px;
      font-weight: bold;
    }

    .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;
      }
    }

    $dot_size: 5px;
    $twinkle_duration: 1s;

    .bar {
      position: absolute;
      display: flex;

      li {
        flex: 0 0 auto;
        width: $dot_size;
        height: $dot_size;
        border-radius: 50%;
        background: #fff;
      }
    }

    .h--bar {
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      justify-content: space-between;
      width: 280px;
      height: $dot_size;

      li {
        animation: $twinkle_duration ease-in-out infinite twinkle;

        &:nth-child(even) {
          animation-delay: $twinkle_duration / 2;
        }
      }

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

    .v--bar {
      top: 3px;
      left: 5px;
      flex-direction: column;
      justify-content: space-between;
      width: $dot_size;
      height: 198px;

      li {
        animation: $twinkle_duration ease-in-out $twinkle_duration / 2 infinite
          twinkle;

        &:nth-child(even) {
          animation-delay: $twinkle_duration / 4;
        }
      }

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

    @keyframes twinkle {
      from {
        background: #fff;
      }
      50% {
        background: #ffda09;
      }
      to {
        background: #fff;
      }
    }

    .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;
        }

        &.pre {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          justify-content: center;
          height: 100%;

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

      .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;
      padding-bottom: 15px;
      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: 0.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://cdn.julyedu.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;

        &.unavailable {
          background: #999;
          color: #fff;
        }

        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://cdn.julyedu.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: 0.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;

    h4 {
      height: 28px;
      margin: 10px auto;
      font-size: 12px;
      text-align: center;

      span {
        padding: 5px 10px;
        background: #ffe400;
        color: #2e00dc;
        border-radius: 20px;
        line-height: 28px;
      }
    }

    .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 3%;
          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, 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, 0.3);
        }
      }
    }
  }
}

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

  .content {
    max-height: 244px;
    overflow: auto;
    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, 0.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;
  }
}

.re-login {
  padding: 20px !important;
  .des {
    text-align: justify;
    font-size: 15px;
    color: #545c64;
  }

  .contact {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 400;
    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;
    margin-top: 10px;
  }
}

.members {
  ul {
    max-height: 230px;
    overflow: auto;
  }

  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;
  }
}
