.main {
  min-height: 100%;
  background-color: $color_bg_one;
  padding: 20px 20px 100px 20px;
  .product_header {
    padding: 20px 20px 0 20px;
    display: flex;
    height: 163.57px;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 20px;
    .title {
      flex: 1;
      .name {
        font-size: 32px;
        font-weight: 700;
        color: $color_font_one;
        @include common_ellipsis(1);
      }
      .des {
        font-size: $font_size_medium;
        color: $color_font_three;
        @include common_ellipsis(1);
        margin-top: 20px;
      }
    }
    .share,
    .collect {
      width: 76px;
      font-size: $font_size_min;
      text-align: center;
      color: $color_font_three;
      position: relative;
      margin-left: 10px;
      .text {
        margin-top: 5px;
        font-size: $font_size_medium;
      }
    }
    .shareBtn {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
    }
    .miconfont {
      font-size: 45px;
      color: #333333;
    }
    .collected {
      color: #ffc300;
    }
  }
  .des_data {
    background-color: #fff;
    padding: 24px;
    margin-top: 16px;
    border-radius: 16px;
    .flexBox {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      .title {
        font-size: $font_size;
        font-weight: 500;
        color: $color_font_one;
      }
      .flexRight {
        font-size: 26px;
        font-weight: 500;
        color: #337fff;
      }
    }

    .con {
      display: grid;
      grid-template-columns: 50% 50%;
      grid-template-rows: auto auto auto;
      grid-template-areas: 'a b' 'c d' 'e f';
      font-size: $font_size_medium;
      color: $color_font_three;
      background-color: rgba(247, 247, 247, 0.6);
      border-radius: 8px;
      padding: 24px;
      padding-bottom: 0;
      color: rgba(0, 0, 0, 0.4);
      .des_text {
        display: flex;
        margin-bottom: 24px;
        font-size: 26px;
        &:nth-child(5) {
          grid-area: e;
        }
        text {
          flex: 1;
          color: #333333;
          @include common_ellipsis(1);
        }
      }
    }
  }
  .product_color {
    background-color: #fff;
    margin-top: 16px;
    padding: 30px 20px 0;
    color: $color_font_one;
    font-size: $font_size_medium;
    border-radius: 20px;
    .title {
      color: rgba(0, 0, 0, 0.8);
      font-weight: 500;
      font-size: 28px;
    }
    .list {
      margin-top: 30px;
      display: grid;
      grid-template-columns: 25% 25% 25% 25%;
      justify-content: space-between;
      .item {
        width: 100%;
        margin-bottom: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        box-sizing: border-box;
        .item_color {
          width: 136px;
          height: 136px;
          border-radius: 50%;
          image {
            width: 100%;
            height: 100%;
            border-radius: 20px;
          }
        }
        .item_name {
          text-align: center;
          margin-top: 10px;
          font-size: 24px;
          color: #666666;

          @include common_ellipsis;
        }
        .bulk_price {
          color: #999999;
          font-size: 24px;
          margin-top: 8px;
          text-align: center;
        }
      }
    }
  }
  .product_detail {
    // padding: 20px;
    background-color: #fff;
    margin-top: 16px;
  }
  .product_buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    .icon_btn {
      display: flex;
      padding: 0 20px 0 50px;
    }
    .buy_cart {
      width: 150px;
      color: $color_font_three;
      text-align: center;
      position: relative;
      .text {
        font-size: $font_size_min;
        color: #333333;
      }
      .miconfont {
        font-size: 50px;
        color: #333333;
      }
      .product_num {
        position: absolute;
        font-size: 23px;
        background-color: red;
        color: #fff;
        height: 36px;
        line-height: 36px;
        padding: 0 6px;
        border-radius: 72px;
        min-width: 25px;
        text-align: center;
        top: 0;
        right: 20px;
      }
    }
    .customer_service {
      text-align: center;
      position: relative;
      .miconfont {
        font-size: 50px;
      }
      .text {
        font-size: $font_size_min;
        color: #333333;
      }
    }
    .buy_btn {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 297px;
      height: 100%;
      background-color: $color_main;
      font-size: $font_size;
      color: #fff;
      position: relative;
    }
  }
  .wxBtn {
    // background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
}
