/* 跨年动效连播页面样式 */

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #000;
  color: #fff;
}

/* 加载屏幕 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 18px;
  color: #fff;
  opacity: 0.8;
}

.error-message {
  text-align: center;
  padding: 40px;
}

.error-message p {
  margin-bottom: 20px;
  font-size: 18px;
}

/* 阶段容器 */
.phase {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* 倒计时阶段 */
.countdown-phase {
  background: #000;
}

.countdown-iframe {
  width: 100vw;
  height: 100vh;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

/* 烟花视频阶段 */
.fireworks-phase {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fireworks-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* 播放提示 */
.play-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 30px 50px;
  border-radius: 12px;
  font-size: 20px;
  text-align: center;
  z-index: 10;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.play-prompt p {
  margin: 0;
}

/* 取消静音按钮 */
.unmute-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.unmute-btn:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* 结束画面 */
.end-screen {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.end-content {
  text-align: center;
  padding: 40px;
}

.end-title {
  font-size: 120px;
  font-weight: bold;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.2);
  }
}

.end-message {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.end-subtitle {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
}

.end-link {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.end-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.share-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
}

.share-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.share-message {
  margin-top: 20px;
  font-size: 16px;
  color: #4caf50;
  animation: fadeIn 0.3s ease;
}

/* 淡入淡出动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .end-title {
    font-size: 80px;
  }

  .end-message {
    font-size: 36px;
  }

  .end-subtitle {
    font-size: 20px;
  }

  .end-link {
    padding: 12px 30px;
    font-size: 16px;
  }

  .play-prompt {
    padding: 15px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .end-title {
    font-size: 60px;
  }

  .end-message {
    font-size: 28px;
  }

  .end-subtitle {
    font-size: 18px;
  }
}
