/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff7a45;
  --secondary: #ff5c8a;
  --ink: #2b2b33;
  --sub: #8a8a96;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.9);
}

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #f6f7fb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ========== 背景网格（参考截图方格纸） ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 130, 160, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 130, 160, 0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.glow-a {
  width: 420px; height: 420px;
  background: var(--primary);
  top: -120px; left: -100px;
}
.glow-b {
  width: 420px; height: 420px;
  background: var(--secondary);
  bottom: -140px; right: -100px;
}

/* ========== 布局 ========== */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== 主卡片 ========== */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(90, 90, 130, 0.18),
    0 4px 14px rgba(90, 90, 130, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 52px 40px 44px;
  text-align: center;
  animation: cardIn 0.7s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== 昵称 ========== */
.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 700;
}
.name { letter-spacing: 1px; }
.name-boy { color: var(--primary); }
.name-girl { color: var(--secondary); }
.heart {
  color: var(--secondary);
  font-size: 20px;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(1); }
}

/* ========== 顶部渐变标题 ========== */
.top-text {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ========== 计时器 ========== */
.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 20px);
  margin-bottom: 30px;
}
.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 86px;
  padding: 18px 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(120, 120, 160, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.time-num {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}
.time-unit {
  margin-top: 6px;
  font-size: 14px;
  color: var(--sub);
  letter-spacing: 2px;
}
.colon {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #c9c9d6;
}

/* ========== 情话 / 备注 ========== */
.love-words {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--sub);
  letter-spacing: 1.5px;
  line-height: 1.8;
}
.meta {
  margin-top: 18px;
  font-size: 13px;
  color: #b0b0bc;
  letter-spacing: 1px;
}

/* ========== 页脚 ========== */
.footer {
  margin-top: 26px;
  font-size: 13px;
  color: #a5a5b2;
  letter-spacing: 2px;
}

/* ========== 手机适配 ========== */
@media (max-width: 600px) {
  .card { padding: 36px 20px 30px; border-radius: 22px; }
  .time-block { min-width: 68px; padding: 14px 10px; border-radius: 16px; }
  .timer { gap: 8px; }
  .colon { display: none; }
  .names { font-size: 18px; gap: 12px; }
}
