/* ============================================================
   我们的小窝 · 甜美浪漫风样式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --pink: #ff6b9d;
  --pink-deep: #e94f85;
  --pink-light: #ffd6e8;
  --pink-bg: #fff5f8;
  --cream: #fffaf7;
  --purple: #c084fc;
  --text: #6b4557;
  --text-light: #b08090;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(255, 107, 157, 0.16);
  --shadow-hover: 0 16px 50px rgba(255, 107, 157, 0.28);
  --pink-danger: #d6336c;                                  /* 错误文字/错误边框，白底 4.62:1 */
  --shadow-lifted: 0 24px 80px rgba(233, 79, 133, 0.25);   /* 浮层阴影，与 .confession-card 现取值一致 */
  --radius: 24px;
  --font-hand: "Ma Shan Zheng", "YouYuan", "STYuanti", "PingFang SC", cursive;
  --font-cute: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, #fff5f8 0%, #fff9fb 40%, #f6efff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--pink-light); color: var(--pink-deep); }

/* ---------- 通用区块 ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px 40px;
}

.section-title {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
  color: var(--pink-deep);
  letter-spacing: 2px;
  font-weight: normal;
}

.title-deco { color: var(--pink); font-size: 0.85em; }

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin: 8px 0 48px;
  font-size: 0.95rem;
}

/* 滚动渐入 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ① 告白弹窗
   ============================================================ */
.confession-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 214, 232, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.6s ease, visibility 0.6s;
}

.confession-overlay.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.confession-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--white);
  border-radius: 32px;
  padding: 56px 40px 44px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(233, 79, 133, 0.25);
  border: 2px solid var(--pink-light);
  animation: card-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow: hidden;
}

.confession-card::before {
  content: "";
  position: absolute;
  top: -70px; left: -70px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 214, 232, 0.7), transparent 70%);
  border-radius: 50%;
}

@keyframes card-pop {
  from { opacity: 0; transform: scale(0.7) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.confession-icon {
  font-size: 3.2rem;
  animation: icon-bounce 1.6s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg); }
}

.confession-hello {
  margin-top: 14px;
  font-family: var(--font-cute);
  color: var(--pink);
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.confession-text {
  margin: 18px 0 32px;
  font-size: 1.05rem;
  line-height: 1.9;
}

.confession-buttons {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 56px;
}

.btn-yes {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-size: 1.1rem;
  font-family: var(--font-cute);
  padding: 14px 42px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(233, 79, 133, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: yes-pulse 2s ease-in-out infinite;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(233, 79, 133, 0.55);
}

@keyframes yes-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.btn-no {
  background: var(--white);
  color: var(--text-light);
  border: 2px dashed var(--pink-light);
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.btn-no.dodging { position: relative; }

/* ============================================================
   ①b 访客密码门（z-index 1250：高于告白/爱心爆发/灯箱，低于 toast）
   ============================================================ */
.visit-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 214, 232, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.visit-gate-overlay.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.visit-gate-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 32px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: var(--shadow-lifted);
  border: 2px solid var(--pink-light);
  animation: card-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow: hidden;
}

.visit-gate-card::before {
  content: "";
  position: absolute;
  top: -70px; left: -70px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 214, 232, 0.7), transparent 70%);
  border-radius: 50%;
}

.visit-gate-icon {
  font-size: 3rem;
  animation: icon-bounce 1.6s ease-in-out infinite;
}

.visit-gate-title {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--text);
  letter-spacing: 2px;
  margin-top: 12px;
}

.visit-gate-sub {
  font-family: var(--font-cute);
  font-size: 0.9rem;
  color: var(--text);
  margin: 10px 0 28px;
}

.visit-gate-field { text-align: left; }

.visit-gate-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  text-align: left;
  margin-bottom: 6px;
}

.visit-gate-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-size: 1rem; /* 16px 避免 iOS 聚焦自动放大 */
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--pink-light);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.visit-gate-input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18);
}

.visit-gate-input::placeholder { color: var(--text-light); }

.visit-gate-input.is-error { border-color: var(--pink-danger); }

.visit-gate-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 10px 0;
  min-height: 44px;
}

.visit-gate-remember input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--pink);
  border-radius: 6px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.visit-gate-remember input:checked {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-color: transparent;
}

.visit-gate-remember input:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.visit-gate-btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-family: var(--font-cute);
  font-size: 1.05rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(233, 79, 133, 0.4);
  transition: transform 0.25s ease;
}

.visit-gate-btn:hover { transform: scale(1.04); }
.visit-gate-btn:active { transform: scale(0.97); }

.visit-gate-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.visit-gate-error {
  font-size: 0.85rem;
  color: var(--pink-danger);
  margin-top: 12px;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.visit-gate-error.show { opacity: 1; transform: none; }

.visit-gate-card.is-error { animation: gate-shake 0.4s ease; }

@keyframes gate-shake {
  0%, 100% { translate: 0; }
  20% { translate: -8px; }
  40% { translate: 8px; }
  60% { translate: -5px; }
  80% { translate: 5px; }
}

/* 焦点态统一（输入框用自有 focus 配方，见上） */
.visit-gate-btn:focus-visible,
.visit-gate-remember input:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 2px;
}

/* ============================================================
   爱心特效层
   ============================================================ */
.heart-layer, .hero-bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  overflow: hidden;
}

.hero-bg-hearts { position: absolute; z-index: 0; }

/* 首屏背景漂浮爱心 */
.bg-heart {
  position: absolute;
  bottom: -60px;
  animation: bg-float-up linear forwards;
  opacity: 0.7;
  will-change: transform;
}

@keyframes bg-float-up {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 0.75; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) rotate(340deg) scale(1.15); opacity: 0; }
}

/* 点击冒出的小爱心 */
.click-heart {
  position: absolute;
  animation: click-pop 1s ease-out forwards;
  will-change: transform, opacity;
  z-index: 950;
}

@keyframes click-pop {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  60%  { transform: translate(-50%, -140%) scale(1.25); opacity: 0.9; }
  100% { transform: translate(-50%, -260%) scale(0.9); opacity: 0; }
}

/* 告白同意时的爱心爆发 */
.burst-heart {
  position: fixed;
  animation: burst 1.1s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
  will-change: transform, opacity;
  z-index: 1100;
  pointer-events: none;
}

@keyframes burst {
  0%   { transform: translate(0, 0) scale(0.5); opacity: 1; }
  70%  { opacity: 0.9; }
  100% { transform: translate(var(--bx), var(--by)) scale(1.3) rotate(var(--br)); opacity: 0; }
}

/* ============================================================
   ② 首屏
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 214, 232, 0.85), transparent),
    radial-gradient(ellipse 70% 55% at 80% 75%, rgba(224, 204, 255, 0.6), transparent),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(255, 236, 214, 0.7), transparent),
    linear-gradient(160deg, #fff5f8, #fdeff6);
}

.hero-content { position: relative; z-index: 1; padding: 40px 24px; }

.hero-greeting {
  font-family: var(--font-cute);
  color: var(--pink);
  letter-spacing: 3px;
  font-size: 1rem;
  animation: fade-down 1s ease 0.2s both;
}

.hero-names {
  font-family: var(--font-hand);
  font-weight: normal;
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--text);
  margin: 18px 0 6px;
  letter-spacing: 4px;
  animation: fade-down 1s ease 0.4s both;
}

.hero-amp {
  color: var(--pink);
  display: inline-block;
  margin: 0 12px;
  animation: amp-beat 1.4s ease-in-out infinite;
}

@keyframes amp-beat {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50%      { transform: scale(1.25) rotate(6deg); }
}

.hero-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  animation: fade-down 1s ease 0.6s both;
}

.hero-days-num {
  font-family: var(--font-hand);
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  color: var(--pink-deep);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(233, 79, 133, 0.25);
}

.hero-days-label {
  font-family: var(--font-cute);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
}

.hero-since {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  letter-spacing: 1px;
  animation: fade-down 1s ease 0.8s both;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--pink);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-cute);
  animation: fade-down 1s ease 1.2s both;
}

.scroll-arrow {
  font-size: 1.3rem;
  animation: arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ③ 数据看板
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 12px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 214, 232, 0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

.stat-icon { font-size: 2rem; }

.stat-num {
  font-family: var(--font-hand);
  font-size: 2.6rem;
  color: var(--pink-deep);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ============================================================
   ④ 倒计时
   ============================================================ */
.countdown-card {
  background: linear-gradient(140deg, #fff, #fff0f6);
  border: 2px solid var(--pink-light);
  border-radius: 32px;
  padding: 44px 32px 38px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.countdown-card::after {
  content: "💗";
  position: absolute;
  font-size: 9rem;
  opacity: 0.06;
  top: -30px; right: -10px;
  transform: rotate(20deg);
  pointer-events: none;
}

.countdown-title {
  font-family: var(--font-hand);
  font-weight: normal;
  font-size: 1.9rem;
  color: var(--pink-deep);
  letter-spacing: 2px;
}

.countdown-date { color: var(--text-light); margin: 6px 0 26px; font-size: 0.95rem; }

.countdown-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cd-box {
  background: linear-gradient(160deg, var(--pink), var(--pink-deep));
  color: #fff;
  border-radius: 20px;
  min-width: 84px;
  padding: 16px 8px 12px;
  box-shadow: 0 10px 24px rgba(233, 79, 133, 0.35);
}

.cd-num {
  display: block;
  font-family: var(--font-hand);
  font-size: 2.4rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-unit { font-size: 0.8rem; opacity: 0.9; }

.cd-sep {
  font-size: 1.8rem;
  color: var(--pink);
  font-weight: bold;
  animation: sep-blink 1s steps(2) infinite;
}

@keyframes sep-blink { 50% { opacity: 0.25; } }

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.milestone {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 214, 232, 0.7);
  transition: transform 0.3s ease;
}

.milestone:hover { transform: translateY(-4px); }

.milestone-icon { font-size: 1.6rem; }

.milestone-title { font-family: var(--font-cute); font-size: 0.95rem; color: var(--text); }

.milestone-date { font-size: 0.78rem; color: var(--text-light); }

.milestone-days {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--pink-deep);
  white-space: nowrap;
  font-weight: 600;
}

/* ============================================================
   ⑤ 时间线
   ============================================================ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--pink-light), var(--pink), var(--purple), var(--pink-light));
  border-radius: 3px;
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 44px 44px 0;
}

.tl-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 44px 44px;
}

.tl-dot {
  position: absolute;
  right: -17px;
  top: 6px;
  width: 34px; height: 34px;
  background: var(--white);
  border: 3px solid var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(233, 79, 133, 0.3);
  z-index: 1;
}

.tl-item:nth-child(even) .tl-dot {
  right: auto;
  left: -17px;
}

.tl-card {
  background: var(--white);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 214, 232, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.tl-date {
  display: inline-block;
  font-family: var(--font-cute);
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 8px;
}

.tl-title {
  font-family: var(--font-hand);
  font-weight: normal;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-desc { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ============================================================
   ⑥ 照片墙
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid rgba(255, 214, 232, 0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pink-deep);
  font-size: 0.75rem;
  font-family: var(--font-cute);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(107, 69, 87, 0.75));
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================================
   ⑦ 情书
   ============================================================ */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.letter-card {
  background: linear-gradient(165deg, #fff, #fff3f8);
  border: 2px solid var(--pink-light);
  border-radius: 22px;
  padding: 28px 24px 24px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.letter-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: var(--pink);
  box-shadow: var(--shadow-hover);
}

.letter-card::before {
  content: "💗";
  position: absolute;
  top: -14px; right: -6px;
  font-size: 3.4rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.letter-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.letter-envelope { font-size: 2rem; transition: transform 0.4s ease; }

.letter-card.open .letter-envelope { transform: rotate(-14deg) scale(1.15); }

.letter-title {
  font-family: var(--font-hand);
  font-weight: normal;
  font-size: 1.25rem;
  color: var(--pink-deep);
}

.letter-date { font-size: 0.78rem; color: var(--text-light); }

.letter-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--pink);
  font-family: var(--font-cute);
}

.letter-card.open .letter-hint { display: none; }

.letter-body {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--pink-light);
  font-size: 0.92rem;
  line-height: 2;
  color: var(--text);
  white-space: pre-wrap;
}

.letter-card.open .letter-body { display: block; animation: letter-open 0.5s ease both; }

@keyframes letter-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ⑧ 戳一下
   ============================================================ */
.poke-section { padding-bottom: 90px; }

.poke-card {
  background: linear-gradient(150deg, #fff, #fdeef6);
  border: 2px solid var(--pink-light);
  border-radius: 32px;
  padding: 48px 32px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.poke-btn {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-family: var(--font-cute);
  font-size: 1.25rem;
  padding: 16px 52px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(233, 79, 133, 0.4);
  transition: transform 0.2s ease;
  animation: yes-pulse 2.4s ease-in-out infinite;
}

.poke-btn:active { transform: scale(0.92); }

.poke-bubble {
  position: relative;
  min-height: 60px;
  max-width: 520px;
  margin: 26px auto 0;
  background: var(--white);
  border: 2px solid var(--pink-light);
  border-radius: 22px;
  padding: 16px 22px;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poke-bubble.show { opacity: 1; transform: scale(1); }

.poke-bubble::before {
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: var(--pink-light);
}

.poke-tip { margin-top: 18px; font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  text-align: center;
  padding: 46px 24px 54px;
  background: linear-gradient(180deg, transparent, rgba(255, 214, 232, 0.35));
}

.footer-heart {
  display: inline-block;
  font-size: 1.8rem;
  animation: amp-beat 1.6s ease-in-out infinite;
}

.footer-text {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--pink-deep);
  margin-top: 8px;
}

.footer-note { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }

/* 访客计数（页脚一行小字） */
.visitor-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 10px;
}

.visitor-count-num {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--pink-deep);
  display: inline-block;
  margin: 0 4px;
  vertical-align: -2px;
  transition: transform 0.25s ease;
}

.visitor-count:hover .visitor-count-num { transform: scale(1.15); }

/* ---------- 后台复用类（admin.html 内联样式中另有同值实现，保证后台不依赖本文件） ---------- */
.visit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-bg);
  border: 1px solid var(--pink-light);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--text);
}

.visit-pill strong { font-weight: 700; }

.backup-danger { font-size: 0.82rem; color: var(--pink-danger); }

/* ============================================================
   音乐按钮 / 灯箱 / 轻提示
   ============================================================ */
.music-btn {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 800;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink-light);
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.music-btn:hover { transform: scale(1.12) rotate(8deg); }

.music-btn.playing { animation: music-spin 3s linear infinite; }

@keyframes music-spin {
  to { transform: rotate(360deg); }
}

/* ---------- 歌单面板（桌面浮窗 / 移动端底部抽屉） ---------- */
.playlist-mask {
  position: fixed;
  inset: 0;
  z-index: 840;
  background: rgba(255, 214, 232, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; /* 仅移动端渲染 */
  opacity: 1;
  transition: opacity 0.25s ease;
}

.playlist-mask[hidden] { display: none !important; }
.playlist-mask.closing { opacity: 0; }

.playlist-panel {
  position: fixed;
  right: 22px;
  bottom: 86px; /* 52px 按钮 + 12px 间距 + 22px 底距 */
  width: 300px;
  z-index: 850;
  background: var(--white);
  border: 1.5px solid var(--pink-light);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: playlist-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.playlist-panel.closing { opacity: 0; transform: translateY(8px); }

@keyframes playlist-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}

.playlist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px 16px;
  border-bottom: 1px dashed var(--pink-light);
}

.playlist-title {
  font-family: var(--font-cute);
  font-size: 1rem;
  color: var(--text);
  margin-right: auto;
}

.playlist-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--pink-light);
  color: var(--pink-deep);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.playlist-toggle:hover { transform: scale(1.06); }

.playlist-toggle.is-playing {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-color: transparent;
  color: #fff;
  font-size: 13px;
}

.playlist-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.playlist-close:hover { color: var(--text); background: var(--pink-bg); }

.playlist-list {
  list-style: none;
  max-height: 264px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-light) transparent;
}

.playlist-list::-webkit-scrollbar { width: 6px; }
.playlist-list::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 3px; }

.playlist-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text);
  text-align: left;
}

.playlist-item:hover { background: var(--pink-bg); }

/* 非当前行前缀音符；当前行换成均衡器 */
.playlist-item::before {
  content: "♪";
  font-size: 16px;
  color: var(--text-light);
  flex-shrink: 0;
}

.playlist-item.is-current { background: var(--pink-bg); }
.playlist-item.is-current::before { content: ""; }
.playlist-item.is-current .playlist-name { font-weight: 600; }

.playlist-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 均衡器竖条（当前行才显示） */
.playlist-eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  flex-shrink: 0;
}

.playlist-item.is-current .playlist-eq { display: inline-flex; }

.playlist-eq span {
  width: 3px;
  background: var(--pink-deep);
  border-radius: 2px;
  transform-origin: center bottom;
  animation: eq-bounce 0.9s ease-in-out infinite;
}

.playlist-eq span:nth-child(1) { height: 12px; }
.playlist-eq span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.playlist-eq span:nth-child(3) { height: 10px; animation-delay: 0.3s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* 暂停时均衡器停住 */
.playlist-panel.is-paused .playlist-eq span { animation-play-state: paused; }

.playlist-empty {
  font-size: 0.82rem;
  color: var(--text);
  padding: 20px 12px;
  text-align: center;
}

.music-btn:focus-visible,
.playlist-toggle:focus-visible,
.playlist-close:focus-visible,
.playlist-item:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(60, 30, 45, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.lightbox.show { opacity: 1; visibility: visible; }

.lightbox-figure {
  max-width: min(90vw, 900px);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.show .lightbox-figure { transform: scale(1); }

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffd6e8;
  margin-top: 16px;
  font-size: 1rem;
  font-family: var(--font-cute);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.3rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-close { top: 24px; right: 24px; }

.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 2rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1300;
  background: rgba(107, 69, 87, 0.92);
  color: #fff;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 86vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .letters-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 18px 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 24px 8px 20px; }
  .stat-num { font-size: 2rem; }

  .cd-box { min-width: 66px; padding: 12px 6px 10px; }
  .cd-num { font-size: 1.7rem; }
  .cd-sep { font-size: 1.3rem; }

  /* 手机端倒计时改为四列网格，避免换行出现孤立冒号 */
  .countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cd-sep { display: none; }

  /* 时间线改为左侧单列 */
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 32px 56px;
  }
  .tl-dot, .tl-item:nth-child(even) .tl-dot {
    left: 3px; right: auto;
    width: 30px; height: 30px;
    font-size: 0.85rem;
  }

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

  .confession-card { padding: 44px 26px 36px; }

  /* 密码门移动端 */
  .visit-gate-overlay { padding: 16px; }
  .visit-gate-card { padding: 44px 26px 36px; }
  .visit-gate-title { font-size: 1.9rem; }

  /* 歌单面板移动端：底部抽屉 + 遮罩 */
  .playlist-mask { display: block; }
  .playlist-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: 56vh;
    transform-origin: bottom center;
  }
  .playlist-list { max-height: 40vh; }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; }
}

/* ---------- 减少动态效果（无障碍） ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
