/* product.css */

.product-page .hero-section {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--product-hero-ratio, 8 / 3);
  min-height: 0;
  max-height: 720px;
  overflow: hidden;
  background: #ffffff;
}

body.csisp-product-curve-overlay .product-page .hero-section {
  aspect-ratio: var(--product-hero-ratio, 16 / 9);
  max-height: none;
}

body.csisp-product-pending .product-page .hero-section .hero-bg,
body.csisp-product-pending .product-page .hero-section .hero-content,
body.csisp-product-pending .product-page .hero-section .product-hero-curve {
  opacity: 0;
  visibility: hidden;
}

body:not(.csisp-product-pending) .product-page .hero-section .hero-bg,
body:not(.csisp-product-pending) .product-page .hero-section .hero-content,
body:not(.csisp-product-pending) .product-page .hero-section .product-hero-curve {
  opacity: 1;
  transition: opacity 180ms ease;
}

.product-page .hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.product-page .hero-section .bg-graphic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

body.csisp-product-curve-overlay .product-page .hero-section .bg-graphic {
    object-fit: cover;
    object-position: center center;
    background: #fff;
}

.product-page .hero-section .mobile-bg {
    display: none;
}

.product-page .hero-section .hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0 2.04rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-page .hero-title {
  max-width: min(11.6rem, calc(100vw - 4.08rem));
  line-height: 1.18;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-page .hero-title .hero-title-highlight {
  display: inline;
  padding: 0 0.08rem;
  background: #0037c3;
  color: #fff;
  line-height: 1.18;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.product-hero-curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  display: none;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
}

body.csisp-product-curve-overlay .product-hero-curve {
  display: block;
}

.product-hero-curve img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.product-video-section {
  background: #ffffff;
  overflow: hidden;
  padding: 0.96rem 0 0.8rem;
}

.product-video-section .video-container {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 8.28rem;
}

/* 产品概况介绍 */
.product-overview-section {
  padding: 0.8rem 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.overview-title-bg {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.8rem;
  /* font-weight: 900; */
  color: #ececec;
  z-index: 0;
  white-space: nowrap;
  font-family: "PangMenZhengDaoBiaoTiTiMianFeiBan-4", sans-serif;
  line-height: 1;
  user-select: none;
 
}

.overview-container {
  padding: 0.8rem 2.04rem 0; /* 增加了顶部的 padding 将整个内容区往下推 */
  position: relative;
  z-index: 1;
}

.overview-title {
  font-size: 0.48rem;
  /* font-weight: 700; */
  color: #000000;
  margin-bottom: 0.6rem;
  margin-top: 0.36rem;
  font-weight: normal;
  font-family: "PangMenZhengDaoBiaoTiTiMianFeiBan-4", sans-serif;
}

.overview-content-wrapper {
  background-color: #f5f5f5;
  border-radius: 0;
  padding: 0.4rem 0.4rem 0.4rem 0;
  margin-top: 0.4rem;
  position: relative;
  border: none; /* 去除蓝色边框 */
  margin-left: -50vw; /* 向左无限延伸 */
  padding-left: 50vw;
  margin-right: -50vw; /* 向右无限延伸 */
  padding-right: 50vw;
}

.overview-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.overview-specs {
  flex: 0 0 30%;
  padding-left: 0.24rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem; /* 控制各个小模块之间的间距为 32px */
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.16rem; /* 控制小模块内部标题与内容的间距为 16px */
}

.spec-item h3 {
  font-size: 0.24rem;
  font-weight: 700;
  color: #0037c3;
  margin-bottom: 0; /* 使用 gap 控制 */
}

.spec-item p {
  font-size: 0.16rem;
  color: #505050;
  line-height: 1.6;
  margin-bottom: 0; /* 使用 gap 控制 */
}

.bag-images {
  display: flex;
  gap: 0.24rem;
  margin-top: 0; /* 改用父容器的 gap 控制间距 */
}

.bag-images img {
  width: 1.36rem;
  height: 1.36rem;
  border-radius: 50%;
  background-color: #f1f1f1;
  object-fit: cover;
  box-sizing: border-box;
}

.overview-machine-container {
  flex: 1;
  position: relative;
  padding: 0;
  margin-right: calc(-50vw + 50%); /* 让容器右边缘贴合屏幕右边缘 */
  display: flex;
  justify-content: flex-end; /* 让图片靠右对齐 */
  align-items: center;
}

.machine-img {
  width: 100%;
  max-width: 10rem;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: right center; /* 确保图片内容靠右 */
}

.mobile-machine-img {
  display: none;
}

.overview-machine-container {
  flex: 1 1 58%;
  max-width: min(10.4rem, 64vw);
  min-width: 0;
}

.machine-img {
  width: min(100%, 10rem);
  max-width: 10rem;
  max-height: 5.4rem;
  object-fit: contain;
  background: #ffffff;
  border-top: 5px solid #0037c3;
  border-bottom: 5px solid #0037c3;
  border-left: 13px solid #0037c3;
  border-radius: 80px 0 0 80px;
  box-sizing: border-box;
}

/* 制袋长宽范围 */
.bag-dimensions-section {
  padding: 0.8rem 0;
  background: #ffffff;
}

.dimensions-container {
  padding: 0 2.04rem;
}

.dimensions-title {
  font-size: 0.32rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.24rem;
}

.dimensions-divider {
  width: 100%;
  height: 2px;
  background: #2764ff;
  margin-bottom: 0.6rem;
}

.dimensions-content {
  display: flex;
  gap: 0.24rem; /* 调整间距为 24px 贴合设计 */
  flex-wrap: wrap; /* 允许换行，适配非2个模块的情况 */
}

.dimension-block {
  width: 4.88rem; /* 固定模块宽度 488px 贴合设计 */
  flex-shrink: 0;
}

.dimension-subtitle {
  font-size: 0.24rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.24rem; /* 调整标题与内容的间距为 24px */
}

.dimension-details {
  display: flex;
  align-items: center; /* 改为居中对齐 */
  gap: 0.24rem; /* 图片与文字的间距 24px */
}

.dimension-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem; /* 间距 12px */
}

.dimension-text p {
  font-size: 0.18rem; /* 字号 18px */
  color: #505050;
  line-height: 1.6; /* 行高 160% */
  margin-bottom: 0; /* 使用 gap 控制间距 */
}

.dimension-drawing {
  flex: 0 0 1.68rem; /* 图片大小 168px */
  height: 1.68rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dimension-drawing img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 标准规格 */
.standard-specs-section {
  padding: 0.8rem 0;
  background: #f5f5f5;
}

.specs-container {
  padding: 0 2.04rem;
}

.specs-title {
  font-size: 0.32rem;
  color: #000000;
  margin-bottom: 0.4rem;
  text-align: center;
  font-family: "PangMenZhengDaoBiaoTiTiMianFeiBan-4", sans-serif;
}

.specs-card {
  background: #ffffff;
  border-radius: 0.36rem;
  padding: 0.48rem;
  display: flex;
  gap: 0.72rem;
}

.specs-column {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.specs-left {
  flex: 1;
  min-width: 0;
}

.specs-right {
  flex: 3;
  min-width: 0;
}

.spec-item-new {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.spec-label-new {
  font-size: 0.18rem;
  font-weight: 700;
  color: #0037c3;
  border-bottom: 1px solid #ececec;
  padding: 0.04rem 0.12rem;
  line-height: 1.6;
  word-break: break-word;
}

.spec-value-new {
  font-size: 0.18rem;
  font-weight: 400;
  color: #505050;
  line-height: 1.6;
  padding: 0 0.12rem;
  word-break: break-word;
}

.spec-power {
  display: block;
}

.power-table {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

.power-row {
  display: flex;
  gap: 0.1rem;
  border-bottom: 1px solid #ececec;
  padding: 0.08rem 0.12rem;
  min-width: fit-content;
}

.power-row:last-child {
  border-bottom: none;
}

.power-col {
  flex: 1;
  font-size: 0.18rem;
  font-weight: 400;
  color: #505050;
  line-height: 1.6;
  max-width: 50%;
}

.power-col:last-child {
  padding-right: 0;
}

.power-total {
  justify-content: center;
  text-align: center;
  border-bottom: none;
}

.power-col-full {
  font-size: 0.18rem;
  font-weight: 400;
  color: #505050;
  width: 100%;
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   移动端响应式 (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .product-page .hero-section {
    height: auto;
    aspect-ratio: 25 / 32;
    min-height: 0;
    max-height: none;
  }

  body.csisp-product-curve-overlay .product-page .hero-section {
    aspect-ratio: var(--product-hero-ratio, 16 / 9);
  }
  .product-page .hero-section .pc-bg {
    display: none;
  }
  .product-page .hero-section .mobile-bg {
    display: block;
  }

  .product-page .hero-section .hero-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-page .hero-section .hero-title {
    max-width: calc(100vw - 32px);
    font-size: clamp(0.4rem, 10vw, 0.64rem) !important;
    line-height: 1.14;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.lang-en .product-page .hero-section .hero-title {
    font-size: clamp(0.3rem, 7.6vw, 0.5rem) !important;
    line-height: 1.18;
    letter-spacing: 0;
  }

  .product-page .hero-title .hero-title-highlight,
  body.lang-en .product-page .hero-title .hero-title-highlight {
    display: inline;
    padding: 0 0.08rem;
    background: #0037c3;
    color: #fff;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .product-video-section {
    padding: 0.64rem 0 0.4rem;
  }

  .overview-title-bg {
    font-size: .96rem;
    top: 0.2rem;
    left: 16px;
  }

  .overview-title {
    font-size: .64rem;
    margin-bottom: 0.72rem;
    padding-left: 16px;
    padding-right: 16px;
    font-weight: normal;
    line-height: 1.3;
  }

  .overview-content {
    flex-direction: column; /* Specs first, Machine second */
    gap: 0.4rem;
  }

  .overview-content-wrapper {
    border: none;
    border-radius: 0;
    background-color: #f5f5f5;
    padding: 0.4rem 16px;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .overview-machine-container {
    width: 100%;
    padding: 0;
    margin-right: 0;
    margin-bottom: 0.2rem;
    order: -1; /* Forces machine container to appear ABOVE specs */
    justify-content: center;
  }

  .pc-machine-img {
    display: none;
  }

  .mobile-machine-img {
    display: block;
    max-width: 100%; /* 移动端不限制10rem */
    object-position: center; /* 移动端居中显示 */
  }

  .overview-specs {
    width: 100%;
    padding-left: 0;
  }

  .spec-item h3 {
    font-size: .48rem;
    color: #000000;
  }

  .spec-item p {
    font-size: .28rem;
  }

  .bag-images {
    gap: 24px;
  }

  .bag-images img {
    width: 1.28rem;
    height: 1.28rem;
    border-width: 0.08rem;
  }

  .bag-dimensions-section {
    padding: 0.6rem 0;
  }

  .dimensions-title {
    font-size: .48rem;
  }

  .dimensions-content {
    flex-direction: column;
    gap: 0.6rem;
  }

  .dimension-block {
    width: 100%; /* 移动端占满全宽 */
  }

  .dimension-subtitle {
    font-size: .28rem;
    margin-bottom: 0.16rem;
  }

  .dimension-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: center;
  }

  .dimension-text {
    flex: none;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
  }

  .dimension-text p {
    font-size: .28rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .dimension-drawing {
    flex: none;
    width: 2.6rem;
    height: 3rem;
 
    justify-content: center;
    align-items: center;
  }

  .dimension-drawing img {
    width: 100%;
    height: 100%;
    max-width: 2.8rem;
    max-height: 3rem;
    object-fit: contain;
  }

  .specs-title {
    font-size: .64rem;
    margin-bottom: 0.24rem;
    font-weight: normal;
  }

  .specs-card {
    flex-direction: column;
    gap: 0.12rem;
    padding: 16px;
    border-radius: 24px;
  }

  .specs-right {
    flex: 1 1 auto;
  }

  .specs-column {
    gap: 12px;
  }

  .spec-item-new {
    gap: 8px;
  }

  .spec-label-new {
    font-size: .28rem;
    color: #0037c3;
    padding: 4px 12px;
    border-bottom-color: #ececec;
  }

  .spec-value-new {
    font-size: .28rem;
    color: #505050;
    padding: 0 12px;
  }

  .power-row {
    gap: 10px;
    padding: 0 12px;
    border-bottom-color: #ececec;
  }

  .power-col {
    font-size: .28rem;
    color: #505050;
    padding-right: 0;
  }

  .power-col-full {
    font-size: .28rem;
    color: #505050;
  }

  .product-page .overview-machine-container {
    max-width: 100%;
    overflow: hidden;
  }

  .product-page .mobile-machine-img {
    display: block;
    width: min(100%, 6.8rem);
    max-width: 100%;
    max-height: 4.8rem;
    object-fit: contain;
    object-position: center;
    border-top-width: 3px;
    border-bottom-width: 3px;
    border-left-width: 8px;
    border-radius: 40px 0 0 40px;
  }
}
@media (max-width: 768px) {
  .overview-container {
    padding-left: 0px;
    padding-right: 0px;
  }
  .product-page .hero-section .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .dimensions-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .specs-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .product-overview-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
