html {
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  overflow: hidden;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

/* 彩带背景动画 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,215,0,0.1) 10px, rgba(255,215,0,0.1) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,105,180,0.1) 10px, rgba(255,105,180,0.1) 20px);
  pointer-events: none;
  z-index: -1;
}

.container {
  height: 100vh;
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.container div.six {
  top: 10vh;
  z-index: 1;
}

.container div.seven,
.container div.eight {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: clamp(2.2rem, 8vmin, 4.5rem);
  color: #fff;
  text-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-weight: 600;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

.two {
  font-size: clamp(1rem, 3vmin, 1.5rem);
  font-weight: lighter;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.three {
  font-size: clamp(2rem, 7vmin, 4rem);
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 5px 15px rgba(0,0,0,0.3);
  font-weight: 700;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 5px 15px rgba(0,0,0,0.3); }
  50% { text-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 5px 15px rgba(0,0,0,0.3); }
}

.four .text-box {
  width: min(600px, 90vw);
  margin: 0 auto;
  border: 3px solid #ffd700;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.five p {
  font-size: clamp(1.2rem, 4vmin, 2rem);
  position: absolute;
  left: 0;
  right: 0;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.3);
  font-weight: 500;
}

.idea-3 strong {
  padding: 8px 15px;
  border-radius: 10px;
  display: inline-block;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.five .idea-5 {
  font-size: clamp(2rem, 7vmin, 4rem);
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: clamp(4rem, 20vmin, 15rem);
}

.six {
  position: relative;
}

.six img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.six .hat {
  position: absolute;
  width: clamp(120px, 16vmin, 200px);
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.six .lydia-dp {
  border-radius: 50px;
  max-height: 72vh;
  width: auto;
  border: 5px solid #ffd700;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 215, 0, 0.3);
  animation: photo-glow 3s ease-in-out infinite;
}

@keyframes photo-glow {
  0%, 100% { 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 215, 0, 0.3);
  }
  50% { 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 105, 180, 0.5);
  }
}

.baloons img {
  display: inline-block;
  position: absolute;
  width: 600px;
  height: auto;
}

.baloons img:nth-child(5n+1) {
  left: 4%;
}

.baloons img:nth-child(5n+2) {
  left: 22%;
}

.baloons img:nth-child(5n+3) {
  left: 40%;
}

.baloons img:nth-child(5n+4) {
  left: 58%;
}

.baloons img:nth-child(5n) {
  left: 76%;
}

.eight svg {
  width: 25px;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: -1;
}

.eight svg:nth-child(1) {
  top: 7vh;
  left: 5vw;
  fill: #bd6ecf;
}

.eight svg:nth-child(2) {
  top: 23vh;
  left: 35vw;
  fill: #7dd175;
}

.eight svg:nth-child(3) {
  top: 33vh;
  left: 23vw;
  fill: #349d8b;
}

.eight svg:nth-child(4) {
  top: 43vh;
  left: 57vw;
  fill: #347a9d;
}

.eight svg:nth-child(5) {
  top: 68vh;
  left: 7vw;
  fill: #c66053;
}

.eight svg:nth-child(6) {
  top: 42vh;
  left: 77vw;
  fill: #bfaa40;
}

.eight svg:nth-child(7) {
  top: 68vh;
  left: 83vw;
  fill: #e3bae8;
}

.eight svg:nth-child(8) {
  top: 86vh;
  left: 37vw;
  fill: #8762cb;
}

.eight svg:nth-child(9) {
  top: 94vh;
  left: 87vw;
  fill: #9a90da;
}

.wish-hbd {
  font-size: clamp(1.6em, 6vmin, 3em);
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd700 0%, #ff69b4 50%, #00bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.wish h5 {
  font-weight: lighter;
  font-size: clamp(1.1rem, 4vmin, 2rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.3);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

.nine {
  display: none;
}

#replay {
  z-index: 3;
  cursor: pointer;
}

/* Media Queries */
@media screen and (max-width: 600px) {
  .four .text-box {
    width: 92vw;
  }

  .text-box .fake-btn {
    right: 5px;
    bottom: -38px;
  }

  .idea-5 span {
    display: block;
  }

  .nine p {
    font-size: 1.2rem;
    font-weight: lighter;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.play-pause {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('../img/play.svg');
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
  position: absolute;
  right: 5vw;
  top: 5vh;
}

.play-pause.playing {
  background-image: url('../img/pause.svg');
  animation: rotate 2s linear infinite;
}

.startSign {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 92vw);
  max-height: 92vh;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 3px solid #ffd700;
  overflow: hidden;
}

.startSign::before {
  content: '🎉';
  position: absolute;
  font-size: 5rem;
  opacity: 0.1;
  top: -20px;
  left: -20px;
  animation: float 3s ease-in-out infinite;
}

.startSign::after {
  content: '🎂';
  position: absolute;
  font-size: 5rem;
  opacity: 0.1;
  bottom: -20px;
  right: -20px;
  animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.startSign .button {
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.startSign .button::before {
  content: '🎈';
  position: absolute;
  left: 20px;
  font-size: 1.5rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.startSign .button:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
  cursor: pointer;
}
