/* ==========================================================================
   快易播 - 首页 / 代理加盟 / 关于我们 动效
   入场用 opacity + translate（与各页悬停的 transform 分开，避免互相覆盖）
   ========================================================================== */

@keyframes fx-rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes fx-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes fx-spin {
  to { rotate: 1turn; }
}

@keyframes fx-hot {
  0%, 100% { scale: 1; }
  50% { scale: 1.12; }
}

@keyframes fx-swap {
  from { opacity: 0.2; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- 滚动显现 ---------- */
.fx-reveal {
  opacity: 0;
  translate: 0 28px;
}

.fx-stagger > * {
  opacity: 0;
  translate: 0 24px;
}

.fx-reveal:not(.is-shown),
.fx-stagger:not(.is-shown) > * {
  pointer-events: none;
}

.fx-reveal.is-shown {
  animation: fx-rise .72s cubic-bezier(.22, .7, .25, 1) forwards;
}

.fx-stagger.is-shown > * {
  animation: fx-rise .68s cubic-bezier(.22, .7, .25, 1) forwards;
}

.fx-stagger.is-shown > *:nth-child(2) { animation-delay: .08s; }
.fx-stagger.is-shown > *:nth-child(3) { animation-delay: .16s; }
.fx-stagger.is-shown > *:nth-child(4) { animation-delay: .24s; }
.fx-stagger.is-shown > *:nth-child(5) { animation-delay: .32s; }
.fx-stagger.is-shown > *:nth-child(6) { animation-delay: .4s; }
.fx-stagger.is-shown > *:nth-child(7) { animation-delay: .48s; }
.fx-stagger.is-shown > *:nth-child(8) { animation-delay: .56s; }

/* ---------- 导航 HOT 角标 ---------- */
.text-wrapper_2 {
  animation: fx-hot 1.8s ease-in-out infinite;
  transform-origin: center;
}

/* ---------- 首页首屏 ---------- */
.page-home .banner-copy__item--1 > * {
  animation: fx-rise .75s cubic-bezier(.22, .7, .25, 1) both;
}

.page-home .banner-copy__item--1 > :nth-child(1) { animation-delay: .06s; }
.page-home .banner-copy__item--1 > :nth-child(2) { animation-delay: .14s; }
.page-home .banner-copy__item--1 > :nth-child(3) { animation-delay: .22s; }
.page-home .banner-copy__item--1 > :nth-child(4) { animation-delay: .3s; }

.page-home .box_1.is-slide-2 .banner-copy__item--2 > * {
  animation: fx-rise .7s cubic-bezier(.22, .7, .25, 1) both;
}

.page-home .box_1.is-slide-2 .banner-copy__item--2 > :nth-child(1) { animation-delay: .05s; }
.page-home .box_1.is-slide-2 .banner-copy__item--2 > :nth-child(2) { animation-delay: .12s; }
.page-home .box_1.is-slide-2 .banner-copy__item--2 > :nth-child(3) { animation-delay: .2s; }
.page-home .box_1.is-slide-2 .banner-copy__item--2 > :nth-child(4) { animation-delay: .28s; }

.page-home #bannerAuth {
  animation: fx-rise .8s cubic-bezier(.22, .7, .25, 1) .22s both;
}

.page-home .group_1,
.page-home .group_2,
.page-home .group_3,
.page-home .group_4,
.page-home .group_5,
.page-home .box_6,
.page-home .box_14,
.page-home .box_15 {
  animation: fx-float 4.6s ease-in-out infinite;
}

.page-home .group_2 { animation-delay: .4s; }
.page-home .group_3 { animation-delay: .9s; }
.page-home .group_4 { animation-delay: .2s; }
.page-home .group_5 { animation-delay: 1.1s; }
.page-home .box_6 { animation-delay: .6s; }
.page-home .box_14 { animation-delay: 1.4s; }
.page-home .box_15 { animation-delay: .8s; }

/* 页签内容切换时轻微上移，沿用原有透明度过渡 */
.page-home .svc-panel,
.page-home .flow-panel {
  translate: 0 12px;
  transition: opacity .3s ease, translate .35s ease, visibility 0s linear .3s;
}

.page-home .svc-panel.is-active,
.page-home .flow-panel.is-active {
  translate: 0 0;
  transition: opacity .3s ease, translate .35s ease;
}

/* ---------- 代理加盟首屏 ---------- */
.page-agent .hero-title,
.page-agent .hero-sub,
.page-agent .hero-desc {
  animation: fx-rise .8s cubic-bezier(.22, .7, .25, 1) both;
}

.page-agent .hero-sub { animation-delay: .12s; }
.page-agent .hero-desc { animation-delay: .22s; }

.page-agent .svc-hub__ring {
  animation: fx-spin 32s linear infinite;
  transform-origin: 50% 50%;
}

.page-agent .boom-node img {
  animation: fx-float 3.6s ease-in-out infinite;
}

.page-agent .boom-node--2 img { animation-delay: .5s; }

/* ---------- 关于我们首屏 ---------- */
.page-about .text-wrapper_19,
.page-about .text-wrapper_20,
.page-about .box_18 {
  animation: fx-rise .8s cubic-bezier(.22, .7, .25, 1) both;
}

.page-about .text-wrapper_20 { animation-delay: .12s; }
.page-about .hero-point { animation: fx-rise .6s cubic-bezier(.22, .7, .25, 1) both; }
.page-about .hero-point:nth-child(1) { animation-delay: .22s; }
.page-about .hero-point:nth-child(2) { animation-delay: .3s; }
.page-about .hero-point:nth-child(3) { animation-delay: .38s; }
.page-about .hero-point:nth-child(4) { animation-delay: .46s; }
.page-about .box_18 { animation-delay: .5s; }

.page-about .image_10 {
  animation: fx-float 4.4s ease-in-out infinite;
}

.page-about .culture_icon_1,
.page-about .culture_icon_2,
.page-about .culture_icon_3 {
  animation: fx-float 3.8s ease-in-out infinite;
}

.page-about .culture_icon_2 { animation-delay: .45s; }
.page-about .culture_icon_3 { animation-delay: .9s; }

.page-about .list-items_2-0,
.page-about .list-items_2-1,
.page-about .list-items_2-2,
.page-about .image-text_12,
.page-about .image-text_13,
.page-about .image-text_14,
.page-about .image-text_15 {
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-about .list-items_2-0:hover,
.page-about .list-items_2-1:hover,
.page-about .list-items_2-2:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(86, 82, 255, .14);
}

.page-about .image-text_12:hover,
.page-about .image-text_13:hover,
.page-about .image-text_14:hover,
.page-about .image-text_15:hover {
  transform: translateY(-4px);
}

.page-about .text-wrapper_9,
.page-about .text-wrapper_10 {
  transition: transform .2s ease, filter .2s ease;
}

.page-about .text-wrapper_9:hover,
.page-about .text-wrapper_10:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.page-about .fx-swap {
  animation: fx-swap .45s ease;
}

@media (prefers-reduced-motion: reduce) {
  .fx-reveal,
  .fx-stagger > *,
  .page-home .banner-copy__item--1 > *,
  .page-home .box_1.is-slide-2 .banner-copy__item--2 > *,
  .page-home #bannerAuth,
  .page-agent .hero-title,
  .page-agent .hero-sub,
  .page-agent .hero-desc,
  .page-about .text-wrapper_19,
  .page-about .text-wrapper_20,
  .page-about .box_18,
  .page-about .hero-point {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
  }

  .text-wrapper_2,
  .page-home .group_1,
  .page-home .group_2,
  .page-home .group_3,
  .page-home .group_4,
  .page-home .group_5,
  .page-home .box_6,
  .page-home .box_14,
  .page-home .box_15,
  .page-home .svc-panel,
  .page-home .flow-panel,
  .page-agent .svc-hub__ring,
  .page-agent .boom-node img,
  .page-about .image_10,
  .page-about .culture_icon_1,
  .page-about .culture_icon_2,
  .page-about .culture_icon_3,
  .page-about .fx-swap {
    animation: none !important;
  }

  .page-home .svc-panel,
  .page-home .flow-panel {
    translate: none !important;
    transition: none !important;
  }
}
