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

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 飘落的粒子 ===== */
.particle {
  position: fixed;
  top: -10vh;
  pointer-events: none;
  opacity: 0;
  animation: fall linear forwards;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(115vh) rotate(720deg); opacity: 0; }
}

/* ===== 卡片主体 ===== */
.card {
  width: min(92vw, 640px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 40px 34px 34px;
  text-align: center;
  color: #2b2b2b;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  cursor: default;
  user-select: none;
  position: relative;
}
.card.deck { transform-style: preserve-3d; }
.card.deck:hover  { background: rgba(255,255,255,0.78); }
.card.deck:active { background: rgba(255,255,255,0.7); }

.deck-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 12px;
  color: #aaa;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

/* 顶部装饰条 */
.ribbon {
  width: 90px;
  height: 10px;
  margin: 0 auto 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #b21f1f, #fdbb2d);
}

.big {
  font-size: 74px;
  line-height: 1;
  margin-bottom: 6px;
}
.title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 6px;
  background: linear-gradient(90deg, #b21f1f, #d35400);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.subtitle {
  font-size: 16px;
  color: #777;
  letter-spacing: 2px;
  margin-bottom: 26px;
}

.message {
  font-size: 18px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}
.message p { margin-bottom: 10px; }

/* 签名 */
.sign {
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  font-size: 20px;
  color: #d35400;
  margin-bottom: 26px;
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 14px;
  pointer-events: none;
}

/* 卡片入场动画 */
.card-enter { animation: cardIn 0.9s cubic-bezier(.22,1.2,.36,1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(60px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* 倒计时遮罩 */
.countdown {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.countdown .num { font-size: 120px; line-height: 1; animation: pop 0.5s ease; }
@keyframes pop { 0% { transform: scale(2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.countdown .txt { font-size: 20px; margin-top: 8px; }
.hidden { display: none; }

/* 倒数层内部文字水平居中 */
#countWrap { text-align: center; }

/* 封面 */
#cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
#cover .big { animation: float 2.5s ease-in-out infinite; }
@keyframes float {
  50% { transform: translateY(-12px); }
}
.cover-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 6px;
}
.cover-sub {
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}
.open-btn {
  margin-top: 12px;
  background: #fff;
  color: #b21f1f;
  border: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 46px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.open-btn:hover  { transform: translateY(-3px) scale(1.03); }
.open-btn:active { transform: scale(0.96); }