@import "./Icon.scss";

@mixin flex($direction: row, $justifyContent: center, $alignItems: center) {
  display: flex;
  flex-direction: $direction;
  justify-content: $justifyContent;
  align-items: $alignItems;
}

.lwj-marketing-mix {
  width: 100%;
  height: 286px;
  box-sizing: border-box;
  .box {
    @include flex();
    border-radius: 13px;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .product {
    @include flex(column, flex-start, center);
    width: 100%;
    height: 100%;
    .img {
      width: 122px;
      height: 141px;
    }
    .price {
      @include flex(row, center, baseline);
      font-weight: bold;
      color: #fb2a1b;
      // width: 42px;
      height: 20px;
      line-height: 30px;
      margin-top: 29px;
      .price-sign {
        font-size: 18px;
      }
      .price-text {
        font-size: 26px;
      }
    }
  }
}
$topColor: rgba(255, 196, 199, 1);
$BottomColor: rgba(0, 212, 255, 0);
@mixin header_bg {
  background-image: url("http://liweijia-test.oss-cn-beijing.aliyuncs.com/site-php/upload/commodity-goods/d0b3ddd330685062926ea03763edca14.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  height: 77px;
}

.lwj-marketing-mix .two-product {
  border-radius: 13px;
  height: 100%;
  width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .header {
    @include header_bg();
    @include flex(row, flex-start, center);

    .left {
      margin-right: 20px;
      margin-left: 20px;
      font-size: 28px;
      font-family: PingFang SC;
      font-weight: 800;
      color: #000000;
    }
    .right {
    }
  }
  .content {
    padding-top: 2px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: row;
  }
}
.lwj-marketing-mix .one-product {
  height: 100%;
  width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .header {
    @include header_bg();
    @include flex(column, flex-start, flex-start);
    .left {
      margin-left: 20px;
      font-size: 28px;
      font-family: PingFang SC;
      font-weight: 800;
      color: #000000;
    }
    .right {
      margin-left: 20px;
      font-size: 24px;
      font-family: PingFang SC;
      font-weight: 500;
      line-height: 30px;
    }
  }
  .content {
    padding-top: 24px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: row;
  }
}

@mixin lwj-bg__label-base($left-color, $right-color) {
  border-radius: 16px;
  border-top-right-radius: 0;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
  height: 33px;
  @include flex(row, flex-start, center);
  position: relative;
  background: linear-gradient(90deg, $left-color 0%, $right-color 100%);
  font-size: 18px;
  font-family: PingFang SC;
  font-weight: 500;
  .icon {
    margin-right: 4px;
    font-size: 18px;
  }

  &:before {
    content: " ";
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 7px;
    background: $right-color;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
  }
  &:after {
    content: " ";
    position: absolute;
    top: 0;
    right: -15px;
    width: 6px;
    height: 6px;
    background: $right-color;
    border-radius: 50%;
  }
}

.lwj-bg__label--orange {
  @include lwj-bg__label-base(#f69b52, #fbc278);
}

.lwj-bg__label--red {
  @include lwj-bg__label-base(#fe2741, #ff5775);
}

.lwj-bg__label--green-blue {
  @include lwj-bg__label-base(#0feaaa, #6dddfa);
}
.lwj-bg__label--pink {
  @include lwj-bg__label-base(#f436a2, #ff7fda);
}

.lwj-countdown {
  background-color: #fff2f2;
  height: 33px;
  border-radius: 16px;
  @include flex(row, flex-start, center);
  .time {
    @include flex(row, flex-start, center);
    padding-right: 8px;
    font-size: 20px;
    font-family: Alibaba PuHuiTi;
    font-weight: bold;
    color: #fb2010;
    height: 100%;
    .time-item {
      margin-right: 2px;
      line-height: 18px;
    }
  }
  .label {
    @include flex();
    flex-shrink: 0;
    font-size: 18px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #ffffff;
    width: 77px;
    height: 100%;
    background-image: url("https://static.liweijia.com/site-php/upload/commodity-goods/e2b0a938a364c9bc85f05acb2fe94017.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
}
