@mixin nowrap {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

@mixin btnReceive {
  background: #ecc568;
  border: 1px solid #fae26e;
  border-top: 1px solid #fdf5ce;
  color: #5a350a;
  user-select: none;
}

@mixin btnDisable {
  background: transparent;
  color: rgba(0, 0, 0, .3);
}

@mixin btnUse {
  background: #6f80a3;
  border: 1px solid #7ca0d8;
  border-top: 1px solid #a1c5dd;
  color: #cdd1d6;
}

.press__image {
  width: 100%;
  height: 100%;
}

.press-act-merchant-item--big {
  .press__main {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/ticket-bg-big.png) center center no-repeat;
    background-size: 4.2rem 2.4rem;
    width: 4.2rem;
    height: 2.4rem;
    overflow: hidden;
    position: relative;
  }

  .press__top {
    display: flex;
    justify-content: flex-start;
    padding: .08rem 0 0 .08rem;

    .press__avatar {
      width: .28rem;
      height: .28rem;

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

    .press__name {
      font-size: .2rem;
      line-height: .28rem;
      padding: 0 0 0 .08rem;
      max-width: 3.3rem;
      @include nowrap;
    } 
  }

  .press__swipe-image {
    width: auto;
    height: auto;
    max-width: 3.6rem;
    max-height: 1.28rem;
    display: block;
    margin: 0 auto;
  }

  .press__swipe-bottom {
    position: absolute;
    display: flex;
    justify-content: flex-start;
    bottom: 0;
    color: #e4b853;
    font-size: .24rem;
    padding: .1rem .2rem;

    .press__swipe-name {
      width: 2.4rem;
      @include nowrap;
    }
  }

  .press__card-bottom {
    position: absolute;
    height: .56rem;
    bottom: 0;
    right: 0;
    color: #5a350a;
    font-size: .22rem;
    text-align: center;
    width: 1.44rem;
    margin: 0;

    .press__card-desc {
      display: none;
    }

    .press__button--receive {
      width: 1.44rem;
      height: .56rem;
      line-height: .56rem;
      background: url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/btn-bg--receive-big.png') center center no-repeat;
      background-size: 100% 100%;
    }

    .press__button--use {
      width: 1.44rem;
      height: .56rem;
      line-height: .56rem;
      background: url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/btn-bg--use-big.png') center center no-repeat;
      background-size: 100% 100%;
      color: #cdd1d6;
    }

    .press__button--disable {
      width: 1.44rem;
      height: .56rem;
      line-height: .55rem;
      color: rgba(255, 255, 255, .5);
    }
  }

  .press__icon--hot {
    position: absolute;
    top: 0;
    right: -.1rem;
    color: #fff;
    background: #88d1ae;
    width: .6rem;
    height: .26rem;
    -webkit-transform: skewX(15deg);
    transform: skewX(15deg);
    line-height: .26rem;
    font-size: .18rem;
    padding: 0 0 0 .06rem;

    &::after {
      content: '高校';
      display: block;
      transform: skewX(-15deg);
    }
  }
}

.press-act-merchant-item--small {
  .press__main {
    position: relative;
    background: url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/ticket-bg-sm.png') center center no-repeat;
    background-size: 100% 100%;
    width: 2.06rem;
    height: 2.4rem;
  }

  .press__swipe-image {
    width: auto;
    height: auto;
    max-width: .96rem;
    max-height: .96rem;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
  }

  .press__swipe-bottom {
    position: relative;
    display: flex;
    justify-content: flex-start;
    bottom: 0;
    color: #d2792a;
    font-size: .24rem;
    padding: .1rem .2rem;

    .press__swipe-name {
      width: 2.4rem;
      text-align: center;
      @include nowrap;
    }
  }

  .press__card-bottom {
    position: absolute;
    height: .55rem;
    bottom: 0;
    right: 0;
    color: #5a350a;
    font-size: .22rem;
    text-align: center;
    width: 100%;
    margin: 0;

    .press__card-desc {
      display: none;
    }

    .press__button--receive {
      width: 100%;
      height: .55rem;
      text-align: center;
      line-height: .55rem;
      background: url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/btn-bg--receive-sm.png') center center no-repeat;
      background-size: 100% 100%;
    }

    .press__button--use {
      width: 100%;
      height: .55rem;
      text-align: center;
      line-height: .55rem;
      background: url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/btn-bg--use-sm.png') center center no-repeat;
      background-size: 100% 100%;
    }

    .press__button--disable {
      width: 100%;
      height: .55rem;
      text-align: center;
      line-height: .55rem;
      color: rgba(0, 0, 0, .5);
    }
  }

  .press__top {
    display: flex;
    justify-content: flex-start;
    padding: .08rem 0 0 .08rem;

    .press__avatar {
      width: .28rem;
      height: .28rem;

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

    .press__name {
      font-size: .2rem;
      line-height: .28rem;
      padding: 0 0 0 .08rem;
      @include nowrap;
      max-width: 1.56rem;
      text-align: center;
    } 
  }
}

.press-act-merchant-item--brand {
  .press__main {
    position: relative;
    background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/brand-bg.png') center bottom no-repeat;
    background-size: 2.06rem 2.2rem;
    width: 2.06rem;
    height: 2.36rem;

    .press__icon--college {
      top: .16rem!important;
    }
  }

  .press__swipe-image {
    display: none;
  }

  .press__swipe-name {
    color: #d2792a;
    font-size: .2rem;
    width: 100%;
    height: .28rem;
    line-height: .28rem;
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    @include nowrap;
  }

  .press__name {
    color: #3a434a;
    font-size: .24rem;
    width: 100%;
    word-break: break-all;
    margin: .06rem auto .06rem;
    max-width: 80%;
    text-align: center;
    @include nowrap;
  }

  .press__avatar {
    width: .92rem;
    height: .92rem;
    border-radius: 50%;
    border: 1px solid #e8f5f4;
    overflow: hidden;
    background: #fff;
    margin: 0 auto;

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

  .press__icon--hot {
    position: absolute;
    top: 0;
    right: -.1rem;
    color: #fff;
    background: #88d1ae;
    width: .6rem;
    height: .26rem;
    -webkit-transform: skewX(15deg);
    transform: skewX(15deg);
    line-height: .26rem;
    font-size: .18rem;
    padding: 0 0 0 .06rem;

    &::after {
      content: '高校';
      display: block;
      transform: skewX(-15deg);
    }
  }

  .press__card-desc {
    display: none;
  }

  .press__button--receive {
    width: 1.08rem;
    height: .4rem;
    line-height: .4rem;
    font-size: .22rem;
    text-align: center;
    @include btnReceive;
    margin: .14rem auto 0;
  }

  .press__button--use {
    width: 1.08rem;
    height: .4rem;
    line-height: .4rem;
    font-size: .22rem;
    text-align: center;
    @include btnUse;
    margin: .14rem auto 0;
  }

  .press__button--disable {
    width: 1.08rem;
    height: .4rem;
    line-height: .4rem;
    font-size: .22rem;
    text-align: center;
    @include btnDisable;
    margin: .14rem auto 0;
  }
}

.press-act-merchant-item--like {
  width: 4.2rem;
  height: 1.12rem;
  margin: 0 .08rem .08rem 0;

  .press__main {
    background: url(https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/like-bg.png) center bottom no-repeat;
    background-size: 4.2rem 1.12rem;
    width: 4.2rem;
    height: 1.12rem;
    position: relative;
  }

  .press__top {
    display: flex;
    align-items: flex-end;
    padding: .24rem 0 .2rem .2rem;
  }

  .press__name {
    width: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .press__swipe-image {
    display: none;
  }

  .press__merchant {
    margin: 0 .08rem 0 0;
  }

  .press__swipe-name {
    color: #d2792a;
    font-size: .24rem;
    line-height: .34rem;
    height: .34rem;
    width: 2.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .press__avatar {
    width: .64rem;
    height: .64rem;
    border: .02rem solid #e2edf0;
    background: #fff;

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

  .press__swipe-bottom {
    position: absolute;
    top: .2rem;
    left: .96rem;
  }

  .press__name {
    font-size: .2rem;
    padding: 0 0 0 .12rem;
    color: #3a434a;
    height: .2rem;
    line-height: .2rem;
  }

  .press__card-bottom {
    position: absolute;
    bottom: .16rem;
    right: .28rem;

    .press__card-desc {
      display: none;
    }

    .press__button--use {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      @include btnUse;
      margin: .14rem auto 0;
    }

    .press__button--receive {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      @include btnReceive;
      margin: .14rem auto 0;
    }

    .press__button--disable {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      @include btnDisable;
      margin: .14rem auto 0;
    }
  }
}

.press-act-merchant-item--priority {
  width: 4.2rem;
  height: 1.64rem;
  margin: 0 .08rem .08rem 0;

  .press__main {
    background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/brand-priority-bg.png') center bottom no-repeat;
    background-size: 4.2rem 1.64rem;
    width: 4.2rem;
    height: 1.64rem;
    position: relative;
  }

  .press__top {
    width: 1.44rem;
    height: 1.6rem;
    padding: .24rem 0 0 0;
  }

  .press__name {
    width: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: .2rem;
    color: #fff;
    height: .2rem;
    line-height: .2rem;
    margin: .1rem auto 0;
    width: 80%;
    @include nowrap;
  }

  .press__swipe-image {
    display: none;
  }

  .press__merchant {
    margin: 0 .08rem 0 0;
  }

  .press__swipe-name {
    color: #d2792a;
    font-size: .24rem;
    line-height: .34rem;
    height: .34rem;
    width: 2.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .press__avatar {
    width: .72rem;
    height: .72rem;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto;
    background: #fff;

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

  .press__swipe-bottom {
    position: absolute;
    top: .36rem;
    right: .34rem;
  }

  .press__card-bottom {
    position: absolute;
    bottom: .3rem;
    right: .34rem;

    .press__card-desc {
      display: none;
    }

    .press__button--use {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      margin: .14rem auto 0;
      @include btnUse;
    }

    .press__button--receive {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      margin: .14rem auto 0;
      @include btnReceive;
    }

    .press__button--disable {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      margin: .14rem auto 0;
      @include btnReceive;
    }
  }
}

.press-act-merchant-item--priority-brand {
  background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/food-bg.png') center center no-repeat;
  background-size: 100% 100%;
  width: 2.06rem;
  height: 2.4rem;

  .press__top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: .08rem;

    .press__avatar {
      width: .24rem;
      height: .24rem;
      margin: 0 .1rem 0 0;

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

    .press__name {
      color: #3a434a;
      font-size: .2rem;
      width: 1rem;
      @include nowrap;
    }
  }

  .press__swipe-image {
    display: block;
    width: .96rem;
    height: .96rem;
    margin: 0 auto;
  }

  .press__swipe-bottom {
    color: #d2792a;
    text-align: center;
    font-size: .24rem;
    width: 1.6rem;
    margin: 0 auto;

    .press__swipe-name {
      @include nowrap;
    }
  }

  .press__card-bottom {
    .press__card-desc {
      display: none;
    }

    .press__button--receive {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      @include btnReceive;
      margin: .18rem auto 0;
    }

    .press__button--disable {
      width: 1.08rem;
      height: .4rem;
      line-height: .4rem;
      font-size: .22rem;
      text-align: center;
      @include btnDisable;
      margin: .18rem auto 0;
    }
  }
}

.press-act-merchant-item--priority-video {
  .press__main {
    background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/video-bg.png') center 
      center no-repeat;
    background-size: 100% 100%;
    width: 2.74rem;
    height: 1.66rem;
    position: relative;
  }

  .press__top {
    display: flex;
    padding: .16rem .12rem;

    .press__avatar {
      width: .62rem;
      height: .62rem;
      overflow: hidden;
      border-radius: .14rem;

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

  .press__swipe-image {
    display: none;
  }

  .press__swipe-bottom {
    position: absolute; 
    top: .5rem;
    left: .84rem;

    .press__swipe-name {
      color: #d2792a;
      font-size: .2rem;
    }
  }

  .press__name {
    font-size: .24rem;
    line-height: .18rem;
    padding: .06rem 0 0 .1rem;
  }

  .press__card-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: .58rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 .12rem;

    .press__card-desc {
      width: 1.02rem;
      height: .22rem;
      line-height: .22rem;
      background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/bg-desc-mask.png') center center no-repeat;
      background-size: 100% auto;
      color: #737a80;
      font-size: .18rem;
      position: absolute;
      bottom: .18rem;
      left: .12rem;
    }
  }

  .press__button--receive {
    width: 1.08rem;
    height: .4rem;
    line-height: .4rem;
    font-size: .22rem;
    text-align: center;
    @include btnReceive;

  }
}

// 右侧icon 高校认证标签
.press__icon--college {
  background: url('https://image-1251917893.file.myqcloud.com/tip-privilege-Merchant/gp3/gaoxiao-tag.png') center center no-repeat;
  background-size: contain;
  width: .54rem;
  height: .26rem;
  position: absolute;
  top: 0;
  right: 0;
}

.press__icon--star-vip {

}

.press__icon--hot {

}

.press__icon--vip {

}
