@import '../../common//style/gp-match/palette.scss';
@import '../../common//style/gp-match/mixin.scss';

@keyframes updown {
  0% {
    top: -.5rem;
  }

  50% {
    top: -.6rem;
  }

  100% {
    top: -.5rem;
  }
}

// 按钮  -- start
.press__operations {
  display: flex;
  justify-content: center;
  margin: 0 auto .24rem;

  .press__gp-button--primary,
  .press__gp-button--secondary {
    position: relative;

    .press__button-tip {
      width: 2.84rem;
      height: .46rem;
      line-height: .35rem;
      color: #fff;
      font-size: .18rem;
      padding: 0 .08rem;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 400;
      background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/gp-match-common-tip.png) no-repeat;
      background-size: 100%;
      position: absolute;
      top: -.5rem;
      left: 50%;
      transform: translateX(-50%);
      // animation: updown 1.3s infinite;
      font-family: auto;
    }
  }
}

.press__gp-button--secondary {
  margin-right: .24rem;

  @include secondary-btn($fontsize: .22rem,
  $width: 3.06rem,
  $height: .5rem,
  $line-height: .5rem);
}

.press__gp-button--primary {
  @include primary-btn($fontsize: .22rem,
  $width: 3.06rem,
  $height: .5rem,
  $line-height: .5rem);
}

// 按钮  -- start

.press__selection-button--fast {
  width: 3.42rem;
  height: 2.52rem;
  background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/auto-create-match-bg.png) no-repeat;
  background-size: 100%;

  .press__selection-desc {
    line-height: .3rem;
    height: .3rem;
    color: rgba(46, 53, 110, .75);
    font-size: .22rem;
    font-weight: 200;
  }

  .press__selection-title {
    height: .44rem;
    line-height: .44rem;
    color: #2d356e;
    font-size: .32rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    margin: 0 0 .08rem 0;

    // i {
    //   width: 0.32rem;
    //   height: 0.32rem;
    //   margin: 0 0 0 0.08rem;
    // }
    .icon-guide {
      margin-left: .1rem;
      font-size: .24rem;
      font-weight: 600;
      color: #2d356e;
    }
  }
}

.press__selection-button--big {
  background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/bid-popular-match-bg.png) no-repeat;
  background-size: 100%;
  width: 3.42rem;
  height: 2.52rem;

  .press__selection-desc {
    line-height: .3rem;
    height: .3rem;
    color: rgba(27, 75, 137, .75);
    font-size: .22rem;
    font-weight: 200;
  }

  .press__selection-title {
    height: .44rem;
    line-height: .44rem;
    color: #1b4b89;
    font-size: .32rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    margin: 0 0 .08rem 0;

    // i {
    //   width: 0.32rem;
    //   height: 0.32rem;
    //   margin: 0 0 0 0.08rem;
    // }
    .icon-guide {
      margin-left: .1rem;
      font-size: .24rem;
      font-weight: 600;
      color: #1b4b89;
    }
  }
}

.press__selection-button {
  width: 3.42rem;
  height: 2.52rem;
  border-radius: .04rem;
  padding: .52rem .32rem;
  user-select: none;
  box-sizing: border-box;
}

.press__selection {
  display: flex;
  justify-content: space-between;
  width: 7.1rem;
  margin: 0 auto;
  padding: .2rem 0 .2rem;
}

.press__self-hold {
  background: #fcfcfc url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/picker-bg.jpg) center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.press__hold-list {
  height: calc(100vh - 3.72rem);
  overflow: hidden;

  .van-list {
    overflow-y: auto;
    height: 100%;
  }
}

.press__hold-empty {
  height: calc(100vh - 3.72rem);
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(100.56deg,
  rgba(238, 239, 241, .5) 15.46%,
  rgba(252, 252, 252, .5) 86.92%);
  border: .02rem solid rgba(252, 252, 252, .6);
  box-shadow: 0 0 .2rem rgba(83, 71, 134, .19);
  width: 7.1rem;
  margin: 0 auto;
}

.press__services {
  display: block;
  height: .8rem;
  color: rgba(33, 33, 36, .75);
  line-height: .8rem;
  font-size: .24rem;
  text-align: center;
  width: 100%;
}

.press__empty-img {
  width: 2rem;
  height: 2rem;
  margin: 0 auto;

  image,
  img {
    width: 2rem;
    height: 2rem;
  }
}

.press__empty-text {
  display: inline-flex;
  color: #212124;
  font-size: .28rem;
  justify-content: center;
  margin: .24rem 0 0;

  a {
    color: #5300c3;
    font-size: .28rem;
  }
}

// 修改 -- start
.press__hold-list {
  position: relative;

  // 分享按钮
  .press__icon--share {
    width: .36rem;
    height: .36rem;
    background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/share-icon.png) no-repeat;
    background-size: 100%;
    position: absolute;
    top: .24rem;
    right: .24rem;
  }

  .press__game-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;

    .press__game-meta {
      -webkit-box-flex: 1;
      -ms-flex: 1;
      flex: 1;
      max-width: 100%;
      padding: .4rem 0 .22rem .26rem;
    }
  }

  .press__game-title p {
    max-width: 5.8rem;
    font-weight: 400;
    display: inline-block;
    vertical-align: middle;
  }
}

// 修改 -- end

.press__game-item {
  width: 7.1rem;
  min-height: 2.14rem;
  height: 2.14rem;
  position: relative;
  margin: 0 auto .24rem;
  background: linear-gradient(89.49deg, rgba(230, 234, 239, .7) 10.72%, rgba(252, 252, 252, .7) 94.4%);
  border: .02rem solid rgba(252, 252, 252, .6);
  box-shadow: 0 0rem .2rem rgba(196, 193, 205, .8);

  @include flex-content;

  .press__game-meta {
    flex: 1;
    max-width: 4.5rem;
    padding: .4rem 0 .22rem .26rem;
  }
}


.press__game-label {
  position: absolute;
  top: -.02rem;
  left: -.02rem;
  width: .88rem;
  height: .32rem;
  line-height: .32rem;
  color: $color-white;
  font-size: $font-xs;
  text-align: center;
  background: $color-orange;
  z-index: 3;
  // font-family: "PEACE";

  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: -.19rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: .32rem .2rem 0 0;
  }

  &.press__game-label--orange {
    background: linear-gradient(37deg, #ef816f 22.22%, #efbd7c 88.89%);
    color: #fff;

    &:after {
      content: '';
      border-color: #efbd7c transparent transparent transparent;
    }
  }

  &.press__game-label--green {
    background: linear-gradient(90deg, #25ad64 22.22%, #1fc96d 88.89%);

    &:after {
      content: '';
      border-color: #1fc96d transparent transparent transparent;
    }
  }

  &.press__game-label--gray {
    background: #9a9a9a;
    color: #fff;

    &:after {
      content: '';
      border-color: #9a9a9a transparent transparent transparent;
    }
  }

  &.press__game-label--blue {
    background: linear-gradient(90deg, #5300c3 22.22%, #5e2eff 88.89%);

    &:after {
      content: '';
      border-color: #5e2eff transparent transparent transparent;
    }
  }
}

.press__label-list {
  margin: .08rem 0 .16rem;
  flex-shrink: 0;
  flex-wrap: wrap;

  @include flex-content($justify: flex-start);

  i {
    width: .24rem;
    margin: 0 .08rem 0 0;
    color: #4f4f52;

    &.icon-top {
      color: rgba(255, 255, 255, .75);
    }

    &.icon-time {
      font-size: .22rem;
    }

    &.icon-location {
      font-size: .22rem;
    }

    &.icon-wx {
      font-size: .22rem;
    }

    &.icon-mine-bottom {
      font-size: .18rem;
    }
  }

  span {
    padding: 0 .14rem;
    margin-right: .12rem;
    line-height: .4rem;
    color: $color-main;
    // color: $color-black-2;
    font-size: $font-xs;
    background: rgba(33, 33, 36, .1);
    display: flex;
    align-items: center;

    @include flex-content;

    &.tag-purple {
      color: #4712b8;
    }

    &.tag-green {
      color: #158c56;
    }

    &:last-child {
      margin: 0;
    }
  }
}

.press__prize-info {
  @include flex-content($justify: flex-start);

  img {
    width: .4rem;
    height: .4rem;
    display: block;
    margin-right: .08rem;
  }

  span {
    display: block;
    line-height: .4rem;
    color: $color-main;
    font-size: $font-s;
  }
}

.press__common-title {
  width: 7.02rem;
  height: .8rem;
  margin: 0 auto;

  @include flex-content;

  .press-h4 {
    @include flex-content($justify: flex-start);

    span {
      padding-left: .1rem;
      color: $color-main;
      font-size: $font-m;
      line-height: .44rem;
      font-weight: bold;
    }
  }

  .icon-team {
    font-size: .3rem;
    color: #35322d;
  }

  .iconfont {
    color: #35322d;
  }
}

.press__game-title {
  height: .4rem;
  font-size: $font-m;
  line-height: .4rem;
  color: $color-black-2;
  font-weight: 400;

  &.press__game-title--link {
    position: relative;
    font-weight: bold;
  }

  p {
    max-width: 3.8rem;
    font-weight: 400;

    @include inline-vertical-content;
  }
}