/* ============================================================
   首屏 · 双卡并排 + 工厂图放大（2026-11-27）
   1) 并排卡内：上半文案，下半是自家的厂区实景（取代原产品轮播位）；
   2) 放大层 #hz：点厂区图，图片放大铺满全屏，中心浮现原开屏卡。
   回退：删首页本文件与 hero-zoom.js 两处引用，恢复 hero-stack.css / .js。
   ============================================================ */

/* ---------- 1. 并排卡内版式 ---------- */
.hs-body--pair{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:34px 34px 30px;
}
.hs-body--pair .hs-copy{
  flex:0 0 auto;
  /* 两卡文案行数不同，给个下限，厂区图的顶边才对得齐 */
  min-height:256px;
}
.hs-body--pair .hs-brand{margin:0 0 10px;padding-bottom:10px}
.hs-body--pair .hs-brand-cn{font-size:56px}
.hs-body--pair .hs-title{font-size:clamp(28px,2.6vw,38px)}
.hs-body--pair .hs-lead{
  margin:14px 0 0;
  max-width:none;
  font-size:15.5px;line-height:1.38;
}
.hs-body--pair .hs-facts{margin:12px 0 0;gap:18px}
.hs-body--pair .hs-facts li+li{padding-left:18px}
.hs-body--pair .hs-facts b{font-size:26px}
.hs-body--pair .hs-facts span{font-size:12px;margin-top:0;line-height:1.35;color:rgba(255,255,255,.93);text-shadow:0 1px 3px rgba(2,8,20,.95),0 0 10px rgba(2,8,20,.55)}

/* 厂区实景：卡内下半，点击放大 */
.hs-factory{
  position:relative;
  isolation:isolate;
  flex:1 1 auto;
  min-height:168px;
  margin-top:26px;
  padding:0;
  display:block;
  border:0;
  border-radius:14px;
  overflow:hidden;
  background:#0c1c32;
  cursor:zoom-in;
  -webkit-appearance:none;appearance:none;
  box-shadow:0 18px 40px -20px rgba(3,10,24,.68),
             inset 0 0 0 1px rgba(255,255,255,.30);
  transition:box-shadow .3s ease;
}
.hs-factory img{
  display:block;
  width:100%;height:100%;
  /* 完整展示：整张厂区照都看得见，留白处是深蓝底 */
  object-fit:cover;
  transform:scale(1.005);
  position:relative;z-index:1;
  transition:transform .8s cubic-bezier(.22,.8,.24,1);
}
.hs-factory:hover img{transform:scale(1.05)}
.hs-factory:hover{
  box-shadow:0 22px 48px -20px rgba(3,10,24,.78),
             inset 0 0 0 1px rgba(255,255,255,.55);
}
/* 下沿压暗，让「点击放大」胶囊压在图上也不糊 */
.hs-factory::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,10,22,0) 46%,rgba(4,10,22,.74) 100%);
}
.hs-factory-tap{
  position:absolute;left:14px;bottom:12px;z-index:2;
  display:inline-flex;align-items:center;gap:8px;
  height:32px;padding:0 14px;
  border-radius:999px;
  background:rgba(6,14,28,.60);
  -webkit-backdrop-filter:blur(8px) saturate(1.3);
  backdrop-filter:blur(8px) saturate(1.3);
  border:1px solid rgba(255,255,255,.40);
  font-size:12.5px;letter-spacing:.02em;color:#fff;
  box-shadow:0 6px 18px -8px rgba(2,8,20,.7), inset 0 1px 0 rgba(255,255,255,.28);
  transition:background-color .25s ease,border-color .25s ease;
}
.hs-factory-tap::before{
  content:"";width:9px;height:9px;border-radius:2px;
  border:1.4px solid rgba(255,255,255,.92);
  box-shadow:inset 0 0 0 2px rgba(6,14,28,.0);
}
.hs-factory:hover .hs-factory-tap{background:rgba(10,24,44,.78);border-color:#fff}
/* 双卡并列阶段不要那圈会跑的亮光（边缘那道白边就是它） */
.hs-stage .hs-card .hs-shine{display:none}
/* 边缘那圈 18px 的折射环：里面是首屏背景的模糊图，在并排卡上会显出
   一条浅蓝白带，整圈去掉（玻璃靠断面与内阴影立住就够了） */
.hs-stage .hs-card .hs-face::before{display:none}
/* 左上角那团品牌色高光在双卡里看着像光斑，去掉；断面白边也压淡一档 */
.hs-stage .hs-card .hs-face,
.hs-stage .hs-card.hs-card--ram .hs-face,
.hs-stage .hs-card.hs-card--along .hs-face{
  background:
    radial-gradient(130% 70% at 50% -26%,rgba(255,255,255,.12) 0%,rgba(255,255,255,.03) 52%,rgba(255,255,255,0) 72%),
    linear-gradient(162deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.03) 40%,rgba(9,22,44,.22) 100%),
    rgba(12,26,48,.06);
}
.hs-stage .hs-card .hs-face::after{
  background:
    conic-gradient(from 200deg,
      rgba(158,220,255,.22) 0deg,
      rgba(255,255,255,.06) 90deg,
      rgba(255,240,190,.18) 190deg,
      rgba(158,220,255,.08) 270deg,
      rgba(158,220,255,.22) 360deg),
    linear-gradient(185deg,
      rgba(255,255,255,.16) 0%,
      rgba(255,255,255,.11) 16%,
      rgba(255,255,255,.06) 48%,
      rgba(255,255,255,.04) 76%,
      rgba(255,255,255,.08) 100%);
}
/* 顶边那条 1px 纯白内高光也一起压淡，不然叠在断面上还是亮 */
.hs-stage .hs-card .hs-face{
  box-shadow:
    0 48px 96px -32px rgba(3,10,24,.54),
    0 20px 44px -24px rgba(3,10,24,.34),
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -30px 32px -28px rgba(2,8,20,.58),
    inset 0 -1px 0 rgba(2,8,20,.30),
    inset 1px 0 0 rgba(255,255,255,.12),
    inset -1px 0 0 rgba(255,255,255,.06);
}

/* 雷米高那张取景往下一点，牌匾进画面 */
.hs-card--ram .hs-factory img{object-position:center 82%}

/* ---------- 2. 放大层 ---------- */
.hz{
  position:fixed;inset:0;z-index:900;
  /* 滚动条槽位常驻（scrollbar-gutter:stable），inset:0 会少 15px、右边露一条底。
     首页根节点 zoom:.9，vw 按视觉视口算，所以除回来才是整屏宽 */
  width:calc(100vw / .9);
  visibility:hidden;pointer-events:none;
  isolation:isolate;
  /* 收起时等回缩动画走完再隐藏，展开时立刻可见 */
  transition:visibility 0s linear .78s;
}
.hz.is-on{visibility:visible;pointer-events:auto;transition:visibility 0s}
/* 点哪儿都缩回，光标给个提示 */
#hz{cursor:zoom-out}
/* 从按钮那块区域长到全屏的那张图 */
.hz-bg{
  position:absolute;z-index:0;left:0;top:0;width:1px;height:1px;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:0;visibility:hidden;
  transition:left .78s cubic-bezier(.22,.8,.2,1),
             top .78s cubic-bezier(.22,.8,.2,1),
             width .78s cubic-bezier(.22,.8,.2,1),
             height .78s cubic-bezier(.22,.8,.2,1),
             opacity .34s ease,
             visibility .78s;
}
.hz-bg.is-show{opacity:1;visibility:visible}
/* 滚轮关闭：照样缩回小图，只是把 0.78s 压到 0.26s。
   期间（300ms）页面滚动被拦住，动画播得完，不会停在半路。 */
.hz-bg.is-fast{transition-duration:.26s!important}
/* 只有雷米高那张往上挪（对齐图底，牌匾才露得出来）；澳龙保持居中 */
#hz.is-ram .hz-bg{
  background-position:center bottom;
  /* 1080p 下这张图天空占太多：整张再放大一档、底边钉住，
     牌匾往上抬，天空占比收小 */
  transform:scale(1.14);
  transform-origin:center bottom;
}

/* 打开期间锁滚动 */
html.hz-locked{overflow:hidden}

/* ---------- 3. 窄桌面：两卡各窄一档，字号收一点 ---------- */
@media (min-width:821px) and (max-width:1180px){
  .hs.is-live .hs-stage{width:calc(100% - 80px);gap:20px}
  .hs.is-live .hs-card{height:min(660px,78vh)}
  .hs-body--pair{padding:28px 26px 24px}
  .hs-body--pair .hs-brand-cn{font-size:46px}
  .hs-body--pair .hs-lead{font-size:14px;line-height:1.66}
  .hs-body--pair .hs-facts b{font-size:22px}
  .hs-factory{min-height:150px;margin-top:18px}
  .hs-factory-tap{height:30px;font-size:12px;left:12px;bottom:10px}
}

/* ---------- 4. 手机：卡片上下排，放大卡占满可视区 ---------- */
@media (max-width:820px){
  .hz{width:100vw}
  .hs-body--pair{padding:24px 20px 22px}
  .hs-body--pair .hs-brand-cn{font-size:44px}
  .hs-body--pair .hs-title{font-size:30px}
  .hs-body--pair .hs-lead{font-size:14.5px;line-height:1.68;margin-top:12px}
  .hs-body--pair .hs-facts{margin-top:14px;gap:16px}
  .hs-body--pair .hs-facts b{font-size:22px}
  .hs-factory{min-height:132px;margin-top:16px}
}

@media (prefers-reduced-motion:reduce){
  .hs-factory img,.hs-factory-tap{transition:none}
  .hz-bg{transition:none}
}
