
/* 标题 */
.title {
  font-size: 30px;
  letter-spacing: 4px;
  padding-bottom: 65px;
}

/* 文案动画 */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  position: fixed;
  bottom: 0;
  max-width: 420px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.8s ease forwards;
  animation-delay: 0.6s;
}

.section.cover {
  text-align: center;
  color: #CA6E59;
}

.names {
  font-size: 18px;
  letter-spacing: 2px;
}

.hearts {
  letter-spacing: 8px;
  font-size: 16px;
}

.wedding-info {
  margin: 25px 0;
}

.time, .address {
  font-size: 16px;
  margin: 12px 0;
  letter-spacing: 1px;
}

.greeting {
  font-size: 18px;
  margin: 20px 0;
  letter-spacing: 2px;
  color: #CA6E59;
}

/* 调整后的导航按钮样式 */
.map-btn {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 30px;
  background-color: #CA6E59;
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.map-btn:hover {
  background-color: #b85a4a;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(202, 110, 89, 0.3);
}


/* ---------- 背景 ---------- */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: url(bg1.png) center / cover no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 气球层 ---------- */
#balloon-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* ---------- 气球 ---------- */
.balloon {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  opacity: 0;
  animation-name: floatBalloon;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}


.balloon::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  width: 2px;
  height: 26px;

  background: linear-gradient(
    to bottom,
    rgba(140,140,140,.6),
    rgba(140,140,140,.15)
  );

  border-radius: 50%;
  transform-origin: top center;
  transform: translateX(-50%) rotate(2deg);
  animation: stringSwing 3.5s ease-in-out infinite;
}

/* ---------- 气球尾部动画 ---------- */
@keyframes stringSwing {
  0%   { transform: translateX(-50%) rotate(2deg); }
  50%  { transform: translateX(-50%) rotate(-5deg); }
  100% { transform: translateX(-50%) rotate(2deg); }
}


/* ---------- 气球动画 ---------- */
@keyframes floatBalloon {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }

  6% { opacity: 0.9; }

  30% {
    transform: translate(-12px, -30vh) rotate(4deg);
  }

  60% {
    transform: translate(14px, -65vh) rotate(-6deg);
  }

  100% {
    transform: translate(-8px, -110vh) rotate(3deg);
    opacity: 0;
  }
}

/* ---------- 文案区 ---------- */
.hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}
