
.iphonex-fix-padding {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}
.iphonex-fix-margin {
  margin-bottom: constant(safe-area-inset-bottom);
  margin-bottom: env(safe-area-inset-bottom);
}


.countdown-mixin(@txtColor, @bgColor, @colonColor, @txtSize, @txtWeight) {
  .cr-count-down {
    font-size: 10px;
    span {
      box-sizing: border-box;
      display: inline-block;
      text-align: center;
      height: @txtSize;
      line-height: @txtSize+1;
      font-weight: @txtWeight;
    }
  }
  .block {
    background-color: @bgColor;
    color: @txtColor;
    border-radius: 3.2px;
    width: @txtSize;
  }
  .colon {
    color: @colonColor;
    width: 12px;
    margin: 0 2px;
  }
}
.through-line-mixin(@color) {
  position: relative;
  &:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5%;
    margin: auto;
    width: 110%;
    height: 1px;
    background-color: @color;
  }
}

.border-divider-y(@left: 0; @right: inherit; @color: @grey-border) {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: @color;
    top: 0;
    left: @left;
    right: @right;
    transform: scaleX(0.5);
  }
}

// 边框1像素问题
.mx_order_one(@color: @black, @type: solid, @bRadius: @border-radius-md) {
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px @type @color;
    border-radius: @bRadius;
    transform: scale(1, 1);
    transform-origin: top left;
  }

  @media screen and (-webkit-min-device-pixel-ratio: 2) {
    &::after {
      transform: scale(0.5, 0.5);
      width: 200%;
      height: 200%;
      border-radius: calc(@bRadius * 2);
    }
  }
  @media screen and (-webkit-min-device-pixel-ratio: 3) {
    &::after {
      transform: scale(0.33, 0.33);
      width: 300%;
      height: 300%;
      border-radius: calc(@bRadius * 3);
    }
  }
}
// 多行...
.mx_multline_overwrite(@line: 2) {
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: @line;
  -webkit-box-orient: vertical;
}
.title-mixin {
  color: #999;
  font-size: 14px;
  line-height: 18px;
}
