html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", "Arial", sans-serif;
  background: linear-gradient(135deg, rgb(214, 238, 250), rgb(180, 222, 250), rgb(240, 248, 255));
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  overflow: hidden;
  cursor: default;
}

.message-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  text-align: center;
  animation: fadeInUp 1.5s ease-out;
  z-index: 1;
}

.message-box h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.message-box p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin: 10px 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter-text::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 4px;
}

/* 添加此类，隐藏光标 */
.no-caret::after {
  content: none !important;
  animation: none !important;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 爱心样式 */
.heart {
  position: absolute;
  font-size: 16px;
  user-select: none;
  animation: floatUp 1s ease-out forwards;
  z-index: 1000;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.8);
  }
}

/* 星星样式 */
.trail-star {
  position: absolute;
  font-size: 14px;
  color: gold;
  opacity: 0.9;
  animation: starFade 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes starFade {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}

.right-align {
  text-align: right;
}

/* 禁止文本选择 */
body, body * {
  -webkit-user-select: none;  /* Safari */
  -moz-user-select: none;     /* Firefox */
  -ms-user-select: none;      /* IE10+ */
  user-select: none;          /* 标准 */
  -webkit-touch-callout: none; /* 禁止iOS长按弹出菜单 */
}

/* 禁止拖动图片或其他元素 */
img, a, button {
  -webkit-user-drag: none;
  user-drag: none;
}
