/* ==========================================================
   栏目 Banner v3 · 矢量科技场景轮播
   设计原则：简洁、大气、科技、环保、动感
   - 图形全部为 SVG 矢量，任意分辨率锐利（解决照片拉伸模糊）
   - 右侧场景区轮播，左侧留白给文字，保证可读
   - PC / 平板 / 手机 三档适配
   ========================================================== */

.ph-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 56px 0 60px;
  background:
    radial-gradient(900px 460px at 8% -14%, #E4F2FB 0%, rgba(228,242,251,0) 64%),
    radial-gradient(760px 420px at 96% 108%, #E2F6EC 0%, rgba(226,246,236,0) 62%),
    linear-gradient(168deg, #FCFDFE 0%, #F1F8FC 44%, #EBF7F1 100%);
  border-bottom: 1px solid #DFEAF3;
  isolation: isolate;
}

/* 顶部品牌细光带：一条纵向渐变，极简但有科技感 */
.ph-hero::before,
.page-hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, #0E7FC1 18%, #12879A 46%, #12A06E 76%, transparent 100%);
  opacity: .82;
  z-index: 3;
}

/* 极淡网格：科技底纹，不抢内容 */
.ph-hero::after,
.page-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,86,140,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,86,140,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 78% 74% at 22% 30%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 22% 30%, #000 0%, transparent 82%);
  z-index: 0;
}

/* 旧结构兜底（若仍有 .bg / .veil / .glow 残留，隐藏掉） */
.page-hero .bg,
.page-hero .veil,
.page-hero .glow { display: none !important; }

.page-hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero .crumb {
  color: #6E8899;
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 14px;
}
.page-hero .crumb a { color: #5D7C90; }
.page-hero .crumb a:hover { color: #0E7FC1; }

.page-hero h1 {
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -1.1px;
  color: #0A3559;
  margin: 0 0 16px;
  font-weight: 800;
}
/* 标题下一条品牌短线，简洁有力 */
.page-hero h1::after {
  content: '';
  display: block;
  width: 54px; height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0E7FC1, #12A06E);
}

.page-hero .sub {
  color: #4F6E82;
  font-size: 16.5px;
  line-height: 1.82;
  max-width: 580px;
  margin: 0;
}

.page-hero .kpi {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #D9E8F2;
  max-width: 620px;
}
.page-hero .kpi div strong {
  display: block;
  color: #0A3559;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.page-hero .kpi div span {
  font-size: 12.5px;
  color: #7793A4;
  letter-spacing: .2px;
}

/* ---------- 场景轮播舞台 ---------- */
.ph-stage {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  z-index: 1;
  pointer-events: none;
  /* 渐隐左边界，与文字区柔和过渡 */
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 34%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 34%);
}
.ph-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 40px 26px 10px;
  opacity: 0;
  transform: scale(.965) translateX(16px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.ph-slide.on {
  opacity: 1;
  transform: scale(1) translateX(0);
}
.ph-svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  max-width: 560px;
  display: block;
  overflow: visible;
}

/* 指示点 */
.ph-dots-bar {
  position: absolute;
  right: 34px;
  bottom: 26px;
  display: flex;
  gap: 7px;
  z-index: 4;
}
.ph-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #C3D9E8;
  transition: all .4s ease;
}
.ph-dot.on {
  width: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0E7FC1, #12A06E);
}

/* ==========================================================
   动画（纯 CSS，轻量）
   ========================================================== */
@keyframes phDash { to { stroke-dashoffset: -52; } }
.ph-stream { animation: phDash 2.6s linear infinite; }
.ph-stream.s2 { animation-duration: 3.2s; }
.ph-stream.s3 { animation-duration: 2.1s; }
.ph-stream.s4 { animation-duration: 3.8s; }

@keyframes phHeat {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: .72; }
  50%      { transform: translateY(-9px) scaleY(1.1); opacity: .34; }
}
.ph-heat { animation: phHeat 2.5s ease-in-out infinite; transform-origin: bottom center; }
.ph-heat.h2 { animation-duration: 3.3s; animation-delay: -.8s; }

@keyframes phSuck {
  0%   { stroke-dashoffset: 30; opacity: .18; }
  50%  { opacity: .62; }
  100% { stroke-dashoffset: 0; opacity: .18; }
}
.ph-suck path { animation: phSuck 1.9s linear infinite; }

@keyframes phSpin { to { transform: rotate(360deg); } }
.ph-rotor { animation: phSpin 9s linear infinite; transform-origin: 320px 250px; }
.ph-spiral { animation: phSpin 26s linear infinite; transform-origin: 320px 250px; }

@keyframes phRipple {
  0%   { r: 15; opacity: .5; }
  100% { r: 46; opacity: 0; }
}
.ph-ripple { animation: phRipple 2.8s ease-out infinite; }

@keyframes phScan {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: .4; }
  88%  { opacity: .4; }
  100% { transform: translateX(370px); opacity: 0; }
}
.ph-scan { animation: phScan 4.6s ease-in-out infinite; }

@keyframes phCell {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
.ph-cell { animation: phCell 3.4s ease-in-out infinite; }

@keyframes phGrow {
  from { stroke-dashoffset: 900; }
  to   { stroke-dashoffset: 0; }
}
.ph-grow {
  stroke-dasharray: 900;
  animation: phGrow 3.2s ease-out infinite;
}
.ph-dots circle {
  fill: #12A06E;
  animation: phCell 3.4s ease-in-out infinite;
}

/* ==========================================================
   平板
   ========================================================== */
@media (max-width: 1080px) {
  .page-hero { min-height: 340px; padding: 46px 0 48px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .sub { font-size: 15.5px; max-width: 480px; }
  .page-hero .kpi { gap: 28px; margin-top: 24px; padding-top: 18px; }
  .page-hero .kpi div strong { font-size: 21px; }
  .ph-stage { width: 48%; }
  .ph-slide { padding: 20px 22px 20px 4px; }
  .ph-svg { max-width: 430px; }
  .ph-dots-bar { right: 22px; bottom: 20px; }
}

/* ==========================================================
   手机：改为上下布局，场景退居背景（低对比，不压文字）
   ========================================================== */
@media (max-width: 760px) {
  .page-hero {
    min-height: 0;
    display: block;
    padding: 34px 0 36px;
  }
  .page-hero h1 { font-size: 29px; letter-spacing: -.5px; margin-bottom: 12px; }
  .page-hero h1::after { width: 42px; height: 3px; margin-top: 13px; }
  .page-hero .sub { font-size: 14.5px; line-height: 1.78; }
  .page-hero .kpi {
    gap: 20px 26px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .page-hero .kpi div strong { font-size: 19px; }
  .page-hero .kpi div span { font-size: 11.5px; }

  /* 场景：右上角弱化为装饰水印，透明度压到很低，绝不干扰阅读 */
  .ph-stage {
    width: 100%;
    left: auto;
    right: -22%;
    top: -6%;
    bottom: auto;
    height: 78%;
    opacity: .30;
    mask-image: radial-gradient(ellipse 68% 78% at 62% 34%, #000 0%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse 68% 78% at 62% 34%, #000 0%, transparent 76%);
  }
  .ph-slide { padding: 0; }
  .ph-svg { max-width: 330px; }
  .ph-dots-bar { display: none; }
  /* 手机上关掉重动画，省电且不刺眼 */
  .ph-rotor, .ph-spiral, .ph-scan, .ph-ripple { animation: none; }
}

@media (max-width: 420px) {
  .page-hero { padding: 28px 0 30px; }
  .page-hero h1 { font-size: 25px; }
  .page-hero .sub { font-size: 13.8px; }
  .page-hero .kpi { gap: 16px 22px; }
  .page-hero .kpi div strong { font-size: 17px; }
  .ph-stage { opacity: .25; }
}

/* 尊重系统「减少动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  .ph-stream, .ph-heat, .ph-suck path, .ph-rotor, .ph-spiral,
  .ph-ripple, .ph-scan, .ph-cell, .ph-grow, .ph-dots circle {
    animation: none !important;
  }
  .ph-slide { transition: opacity .3s ease; transform: none !important; }
}
