#formal-draw {
  position: relative;
  width: 355px;
  min-height: 147px;
  background: rgba(57, 0, 201, 1);
  border: 1px solid rgba(89, 112, 255, 1);
  border-radius: 5px;
  margin: 0 auto;

  .am-tabs-content-wrap {
    min-height: 423px;
  }

  &::before {
    content: "";
    display: block;
    width: 233px;
    height: 90px;
    position: absolute;
    top: 0;
    left: 0;
    background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/body-top-bg.png")
      no-repeat;
    background-size: contain;
  }

  &::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 57px;
    background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/body-bottom-bg.png")
      no-repeat;
    background-size: contain;
  }

  .am-tabs {
    position: relative;
    z-index: 10;
    width: 330px;
    margin: 0 auto;
    color: #fff;

    & .am-tabs-default-bar-tab:nth-of-type(3) {
      &::after {
        display: none;
      }
    }

    &.am-tabs-horizontal {
      .am-tabs-pane-wrap {
        &-inactive {
          padding: 0 1px;
        }
      }
    }

    .am-tabs-tab-bar-wrap {
      height: 33px;
      border: 1px solid rgba(255, 246, 4, 1);
      border-radius: 0 0 6px 6px;
    }

    .am-tabs-default-bar-tab {
      height: auto;
      line-height: 1;

      &::after {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        left: unset;
        top: 50%;
        margin-top: -7px;
        width: 1px;
        height: 14px;
        background: #fff604;
        transform: none;
      }
    }

    .am-tabs-default-bar-tab-active {
      background: #fff604;
      border-radius: 0 0 5px 5px;
    }
  }

  .content {
    position: relative;
    .title {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      font-size: 16px;
      color: #fff3f0;
      margin: 20px 0 28px;
      line-height: 1;

      .hot-value {
        margin: 0 12px;

        a {
          display: inline-block;
          width: 34px;
          height: 18px;
          padding: 0;
          background: linear-gradient(
            0deg,
            rgba(255, 132, 0, 1),
            rgba(255, 67, 2, 1)
          );
          border-radius: 3px;
          font-size: 11px;
          color: #fff;
          font-weight: 400;
          color: rgba(255, 255, 255, 1);
          border: none;
          -webkit-appearance: none;
          outline: none;
          line-height: 18px;
        }
      }

      .grade {
        color: #fff604;
      }

      img {
        width: 24px;
        height: 11px;
      }
    }

    .prize_number_con {
      width: 280px;
      height: 30px;
      background: rgba(255, 255, 255, 1);
      border-radius: 15px;
      font-size: 14px;
      font-weight: 400;
      color: rgba(83, 39, 250, 1);
      text-align: center;
      text-align-last: center;
      line-height: 30px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 18px;
    }
  }
  .current {
    padding-top: 50px;
  }

  .progress-bar {
    position: relative;
    width: 330px;
    height: 5px;
    background: linear-gradient(
      -90deg,
      rgba(211, 211, 210, 1) 0%,
      rgba(255, 255, 255, 1) 100%
    );
    border-radius: 2px;
    margin-bottom: 20px;

    .progress {
      width: 0;
      height: 5px;
      background: linear-gradient(
        270deg,
        rgba(255, 76, 5, 1) 0%,
        rgba(255, 215, 108, 1) 100%
      );
      border-radius: 2px;
    }

    .locator {
      position: absolute;
      top: -16px;
      left: 0;
      width: 11px;
      height: 14px;
    }
  }

  .time-ranges {
    overflow: hidden;

    & > li {
      &::after {
        content: "";
        display: block;
        height: 10px;
        background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/formal-draw-divider.png")
          no-repeat;
        background-size: contain;
        margin: 10px 0;
      }
    }

    & > li:last-child {
      margin-bottom: 30px;

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

  .status-bar {
    position: relative;
    display: flex;
    width: 330px;
    height: 44px;
    text-align: center;
    border-radius: 2px;
    background: #fff;

    .time {
      position: relative;
      width: 220px;
      color: #999;
      font-size: 18px;
      padding-left: 45px;
      line-height: 44px;
      text-align: left;
    }

    .status {
      position: relative;
      width: 110px;
      color: #fff;
      font-size: 12px;
      border-radius: 0 2px 2px 0;

      &::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        display: none;
        color: transparent;
        margin-left: -6px;
        border-style: solid;
        border-width: 5px 6px 0;
        border-top-color: #ccc;
      }
    }

    .icon-clock {
      position: absolute;
      top: 50%;
      left: 20px;
      margin-top: -9px;
      width: 16px;
      height: 18px;
      z-index: 10;
    }
  }

  .status-4 {
    .status {
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
      background: linear-gradient(
        -90deg,
        rgba(204, 204, 204, 1) 0%,
        rgba(221, 221, 221, 1) 100%
      );

      a {
        font-size: 10px;
        color: #5327fa;
        text-decoration: underline;
      }
    }

    &.active {
      .status::after {
        display: block;
        border-top-color: #dddddd;
      }
    }
  }

  .status-3 {
    .time {
      color: #5327fa;
    }

    .status {
      display: flex;
      justify-content: center;
      flex-direction: column;
      background: linear-gradient(to right, #ff3b05 0%, #ff6905 100%);
    }

    &.active {
      .status::after {
        display: block;
        border-top-color: #ff6905;
      }
    }
  }

  .status-1,
  .status-2,
  .status-5 {
    .status {
      background: linear-gradient(
        -90deg,
        rgba(7, 240, 255, 1) 0%,
        rgba(0, 153, 255, 1) 100%
      );
      font-size: 15px;
      color: #fff;
      text-align: center;
      line-height: 44px;
    }

    &.active .status {
      &::after {
        display: block;
        border-top-color: #07f0ff;
      }
    }
  }

  .prizes {
    margin-top: 15px;

    li {
      position: relative;
      width: 100px;
      margin-right: 6px;

      .tip {
        position: absolute;
        top: -32px;
        left: 50%;
        z-index: 10;
        margin-left: -50px;
        padding: 5px 8px;
        white-space: nowrap;
        background: rgba(255, 246, 4, 1);
        border-radius: 2px;
        font-size: 11px;
        color: #3900c9;
        transform: scale(0.8);

        &::after {
          position: absolute;
          left: 50%;
          bottom: -3px;
          margin-left: -6px;
          content: "";
          display: block;
          border-style: solid;
          border-width: 4px 6px 0;
          border-color: transparent;
          border-top-color: rgba(255, 246, 4, 1);
        }
      }
    }

    img {
      width: 100px;
      height: 78px;
      background: rgba(255, 255, 255, 1);
      border: 2px solid;
      border-image: linear-gradient(
          -40deg,
          rgba(255, 75, 240, 1),
          rgba(120, 0, 255, 1)
        )
        10 10;
      border-radius: 4px;
    }

    .prize-name {
      width: 99px;

      & > div:first-child {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      & > div:last-child {
        text-align: center;
      }
    }
  }

  .swiper-container {
    overflow: visible;
  }
}

.closable-popup-mask {
  .popup-container.join-lottery {
    background: #5327fa;
    text-align: center;

    .title {
      color: #fff;
      margin-bottom: 15px;
    }

    .text {
      width: 275px;
      height: 248px;
      padding: 36px 30px 0;
      margin-bottom: 10px;
      text-align: center;
      background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/join-lottery-bg.png");
      background-size: contain;
      font-size: 14px;

      .code {
        color: #ff0000;
        margin-bottom: 8px;
      }

      .time,
      .hint {
        font-size: 12px;
        color: #525c65;
      }

      .time {
        margin-bottom: 20px;
      }

      .hint {
        color: rgba(82, 92, 101, 0.8);
        margin-bottom: 10px;
        text-align: left;
      }

      .qr-code {
        width: 90px;
        height: 90px;
        margin-top: 0;
      }
    }

    button {
      width: 133px;
      height: 30px;
      background: #fff;
      border-radius: 15px;
      font-size: 14px;
      color: #5327fa;
      -webkit-appearance: none;
      outline: none;
      border: none;
    }
  }
}

.closable-popup-mask {
  .subscribe {
    height: 215px;
    padding-bottom: 30px;

    .title {
      margin-bottom: 20px;
    }

    .content {
      text-align: center;

      .qr-code {
        width: 120px;
        height: 120px;
      }
    }
  }
}
