:root {
  --bg: #fff5f8;
  --accent: #ff5a8a;
  --muted: #666;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
body {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.container {
  text-align: center;
  max-width: 520px;
  width: 100%;
}
#mainImage {
  width: 160px;
  height: 160px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
h1 {
  color: var(--muted);
  margin: 18px 0;
  transition: transform 0.4s ease;
}
.buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
}
button {
  cursor: pointer;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 18px;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 220ms ease, background 220ms ease;
  will-change: transform;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
button:active {
  transform: translateY(2px);
}
#yes {
  background: linear-gradient(135deg, #ff7ab2, #ff4a80);
  color: #fff;
  transition-duration: 420ms;
}
#no {
  background: #fff;
  border: 2px solid #ffd6e6;
  color: var(--accent);
  position: relative;
  transition-duration: 320ms;
}
button:focus {
  outline: 3px solid rgba(255, 90, 138, 0.18);
  outline-offset: 2px;
}

/* 覆盖层 */
.yes-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(circle at 20% 10%, rgba(255, 120, 160, 0.08), transparent 20%), rgba(255, 255, 255, 0.6);
}
.yes-screen.visible {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}
.yes-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  text-align: center;
  max-width: 640px;
}
.yes-card.pop-in {
  animation: popIn 440ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  60% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.yes-text {
  color: var(--accent);
  margin: 0 0 12px 0;
  font-size: 20px;
}
.yes-image {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
}
.small-btn {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffdfe8;
  border: 0;
  color: var(--accent);
}

/* 浮动爱心粒子 */
.floating-heart {
  position: fixed;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff6aa8, #ff2b7a);
  transform-origin: center;
  clip-path: path("M10 3c-3-2-7 1-7 4 0 4 7 8 7 8s7-4 7-8c0-3-4-6-7-4z");
  border-radius: 4px;
  animation: floatUp 3.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 9999;
  will-change: transform, opacity;
  pointer-events: none;
}
.floating-heart.white {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border: 1px solid rgba(255, 90, 138, 0.1);
  box-shadow: 0 8px 30px rgba(255, 80, 140, 0.06);
  filter: drop-shadow(0 6px 18px rgba(255, 90, 140, 0.04));
}
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-220px) scale(1.1);
  }
}

/* 响应式 */
@media (max-width: 480px) {
  #mainImage {
    width: 120px;
    height: 120px;
  }
  button {
    font-size: 16px;
    padding: 10px 14px;
  }
  .yes-image {
    width: 160px;
  }
}
