/**
 * Milvus Ambient Particle Effects CSS
 * 全屏沉浸式环境氛围粒子特效系统样式表
 * 包含：雨、雪、夜空、花瓣、心动 5 大核心全屏前景粒子动效
 */

/* ==================== 1. 全屏环境容器基础样式 ==================== */
.ambient-effect-layer,
.ambient-overlay.open,
.ambient-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.ambient-effect-layer.ambient-fade-out,
.ambient-overlay.ambient-fade-out {
  opacity: 0 !important;
}

/* 氛围色调蒙层 */
.ambient-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background 0.8s ease;
}

/* 粒子通用容器 */
.ambient-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==================== 2. 🌧️ 雨滴粒子动效 (Rain) ==================== */
.ambient-particle-rain {
  position: absolute;
  top: -60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(186, 230, 253, 0.75) 50%, rgba(255, 255, 255, 0.9) 100%);
  width: 1.8px;
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(125, 211, 252, 0.5);
  animation: ambientRainFall linear infinite;
  will-change: transform;
}

@keyframes ambientRainFall {
  0% {
    transform: translateY(0) rotate(8deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(115vh) rotate(8deg);
    opacity: 0.2;
  }
}

/* ==================== 3. ❄️ 雪花粒子动效 (Snow) ==================== */
.ambient-particle-snow {
  position: absolute;
  top: -30px;
  background: radial-gradient(circle, #ffffff 40%, rgba(240, 249, 255, 0.8) 80%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: ambientSnowFall ease-in-out infinite;
  will-change: transform;
}

@keyframes ambientSnowFall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(55vh) translateX(30px);
    opacity: 0.85;
  }
  80% {
    transform: translateY(85vh) translateX(-20px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(110vh) translateX(25px);
    opacity: 0;
  }
}

/* ==================== 4. 🌙 星空与月亮动效 (Night Sky) ==================== */
.ambient-particle-star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 12px rgba(199, 210, 254, 0.6);
  animation: ambientStarTwinkle ease-in-out infinite alternate;
  will-change: opacity, transform;
}

.ambient-moon {
  position: absolute;
  top: 60px;
  right: 36px;
  font-size: 42px;
  filter: drop-shadow(0 0 20px rgba(254, 240, 138, 0.7)) drop-shadow(0 0 40px rgba(253, 224, 71, 0.4));
  animation: ambientMoonGlow 3s ease-in-out infinite alternate;
  will-change: transform, filter;
}

@keyframes ambientStarTwinkle {
  0% {
    opacity: 0.15;
    transform: scale(0.75);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
}

@keyframes ambientMoonGlow {
  0% {
    transform: scale(0.96) rotate(-4deg);
    filter: drop-shadow(0 0 15px rgba(254, 240, 138, 0.5));
  }
  100% {
    transform: scale(1.04) rotate(4deg);
    filter: drop-shadow(0 0 28px rgba(254, 240, 138, 0.85)) drop-shadow(0 0 50px rgba(253, 224, 71, 0.5));
  }
}

/* ==================== 5. 🌸 花瓣飘落动效 (Cherry Blossoms) ==================== */
.ambient-particle-petal {
  position: absolute;
  top: -40px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(244, 114, 182, 0.25));
  animation: ambientPetalDrift ease-in-out infinite;
  will-change: transform;
}

@keyframes ambientPetalDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) rotateY(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  35% {
    transform: translateY(35vh) translateX(45px) rotate(120deg) rotateY(180deg);
  }
  70% {
    transform: translateY(75vh) translateX(-30px) rotate(260deg) rotateY(360deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(112vh) translateX(50px) rotate(380deg) rotateY(540deg);
    opacity: 0;
  }
}

/* ==================== 6. 💖 心动浮升动效 (Hearts) ==================== */
.ambient-particle-heart {
  position: absolute;
  bottom: -40px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(244, 63, 94, 0.35));
  animation: ambientHeartRise ease-out infinite;
  will-change: transform;
}

@keyframes ambientHeartRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-15vh) translateX(15px) scale(0.9);
  }
  50% {
    transform: translateY(-50vh) translateX(-20px) scale(1.15);
    opacity: 0.9;
  }
  85% {
    opacity: 0.75;
    transform: translateY(-85vh) translateX(25px) scale(1.05);
  }
  100% {
    transform: translateY(-112vh) translateX(-15px) scale(0.8);
    opacity: 0;
  }
}

/* ==================== 7. 🌡️ 酷暑热浪动效 (Heat) ==================== */
.ambient-particle-heat {
  position: absolute;
  bottom: -60px;
  background: linear-gradient(0deg, rgba(255, 120, 10, 0) 0%, rgba(251, 146, 60, 0.7) 40%, rgba(254, 215, 170, 0.9) 100%);
  width: 2.5px;
  border-radius: 2px;
  filter: blur(1.5px);
  animation: ambientHeatRise ease-in infinite;
  will-change: transform, opacity;
}

.ambient-particle-spark {
  position: absolute;
  bottom: -30px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8));
  animation: ambientHeatRise ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientHeatRise {
  0% {
    transform: translateY(0) translateX(0) scaleY(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
    transform: translateY(-15vh) translateX(12px) scaleY(1);
  }
  45% {
    transform: translateY(-45vh) translateX(-15px) scaleY(1.15);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-75vh) translateX(10px) scaleY(1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-115vh) translateX(-8px) scaleY(0.7);
    opacity: 0;
  }
}

/* ==================== 8. 🍂 秋风落叶动效 (Autumn Leaves) ==================== */
.ambient-particle-leaf {
  position: absolute;
  top: -40px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(180, 83, 9, 0.3));
  animation: ambientLeafFall ease-in-out infinite;
  will-change: transform;
}

@keyframes ambientLeafFall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  30% {
    transform: translateY(30vh) translateX(-45px) rotate(140deg);
  }
  60% {
    transform: translateY(65vh) translateX(55px) rotate(320deg);
    opacity: 0.9;
  }
  85% {
    transform: translateY(90vh) translateX(-25px) rotate(460deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(115vh) translateX(35px) rotate(560deg);
    opacity: 0;
  }
}

/* ==================== 9. 🌊 海浪涌动动效 (Ocean) ==================== */
.ambient-particle-bubble {
  position: absolute;
  bottom: -40px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0%, rgba(186, 230, 253, 0.6) 60%, rgba(56, 189, 248, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.8);
  animation: ambientBubbleFloat ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientBubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
    transform: translateY(-18vh) translateX(15px) scale(0.9);
  }
  50% {
    transform: translateY(-55vh) translateX(-20px) scale(1.1);
    opacity: 0.85;
  }
  80% {
    transform: translateY(-85vh) translateX(18px) scale(1.05);
    opacity: 0.65;
  }
  100% {
    transform: translateY(-112vh) translateX(-10px) scale(0.7);
    opacity: 0;
  }
}

/* ==================== 10. 🎆 节日烟花动效 (Fireworks) ==================== */
.ambient-firework-cluster {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ambient-particle-firework {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5px;
  height: 20px;
  border-radius: 2px;
  transform-origin: 50% 100%;
  animation: ambientFireworkBurst 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  will-change: transform, opacity;
}

@keyframes ambientFireworkBurst {
  0% {
    transform: rotate(var(--rot, 0deg)) translateY(0) scaleY(0.2);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) translateY(calc(var(--dist, 60px) * -0.3)) scaleY(1.2);
  }
  60% {
    opacity: 0.95;
    transform: rotate(var(--rot, 0deg)) translateY(calc(var(--dist, 60px) * -1)) scaleY(1);
  }
  100% {
    transform: rotate(var(--rot, 0deg)) translateY(calc(var(--dist, 60px) * -1.3)) scaleY(0.4);
    opacity: 0;
  }
}

/* ==================== 11. 🌫️ 缥缈薄雾动效 (Mist) ==================== */
.ambient-particle-mist {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45) 0%, rgba(240, 245, 255, 0.25) 50%, rgba(255, 255, 255, 0) 75%);
  filter: blur(35px);
  animation: ambientMistDrift ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes ambientMistDrift {
  0% {
    transform: translateX(0) translateY(0) scale(0.9);
    opacity: 0.25;
  }
  50% {
    transform: translateX(45px) translateY(-15px) scale(1.1);
    opacity: 0.55;
  }
  100% {
    transform: translateX(-35px) translateY(20px) scale(1);
    opacity: 0.3;
  }
}

/* ==================== 12. 💰 财源滚滚动效 (Coins Rain) ==================== */
.ambient-particle-coin {
  position: absolute;
  top: -40px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.45));
  animation: ambientCoinFall ease-in infinite;
  will-change: transform;
}

.ambient-particle-gold-sparkle {
  position: absolute;
  top: -20px;
  background: radial-gradient(circle, #fffbeb 20%, #fde68a 60%, rgba(251, 191, 36, 0) 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b;
  animation: ambientCoinFall linear infinite;
  will-change: transform;
}

@keyframes ambientCoinFall {
  0% {
    transform: translateY(0) rotateY(0deg) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(115vh) rotateY(720deg) rotate(45deg);
    opacity: 0.1;
  }
}

/* ==================== 13. 🍻 举杯欢聚动效 (Cheers) ==================== */
.ambient-cheers-center {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 58px;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.8)) drop-shadow(0 0 45px rgba(251, 191, 36, 0.5));
  animation: ambientCheersClink 1.8s ease-in-out infinite alternate;
  will-change: transform, filter;
  pointer-events: none;
}

.ambient-particle-champagne {
  position: absolute;
  bottom: -30px;
  background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #fef3c7 40%, rgba(245, 158, 11, 0.4) 100%);
  border: 1px solid rgba(254, 243, 199, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  animation: ambientChampagneBubble ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientCheersClink {
  0% {
    transform: translate(-50%, -50%) scale(0.85) rotate(-8deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.18) rotate(6deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes ambientChampagneBubble {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
    transform: translateY(-20vh) translateX(10px) scale(0.95);
  }
  50% {
    transform: translateY(-55vh) translateX(-14px) scale(1.15);
    opacity: 0.9;
  }
  85% {
    opacity: 0.7;
    transform: translateY(-85vh) translateX(12px) scale(1.05);
  }
  100% {
    transform: translateY(-112vh) translateX(-6px) scale(0.8);
    opacity: 0;
  }
}

/* ==================== 14. 🍵 暖茶袅袅动效 (Tea Steam) ==================== */
.ambient-tea-cup {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 38px;
  filter: drop-shadow(0 4px 12px rgba(120, 53, 15, 0.3));
  pointer-events: none;
}

.ambient-particle-steam {
  position: absolute;
  bottom: 85px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(254, 243, 199, 0.25) 50%, rgba(255, 255, 255, 0) 80%);
  filter: blur(16px);
  animation: ambientTeaSteamRise ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientTeaSteamRise {
  0% {
    transform: translateY(0) translateX(0) scaleX(0.7) scaleY(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.75;
    transform: translateY(-15vh) translateX(15px) scaleX(1) scaleY(1.1);
  }
  60% {
    transform: translateY(-45vh) translateX(-20px) scaleX(1.3) scaleY(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-75vh) translateX(12px) scaleX(1.6) scaleY(1.5);
    opacity: 0;
  }
}

/* ==================== 15. 💤 困意哈欠动效 (Sleepy Zzz) ==================== */
.ambient-particle-zzz {
  position: absolute;
  bottom: 30px;
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 700;
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.7), 0 0 20px rgba(192, 132, 252, 0.4);
  user-select: none;
  pointer-events: none;
  animation: ambientZzzFloat ease-out infinite;
  will-change: transform, opacity;
}

.ambient-particle-cloud {
  position: absolute;
  top: 15vh;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(192, 132, 252, 0.25));
  animation: ambientCloudDrift ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes ambientZzzFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
    transform: translateY(-15vh) translateX(15px) scale(0.85);
  }
  55% {
    transform: translateY(-50vh) translateX(-25px) scale(1.15);
    opacity: 0.85;
  }
  85% {
    opacity: 0.6;
    transform: translateY(-80vh) translateX(30px) scale(1.35);
  }
  100% {
    transform: translateY(-105vh) translateX(10px) scale(1.5);
    opacity: 0;
  }
}

@keyframes ambientCloudDrift {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateX(40px) translateY(-10px);
    opacity: 0.85;
  }
}

/* ==================== 16. 💢 暴躁抓狂动效 (Angry Sparks) ==================== */
.ambient-particle-anger {
  position: absolute;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.85));
  animation: ambientAngerPop 1.4s ease-out infinite;
  will-change: transform, opacity;
}

.ambient-particle-spark-red {
  position: absolute;
  width: 2.5px;
  height: 16px;
  background: linear-gradient(180deg, #fef08a 0%, #ef4444 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px #ef4444;
  animation: ambientAngerVibe 0.8s ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientAngerPop {
  0% {
    transform: scale(0.2) rotate(-15deg);
    opacity: 0;
  }
  20% {
    transform: scale(1.35) rotate(10deg);
    opacity: 1;
  }
  40% {
    transform: scale(0.9) rotate(-5deg);
    opacity: 0.95;
  }
  70% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.85;
  }
  100% {
    transform: scale(0.4) rotate(0deg);
    opacity: 0;
  }
}

@keyframes ambientAngerVibe {
  0% {
    transform: rotate(var(--rot, 0deg)) translateY(0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) translateY(-25px) scale(1.2);
  }
  70% {
    opacity: 0.8;
    transform: rotate(var(--rot, 0deg)) translateY(-50px) scale(0.9);
  }
  100% {
    transform: rotate(var(--rot, 0deg)) translateY(-70px) scale(0.3);
    opacity: 0;
  }
}

/* ==================== 17. ⚔️ 刀光剑影动效 (Sword Slash) ==================== */
.ambient-sword-blade {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vw;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(103, 232, 249, 0.9) 30%, #ffffff 50%, rgba(6, 182, 212, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
  border-radius: 2px;
  box-shadow: 0 0 15px #67e8f9, 0 0 35px #06b6d4, 0 0 60px rgba(255, 255, 255, 0.9);
  transform-origin: center center;
  animation: ambientSwordSlash 1.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-particle-slash-spark {
  position: absolute;
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fde047 50%, #f97316 100%);
  border-radius: 1px;
  box-shadow: 0 0 8px #fde047;
  animation: ambientMetalSparks 1.0s ease-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientSwordSlash {
  0% {
    transform: translate(-50%, -50%) rotate(var(--slash-deg, -35deg)) scaleX(0.05);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) rotate(var(--slash-deg, -35deg)) scaleX(1.1);
    opacity: 1;
  }
  45% {
    transform: translate(-50%, -50%) rotate(var(--slash-deg, -35deg)) scaleX(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--slash-deg, -35deg)) scaleX(1.05);
    opacity: 0;
  }
}

@keyframes ambientMetalSparks {
  0% {
    transform: translate(0, 0) rotate(var(--rot, 0deg)) translateY(0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--rot, 0deg)) translateY(calc(var(--dist, 40px) * -0.6)) scale(1.2);
  }
  100% {
    transform: translate(0, 0) rotate(var(--rot, 0deg)) translateY(calc(var(--dist, 40px) * -1.2)) scale(0.3);
    opacity: 0;
  }
}

/* ==================== 18. 🔮 奇门阵法动效 (Arcane Array) ==================== */
.ambient-array-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(234, 179, 8, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.6), inset 0 0 25px rgba(168, 85, 247, 0.4);
  animation: ambientArraySpin 12s linear infinite;
  will-change: transform;
  pointer-events: none;
}

.ambient-array-core::before {
  content: '☯';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(253, 224, 71, 0.85);
  text-shadow: 0 0 20px rgba(234, 179, 8, 0.9);
}

.ambient-array-core::after {
  content: '';
  position: absolute;
  inset: -15px;
  border: 1.5px dashed rgba(192, 132, 252, 0.7);
  border-radius: 50%;
  animation: ambientArraySpin 8s linear infinite reverse;
}

.ambient-particle-rune {
  position: absolute;
  font-family: 'Zhi Mang Xing', 'Noto Sans SC', serif;
  font-weight: 700;
  color: #fef08a;
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.9), 0 0 24px rgba(168, 85, 247, 0.6);
  user-select: none;
  pointer-events: none;
  animation: ambientRuneSpiral 4.0s ease-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientArraySpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ambientRuneSpiral {
  0% {
    transform: translateY(0) translateX(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
    transform: translateY(-15vh) translateX(25px) scale(1) rotate(45deg);
  }
  60% {
    transform: translateY(-45vh) translateX(-25px) scale(1.2) rotate(120deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-85vh) translateX(35px) scale(0.8) rotate(240deg);
    opacity: 0;
  }
}

/* ==================== 19. 📜 密令朱印动效 (Secret Intel) ==================== */
.ambient-seal-stamp {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: 8px 24px;
  border: 4px solid #dc2626;
  border-radius: 8px;
  font-family: 'Zhi Mang Xing', 'Noto Sans SC', serif;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 12px;
  color: #dc2626;
  background: rgba(153, 27, 27, 0.18);
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.8), inset 0 0 15px rgba(220, 38, 38, 0.4);
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.9);
  animation: ambientSealStamp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-particle-intel-paper {
  position: absolute;
  top: -30px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: ambientPaperDrift ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.ambient-particle-feather {
  position: absolute;
  top: -30px;
  font-size: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: ambientPaperDrift ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes ambientSealStamp {
  0% {
    transform: translate(-50%, -50%) scale(3) rotate(15deg);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -50%) scale(0.92) rotate(-10deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    opacity: 0.95;
  }
}

@keyframes ambientPaperDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(50vh) translateX(45px) rotate(180deg);
  }
  85% {
    transform: translateY(85vh) translateX(-35px) rotate(320deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(115vh) translateX(20px) rotate(480deg);
    opacity: 0;
  }
}

/* ==================== 20. 🩸 血月戮夜动效 (Blood Moon) ==================== */
.ambient-blood-moon {
  position: absolute;
  top: 50px;
  right: 30px;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 35% 35%, #fca5a5 0%, #ef4444 50%, #991b1b 85%, #450a0a 100%);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.9), 0 0 70px rgba(185, 28, 28, 0.6);
  animation: ambientBloodMoonPulse 3s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
  pointer-events: none;
}

.ambient-particle-blood-mist {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.45) 0%, rgba(153, 27, 27, 0.2) 60%, rgba(0, 0, 0, 0) 80%);
  filter: blur(25px);
  animation: ambientBloodMistRise ease-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientBloodMoonPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(239, 68, 68, 1), 0 0 90px rgba(185, 28, 28, 0.75);
  }
}

@keyframes ambientBloodMistRise {
  0% {
    transform: translateY(0) scaleX(0.8);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
    transform: translateY(-20vh) scaleX(1.1);
  }
  70% {
    opacity: 0.6;
    transform: translateY(-60vh) scaleX(1.4);
  }
  100% {
    transform: translateY(-105vh) scaleX(1.7);
    opacity: 0;
  }
}

/* ==================== 21. 🛡️ 金钟护体动效 (Golden Shield) ==================== */
.ambient-shield-barrier {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw;
  height: 75vh;
  border: 2px solid rgba(251, 191, 36, 0.75);
  border-radius: 28px;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.12) 0%, rgba(217, 119, 6, 0.04) 65%, rgba(251, 191, 36, 0.22) 100%);
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.6), inset 0 0 35px rgba(251, 191, 36, 0.35);
  animation: ambientWardPulse 2.2s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
  pointer-events: none;
}

.ambient-shield-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid #fef08a;
  border-radius: 50%;
  box-shadow: 0 0 20px #f59e0b;
  animation: ambientShieldExpand 2.0s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientWardPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.97);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 1;
  }
}

@keyframes ambientShieldExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(7.5);
    opacity: 0;
  }
}

/* ==================== 22. 🪔 天灯祈愿动效 (Sky Lanterns) ==================== */
.ambient-particle-lantern {
  position: absolute;
  bottom: -60px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.9)) drop-shadow(0 0 30px rgba(239, 68, 68, 0.6));
  animation: ambientLanternRise ease-in infinite;
  will-change: transform, opacity;
}

@keyframes ambientLanternRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-15vh) translateX(12px) scale(0.9);
  }
  50% {
    transform: translateY(-55vh) translateX(-18px) scale(1.05);
    opacity: 0.95;
  }
  85% {
    opacity: 0.8;
    transform: translateY(-90vh) translateX(15px) scale(1.15);
  }
  100% {
    transform: translateY(-120vh) translateX(-5px) scale(1.2);
    opacity: 0;
  }
}

/* ==================== 23. 🦋 灵蝶蹁跹动效 (Luminous Butterflies) ==================== */
.ambient-butterfly-cluster {
  position: absolute;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.9)) drop-shadow(0 0 25px rgba(59, 130, 246, 0.7));
  animation: ambientButterflyFly 4.5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.ambient-butterfly-wing {
  display: inline-block;
  animation: ambientWingFlap 0.28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambientButterflyFly {
  0% {
    transform: translate(0, 0) scale(0.8) rotate(-10deg);
    opacity: 0.3;
  }
  30% {
    transform: translate(35px, -45px) scale(1.1) rotate(15deg);
    opacity: 1;
  }
  70% {
    transform: translate(-30px, -90px) scale(0.95) rotate(-20deg);
    opacity: 0.9;
  }
  100% {
    transform: translate(45px, -135px) scale(1.05) rotate(10deg);
    opacity: 0.4;
  }
}

@keyframes ambientWingFlap {
  0% {
    transform: scaleX(0.4) rotateY(45deg);
  }
  100% {
    transform: scaleX(1.1) rotateY(0deg);
  }
}

/* ==================== 24. 🪷 清塘荷韵动效 (Lotus & Ripple) ==================== */
.ambient-water-ripple {
  position: absolute;
  bottom: 25px;
  border: 1.5px solid rgba(45, 212, 191, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
  animation: ambientWaterRipple 3.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-particle-lotus {
  position: absolute;
  bottom: 35px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(13, 148, 136, 0.35));
  animation: ambientLotusFloat 3.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambientWaterRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0.9;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(5.5);
    opacity: 0;
  }
}

@keyframes ambientLotusFloat {
  0% {
    transform: translateY(0) rotate(-6deg);
  }
  100% {
    transform: translateY(-18px) rotate(8deg);
  }
}

/* ==================== 25. 🎋 竹影幽风动效 (Bamboo Wind) ==================== */
.ambient-particle-bamboo {
  position: absolute;
  top: -40px;
  width: 22px;
  height: 6px;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 60%, #86efac 100%);
  border-radius: 12px 2px 12px 2px;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.4);
  animation: ambientBambooSweep ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientBambooSweep {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  40% {
    transform: translateY(40vh) translateX(55px) rotate(140deg);
  }
  75% {
    transform: translateY(75vh) translateX(-20px) rotate(320deg);
    opacity: 0.85;
  }
  100% {
    transform: translateY(115vh) translateX(65px) rotate(480deg);
    opacity: 0;
  }
}

/* ==================== 26. ☄️ 璀璨流星动效 (Shooting Stars) ==================== */
.ambient-particle-meteor {
  position: absolute;
  top: -50px;
  width: 140px;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(96, 165, 250, 0.8) 40%, #ffffff 100%);
  border-radius: 2px;
  box-shadow: 0 0 15px #60a5fa, 0 0 30px #ffffff;
  transform: rotate(-45deg);
  animation: ambientMeteorDash 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientMeteorDash {
  0% {
    transform: translate(0, 0) rotate(-45deg) scaleX(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(-35vw, 35vh) rotate(-45deg) scaleX(1.1);
  }
  80% {
    opacity: 0.9;
    transform: translate(-95vw, 95vh) rotate(-45deg) scaleX(1);
  }
  100% {
    transform: translate(-120vw, 120vh) rotate(-45deg) scaleX(0.4);
    opacity: 0;
  }
}

/* ==================== 27. ⚡ 雷电交加动效 (Thunder & Lightning) ==================== */
.ambient-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  animation: ambientFlashStrobe 2.8s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
}

.ambient-lightning-bolt {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 65vh;
  background: linear-gradient(180deg, #ffffff 0%, #93c5fd 50%, #60a5fa 100%);
  box-shadow: 0 0 20px #60a5fa, 0 0 45px #ffffff;
  filter: blur(0.5px);
  transform: translateX(-50%) rotate(var(--bolt-deg, 6deg));
  animation: ambientFlashStrobe 2.8s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
}

@keyframes ambientFlashStrobe {
  0%, 88%, 94%, 100% {
    opacity: 0;
  }
  89% {
    opacity: 0.85;
  }
  91% {
    opacity: 0.2;
  }
  93% {
    opacity: 1;
  }
}

/* ==================== 28. 🌅 破晓朝阳动效 (Golden Sunrise) ==================== */
.ambient-sunrise-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, #fed7aa 0%, #fb923c 45%, #ea580c 80%, rgba(234, 88, 12, 0) 100%);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(249, 115, 22, 0.9), 0 0 160px rgba(251, 146, 60, 0.7);
  animation: ambientSunriseGaze 3.5s ease-in-out infinite alternate;
  will-change: transform, box-shadow;
  pointer-events: none;
}

.ambient-particle-sunbeam {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #fde047 60%, rgba(253, 224, 71, 0) 100%);
  box-shadow: 0 0 15px rgba(253, 224, 71, 0.8);
  animation: ambientSunbeamDrift ease-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes ambientSunriseGaze {
  0% {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.8);
  }
  100% {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 100px rgba(249, 115, 22, 1), 0 0 180px rgba(251, 146, 60, 0.85);
  }
}

@keyframes ambientSunbeamDrift {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
    transform: translateY(-20vh) scale(1);
  }
  75% {
    opacity: 0.75;
    transform: translateY(-65vh) scale(1.2);
  }
  100% {
    transform: translateY(-105vh) scale(0.6);
    opacity: 0;
  }
}

/* ==================== 29. 🌈 雨后彩虹动效 (Rainbow & Shine) ==================== */
.ambient-rainbow-arch {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 50vh;
  border-radius: 50% 50% 0 0;
  border: 14px solid transparent;
  border-top: 14px solid rgba(244, 63, 94, 0.35);
  border-left: 14px solid rgba(245, 158, 11, 0.35);
  border-right: 14px solid rgba(59, 130, 246, 0.35);
  filter: drop-shadow(0 0 20px rgba(244, 114, 182, 0.5)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.4));
  animation: ambientRainbowFadeIn 2.5s ease-out forwards;
  will-change: opacity, transform;
  pointer-events: none;
}

@keyframes ambientRainbowFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
}




