/* ===== 爱情纪念网站样式 ===== */

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #0c001a 0%, #1a0030 30%, #2d0040 60%, #1a0025 100%);
  color: #f0e0f0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 粒子画布 ===== */
#hearts {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== 主标题 ===== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 40px;
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 100, 150, 0.4);
}

.heart-icon {
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
  margin: 0 8px;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.subtitle {
  margin-top: 12px;
  font-size: 1.1rem;
  color: rgba(255, 180, 200, 0.8);
  letter-spacing: 0.15em;
}

/* ===== 计时卡片区 ===== */
.counters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.counter-card {
  flex: 1 1 320px;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 35px 25px 25px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 80, 130, 0.15);
}

.counter-card.love {
  border-color: rgba(255, 100, 150, 0.3);
}

.counter-card.marriage {
  border-color: rgba(255, 180, 100, 0.3);
}

.counter-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.counter-card h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* 年/月/日 */
.timer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.time-unit {
  text-align: center;
  min-width: 60px;
}

.time-unit span {
  display: block;
  font-size: 2.6rem;
  font-weight: 300;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  text-shadow: 0 0 20px rgba(255, 150, 200, 0.5);
}

.time-unit label {
  font-size: 0.8rem;
  color: rgba(255, 200, 220, 0.7);
  letter-spacing: 0.1em;
}

/* 时/分/秒 */
.timer-seconds {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 15px;
}

.timer-seconds .time-unit span {
  font-size: 1.8rem;
  color: rgba(255, 200, 220, 0.85);
  text-shadow: none;
}

.timer-seconds .time-unit label {
  font-size: 0.7rem;
}

/* 纪念徽章 */
.anniversary-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 150, 80, 0.2), rgba(255, 100, 140, 0.2));
  border: 1px solid rgba(255, 150, 120, 0.3);
  border-radius: 50px;
  padding: 8px 22px;
  margin-bottom: 12px;
}

.badge-year {
  font-size: 2rem;
  font-weight: 700;
  color: #ffb088;
}

.badge-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.badge-label strong {
  color: #ffb088;
  font-size: 1.1rem;
}

.since {
  font-size: 0.85rem;
  color: rgba(255, 180, 200, 0.5);
  letter-spacing: 0.05em;
}

/* ===== 寓意区 ===== */
.meaning {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  text-align: center;
}

.meaning-inner {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 180, 100, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
}

.meaning-inner h3 {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 200, 180, 0.9);
  margin-bottom: 10px;
}

.meaning-inner p {
  font-size: 0.9rem;
  color: rgba(255, 220, 210, 0.7);
  line-height: 1.6;
}

/* ===== 相册 ===== */
.gallery {
  position: relative;
  z-index: 1;
  padding: 40px 20px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.gallery h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 6px;
}

.gallery-hint {
  font-size: 0.8rem;
  color: rgba(255, 180, 200, 0.45);
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item.placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-item.placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.gallery-item.placeholder span {
  font-size: 0.85rem;
  color: rgba(255, 200, 220, 0.4);
}

.gallery-item.placeholder:hover {
  border-color: rgba(255, 150, 180, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* ===== 页脚 ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 180, 200, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .counters { gap: 20px; padding: 10px; }
  .counter-card { padding: 25px 15px 20px; }
  .time-unit span { font-size: 2rem; }
  .timer-seconds .time-unit span { font-size: 1.4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .title { font-size: 1.8rem; }
}
