$deviceWidth: 750;

@function vmin($rpx) {
    @return #{$rpx * 100 / $deviceWidth}vmin;
}

@mixin red-packet-content {
  padding-top: vmin(31.5);
  padding: vmin(48) vmin(32) 0;

  .red-packet-item{
    border: 0 solid rgba(0.5920000076293945, 0.5920000076293945, 0.5920000076293945, 1);
    background: rgba(255,255,255,1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: vmin(96);
    line-height: vmin(96);
    padding:0 vmin(31.5) ;
    color: #333;
    font-size: vmin(28);
    border-radius: vmin(16);

    .label {
      display: flex;
      align-items: center;

      .pin{
        display: inline-block;
        color: #fff;
        font-size: vmin(20);
        width:vmin(36);
        height: vmin(31.5);
        border-radius:vmin(7.5);
        opacity: 1;
        margin-left:vmin(7.5);
        border: 0 solid rgba(0.5920000076293945, 0.5920000076293945, 0.5920000076293945, 1);
        background: rgba(240,181,95,1);
        text-align: center;
        line-height: vmin(31.5);
      }

    }

    .password-input {
      input {
        width: vmin(360);
        margin-right: 0 !important;
      }
    }

    .input{
      display: flex;
      align-items: center;

      input{
        text-align: right;margin-right:vmin(7.5);
      }

      .input-placeholder{
        color: #ccc;
      }

      .blur-input{
        text-align: right;margin-right:vmin(7.5);
  
        input{
          text-align: right;margin-right:vmin(7.5);
        }
  
      }
  
      .placeholder {
        color: #CFCFCF;
      }

      .illegalMoney,.illegalNum{
        color: #FF4747;
      }

    }
    
    .label {
      display: flex;
      align-items: center;
    }

    .red-packet-text{
      width: 100%;
      line-height: vmin(41.25);
      padding: vmin(22.5) 0;

      .placeholder {
        color: #CFCFCF;
      }

      .input-placeholder{
        color: #ccc;
      }

    }

  }

  .item-border-top{
    border-radius: vmin(16) vmin(16) 0 0;
  }

  .item-border-bottom{
    border-radius: 0 0 vmin(16) vmin(16);

  }

  .red-packet-type{
    padding:vmin(8) vmin(32) vmin(24);
    height: vmin(32);
    font-size: vmin(24);
    font-weight: 400;

    .EC3{
      color: #999999;
    }
    .EC4{
      color: #F0B55F;
    }

  }

  .line{
    height: 1;
    border-top: vmin(2) solid #F5F6F9;
    margin:0 vmin(32);
    width: calc(100% - 8.5vmin);
  }
  
}

@mixin red-packet-money {
  padding: vmin(48) 0 vmin(82);
  display: flex;
  flex-direction: column;
  align-items: center;

  .money{
    display: flex;
    flex-direction: row;
    font-size: vmin(80);
    line-height: vmin(80);
    color: #333333;
    font-family: "PingFang SC";
    font-style: normal;
    font-weight: 600;
    align-items: baseline;
    margin-bottom: vmin(32);

    .money-icon,.points-text{
      text-align: center;
      font-family: "PingFang SC";
      font-size: vmin(48);
      font-style: normal;
      font-weight: 500;
      line-height: vmin(48);
    }
    .points-text{
      margin-left: vmin(4);
    }


  }

  .put-money-btn{
    width: vmin(510);
    height: vmin(80);
    line-height: vmin(80);
    border-radius: vmin(44);
    opacity: 1;
    color: #fff;
    text-align: center;
    font-size: vmin(28);
    border: 0 solid rgba(0.5920000076293945, 0.5920000076293945, 0.5920000076293945, 1);
    background: linear-gradient(90deg, rgba(255,73,83,1) 0%, rgba(255,101,77,1) 50%, rgba(255,129,71,1) 100%);
    margin-bottom: vmin(26);
  }

  .disable{
    opacity: 0.3;
  }

  .money-time-tip{
    font-size: vmin(24);
  }

  .EC3{
    color: #999999;
  }

}

.red-packet-content {
  @include red-packet-content
}

.red-packet-money {
  @include red-packet-money
}


// 竖屏pad
@media screen and (min-width: 768px) and (orientation: portrait) {
  $deviceWidth: 1536 !global;

  .red-packet-content {
    @include red-packet-content
  }
  
  .red-packet-money {
    @include red-packet-money
  }
  
}


// PC 放大适配
@media screen and (min-height: 630px) and (orientation: landscape) {
  $deviceWidth: 1260 !global; 

  .red-packet-content {
    @include red-packet-content
  }
  
  .red-packet-money {
    @include red-packet-money
  }

}

// 横屏pad
@media screen and (min-height: 768px) and (orientation: landscape) {
  $deviceWidth: 1536 !global;

  .red-packet-content {
    @include red-packet-content
  }
  
  .red-packet-money {
    @include red-packet-money
  }

}
