/* Pigo消费分红平台 - 科技特效增强样式 */

/* 高级渐变背景 */
:root {
  --tech-gradient-blue: linear-gradient(120deg, #1a2980, #26d0ce);
  --tech-gradient-purple: linear-gradient(120deg, #4e54c8, #8f94fb);
  --tech-gradient-orange: linear-gradient(120deg, #ff8008, #ffc837);
  --tech-gradient-green: linear-gradient(120deg, #11998e, #38ef7d);
  --tech-gradient-dark: linear-gradient(120deg, #0f2027, #203a43, #2c5364);
  --tech-gradient-glow: linear-gradient(120deg, rgba(30, 136, 229, 0.8), rgba(13, 71, 161, 0.8));
  
  /* 3D变换参数 */
  --perspective-value: 1000px;
  --rotate-value: 15deg;
  --scale-value: 1.05;
  
  /* 动画时间 */
  --animation-slow: 20s;
  --animation-medium: 10s;
  --animation-fast: 5s;
  --animation-faster: 3s;
  
  /* 粒子效果 */
  --particle-size-small: 2px;
  --particle-size-medium: 4px;
  --particle-size-large: 6px;
  
  /* 霓虹效果 */
  --neon-glow-primary: 0 0 10px rgba(30, 136, 229, 0.8), 0 0 20px rgba(30, 136, 229, 0.6), 0 0 30px rgba(30, 136, 229, 0.4);
  --neon-glow-accent: 0 0 10px rgba(255, 107, 53, 0.8), 0 0 20px rgba(255, 107, 53, 0.6), 0 0 30px rgba(255, 107, 53, 0.4);
  --neon-text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(30, 136, 229, 0.8);
}

/* 全局动画增强 */
.animated-element {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.5s ease,
              box-shadow 0.5s ease;
}

.animated-element:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 3D卡片效果 */
.card-3d {
  transform-style: preserve-3d;
  perspective: var(--perspective-value);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
  transform: rotateX(5deg) rotateY(5deg) scale(1.02);
}

.card-3d:hover::before {
  opacity: 1;
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* 高级按钮效果 */
.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--neon-glow-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-neon {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
  transition: all 0.4s ease;
}

.btn-neon:hover {
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
  text-shadow: var(--neon-text-shadow);
}

/* 粒子背景 */
.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.particle-small {
  width: var(--particle-size-small);
  height: var(--particle-size-small);
  animation: floatParticle var(--animation-slow) infinite linear;
}

.particle-medium {
  width: var(--particle-size-medium);
  height: var(--particle-size-medium);
  animation: floatParticle var(--animation-medium) infinite linear;
}

.particle-large {
  width: var(--particle-size-large);
  height: var(--particle-size-large);
  animation: floatParticle var(--animation-fast) infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* 科技网格背景 */
.tech-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(30, 136, 229, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 136, 229, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
  transform: perspective(1000px) rotateX(60deg) scale(2.5);
  transform-origin: center top;
  opacity: 0.3;
}

/* 数据流动画 */
.data-flow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.data-particle {
  position: absolute;
  width: 2px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 10px;
  filter: blur(1px);
  box-shadow: 0 0 5px var(--primary-color);
  opacity: 0;
  animation: dataFlow 3s infinite linear;
}

@keyframes dataFlow {
  0% {
    opacity: 0;
    transform: translateY(-50px) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100px) translateX(20px);
  }
}

/* 霓虹文字效果 */
.neon-text {
  color: var(--white);
  text-shadow: var(--neon-text-shadow);
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                0 0 10px rgba(30, 136, 229, 0.8);
  }
  to {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                0 0 10px rgba(30, 136, 229, 0.8),
                0 0 15px rgba(30, 136, 229, 0.6),
                0 0 20px rgba(30, 136, 229, 0.4);
  }
}

/* 增强英雄区域 */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--tech-gradient-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(30, 136, 229, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.4) 0%, transparent 50%);
  z-index: 0;
}

/* 新增3D立体元素 */
.hero-3d-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-cube {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 20%;
  right: 15%;
  background: rgba(30, 136, 229, 0.2);
  border: 1px solid rgba(30, 136, 229, 0.4);
  transform-style: preserve-3d;
  animation: floatCube 10s infinite ease-in-out;
}

.floating-sphere {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.4), rgba(255, 107, 53, 0.1));
  border: 1px solid rgba(255, 107, 53, 0.3);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  animation: floatSphere 15s infinite ease-in-out;
}

.digital-rain {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    linear-gradient(0deg, rgba(30, 136, 229, 0.2) 25%, transparent 25%),
    linear-gradient(0deg, rgba(30, 136, 229, 0.1) 50%, transparent 50%),
    linear-gradient(0deg, rgba(30, 136, 229, 0.05) 75%, transparent 75%);
  background-size: 4px 4px, 4px 8px, 4px 12px;
  animation: digitalRain 20s infinite linear;
}

@keyframes floatCube {
  0% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-20px) rotateX(180deg) rotateY(90deg);
  }
  100% {
    transform: translateY(0) rotateX(360deg) rotateY(180deg);
  }
}

@keyframes floatSphere {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  }
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.tech-tagline {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 20px;
  border: 1px solid rgba(30, 136, 229, 0.3);
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
  backdrop-filter: blur(5px);
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  from {
    box-shadow: 0 0 10px rgba(30, 136, 229, 0.3);
  }
  to {
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.6);
  }
}

/* 3D旋转效果 */
.rotate-3d {
  transform-style: preserve-3d;
  animation: rotate3d 15s infinite linear;
}

@keyframes rotate3d {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* 数据仪表盘增强 */
.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shineEffect 6s infinite linear;
}

@keyframes shineEffect {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}

.dashboard-number {
  background: var(--tech-gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(30, 136, 229, 0.3);
}

/* 产品卡片增强 */
.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--tech-gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover::after {
  transform: scaleX(1);
}

/* 动态波浪效果 */
.wave-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-animation svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  transform: rotateY(180deg);
}

.wave-animation .shape-fill {
  fill: var(--white);
}

/* 动态背景渐变 */
.gradient-bg-animation {
  background: linear-gradient(270deg, #1a2980, #26d0ce, #4e54c8, #8f94fb);
  background-size: 800% 800%;
  animation: gradientAnimation 10s ease infinite;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
  .tech-grid-background {
    background-size: 15px 15px;
  }
  
  .card-3d:hover {
    transform: rotateX(2deg) rotateY(2deg) scale(1.01);
  }
}