:root {
  --text: #6b2344;
  --muted: #9d5b77;
  --accent: #ff5c8a;
  --accent-strong: #ff2f70;
  --accent-soft: #ffd3e1;
  --panel: rgba(255, 248, 251, 0.82);
  --shadow: 0 28px 70px rgba(232, 92, 138, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang HK", "PingFang TC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 160, 196, 0.45), transparent 25%),
    radial-gradient(circle at 85% 18%, rgba(255, 209, 220, 0.8), transparent 22%),
    radial-gradient(circle at 82% 82%, rgba(255, 111, 145, 0.22), transparent 24%),
    linear-gradient(145deg, #fff7fb 0%, #ffe7f0 45%, #fff0f5 100%);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.hero {
  width: min(100%, 760px);
  background: var(--panel);
  border: 1px solid rgba(255, 125, 164, 0.18);
  border-radius: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 52px 34px;
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  z-index: -1;
}

.hero::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -20px;
}

.hero::after {
  width: 120px;
  height: 120px;
  left: -30px;
  bottom: 60px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.title {
  margin: 0;
  font-family: "PingFang HK", "PingFang TC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  max-width: none;
  white-space: nowrap;
  font-weight: 700;
}

.title__icon {
  display: inline-block;
  margin-left: 0.12em;
  transform: translateY(-0.04em);
}

.intro {
  margin: 18px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.card {
  margin-top: 32px;
  padding: 28px 24px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 121, 161, 0.14);
  position: relative;
  overflow: hidden;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.count {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
}

.heart-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7fa7 0%, #ff4f87 100%);
  color: #fff;
  padding: 14px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 28px rgba(255, 79, 135, 0.28);
  position: relative;
}

.heart-button::before,
.heart-button::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(45deg);
  border-radius: 4px;
}

.heart-button::before {
  top: -8px;
  right: 28px;
}

.heart-button::after {
  bottom: -8px;
  left: 30px;
}

.heart-button__icon {
  font-size: 1.15rem;
  line-height: 1;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.heart-button__text {
  white-space: nowrap;
}

.heart-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 34px rgba(255, 79, 135, 0.34);
  filter: saturate(1.06);
}

.heart-button:active {
  transform: translateY(1px) scale(0.98);
}

.heart-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: 52px;
  left: var(--left, 50%);
  font-size: var(--size, 24px);
  line-height: 1;
  color: var(--color, #ff5c8a);
  opacity: 0;
  transform: translate(-50%, 0) scale(0.8) rotate(0deg);
  animation: float-up 1.8s ease-out forwards;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.16);
  }

  40% {
    transform: scale(0.92);
  }

  60% {
    transform: scale(1.12);
  }
}

@keyframes float-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.7) rotate(0deg);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), -180px) scale(1.25) rotate(var(--spin, 12deg));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 32px 20px;
  }

  .title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    white-space: normal;
  }

  .card {
    padding: 24px 18px 28px;
  }

  .heart-button {
    width: 100%;
    justify-content: center;
  }
}
