.host-activities-container {
  background: var(--box_background_color);
  padding: var(--box_padding);
}

.host-activities-content {
  max-width: 1272px;
  margin: 0 auto;
  border-radius: 4px;
  display: flex;
  min-height: 555px;
  overflow: hidden;
  .content-left,
  .content-right {
    width: 636px;
    /* height: 100%; */
  }

  .content-left {
    position: relative;
    .quality-tag-box {
      width: 244px;
      position: absolute;
      top: 10px;
      left: 10px;
      .quality-tag-img {
        height: 100%;
        width: auto;
        display: block;
      }
    }
    .host-activities-image-wrapper,
    .host-activities-video-wrapper {
      height: 100%;
      width: 100%;
      video,
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
    .gift-product-box {
      display: none;
    }
  }

  .content-right {
    background: var(--main_background_color);
    padding: 40px 0;
    position: relative;
    &.no-gifts {
      padding: 0;
    }

    &.video-view {
      /* padding: 0; */
      .main-product-info {
        padding: 0;
        padding-right: 40px !important;
      }
    }
    .main-product-info {
      display: flex;
      align-items: center;
      .info-image {
        width: 226px;
        height: 226px;
      }
      .product-text {
        padding-bottom: 40px;
        .tag,
        .product-name,
        .product-desc {
          font-family: Manrope;
          font-size: 18px;
          leading-trim: NONE;
          line-height: 135%;
          letter-spacing: 0%;
        }
        .tag {
          font-weight: 700;
          font-style: Bold;
          color: var(--main_product_tag_color);
        }
        .product-name {
          font-weight: 600;
          font-style: SemiBold;
          font-size: 38px;
          color: var(--main_product_name_color);
        }
        .product-desc {
          font-weight: 500;
          font-style: Medium;
          color: var(--main_product_desc_color);
        }
        .product-desc-list {
          display: flex;
          flex-wrap: wrap;
          gap: 4px;
          margin-top: 16px;
          span {
            font-family: Manrope;
            font-weight: 500;
            font-style: Medium;
            font-size: 14px;
            leading-trim: NONE;
            text-align: center;
            line-height: 135%;
            letter-spacing: 0%;
            padding: 4px;
            border-radius: 4px;
            background: var(--main_product_fun_background_color);
            color: var(--main_product_fun_text_color);
          }
          &.is-photo,
          &.no-parts-and-gift {
            display: none;
          }
          &.is-no-parts {
            display: none;
          }
          &.is-no-parts-and-gift {
            display: flex;
          }
        }
      }
      .product-text.is-photo {
        padding: 0 40px 40px 40px;
      }
      .product-text.has-gift {
        padding-bottom: 4px;
      }
      .product-text.has-gift-has-parts {
        padding-bottom: 16px;
      }
      .product-text.is-video {
        padding-bottom: 0px !important;
        width: 100%;
      }
      .gift-product-box {
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 16px !important;
        .gift-product-item {
          gap: 0px !important;
          .icon-gift {
            top: 3px;
            right: 4px;
          }
          .icon-gift svg {
            width: 18px;
            height: 18px;
          }
        }
      }
    }
    .core-function-img-box {
      padding: 0px 40px;
      margin-bottom: 22.33px;
      .core-function-img {
        margin-bottom: 40px;
        display: block;
      }
      .core-function-img:last-child {
        margin-bottom: 0;
      }
    }

    .right-bottom {
      /* position: absolute;
      bottom: 40px;
      right: 40px;
      left: 40px; */
      padding: 0px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .price-box {
        display: flex;
        align-items: center;
        gap: 6px;
        .new-price,
        .old-price,
        .discount {
          font-family: Manrope;
          leading-trim: NONE;
          letter-spacing: 0%;
          color: #fff;
        }
        .new-price {
          font-weight: 700;
          font-style: Bold;
          font-size: 36px;
          line-height: 44.8px;
          color: var(--main_product_price_color);
        }
        .old-price {
          font-weight: 500;
          font-style: Medium;
          font-size: 22px;
          line-height: 22.4px;
          text-decoration: line-through;
          color: #7b7b7b;
          color: var(--main_product_price_discount_color);
        }
        .discount {
          padding: 2px 8px;
          font-weight: 600;
          font-style: SemiBold;
          font-size: 14px;
          line-height: 135%;
          border-radius: 4px;
          background: #de1b1b;
        }
        .price-values {
          display: flex;
          align-items: center;
          gap: 6px;
        }
      }
      .buy-now-box {
        width: 130px;
        .btn-buy-now {
          width: 100%;
          padding: 12px 0 12px 16px;
          font-family: Manrope;
          font-weight: 600;
          font-style: SemiBold;
          font-size: 14px;
          leading-trim: NONE;
          line-height: 100%;
          letter-spacing: 0%;
          color: var(--product_button_text_color);
          display: flex;
          align-items: center;
          gap: 8px;
          background: var(--product_button_color);
          border-radius: 4px;
          text-align: left;
          border: none;
        }
        .btn-buy-now svg {
          width: 16px;
          height: 16px;
        }
      }
    }
  }
  .gift-product-box,
  .product-parts-box {
    padding: 0 40px;
    &.no-products {
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .gift-product-tag,
    .product-parts-tag {
      font-family: Manrope;
      font-weight: 700;
      font-style: Bold;
      font-size: 14px;
      leading-trim: NONE;
      line-height: 135%;
      letter-spacing: 0%;
      color: #f23b22;
      margin-bottom: 8px;
      width: 82px;
      border-radius: 4px;
      text-align: center;
      border: 1px solid #f23b22;
      &.has-parts {
        display: none;
      }
    }

    .gift-product-wrapper,
    .product-parts-wrapper {
      display: flex;
      gap: 16px;
      flex-direction: column;
      .gift-product-item,
      .product-parts-item {
        position: relative;
        .icon-gift,
        .product-parts-checkbox {
          position: absolute;
          top: 8px;
          right: 8px;
        }
      }

      /* 当只有一个产品时的样式 */
      &.single-product,
      &.double-product,
      &.triple-product {
        .gift-product-item {
          background: var(--gift_background_color);
        }
        .product-parts-item {
          background: var(--parts_background_color);
        }
        .gift-product-item,
        .product-parts-item {
          display: flex;
          align-items: center;
          gap: 16px;
          border-radius: 4px;
          padding: 7px 0;

          .gift-product-image img {
            width: 140px;
            height: 140px;
            object-fit: cover;
            display: block;
          }
          .gift-product-info,
          .product-parts-info {
            flex: 1;
            .gift-product-title,
            .gift-current-price,
            .gift-original-price,
            .product-parts-title,
            .parts-current-price,
            .parts-original-price {
              font-family: Manrope;
              font-weight: 600;
              font-style: SemiBold;
              font-size: 18px;
              leading-trim: NONE;
              line-height: 135%;
              letter-spacing: 0%;
            }
            .gift-product-title {
              color: var(--gift_name_color);
            }
            .product-parts-title {
              color: var(--parts_name_color);
            }

            .gift-product-title,
            .product-parts-title {
              margin-bottom: 4px;
            }

            .gift-product-price,
            .product-parts-price {
              display: flex;
              align-items: center;
              gap: 4px;
              margin-bottom: 4px;
              .gift-current-price {
                color: var(--gift_price_color);
              }
              .gift-original-price {
                color: var(--gift_original_price_color);
              }
              .parts-original-price {
                color: var(--parts_original_price_color);
              }
              .gift-original-price,
              .parts-original-price {
                font-weight: 400;
                font-style: Regular;
                font-size: 14px;
                text-decoration: line-through;
              }
            }

            .gift-product-features,
            .product-parts-features {
              list-style: none;
              padding: 0;
              margin-left: 16px;

              li {
                font-family: Manrope;
                font-weight: 400;
                font-style: Regular;
                font-size: 14px;
                leading-trim: NONE;
                line-height: 135%;
                letter-spacing: 0%;
                color: #7b7b7b;
              }
            }
          }
        }
      }

      /* 当有多个产品时的样式 */
      &.double-product,
      &.triple-product {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        .gift-product-item,
        .product-parts-item {
          text-align: center;
          flex-direction: column;
          align-items: center;
          gap: 10px;
          padding: 8px 0;
          .gift-product-image img,
          .product-parts-image img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            display: block;
          }

          .gift-product-info,
          .product-parts-info {
            .gift-product-title,
            .product-parts-title {
              font-size: 14px;
            }

            .gift-product-price,
            .product-parts-price {
              margin-bottom: 0px;
              justify-content: center;
              .gift-current-price,
              .parts-current-price {
                font-size: 18px;
              }
            }
            .gift-product-features,
            .product-parts-features {
              display: none;
            }
          }
        }
      }
      &.triple-product {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }

  .gift-product-box.has-parts {
    margin-bottom: 20px;

    .gift-product-tag {
      display: none;
    }
    .gift-product-wrapper {
      .gift-product-item {
        flex-direction: row;
        gap: 8px;
        padding: 0px;
        .gift-product-title {
          display: none;
        }
        .gift-product-price {
          flex-direction: column;
          align-items: flex-start !important;
        }
      }
      .gift-product-image {
        width: 64px;
        height: 64px;
        img {
          width: 100% !important;
          height: 100% !important;
        }
      }
    }
  }
  .product-parts-box {
    .product-parts-tag {
      width: 150px;
      color: #000000;
      background: #8ff45a;
      border: none;
      padding: 4px 0;
    }
    .product-parts-wrapper {
      .product-parts-item {
        cursor: pointer;
        .product-parts-image img {
          object-fit: cover;
          display: block;
        }
        .product-parts-info {
          .product-parts-price .parts-current-price {
            color: var(--parts_price_color);
          }
        }
        .product-parts-checkbox {
          appearance: none;
          -webkit-appearance: none;
          width: 18px;
          height: 18px;
          border: 1px solid var(--parts_checkbox_border_color);
          border-radius: 4px;
          cursor: pointer;
          transition: all 0.3s ease;
          margin: 0;

          &:checked {
            background-color: var(--parts_check_background_color);
            border-color: var(--parts_check_background_color);

            &::after {
              content: "";
              position: absolute;
              top: 1.5px;
              left: 5px;
              width: 6px;
              height: 10px;
              border: solid var(--parts_check_color);
              border-width: 0 1.5px 1.5px 0;
              transform: rotate(45deg);
            }
          }

          &:not(:checked) {
            background-color: transparent;
          }
        }
      }
      &.single-product {
        .product-parts-item {
        }
      }
    }
  }
}

@media (min-width: 1280px) {
  .host-activities-content {
    .core-function-img-box.has-gift-or-parts {
      margin-bottom: 54px !important;
    }
    .product-parts-wrapper {
      &.single-product {
        .product-parts-item {
          height: 154px;
          padding: 19.5px 19.5px 19.5px 0px !important;
        }
      }
    }
    .content-right {
      .gift-product-box,
      .product-parts-box {
        margin-bottom: 16px;
      }
    }
  }
}

@media (max-width: 1280px) {
  .host-activities-content {
    height: 326px;
    width: 100%;
    min-height: auto;
    &.layout-two {
      height: auto;
      flex-direction: column !important;
      .content-left {
        height: 326px;
      }
      .content-right {
        .right-bottom {
          position: static;
        }
      }
    }
    .content-left,
    .content-right {
      width: 100%;
    }
    .content-left {
      position: relative;
      .quality-tag-box {
        width: 198px;
        position: absolute;
        top: 20px;
        left: 12px;
        .quality-tag-img {
          height: 100%;
          width: auto;
          display: block;
        }
      }
      .host-activities-image-wrapper,
      .host-activities-video-wrapper {
        height: 100%;
        width: 100%;
        video,
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }
      }

      .gift-product-box {
        display: block;
        position: absolute;
        bottom: 0px;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(40px);
        padding: 8px;
        .gift-product-wrapper {
          .gift-product-item {
            padding: 0px 8px;
          }
          .icon-gift svg {
            width: 18px;
            height: 18px;
          }
        }
      }
    }

    .content-right {
      background: #000000;
      padding: 24px 16px;
      position: relative;
      &.no-gifts {
        padding: 24px 16px;
      }

      &.video-view {
        .main-product-info {
          padding: 0;
          padding-right: 0px !important;
        }
      }
      .main-product-info {
        display: flex;
        align-items: center;
        .info-image {
          display: none;
        }
        .product-text {
          padding-bottom: 40px;
          .tag,
          .product-name,
          .product-desc {
            font-family: Manrope;
            font-size: 14px;
            leading-trim: NONE;
            line-height: 135%;
            letter-spacing: 0%;
            color: #fff;
          }
          .tag {
            font-weight: 700;
            font-style: Bold;
            color: #ff4000;
          }
          .product-name {
            font-weight: 600;
            font-style: SemiBold;
            font-size: 24px;
          }
          .product-desc {
            font-weight: 500;
            font-style: Medium;
            display: none;
          }
          .product-desc-list {
            margin: 4px 0 78px;
            &.is-photo,
            &.no-parts-and-gift {
              display: flex;
            }
            &.is-no-parts {
              display: none;
            }
          }
        }
        .product-text.is-photo {
          padding: 0px;
        }
        .product-text.has-gift {
          padding-bottom: 4px;
        }
        .product-text.has-gift-has-parts {
          padding-bottom: 4px;
        }
        .product-text.is-video {
          padding-bottom: 0px !important;
        }
        .gift-product-box {
          padding: 0 !important;
          margin: 0 !important;
          margin-top: 16px !important;
          .gift-product-item {
            gap: 0px !important;
            .icon-gift {
              top: 3px;
              right: 4px;
            }
            .icon-gift svg {
              width: 18px;
              height: 18px;
            }
          }
        }
      }
      .core-function-img-box {
        display: none;
      }
      .right-bottom {
        bottom: 24px;
        right: 16px;
        left: 16px;
        padding: 0px;
        position: absolute;
        flex-direction: column;
        gap: 8px;
        .price-box {
          width: 100%;
          justify-content: space-between;
          .new-price,
          .old-price,
          .discount {
            line-height: 135%;
          }
          .new-price {
            font-size: 28px;
          }
          .old-price {
            font-size: 18px;
          }
        }
        .buy-now-box {
          width: 100%;
          .btn-buy-now {
            width: 100%;
            padding: 12px 0 12px;
            font-size: 14px;
            justify-content: center;
          }
          .btn-buy-now svg {
            width: 16px;
            height: 16px;
          }
        }
      }
      .gift-product-box {
        display: none;
      }
    }
    .gift-product-box,
    .product-parts-box {
      padding: 0;
      &.no-products {
        margin-bottom: 0;
        padding-bottom: 0;
      }

      .gift-product-tag,
      .product-parts-tag {
        margin-bottom: 10px;
        &.has-parts {
          display: none;
        }
      }

      .gift-product-wrapper,
      .product-parts-wrapper {
        display: flex;
        gap: 16px;
        flex-direction: column;
        .gift-product-item,
        .product-parts-item {
          position: relative;
          .icon-gift,
          .product-parts-checkbox {
            position: absolute;
            top: 4px;
            right: 4px;
          }
          .gift-product-image img,
          .product-parts-image img {
            width: 64px;
            height: 64px;
            object-fit: cover;
            display: block;
          }
        }

        /* 当只有一个产品时的样式 */
        &.single-product,
        &.double-product,
        &.triple-product {
          .gift-product-item,
          .product-parts-item {
            gap: 0px;
            .gift-product-info,
            .product-parts-info {
              flex: 1;
              .gift-product-title,
              .gift-current-price,
              .gift-original-price,
              .product-parts-title,
              .parts-current-price,
              .parts-original-price {
                font-size: 14px;
              }
              .gift-product-title,
              .product-parts-title {
                margin-bottom: 0px;
              }

              .gift-product-price,
              .product-parts-price {
                margin-bottom: 0px;
                .gift-original-price,
                .parts-original-price {
                  font-size: 12px;
                }
              }

              .gift-product-features,
              .product-parts-features {
                display: none;
              }
            }
          }
        }

        /* 当有多个产品时的样式 */
        &.double-product,
        &.triple-product {
          .gift-product-item,
          .product-parts-item {
            text-align: center;
            align-items: center;
            flex-direction: row;
            gap: 0px;
            padding: 0px;
            .icon-gift {
              left: 4px;
              top: 3px;
              right: 0;
              width: 18px;
            }
            .gift-product-info,
            .product-parts-info {
              .gift-product-title,
              .product-parts-title {
                display: none;
              }

              .gift-product-price,
              .product-parts-price {
                margin-bottom: 0px;
                justify-content: center;
                flex-direction: column;
                align-items: flex-start;
                gap: 0;
                .gift-current-price,
                .parts-current-price {
                  font-size: 18px;
                }
              }
              .product-parts-price {
                .parts-current-price {
                  font-size: 14px;
                }
              }
            }
          }
        }
      }
    }

    .gift-product-box.has-parts {
      margin-bottom: 0px;

      .gift-product-tag {
        display: none;
      }
      .gift-product-wrapper {
        .gift-product-item {
          flex-direction: row !important;
          gap: 8px;
          padding: 0px;
          .gift-product-title {
            display: none;
          }
          .gift-product-price {
            flex-direction: column;
            align-items: flex-start !important;
          }
        }
      }
    }
    .product-parts-box {
      margin-top: 4px;
      .product-parts-wrapper {
        .product-parts-item {
          cursor: pointer;
          .product-parts-image img {
            object-fit: cover !important;
            height: 64px !important;
            width: 64px !important;
            display: block !important;
          }
        }
        &.single-product {
          .product-parts-item {
            padding: 17.5px 8px;
          }
        }
      }
    }
    .gift-product-image img,
    .product-parts-image img {
      object-fit: cover !important;
      height: 64px !important;
      width: 64px !important;
      display: block !important;
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .host-activities-content {
    height: auto;
    flex-direction: column !important;
    padding: 0 16px;
    .content-left {
      height: 356px;
    }
    .content-right {
      .right-bottom {
        position: static;
      }
    }
    .content-left {
      position: relative;
      height: 356px !important;
      .quality-tag-box {
        width: 206px;
        position: absolute;
        top: 14px;
        left: 12px;
        .quality-tag-img {
          height: 100%;
          width: auto;
          display: block;
        }
      }
      .host-activities-image-wrapper,
      .host-activities-video-wrapper {
        height: 100%;
        width: 100%;
        video,
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }
      }

      .gift-product-box {
        display: none;
      }
    }

    .content-right {
      background: #000000;
      padding: 24px 16px;
      position: relative;

      &.video-view {
        .main-product-info {
          padding: 0;
          padding-right: 0px !important;
        }
      }
      .main-product-info {
        display: flex;
        align-items: center;
        .info-image {
          display: none;
        }
        .product-text {
          padding-bottom: 0px;
          .tag,
          .product-name,
          .product-desc {
            font-family: Manrope;
            font-size: 14px;
            leading-trim: NONE;
            line-height: 135%;
            letter-spacing: 0%;
            color: #fff;
          }
          .tag {
            font-weight: 700;
            font-style: Bold;
            color: #ff4000;
          }
          .product-name {
            font-weight: 600;
            font-style: SemiBold;
            font-size: 24px;
          }
          .product-desc {
            font-weight: 500;
            font-style: Medium;
            display: none;
          }
          .product-desc-list {
            margin: 4px 0 24px;
            &.is-no-parts {
              display: flex;
            }
          }
        }
        .product-text.is-photo {
          padding-left: 0px;
        }
        .product-text.has-gift {
          padding-bottom: 4px;
        }
        .product-text.has-gift-has-parts,
        .product-text.is-video {
          padding-bottom: 0px !important;
        }
        .gift-product-box {
          padding: 0 !important;
          margin: 0 !important;
          margin-bottom: 16px !important;
          .gift-product-item {
            gap: 0px !important;
            .icon-gift {
              top: 3px;
              right: 4px;
            }
            .icon-gift svg {
              width: 18px;
              height: 18px;
            }
          }
        }
      }
      .right-bottom {
        bottom: 24px;
        right: 16px;
        left: 16px;
        flex-direction: column;
        gap: 8px;
        .price-box {
          width: 100%;
          justify-content: space-between;
          .new-price,
          .old-price,
          .discount {
            line-height: 135%;
          }
          .new-price {
            font-size: 28px;
          }
          .old-price {
            font-size: 18px;
          }
        }
        .buy-now-box {
          width: 100%;
          .btn-buy-now {
            width: 100%;
            padding: 12px 0 12px;
            font-size: 14px;
            justify-content: center;
          }
          .btn-buy-now svg {
            width: 16px;
            height: 16px;
          }
        }
      }
      .gift-product-box {
        display: block;
      }
    }
    .gift-product-box,
    .product-parts-box {
      padding: 0;
      margin-bottom: 24px;
      &.no-products {
        margin-bottom: 0;
        padding-bottom: 0;
      }

      .gift-product-tag,
      .product-parts-tag {
        margin-bottom: 10px;
        &.has-parts {
          display: none;
        }
      }

      .gift-product-wrapper,
      .product-parts-wrapper {
        display: flex;
        gap: 16px;
        flex-direction: column;
        .gift-product-item,
        .product-parts-item {
          position: relative;
          .icon-gift,
          .product-parts-checkbox {
            position: absolute;
            top: 8px;
            right: 8px;
          }
        }

        /* 当只有一个产品时的样式 */
        &.single-product,
        &.double-product,
        &.triple-product {
          .gift-product-item,
          .product-parts-item {
            gap: 0px;
            padding: 8px;
            .gift-product-info,
            .product-parts-info {
              flex: 1;
              .gift-product-title,
              .gift-current-price,
              .gift-original-price,
              .product-parts-title,
              .parts-current-price,
              .parts-original-price {
                font-size: 14px;
              }
              .gift-product-title,
              .product-parts-title {
                margin-bottom: 0px;
              }

              .gift-product-price,
              .product-parts-price {
                margin-bottom: 0px;
                .gift-original-price,
                .parts-original-price {
                  font-size: 12px;
                }
              }

              .gift-product-features,
              .product-parts-features {
                display: none;
              }
            }
          }
        }

        /* 当有多个产品时的样式 */
        &.double-product,
        &.triple-product {
          .gift-product-item,
          .product-parts-item {
            text-align: center;
            align-items: center;
            flex-direction: column;
            gap: 0px;
            padding: 8px;
            .icon-gift {
              left: auto;
              top: 3px;
              right: 4px;
              width: 18px;
              height: 18px;
            }
            .gift-product-info,
            .product-parts-info {
              .gift-product-title,
              .product-parts-title {
                display: none;
              }

              .gift-product-price,
              .product-parts-price {
                margin-bottom: 0px;
                justify-content: center;
                flex-direction: row;
                align-items: center !important;
                gap: 4px;
                .gift-current-price,
                .parts-current-price {
                  font-size: 14px;
                }
              }
              .product-parts-price {
                .parts-current-price {
                  font-size: 14px;
                }
              }
            }
          }
        }
      }
    }

    .gift-product-box.has-parts {
      margin-bottom: 24px;
      .gift-product-tag {
        display: none;
      }
      .gift-product-wrapper {
        .gift-product-item {
          flex-direction: row;
          gap: 0px;
          padding: 0px;
          .gift-product-title {
            display: none;
          }
          .gift-product-info {
            .gift-product-price {
              flex-direction: column !important;
              align-items: flex-start !important;
              gap: 0px;
            }
          }

          .icon-gift {
            left: 4px;
            top: 3px;
            right: 0px;
          }
        }
      }
    }
    .icon-gift svg {
      width: 18px !important;
      height: 18px !important;
    }
    .product-parts-box {
      margin-top: 0px;
      .product-parts-wrapper {
        &.single-product {
          .product-parts-item {
            padding: 17.5px 8px;
          }
        }
      }
    }
  }
}

@media (max-width: 480px) {
}
