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

@mixin btnReceive {
  width: 1.38rem;
  height: .46rem;
  line-height: .46rem;
  text-align: center;
  color: #cdbe91;
  font-size: .24rem;
  border: 1px solid #bea369;
  background: linear-gradient(180deg, #14181c 0%, #212325 100%);
  user-select: none;
}

@mixin btnDisable {
  width: 1.38rem;
  height: .46rem;
  line-height: .46rem;
  text-align: center;
  color: #f0e6d2;
  font-size: .24rem;
  border: 1px solid #96928b;
  background: linear-gradient(180deg, #505459 0%, #2d3034 100%);
}

@mixin btnUse {
  width: 1.38rem;
  height: .46rem;
  line-height: .46rem;
  text-align: center;
  color: #f0e6d2;
  font-size: .24rem;
  border: 1px solid #bea369;
  background: linear-gradient(180deg, #151b21 0%, #3a382d 100%);
}

/* 大号轮播 item */
.press-act-merchant-item--big {
  .press__main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4.08rem;
    height: 2.8rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/prize-bg--big.png) center/100% 100% no-repeat;
  }

  .press__top {
    position: absolute;
    top: .05rem;
    left: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    height: .54rem;
    padding-left: .2rem;

    .press__image {
      width: .32rem;
      height: .32rem;
      margin-right: .08rem;
      border-radius: 50%;
    }

    .press__name {
      overflow: hidden;
      width: 2.8rem;
      color: #fff;
      font-size: .24rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .press__swipe-image {
    width: auto;
    max-width: 1.28rem;
    height: auto;
    max-height: 1.28rem;
    border-radius: 50%;
    border: 2px solid #bea369;
    background: #531717;
  }

  .press__swipe-bottom {
    position: absolute;
    bottom: .08rem;
    left: .08rem;
    height: .46rem;
    line-height: .46rem;
  }

  .press__swipe-name {
    display: inline-block;
    overflow: hidden;
    width: 2.58rem;
    height: .46rem;
    padding-left: .2rem;
    margin: 0 auto;
    color: #d7c095;
    font-size: .24rem;
    line-height: .46rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-top: 1px solid #a48548;
    border-right: 1px solid #a48548;
    background: #531717;
    font-size: .2rem;
  }

  .press__swipe-desc {
    overflow: hidden;
    width: 2rem;
    height: .3rem;
    margin: 0 auto;
    color: #ecd59c;
    font-size: .2rem;
    line-height: .3rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .press__card-bottom {
    position: absolute;
    bottom: .08rem;
    right: .08rem;
    display: flex;
    justify-content: center;
    align-items: center;
    // width: 100%;
    height: .46rem;

    .press__card-desc {
      display: none;
    }
  }

  .press__button--receive {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #cdbe91;
    font-size: .24rem;
    border: 1px solid #bea369;
    background: linear-gradient(180deg, #14181c 0%, #212325 100%);
  }
  
  .press__button--use {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #f0e6d2;
    font-size: .24rem;
    border: 1px solid #bea369;
    background: linear-gradient(180deg, #151b21 0%, #3a382d 100%);
  }

  .press__button--disable {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #f0e6d2;
    font-size: .24rem;
    border: 1px solid #96928b;
    background: linear-gradient(180deg, #505459 0%, #2d3034 100%);
  }
}

/*  小号轮播 item */
.press-act-merchant-item--small {
  .press__main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 2.06rem;
    height: 2.8rem;
    background-image: url(https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/prize-bg--small.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .press__top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: auto;
    height: .54rem;
    padding-left: .2rem;

    .press__image {
      width: .32rem;
      height: .32rem;
      margin-right: .08rem;
      border-radius: 50%;
    }

    .press__name {
      overflow: hidden;
      width: .8rem;
      color: #ecd59c;
      font-size: .2rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .press__swipe-image {
    width: auto;
    height: .8rem;
    margin: .14rem auto 0;
  }

  .press__card-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: .46rem;

    .press__card-desc {
      display: none;
    }
  }

  .press__swipe-name {
    overflow: hidden;
    width: 2rem;
    height: .46rem;
    margin: 0 auto;
    color: #cdb463;
    font-size: .2rem;
    line-height: .46rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 .1rem;
  }

  .press__swipe-desc {
    overflow: hidden;
    width: 2rem;
    height: .3rem;
    margin: 0 auto;
    color: #ecd59c;
    font-size: .2rem;
    line-height: .3rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .press__button--receive {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #cdbe91;
    font-size: .24rem;
    border: 1px solid #bea369;
    background: linear-gradient(180deg, #14181c 0%, #212325 100%);
  }
  
  .press__button--use {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #f0e6d2;
    font-size: .24rem;
    border: 1px solid #bea369;
    background: linear-gradient(180deg, #151b21 0%, #3a382d 100%);
  }

  .press__button--disable {
    width: 1.38rem;
    height: .46rem;
    line-height: .46rem;
    text-align: center;
    color: #f0e6d2;
    font-size: .24rem;
    border: 1px solid #96928b;
    background: linear-gradient(180deg, #505459 0%, #2d3034 100%);
  }
}

/* 品牌 item */
.press-act-merchant-item--brand {
  .press__main {
    background: url('https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/prize-bg--brand.png') center bottom no-repeat;
    background-size: 100% 100%;
    width: 2.06rem;
    height: 2.32rem;
  }

  .press__swipe-image {
    display: none;
  }

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

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

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

    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }

  .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 {
  .press__main {
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/prize-bg--toolike.png) center bottom no-repeat;
    background-size: 100% 100%;
    width: 4.3rem;
    height: 1.12rem;
    position: relative;
  }

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

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

  .press__swipe-image {
    display: none;
  }

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

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

  .press__avatar {
    width: .64rem;
    height: .64rem;
    border: .02rem solid #bea369;
    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: #cdb463;
    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-brand {
  background: url('https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/prize-bg--brand.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: .1rem .1rem 0 0;
      border-radius: 50%;

      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
      }
    }

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

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

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

    .press__swipe-name {
      @include nowrap;
    }
  }

  .press__card-bottom {
    .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: .12rem auto 0;
    }

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

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


/* 右侧角标 icon */
.press__main {
  position: relative;

  .press__icon--college {
    position: absolute;
    top: .08rem;
    right: .05rem;
    width: .54rem;
    height: .25rem;
    background: url(https://image-1251917893.file.myqcloud.com/tip-project/lgame/igame-lolm/newstyle/gaoxiao-icon.png) center/100% auto no-repeat;
    
  }


  // .press__icon--vip {
  //   position: absolute;
  //   top: 0;
  //   right: 0;
  //   width: .64rem;
  //   height: .64rem;
  //   background: url(https://image-1251917893.file.myqcloud.com/igame/tip-wsq/images/vip-icon.png) center/100% 100% no-repeat;
  // }

  // .press__icon--hot {
  //   position: absolute;
  //   top: 0;
  //   right: .1rem;
  //   width: .3rem;
  //   height: .6rem;
  //   background: url(https://image-1251917893.file.myqcloud.com/igame/tip-wsq/images/hot-tag.png) center/100% auto no-repeat;
  // }

  // .press__icon--star-vip {
  //   position: absolute;
  //   top: 0;
  //   right: .1rem;
  //   width: .38rem;
  //   height: .98rem;
  //   background: url(https://image-1251917893.file.myqcloud.com/igame/common/image/star-vip.png) center/100% auto no-repeat;
  // }
}
