/* ============================================================
   洛瞳网络 氛围特效层 — Deep Ocean / Star Field Effects
   星空粒子、光晕波纹、洛瞳之眼呼吸动画
   ============================================================ */

/* ── 星空粒子 Canvas 容器 ── */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── 洛瞳之眼：呼吸光晕 ── */
.luotong-eye-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.luotong-eye-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(77, 168, 218, 0.15) 0%,
    rgba(77, 168, 218, 0.05) 40%,
    transparent 70%
  );
  animation: eyePulse 4s ease-in-out infinite;
}

.luotong-eye-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(107, 197, 245, 0.6) 0%,
    rgba(77, 168, 218, 0.3) 40%,
    rgba(30, 70, 120, 0.6) 100%
  );
  box-shadow:
    0 0 30px rgba(77, 168, 218, 0.4),
    0 0 60px rgba(77, 168, 218, 0.2),
    inset 0 0 15px rgba(107, 197, 245, 0.3);
  animation: pupilBreath 3s ease-in-out infinite;
}

.luotong-eye-highlight {
  position: absolute;
  top: 38%;
  left: 38%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(2px);
  animation: highlightShift 5s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes pupilBreath {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes highlightShift {
  0%, 100% {
    opacity: 0.8;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}

/* ── 卡片光晕 hover 效果 ── */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(77, 168, 218, 0.08),
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
}

.card-glow:hover::after {
  opacity: 1;
}

/* ── 深海渐变背景 ── */
.ocean-bg {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(15, 40, 80, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 60, 120, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(10, 30, 60, 0.5) 0%, transparent 50%),
    var(--color-bg);
}

/* ── 微弱波纹动画（用于卡片边框） ── */
@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(77, 168, 218, 0.15);
    box-shadow: 0 0 8px rgba(77, 168, 218, 0.05);
  }
  50% {
    border-color: rgba(77, 168, 218, 0.3);
    box-shadow: 0 0 16px rgba(77, 168, 218, 0.1);
  }
}

.border-glow {
  animation: borderGlow 4s ease-in-out infinite;
}

/* ── 微光漂移动画 ── */
@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-8px) translateX(4px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4px) translateX(-2px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-12px) translateX(2px);
    opacity: 0.6;
  }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-accent-bright, #6bc5f5);
  filter: blur(1px);
  animation: floatParticle 6s ease-in-out infinite;
}

/* ── 渐入动画（统一页面过渡） ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

/* ── 渐变文字 ── */
.gradient-text-ocean {
  background: linear-gradient(135deg, #4da8da 0%, #6bc5f5 40%, #38bdf8 70%, #4da8da 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── 响应式 ── */
@media (max-width: 640px) {
  .luotong-eye-container {
    width: 140px;
    height: 140px;
  }

  .luotong-eye-inner {
    width: 44px;
    height: 44px;
  }
}
