/* ============================================================
   全屏欢迎页面样式
   ============================================================ */

#welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2d2d2d 100%);
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              filter 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

#welcome-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://alexjoker-blog.oss-cn-guangzhou.aliyuncs.com/hexo-aurora-img/welcome-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

#welcome-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(13, 13, 13, 0.6) 100%);
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  animation: fadeInUp 1s ease-out;
}

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

.welcome-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #b8b8b8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
  letter-spacing: 2px;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)); }
}

.welcome-subtitle {
  font-size: 1.5rem;
  color: #b8b8b8;
  margin-bottom: 50px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.welcome-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
  margin: 0 auto 50px;
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.welcome-button {
  display: inline-block;
  padding: 18px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2d2d2d, #4a4a4a);
  border: 2px solid #4a4a4a;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  animation: fadeInUp 1s ease-out 0.7s backwards;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.welcome-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
  border-color: #b8b8b8;
  background: linear-gradient(135deg, #4a4a4a, #2d2d2d);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 2;
  cursor: pointer;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator svg {
  width: 40px;
  height: 40px;
  opacity: 0.6;
  fill: #ffffff;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover svg {
  opacity: 1;
}

#welcome-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.05) translateY(0);
  filter: blur(0px);
  transition: opacity 1s ease-out, 
              transform 1s ease-out, 
              filter 0.8s ease-out,
              visibility 0s linear 1s;
}

#welcome-screen.hidden .welcome-content {
  animation: contentFadeOut 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentFadeOut {
  0% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-60px) scale(0.95);
  }
}

/* 博客主页面淡入动画 */
body.welcome-active #app,
body.welcome-active main,
body.welcome-active .main-grid {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.4s, 
              transform 0.8s ease-out 0.4s;
}

body:not(.welcome-active) #app,
body:not(.welcome-active) main,
body:not(.welcome-active) .main-grid {
  opacity: 1;
  transform: translateY(0);
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50% { transform: translateY(-100px) translateX(50px); opacity: 0.8; }
}

body.welcome-active {
  overflow: hidden;
}

/* 响应式 */
@media (max-width: 768px) {
  .welcome-title { font-size: 2.5rem; letter-spacing: 1px; }
  .welcome-subtitle { font-size: 1rem; letter-spacing: 2px; }
  .welcome-button { padding: 15px 40px; font-size: 1rem; }
  .welcome-content { padding: 20px; }
}

@media (max-width: 480px) {
  .welcome-title { font-size: 2rem; }
  .welcome-subtitle { font-size: 0.9rem; letter-spacing: 1px; }
  .welcome-button { padding: 12px 30px; font-size: 0.9rem; letter-spacing: 1px; }
}

