/* V8 产品展示：四张产品横幅以单列纵向展示。 */
.products.hj-v7-grid {
  --hj-v7-width: min(1280px, calc(100vw - (var(--edge) * 2)));
  overflow: hidden;
}

.products.hj-v7-grid .section-heading {
  width: var(--hj-v7-width);
  max-width: none;
  margin-inline: auto;
}

.products.hj-v7-grid .product-list {
  width: var(--hj-v7-width);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  overflow: visible;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.products.hj-v7-grid .product,
.products.hj-v7-grid .product:nth-child(2n) {
  min-width: 0;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.products.hj-v7-grid .hj-v7-grid-link {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid #dfe8eb;
  border-radius: 3px;
  color: inherit;
  background: #f7fafb;
  text-decoration: none;
}

.products.hj-v7-grid .hj-v7-grid-link::after {
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 220ms ease;
}

.products.hj-v7-grid .hj-v7-grid-link:hover::after,
.products.hj-v7-grid .hj-v7-grid-link:focus-visible::after {
  border-color: rgba(40, 169, 193, .55);
}

.products.hj-v7-grid .hj-v7-grid-link:focus-visible {
  z-index: 2;
  outline: 2px solid #1373b3;
  outline-offset: -3px;
}

.products.hj-v7-grid .hj-v7-grid-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Word 文案版简介：仅覆盖横幅中产品名称下方原有的一行小字。 */
.products.hj-v7-grid .hj-v7-grid-summary {
  position: absolute;
  z-index: 1;
  left: 7.8%;
  top: 34.2%;
  width: 41.4%;
  min-height: 8.8%;
  display: flex;
  align-items: flex-start;
  padding: .35% 2.6% .5% 0;
  color: #526d7c;
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(12px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .01em;
  white-space: pre-line;
  box-sizing: border-box;
}

/* 第二张产品名为两行，简介下移，完整保留“可见光+红外共光轴相机”。 */
.products.hj-v7-grid .product:nth-child(2) .hj-v7-grid-summary {
  top: 42%;
  z-index: 3;
}

/* 覆盖横幅图片中原有的深色按钮，改为轻量文字、箭头与底部细线。 */
.products.hj-v7-grid .hj-v7-grid-cta {
  position: absolute;
  z-index: 2;
  left: 7.25%;
  top: 44.7%;
  width: 14.8%;
  min-height: 10.2%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 1.55% .45% 1.2%;
  box-sizing: border-box;
  color: #102a3a;
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  transition: color 180ms ease;
}

.products.hj-v7-grid .hj-v7-grid-cta::after {
  position: absolute;
  left: .7%;
  right: .7%;
  bottom: 12%;
  height: 1px;
  content: "";
  background: currentColor;
}

.products.hj-v7-grid .hj-v7-grid-cta-arrow {
  flex: 0 0 auto;
  font-size: 1.25em;
  line-height: 1;
  transform: translateY(-.18em);
  transition: transform 180ms ease;
}

.products.hj-v7-grid .hj-v7-grid-link:hover .hj-v7-grid-cta,
.products.hj-v7-grid .hj-v7-grid-link:focus-visible .hj-v7-grid-cta {
  color: #1373b3;
}

.products.hj-v7-grid .hj-v7-grid-link:hover .hj-v7-grid-cta-arrow,
.products.hj-v7-grid .hj-v7-grid-link:focus-visible .hj-v7-grid-cta-arrow {
  transform: translate(2px, -.28em);
}

/* 第二张产品的名称占两行，链接顺延到简介下方。 */
.products.hj-v7-grid .product:nth-child(2) .hj-v7-grid-cta {
  top: 50.6%;
}

@media (max-width: 820px) {
  .products.hj-v7-grid {
    --hj-v7-width: calc(100vw - (var(--edge) * 2));
  }

  .products.hj-v7-grid .product-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .products.hj-v7-grid {
    --hj-v7-width: calc(100vw - 40px);
  }

  .products.hj-v7-grid .section-heading {
    margin-bottom: 42px;
  }

  .products.hj-v7-grid .product-list {
    gap: 12px;
    border-radius: 2px;
  }

  .products.hj-v7-grid .hj-v7-grid-summary {
    top: 33.6%;
    width: 44.4%;
    min-height: 10.5%;
    font-size: clamp(7px, 2.15vw, 11px);
    line-height: 1.45;
  }

  .products.hj-v7-grid .product:nth-child(2) .hj-v7-grid-summary {
    top: 42%;
  }

  .products.hj-v7-grid .product:nth-child(2) .hj-v7-grid-cta {
    top: 52%;
  }

  .products.hj-v7-grid .hj-v7-grid-cta {
    left: 7.1%;
    top: 44.2%;
    width: 18.5%;
    min-height: 12.5%;
    gap: 8px;
    padding: 2.1% .7% 1.5%;
    font-size: clamp(9px, 2.35vw, 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .products.hj-v7-grid .hj-v7-grid-link::after {
    transition: none;
  }


  .products.hj-v7-grid .hj-v7-grid-cta,
  .products.hj-v7-grid .hj-v7-grid-cta-arrow {
    transition: none;
  }
}
