:root {
  --pink-100: #fce4ec;
  --pink-200: #f8bbd0;
  --pink-300: #f48fb1;
  --pink-400: #f06292;
  --pink-500: #e91e63;
  --pink-600: #d81b60;
  --pink-700: #c2185b;
  --pink-800: #ad1457;
  --bg:         #fff5f7;
  --text:       #3e2723;
  --text-light: #8d6e63;
  --font-serif: 'STSong', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', 'Georgia', serif;
  --font-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.petal-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  left: 0;
  width: 16px;
  height: 12px;
  background: radial-gradient(circle at 26% 28%, hsl(var(--petal-hue, 338) 100% 92%) 0%, hsl(var(--petal-hue, 338) 82% 78%) 62%, hsl(var(--petal-hue, 338) 66% 67%) 100%);
  border-radius: 64% 36% 62% 38%;
  opacity: 0.76;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: petal-fall linear infinite, petal-spin ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(233, 30, 99, 0.15));
  will-change: transform;
}

@media (max-width: 768px) {
  .petal {
    will-change: auto;
  }
}

.petal::before {
  content: '';
  position: absolute;
  inset: 12% 10% 32% 12%;
  border-radius: 58% 42% 52% 48%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  transform: rotate(-12deg);
}

@keyframes petal-fall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift-x, 40px), 110vh, 0) rotate(360deg); }
}

@keyframes petal-spin {
  0%, 100% { margin-left: -8px; }
  50% { margin-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .petal-layer {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #ad1457 0%, #e91e63 40%, #f06292 70%, #f8bbd0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero::after {
  content: '\2665';
  position: absolute;
  font-size: 240px;
  color: rgba(255,255,255,0.04);
  top: -20px;
  right: -30px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(12deg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25% 25%, #fff 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 640px;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  letter-spacing: 4px;
}

.heart {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: rgba(255,255,255,0.85);
  animation: heartBeat 1.6s ease-in-out infinite;
  display: inline-block;
}

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

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 6px;
  margin-bottom: 14px;
}

.hero-quote {
  max-width: 680px;
  margin: 0 auto 30px;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.hero-music {
  width: min(520px, 100%);
  margin: 0 auto 24px;
}

.hero-music-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero-music audio {
  width: 100%;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
}

.counter-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.counter-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.counter-num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.12);
  line-height: 1.2;
  min-width: 1.6em;
  display: inline-block;
  text-align: center;
}

.counter-unit {
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
  margin-right: 16px;
  display: inline-block;
  vertical-align: baseline;
}

.counter-unit:last-child {
  margin-right: 0;
}

.counter-start {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

.hero-birth {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.hero-birth-heart {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  animation: heartBeat 1.6s ease-in-out infinite;
  display: inline-block;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.timeline {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 18px 0 56px;
  --dot-size: 14px;
  --dot-top: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--pink-300) 5%, var(--pink-400) 50%, var(--pink-300) 95%, transparent 100%);
  z-index: 1;
}

.entry {
  display: block;
  position: relative;
  padding: 12px 0;
  z-index: 2;
}

.entry-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.entry.reveal .entry-card {
  opacity: 1;
  transform: translateY(0);
}

.entry-card {
  margin: 0 0 0 52px;
  text-align: left;
}

.entry-card::before {
  content: '';
  position: absolute;
  top: var(--dot-top);
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--pink-500);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--pink-400);
  z-index: 3;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.entry-card::after {
  content: '';
  position: absolute;
  top: calc(var(--dot-top) + (var(--dot-size) / 2) - 1px);
  height: 2px;
  background: rgba(216, 27, 96, 0.48);
  z-index: 2;
  transition: background 0.4s ease;
}

.entry-card::before {
  left: -34px;
}

.entry-card::after {
  left: calc(-34px + (var(--dot-size) / 2));
  width: calc(34px - (var(--dot-size) / 2));
}

.entry.reveal .entry-card::before {
  transform: scale(1.35);
  box-shadow: 0 0 0 5px var(--pink-300), 0 0 20px rgba(233, 30, 99, 0.3);
  background: var(--pink-600);
}

.entry.reveal .entry-card::after {
  background: rgba(194, 24, 91, 0.75);
}

.entry-date {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--pink-600);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.entry-card img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin: 8px 0 10px;
  cursor: zoom-in;
}

.entry-images {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 10px;
}

.entry-images img {
  width: auto;
  height: 150px;
  object-fit: contain;
  margin: 0;
  cursor: zoom-in;
}

.entry-images {
  justify-content: flex-start;
}

.entry-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

.entry-card p + p {
  margin-top: 8px;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(38, 20, 30, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-img {
  max-width: min(94vw, 1440px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.entry:nth-child(6n+1) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.65) 0%, rgba(252, 228, 236, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
.entry:nth-child(6n+2) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.65) 0%, rgba(254, 243, 245, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
.entry:nth-child(6n+3) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.72) 0%, rgba(253, 242, 244, 0.32) 62%, rgba(255, 245, 247, 0) 100%); }
.entry:nth-child(6n+4) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.65) 0%, rgba(255, 245, 247, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
.entry:nth-child(6n+5) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.68) 0%, rgba(254, 243, 245, 0.32) 62%, rgba(255, 245, 247, 0) 100%); }
.entry:nth-child(6n+6) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.65) 0%, rgba(253, 242, 244, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }

@media (max-width: 768px) {
  .timeline {
    --dot-size: 12px;
    --dot-top: 22px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-wave svg {
    height: 50px;
  }

  .counter-value {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .timeline::before {
    left: 24px;
  }

  .entry {
    display: block;
    padding: 8px 0;
  }

  .entry-card {
    margin: 0 0 0 52px;
    padding: 14px 16px;
    text-align: left;
  }

  .entry-card img {
    margin-left: 0;
    margin-right: 0;
  }

  .entry-card::before {
    left: -34px;
    box-shadow: 0 0 0 2px var(--pink-400);
  }

  .entry-card::after {
    left: calc(-34px + (var(--dot-size) / 2));
    width: calc(34px - (var(--dot-size) / 2));
  }

  .entry.reveal .entry-card::before {
    box-shadow: 0 0 0 4.5px var(--pink-300), 0 0 16px rgba(233, 30, 99, 0.25);
  }

  .entry-card p {
    font-size: 0.85rem;
  }

  .entry:nth-child(6n+1) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.68) 0%, rgba(252, 228, 236, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
  .entry:nth-child(6n+2) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.68) 0%, rgba(254, 243, 245, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
  .entry:nth-child(6n+3) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.75) 0%, rgba(253, 242, 244, 0.32) 62%, rgba(255, 245, 247, 0) 100%); }
  .entry:nth-child(6n+4) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.68) 0%, rgba(255, 245, 247, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
  .entry:nth-child(6n+5) .entry-card { background: linear-gradient(to right, rgba(248, 187, 208, 0.72) 0%, rgba(254, 243, 245, 0.32) 62%, rgba(255, 245, 247, 0) 100%); }
  .entry:nth-child(6n+6) .entry-card { background: linear-gradient(to right, rgba(252, 228, 236, 0.68) 0%, rgba(253, 242, 244, 0.3) 62%, rgba(255, 245, 247, 0) 100%); }
}

@media (max-width: 480px) {
  .timeline {
    --dot-top: 18px;
  }

  .hero-wave svg {
    height: 36px;
  }

  .entry {
    padding: 4px 0;
  }

  .entry-card {
    padding: 12px 14px;
    margin: 0 0 0 48px;
  }

  .entry-card::before {
    left: -34px;
  }

  .entry-card::after {
    left: calc(-34px + (var(--dot-size) / 2));
    width: calc(34px - (var(--dot-size) / 2));
  }
}

.anniversary-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.anniversary-modal.show {
  opacity: 1;
}

.anniversary-content {
  position: relative;
  background: linear-gradient(135deg, #fff5f7 0%, #fce4ec 50%, #f8bbd0 100%);
  border-radius: 24px;
  padding: 40px 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(233, 30, 99, 0.4);
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.anniversary-modal.show .anniversary-content {
  transform: scale(1);
}

.anniversary-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ff4081 50%, transparent 100%);
  animation: firework-burst 2s ease-out infinite;
  opacity: 0;
}

@keyframes firework-burst {
  0% {
    transform: scale(0) translateY(0);
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(20) translateY(-30px);
    opacity: 0;
  }
}

.anniversary-header {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--pink-700);
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-serif);
  text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
}

.anniversary-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
  animation: slide-in 0.6s ease-out backwards;
}

.anniversary-item:nth-child(2) { animation-delay: 0.1s; }
.anniversary-item:nth-child(3) { animation-delay: 0.2s; }
.anniversary-item:nth-child(4) { animation-delay: 0.3s; }

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

.anniversary-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.anniversary-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--pink-600);
  margin-bottom: 10px;
  font-family: var(--font-serif);
}

.anniversary-message {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.anniversary-close {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.anniversary-close:hover {
  background: linear-gradient(135deg, var(--pink-600) 0%, var(--pink-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.anniversary-close:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .anniversary-content {
    padding: 30px 20px;
  }

  .anniversary-header {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .anniversary-emoji {
    font-size: 2.5rem;
  }

  .anniversary-name {
    font-size: 1.2rem;
  }

  .anniversary-message {
    font-size: 0.9rem;
  }

  .anniversary-close {
    font-size: 1rem;
    padding: 12px 20px;
  }
}

.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.music-control.playing {
  animation: music-pulse 1.5s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(233, 30, 99, 0.6), 0 0 0 8px rgba(233, 30, 99, 0.1);
  }
}

.music-icon {
  display: inline-block;
  animation: music-note 0.6s ease;
}

@keyframes music-note {
  0% {
    transform: scale(0.8) rotate(-10deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.back-to-top {
  position: fixed;
  bottom: 170px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.next-anniversary {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  font-family: var(--font-serif);
}

.next-anniversary-label {
  display: inline;
}

.next-anniversary-name {
  display: inline;
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.6);
}

.next-anniversary-countdown {
  display: inline;
}

.countdown-number {
  display: inline;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 2px;
}

.countdown-unit {
  display: inline;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .music-control {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 140px;
    right: 20px;
    font-size: 1.3rem;
  }

  .theme-toggle {
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 20px;
    font-size: 1.3rem;
  }

  .next-anniversary {
    margin-top: 16px;
    font-size: 0.75rem;
  }

  .countdown-number {
    font-size: 0.75rem;
  }

  .countdown-unit {
    font-size: 0.75rem;
  }
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 50%, #e91e63 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-hearts {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.loading-heart {
  font-size: 2rem;
  animation: loading-bounce 1.4s ease-in-out infinite;
}

.loading-heart:nth-child(1) { animation-delay: 0s; }
.loading-heart:nth-child(2) { animation-delay: 0.2s; }
.loading-heart:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.3) translateY(-20px);
    opacity: 1;
  }
}

.loading-text {
  font-size: 1.2rem;
  color: white;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(20deg);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

body.dark-mode {
  --bg: #1a1a1a;
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --pink-100: #4a2a3a;
  --pink-200: #5a3a4a;
  --pink-300: #7a4a6a;
  --pink-400: #9a5a8a;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #2d1b2e 0%, #4a2a4a 50%, #6a3a5a 100%);
}

body.dark-mode .hero-wave path {
  fill: #1a1a1a;
}

body.dark-mode .entry-card {
  background: rgba(58, 38, 48, 0.6);
  color: #e0e0e0;
}

body.dark-mode .entry:nth-child(6n+1) .entry-card { background: linear-gradient(to right, rgba(74, 42, 58, 0.68) 0%, rgba(42, 26, 36, 0.3) 62%, rgba(26, 26, 26, 0) 100%); }
body.dark-mode .entry:nth-child(6n+2) .entry-card { background: linear-gradient(to right, rgba(90, 58, 74, 0.68) 0%, rgba(42, 26, 36, 0.3) 62%, rgba(26, 26, 26, 0) 100%); }
body.dark-mode .entry:nth-child(6n+3) .entry-card { background: linear-gradient(to right, rgba(74, 42, 58, 0.75) 0%, rgba(42, 26, 36, 0.32) 62%, rgba(26, 26, 26, 0) 100%); }
body.dark-mode .entry:nth-child(6n+4) .entry-card { background: linear-gradient(to right, rgba(90, 58, 74, 0.68) 0%, rgba(26, 26, 26, 0.3) 62%, rgba(26, 26, 26, 0) 100%); }
body.dark-mode .entry:nth-child(6n+5) .entry-card { background: linear-gradient(to right, rgba(74, 42, 58, 0.72) 0%, rgba(42, 26, 36, 0.32) 62%, rgba(26, 26, 26, 0) 100%); }
body.dark-mode .entry:nth-child(6n+6) .entry-card { background: linear-gradient(to right, rgba(90, 58, 74, 0.68) 0%, rgba(42, 26, 36, 0.3) 62%, rgba(26, 26, 26, 0) 100%); }

body.dark-mode .image-lightbox {
  background: rgba(0, 0, 0, 0.92);
}

body.dark-mode .anniversary-content {
  background: linear-gradient(135deg, #2d1b2e 0%, #4a2a4a 50%, #6a3a5a 100%);
  color: #e0e0e0;
}

body.dark-mode .anniversary-item {
  background: rgba(58, 38, 48, 0.8);
  color: #e0e0e0;
}

body.dark-mode .anniversary-message {
  color: #d0d0d0;
}

.photo-stats {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  font-family: var(--font-serif);
}

.photo-stats-number {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 2px;
}

.random-quote {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .loading-hearts {
    gap: 8px;
  }

  .loading-heart {
    font-size: 1.6rem;
  }

  .loading-text {
    font-size: 1rem;
  }
}
