/* ===========================================
   Decorations
   装饰元素样式
   包含云朵、星星等效果
   =========================================== */

/* ===========================================
   Clouds
   云朵装饰
   =========================================== */

/* 云朵容器 */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* 云朵基础样式 */
.cloud {
  position: absolute;
  width: 160px;
  height: 60px;
  background: #f2f9fe;
  background: -webkit-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  background: -moz-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  background: -ms-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  background: -o-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  background: linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  border-radius: 100px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3));
  animation: float 12s ease-in-out infinite;
}

/* 云朵伪元素 */
.cloud::after,
.cloud::before {
  content: "";
  position: absolute;
  background: #f2f9fe;
  z-index: -1;
}

.cloud::after {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 25px;
  border-radius: 100px;
}

.cloud::before {
  width: 90px;
  height: 90px;
  top: -45px;
  right: 25px;
  border-radius: 200px;
}

/* 云朵阴影 */
.cloud-shadow {
  width: 170px;
  position: absolute;
  bottom: -10px;
  background: #000;
  z-index: -1;
  box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  -webkit-border-radius: 50%;
}

/* 云朵动画 */
@keyframes float {
  0%   { transform: translate(-100px, 0px); }
  25%  { transform: translate(100px, -20px); }
  50%  { transform: translate(100px, 20px); }
  75%  { transform: translate(-100px, -10px); }
  100% { transform: translate(-100px, 0px); }
}

/* 不同云朵的动画延迟和持续时间 */
.cloud-1 {
  animation-duration: 12s;
  animation-delay: 0s;
}

.cloud-2 {
  animation-duration: 14s;
  animation-delay: 2s;
}

.cloud-3 {
  animation-duration: 16s;
  animation-delay: 4s;
}

.cloud-4 {
  animation-duration: 18s;
  animation-delay: 1s;
}

.cloud-5 {
  animation-duration: 15s;
  animation-delay: 3s;
}

/* 太阳样式 */
.sun {
  position: absolute;
  width: 100px;
  height: 100px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  top: 10%;
  right: 10%;
  animation: sun-pulse 4s ease-in-out infinite;
}

/* 太阳脉冲动画 */
@keyframes sun-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 70px rgba(255, 215, 0, 1);
  }
}

/* ===========================================
   Stars
   星星装饰
   =========================================== */

/* 星星容器 */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

/* 星星基础样式 */
.star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}

/* 星星大小变体 */
.star-small {
  width: 2px;
  height: 2px;
}

.star-medium {
  width: 3px;
  height: 3px;
}

.star-large {
  width: 4px;
  height: 4px;
}

/* 星星闪烁动画 */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    
  }
  50% {
    opacity: 1;
    
  }
}

/* 不同星星的动画延迟和持续时间 */
.star-1 {
  animation-duration: 3s;
  animation-delay: 0s;
}

.star-2 {
  animation-duration: 4s;
  animation-delay: 1s;
}

.star-3 {
  animation-duration: 5s;
  animation-delay: 2s;
}

.star-4 {
  animation-duration: 2s;
  animation-delay: 0.5s;
}

.star-5 {
  animation-duration: 6s;
  animation-delay: 1.5s;
}

/* ===========================================
   Mouse Trail
   鼠标轨迹效果
   =========================================== */

/* 鼠标轨迹容器 */
.mouse-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* 轨迹点样�?*/
.trail-point {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(100, 149, 237, 0.6);
  border-radius: 50%;
  animation: trail-fade-out linear forwards;
}

/* 轨迹点消失动�?*/
@keyframes trail-fade-out {
  0% {
    opacity: 1;
    
  }
  100% {
    opacity: 0;
    
  }
}

/* ===========================================
   Loading Animation
   加载动画
   =========================================== */

/* 加载容器 */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #87CEEB, #B0E0E6, #E0F7FA, #FFFFFF);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}

/* 夜间模式加载容器 */
.loading-container.dark-mode {
  background: linear-gradient(to bottom, #1A1A2E, #16213E, #0F3460, #1A1A2E);
}

/* 白天模式太阳样式 */
.loading-sun {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #FFD700, #FFA500, #FF8C00);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 165, 0, 0.6);
  animation: sun-pulse ease-in-out infinite 4s;
  top: 20%;
  right: 20%;
}

/* 太阳脉冲动画 */
@keyframes sun-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 165, 0, 0.6);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 80px rgba(255, 215, 0, 1), 0 0 140px rgba(255, 165, 0, 0.8);
  }
}

/* 月亮样式 */
.loading-moon {
  position: absolute;
  width: 80px;
  height: 80px;
  background: #F0F0F0;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(240, 240, 240, 0.8);
  animation: moon-glow ease-in-out infinite 4s;
}

/* 月亮发光动画 */
@keyframes moon-glow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(240, 240, 240, 0.8);
  }
  50% {
    box-shadow: 0 0 60px rgba(240, 240, 240, 1);
  }
}

/* 加载容器内的星星 */
.loading-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
}

/* 加载容器内的云朵 */
.loading-cloud-small {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: float linear infinite;
}

/* 小云朵尺�?*/
.loading-cloud-small {
  width: 80px;
  height: 30px;
}

/* 小云朵伪元素 */
.loading-cloud-small::before,
.loading-cloud-small::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.loading-cloud-small::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 10px;
}

.loading-cloud-small::after {
  width: 50px;
  height: 50px;
  top: -25px;
  right: 10px;
}

/* 加载动画隐藏状�?*/
.loading-container.hidden {
  opacity: 0;
  visibility: hidden;
}

/* 加载云朵 */
.loading-cloud {
  width: 140px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  position: relative;
  animation: loading-float ease-in-out infinite 3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 25px rgba(255, 255, 255, 0.9);
}

/* 加载云朵的额外部�?*/
.loading-cloud::before,
.loading-cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.loading-cloud::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 20px;
  animation: loading-cloud-pulse ease-in-out infinite 4s;
}

.loading-cloud::after {
  width: 80px;
  height: 80px;
  top: -40px;
  right: 20px;
  animation: loading-cloud-pulse ease-in-out infinite 5s reverse;
}

/* 加载动画 */
@keyframes loading-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 云朵脉冲动画 */
@keyframes loading-cloud-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 1);
  }
}

/* 加载文字 */
.loading-text {
  position: absolute;
  top: 60%;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  animation: loading-pulse ease-in-out infinite 2s;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 加载文字脉冲动画 */
@keyframes loading-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* 中央太阳加载元素 */
.loading-sun-center {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #FFD700, #FFA500, #FF8C00);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 215, 0, 0.9), 0 0 140px rgba(255, 165, 0, 0.6);
  animation: sun-spin ease-in-out infinite 6s;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 中央太阳加载元素伪元�?*/
.loading-sun-center::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.6);
}

/* 太阳旋转动画 */
@keyframes sun-spin {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 70px rgba(255, 215, 0, 0.9), 0 0 140px rgba(255, 165, 0, 0.6);
  }
  50% {
    transform: rotate(180deg);
    box-shadow: 0 0 90px rgba(255, 215, 0, 1), 0 0 160px rgba(255, 165, 0, 0.8);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 70px rgba(255, 215, 0, 0.9), 0 0 140px rgba(255, 165, 0, 0.6);
  }
}

/* 流星样式 */
.loading-meteor {
  position: absolute;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  border-radius: 1px;
  animation: meteor-fall linear infinite;
  
}

/* 流星坠落动画 */
@keyframes meteor-fall {
  0% {
    transform: translateX(-100px) translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100px) translateY(100px);
    opacity: 0;
  }
}

/* 彩虹效果 */
.loading-rainbow {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 125px;
  border-radius: 125px 125px 0 0;
  background: linear-gradient(135deg, red, orange, yellow, green, blue, indigo, violet);
  opacity: 0.7;
  animation: loading-rainbow-shine ease-in-out infinite 5s;
}

/* 彩虹发光动画 */
@keyframes loading-rainbow-shine {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.1);
  }
}

/* 飞鸟效果 */
.loading-bird {
  position: absolute;
  width: 25px;
  height: 25px;
  background: #333;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: loading-bird-fly linear infinite;
  opacity: 0.8;
}

/* 飞鸟动画 */
@keyframes loading-bird-fly {
  0% {
    transform: translateX(-150px) translateY(0) rotate(15deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(150px) translateY(-75px) rotate(15deg);
    opacity: 0;
  }
}

/* 白天模式飘动的云朵 */
.loading-floating-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: loading-floating-cloud linear infinite;
}

.loading-floating-cloud::before,
.loading-floating-cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.loading-floating-cloud.large {
  width: 180px;
  height: 70px;
  animation-duration: 60s;
}

.loading-floating-cloud.large::before {
  width: 90px;
  height: 90px;
  top: -45px;
  left: 30px;
}

.loading-floating-cloud.large::after {
  width: 100px;
  height: 100px;
  top: -50px;
  right: 30px;
}

.loading-floating-cloud.medium {
  width: 140px;
  height: 55px;
  animation-duration: 45s;
}

.loading-floating-cloud.medium::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 25px;
}

.loading-floating-cloud.medium::after {
  width: 80px;
  height: 80px;
  top: -40px;
  right: 25px;
}

.loading-floating-cloud.small {
  width: 100px;
  height: 40px;
  animation-duration: 30s;
}

.loading-floating-cloud.small::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 20px;
}

.loading-floating-cloud.small::after {
  width: 60px;
  height: 60px;
  top: -30px;
  right: 20px;
}

@keyframes loading-floating-cloud {
  0% {
    transform: translateX(-200px) translateY(0);
  }
  100% {
    transform: translateX(calc(100vw + 200px)) translateY(0);
  }
}

/* 夜间模式加载文字 */
.loading-text.dark-mode {
  color: #E0E0E0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 梦想元素样式 */
.dream-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* 梦想文字样式 */
.dream-word {
  position: absolute;
  color: rgba(102, 126, 234, 0.6);
  font-size: 18px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
  animation: dream-float ease-in-out infinite;
  opacity: 0.7;
}

/* 梦想气球样式 */
.dream-balloon {
  position: absolute;
  width: 30px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.8), rgba(255, 105, 180, 0.6));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: dream-balloon-float ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.8);
}

/* 梦想气球尾部 */
.dream-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid rgba(255, 105, 180, 0.6);
}

/* 梦想星星样式 */
.dream-star {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: dream-star-twinkle ease-in-out infinite;
  pointer-events: none;
}

/* 梦想文字漂浮动画 */
@keyframes dream-float {
  0%, 100% {
    
    opacity: 0.5;
  }
  50% {
    
    opacity: 0.9;
  }
}

/* 梦想气球漂浮动画 */
@keyframes dream-balloon-float {
  0%, 100% {
    
    opacity: 0.6;
  }
  25% {
    
    opacity: 0.9;
  }
  50% {
    
    opacity: 0.8;
  }
  75% {
    
    opacity: 0.9;
  }
}

/* 梦想星星闪烁动画 */
@keyframes dream-star-twinkle {
  0%, 100% {
    opacity: 0.4;
    
  }
  50% {
    opacity: 1;
    
    box-shadow: 0 0 15px rgba(255, 255, 255, 1);
  }
}

/* 夜间模式下的梦想星星 */
body.dark-mode .dream-star {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

/* 夜间模式下的梦想元素 */
body.dark-mode .dream-word {
  color: rgba(147, 112, 219, 0.6);
  text-shadow: 0 0 10px rgba(147, 112, 219, 0.8);
}

body.dark-mode .dream-balloon {
  background: radial-gradient(circle, rgba(147, 112, 219, 0.8), rgba(123, 31, 162, 0.6));
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.8);
}

body.dark-mode .dream-balloon::after {
  border-top-color: rgba(123, 31, 162, 0.6);
}

/* ===========================================
   Responsive Adjustments
   响应式调�?   =========================================== */

@media (max-width: 768px) {
  /* 调整云朵大小 */
  .cloud-small {
    width: 80px;
    height: 30px;
  }
  
  .cloud-medium {
    width: 120px;
    height: 45px;
  }
  
  .cloud-large {
    width: 160px;
    height: 60px;
  }
  
  /* 调整动画持续时间 */
  .cloud-1 {
    animation-duration: 50s;
  }
  
  .cloud-2 {
    animation-duration: 70s;
  }
  
  .cloud-3 {
    animation-duration: 90s;
  }
  
  .cloud-4 {
    animation-duration: 60s;
  }
  
  .cloud-5 {
    animation-duration: 80s;
  }
}

/* ===========================================
   Additional Animations
   额外动画效果
   =========================================== */

/* 文字发光动画 */
@keyframes text-shine {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* 生长动画 */
@keyframes grow {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 60px;
    opacity: 1;
  }
}

/* 渐变位移动画 */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 呼吸动画 */
@keyframes breathe {
  0%, 100% {
    
  }
  50% {
    
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 淡入上移动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    
  }
  to {
    opacity: 1;
    
  }
}
