.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;
  }
  img {
    width: 100%;
    height: 172 * @rpx;
    object-fit: cover;
  }
  &.big img {
    height: 240 * @rpx;
  }
  &.small img {
    height: 111 * @rpx;
  }

  .good-img {
    width: 100%;
    position: relative;
    overflow: hidden;
    font-size: 0;
    margin: 0;
    .imgH {
      width: 100%;
    }
    .imgW {
      width: 100%;
      height: auto;
    }
    .mark {
      position: absolute;
      top: 0;
      left: 0;
      background-repeat: no-repeat;
      background-position: top left;
      background-size: 100% auto;
      background-image: url("../img/mark-hot1.png");
      &.hot1 {
        width: 72 * @rpx;
        height: 60 * @rpx;
        background-size: 72 * @rpx auto;
        background-image: url("../img/mark-hot1.png");
      }
      &.hot2 {
        top: -6px;
        left: -8px;
        width: 60 * @rpx;
        height: 60 * @rpx;
        background-image: url("../img/mark-hot2.png");
      }
      &.hot3 {
        width: 50 * @rpx;
        height: 50 * @rpx;
        background-image: url("../img/mark-hot3.png");
      }
      &.new1 {
        width: 50 * @rpx;
        height: 50 * @rpx;
        background-color: transparent;
        background-image: url("../img/mark-new1.png");
      }
      &.new2 {
        width: 42 * @rpx;
        height: 42 * @rpx;
        background-image: url("../img/mark-new2.png");
      }
      &.new3 {
        width: 52 * @rpx;
        height: 42 * @rpx;
        background-image: url("../img/mark-new3.png");
      }
      &.new4 {
        width: 42 * @rpx;
        height: 42 * @rpx;
        background-image: url("../img/mark-new4.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;
    > div:first-child {
      margin-left: 0;
    }
  }
  .post-type {
    flex-shrink: 0;
    display: inline-block;
    padding: 0 6 * @rpx;
    border: 1 * @rpx solid #7502f7;
    color: #7502f7;
    font-size: @font-small;
    margin-left: 10 * @rpx;
    border-radius: 4 * @rpx;
    margin-top: 6 * @rpx;
    vertical-align: middle;
    &.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 {
      display: inline-block;
      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;
    }
    .a-buy {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 52px;
      height: 40px;
      font-size: 32 * @rpx;
      color: @color-tip;
      padding-bottom: 12px;
      .f36 {
        font-size: 36 * @rpx;
      }
      .f30 {
        font-size: 30 * @rpx;
      }
    }
    .b-buy {
      padding: 2 * @rpx 10 * @rpx;
      span {
        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;
      }
    }
    .c-buy {
      padding: 2 * @rpx 10 * @rpx;
      span {
        display: inline-block;
        font-size: 12 * @rpx;
        padding: 0 8 * @rpx;
        height: 24 * @rpx;
        line-height: 24 * @rpx;
        border: 1 * @rpx solid @color-theme;
        color: @color-theme;
        border-radius: 12 * @rpx;
      }
    }
    .d-buy {
      margin: 2 * @rpx 10 * @rpx 10 * @rpx;
      width: 26 * @rpx;
      height: 26 * @rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      background: red;
      box-sizing: border-box;
      border-radius: 50%;
      font-size: 18 * @rpx;
      color: #ffffff;
    }
  }
  //特殊样式处理
  &.big .price-wrap {
    .sale {
      font-size: 22 * @rpx;
    }
    .origin {
      font-size: 14 * @rpx;
    }
    .a-buy {
      font-size: 38 * @rpx;
      width: 62 * @rpx;
      height: 40 * @rpx;
      .f36 {
        font-size: 42 * @rpx;
      }
      .f30 {
        font-size: 36 * @rpx;
      }
    }
    .b-buy span,
    .c-buy span {
      padding: 0 16 * @rpx;
      font-size: 16 * @rpx;
      height: 32 * @rpx;
      line-height: 32 * @rpx;
      border-radius: 16 * @rpx;
    }
    .d-buy {
      width: 32 * @rpx;
      height: 32 * @rpx;
      font-size: 22 * @rpx;
    }
  }
  .shop-name {
    align-items: flex-start;
    padding: 0 10 * @rpx 10 * @rpx;
    font-size: @font-sub;
    .text {
      display: block;
      color: @color-text3;
    }
    .svg {
      font-size: @font-super;
      color: @color-text3;
      font-weight: bold;
    }
  }
  &.big .shop-name {
    font-size: @font-base;
    .svg {
      font-size: 22px;
    }
  }
  .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;
  }
  .scroll-three-price {
    margin-left: 10 * @rpx !important;
    p {
      margin: 0 * @rpx;
      padding: 0 * @rpx;
      line-height: 1 * @rpx;
    }
    .sale {
      padding: 0 * @rpx;
    }
  }
}
