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

.press-match-item {
  width: 7.1rem;
  min-height: 2.14rem;
  height: auto;
  position: relative;
  margin: .24rem auto 0;
  border: .02rem solid rgba(252, 252, 252, .6);
  box-shadow: 0 0rem .2rem rgba(196, 193, 205, .8);

  // @include flex-content;

  &.press-match-item--living {
    margin: 1rem auto .24rem;
    width: 6.94rem;
    z-index: 0;

    &::after {
      content: '';
      position: absolute;
      background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/card-matching.png) center top;

      background-size: cover;
      background-repeat: no-repeat;
      width: 4rem;
      height: 100%;
      bottom: 0;
      right: 0;
    }

    .press-match-item__inner {
      padding: .22rem 0 .22rem .26rem;
    }
  }

  .press-match-item__inner {
    flex: 1;
    max-width: 100%;
    padding: .4rem 0 .22rem .26rem;
    overflow: hidden;
  }
}

.press-match-item__living {
  position: absolute;
  display: block;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/card-top--living.png) center top;
  background-size: cover;
  background-repeat: no-repeat;
  width: 7.1rem;
  height: 2.84rem;

  z-index: -1;
  top: -.9rem;

  left: 50%;
  margin-left: -3.55rem;
}

.press-match-item__living-none {
  display: none;
}

@keyframes line {
  from {
    height: 0;
  }

  to {
    height: .2rem;
  }
}

.press-match-item__living-icon {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: .26rem;
  height: .2rem;

  position: absolute;
  top: .48rem;

  left: 1.28rem;

  .press_line,
  span {
    background: $color-white;
    width: .02rem;
    border-radius: .02rem;

    &:nth-child(1) {
      animation: line .6s infinite ease-in-out alternate;
    }

    &:nth-child(2) {
      animation: line .6s .2s infinite ease-in-out alternate;
    }

    &:nth-child(3) {
      animation: line .6s .4s infinite ease-in-out alternate;
    }

    &:nth-child(4) {
      animation: line .6s .6s infinite ease-in-out alternate;
    }

    &:nth-child(5) {
      animation: line .6s .8s infinite ease-in-out alternate;
    }
  }
}

.press-match-item__label {
  position: absolute;
  top: -.02rem;
  left: -.02rem;
  height: .32rem;
  padding-right: .24rem;
  padding-left: .08rem;
  line-height: .32rem;
  color: $color-white;
  font-size: $font-xs;
  font-style: normal;
  text-align: center;
  background: $color-orange;
  clip-path: polygon(0 0, 100% 0%, 80% 100%, 0% 100%);
  z-index: 3;

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

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

  &--gray {
    background: #9a9a9a;
    color: #fff;
  }

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

.press-match-item__inner {
  .tip-toc-commbtn {
    margin: .24rem auto 0;
  }
}

.press-match-item__title {
  height: .4rem;
  font-size: $font-m;
  line-height: .4rem;
  color: $color-black-2;
  font-weight: 400;
  max-width: 80%;

  &.white-title {
    color: $color-white;
  }

  &.no-bold {
    font-weight: normal;
  }

  &.press-match-item__title--link {
    position: relative;
    font-weight: bold;
  }

  p {
    max-width: 100%;
    font-weight: 400;

    @include inline-vertical-content;
  }
}

.press-match-item__labels {
  margin: .1rem 0 .08rem;
  flex-shrink: 0;
  flex-wrap: wrap;

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

  .press_icon-box,
  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;
    margin-bottom: .08rem;

    &.press-match-item__tag--purple {
      color: #4712b8;
    }

    &.press-match-item__tag--green {
      color: #158c56;
    }
  }

  .press-match-item__tag-purple-bg {
    background: #5300c3;
    color: #fff;
  }
}

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

  .press_img,
  img {
    width: .4rem;
    height: .4rem;
    display: block;
    margin-right: .08rem;
    flex-shrink: 0;
  }

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

.press-match-item__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(252, 252, 252, .6);
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-item-bg.png) no-repeat;
  background-size: cover;
}

.press-match-item.press-match-item--living .press-match-item__main {
  background: linear-gradient(0deg, rgba(230, 234, 239, .9) 10.72%, #e3e1f3 94.4%);
}
// 按钮  -- start
.press__operations {
  display: flex;
  justify-content: center;
  margin: 0 auto .24rem;
  z-index: 100;
  position: relative;

  .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: '';
      font-family: auto;
    }
  }
}

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

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

.press__gp-button--primary {
  font-weight: normal;

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

.press__icon--share {
  width: .38rem;
  height: .38rem;
  background: url(https://image-1251917893.file.myqcloud.com/gp-match-h5/img/selfmatch/share-icon.png) center center no-repeat;
  background-size: .36rem .36rem;
  position: absolute;
  top: 0;
  right: 0;
  padding: .24rem;
  z-index: 100;
  box-sizing: content-box;
}

.t-overflow {
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow: hidden;
}

// 主理人赛事
.press__manager {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .26rem 0 .24rem;
  margin: 0 .28rem;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: .03rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/manager-detail-line.png) no-repeat;
    background-size: 100%;
  }

  .press__manager-detail {
    display: flex;
  }

  .press__manager-detail--avatar {
    position: relative;
    width: .56rem;
    height: .56rem;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 200%;
      border: 1px solid #212124;
      transform-origin: 0 0;
      transform: scale(.5);
      pointer-events: none;
      z-index: 2;
    }

    .press_avatar-img,
    img {
      width: .56rem;
      height: .56rem;
    }
  }

  .press__manager-info {
    margin-left: .08rem;
  }

  .press__manager-detail--name {
    font-size: .24rem;
    color: #212124;
    max-width: 2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
  }

  .press__manager-detail--title {
    font-size: .2rem;
    color: rgba(33, 33, 36, .4);
  }

  .press__manager-detail--grade {
    position: relative;

    .press_grade-img,
    img {
      position: relative;
      top: -.04rem;
      width: 1.14rem;
      height: .4rem;
    }
  }

  .press__manager-button--primary {
    width: 2rem;
    height: .5rem;
    line-height: .5rem;
    text-align: center;
    font-size: .22rem;
    color: #212124;
    font-family: 'MStiffHeiPRC';
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-200.png) no-repeat;
    background-size: 100%;
    z-index: 2;
  }

  .press__manager-button--secondary {
    width: 2rem;
    height: .5rem;
    line-height: .5rem;
    text-align: center;
    font-size: .22rem;
    color: #fff;
    font-family: 'MStiffHeiPRC';
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/bg-btn-black-200.png) no-repeat;
    background-size: 100%;
    z-index: 2;
  }
}

::v-deep .press_pay-tips {
  padding-bottom: .2rem;
  color: #212124;
  text-align: center;
  font-size: .24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;

  .press_pay-text-active {
    color: #d54941;
    padding-left: .1rem;
  }

  .icon-back {
    font-size: .2rem;
    transform: rotate(180deg);
    margin-left: .08rem;
  }
}

::v-deep .press-count-down {
  color: #d54941;
  font-size: .24rem;
  line-height: normal;
}

.press-img-border {
  position: relative;
  width: 1.64rem;
  height: 1.64rem;
  border-radius: 50%;
  margin-right: .3rem;

  /* 确保内容被裁剪成圆形 */
  overflow: hidden;
}

.press-gradient-border {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: .3rem;

  /* 确保内容不会溢出圆角 */
  overflow: hidden;

  /* 渐变色 */
  background: linear-gradient(-45deg, #d79239 15%, #fbf0da 45%, #d79239 100%);

  /* 边框的圆角 */
  border-radius: 50%;
}

.press-match-item__image {
  position: relative;
  width: 1.64rem;
  height: 1.64rem;

  /* 内部元素的圆角 */
  border-radius: 50%;
  z-index: 1;
}

.press__icon-dot-share {
  width: .38rem;
  height: .38rem;
  background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/icon-dot-share.png) center center no-repeat;
  background-size: .36rem .36rem;
  position: absolute;
  top: 0;
  right: 0;
  padding: .24rem;
  z-index: 101;
  box-sizing: content-box;
}

.press_more-menu {
  position: absolute;
  width: 2.08rem;
  min-height: .68rem;
  background: rgba(0, 0, 0, .8);
  z-index: 101;
  top: .75rem;
  right: .1rem;

  .press_more-menu-btn {
    color: #fff;
    font-size: .28rem;
    font-weight: 400;
    width: 2.08rem;
    height: .68rem;
    box-sizing: border-box;
    padding: .06rem .24rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    .iconfont {
      margin-right: .16rem;
    }
  }

  &::after {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    top: -.12rem;
    right: .2rem;
    border-style: solid;
    border-width: 0 .11rem .12rem .11rem;
    border-color: transparent transparent rgba(0, 0, 0, .8) transparent;
  }

  .press_menu-text {
    margin: 0;
    font-size: .24rem;
  }
}