/* 彩蛋相关样式 */
.easter-egg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  backdrop-filter: blur(10px);
}

.easter-egg-container.active {
  opacity: 1;
  visibility: visible;
}

.easter-egg-content {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

body.dark-mode .easter-egg-content {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.easter-egg-container.active .easter-egg-content {
  transform: scale(1);
}

.easter-egg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.easter-egg-header h2 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-easter-egg {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.close-easter-egg:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.easter-egg-body {
  color: white;
}

.easter-egg-message {
  text-align: center;
  margin-bottom: 30px;
}

.easter-egg-message p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hearts-counter {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 15px;
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.easter-egg-characters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.easter-egg-character {
  width: 120px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.easter-egg-character:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.easter-egg-character img {
  height: 100px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.easter-egg-character.dancing img {
  animation: characterDance 1s infinite alternate;
}

@keyframes characterDance {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-5px) rotate(-5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.character-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-character.collected .character-heart {
  opacity: 1;
  transform: scale(1);
}

.secret-message {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  display: none;
  animation: secretReveal 1s ease;
}

@keyframes secretReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.secret-message h3 {
  color: #ffdd59;
  margin-top: 0;
}

.secret-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 50px;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 15px 0;
  letter-spacing: 3px;
  color: #ffdd59;
  text-shadow: 0 0 10px rgba(255, 221, 89, 0.5);
}

/* 角色雨效果 */
.character-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.falling-character {
  position: absolute;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
  pointer-events: none;
  animation: falling linear infinite;
}

@keyframes falling {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

/* 特殊效果 */
.special-effect-active {
  animation: specialPulse 2s infinite;
}

@keyframes specialPulse {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .easter-egg-header h2 {
    font-size: 1.4rem;
  }
  
  .easter-egg-characters {
    gap: 10px;
  }
  
  .easter-egg-character {
    width: 100px;
    height: 130px;
  }
  
  .easter-egg-character img {
    height: 80px;
  }
}

@media (max-width: 480px) {
  .easter-egg-content {
    padding: 20px;
  }
  
  .easter-egg-header h2 {
    font-size: 1.2rem;
  }
  
  .easter-egg-character {
    width: 80px;
    height: 110px;
  }
  
  .easter-egg-character img {
    height: 60px;
  }
}