/* ========================================
   Hero Section - 原神介绍网站
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Multi-layer Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(230, 180, 34, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(116, 194, 168, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(176, 143, 194, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(10, 14, 26, 0.9) 0%, var(--color-bg-primary) 100%);
}

/* Starfield Effect */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(230, 180, 34, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(116, 194, 168, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(176, 143, 194, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 5%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 85%, rgba(230, 180, 34, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 52%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 45%, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(230, 180, 34, 0.1);
  border: 1px solid rgba(230, 180, 34, 0.2);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 32px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

/* Main Title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    var(--color-accent-gold) 0%,
    var(--color-accent-gold-light) 25%,
    #fff 50%,
    var(--color-accent-gold-light) 75%,
    var(--color-accent-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite, slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(230, 180, 34, 0.2));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  line-height: 1.2;
}

.hero-stat-value .stat-suffix {
  font-size: 1.4rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease 1.5s both;
}

.scroll-indicator-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator-icon {
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-icon svg {
  width: 24px;
  height: 38px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-value {
    font-size: 1.8rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat {
    min-width: 80px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }
}
