@import "@/assets/bundle.scss";

.good-detail {
  #pd20 {
    @extend %pd20;
    @extend %bgwhite;
  }
  .good-img-swiper {
    width: 750rpx;
    height: 750rpx;
    @extend %bgwhite;
    .good-img-item {
      width: 750rpx;
      height: 750rpx;
    }
    .good-img {
      width: 100%;
      height: 100%;
    }
  }
  .good-name {
    font-size: 38rpx;
    color: $text1;
    font-weight: 600;
  }
  .good-price {
    display: flex;
    align-items: baseline;
    @extend %pdtb;
    .cur-price {
      font-size: 38rpx;
      color: $strong;
      font-weight: 700;
      &:before {
        content: "￥";
        font-size: 24rpx;
      }
    }
    .ori-price {
      font-size: 30rpx;
      color: $gray;
      margin-left: 10rpx;
      text-decoration: line-through;
      &:before {
        content: "￥";
      }
    }
    .act-type-wrapper {
      margin-left: 10rpx;
    }
    .act-type {
      @extend %act-type-text;
    }
  }
  // #ifndef MP-TOUTIAO
  .store-name {
    @extend %pdtb;
    @extend %flex-left;
    border-top: 1rpx solid $border1;
    .icon-store {
      width: 40rpx;
      height: 40rpx;
      @extend %icon-store;
      @extend %bg-no-repeat-center;
      @extend %bg-size-100;
    }
    .name-text {
      font-size: 24rpx;
      color: $text3;
      margin-left: 10rpx;
    }
  }
  // #endif

  // #ifdef MP-TOUTIAO
  .storeOrFocus{
    display:flex;
    justify-content:space-between;
    .store-name {
      @extend %pdtb;
      @extend %flex-left;
      border-top: 1rpx solid $border1;
      .icon-store {
        width: 40rpx;
        height: 40rpx;
        @extend %icon-store;
        @extend %bg-no-repeat-center;
        @extend %bg-size-100;
      }
      .name-text {
        font-size: 24rpx;
        color: $text3;
        margin-left: 10rpx;
      }
    }
    .focus{
      // border:1px solid red;
      margin-top: 20rpx;
      background-color: #FCEEF1;
      display:flex;
      text-align:center;
      height:50rpx;
      line-height: 50rpx;
      padding: 4rpx 8rpx;
      border-radius: 20rpx;
      font-size: 30rpx;
      &-img{
        margin-top:10rpx;
        width:30rpx;
        height:30rpx;
      }
      &-text{
        margin-left:10rpx;
        color:#ef5d4a;
      }
    }
  }
  // #endif



  .good-detail-introduce {
    width: 100%;
    overflow: hidden;
    padding-bottom: 100rpx;
    &:before {
      content: "";
      display: block;
      height: 40rpx;
      background-color: #eee;
      // margin-bottom: 60rpx;
    }
    .desc-img {
      width: 100%;
    }
    .no-introduce {
      color: $text3;
      @extend %pdtb;
      text-align: center;
      font-size: 28rpx;
    }
    .good-detail-title {
      @extend %flex-left;
      background: #fff;
      padding: 20rpx 0;
      border-radius: 10rpx;
      line-height: 1;
      margin-left:10rpx;
      margin-bottom: 20rpx ;
      margin-top: 20rpx;
      .icon-border {
        width: 6rpx;
        background-color: $maincolor;
        height: 30rpx;
        margin-right: 10rpx;
      }
      .title {
        font-weight: bold;
        color: $text1;
        font-size: 36rpx;
      }
    }
  }

  .group-purchase-details {
    width: 100%;
    overflow: hidden;
    padding-bottom: 50rpx;
    &:before {
      content: "";
      display: block;
      height: 40rpx;
      background-color: #eee;
      // margin-bottom: 60rpx;
    }
    .good-detail-title {
      @extend %flex-left;
      background: #fff;
      padding: 20rpx 0;
      border-radius: 10rpx;
      line-height: 1;
      margin-left:10rpx;
      margin-bottom: 20rpx ;
      margin-top: 20rpx;
      .icon-border {
        width: 6rpx;
        background-color: $maincolor;
        height: 30rpx;
        margin-right: 10rpx;
      }
      .title {
        font-weight: bold;
        color: $text1;
        font-size: 36rpx;
      }
    }
    // 购买须知
    .content{
      &-item:not(:last-child){
        margin-bottom: 20rpx;
      }
      &-title{
        margin-left: 20rpx;
        font-size: 30rpx;
        font-weight: bold;
      }
      &-description{
        margin-top: 20rpx;
        margin-left: 40rpx;
        font-size: 25rpx;
      }
    }

  }
  .bottom-bar {
    position: fixed;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    left: 0;
    bottom: 0;
    height: 100rpx;
    right: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 6rpx 10rpx 30rpx #999;
    background: white;
  }
  .good-tab{
    width: 100%;
    height: 80rpx;
    display:flex;
    justify-content: space-around;
    position: fixed;
    top:0rpx;
    left: 0;
    background: rgba(186, 187, 175,0.5);
    z-index: 99;
    border-bottom: 2rpx solid rgba(186, 187, 175,0.5);
  }
  .tab-item{
    width: 100rpx;
    text-align: center;
    line-height: 80rpx;
  }
  .line{
    width: 100rpx;
    height: 10rpx;
    margin-top: -10rpx;
    background: $maincolor;
  }
  .getColor{
    color: $maincolor;
  }
}
