* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.card {
  width: 90%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease;
}

h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

#text {
  font-size: 16px;
  line-height: 1.6;
  min-height: 120px;
  white-space: pre-line;
}

button {
  margin-top: 20px;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: #ff6b81;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:active {
  transform: scale(0.95);
}

/* 漂浮爱心 */
.heart {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  animation: float 6s linear infinite;
}

@keyframes float {
  from {
    transform: translateY(100vh);
  }

  to {
    transform: translateY(-10vh);
  }
}

/* 爆炸爱心 */
.burst {
  position: absolute;
  font-size: 20px;
  animation: burst 1s ease-out forwards;
}

@keyframes burst {
  to {
    transform: translate(var(--x), var(--y)) scale(1.5);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}