* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "LXGW WenKai Lite", serif;
  background: #fdf8f5;
  color: #3a2f2f;
  line-height: 1.9;
}

/* 锁屏 */
#lock-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fdf8f5;
}

#lock-screen h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.hint {
  font-size: 14px;
  opacity: 0.7;
}

#password {
  margin-top: 20px;
  padding: 12px;
  width: 200px;
  text-align: center;
  font-size: 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

#unlock {
  margin-top: 16px;
  padding: 10px 28px;
  border-radius: 20px;
  border: none;
  background: #e6b7b7;
  color: white;
  font-size: 15px;
  cursor: pointer;
}

#error {
  margin-top: 10px;
  color: #c46a6a;
  font-size: 14px;
}

/* 主体 */
.hidden {
  display: none;
}

.cover {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cover h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.cover p {
  opacity: 0.8;
}

.cover button {
  margin-top: 30px;
  padding: 12px 30px;
  border-radius: 24px;
  border: none;
  background: #e6b7b7;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* 信件 */
.letter {
  padding: 60px 20px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
}

/* 音乐按钮 */
#music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

/* 花瓣 */
.petal {
  position: fixed;
  top: -50px;
  width: 22px;
  height: 22px;
  background: url("assets/petal.png") no-repeat center / contain;
  animation: fall 14s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes fall {
  from {
    transform: translateY(0) rotate(0);
  }
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* 📱 手机端 */
@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .cover h1 {
    font-size: 32px;
  }

  .letter {
    padding: 40px 16px;
  }

  .petal {
    display: none;
  }
}
