/**
 * product-hero block styles — 1:1 移植 bale-opener 原型的 `.product-hero`
 * （数值取自原型渲染后的计算值，原型 CSS 有 7 层覆盖，前面的规则基本是死代码）。
 *
 * 与原型的差异只有两处，都是刻意的：
 *   1. 原型 final.css 把按钮 / 播放钮全局改成 ZHOUJI 红 #ed1c24，那属于「全局」
 *      品牌层（同一段还改了页头页脚），本次只做产品内容，因此仍用站点橙 #e86e1b。
 *   2. 轮播动效重写（原型是硬换 img.src，没有任何过渡）——见 assets/product-hero 段。
 */

@layer zj-block {
/* 版心：原型 hero 用 1180，其余段落 1040；用 padding 夹出来，省一层 wrapper */
.zj-x-prod-hero {
  padding: 92px max(var(--zjx-gutter), calc(50% - 590px)) 34px;
  background: linear-gradient(180deg, #f7faff 0%, #eef4fa 100%);
}
.zj-x-prod-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 36px;
  align-items: center;
}

/* ── 左栏文案 ───────────────────────────────────────────────────────── */
.zj-x-prod-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #647184;
  font-size: 13px;
  font-weight: 850;
}
.zj-x-prod-hero__crumbs a:first-child {
  color: var(--zjx-action);
}
.zj-x-prod-hero__crumbs a:hover {
  color: var(--zjx-action);
}
.zj-x-prod-hero__crumbs strong {
  color: #082756;
  font-weight: 850;
}
.zj-x-prod-hero__copy h1 {
  margin: 0;
  color: #082756;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.04;
  font-weight: 950;
}
.zj-x-prod-hero__lead {
  margin: 18px 0 0;
  color: #17263c;
  font-size: 17px;
  line-height: 1.62;
}
.zj-x-prod-hero__lead p {
  margin: 0 0 12px;
}
.zj-x-prod-hero__lead p:last-child {
  margin-bottom: 0;
}
.zj-x-prod-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.zj-x-prod-hero__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #082756;
  font-size: 12.5px;
  font-weight: 820;
  background: var(--zjx-action-tint);
  border: 1px solid rgba(237, 28, 36, 0.26);
  border-radius: 4px;
}
.zj-x-prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}

/* 按钮原语（本块属主；其他产品块用到时由 css-auto-loader 自动补挂样式） */
.zj-x-prod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 950;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.zj-x-prod-btn--primary {
  color: #fff;
  background: var(--zjx-action);
}
.zj-x-prod-btn--primary:hover {
  background: var(--zjx-action-dark);
  transform: translateY(-2px);
}
.zj-x-prod-btn--secondary {
  color: #082756;
  background: var(--zjx-action-tint);
  border-color: rgba(237, 28, 36, 0.26);
}
.zj-x-prod-btn--secondary:hover {
  border-color: rgba(237, 28, 36, 0.34);
  transform: translateY(-2px);
}

/* ── 右栏轮播 ───────────────────────────────────────────────────────── */
.zj-x-prod-hero__frame {
  position: relative;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdae8;
  box-shadow: 0 26px 60px rgba(8, 39, 86, 0.13);
}
.zj-x-prod-hero__stage {
  position: relative;
  overflow: hidden;
  height: 540px;
}
.zj-x-prod-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.zj-x-prod-hero__slide.is-active {
  opacity: 1;
  /* 缓慢回正的轻微推镜：原型只是硬换 src，这里给停留期一点呼吸感 */
  animation: zj-x-prod-hero-kb 7.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes zj-x-prod-hero-kb {
  from { transform: scale(1.045); }
  to   { transform: scale(1); }
}
.zj-x-prod-hero__frame figcaption {
  position: absolute;
  left: 7.5%;
  right: 7.5%;
  bottom: 38px;
  z-index: 3;
  padding: 18px 26px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.38;
  background: linear-gradient(90deg, rgba(8, 39, 86, 0.76), rgba(8, 39, 86, 0.56));
  border-top: 5px solid var(--zjx-action-light);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 42px rgba(6, 26, 54, 0.16);
}
.zj-x-prod-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #fff;
  background: rgba(8, 39, 86, 0.62);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}
.zj-x-prod-hero__arrow:hover {
  background: var(--zjx-action-dark);
  transform: translateY(-50%) scale(1.08);
}
.zj-x-prod-hero__arrow:focus-visible {
  outline: 2px solid var(--zjx-action-light);
  outline-offset: 3px;
}
.zj-x-prod-hero__arrow--prev { left: 28px; }
.zj-x-prod-hero__arrow--next { right: 28px; }

.zj-x-prod-hero__dots {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(8, 39, 86, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.zj-x-prod-hero__dot {
  position: relative;
  width: 26px;
  height: 4px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.zj-x-prod-hero__dot i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--zjx-action-light);
  transform: scaleX(0);
  transform-origin: left center;
}
/* 自动播放时圆点里跑一条进度；JS 通过 --zj-prod-dwell 传入停留时长 */
.zj-x-prod-hero__dot.is-active i {
  animation: zj-x-prod-hero-dot var(--zj-prod-dwell, 5.2s) linear forwards;
}
.zj-x-prod-hero__dot.is-active.is-paused i {
  animation-play-state: paused;
}
.zj-x-prod-hero__dot.is-active.is-static i {
  animation: none;
  transform: scaleX(1);
}
@keyframes zj-x-prod-hero-dot {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
}

@layer zj-responsive {
@media (prefers-reduced-motion: reduce) {
  .zj-x-prod-hero__slide,
  .zj-x-prod-hero__slide.is-active,
  .zj-x-prod-hero__dot.is-active i {
    animation: none;
    transition: none;
    transform: none;
  }
}
@media (max-width: 1040px) {
  .zj-x-prod-hero {
    padding: 56px var(--zjx-gutter) 30px;
  }
  .zj-x-prod-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .zj-x-prod-hero__stage {
    height: 420px;
  }
  .zj-x-prod-hero__frame figcaption {
    bottom: 22px;
    padding: 14px 18px;
    font-size: 17px;
  }
}
@media (max-width: 720px) {
  .zj-x-prod-hero {
    padding: 40px var(--zjx-gutter) 26px;
  }
  .zj-x-prod-hero__stage {
    height: 300px;
  }
  .zj-x-prod-hero__frame {
    padding: 8px;
  }
  .zj-x-prod-hero__frame figcaption {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
    font-size: 15px;
  }
  .zj-x-prod-hero__arrow {
    width: 42px;
    height: 42px;
  }
  .zj-x-prod-hero__arrow--prev { left: 12px; }
  .zj-x-prod-hero__arrow--next { right: 12px; }
  .zj-x-prod-hero__dots {
    top: 14px;
    right: 14px;
  }
  .zj-x-prod-hero__actions {
    gap: 12px;
  }
  .zj-x-prod-btn {
    flex: 1 1 100%;
  }
}
}
