/* ============================================================================
   Hero 视频尺寸收敛（2026-11-28，PC 专用）
   目标：只缩小 PC 端 AI 爆炸组装视频的画面，移动端沿用原有比例与布局。
   视频容器固定在首屏右侧，视频按原始比例完整显示（contain），
   不再用 cover 把产品拉满整个首屏。
   ============================================================================ */

/* 两个视频交叉淡入淡出：默认第二个隐藏 */
section.cncmfg-hero #cncmfg-hero-film{transition:opacity .8s ease;}
section.cncmfg-hero #cncmfg-hero-film:not(.is-active){opacity:0;}
section.cncmfg-hero #cncmfg-hero-film-alt{opacity:0;transition:opacity .8s ease;}
section.cncmfg-hero #cncmfg-hero-film-alt.is-active{opacity:1;}

/* ---------- PC（>=768px）：产品画面收敛到右侧，完整显示 ---------- */
@media (min-width:768px){
  section.cncmfg-hero .cncmfg-hero-images{
    position:absolute !important;
    left:auto !important;
    right:2% !important;
    top:50% !important;
    bottom:auto !important;
    width:min(50%,720px) !important;
    height:min(480px,68vh) !important;
    transform:translateY(-50%) !important;
    z-index:-2 !important;
    overflow:visible !important;
  }
  /* 文案始终在视频之上，避免右侧容器边缘压住按钮/文字 */
  section.cncmfg-hero .cncmfg-hero-inner{
    position:relative !important;
    z-index:2 !important;
  }
  section.cncmfg-hero #cncmfg-hero-film,
  section.cncmfg-hero #cncmfg-hero-film-alt{
    position:absolute !important;
    inset:0 !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    bottom:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:transparent !important;
  }
  /* 遮罩只覆盖左侧文案区，右侧产品不再被压暗 */
  section.cncmfg-hero:after{
    background:linear-gradient(90deg,
      #f6f7f8 0%,
      rgba(246,247,248,.98) 34%,
      rgba(246,247,248,.82) 46%,
      rgba(246,247,248,0) 62%) !important;
  }
}

/* ---------- 手机（<768px）：不动原有比例，只给第二个视频补齐定位 ---------- */
@media (max-width:767px){
  section.cncmfg-hero #cncmfg-hero-film-alt{
    position:absolute !important;
    inset:0 !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    bottom:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
    background:#f6f7f8 !important;
  }
}
