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

body {
  font-family: 'Arial', sans-serif;
  background: #fce4ec;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 背景装饰物 */
.decorations img {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.fox { top: 10%; left: 5%; width: 80px; }
.rabbit { top: 20%; left: 20%; width: 60px; }
.deer { top: 30%; left: 60%; width: 70px; }
.crab { top: 40%; left: 80%; width: 80px; }

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* 页面主要内容 */
.container {
  text-align: center;
  position: relative;
}

.heart-container {
  position: relative;
  margin-bottom: 50px;
}

.heart {
  width: 100px;
  height: 100px;
  background: #ff4081;
  clip-path: polygon(50% 0%, 0% 35%, 50% 100%, 100% 35%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-text h1, .heart-text h2 {
  color: #ff4081;
  font-size: 2em;
  font-weight: bold;
}

.heart-text h2 {
  color: #f06292;
}

.effect-container {
  position: relative;
}

#loveButton {
  background: #ff4081;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}

#loveButton:hover {
  background: #f06292;
}

#photoContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.photo {
  position: absolute;
  opacity: 0;
  transition: transform 1s ease-out, opacity 1s ease-out;
  pointer-events: none;
  max-width: 200px;
  max-height: 200px;
  border-radius: 20px; /* 圆角边框 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
  filter: saturate(1.3); /* 增强颜色的饱和度 */
}

/* 心跳动画 */
@keyframes heartbeat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) rotate(10deg);
  }
}
