/*! ============================================================
 *  Valverz × Flixon 叠加层 —— 移植 Flixon 原生（无 CDN）动效
 *  组件：TextReveal 文字逐字 / MagneticHover 磁吸按钮 /
 *        ScrollParallax 滚动视差 / ScrollTimeline 流程时间轴 /
 *        ProgressBar 能力进度条
 *  配色沿用 --vz-*（工业蓝 #1558b0 + 冷青 #0e8f9e）。
 *  安全降级：所有“初始隐藏”态均由 JS 加类后才生效，JS 失败内容照常可见。
 * ============================================================ */

/* ---------- 1. 文字逐字入场（TextReveal） ----------
   仅当父元素带 .vz-tr-ready（JS 成功拆分后）才隐藏字母；否则保持原样可见。 */
.vz-flixon-text { display: inline; }
/* 词级容器：西文单词内部不允许断行，只在词与词之间换行 */
.vz-flixon-text .w { display: inline-block; white-space: nowrap; }
.vz-flixon-text .sp { display: inline-block; }
.vz-flixon-text.vz-tr-ready .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em) rotate(2deg);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.vz-flixon-text.vz-tr-ready .ltr.in { opacity: 1; transform: none; }

/* ---------- 2. 磁吸按钮（MagneticHover） ---------- */
.vz-magnetic { will-change: transform; transition: transform .09s linear; }

/* ---------- 3. 滚动视差（ScrollParallax） ---------- */
[data-vz-parallax] { will-change: transform; }

/* ---------- 4. 流程时间轴（ScrollTimeline） ---------- */
.vz-process { position: relative; padding: 64px 0 36px; background: var(--vz-bg); overflow: hidden; }
.vz-process .title-product { text-align: center; }
.vz-process .title-product p { color: var(--vz-muted); margin-top: 8px; }
.vz-process .vz-process__line {
  position: absolute; left: 50%; top: 150px; bottom: 70px; width: 3px;
  background: var(--vz-line); transform: translateX(-50%); border-radius: 3px; overflow: hidden;
}
.vz-process .vz-process__fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: var(--vz-grad); transition: height .15s linear;
}
.vz-process__list {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 26px;
}
.vz-process__item {
  position: relative; width: 50%; padding: 0 42px; box-sizing: border-box;
  opacity: 0; transform: translateY(38px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.vz-process__item.in { opacity: 1; transform: none; }
.vz-process__item:nth-child(odd)  { align-self: flex-start; text-align: right; }
.vz-process__item:nth-child(even) { align-self: flex-end;   text-align: left;  }
.vz-process__dot {
  position: absolute; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vz-card); border: 3px solid var(--vz-primary); z-index: 2;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.vz-process__item:nth-child(odd)  .vz-process__dot { right: -9px; }
.vz-process__item:nth-child(even) .vz-process__dot { left: -9px; }
.vz-process__item.in .vz-process__dot {
  background: var(--vz-accent); border-color: var(--vz-accent);
  box-shadow: 0 0 0 6px rgba(21,88,176,.18); transform: scale(1.18);
}
.vz-process__card {
  background: var(--vz-card); border: 1px solid var(--vz-line); border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--vz-shadow);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.vz-process__item:hover .vz-process__card {
  border-color: var(--vz-primary); box-shadow: var(--vz-shadow-lg); transform: translateY(-4px);
}
.vz-process__card h3 { margin: 0 0 6px; font-size: 17px; color: var(--vz-primary); font-weight: 700; line-height: 1.4; }
.vz-process__card h3 .num { color: var(--vz-accent); margin-right: 8px; font-variant-numeric: tabular-nums; }
.vz-process__card p { margin: 0; color: var(--vz-muted); font-size: 14px; line-height: 1.75; }

@media (max-width: 768px) {
  .vz-process .vz-process__line { left: 18px; }
  .vz-process__item,
  .vz-process__item:nth-child(odd),
  .vz-process__item:nth-child(even) {
    width: 100%; align-self: stretch; text-align: left; padding: 0 0 0 46px;
  }
  .vz-process__item:nth-child(odd)  .vz-process__dot,
  .vz-process__item:nth-child(even) .vz-process__dot { left: 9px; right: auto; }
}

/* ---------- 5. 能力进度条（ProgressBar） ---------- */
.vz-cap { max-width: 760px; margin: 40px auto 0; display: grid; gap: 16px; }
.vz-cap__item { text-align: left; }
.vz-cap__lab {
  display: flex; justify-content: space-between; font-size: 14px;
  color: var(--vz-text); margin-bottom: 6px; font-weight: 500;
}
.vz-cap__lab .v { color: var(--vz-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.vz-cap__track { height: 8px; background: var(--vz-bg-soft); border-radius: 999px; overflow: hidden; }
.vz-cap__fill {
  height: 100%; width: 0; border-radius: 999px; background: var(--vz-grad);
  transition: width 1.6s cubic-bezier(.2,.7,.2,1);
}

/* ---------- 6. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .vz-flixon-text.vz-tr-ready .ltr { opacity: 1 !important; transform: none !important; transition: none !important; }
  .vz-process__item { opacity: 1 !important; transform: none !important; }
  .vz-process .vz-process__fill { transition: none !important; }
  .vz-cap__fill { transition: none !important; }
}
