/* ===============================================
   GT Team - 现代化特效样式
   =============================================== */

/* ========== 粒子效果降级方案 ========== */
.particles-fallback .fallback-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(15, 247, 150, 0.5);
  border-radius: 50%;
  animation: float-particle 5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: translate(20px, -20px);
    opacity: 0.8;
  }
}

/* 移动端Toast提示动画 */
@keyframes slideInUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

/* ========== 加载动画 ========== */
.gt-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0b1a17 0%, #050a08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.6s ease;
}

.gt-loader--hide {
  opacity: 0;
  pointer-events: none;
}

.gt-loader__content {
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.gt-loader__logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.gt-loader__logo-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: #0ff796;
  text-shadow: 0 0 20px rgba(15, 247, 150, 0.5);
  letter-spacing: 4px;
}

.gt-loader__logo-ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: #0ff796;
  border-right-color: #0ff796;
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.gt-loader__logo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 4px solid transparent;
  border-bottom-color: rgba(15, 247, 150, 0.3);
  border-left-color: rgba(15, 247, 150, 0.3);
  border-radius: 50%;
  animation: spin 2s linear infinite reverse;
}

.gt-loader__text {
  font-size: 18px;
  font-weight: 600;
  color: #0ff796;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.gt-loader__progress {
  width: 250px;
  height: 4px;
  background: rgba(15, 247, 150, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(15, 247, 150, 0.2);
}

.gt-loader__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0ff796, #00d4aa, #0ff796);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 1.5s linear infinite;
  box-shadow: 0 0 10px rgba(15, 247, 150, 0.8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========== 滚动进度条（已禁用） ========== */
.scroll-progress {
  display: none; /* 已禁用 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(15, 247, 150, 0.05);
  z-index: 99998;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #0ff796 0%, #00d4aa 50%, #0ff796 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 15px rgba(15, 247, 150, 0.6),
              0 0 30px rgba(15, 247, 150, 0.3);
  animation: shimmer 2s linear infinite;
}

/* ========== 自定义光标 ========== */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 99997;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.custom-cursor__inner {
  width: 100%;
  height: 100%;
  border: 2px solid #0ff796;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 15px rgba(15, 247, 150, 0.4);
}

.custom-cursor--hover .custom-cursor__inner {
  transform: scale(1.5);
  background: rgba(15, 247, 150, 0.1);
  border-color: #fff;
}

/* ========== 导航增强 ========== */
.apple-nav {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  transform: translateY(0) !important; /* 始终显示 */
}

.apple-nav.nav-hidden {
  /* 已禁用自动隐藏功能 */
  transform: translateY(0) !important;
}

.apple-nav.is-open {
  transform: translateY(0) !important;
}

/* ========== 卡片光效增强（鼠标跟随光效已移除） ========== */

/* pulse-glow 动画已移除 */

/* ========== 按钮磁吸效果 ========== */
.btn, .btn-pricing {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn::before, .btn-pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%); /* 使用transform将元素移出屏幕外 */
}

.btn:hover::before, .btn-pricing:hover::before {
  /* 触发动画 */
  animation: sweep-highlight 1.2s ease-in-out infinite;
}

@keyframes sweep-highlight {
  0% {
    transform: translateX(-100%); /* 从左侧外部开始 */
  }
  100% {
    transform: translateX(100%); /* 移动到右侧外部结束 */
  }
}

/* ========== Hero视差增强 ========== */
.hero {
  transition: transform 0.15s ease-out !important;
  will-change: transform;
}

/* ========== FAQ动画增强 ========== */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item.active {
  background: rgba(15, 247, 150, 0.03);
}

.faq-toggle {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg) scale(1.1);
}

/* ========== 统计数字动画 ========== */
.stat-number {
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0ff796, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover .stat-number::after {
  opacity: 1;
  animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ========== 卡片进入动画变体 ========== */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotateX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

/* ========== 响应式优化 ========== */
@media (max-width: 768px) {
  .custom-cursor {
    display: none;
  }
  
  .gt-loader__logo {
    width: 80px;
    height: 80px;
  }
  
  .gt-loader__logo-text {
    font-size: 32px;
  }
  
  .gt-loader__progress {
    width: 200px;
  }
  
  /* 移动端禁用复杂动画 */
  .card::after, .pricing-card::after, 
  .advantage-card::after, .contact-card::after {
    display: none;
  }
}

/* ========== 减少动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .custom-cursor {
    display: none;
  }
}

/* ========== 高性能模式 ========== */
.card, .pricing-card, .advantage-card, .contact-card,
.btn, .btn-pricing, .hero {
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========== 光滑滚动 ========== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
