/* =========================================================
   alunde 全站动效（品牌加载 + 入场 + 跳转进度条）
   只做视觉层，不依赖任何框架；无 JS 时页面照常可见
   ========================================================= */

/* ---------- 0. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce){
  .al-pre, .al-pre *{animation:none !important;transition:none !important}
  .al-pre{display:none !important}
  .js .fg-home .step,.js .fg-home .fitem,.js .fg-home .ful-item,
  .js .fg-home .tile,.js .fg-home .demand a,.js .fg-home .sec-head,
  .js .fg-home .counts,.js .fg-home .cta-box,
  .js .fg-home .hero-in > *{opacity:1 !important;transform:none !important;animation:none !important}
}

/* ---------- 1. 首屏加载（ALUNDE） ---------- */
.al-pre{
  position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:28px;
  background:#0d1013;color:#fff;overflow:hidden;
  transition:opacity .55s ease,transform .6s cubic-bezier(.4,0,.2,1),visibility .55s;
}
.al-pre::before,.al-pre::after{
  content:"";position:absolute;width:460px;height:460px;border-radius:50%;filter:blur(90px);opacity:.34;
  animation:alDrift 9s ease-in-out infinite;
}
.al-pre::before{background:#016fff;left:-120px;top:-80px}
.al-pre::after{background:#00dc6c;right:-140px;bottom:-120px;animation-delay:-4.5s}
@keyframes alDrift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(26px,34px,0) scale(1.14)}
}

.al-word{display:flex;gap:.1em;position:relative;z-index:1}
.al-word span{
  display:inline-block;font-size:38px;font-weight:800;letter-spacing:.02em;line-height:1;
  opacity:0;transform:translateY(16px);
  animation:alUp .58s cubic-bezier(.2,.7,.3,1) forwards;
}
.al-word span:nth-child(1){animation-delay:.04s}
.al-word span:nth-child(2){animation-delay:.10s}
.al-word span:nth-child(3){animation-delay:.16s}
.al-word span:nth-child(4){animation-delay:.22s}
.al-word span:nth-child(5){animation-delay:.28s}
.al-word span:nth-child(6){animation-delay:.34s}
@keyframes alUp{to{opacity:1;transform:none}}

.al-line{width:168px;height:2px;background:rgba(255,255,255,.13);border-radius:2px;overflow:hidden;position:relative;z-index:1}
.al-line i{display:block;height:100%;width:0;background:linear-gradient(90deg,#01a4ff,#00dc6c);
  animation:alGrow .95s .12s cubic-bezier(.35,0,.15,1) forwards}
@keyframes alGrow{to{width:100%}}

.al-sub{font-size:10.5px;letter-spacing:.44em;color:#78838d;text-transform:uppercase;position:relative;z-index:1;
  opacity:0;animation:alFade .6s .55s forwards}
@keyframes alFade{to{opacity:1}}

.al-pre.gone{opacity:0;transform:translateY(-10%);visibility:hidden;pointer-events:none}
/* 兜底：脚本失效也不会挡住页面 */
.al-pre{animation:alFailSafe .01s 3s forwards}
@keyframes alFailSafe{to{opacity:0;visibility:hidden;pointer-events:none}}

/* ---------- 2. 站内跳转顶部进度条 ---------- */
.al-bar{
  position:fixed;top:0;left:0;height:2px;width:0;z-index:9998;
  background:linear-gradient(90deg,#01a4ff,#00dc6c,#01a4ff);
  box-shadow:0 0 10px rgba(1,164,255,.55);
  opacity:0;transition:width .4s cubic-bezier(.2,.7,.3,1),opacity .3s;
  pointer-events:none;
}
.al-bar.on{opacity:1}

/* ---------- 3. 首页：滚动入场 ---------- */
.js .fg-home .step,
.js .fg-home .fitem,
.js .fg-home .ful-item,
.js .fg-home .tile,
.js .fg-home .demand a,
.js .fg-home .sec-head,
.js .fg-home .counts,
.js .fg-home .cta-box{
  opacity:0;transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.2,.7,.3,1),transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay:var(--d,0ms);
}
.js .fg-home .rv-in{opacity:1;transform:none}

/* ---------- 4. 首页：首屏文字逐行入场 ---------- */
.js .fg-home .hero-in > *{opacity:0;transform:translateY(18px)}
.al-ready .fg-home .hero-in > *{animation:alHero .78s cubic-bezier(.2,.7,.3,1) forwards}
.al-ready .fg-home .hero-in > *:nth-child(1){animation-delay:.02s}
.al-ready .fg-home .hero-in > *:nth-child(2){animation-delay:.12s}
.al-ready .fg-home .hero-in > *:nth-child(3){animation-delay:.22s}
.al-ready .fg-home .hero-in > *:nth-child(4){animation-delay:.32s}
.al-ready .fg-home .hero-in > *:nth-child(5){animation-delay:.42s}
@keyframes alHero{to{opacity:1;transform:none}}

/* hero 数据条随首屏一起浮现 */
.js .fg-home .hero-strip{opacity:0}
.al-ready .fg-home .hero-strip{animation:alHero .8s .5s cubic-bezier(.2,.7,.3,1) forwards}

/* ---------- 5. 通用：单元素入场（给其他页面用） ---------- */
.js [data-rv]{opacity:0;transform:translateY(22px);
  transition:opacity .65s cubic-bezier(.2,.7,.3,1),transform .65s cubic-bezier(.2,.7,.3,1);
  transition-delay:var(--d,0ms)}
.js [data-rv].rv-in{opacity:1;transform:none}
