.dec-box-good {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 0 6 * @rpx 2 * @rpx rgba(#000, 0.06);
  overflow: hidden;
  &.radius {
    border-radius: 10 * @rpx;
  }
  //图片默认固定高度有利于加载的时候没有那么难看
  image {
    width: 100%;
    height: 172 * @rpx;
  }
  &.big image {
    height: 240 * @rpx;
  }
  &.small image {
    height: 111 * @rpx;
  }
  .good-img {
    width: 100%;
    margin: 0;
    font-size: 0;
    overflow: hidden;
    position: relative;
    .imgH {
      width: 100%;
      height: 100%;
    }
    .imgW {
      width: 100%;
      height: 100%;
    }
    .mark {
      position: absolute;
      top: 0;
      left: 0;
      background-repeat: no-repeat;
      background-position: top left;
      background-size: 100% auto;
      background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-hot1_1662036462380.png");
      &.hot1 {
        width: 72 * @rpx;
        height: 60 * @rpx;
        background-size: 72 * @rpx auto;
      }
      &.hot2 {
        top: -6px;
        left: -8px;
        width: 60 * @rpx;
        height: 60 * @rpx;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-hot2_1662041742069.png");
      }
      &.hot3 {
        width: 50 * @rpx;
        height: 50 * @rpx;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-hot3_1662041773402.png");
      }
      &.new1 {
        width: 50 * @rpx;
        height: 50 * @rpx;
        background-color: transparent;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-new1_1662036530753.png");
      }
      &.new2 {
        width: 42 * @rpx;
        height: 42 * @rpx;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-new2_1662041796945.png");
      }
      &.new3 {
        width: 52 * @rpx;
        height: 42 * @rpx;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-new3_1662041838785.png");
      }
      &.new4 {
        width: 42 * @rpx;
        height: 42 * @rpx;
        background-image: url("https://cdn.lirimall.com//lirigo/filetempImage/mark-new4_1662041851913.png");
      }
    }
  }
  .good-info {
    padding: 0 10 * @rpx;
  }
  .good-title {
    display: block;
    box-sizing: border-box;
    font-size: @font-base;
    word-break: break-all;
    color: @color-head;
    white-space: wrap;
    padding-top: 10 * @rpx;
  }
  &.big .good-title {
    font-size: @font-middle;
  }
  &.small .good-title {
    font-size: @font-sub;
  }
  .good-desc {
    display: block;
    color: @color-text3;
    font-size: @font-sub;
  }
  &.big .good-desc {
    padding-top: 6 * @rpx;
    font-size: @font-base;
  }
  .none-h {
    height: 10 * @rpx;
  }
  .tag-wrap {
    display: flex;
    flex-wrap: nowrap;
    padding: 0 10 * @rpx;
    > view:first-child {
      margin-left: 0;
    }
  }
  .post-type {
    flex-shrink: 0;
    display: inline-block;
    padding: 0 4 * @rpx;
    border: 1 * @rpx solid #7502f7;
    color: #7502f7;
    font-size: @font-small;
    border-radius: 4 * @rpx;
    margin-top: 6 * @rpx;
    vertical-align: middle;
    margin-left: 4 * @rpx;
    &.no-text {
      padding: 0;
      border-color: transparent;
      margin-left: 0;
      width: 0;
      &::before {
        content: "";
        display: inline-block;
        width: 0;
        height: @font-small;
      }
    }
  }
  .discount-name {
    display: inline-block;
    padding-right: 4 * @rpx;
    border: 1 * @rpx solid @color-theme2;
    color: @color-theme2;
    font-size: @font-small;
    border-radius: 4 * @rpx;
    margin-top: 6 * @rpx;
    vertical-align: middle;
    margin-left: 4 * @rpx;
    &.no-text {
      padding: 0;
      border-color: transparent;
      margin-left: 0;
      width: 0;
      &::before {
        content: "";
        display: inline-block;
        width: 0;
        height: @font-small;
      }
    }
    .flag {
      padding: 0 3 * @rpx;
      background-color: @color-theme2;
      color: #ffffff;
      margin-right: 4 * @rpx;
    }
  }
  .price-wrap {
    .dot {
      font-size: @font-base;
      padding: 10 * @rpx 0;
      padding-left: 10 * @rpx;
      padding-right: 2 * @rpx;
      color: @color-theme;
      line-height: 1;
    }
    .sale {
      display: inline-block;
      color: @color-theme;
      font-size: @font-middle;
      padding: 10 * @rpx 0;
      padding-right: 6 * @rpx;
      line-height: 1;
    }
    .origin {
      color: @color-text2;
      font-size: @font-sub;
      text-decoration: line-through;
      padding: 10 * @rpx 0;
      padding-right: 4 * @rpx;
      line-height: 1;
    }
    .text {
      position: relative;
    }
    .cart-count {
      font-size: 20rpx;
      height: 24rpx;
      min-width: 24rpx;
      border-radius: 12rpx;
      border: 2rpx solid red;
      position: absolute;
      top: 0rpx;
      right: -4rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      color: red;
      background: #ffffff;
    }
    .a-buy {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 52 * @rpx;
      height: 40 * @rpx;
    }
    .b-buy {
      padding: 2 * @rpx 10 * @rpx;
      text {
        display: inline-block;
        font-size: 14 * @rpx;
        padding: 0 8 * @rpx;
        height: 24 * @rpx;
        line-height: 24 * @rpx;
        border-radius: 12 * @rpx;
        background: @color-theme;
        color: #ffffff;
        text-align: center;
      }
    }
    .c-buy {
      padding: 2 * @rpx 10 * @rpx;
      text {
        display: inline-block;
        font-size: 12 * @rpx;
        padding: 0 8 * @rpx;
        height: 24 * @rpx;
        line-height: 24 * @rpx;
        border-radius: 12 * @rpx;
        border: 1 * @rpx solid @color-theme;
        color: @color-theme;
        text-align: center;
      }
    }
    .d-buy {
      width: 88rpx;
      height: 64rpx;
      padding: 4rpx 20rpx 12rpx;
      box-sizing: border-box;
      > view {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: red;
        box-sizing: border-box;
        border-radius: 50%;
        position: relative;
        margin-right: 14rpx;
        .count {
          font-size: 20rpx;
          height: 24rpx;
          min-width: 24rpx;
          border-radius: 12rpx;
          border: 2rpx solid red;
          position: absolute;
          top: -8rpx;
          right: -8rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          color: red;
          background: #ffffff;
        }
      }
    }
  }
  //特殊样式处理
  &.big .price-wrap {
    .sale {
      font-size: 22 * @rpx;
    }
    .a-buy {
      width: 62 * @rpx;
      height: 40 * @rpx;
    }
    .b-buy text,
    .c-buy text {
      padding: 0 16 * @rpx;
      font-size: 16 * @rpx;
      height: 32 * @rpx;
      line-height: 32 * @rpx;
      border-radius: 16 * @rpx;
    }
    .d-buy {
      width: 88rpx;
      height: 64rpx;
      padding: 2rpx 28rpx 10rpx 8rpx;
    }
  }
  .shop-name {
    align-items: flex-start;
    padding: 0 10 * @rpx 10 * @rpx;
    .text {
      display: block;
      color: @color-text3;
    }
  }
  &.big .shop-name .text {
    font-size: @font-base;
  }
  .good-reward {
    padding: 0 10 * @rpx 6 * @rpx;
    color: @color-theme2;
    font-size: @font-base;
    &::before {
      content: "";
      display: inline-block;
      width: 0;
      height: @font-base;
    }
  }
  &.small .good-reward {
    padding: 0 6 * @rpx 6 * @rpx;
    font-size: @font-sub;
  }
}
