/* hover-zoom — 局部放大 + 场景延伸
   用法：
   <div class="hz" data-scene="场景图URL">
     <img src="主图">
     <span class="hz-lens" aria-hidden="true"></span>
     <div class="hz-scene"><img src="场景图" alt=""><span class="hz-cap"><b>标签</b>说明</span></div>
     <span class="hz-hot">Production</span>
   </div>
*/
.hz{
  position:relative;display:block;width:fit-content;max-width:100%;margin:0 auto;
  overflow:hidden;border-radius:8px;line-height:0;background:#eef1f4;
  -webkit-tap-highlight-color:transparent;
}
.hz>img{display:block;max-width:100%;height:auto;border-radius:8px}

/* 产品页主图（.prod-hero）：外层接管圆角与投影，img 自身不再留外边距 */
.hz.hz-hero{margin:20px auto;box-shadow:0 6px 24px rgba(15,27,45,.12)}
.hz.hz-hero>img{margin:0 auto;box-shadow:none;max-height:min(560px,74vh)}

/* 放大镜 */
.hz .hz-lens{
  position:absolute;left:0;top:0;width:150px;height:150px;border-radius:12px;
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 10px 30px rgba(9,18,32,.32),inset 0 0 0 1px rgba(9,18,32,.13);
  background-repeat:no-repeat;background-color:#fff;
  pointer-events:none;opacity:0;transition:opacity .16s ease;z-index:3;
  will-change:left,top,background-position;
}

/* 场景层：从下往上揭开 */
.hz .hz-scene{
  position:absolute;inset:0;z-index:4;pointer-events:none;
  clip-path:inset(100% 0 0 0);
  transition:clip-path .62s cubic-bezier(.22,.61,.36,1);
}
.hz.is-scene .hz-scene{clip-path:inset(0 0 0 0)}
.hz .hz-scene>img{
  width:100%;height:100%;object-fit:cover;display:block;
  aspect-ratio:auto;max-width:none;border-radius:0;margin:0;
}
.hz .hz-scene .hz-cap{
  position:absolute;left:0;right:0;bottom:0;
  padding:38px 18px 14px;
  background:linear-gradient(to top,rgba(6,13,24,.95) 0%,rgba(6,13,24,.74) 44%,rgba(6,13,24,0) 100%);
  color:#fff;font-size:12.5px;line-height:1.62;font-style:normal;text-align:left;
  font-family:system-ui,-apple-system,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}
.hz .hz-scene .hz-cap b{
  display:block;font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;
  color:#ff97a5;font-weight:700;margin-bottom:5px;
}

/* 右下角胶囊 */
.hz .hz-hot{
  position:absolute;left:12px;top:12px;z-index:5;
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px 7px 11px;border-radius:999px;
  background:rgba(10,19,33,.74);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  color:#fff;font:600 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
  opacity:0;transform:translateY(8px);
  transition:opacity .28s ease,transform .28s ease,background .2s ease;
  user-select:none;-webkit-user-select:none;
}
.hz .hz-hot::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:#ff5b6e;box-shadow:0 0 0 2px rgba(255,91,110,.22);
  flex:0 0 auto;
}
.hz:hover .hz-hot{opacity:1;transform:none}
.hz .hz-hot:hover{background:rgba(200,16,46,.86)}
.hz.is-scene .hz-hot{opacity:0;pointer-events:none}
.hz.is-scene .hz-lens{opacity:0 !important}

/* 触屏：胶囊常显，靠点击切换 */
@media (hover:none),(pointer:coarse){
  .hz .hz-hot{opacity:1;transform:none}
}

/* 打印与减少动效 */
@media (prefers-reduced-motion:reduce){
  .hz .hz-scene{transition:none}
  .hz .hz-hot{transition:none}
}
