.en-product-hero:not(.en-indraw-office-hero) {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 80px 144px;
  background: radial-gradient(
    100% 150% at 50% -30%,
    #edeaff 0%,
    #edeaff 40%,
    #f4f4f8 75%,
    #ffffff 100%
  );
}

.en-product-hero__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.en-product-hero__shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  column-gap: 0;
}

.en-product-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
 /* margin-right: 32px; */
}

.en-product-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: #363b45;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 32px;
}

.en-product-hero__eyebrow img {
  display: block;
  width: 24px;
  height: 24px;
}

.en-product-hero__summary {
  margin: 16px 0 0;
  color: #5a4f73;
  max-width: 460px;
}

.en-product-hero__action {
  width: 100%;
  max-width: 563px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.en-product-hero__copies {
  width: 100%;
  max-width: 260px;
  height: 44px;
  margin-right: 16px;
  overflow: hidden;
}

.en-product-hero__copies p {
  display: none;
  margin: 0;
  color: #41434d;
  line-height: 22px;
}

.en-product-hero__copies p.is-active {
  display: block;
}

.en-product-hero__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-hero__btn {
  margin-top: 32px;
  margin-bottom: 32px;
}

.en-product-hero__secondary,
.en-product-hero__primary {
  min-width: 116px;
  white-space: nowrap;
}

.en-product-hero__media {
  min-width: 0;
}

.en-product-hero__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
  /* padding: 16px 16px 0; */
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(246, 247, 253, 0.88) 100%
  );
  box-shadow: 0 24px 60px rgba(59, 47, 92, 0.14);
}

.en-product-hero__video-frame video,
.en-product-hero__video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.en-product-hero__video-frame .is-active {
  opacity: 1;
}

@media (min-width: 1024px) {
  .product-hero__btn {
    max-width: 175px;
  }

  /*
     * 左 45% / 右 55%；右侧视频区 8:5，媒体铺满画框（cover），避免 contain + 内边距造成的白边。
     */
  .en-product-hero__shell {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  .en-product-hero__content {
    flex: 0 0 45%;
    width: 45%;
    max-width: none;
    margin-right: 0;
    padding-right: 32px;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .en-product-hero__media {
    flex: 0 0 55%;
    width: 55%;
    min-width: 0;
  }

  .en-product-hero__video-frame {
    width: 100%;
    aspect-ratio: 8 / 5;
  }

  .en-product-hero__video-frame video,
  .en-product-hero__video-frame img {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: top center;
  }
}

@media (min-width: 800px) and (max-width: 1023px) {
  .product-hero__btn {
    max-width: 175px;
  }

  .en-product-hero:not(.en-indraw-office-hero) {
    padding: 24px;
  }

  .en-product-hero__content {
    margin-right: 0;
  }

  .en-product-hero__shell {
    grid-template-columns: 1fr;
  }

  .en-product-hero__summary {
    max-width: none;
  }
}

@media (max-width: 799px) {
  .product-hero__btn {
    width: 100%;
  }

  .en-product-hero:not(.en-indraw-office-hero) {
    width: 100%;
    padding: 20px 16px 16px;
  }

  .en-product-hero__shell {
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 0;
  }

  .en-product-hero__summary {
    max-width: none;
  }

  .en-product-hero__action {
    display: block;
    margin-top: 20px;
    padding: 12px;
  }

  .en-product-hero__copies {
    max-width: none;
    width: 100%;
    height: 44px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .en-product-hero__buttons {
    justify-content: space-between;
  }

  .en-product-hero__secondary,
  .en-product-hero__primary {
    min-width: 0;
    width: calc(50% - 4px);
  }

  .en-product-hero__video-frame {
    border-radius: 12px;
  }

  .en-product-hero__video-frame video,
  .en-product-hero__video-frame img {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}


/* ===== Mac 下载弹窗 ===== */
.mac-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.mac-modal.is-open {
    display: flex;
}

.mac-modal__dialog {
    width: 736px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.mac-modal__head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 8px;
    padding: 16px 32px;
    border-bottom: 1px solid #DCDFE6;
}

.mac-modal__title {
    grid-column: 2;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    color: #303033;
}

.mac-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6A6A73;
    cursor: pointer;
}

.mac-modal__close:hover {
    background: #f4f4f8;
    color: #303033;
}

.mac-modal__close svg {
    width: 16px;
    height: 16px;
}

.mac-modal__body {
    padding: 24px 32px;
}

.mac-modal__intro {
    margin: 32px 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    color: #303033;
}

.mac-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.mac-modal__btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #7366FF;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
}

.mac-modal__btn:hover {
    background: #6357e6;
}

.mac-modal__subhead {
    margin: 24px 0 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #303033;
    display: inline-block;
    width: 100%;
}

.mac-modal__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mac-modal__card {
    min-width: 0;
}

.mac-modal__card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.mac-modal__caption {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: #6A6A73;
}

.mac-modal__caption-num {
    margin-right: 6px;
}

@media (max-width: 600px) {
    .mac-modal__body {
        padding: 16px;
    }

    .mac-modal__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mac-modal__actions {
        flex-direction: column;
    }

    .mac-modal__btn {
        width: 100%;
    }
}
