/* ============ 我的小星球 · 照片版(卡通治愈风) ============ */
:root {
  --star: #ffd166;
  --mint: #7fd8be;
  --peach: #ff9ecb;
  --cream: #fff6e5;
  --bg1: #1b2541;
  --bg2: #2a2a5e;
  --bg3: #3d2b5c;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 240, 200, 0.22);
  --polaroid-bg: #fffdf7;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Comic Sans MS", sans-serif;
  background: linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%);
  background-attachment: fixed;
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ---------- 背景:星星 + 装饰 ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.stars-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 209, 102, .8), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(127, 216, 190, .7), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 209, 102, .6), transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255, 158, 203, .6), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255, 209, 102, .5), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(127, 216, 190, .5), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

/* 卡通月亮 + 云朵装饰 */
.deco-moon {
  position: fixed; top: 6%; right: 8%; z-index: 0;
  font-size: clamp(56px, 9vw, 100px);
  filter: drop-shadow(0 0 26px rgba(255, 209, 102, .55));
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.deco-cloud {
  position: fixed; z-index: 0; font-size: clamp(40px, 7vw, 80px);
  opacity: .5; pointer-events: none; user-select: none;
  filter: drop-shadow(0 6px 14px rgba(20, 25, 60, .4));
}
.deco-cloud.c1 { top: 16%; left: 6%; animation: drift 26s linear infinite; }
.deco-cloud.c2 { top: 58%; right: 4%; animation: drift 34s linear infinite reverse; font-size: clamp(30px, 5vw, 56px); opacity: .38; }
.deco-cloud.c3 { top: 82%; left: 12%; animation: drift 40s linear infinite; font-size: clamp(26px, 4vw, 46px); opacity: .3; }
@keyframes drift {
  0% { transform: translateX(-4vw); }
  50% { transform: translateX(4vw); }
  100% { transform: translateX(-4vw); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- 密码门 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.gate-card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 44px 38px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(10, 14, 40, .55);
  animation: fadeUp .8s ease both;
}
.gate-heart { font-size: 58px; animation: spin-slow 5s ease-in-out infinite; display: inline-block; }
@keyframes spin-slow {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}
.gate-title { font-size: 26px; margin: 18px 0 10px; letter-spacing: 2px; line-height: 1.5; }
.gate-sub { font-size: 13px; color: rgba(255, 240, 220, .75); margin-bottom: 26px; line-height: 1.7; }
.gate-input {
  width: 100%; padding: 14px 18px; font-size: 17px; text-align: center;
  background: rgba(255,255,255,.1); border: 2px solid var(--glass-border);
  border-radius: 16px; color: var(--cream); outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.gate-input:focus {
  border-color: var(--star);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .2);
}
.gate-btn {
  width: 100%; margin-top: 18px; padding: 14px; font-size: 17px;
  background: linear-gradient(135deg, #ffb347, #ff8f6b);
  color: #fff; border: none; border-radius: 16px; cursor: pointer;
  letter-spacing: 3px; font-family: inherit;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 8px 26px rgba(255, 150, 90, .4);
}
.gate-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(255, 150, 90, .55); }
.gate-btn:active { transform: translateY(0) scale(.98); }
.gate-err { color: #ffc3d6; margin-top: 14px; font-size: 13px; min-height: 18px; }

/* ---------- 通用 ---------- */
.main { position: relative; z-index: 1; }

.section { max-width: 980px; margin: 0 auto; padding: 80px 22px 20px; }
.section-title {
  text-align: center; font-size: 28px; letter-spacing: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--star), var(--peach), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { text-align: center; color: rgba(255, 240, 220, .7); font-size: 14px; margin-bottom: 34px; letter-spacing: 1px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Hero:文字 + 拍立得照片堆 ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 30px 20px; position: relative;
}
.hero-inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 6vw, 80px);
  flex-wrap: wrap;
  animation: fadeUp 1.1s ease both;
}
.hero-text { flex: 1 1 380px; max-width: 560px; }

.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  background: var(--glass); border: 2px solid var(--glass-border);
  font-size: 13px; letter-spacing: 3px; color: var(--star);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(38px, 6.5vw, 58px); letter-spacing: 5px;
  margin-bottom: 14px; line-height: 1.35;
}
.hero-title .name {
  background: linear-gradient(90deg, var(--star), var(--peach));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(255, 209, 102, .35));
}
.hero-sub { color: rgba(255, 240, 220, .7); font-size: 15px; letter-spacing: 3px; margin-bottom: 40px; }

.counter {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 28px; padding: 26px 30px; max-width: 420px; margin: 0 auto 34px;
}
.counter-num {
  font-size: 56px; font-weight: 600; color: var(--star);
  text-shadow: 0 0 40px rgba(255, 209, 102, .45);
  line-height: 1.1;
}
.counter-label { font-size: 14px; color: rgba(255, 240, 220, .85); letter-spacing: 3px; margin: 6px 0 12px; }
.counter-clock {
  font-size: 20px; letter-spacing: 5px; color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.typewriter-wrap { min-height: 30px; font-size: 17px; color: rgba(255, 245, 230, .92); letter-spacing: 2px; }
.cursor { color: var(--star); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--star); font-size: 22px; text-decoration: none;
  animation: float 2s ease-in-out infinite; opacity: .85;
}
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---- 拍立得照片堆 ---- */
.photo-stack {
  flex: 1 1 320px; max-width: 420px;
  height: clamp(380px, 52vh, 520px);
  position: relative;
  perspective: 1200px;
}
.polaroid {
  position: absolute;
  background: var(--polaroid-bg);
  padding: 12px 12px 18px;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(8, 10, 34, .6), 0 3px 8px rgba(8, 10, 34, .35);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, z-index 0s;
  animation: polaroid-in .9s cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform;
}
.polaroid:nth-child(1) { top: 2%; left: 4%; transform: rotate(-7deg); z-index: 1; animation-delay: .25s; }
.polaroid:nth-child(2) { top: 16%; left: 36%; transform: rotate(5deg); z-index: 2; animation-delay: .4s; }
.polaroid:nth-child(3) { top: 38%; left: 8%; transform: rotate(3deg); z-index: 3; animation-delay: .55s; }
.polaroid:nth-child(4) { top: 52%; left: 40%; transform: rotate(-4deg); z-index: 4; animation-delay: .7s; }
@keyframes polaroid-in {
  from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(.85); }
  to { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}
.polaroid img {
  width: 100%; height: auto; display: block;
  border-radius: 4px; object-fit: cover;
  aspect-ratio: 3 / 4;
  background: #efe9dd;
}
.polaroid .pl-caption {
  text-align: center; font-size: 12px; letter-spacing: 2px;
  color: #6b5d77; margin-top: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.polaroid .pl-date {
  position: absolute; bottom: 4px; right: 14px;
  font-size: 9px; color: #b3a8c0; letter-spacing: 1px;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.06) translateY(-6px);
  z-index: 10;
  box-shadow: 0 26px 70px rgba(8, 10, 34, .75), 0 4px 10px rgba(8, 10, 34, .4);
}
.polaroid:nth-child(1):hover { transform: rotate(-1deg) scale(1.06) translateY(-6px); }
.polaroid:nth-child(2):hover { transform: rotate(1deg) scale(1.06) translateY(-6px); }
.polaroid:nth-child(3):hover { transform: rotate(1deg) scale(1.06) translateY(-6px); }
.polaroid:nth-child(4):hover { transform: rotate(-1deg) scale(1.06) translateY(-6px); }

/* ---------- 回忆放映机 ---------- */
.film-section { max-width: 860px; }
.film-slider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; position: relative;
}
.film-stage {
  position: relative; flex: 1 1 auto; max-width: 640px;
  border-radius: 26px; overflow: hidden;
  border: 2px solid var(--glass-border);
  background: rgba(10, 12, 40, .5);
  box-shadow: 0 20px 60px rgba(8, 10, 34, .55);
  cursor: zoom-in;
}
.film-stage img {
  width: 100%; display: block;
  max-height: 62vh; object-fit: contain;
  background: #141633;
  transition: opacity .5s ease;
}
.film-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 34px 18px 14px;
  background: linear-gradient(transparent, rgba(10, 12, 40, .9));
  font-size: 13px; letter-spacing: 2px;
  color: rgba(255, 245, 230, .95);
}
.film-date { color: var(--star); }
.film-count { color: rgba(255, 240, 220, .7); }
.film-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: rgba(255, 255, 255, .12);
}
.film-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--star), var(--peach));
  border-radius: 0 3px 3px 0;
  transition: width 1s linear;
}
.film-nav {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--glass); border: 2px solid var(--glass-border);
  color: var(--cream); font-size: 24px; cursor: pointer; line-height: 1;
  transition: background .3s, transform .2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.film-nav:hover { background: rgba(255, 209, 102, .35); transform: scale(1.08); }

/* ---------- 纪念日 ---------- */
.anniv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.anniv-card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 26px; padding: 26px 18px; text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
  animation: fadeUp .6s ease both;
}
.anniv-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 44px rgba(10, 14, 40, .5); }
.anniv-emoji { font-size: 36px; margin-bottom: 8px; display: inline-block; animation: floaty 4s ease-in-out infinite; }
.anniv-name { font-size: 16px; letter-spacing: 2px; color: rgba(255, 245, 230, .95); margin-bottom: 10px; }
.anniv-days { font-size: 30px; font-weight: 600; color: var(--star); text-shadow: 0 0 26px rgba(255, 209, 102, .4); }
.anniv-unit { font-size: 12px; color: rgba(255, 240, 220, .65); letter-spacing: 2px; margin-top: 4px; }
.anniv-date { font-size: 12px; color: rgba(255, 240, 220, .5); margin-top: 8px; letter-spacing: 1px; }

/* ---------- 小纸条 ---------- */
.letter-card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 28px; padding: 10px;
}
.letter-paper {
  background: linear-gradient(180deg, #fffaf0 0%, #ffefd9 100%);
  color: #4a3b55; border-radius: 22px;
  padding: 44px 36px; line-height: 2.1; font-size: 17px;
  white-space: pre-line; letter-spacing: 1px;
  box-shadow: inset 0 0 60px rgba(255, 180, 90, .12);
  min-height: 260px;
}
.letter-sign { text-align: right; padding: 18px 26px 10px; color: var(--star); letter-spacing: 2px; font-size: 14px; }

/* ---------- 生理期备忘录 ---------- */
.period-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 20px;
}
.period-predict {
  background: linear-gradient(150deg, rgba(255, 209, 102, .14), rgba(127, 216, 190, .10));
  border: 2px solid var(--glass-border);
  border-radius: 24px; padding: 30px 24px; text-align: center;
  display: flex; flex-direction: column; justify-content: center;
}
.pp-big { font-size: 21px; letter-spacing: 2px; color: var(--cream); line-height: 1.6; }
.pp-detail { margin-top: 12px; font-size: 14px; color: rgba(255, 240, 220, .8); line-height: 1.8; }
.pp-detail .hl { color: var(--star); font-weight: 600; }
.period-form {
  background: var(--glass); border: 2px solid var(--glass-border);
  border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.pf-label { font-size: 13px; color: rgba(255, 240, 220, .75); letter-spacing: 1px; margin-top: 6px; }
.pf-input {
  padding: 12px 14px; font-size: 16px; color: var(--cream);
  background: rgba(255,255,255,.1); border: 2px solid var(--glass-border);
  border-radius: 14px; outline: none; font-family: inherit;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.pf-input:focus { border-color: var(--star); box-shadow: 0 0 0 4px rgba(255, 209, 102, .2); }
.pf-input::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.6) hue-rotate(0deg); cursor: pointer; }
.pf-btn {
  margin-top: 14px; padding: 13px; font-size: 16px;
  background: linear-gradient(135deg, #ffb347, #ff8f6b);
  border: none; border-radius: 14px; color: #fff; cursor: pointer;
  font-family: inherit; letter-spacing: 3px;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 8px 26px rgba(255, 150, 90, .35);
}
.pf-btn:hover { transform: translateY(-2px); }
.period-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.period-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 2px solid var(--glass-border);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; color: rgba(255, 245, 230, .92);
}
.period-item .pi-date { color: var(--star); letter-spacing: 1px; }
.period-item .pi-del {
  background: none; border: none; color: rgba(255, 170, 200, .85);
  cursor: pointer; font-size: 14px; padding: 2px 4px;
}
.period-item .pi-del:hover { color: var(--peach); }
.period-empty { color: rgba(255, 240, 220, .55); font-size: 13px; text-align: center; width: 100%; }

/* ---------- 上传区 ---------- */
.upload-zone {
  border: 3px dashed rgba(255, 209, 102, .55);
  border-radius: 24px; padding: 34px 20px; text-align: center;
  transition: all .3s; cursor: pointer;
  background: rgba(255, 209, 102, .05);
  margin-bottom: 22px;
}
.upload-zone.dragover {
  border-color: var(--mint); background: rgba(127, 216, 190, .1);
  transform: scale(1.01);
}
.upload-icon { font-size: 40px; margin-bottom: 8px; }
.upload-text { color: rgba(255, 245, 230, .88); font-size: 15px; line-height: 1.8; }
.upload-text small { color: rgba(255, 240, 220, .6); }
.upload-btn {
  margin-top: 16px; padding: 11px 30px; font-size: 15px;
  background: linear-gradient(135deg, #ffb347, #ff8f6b);
  border: none; border-radius: 999px; color: #fff; cursor: pointer;
  font-family: inherit; letter-spacing: 2px;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 6px 20px rgba(255, 150, 90, .35);
}
.upload-btn:hover { transform: translateY(-2px) scale(1.03); }
.upload-status { text-align: center; padding: 12px; border-radius: 16px; margin-bottom: 18px; font-size: 14px; }
.upload-status.ok { background: rgba(127, 216, 190, .14); color: #a5e8d2; border: 1px solid rgba(127,216,190,.35); }
.upload-status.err { background: rgba(255, 140, 160, .14); color: #ffc3d0; border: 1px solid rgba(255,140,160,.35); }

/* ---------- 拍立得瀑布流 ---------- */
.masonry { columns: 4 220px; column-gap: 18px; }
.masonry .photo-card {
  break-inside: avoid; margin-bottom: 20px;
  background: var(--polaroid-bg);
  padding: 10px 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(8, 10, 34, .5), 0 2px 6px rgba(8, 10, 34, .3);
  position: relative; cursor: zoom-in;
  transition: transform .35s ease, box-shadow .35s ease;
  animation: fadeUp .6s ease both;
}
.masonry .photo-card::before {
  content: ""; position: absolute; top: -10px; left: 50%;
  width: 92px; height: 24px; margin-left: -46px;
  background: rgba(255, 240, 210, .75);
  transform: rotate(-2deg);
  clip-path: polygon(0 40%, 100% 30%, 96% 100%, 4% 90%);
  opacity: .55;
  pointer-events: none;
}
.masonry .photo-card img {
  width: 100%; display: block;
  border-radius: 6px; background: #efe9dd;
}
.masonry .photo-card:hover {
  transform: translateY(-6px) rotate(-1deg) scale(1.02);
  box-shadow: 0 22px 54px rgba(8, 10, 34, .68), 0 4px 10px rgba(8, 10, 34, .4);
}
.masonry .photo-card .pc-caption {
  text-align: center; font-size: 13px; letter-spacing: 1px;
  color: #6b5d77; margin-top: 10px; line-height: 1.6;
  padding: 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.masonry .photo-card .pc-date {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; letter-spacing: 1px;
  background: rgba(20, 18, 50, .5); color: rgba(255, 245, 230, .9);
  padding: 2px 8px; border-radius: 999px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.masonry .photo-card:nth-child(3n) { transform: rotate(.8deg); }
.masonry .photo-card:nth-child(3n+1) { transform: rotate(-.6deg); }
.masonry .photo-card:nth-child(3n):hover, .masonry .photo-card:nth-child(3n+1):hover { transform: translateY(-6px) rotate(0deg) scale(1.02); }

.empty-tip { text-align: center; padding: 50px 0 30px; color: rgba(255, 240, 220, .6); font-size: 15px; line-height: 2; }
.empty-tip div { font-size: 48px; margin-bottom: 10px; }

/* ---------- 治愈短句 ---------- */
.quote-card {
  text-align: center; max-width: 640px; margin: 0 auto;
  padding: 44px 30px; position: relative;
}
.quote-mark { font-size: 60px; color: var(--star); opacity: .5; line-height: .6; margin-bottom: 14px; }
.quote-text { font-size: 19px; line-height: 2; letter-spacing: 2px; color: rgba(255, 245, 230, .95); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 60px 20px 50px; color: rgba(255, 240, 220, .75); font-size: 15px; letter-spacing: 2px; }
.footer-sub { margin-top: 8px; font-size: 12px; color: rgba(255, 240, 220, .45); letter-spacing: 1px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 14, 40, .94);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.lb-stage { text-align: center; max-width: 88vw; max-height: 92vh; position: relative; }
#lb-img {
  max-width: 88vw; max-height: 76vh; border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
  object-fit: contain;
}
.lb-meta { margin-top: 14px; min-height: 40px; }
.lb-caption { font-size: 15px; color: #ffe8cf; letter-spacing: 1px; }
.lb-date { margin-top: 6px; font-size: 12px; color: var(--star); letter-spacing: 1px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
  color: #fff; font-size: 26px; cursor: pointer; line-height: 1;
  transition: background .3s;
}
.lb-nav:hover { background: rgba(255, 209, 102, .4); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: #fff; font-size: 26px; cursor: pointer;
  padding: 8px; opacity: .8; transition: opacity .3s, transform .3s;
}
.lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lb-delete {
  margin-top: 12px; padding: 8px 22px; font-size: 13px;
  background: rgba(255, 140, 160, .2); border: 1px solid rgba(255, 140, 160, .5);
  color: #ffc3d0; border-radius: 999px; cursor: pointer; font-family: inherit;
  transition: background .3s;
}
.lb-delete:hover { background: rgba(255, 140, 160, .4); }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 70px; }
  .hero-inner { flex-direction: column; gap: 40px; }
  .photo-stack { flex-basis: auto; width: min(88vw, 340px); height: clamp(340px, 60vw, 430px); }
  .film-nav { display: none; }
  .film-stage img { max-height: 52vh; }
  .letter-paper { padding: 30px 22px; font-size: 15px; }
  .hero-title { letter-spacing: 3px; }
  .counter-num { font-size: 44px; }
  .lb-nav { width: 40px; height: 40px; font-size: 20px; }
  .period-main { grid-template-columns: 1fr; }
  .anniv-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .section { padding: 56px 16px 10px; }
  .section-title { font-size: 24px; letter-spacing: 2px; }
  .gate-card { padding: 36px 24px; border-radius: 26px; }
  .gate-input, .gate-btn { font-size: 16px; }
  .lb-stage { width: 100vw; }
  #lb-img { max-width: 94vw; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-close { top: 10px; right: 10px; }
  .deco-moon { top: 4%; right: 6%; }
}
