/* 封面开屏（来源 pages/cover/cover.wxss，rpx × 0.5 → px） */

.cover {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(170deg, #f7f1e8 0%, #efe4d6 55%, #e8dccb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.cover--in { opacity: 1; }

/* 开启时整体缩放淡出 */
.cover--opening .invite {
  transform: scale(1.06) translateY(-10px);
}

.cover--entered {
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.4, 0, 0.6, 1);
}

/* ============ 背景照片 ============ */
.cover__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.cover__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  animation: bg-drift 18s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.14) translateY(-8px); }
}

.cover__bg-mask {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(251, 247, 242, 0.82) 0%, rgba(251, 247, 242, 0.6) 40%, rgba(244, 236, 227, 0.9) 100%);
}

/* ============ 金箔粒子 ============ */
.sparkles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0dcae, rgba(198, 161, 91, 0));
  animation: float-up linear infinite;
}

.sparkle--1 { left: 12%; bottom: -2%; animation-duration: 9s; animation-delay: 0s; }
.sparkle--2 { left: 26%; bottom: -2%; animation-duration: 12s; animation-delay: 1.4s; width: 3px; height: 3px; }
.sparkle--3 { left: 44%; bottom: -2%; animation-duration: 10s; animation-delay: 2.6s; }
.sparkle--4 { left: 62%; bottom: -2%; animation-duration: 13s; animation-delay: 0.8s; width: 5px; height: 5px; }
.sparkle--5 { left: 78%; bottom: -2%; animation-duration: 11s; animation-delay: 3.1s; }
.sparkle--6 { left: 90%; bottom: -2%; animation-duration: 14s; animation-delay: 1.9s; width: 3px; height: 3px; }

@keyframes float-up {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.9; }
  70% { opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(1.1); opacity: 0; }
}

/* ============ 请柬主体 ============ */
.invite {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.invite__frame {
  position: relative;
  width: 300px;
  max-width: calc(100% - 32px);
  padding: 44px 24px;
  border-radius: 4px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(252, 248, 242, 0.88));
  box-shadow: 0 10px 36px rgba(62, 50, 39, 0.14);
  border: 1px solid rgba(198, 161, 91, 0.42);
}

/* 四角装饰 */
.invite__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--c-gold);
  border-style: solid;
  border-width: 0;
}

.invite__corner--tl { left: 7px; top: 7px; border-left-width: 1.5px; border-top-width: 1.5px; }
.invite__corner--tr { right: 7px; top: 7px; border-right-width: 1.5px; border-top-width: 1.5px; }
.invite__corner--bl { left: 7px; bottom: 7px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.invite__corner--br { right: 7px; bottom: 7px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.invite__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite__eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--c-gold-deep);
  margin-bottom: 20px;
}

.invite__names {
  display: flex;
  align-items: center;
}

.invite__name {
  font-size: 30px;
  font-family: 'Songti SC', 'STSong', serif;
  color: var(--c-text);
  letter-spacing: 3px;
  font-weight: 500;
}

.invite__amp {
  font-size: 22px;
  color: var(--c-gold);
  margin: 0 12px;
  font-style: italic;
}

.invite__rule {
  display: flex;
  align-items: center;
  margin: 17px 0 14px;
}

.invite__rule-line {
  width: 45px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold));
}

.invite__rule-line:last-child {
  background: linear-gradient(90deg, var(--c-gold), transparent);
}

.invite__rule-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--c-gold);
  transform: rotate(45deg);
  margin: 0 8px;
}

.invite__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite__date {
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 1px;
}

.invite__lunar {
  font-size: 11px;
  color: var(--c-gold-deep);
  letter-spacing: 1.5px;
  margin-top: 5px;
}

.invite__time {
  font-size: 13px;
  color: var(--c-text-sub);
  letter-spacing: 1px;
  margin-top: 5px;
}

.invite__venue {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  width: 100%;
  display: flex;
  justify-content: center;
}

.invite__venue-name {
  font-size: 12px;
  color: var(--c-text-sub);
  letter-spacing: 1px;
  text-align: center;
}

/* ============ 火漆封印按钮 ============ */
.seal {
  position: relative;
  margin-top: 36px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.seal:active {
  transform: scale(0.94);
}

.seal__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, 0.5);
  animation: seal-pulse 2.6s ease-out infinite;
}

@keyframes seal-pulse {
  0% { transform: scale(0.86); opacity: 0.9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.seal__center {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d8b877, #a8843f 68%, #8d6c2e);
  box-shadow: 0 6px 16px rgba(168, 132, 63, 0.42), inset 0 -2px 6px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seal__icon {
  font-size: 22px;
  color: #fdf6e6;
  font-family: 'Songti SC', 'STSong', serif;
  line-height: 1.1;
}

.seal__text {
  font-size: 10px;
  color: rgba(253, 246, 230, 0.9);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ============ 底部年份（长按热区，外观与普通文字一致） ============ */
.cover__year-wrap {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.cover__year {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(168, 132, 63, 0.62);
}
