/* 文字超长处理单行 */
@mixin single-line-ellipsis {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.press__lottery-wrap {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/bg-lottery.png);
  background-repeat: no-repeat;
  background-size: 16.24rem 7.5rem;
  background-position: top center;
}

.press__lottery-wrap {
  width: 100%;
  height: 100%;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/bg-lottery.png);
  background-repeat: no-repeat;
  background-size: 16.24rem 7.5rem;
  background-position: top center;

  .press__tip-match-header-hor {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9;

    .press__tip-match-right {
      position: absolute;
      top: .16rem;
      left: 2.3rem;
    }

    .press-popover {
      width: 4.2rem;
      height: .84rem;
      top: .9rem;
      left: -1.9rem;
    }

    .press__lottery-icon-warn {
      width: .41rem;
      height: .4rem;
      font-size: 0;
      background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/icon-question.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }

    .press__close-tip {
      position: absolute;
      right: .1rem;
      top: .1rem;
      width: .26rem;
      height: .26rem;
      background: url(https://image-1251917893.file.myqcloud.press__com/Esports/hor/home/close.png) no-repeat center center;
      background-size: contain;
    }
  }
}

.press__lottery-box {
  position: relative;
  display: flex;
  width: 11.7rem;
  height: 100%;
  margin: 0 auto;
}

.press__lottery-box-left {
  padding-top: 4.06rem;
}

.press__award-box {
  position: relative;
  width: 5.65rem;
  height: 1.73rem;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/bg-award.png);
  background-repeat: no-repeat;
  background-size: 100%;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -.12rem;
    width: 5.92rem;
    height: 1.85rem;
    background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/light-award.png);
    background-repeat: no-repeat;
    background-size: 100%;
    pointer-events: none;
    z-index: 2;
  }
}

.press__award-group {
  display: flex;
  width: 5.5rem;
  padding-top: .24rem;
  margin-left: .12rem;
  overflow-x: auto;
  overflow: visible;
}

.press__award-item {
  position: relative;

}

.press__award-item::v-deep {
  .press-popover {
    z-index: 10;
  }
}

.press__award-popover {
  width: 100%;
  padding: 0 .12rem;
  height: .28rem;
  line-height: .28rem;
  white-space: nowrap;
  text-align: center;
  font-size: .18rem;
  color: #fff;
  border-radius: .02rem;
  background-color: rgba($color: #2a2d5b, $alpha: .9);
}

// popover组件样式
.press__lottery-wrap {
  .van-popover__content {
    border-radius: .06rem;
  }

  .van-popover__arrow {
    border-width: 3px;
    color: rgba($color: #2a2d5b, $alpha: .9);
  }
}

.press__award-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.09rem;
  height: 1.09rem;
  margin: 0 auto;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/bg-award-item.png);
  background-repeat: no-repeat;
  background-size: 100%;

  img {
    width: .7rem;
    height: .7rem;
    object-fit: contain;
  }
}

.press__award-name {
  width: 1.4rem;
  text-align: center;
  font-size: .18rem;
  color: #2a2d5b;
  @include single-line-ellipsis();
}

.press__lottery-num {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .06rem;
  transform: translateX(-.16rem);
  font-size: .2rem;
  color: #fff;

  span {
    color: #ffba69;
  }
}

.press__btn-refresh {
  margin-left: .04rem;
  width: .16rem;
  height: .16rem;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/btn-refresh.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__btn-lottery {
  margin: .06rem auto 0;
  width: 3.28rem;
  height: 1.13rem;
  font-size: 0;
  transform: translateX(-.16rem);
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/btn-lottery.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__btn-lottery-gray {
  filter: grayscale(100%);
}

.press__task-box {
  margin: 2.06rem 0 0 .58rem;
}

.press__task-title {
  margin: 0 auto;
  width: 2.64rem;
  height: .36rem;
  font-size: 0;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/title.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__task-group {
  margin-top: .04rem;
  height: 4.04rem;
  overflow-y: auto;
}

.press__task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .24rem 0 .36rem;
  width: 4.76rem;
  height: 1.25rem;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/bg-task.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__task-des {
  font-size: .26rem;
  color: #2e315a;
}

.press__btn-to-do {
  width: 1.45rem;
  height: .53rem;
  font-size: 0;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/btn-to-do.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__btn-done {
  width: 1.45rem;
  height: .53rem;
  font-size: 0;
  background-image: url(https://image-1251917893.file.myqcloud.com/Esports/hor/lotterypage/btn-done.png);
  background-repeat: no-repeat;
  background-size: 100%;
}

.press__btn-group {
  position: absolute;
  top: 1.74rem;
  right: -1.5rem;
  width: 1.6rem;
  height: 1.28rem;
}

.press__btn-rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: .5rem;
  font-size: 0;
}

.press__btn-mine-award {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.46rem;
  height: .5rem;
  font-size: 0;
}