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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  color: white;
  font-weight: 300;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url('../img/srkl.gif') center center / cover no-repeat;
  background-color: #ff9ec4;
  /* 添加浪漫的渐变遮罩层 */
  background-blend-mode: overlay;
}

.wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.3) 0%, 
    rgba(255, 192, 203, 0.4) 25%,
    rgba(255, 105, 180, 0.3) 50%,
    rgba(255, 182, 193, 0.4) 75%,
    rgba(255, 192, 203, 0.3) 100%);
  z-index: 1;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.happy {
  margin-bottom: 15px;
  margin-top: -20px;
  animation: fadeInDown 1s ease-out;
  z-index: 3;
}

.happy img {
  max-width: 95%;
  width: auto;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.blessing-content {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 15px;
  z-index: 3;
  text-align: center;
}

.greeting {
  font-size: 24px;
  color: #FF359A;
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 15px rgba(255, 182, 193, 0.8),
    0 0 25px rgba(255, 192, 203, 0.7),
    0 0 35px rgba(255, 105, 180, 0.6),
    0 0 50px rgba(255, 182, 193, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  animation: fadeInUp 1.2s ease-out 0.3s both, breatheGlow 3s ease-in-out infinite 1.5s;
  line-height: 1.6;
  text-align: left;
}

.blessing-text {
  font-size: 18px;
  line-height: 2;
  color: #FF359A;
  text-shadow: 
    0 0 6px rgba(255, 255, 255, 0.98),
    0 0 12px rgba(255, 182, 193, 0.85),
    0 0 18px rgba(255, 210, 170, 0.75),
    0 0 24px rgba(190, 225, 255, 0.65),
    0 0 32px rgba(255, 140, 180, 0.6),
    0 0 42px rgba(255, 190, 210, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
  /*font-weight: 400;*/
  letter-spacing: 1px;
  text-align: left;
  text-indent: 2em;
  animation: fadeInUp 1.5s ease-out 0.6s both, breatheGlowColor 3.5s ease-in-out infinite 2.1s;
  padding: 0;
}

/* 淡入动画 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 淡出动画 - 更平滑的淡出效果 */
@keyframes gentleFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.4;
    transform: translateY(-10px);
  }
}

/* 呼吸发光效果 - 让文字有节奏地呼吸发光 */
@keyframes breatheGlow {
  0%, 100% {
    text-shadow: 
      0 0 5px rgba(255, 255, 255, 1),
      0 0 10px rgba(255, 255, 255, 0.9),
      0 0 15px rgba(255, 182, 193, 0.8),
      0 0 25px rgba(255, 192, 203, 0.7),
      0 0 35px rgba(255, 105, 180, 0.6),
      0 0 50px rgba(255, 182, 193, 0.5),
      0 2px 6px rgba(0, 0, 0, 0.5);
    transform: scale(1);
  }
  50% {
    text-shadow: 
      0 0 8px rgba(255, 255, 255, 1),
      0 0 15px rgba(255, 255, 255, 1),
      0 0 25px rgba(255, 182, 193, 0.9),
      0 0 35px rgba(255, 192, 203, 0.8),
      0 0 50px rgba(255, 105, 180, 0.7),
      0 0 70px rgba(255, 182, 193, 0.6),
      0 2px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
  }
}

/* 彩色呼吸发光效果（简约多彩描边） */
@keyframes breatheGlowColor {
  0%, 100% {
    text-shadow: 
      0 0 6px rgba(255, 255, 255, 0.98),
      0 0 12px rgba(255, 182, 193, 0.85),
      0 0 18px rgba(255, 210, 170, 0.75),
      0 0 24px rgba(190, 225, 255, 0.65),
      0 0 32px rgba(255, 140, 180, 0.6),
      0 0 42px rgba(255, 190, 210, 0.55),
      0 2px 6px rgba(0, 0, 0, 0.5);
    transform: scale(1);
  }
  50% {
    text-shadow: 
      0 0 8px rgba(255, 255, 255, 1),
      0 0 16px rgba(255, 200, 210, 0.95),
      0 0 24px rgba(255, 220, 180, 0.9),
      0 0 30px rgba(200, 235, 255, 0.8),
      0 0 42px rgba(255, 160, 190, 0.75),
      0 0 60px rgba(255, 200, 220, 0.7),
      0 2px 8px rgba(0, 0, 0, 0.55);
    transform: scale(1.02);
  }
}

.bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  bottom: -160px;
  -webkit-animation: square 30s infinite;
  animation: square 30s infinite;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bg-bubbles li:nth-child(1) {
  left: 10%;
}

.bg-bubbles li:nth-child(2) {
  left: 20%;
  width: 60px;
  height: 60px;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  -webkit-animation-duration: 17s;
  animation-duration: 17s;
}

.bg-bubbles li:nth-child(3) {
  left: 25%;
  -webkit-animation-delay: 4s;
  animation-delay: 4s;
}

.bg-bubbles li:nth-child(4) {
  left: 40%;
  width: 50px;
  height: 50px;
  -webkit-animation-duration: 22s;
  animation-duration: 22s;
  background-color: rgba(255, 255, 255, 0.25);
}

.bg-bubbles li:nth-child(5) {
  left: 70%;
}

.bg-bubbles li:nth-child(6) {
  left: 80%;
  width: 80px;
  height: 80px;
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-bubbles li:nth-child(7) {
  left: 32%;
  width: 100px;
  height: 100px;
  -webkit-animation-delay: 7s;
  animation-delay: 7s;
}

.bg-bubbles li:nth-child(8) {
  left: 55%;
  width: 20px;
  height: 20px;
  -webkit-animation-delay: 15s;
  animation-delay: 15s;
  -webkit-animation-duration: 40s;
  animation-duration: 40s;
}

.bg-bubbles li:nth-child(9) {
  left: 25%;
  width: 15px;
  height: 15px;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
  -webkit-animation-duration: 40s;
  animation-duration: 40s;
  background-color: rgba(255, 255, 255, 0.3);
}

.bg-bubbles li:nth-child(10) {
  left: 90%;
  width: 100px;
  height: 100px;
  -webkit-animation-delay: 11s;
  animation-delay: 11s;
}

@-webkit-keyframes square {
  0% {
    -webkit-transform: translateY(0) rotate(0deg);
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-100vh) rotate(600deg);
    transform: translateY(-100vh) rotate(600deg);
    opacity: 0;
  }
}

@keyframes square {
  0% {
    -webkit-transform: translateY(0) rotate(0deg);
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-100vh) rotate(600deg);
    transform: translateY(-100vh) rotate(600deg);
    opacity: 0;
  }
}

/* 响应式设计 - 手机端优化 */
@media screen and (max-width: 480px) {
  .container {
    padding: 5px 15px;
    justify-content: center;
  }

  .happy {
    margin-bottom: 10px;
    margin-top: -15px;
  }

  .happy img {
    max-width: 90%;
    max-height: 180px;
  }

  .greeting {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-align: left;
  }

  .blessing-text {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    padding: 0;
    text-align: left;
    text-indent: 2em;
  }

  .blessing-content {
    max-width: 95%;
    padding: 0 10px;
    text-align: left;
  }
}

/* 小屏幕手机优化 */
@media screen and (max-width: 360px) {
  .greeting {
    font-size: 18px;
    text-align: left;
  }

  .blessing-text {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
    text-indent: 2em;
  }

  .happy img {
    max-height: 150px;
  }

  .happy {
    margin-top: -10px;
  }
}

/* 横屏适配 */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .container {
    padding: 5px 10px;
  }

  .happy {
    margin-bottom: 8px;
    margin-top: -10px;
  }

  .happy img {
    max-height: 120px;
  }

  .greeting {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
  }

  .blessing-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    text-indent: 2em;
  }
}

/* 防止文字选择（可选，提升体验） */
.blessing-content {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
