/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Cinzel Decorative', serif;
}

/* ========== 第一屏：开始页 ========== */
#start-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #0a0a1a 0%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 1s ease;
}

/* 星星背景 */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 90%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 25%, rgba(255,240,180,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 55%, rgba(255,240,180,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 35%, rgba(255,240,180,0.5) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 欢迎文字容器 */
.welcome-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

.subtitle {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.75rem;
  color: rgba(255, 220, 120, 0.5);
  letter-spacing: 0.3em;
  margin-bottom: 1.2rem;
  animation: fadeInUp 2s ease forwards;
}

.subtitle:last-child {
  margin-top: 1.2rem;
  margin-bottom: 0;
  animation: fadeInUp 2.5s ease forwards;
}

/* 主标题 */
.welcome-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  animation: fadeInUp 1.5s ease forwards, glow-pulse 3s ease-in-out infinite;
  text-shadow:
    0 0 20px rgba(255, 220, 120, 0.4),
    0 0 40px rgba(255, 200, 80, 0.2),
    0 0 80px rgba(255, 180, 60, 0.1);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.welcome-text:hover {
  text-shadow:
    0 0 20px rgba(255, 220, 120, 0.9),
    0 0 40px rgba(255, 200, 80, 0.6),
    0 0 80px rgba(255, 180, 60, 0.4),
    0 0 120px rgba(255, 160, 40, 0.2);
  transform: scale(1.03);
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(255, 220, 120, 0.4),
      0 0 40px rgba(255, 200, 80, 0.2),
      0 0 80px rgba(255, 180, 60, 0.1);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255, 220, 120, 0.7),
      0 0 60px rgba(255, 200, 80, 0.4),
      0 0 100px rgba(255, 180, 60, 0.2);
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 第二屏：视频 ========== */
#video-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  background: #000;
}

#introVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== 热区（视频结束后） ========== */
#hotspot {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.hotspot-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 120, 0.8);
  box-shadow:
    0 0 15px rgba(255, 220, 120, 0.6),
    0 0 30px rgba(255, 200, 80, 0.3),
    inset 0 0 15px rgba(255, 220, 120, 0.1);
  animation: ring-pulse 2s ease-in-out infinite;
}

.ring2 {
  width: 140px;
  height: 140px;
  border-color: rgba(255, 220, 120, 0.3);
  box-shadow:
    0 0 20px rgba(255, 220, 120, 0.2),
    0 0 40px rgba(255, 200, 80, 0.1);
  animation: ring-pulse 2s ease-in-out infinite 0.5s;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

#hotspot:hover .hotspot-ring {
  border-color: rgba(255, 220, 120, 1);
  box-shadow:
    0 0 25px rgba(255, 220, 120, 1),
    0 0 50px rgba(255, 200, 80, 0.6),
    0 0 80px rgba(255, 180, 60, 0.3);
}

/* ========== 跳过动画按钮 ========== */
#skip-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 7;
  display: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.55rem 1.3rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: rgba(255, 220, 120, 0.7);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 220, 120, 0.3);
  border-radius: 24px;
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 0 10px rgba(255, 200, 80, 0.4);
  transition: opacity 1s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#skip-btn.visible {
  display: inline-flex;
}

#skip-btn .skip-arrow {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

#skip-btn:hover {
  color: rgba(255, 220, 120, 1);
  border-color: rgba(255, 220, 120, 0.7);
  box-shadow:
    0 0 15px rgba(255, 220, 120, 0.4),
    0 0 30px rgba(255, 200, 80, 0.2);
  transform: scale(1.04);
}

#skip-btn:hover .skip-arrow {
  transform: translateX(3px);
}

/* ========== 过渡光晕 ========== */
#transition-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #fff 0%, rgba(255,240,180,0.8) 30%, transparent 70%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}