/* Flux Krea 高端视觉效果样式 */

/* ========== 发光和动画效果 ========== */

/* 主要元素发光效果 */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 0.7;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

/* ========== 卡片组件增强效果 ========== */

.enhanced-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.enhanced-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--glow-primary);
  border-color: var(--border-accent);
}

.enhanced-card:hover::before {
  left: 100%;
}

/* ========== Hero区域特效 - 明亮主题 ========== */

.hero-enhanced {
  position: relative;
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  animation: float-background 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes float-background {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* ========== 文字特效 ========== */

.gradient-text {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.highlight-text:hover::after {
  width: 100%;
}

/* ========== 按钮增强效果 ========== */

.btn-enhanced {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  z-index: -1;
  transition: all 0.3s ease;
}

.btn-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), var(--glow-primary);
}

.btn-enhanced:hover::before {
  filter: brightness(1.1);
}

/* ========== 网格动画效果 ========== */

.grid-animate {
  animation: fadeInUp 0.8s ease-out;
}

.grid-animate .grid-item {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
}

.grid-animate .grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-animate .grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-animate .grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-animate .grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-animate .grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-animate .grid-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 悬浮效果 ========== */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ========== 脉冲效果 ========== */

.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* ========== 玻璃态效果 - 明亮主题 ========== */

.glass-effect {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ========== 霓虹发光效果 ========== */

.neon-glow {
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px var(--primary-color);
  animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ========== 响应式调整 ========== */

@media (max-width: 768px) {
  .enhanced-card:hover {
    transform: translateY(-4px);
  }
  
  .btn-enhanced:hover {
    transform: translateY(-2px);
  }
  
  .hover-lift:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .grid-animate,
  .grid-animate .grid-item,
  .pulse-effect,
  .neon-glow {
    animation: none;
  }
  
  .enhanced-card:hover,
  .btn-enhanced:hover,
  .hover-lift:hover {
    transform: none;
  }
}