/* ============================================================
   hero-fx.css — 页面 Banner 通用视觉层
   供 about.html / courses.html 等页面共用
   依赖 redesign.css 的 .page-hero 基础结构
   ============================================================ */
/* ============================================================
   Banner 高端视觉层（参考大促活动页手法）
   粒子星座 / 极光团 / 扫光光束 / 流光标题 / 数据卡光边
   ============================================================ */
.abx-hero{padding:150px 0 96px}
.abx-hero .ph-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.abx-hero .container{position:relative;z-index:3}

/* --- 极光团：大尺度模糊光斑，缓慢漂移呼吸 --- */
.ph-aurora{
  position:absolute;border-radius:50%;filter:blur(90px);opacity:.55;
  pointer-events:none;mix-blend-mode:screen;will-change:transform;
}
.ph-aurora--a{
  width:640px;height:480px;top:-160px;right:-140px;
  background:radial-gradient(closest-side,rgba(64,156,255,.75),rgba(0,164,255,.28) 55%,transparent 75%);
  animation:auroraA 14s ease-in-out infinite;
}
.ph-aurora--b{
  width:520px;height:420px;bottom:-200px;left:-160px;
  background:radial-gradient(closest-side,rgba(0,209,104,.4),rgba(45,120,255,.3) 55%,transparent 78%);
  animation:auroraB 18s ease-in-out infinite;
}
@keyframes auroraA{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-70px,50px,0) scale(1.18)}
}
@keyframes auroraB{
  0%,100%{transform:translate3d(0,0,0) scale(1.05)}
  50%{transform:translate3d(80px,-40px,0) scale(.92)}
}

/* --- 扫光光束：斜向高光条掠过 --- */
.ph-beam{
  position:absolute;top:-30%;bottom:-30%;width:190px;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.09) 42%,rgba(173,216,255,.22) 50%,rgba(255,255,255,.09) 58%,transparent 100%);
  transform:skewX(-18deg);left:-260px;
  animation:beamSweep 7.5s cubic-bezier(.55,.1,.3,.9) infinite;
  pointer-events:none;mix-blend-mode:screen;
}
.ph-beam--2{width:90px;animation-duration:11s;animation-delay:3.2s;opacity:.6}
@keyframes beamSweep{
  0%{left:-26%}
  62%,100%{left:118%}
}

/* --- 旋转细环：轨道装饰 --- */
.ph-ring{
  position:absolute;border-radius:50%;pointer-events:none;
  translate:calc(var(--mx,0)*var(--depth,24px)) calc(var(--my,0)*var(--depth,24px));
  transition:translate .25s ease-out;
}
.ph-ring--a{
  width:330px;height:330px;top:2%;right:6%;--depth:64px;
  border:1.5px dashed rgba(255,255,255,.28);
  animation:ringSpin 26s linear infinite;
  -webkit-mask-image:radial-gradient(closest-side,#000 78%,transparent 82%);
  mask-image:radial-gradient(closest-side,#000 78%,transparent 82%);
}
.ph-ring--b{
  width:190px;height:190px;bottom:6%;right:26%;--depth:-40px;
  border:1.5px solid rgba(111,227,180,.4);
  animation:ringSpin 18s linear infinite reverse;
}
.ph-ring--b::before{
  content:"";position:absolute;top:-5px;left:50%;width:9px;height:9px;margin-left:-4.5px;
  border-radius:50%;background:#6fe3b4;box-shadow:0 0 14px 3px rgba(111,227,180,.65);
}
@keyframes ringSpin{to{transform:rotate(360deg)}}

/* --- 标题流光：渐变文字带呼吸高光 --- */
.abx-hero h1{position:relative}
.abx-hero h1 em{
  background:linear-gradient(110deg,#9fd0ff 0%,#6fe3b4 28%,#eafff4 46%,#6fe3b4 62%,#9fd0ff 100%);
  background-size:220% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  animation:emShine 5.5s ease-in-out infinite;
}
@keyframes emShine{
  0%,100%{background-position:0% 0}
  50%{background-position:100% 0}
}

/* --- 标题入场：from 模式（默认可见，动画中断也不会空白） --- */
.abx-hero h1{animation:heroTitleIn .9s cubic-bezier(.22,1,.36,1) .15s backwards}
.abx-hero .ph-crumbs{animation:heroFade .7s ease .1s backwards}
.abx-hero .ph-lead{animation:heroTitleIn .8s ease .45s backwards}
.abx-hero .ph-meta{animation:heroTitleIn .8s ease .62s backwards}
@keyframes heroTitleIn{from{opacity:0;transform:translateY(26px)}}
@keyframes heroFade{from{opacity:0}}

/* --- 数据卡：流光描边 --- */
.page-hero--blue .ph-meta div{position:relative;overflow:hidden}
.page-hero--blue .ph-meta div::after{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:linear-gradient(120deg,transparent 30%,rgba(159,208,255,.85) 50%,transparent 70%);
  background-size:240% 100%;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  animation:cardBorder 4s linear infinite;opacity:0;transition:opacity .4s;
  pointer-events:none;
}
.page-hero--blue .ph-meta div:hover::after{opacity:1}

/* --- 底部渐隐衔接 --- */
.abx-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:110px;z-index:2;
  background:linear-gradient(to bottom,transparent,rgba(6,29,84,.28));
  pointer-events:none;
}

@media(max-width:900px){
  .abx-hero{padding:122px 0 64px}
  .ph-aurora--a{width:420px;height:340px;right:-180px}
  .ph-ring--a{width:220px;height:220px;right:-40px}
  .ph-beam{width:110px}
}
@media(prefers-reduced-motion:reduce){
  .ph-aurora,.ph-beam,.ph-ring,.ph-ring--b::before{animation:none!important}
  .abx-hero h1,.abx-hero .ph-crumbs,.abx-hero .ph-lead,.abx-hero .ph-meta{opacity:1!important;transform:none!important;animation:none!important}
  .abx-hero h1 em{animation:none!important}
  .ph-canvas{display:none}
}

/* --- 深色底上柔化分隔线 --- */
.page-hero--blue .ph-bottom{border-top-color:rgba(255,255,255,.16)}
/* --- hero 删除数据卡后单栏化 --- */
.abx-hero .ph-bottom{grid-template-columns:minmax(0,1fr)}
