/* ========================================
   巨鲸大放送 - ETH限时福利落地页
   ======================================== */

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --eth-blue: #627eea;
  --eth-cyan: #00d4ff;
  --eth-gold: #ffd700;
  --eth-purple: #c084fc;
  --dark-bg: #0a0e1a;
  --dark-card: rgba(15, 20, 40, 0.85);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glow-blue: rgba(98, 126, 234, 0.4);
  --glow-cyan: rgba(0, 212, 255, 0.3);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
}

/* === 背景层 === */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(98, 126, 234, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.7) 50%, rgba(10, 14, 26, 0.95) 100%);
}

/* === 粒子 === */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--eth-cyan);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.2); }
}

/* === 主内容 === */
.main-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 0.5rem;
}

/* === ETH Logo === */
.eth-logo-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 0.5rem;
  animation: logoEntrance 1s ease-out both;
}

.eth-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

.eth-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--glow-blue));
}

@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.5) translateY(-30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* === 标题 === */
.main-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-align: center;
  line-height: 1.2;
  animation: titleEntrance 1s ease-out 0.3s both;
}

.title-whale {
  display: block;
  background: linear-gradient(135deg, var(--eth-cyan) 0%, var(--eth-blue) 50%, var(--eth-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--glow-cyan));
}

.title-giveaway {
  display: block;
  background: linear-gradient(135deg, var(--eth-gold) 0%, #ffaa00 50%, var(--eth-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-secondary);
  letter-spacing: 0.3em;
  margin-top: 0.25rem;
  animation: titleEntrance 1s ease-out 0.5s both;
}

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

/* === 巨鲸装饰 === */
.whale-decoration {
  position: absolute;
  bottom: 8%;
  right: -5%;
  width: clamp(150px, 25vw, 280px);
  opacity: 0.25;
  pointer-events: none;
  animation: whaleSwim 8s ease-in-out infinite;
}

.whale-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  filter: blur(1px) drop-shadow(0 0 30px var(--glow-blue));
}

@keyframes whaleSwim {
  0%, 100% { transform: translateX(0) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-15px) translateY(-10px) rotate(2deg); }
}

/* === 倒计时区域 === */
.countdown-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  animation: countdownEntrance 1s ease-out 0.7s both;
}

@keyframes countdownEntrance {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.countdown-ring-wrapper {
  position: relative;
  width: clamp(140px, 30vw, 200px);
  height: clamp(140px, 30vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke: var(--eth-cyan);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 8px var(--glow-cyan));
}

.countdown-number {
  font-family: 'Orbitron', monospace;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, var(--eth-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px var(--glow-cyan));
  line-height: 1;
}

.countdown-number.pulse {
  animation: numberPulse 0.4s ease-out;
}

@keyframes numberPulse {
  0% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* === 提示文字 === */
.countdown-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  background: var(--dark-card);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(98, 126, 234, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.countdown-hint strong {
  color: var(--eth-gold);
  font-weight: 700;
}

.hint-icon {
  font-size: 1.2em;
}

.countdown-hint.hint-done {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

/* === 底部装饰 === */
.bottom-decoration {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 1s ease-out 1.2s both;
}

.deco-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--eth-blue), transparent);
}

.deco-dots {
  display: flex;
  gap: 6px;
}

.deco-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--eth-blue);
  opacity: 0.5;
}

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

/* === 惊喜弹窗 === */
.surprise-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: all 0.5s ease;
}

.surprise-overlay.active {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  pointer-events: all;
}

.surprise-modal {
  position: relative;
  width: min(90vw, 420px);
  background: linear-gradient(160deg, rgba(20, 25, 50, 0.95) 0%, rgba(10, 14, 30, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(98, 126, 234, 0.3);
  padding: 2.5rem 2rem;
  text-align: center;
  transform: scale(0.7) translateY(40px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 
    0 0 60px rgba(98, 126, 234, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.surprise-overlay.active .surprise-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.surprise-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(98, 126, 234, 0.08) 0%, transparent 50%);
  animation: modalGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes modalGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.surprise-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

.surprise-content {
  position: relative;
  z-index: 1;
}

.surprise-badge {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: badgeBounce 1s ease-out 0.3s both;
}

@keyframes badgeBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.surprise-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--eth-gold) 0%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.surprise-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.surprise-reward {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(98, 126, 234, 0.1);
  border: 1px solid rgba(98, 126, 234, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.reward-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--glow-blue));
}

.reward-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.reward-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reward-value {
  font-size: 0.85rem;
  color: var(--eth-cyan);
}

.surprise-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  color: #0a0e1a;
  background: linear-gradient(135deg, var(--eth-gold) 0%, #ffaa00 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.surprise-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.surprise-btn:active {
  transform: translateY(0);
}

.surprise-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* === 响应式 === */
@media (max-width: 480px) {
  .main-content {
    padding: 1.5rem 0.75rem;
    gap: 0.3rem;
  }

  .eth-logo-wrapper {
    width: 70px;
    height: 70px;
  }

  .whale-decoration {
    width: 120px;
    bottom: 5%;
    right: -10%;
    opacity: 0.15;
  }

  .countdown-ring-wrapper {
    width: 130px;
    height: 130px;
  }

  .surprise-modal {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .eth-logo-wrapper {
    width: 110px;
    height: 110px;
  }

  .main-title {
    font-size: 4.5rem;
  }

  .countdown-ring-wrapper {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 1200px) {
  .main-title {
    font-size: 5.5rem;
  }

  .whale-decoration {
    width: 350px;
    right: 5%;
    bottom: 10%;
  }
}
