.vertical-host-activities-section {
  background: var(--box_background_color);
  padding: var(--box_padding);
}
.vertical-host-activities-section .vertical-host-activities-wrapper {
  max-width: 1272px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
}
.vertical-host-activities-container {
  .vertical-host-activities-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    width: 408px;
    .content-left,
    .content-right {
      width: 100%;
      height: 100%;
    }

    .content-left {
      position: relative;
      .quality-tag-box {
        width: 206px;
        position: absolute;
        top: 14px;
        left: 12px;
        .quality-tag-img {
          height: 100%;
          width: auto;
          display: block;
        }
      }
      .host-activities-image-wrapper {
        height: 100%;
        width: 100%;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
        }
      }
      .gift-product-box {
        display: none;
      }
    }

    .content-right {
      background: var(--main_background_color);
      padding: 24px 16px;
      position: relative;
      &.no-gifts {
        padding: 28px 16px;
      }

      &.video-view {
        /* padding: 0; */
        .main-product-info {
          padding: 0;
          padding-right: 40px !important;
        }
      }
      .main-product-info {
        display: flex;
        align-items: center;

        .product-text {
          .tag,
          .product-name,
          .product-desc {
            font-family: Manrope;
            font-size: 14px;
            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: 24px;
            color: var(--main_product_name_color);
          }
          .product-desc {
            font-weight: 500;
            font-size: 18px;
            font-style: Medium;
            color: var(--main_product_desc_color);
          }
          .product-desc-list {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin: 12px 0 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);
            }
            &.no-gifts-and-parts {
              margin: 12px 0 110px;
            }
            &.has-gifts-and-parts {
              display: none;
            }
          }
        }
        .product-text.has-gift {
          padding-bottom: 4px;
        }
        .product-text.has-gift-has-parts {
          padding-bottom: 16px;
        }
      }
      .right-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        .price-box {
          display: flex;
          flex-direction: column-reverse;
          align-items: flex-start;
          gap: 8px;
          .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: 22px;
            line-height: 100%;
            color: var(--main_product_price_color);
          }
          .old-price {
            font-weight: 500;
            font-style: Medium;
            font-size: 18px;
            line-height: 22.4px;
            text-decoration: line-through;
            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 {
      margin: 11px 0 27px;
      &.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: 10px;
        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;
          }
          .icon-gift svg {
            width: 18px;
            height: 18px;
          }
        }

        /* 当只有一个产品时的样式 */
        &.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;
            border-radius: 4px;
            padding: 8px;
            .gift-product-image img,
            .product-parts-image img {
              width: 64px;
              height: 64px;
              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: 14px;
                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-price,
              .product-parts-price {
                display: flex;
                align-items: center;
                gap: 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: 12px;
                  text-decoration: line-through;
                }
              }
            }
          }
        }

        /* 当有多个产品时的样式 */
        &.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;

            .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;
                .gift-current-price,
                .parts-current-price {
                  font-size: 14px;
                }
              }
            }
          }
        }
        &.triple-product {
          grid-template-columns: repeat(3, 1fr);
        }
      }
    }

    .gift-product-box.has-parts {
      margin: 12px 0 16px;

      .gift-product-tag {
        display: none;
      }
      .gift-product-wrapper {
        .gift-product-item {
          flex-direction: row;
          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 {
      margin: 0;
      margin-bottom: 16px;
      .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;
          }
          .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;
            }
          }
        }
      }
    }
  }
}

/* 响应式设计 */
@media (max-width: 1280px) {
  .vertical-host-activities-section .vertical-host-activities-wrapper {
    grid-template-columns: repeat(2, 1fr);
    padding: 0px 16px;
  }
  .vertical-host-activities-container {
    .vertical-host-activities-content {
      width: 100%;
      .content-left,
      .content-right {
        width: 100%;
        height: 100%;
      }

      .content-left {
        position: relative;
        height: 325px;
        .quality-tag-box {
          width: 198px;
          position: absolute;
          top: 20px;
          left: 12px;
        }

        .gift-product-box {
          display: block;
          position: absolute;
          bottom: 0px;
          width: 100%;
          background: rgba(0, 0, 0, 0.7);
          backdrop-filter: blur(40px);
          padding: 8px;
          margin: 0 !important;
          .gift-product-wrapper {
            .gift-product-item {
              padding: 0px 8px;
            }
            .icon-gift svg {
              width: 18px;
              height: 18px;
            }
          }
        }
      }

      .content-right {
        padding: 24px 16px;
        &.no-gifts {
          padding: 28px 16px;
        }

        &.video-view {
          .main-product-info {
            padding: 0 !important;
          }
        }
        .main-product-info {
          display: flex;
          align-items: center;
          .product-text {
            .tag,
            .product-name,
            .product-desc {
              font-size: 14px;
            }
            .product-name {
              font-weight: 600;
              font-style: SemiBold;
              font-size: 24px;
            }
            .product-desc {
              font-weight: 500;
              font-size: 18px;
              font-style: Medium;
              display: none;
            }
            .product-desc-list {
              margin: 4px 0 78px;
              &.no-gifts-and-parts {
                margin: 4px 0 78px;
              }
              &.is-no-parts {
                display: none !important;
              }
            }
          }
          .product-text.has-gift {
            padding-bottom: 4px;
          }
          .product-text.has-gift-has-parts {
            padding-bottom: 16px;
          }
        }

        .right-bottom {
          flex-direction: column;
          gap: 8px;
          .price-box {
            width: 100%;
            justify-content: space-between;
            flex-direction: row;
            align-items: center;
            .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 {
        margin: 0 0 24px 0;
        .gift-product-wrapper,
        .product-parts-wrapper {
          /* 当有多个产品时的样式 */
          &.double-product,
          &.triple-product {
            .gift-product-item,
            .product-parts-item {
              .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: 0 !important;
        .gift-product-wrapper {
          .gift-product-item {
            padding: 0px;
            gap: 0px;
          }
        }
      }
      .product-parts-box {
        margin-bottom: 0px;
        .product-parts-wrapper {
          &.single-product {
            .product-parts-item {
              padding: 17.5px 8px;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .vertical-host-activities-section .vertical-host-activities-wrapper {
    grid-template-columns: repeat(1, 1fr);
    padding: 0px 16px;
    gap: 10px;
  }

  .vertical-host-activities-container {
    .vertical-host-activities-content {
      width: 100%;
      .content-left,
      .content-right {
        width: 100%;
        height: 100%;
      }

      .content-left {
        position: relative;
        height: 325px;
        .quality-tag-box {
          width: 198px;
          position: absolute;
          top: 20px;
          left: 12px;
        }

        .gift-product-box {
          display: none;
        }
      }

      .content-right {
        padding: 24px 16px;
        &.no-gifts {
          padding: 28px 16px;
        }

        &.video-view {
          .main-product-info {
            padding: 0 !important;
          }
        }
        .main-product-info {
          display: flex;
          align-items: center;
          .product-text {
            .tag,
            .product-name,
            .product-desc {
              font-size: 14px;
            }
            .product-name {
              font-weight: 600;
              font-style: SemiBold;
              font-size: 24px;
            }
            .product-desc {
              font-weight: 500;
              font-size: 18px;
              font-style: Medium;
            }
            .product-desc-list {
              margin: 4px 0 24px;
              &.no-gifts-and-parts {
                margin: 4px 0 24px;
              }
              &.has-gifts-and-parts {
                display: flex;
              }
            }
          }
          .product-text.has-gift {
            padding-bottom: 4px;
          }
          .product-text.has-gift-has-parts {
            padding-bottom: 16px;
          }
        }

        .right-bottom {
          flex-direction: column;
          gap: 8px;
          .price-box {
            width: 100%;
            justify-content: space-between;
            flex-direction: row;
            align-items: center;
            .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 {
        .gift-product-wrapper,
        .product-parts-wrapper {
          /* 当有多个产品时的样式 */
          &.double-product,
          &.triple-product {
            .gift-product-item,
            .product-parts-item {
              .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: 24px !important;
        .gift-product-wrapper {
          .gift-product-item {
            padding: 0px;
          }
        }
      }
      .product-parts-box {
        margin-bottom: 24px;
        .product-parts-wrapper {
          &.single-product {
            .product-parts-item {
              padding: 17.5px 8px;
            }
          }
        }
      }
    }
  }
}
