/* 动画 从右到左 */
.right_move_left.show {
  -webkit-animation: right_move_left 1s;
}

@-webkit-keyframes right_move_left {
  0% {
    -webkit-transform: translateX(200px);
    opacity: 0;
  }
}

/* 动画 从右到左40px */
.right_move_left40.show {
  -webkit-animation: right_move_left40 1s;
}

@-webkit-keyframes right_move_left40 {
  0% {
    -webkit-transform: translateX(40px);
    opacity: 0;
  }
}

/* 动画 从左到右 */
.left_move_right.show {
  -webkit-animation: left_move_right 1s;
}

@-webkit-keyframes left_move_right {
  0% {
    -webkit-transform: translateX(-200px);
    opacity: 0;
  }
}

/* 动画 上下循环 */
.up_down.show {
  -webkit-animation: up_down 1s infinite;
}

@-webkit-keyframes up_down {
  0% {
    margin-top: 0px;
  }

  50% {
    margin-top: 10px;
  }

  100% {
    margin-top: 0px;
  }
}

/* 动画 旋转 */
.rotate.show {
  -webkit-animation: rotate 1s infinite;
}

@-webkit-keyframes rotate {
  0% {
    -webkit-transform: rotate(0deg);
  }

  50% {
    -webkit-transform: rotate(180deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

/* 动画 从上到下 */
.up_move_down.show {
  -webkit-animation: up_move_down 1s;
}

@-webkit-keyframes up_move_down {
  0% {
    -webkit-transform: translateY(-20px);
    opacity: 0;
  }
}


/* 动画 从下到上 */
.down_move_up.show {
  -webkit-animation: down_move_up 1s;
}

@-webkit-keyframes down_move_up {
  0% {
    -webkit-transform: translateY(50px);
    opacity: 0;
  }
}

/* 滚动动画效果 */
.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-animation.active {
  opacity: 1;
  transform: translateY(0);
}

/* 视口触发动画效果（增强版） */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.staggered {
  transition-delay: calc(var(--index) * 0.1s);
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* 视差滚动效果 */
.parallax-layer {
  transition: transform 0.4s ease-out;
}

/* 渐变入场效果 */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 数字动画效果 */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-number {
  animation: count-up 1s ease forwards;
  opacity: 0;
}

/* 视差滚动效果增强版 */
.parallax-scroll {
  transition: transform 0.4s ease-out;
  will-change: transform;
}

/* 交错列表动画增强版 */
.staggered-list-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.staggered-list-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* 数字增长动画 */
@keyframes number-increase {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.number-increase {
  animation: number-increase 1s ease-out forwards;
  opacity: 0;
}

/* 交错列表动画 */
.staggered-list > * {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.5s ease;
}

.staggered-list > *.active {
  opacity: 1;
  transform: translateX(0);
}

.staggered-list > *:nth-child(1) { transition-delay: 0.1s; }
.staggered-list > *:nth-child(2) { transition-delay: 0.2s; }
.staggered-list > *:nth-child(3) { transition-delay: 0.3s; }
.staggered-list > *:nth-child(4) { transition-delay: 0.4s; }

/* 从左滑入效果 */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* 从右滑入效果 */
.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* 缩放效果 */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* 旋转效果 */
.rotate-in {
  opacity: 0;
  transform: rotate(-10deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rotate-in.active {
  opacity: 1;
  transform: rotate(0);
}

/* 淡入效果 */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.active {
  opacity: 1;
}

/* 弹跳效果（优化时间函数） */
.bounce-in {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.45, 0.265, 1.4);
}

.bounce-in.active {
  opacity: 1;
  transform: scale(1);
}

/* 闪烁效果 */
.flash {
  animation: flash 1s ease;
}

@keyframes flash {
  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0.5;
  }
}

/* 脉冲效果 */
.pulse {
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-loader.active {
  opacity: 1;
}

.page-loader.fade-out {
  opacity: 0;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #1f77b2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}