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

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #fff7f4;
  color: #4a2c2a;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 240, 238, 0.65), rgba(255, 248, 245, 0.95)),
    url("images/cover.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.hero-content {
  max-width: 760px;
  padding: 50px 35px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(180, 100, 100, 0.18);
}

.small-title {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b76e79;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 72px;
  font-family: Georgia, serif;
  color: #b84c65;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 25px;
}

.hero-text {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 35px;
}

button,
.map-entry a {
  border: none;
  background: linear-gradient(135deg, #d76d77, #f6b2a6);
  color: white;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(215, 109, 119, 0.35);
  transition: 0.3s;
}

button:hover,
.map-entry a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(215, 109, 119, 0.45);
}

section {
  padding: 90px 8%;
  text-align: center;
}

section h2 {
  font-size: 34px;
  color: #9d4053;
  margin-bottom: 18px;
}

.section-desc,
.map-entry p {
  font-size: 17px;
  color: #7a5551;
  margin-bottom: 38px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.countdown div {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 15px 35px rgba(180, 100, 100, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown span {
  font-size: 36px;
  font-weight: bold;
  color: #b84c65;
}

.countdown p {
  margin-top: 8px;
  color: #7a5551;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.memory-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(180, 100, 100, 0.16);
  transition: 0.3s;
}

.memory-card:hover {
  transform: translateY(-8px);
}

.memory-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.memory-card h3 {
  font-size: 22px;
  margin: 24px 22px 12px;
  color: #9d4053;
}

.memory-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #6f514d;
  padding: 0 24px 30px;
}

.letter-section {
  background: linear-gradient(135deg, #fff7f4, #ffe9e3);
}

.letter-box {
  max-width: 820px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  padding: 46px;
  text-align: left;
  box-shadow: 0 20px 55px rgba(180, 100, 100, 0.16);
}

.letter-box p {
  font-size: 17px;
  line-height: 2.1;
  margin-bottom: 18px;
}

.signature {
  text-align: right;
  color: #b84c65;
  font-weight: bold;
}

.map-entry {
  background: #fff7f4;
}

.map-entry a {
  display: inline-block;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .letter-box {
    padding: 32px 24px;
  }
}
.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 205, 215, 0.95), transparent 30%),
    radial-gradient(circle at 75% 70%, rgba(255, 225, 210, 0.9), transparent 32%),
    linear-gradient(135deg, #fff7f4, #ffe4de);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.opening-card {
  max-width: 620px;
  width: 100%;
  padding: 56px 42px;
  border-radius: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 80px rgba(180, 100, 100, 0.22);
  animation: openingFloat 1.5s ease;
}

.opening-small {
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #b76e79;
  margin-bottom: 18px;
}

.opening-card h1 {
  font-size: 42px;
  color: #9d4053;
  margin-bottom: 20px;
  font-family: Georgia, "Microsoft YaHei", serif;
}

.opening-text {
  font-size: 17px;
  color: #6f514d;
  line-height: 2;
  margin-bottom: 34px;
}

.opening-card button {
  border: none;
  background: linear-gradient(135deg, #d76d77, #f6b2a6);
  color: white;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(215, 109, 119, 0.36);
  transition: 0.3s;
}

.opening-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(215, 109, 119, 0.46);
}

.music-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #d76d77, #f6b2a6);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(215, 109, 119, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn.playing {
  animation: rotateMusic 4s linear infinite;
}

.hero-content {
  animation: heroFadeIn 1.2s ease;
}

.hero-text::after {
  content: "|";
  margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes openingFloat {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

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

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes cursorBlink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .opening-card {
    padding: 42px 26px;
  }

  .opening-card h1 {
    font-size: 32px;
  }

  .music-btn {
    right: 18px;
    bottom: 18px;
  }
}
