/* 全站动效：科技炫酷版（无视差） */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-reveal,
  .motion-reveal-left,
  .motion-reveal-right,
  .motion-scale,
  .motion-clip,
  .motion-hero .span1,
  .motion-hero .span2,
  .motion-hero .span3,
  .index_nav ul li,
  .index_tu,
  a.lianxi {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    animation: none !important;
  }

  .motion-scan,
  .motion-orb,
  .motion-radar,
  .motion-progress,
  .motion-cursor,
  .motion-stream,
  .motion-hero-noise,
  .motion-hud-mark,
  .motion-wave-ring,
  .motion-glow-ring,
  .motion-spot,
  .motion-sweep-line {
    display: none !important;
  }
}

/* ========== 首屏科技层 ========== */
.index_zhojian {
  position: relative;
  overflow: hidden;
}

.index_zhojian::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 40, 80, 0.25), transparent 30%, transparent 70%, rgba(0, 40, 80, 0.25)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 0.28rem,
      rgba(0, 230, 255, 0.035) 0.28rem,
      rgba(0, 230, 255, 0.035) 0.3rem
    );
  animation: motionGridDrift 12s linear infinite;
}

@keyframes motionGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 0 0.6rem; }
}

.index_zhojian > .index_tup_zho {
  position: relative;
  z-index: 2;
}

.motion-hero-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* 扫描光带 */
.motion-scan {
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 35%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 230, 255, 0.12),
    transparent
  );
  animation: motionScanY 4.5s ease-in-out infinite;
}

@keyframes motionScanY {
  0% { top: -35%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* 浮动光点 */
.motion-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.75) 0%, rgba(0, 180, 255, 0) 70%);
  filter: blur(0.5px);
  animation: motionOrb 6s ease-in-out infinite;
}

.motion-orb-1 { width: 0.18rem; height: 0.18rem; left: 12%; top: 28%; animation-duration: 5.5s; }
.motion-orb-2 { width: 0.12rem; height: 0.12rem; left: 78%; top: 22%; animation-duration: 7s; animation-delay: -1.2s; }
.motion-orb-3 { width: 0.22rem; height: 0.22rem; left: 64%; top: 68%; animation-duration: 6.2s; animation-delay: -2s; }
.motion-orb-4 { width: 0.1rem; height: 0.1rem; left: 28%; top: 72%; animation-duration: 8s; animation-delay: -0.6s; }

@keyframes motionOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(0.12rem, -0.18rem) scale(1.35); opacity: 1; }
}

/* ========== 首屏文案 ========== */
/* 默认保持可见，透明仅写在 from，避免 hover 改写 animation 后按钮消失 */
.motion-hero .span1,
.motion-hero .span2,
.motion-hero .span3 {
  opacity: 1;
  transform: none;
  animation: motionRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-hero .span1 {
  text-shadow: 0 0 0.2rem rgba(0, 230, 255, 0.35), 0 0 0.45rem rgba(0, 160, 255, 0.25);
  animation-name: motionRiseGlow;
}

.motion-hero .span2 { animation-delay: 0.14s; }
.motion-hero .span3 { animation-delay: 0.28s; }

@keyframes motionRise {
  from { opacity: 0; transform: translateY(0.32rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motionRiseGlow {
  0% { opacity: 0; transform: translateY(0.32rem); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* 按钮常驻微光边（只用 box-shadow 动画，避免覆盖 opacity） */
.motion-hero .span3 {
  box-shadow: 0 0 0.16rem rgba(0, 220, 255, 0.35);
  animation:
    motionRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both,
    motionBtnGlow 2.4s ease-in-out 1.2s infinite;
}

@keyframes motionBtnGlow {
  0%, 100% { box-shadow: 0 0 0.12rem rgba(0, 220, 255, 0.28); }
  50% { box-shadow: 0 0 0.28rem rgba(0, 230, 255, 0.55); }
}

/* ========== 科技角标框 ========== */
.motion-frame {
  position: relative;
}

.motion-frame::before,
.motion-frame::after {
  content: "";
  position: absolute;
  width: 0.22rem;
  height: 0.22rem;
  border: 2px solid rgba(0, 220, 255, 0.75);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.motion-frame::before {
  left: 0.12rem;
  top: 0.12rem;
  border-right: none;
  border-bottom: none;
  transform: translate(-0.08rem, -0.08rem);
}

.motion-frame::after {
  right: 0.12rem;
  bottom: 0.12rem;
  border-left: none;
  border-top: none;
  transform: translate(0.08rem, 0.08rem);
}

.motion-frame.is-in::before,
.motion-frame.is-in::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========== 滚动入场 ========== */
.motion-reveal {
  opacity: 0;
  transform: translateY(0.36rem);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal.is-in { opacity: 1; transform: translateY(0); }

.motion-reveal-left {
  opacity: 0;
  transform: translateX(-0.36rem);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal-left.is-in { opacity: 1; transform: translateX(0); }

.motion-reveal-right {
  opacity: 0;
  transform: translateX(0.36rem);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal-right.is-in { opacity: 1; transform: translateX(0); }

.motion-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
}

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

.motion-delay-1 { transition-delay: 0.06s; }
.motion-delay-2 { transition-delay: 0.12s; }
.motion-delay-3 { transition-delay: 0.18s; }
.motion-delay-4 { transition-delay: 0.24s; }

/* 标题科技短线 */
.diis_tible.is-in span::after,
.index_diwu_wenzi.is-in > span::after {
  content: "";
  display: block;
  width: 1.2rem;
  height: 0.035rem;
  margin: 0.14rem auto 0;
  background: linear-gradient(90deg, transparent, #00e8ff, #189af5, transparent);
  box-shadow: 0 0 0.14rem rgba(0, 220, 255, 0.65);
  animation: motionLine 0.7s ease forwards;
}

@keyframes motionLine {
  from { width: 0; opacity: 0; }
  to { width: 1.2rem; opacity: 1; }
}

/* ========== 数据卡霓虹边 ========== */
.index_disi_xiaday01.is-in {
  position: relative;
}

.index_disi_xiaday01.is-in::before {
  content: "";
  position: absolute;
  inset: -0.08rem;
  border-radius: 0.08rem;
  border: 1px solid rgba(0, 220, 255, 0.35);
  box-shadow: 0 0 0.18rem rgba(0, 200, 255, 0.2), inset 0 0 0.18rem rgba(0, 200, 255, 0.08);
  pointer-events: none;
  animation: motionNeon 2.2s ease-in-out infinite;
}

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

.index_disi_xiaday01 .sp2,
.footer_diyi span {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.index_disi_xiaday01.is-in .sp2,
.footer_diyi.is-in span {
  text-shadow: 0 0 0.18rem rgba(0, 220, 255, 0.45);
  animation: motionNumPulse 2s ease-in-out infinite;
}

@keyframes motionNumPulse {
  0%, 100% { text-shadow: 0 0 0.12rem rgba(0, 220, 255, 0.3); }
  50% { text-shadow: 0 0 0.28rem rgba(0, 230, 255, 0.7); }
}

.index_disi_xiaday01:hover .sp2 {
  transform: scale(1.08);
  color: #00b7ff;
}

/* ========== 悬浮联系 ========== */
a.lianxi,
.lianxi {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: motionPulse 2.4s ease-in-out infinite;
}

a.lianxi:hover,
.lianxi:hover {
  transform: translateY(-0.04rem) scale(1.05);
  box-shadow: 0 0 0.32rem rgba(0, 220, 255, 0.55);
  animation-play-state: paused;
}

@keyframes motionPulse {
  0%, 100% {
    box-shadow: 0 0 0.1rem rgba(193, 193, 193, 0.3), 0 0 0 0 rgba(0, 220, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0.18rem rgba(0, 200, 255, 0.35), 0 0 0 0.1rem rgba(0, 220, 255, 0);
  }
}

/* ========== 按钮扫光 ========== */
.span3,
a.linaxi,
.btn,
.item a,
.left_button a {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.span3:hover,
a.linaxi:hover,
.btn:hover,
.item a:hover,
.left_button a:hover {
  transform: translateY(-0.03rem) scale(1.04);
  box-shadow: 0 0.08rem 0.24rem rgba(0, 200, 255, 0.4);
}

.span3::after,
a.linaxi::after,
.btn::after,
.item a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.span3:hover::after,
a.linaxi:hover::after,
.btn:hover::after,
.item a:hover::after {
  animation: motionShine 0.65s ease;
}

@keyframes motionShine {
  from { left: -120%; }
  to { left: 140%; }
}

/* ========== 产品轮播 ========== */
.swiper-slide .item {
  transition: transform 0.35s ease;
}

.swiper-slide-active .item {
  transform: scale(1.02);
}

.swiper-slide .item img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.swiper-slide .item:hover img {
  transform: translateY(-0.1rem) scale(1.04);
  filter: drop-shadow(0 0 0.22rem rgba(0, 200, 255, 0.35));
}

/* ========== 卡片悬停 ========== */
.gochang_diyi,
.dier_zho,
.dier_xia,
.gochang_disan,
.twoItem,
.dotai,
.right_diyi,
.dishi_left,
.content2_diyi,
.content2_dier,
.content2_disan,
.niero_left,
.niero_right {
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.gochang_diyi:hover,
.dier_zho:hover,
.dier_xia:hover,
.gochang_disan:hover,
.twoItem:hover,
.dotai:hover,
.right_diyi:hover,
.dishi_left:hover,
.content2_diyi:hover,
.content2_dier:hover,
.content2_disan:hover,
.niero_left:hover,
.niero_right:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.12rem 0.3rem rgba(0, 180, 255, 0.18);
  filter: saturate(1.08);
}

/* ECS 模块 */
.diliu_diyige,
.diliu_dier,
.diliu_disan,
.diliu_disi {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.diliu_diyige:hover,
.diliu_dier:hover,
.diliu_disan:hover,
.diliu_disi:hover {
  filter: drop-shadow(0 0 0.2rem rgba(0, 220, 255, 0.35));
  transform: translateY(-0.05rem);
}

/* 模块图标轻微浮动 */
.diyige_day1 img,
.dier_day2 img,
.disan_day3 img,
.chufaho_day1 img,
.chufaho_day2 img,
.chufaho_day3 img,
.chufaho_day4 img {
  animation: motionIconFloat 3.2s ease-in-out infinite;
}

@keyframes motionIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.06rem); }
}

/* 合作伙伴边框 */
.index_dijiu.is-in {
  position: relative;
}

.index_dijiu.is-in::before {
  content: "";
  position: absolute;
  inset: 12% 20%;
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 0.08rem;
  pointer-events: none;
  animation: motionBorder 2.4s ease-in-out infinite;
}

@keyframes motionBorder {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 0 rgba(0, 220, 255, 0); }
  50% { opacity: 0.9; box-shadow: 0 0 0.2rem rgba(0, 220, 255, 0.25); }
}

/* 新闻条入场后左侧光条 */
.dotai.is-in,
.right_diyi.is-in {
  position: relative;
}

.dotai.is-in::before,
.right_diyi.is-in::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 0.03rem;
  background: linear-gradient(180deg, transparent, #00e8ff, transparent);
  box-shadow: 0 0 0.1rem rgba(0, 230, 255, 0.7);
  opacity: 0.85;
}

/* 产品中心卡片霓虹 */
.twoItem.is-in {
  position: relative;
}

.twoItem.is-in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.08rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.12);
}

.twoItem:hover::after {
  box-shadow: inset 0 0 0 1px rgba(0, 230, 255, 0.4), 0 0 0.2rem rgba(0, 200, 255, 0.2);
}

/* 导航 & 返回顶部 */
.index_nav ul li a {
  transition: color 0.25s ease;
}

.fanhui {
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.fanhui:hover {
  transform: translateY(-0.05rem);
  filter: drop-shadow(0 0 0.12rem rgba(0, 200, 255, 0.45));
}

/* ========== 顶部滚动进度条 ========== */
.motion-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 0.03rem;
  width: 0;
  z-index: 10001;
  background: linear-gradient(90deg, #12fdef, #189af5, #00e8ff);
  box-shadow: 0 0 0.16rem rgba(0, 220, 255, 0.7);
  transform-origin: left center;
  pointer-events: none;
}

/* ========== 页头滚动后发光底边 ========== */
/* 强制保持 fixed：任何 relative 覆盖都会在首屏上方挤出空白 */
.index_header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  animation: motionHeaderIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

a.lianxi,
.lianxi {
  position: fixed !important;
}

@keyframes motionHeaderIn {
  from {
    transform: translateY(-110%);
    filter: brightness(1.25);
  }
  to {
    transform: translateY(0);
    filter: none;
  }
}

.index_header.motion-header-active .headerbox {
  box-shadow: 0 0.06rem 0.24rem rgba(0, 160, 255, 0.18);
}

.index_header.motion-header-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 255, 0.7), transparent);
  animation: motionHeaderLine 2s ease-in-out infinite;
}

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

/* 注意：不要覆盖 header / 联系我们 的 position:fixed */

/* ========== 地图雷达环 ========== */
.dotuimg {
  position: relative;
}

.motion-radar {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: -0.6rem;
  margin-top: -0.6rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 230, 255, 0.45);
  pointer-events: none;
  z-index: 2;
  animation: motionRadar 2.8s ease-out infinite;
}

.motion-radar:nth-child(2) { animation-delay: 0.9s; }
.motion-radar:nth-child(3) { animation-delay: 1.8s; }

@keyframes motionRadar {
  0% { transform: scale(0.4); opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ========== 打字光标 ========== */
.motion-typing::after {
  content: "";
  display: inline-block;
  width: 0.04rem;
  height: 0.85em;
  margin-left: 0.06rem;
  background: #00e8ff;
  box-shadow: 0 0 0.1rem rgba(0, 230, 255, 0.8);
  vertical-align: -0.05em;
  animation: motionCaret 0.8s steps(1) infinite;
}

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

/* ========== 区块 clip 揭示（已停用：会让区块永久不可见） ========== */

/* ========== 跑马灯科技感 ========== */
.index_dier {
  position: relative;
  overflow: hidden;
}

.index_dier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.04rem;
  background: linear-gradient(180deg, transparent, #00e8ff, transparent);
  box-shadow: 0 0 0.12rem rgba(0, 230, 255, 0.7);
  animation: motionMarqueeGlow 2s ease-in-out infinite;
}

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

.gg_imgs img {
  animation: motionBell 1.6s ease-in-out infinite;
}

@keyframes motionBell {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(12deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

/* ========== 点击波纹 ========== */
.motion-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 230, 255, 0.35);
  transform: scale(0);
  animation: motionRipple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes motionRipple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ========== 合作伙伴 logo 依次亮起 ========== */
.tubiao.is-in img {
  animation: motionLogoWave 2.4s ease-in-out infinite;
}

@keyframes motionLogoWave {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25) drop-shadow(0 0 0.08rem rgba(0, 220, 255, 0.35)); }
}

/* ========== 表单聚焦科技边 ========== */
.dierbox input,
.wenbenyu textarea,
.content_bd input,
.content_bd textarea {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.dierbox input:focus,
.wenbenyu textarea:focus,
.content_bd input:focus,
.content_bd textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 220, 255, 0.45), 0 0 0.18rem rgba(0, 200, 255, 0.25);
}

/* ========== 关于我们文化卡入场后呼吸边 ========== */
.content2_diyi.is-in,
.content2_dier.is-in,
.content2_disan.is-in {
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.12);
  animation: motionCardBreath 3s ease-in-out infinite;
}

@keyframes motionCardBreath {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.1); }
  50% { box-shadow: 0 0 0.2rem rgba(0, 220, 255, 0.28); }
}

/* ========== 产品详情图轻微浮动 ========== */
.dijiu2 img {
  animation: motionProductFloat 4s ease-in-out infinite;
}

@keyframes motionProductFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.08rem); }
}

/* ========== 高级：标题流光字 ========== */
.motion-hero .span1.motion-shimmer {
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 35%,
    #7ef9ff 45%,
    #ffffff 55%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: motionRiseGlow 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    motionShimmer 3.6s ease-in-out 1s infinite;
  text-shadow: none;
  filter: none;
}

@keyframes motionShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.motion-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2rem);
  animation: motionCharIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes motionCharIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 高级：旋转渐变描边（子层，避免顶掉 motion-frame） ========== */
.motion-border-glow {
  position: relative;
}

.motion-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--motion-angle, 0deg),
    transparent 40%,
    rgba(0, 230, 255, 0.85),
    rgba(24, 154, 245, 0.75),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 4;
  animation: motionSpinBorder 4s linear infinite;
}

.motion-border-glow.is-in > .motion-glow-ring,
.motion-border-glow:hover > .motion-glow-ring {
  opacity: 1;
}

@property --motion-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes motionSpinBorder {
  to { --motion-angle: 360deg; }
}

/* ========== 高级：卡片 3D 倾斜 ========== */
.motion-tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.motion-tilt:hover {
  box-shadow: 0 0.16rem 0.4rem rgba(0, 160, 255, 0.2);
}

/* ========== 高级：聚光灯跟随（子层） ========== */
.motion-spotlight {
  position: relative;
}

.motion-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(0, 220, 255, 0.16),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.motion-spotlight:hover > .motion-spot {
  opacity: 1;
}

/* ========== 高级：区块入场光扫（子层） ========== */
.motion-sweep {
  position: relative;
}

.motion-sweep-line {
  position: absolute;
  top: 0;
  left: -30%;
  width: 28%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  opacity: 0;
  z-index: 5;
}

.motion-sweep.is-in > .motion-sweep-line {
  animation: motionSweepOnce 1.1s ease 0.15s both;
}

@keyframes motionSweepOnce {
  from { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(420%); opacity: 0; }
}

/* ========== 高级：导航指示光点 ========== */
.index_nav ul li a.activ {
  position: relative;
}

.index_nav ul li a.activ::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.08rem;
  width: 0.1rem;
  height: 0.1rem;
  margin-left: -0.05rem;
  border-radius: 50%;
  background: #00e8ff;
  box-shadow: 0 0 0.14rem rgba(0, 232, 255, 0.9);
  animation: motionNavDot 1.6s ease-in-out infinite;
}

@keyframes motionNavDot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.45); opacity: 1; }
}

/* ========== 高级：统计卡入场后上升微浮 ========== */
.index_disi_xiaday01.is-in {
  animation: motionStatFloat 3.5s ease-in-out infinite;
}

.index_disi_xiaday01.is-in:nth-child(1) { animation-delay: 0s; }
.index_disi_xiaday01.is-in:nth-child(3) { animation-delay: 0.4s; }
.index_disi_xiaday01.is-in:nth-child(5) { animation-delay: 0.8s; }

@keyframes motionStatFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.06rem); }
}

/* ========== 高级：产品轮播外环呼吸 ========== */
.swiper1.is-in {
  position: relative;
}

.swiper1.is-in::after {
  content: "";
  position: absolute;
  inset: -0.08rem;
  border-radius: 0.08rem;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 220, 255, 0.22), 0 0 0.3rem rgba(0, 180, 255, 0.12);
  animation: motionFramePulse 2.8s ease-in-out infinite;
}

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

/* ========== 高级：场景卡错落入场增强 ========== */
.diba_diyi.is-in {
  animation: motionCardPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes motionCardPop {
  0% { opacity: 0; transform: translateY(0.28rem) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== 高级：页脚渐显 ========== */
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 255, 0.35), transparent);
  opacity: 0.7;
}

/* ========== 高级：按钮磁性吸附 ========== */
.motion-magnetic {
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.motion-magnetic:hover {
  filter: drop-shadow(0 0 0.14rem rgba(0, 220, 255, 0.45));
}

/* ========== 高级：新闻/资讯卡悬停抬升光晕 ========== */
.right_diyi,
.dotai {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.right_diyi:hover,
.dotai:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.18rem 0.36rem rgba(0, 160, 255, 0.16);
}

/* ========== 高级：合作伙伴入场后扫描条 ========== */
.tubiao.is-in {
  position: relative;
  overflow: hidden;
}

.tubiao.is-in::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 35%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(0, 230, 255, 0.12), transparent);
  animation: motionPartnerScan 2.8s ease-in-out 0.4s infinite;
}

@keyframes motionPartnerScan {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translateX(320%); opacity: 0.6; }
  100% { transform: translateX(320%); opacity: 0; }
}

/* ========== 更炫：鼠标跟随光晕 ========== */
.motion-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.21rem 0 0 -0.21rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10050;
  background: radial-gradient(circle, rgba(0, 230, 255, 0.28), transparent 68%);
  box-shadow: 0 0 0.28rem rgba(0, 220, 255, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

.motion-cursor.is-on {
  opacity: 1;
}

/* ========== 更炫：首屏数据流 ========== */
.motion-stream {
  position: absolute;
  top: -20%;
  width: 1px;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 230, 255, 0.75), transparent);
  box-shadow: 0 0 0.08rem rgba(0, 230, 255, 0.55);
  animation: motionStreamFall linear infinite;
  opacity: 0.55;
}

@keyframes motionStreamFall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: translateY(420%); opacity: 0; }
}

.motion-hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: motionNoiseFlicker 3.2s steps(2) infinite;
}

@keyframes motionNoiseFlicker {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

/* ========== 更炫：HUD 四角括号 ========== */
.motion-hud {
  position: relative;
}

.motion-hud-mark {
  position: absolute;
  width: 0.18rem;
  height: 0.18rem;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-color: rgba(0, 230, 255, 0.85);
  border-style: solid;
  border-width: 0;
}

.motion-hud.is-in > .motion-hud-tl,
.motion-hud:hover > .motion-hud-tl {
  top: 0.06rem;
  left: 0.06rem;
  border-top-width: 2px;
  border-left-width: 2px;
  opacity: 1;
}

.motion-hud.is-in > .motion-hud-tr,
.motion-hud:hover > .motion-hud-tr {
  top: 0.06rem;
  right: 0.06rem;
  border-top-width: 2px;
  border-right-width: 2px;
  opacity: 1;
}

.motion-hud.is-in > .motion-hud-bl,
.motion-hud:hover > .motion-hud-bl {
  bottom: 0.06rem;
  left: 0.06rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
  opacity: 1;
}

.motion-hud.is-in > .motion-hud-br,
.motion-hud:hover > .motion-hud-br {
  bottom: 0.06rem;
  right: 0.06rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
  opacity: 1;
}

/* ========== 更炫：图片悬停景深放大 ========== */
.motion-img-zoom {
  overflow: hidden;
}

.motion-img-zoom img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  will-change: transform;
}

.motion-img-zoom:hover img {
  transform: scale(1.08);
  filter: brightness(1.08) saturate(1.08);
}

/* ========== 更炫：主按钮故障闪（首屏 span3 不加此类，避免动画被覆盖后消失） ========== */
.motion-glitch:hover {
  filter: hue-rotate(12deg);
  text-shadow: -1px 0 rgba(0, 232, 255, 0.55), 1px 0 rgba(24, 154, 245, 0.45);
}

.motion-hero .span3:hover {
  opacity: 1;
  transform: translateY(-0.03rem) scale(1.04);
}

/* ========== 更炫：导航下划线生长 ========== */
.index_nav ul li a {
  position: relative;
}

.index_nav ul li a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.06rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #12fdef, #189af5);
  box-shadow: 0 0 0.1rem rgba(0, 230, 255, 0.55);
  transition: width 0.28s ease, left 0.28s ease;
}

.index_nav ul li a:hover::before,
.index_nav ul li a.activ::before {
  left: 15%;
  width: 70%;
}

/* ========== 更炫：联系我们悬浮环（不改 position，保持 fixed） ========== */
a.lianxi::before,
.lianxi::before {
  content: "";
  position: absolute;
  inset: -0.08rem;
  border-radius: 0.24rem 0 0 0.24rem;
  border: 1px solid rgba(0, 230, 255, 0.5);
  box-shadow: 0 0 0.16rem rgba(0, 220, 255, 0.35);
  animation: motionContactRing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes motionContactRing {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ========== 更炫：跑马灯轨道光点 ========== */
.index_dier::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.12rem;
  height: 0.12rem;
  margin-top: -0.06rem;
  border-radius: 50%;
  background: #00e8ff;
  box-shadow: 0 0 0.16rem rgba(0, 232, 255, 0.9);
  animation: motionMarqueeDot 5.5s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes motionMarqueeDot {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ========== 更炫：统计数字闪能 ========== */
.sp2.motion-count-flash,
.footer_diyi span.motion-count-flash {
  animation: motionCountFlash 0.7s ease;
}

@keyframes motionCountFlash {
  0% { text-shadow: 0 0 0 transparent; }
  40% { text-shadow: 0 0 0.22rem rgba(0, 230, 255, 0.9); color: #7ef9ff; }
  100% { text-shadow: none; }
}

/* ========== 更炫：区块入场能量波 ========== */
.motion-wave {
  position: relative;
}

.motion-wave-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  margin: -0.2rem 0 0 -0.2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 230, 255, 0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.motion-wave.is-in > .motion-wave-ring {
  animation: motionWaveBurst 1.1s ease-out both;
}

@keyframes motionWaveBurst {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(18); opacity: 0; }
}

/* ========== 更炫：页脚二维码悬停 ========== */
.weimama_diyi {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wenmama:hover .weimama_diyi {
  transform: translateY(-0.06rem) scale(1.04);
  box-shadow: 0 0 0.2rem rgba(0, 220, 255, 0.35);
}

/* ========== 全站出场（无整页遮罩） ========== */
.index_nav ul li {
  opacity: 0;
  transform: translateY(-0.12rem);
  animation: motionNavItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.index_nav ul li:nth-child(1) { animation-delay: 0.18s; }
.index_nav ul li:nth-child(2) { animation-delay: 0.26s; }
.index_nav ul li:nth-child(3) { animation-delay: 0.34s; }
.index_nav ul li:nth-child(4) { animation-delay: 0.42s; }
.index_nav ul li:nth-child(5) { animation-delay: 0.5s; }

@keyframes motionNavItemIn {
  to { opacity: 1; transform: translateY(0); }
}

.index_tu {
  opacity: 0;
  transform: translateX(-0.16rem);
  animation: motionLogoIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes motionLogoIn {
  to { opacity: 1; transform: translateX(0); }
}

a.lianxi {
  animation:
    motionSideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both,
    motionPulse 2.4s ease-in-out 1.3s infinite;
}

@keyframes motionSideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 内页 Banner 出场 */
.motion-banner-enter {
  position: relative;
  overflow: hidden;
}

.motion-banner-enter > img,
.motion-banner-enter img:first-child {
  transform: scale(1.12);
  filter: brightness(0.72) saturate(0.85);
  animation: motionBannerZoom 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes motionBannerZoom {
  to {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

.motion-banner-enter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(0, 230, 255, 0.18), transparent 70%);
  transform: translateX(-120%);
  animation: motionBannerFlash 1s ease 0.25s both;
  z-index: 2;
}

@keyframes motionBannerFlash {
  to { transform: translateX(120%); opacity: 0; }
}

/* 首屏整块压暗再亮起 */
.index_zhojian {
  animation: motionHeroStage 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes motionHeroStage {
  from { filter: brightness(0.65) saturate(0.8); }
  to { filter: none; }
}
