$deviceWidth: 750;

@function vmin($rpx) {
    @return #{$rpx * 100 / $deviceWidth}vmin;
}

@mixin scroll-box {
  padding: 0 vmin(32);
  box-sizing: border-box;
  height: vmin(878);
}

@mixin horizontal {
  height: vmin(662);
}

@mixin detail-box {
  padding-top: vmin(48);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;

  .detail-header {
    text-align: center;

    .detail-top{
      display: flex;
      align-items: center;
      justify-content: center;
      height: vmin(64);
      margin-bottom: vmin(8);
      padding: 0 vmin(50);
      box-sizing: border-box;

      .avater{
        width: vmin(64);
        height: vmin(64);
        border-radius: 50%;
        margin-right: vmin(12);
        flex-shrink: 0;
      }

      .person{
        color: #333333;
        font-size: vmin(36);
        display: flex;

        .name{
          max-width: vmin(285);
          font-weight: 500;
          margin-right: vmin(8);
          overflow: hidden;
          text-overflow: ellipsis;
          line-clamp: 1;
          white-space: nowrap;
        }

      }

      .pin{
        display: inline-block;
        color: #fff;
        font-size: vmin(20);
        width: vmin(36);
        height: vmin(32);
        border-radius: vmin(8);
        opacity: 1;
        margin-left: vmin(8);
        border: 0 solid rgba(0.5920000076293945, 0.5920000076293945, 0.5920000076293945, 1);
        background: rgba(240,181,95,1);
        text-align: center;
        line-height: vmin(32);
        flex-shrink: 0;
      }

    }

    .desc{
      font-size: vmin(28);
      color: #999;
      margin: 0 vmin(113) vmin(48) vmin(113);
    }

  }

  .detail-state{
    font-size: vmin(24);
    color: #999999;
    margin-bottom: vmin(8);
  }
  
  .detail-list{
    border-radius: vmin(16);
    overflow: hidden;

    .detail-wrap{
      background: #fff;
      padding: 0 vmin(32);

      .detail-item{
        display: flex;
        justify-content: space-between;
        padding: vmin(21) 0;
        box-sizing: border-box;

        .middle{
          display: flex;

          .avater{
            width: vmin(80);
            height: vmin(80);
            border-radius: 50%;
            margin-right: vmin(24);
          }

          .nickname{
            font-size: vmin(28);
            width: vmin(203);
            margin-bottom: vmin(8);
            color: #333;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space:nowrap;
          }

          .time{
            font-size: vmin(28);
            color: #999999;
            font-weight: 400;
            font-family: "PingFang SC";
          }

        }

        .right {
          position: relative;

          .money{
            font-size: vmin(28);
            margin-bottom: vmin(8);
            color: #333333;
            text-align: right;
            font-weight: 500;
            font-family: "PingFang SC";
          }

          .best{
            color: #E6AE5B;
            white-space: nowrap;
            font-size: vmin(28);
            position: absolute;
            right: 0;
            display: flex;
            align-items: center;

            .best_icon{
              width: vmin(32);
              height: vmin(32);
              margin-right: vmin(8);
            }

          }

        }

      }

    }

    .active{
      // margin-bottom: vmin(17);
      border-bottom: vmin(2) solid #eee;
      width: calc(100% - 0.5vmin);
      // margin:0 vmin(32);

    }



  }


}

@mixin empty {
  width: 100%;
  // height: calc(100% - 37vmin);
  height: vmin(480);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #fff;
  border-radius: vmin(16);
  margin-top: vmin(24);
  margin-bottom: vmin(116);

  .empty_icon{
    width: vmin(176);
    height: vmin(176);
    margin-bottom: vmin(32);
  }

  .empty_text{
    font-size: vmin(32);
    color: #999;
  }

}

.scroll-box {
  @include scroll-box
}

.detail-box {
  @include detail-box
}

.empty {
  @include empty
}

.horizontal {
  @include horizontal
}


// 竖屏pad
@media screen and (min-width: 768px) and (orientation: portrait) {
  $deviceWidth: 1536 !global;

  .scroll-box {
    @include scroll-box
  }

  .detail-box {
    @include detail-box
  }
  
  .empty {
    @include empty
  }

  .horizontal {
    @include horizontal
  }

}

// PC 放大适配
@media screen and (min-height: 630px) and (orientation: landscape) {
  $deviceWidth: 1260 !global; 

  .scroll-box {
    @include scroll-box
  }

  .detail-box {
    @include detail-box
  }
  
  .empty {
    @include empty
  }

  .horizontal {
    @include horizontal
  }

}

// 横屏pad
@media screen and (min-height: 768px) and (orientation: landscape) {
  $deviceWidth: 1536 !global;

  .scroll-box {
    @include scroll-box
  }

  .detail-box {
    @include detail-box
  }
  
  .empty {
    @include empty
  }

  .horizontal {
    @include horizontal
  }

}