/* ==========================================
   情侣纪念日前端样式 - iOS毛玻璃风格
   ========================================== */

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ========== 背景渐变 ========== */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #ff6ec4 0%, #7873f5 50%, #4ADEDE 100%);
  overflow: hidden;
  position: relative;
}

/* ========== 背景模糊光斑 ========== */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb1 {
  width: 300px;
  height: 300px;
  background: #ff6ec4;
  top: -80px;
  left: -50px;
  animation-delay: 0s;
}

.orb2 {
  width: 260px;
  height: 260px;
  background: #7873f5;
  bottom: -60px;
  right: -40px;
  animation-delay: 5s;
}

.orb3 {
  width: 200px;
  height: 200px;
  background: #4ADEDE;
  top: 35%;
  left: 45%;
  animation-delay: 10s;
}

/* 光斑浮动动画 */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ========== 主容器 ========== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* ========== 毛玻璃卡片 ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 40px 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-align: center;
  animation: cardFadeIn 0.8s ease-out;
}

/* 卡片淡入动画 */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 标题 ========== */
.title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-weight: 400;
}

/* ========== 倒计时区域 ========== */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-value {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.time-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 6px;
  text-transform: uppercase;
}

.time-separator {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  line-height: 1;
}

/* ========== 日期说明 ========== */
.date-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  font-weight: 400;
}

/* ========== 响应式适配 ========== */
@media (max-width: 380px) {
  .container {
    padding: 12px;
  }

  .glass-card {
    padding: 32px 16px;
  }

  .time-unit {
    min-width: 50px;
  }

  .time-value {
    font-size: 26px;
  }

  .time-separator {
    font-size: 22px;
  }

  .title {
    font-size: 24px;
  }

  .subtitle {
    font-size: 13px;
  }
}

/* ========== 大屏适配 ========== */
@media (min-width: 768px) {
  .container {
    max-width: 460px;
  }

  .glass-card {
    padding: 48px 32px;
  }
}
