/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #ffffff;
  background-color: #0f172a;
  overflow-x: hidden;
}

/* Container */
.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom right, #0f172a, #5620a6, #0f172a);
}

/* Mouse light effect */
.mouse-light {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
  filter: blur(100px);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(30, 64, 175, 0) 70%);
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Background gradients */
.bg-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.bg-gradient-1 {
  left: 50%;
  top: 50%;
  height: 700px;
  width: 700px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, rgba(139, 92, 246, 0.2), rgba(37, 99, 235, 0.2));
  animation: pulse-slow 8s ease-in-out infinite;
}

.bg-gradient-2 {
  right: 25%;
  top: 25%;
  height: 400px;
  width: 400px;
  background: linear-gradient(to top right, rgba(99, 102, 241, 0.15), rgba(34, 211, 238, 0.1));
  animation: float-slow 8s ease-in-out infinite;
}

.bg-gradient-3 {
  bottom: 25%;
  left: 25%;
  height: 500px;
  width: 500px;
  background: linear-gradient(to bottom left, rgba(139, 92, 246, 0.15), rgba(217, 70, 239, 0.1));
  animation: float-reverse 7s ease-in-out infinite;
}

/* Particles */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background-color: white;
  opacity: 0.2;
  border-radius: 50%;
  width: 25px; /* 调整粒子大小 */
  height: 25px; /* 调整粒子大小 */
}

/* Light beams */
.light-beams {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  opacity: 0.2;
  z-index: 1;
}

.light-beam {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
}

.light-beam-1 {
  left: -20px;
  top: 25%;
  width: 500px;
  transform: rotate(30deg);
  color: #a78bfa;
  animation: beam-slide 15s linear infinite;
}

.light-beam-2 {
  right: -20px;
  top: 66.666%;
  width: 500px;
  transform: rotate(-30deg);
  color: #60a5fa;
  animation: beam-slide-delayed 18s linear infinite;
  animation-delay: 5s;
}

.light-beam-3 {
  bottom: 25%;
  left: 33.333%;
  width: 400px;
  transform: rotate(15deg);
  color: #22d3ee;
  animation: beam-slide-slow 20s linear infinite;
  animation-delay: 8s;
}

/* Main content */
.main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}

/* Logo */
.logo-container {
  position: relative;
  height: 11rem;
  width: 11rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, white, #f3f4f6);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  animation: logo-shadow 4s ease-in-out infinite, float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo {
  position: absolute;
  inset: 0;
  height: 9rem;
  width: 9rem;
  margin: auto;
}

.animated-path {
  animation: path-animation 4s ease-in-out infinite;
}

/* App info */
.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.app-title {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, white, #e9d5ff, white);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-gradient 8s ease-in-out infinite;
}

.app-description {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 4rem;
}

/* Button */
.button-container {
}

/* Email tooltip */
.email-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
}

/* Copy success message */
.copy-success-message {
  position: fixed;
  top: 20px; /* Adjust as needed for spacing from the top */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 128, 0, 0.8); /* Green background with some transparency */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.copy-success-message.show {
  opacity: 1;
}

.button-container {
  animation: fade-in 0.8s ease-out forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.download-button {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(to right, #8b5cf6, #3b82f6);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.download-button:hover {
  transform: scale(1.05);
}

.download-button:hover::before {
  transform: translateX(0);
  opacity: 1;
}

.download-button:active {
  transform: scale(0.98);
}

.download-button span {
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid rgba(75, 85, 99, 0.3);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  pointer-events: auto;
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.divider {
  display: none;
  color: #4b5563;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-reverse {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-slow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

@keyframes logo-shadow {
  0%, 100% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
  }
}



@keyframes title-gradient {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes path-animation {
  0%, 100% {
    d: path("M30 90 C 40 80, 60 80, 70 90");
  }
  50% {
    d: path("M30 88 C 40 78, 60 78, 70 88");
  }
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

@keyframes beam-slide {
  0% {
    transform: translateX(-100%) rotate(30deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) rotate(30deg);
    opacity: 0;
  }
}

@keyframes beam-slide-delayed {
  0% {
    transform: translateX(-100%) rotate(-30deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) rotate(-30deg);
    opacity: 0;
  }
}

@keyframes beam-slide-slow {
  0% {
    transform: translateX(-100%) rotate(15deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) rotate(15deg);
    opacity: 0;
  }
}

.light-beam-4 {
  left: -30px;
  top: 10%;
  width: 600px;
  transform: rotate(45deg);
  color: #facc15;
  animation: beam-slide 12s linear infinite;
  animation-delay: 2s;
}

.light-beam-8 {
  right: 10%;
  bottom: 40%;
  width: 550px;
  transform: rotate(-20deg);
  color: #fb7185;
  animation: beam-slide-delayed 19s linear infinite;
  animation-delay: 6s;
}

/* Media Queries */
@media (min-width: 768px) {
  .app-title {
    font-size: 4rem;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 2rem;
  }
  
  .divider {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .app-title {
    font-size: 5rem;
  }
}
