:root {
  color-scheme: light;
  --ink: #3b2927;
  --muted: #7f6a63;
  --paper: #fffaf0;
  --cream: #fff2df;
  --rose: #ff91a8;
  --rose-deep: #a9575a;
  --mint: #9fe0d2;
  --mint-deep: #328d80;
  --butter: #ffd978;
  --sky: #a9d9f7;
  --bubu-brown: #dba98b;
  --cocoa: #4b241f;
  --line: rgba(75, 36, 31, 0.15);
  --card-radius: 8px;
  --control-radius: 12px;
  --shadow:
    0 4px 12px rgba(75, 36, 31, 0.06),
    0 22px 70px rgba(75, 36, 31, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(246, 255, 249, 0.9) 42%, rgba(255, 244, 247, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(75, 36, 31, 0.035) 0 1px, transparent 1px 18px),
    #fff7ea;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 217, 120, 0.13), transparent 24%, rgba(159, 224, 210, 0.16) 78%, transparent),
    repeating-linear-gradient(90deg, transparent 0 5.6rem, rgba(255, 145, 168, 0.045) 5.6rem 5.75rem);
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  /* 婢х偛濮為幐澶愭尦瀵邦喕姘︽禍鎺曠箖鎼?*/
  transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

button:active,
.primary-link:active,
.ghost-link:active {
  transform: scale(0.96);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 24;
  overflow: hidden;
}

.bubu-floating-wall {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bubu-floating-wall img {
  position: absolute;
  width: clamp(4.8rem, 8vw, 7.2rem);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.2;
  filter: drop-shadow(0 14px 18px rgba(75, 36, 31, 0.12));
  animation: bubuDrift 13s ease-in-out infinite;
}

.bubu-floating-wall img:nth-child(1) {
  top: 8.5rem;
  left: max(0.5rem, 3vw);
  transform: rotate(-10deg);
}

.bubu-floating-wall img:nth-child(2) {
  top: 11rem;
  right: max(0.5rem, 5vw);
  width: clamp(4rem, 6vw, 5.6rem);
  animation-delay: -2.5s;
}

.bubu-floating-wall img:nth-child(3) {
  top: 44vh;
  left: 1.5vw;
  width: clamp(5.4rem, 9vw, 8rem);
  transform: rotate(8deg);
  animation-delay: -5s;
}

.bubu-floating-wall img:nth-child(4) {
  right: 2vw;
  bottom: 24vh;
  animation-delay: -7s;
}

.bubu-floating-wall img:nth-child(5) {
  left: 12vw;
  bottom: 7vh;
  width: clamp(3.8rem, 5vw, 5rem);
  animation-delay: -9s;
}

.float-heart {
  position: absolute;
  bottom: -2rem;
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(239, 138, 154, 0.72);
  transform: rotate(45deg);
  animation: floatUp 6.5s linear forwards;
}

.float-heart::before,
.float-heart::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: inherit;
}

.float-heart::before {
  left: -0.35rem;
}

.float-heart::after {
  top: -0.35rem;
}

/* 娴兼ê瀵叉妯挎儰閸斻劎鏁鹃敍灞藉閸忋儲铆閸氭垵浜曞顔芥啘閸?*/
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(45deg) scale(0.6);
  }
  15% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--sway, 0) * 1px), -110vh) rotate(45deg) scale(1.2);
  }
}

@keyframes bubuDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -1rem;
  }
}

@keyframes bubuFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.7rem;
  }
}

@keyframes bubuWiggle {
  0%,
  100% {
    rotate: 0deg;
    scale: 1;
  }
  35% {
    rotate: -5deg;
    scale: 1.05;
  }
  70% {
    rotate: 5deg;
    scale: 1.04;
  }
}

.lock-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.96), rgba(255, 232, 207, 0.65)),
    var(--paper);
  z-index: 30;
}

.lock-screen.is-unlocked {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 700ms ease;
  pointer-events: none;
}

.surprise-intro {
  position: fixed;
  inset: 0;
  z-index: 28;
  width: 100vw;
  width: 100dvw;
  height: 100svh;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  contain: strict;
}

.surprise-intro[hidden] {
  display: none !important;
}

.love-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  touch-action: none;
}

.surprise-intro.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 650ms ease, transform 650ms ease;
  pointer-events: none;
}


.surprise-intro.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 650ms ease, transform 650ms ease;
  pointer-events: none;
}

.is-surprise-open {
  overflow: hidden;
}


.lock-image,
.hero-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lock-shade {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.68), rgba(255, 250, 240, 0.18)),
    linear-gradient(180deg, rgba(75, 36, 31, 0.12), rgba(159, 224, 210, 0.12));
  opacity: 0.4;
}

.unlock-panel {
  position: relative;
  width: min(29rem, calc(100% - 2rem));
  padding: 2rem;
  margin-right: auto;
  margin-left: max(1rem, 8vw);
  border: 1px solid rgba(75, 36, 31, 0.09);
  border-radius: var(--card-radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.9), rgba(255, 241, 221, 0.82)),
    rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.unlock-panel h1,
.hero-content h1,
.section-head h2,
.reason-copy h2,
.letter-paper h2 {
  margin: 0;
  /* 瀵洖鍙嗛悳棰佸敩鐞涱剛鍤庢担?*/
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.unlock-panel h1 {
  font-size: 4.4rem;
  line-height: 0.95;
}

.lock-copy {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.password-row input {
  min-width: 0;
  height: 3.1rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-row input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(239, 138, 154, 0.18);
}

.password-row button,
.reason-card button,
.primary-link,
.ghost-link {
  min-height: 3.1rem;
  border: 0;
  border-radius: var(--control-radius);
  padding: 0 1.15rem;
  background: var(--cocoa);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(75, 36, 31, 0.16);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lock-error {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: var(--rose-deep);
  font-size: 0.9rem;
}

.site {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 4.2rem;
  padding: 0 clamp(1rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(75, 36, 31, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.86), rgba(246, 255, 249, 0.84)),
    rgba(255, 250, 240, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: linear-gradient(135deg, #fff, #fff0d2);
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(75, 36, 31, 0.08);
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar nav a {
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.topbar nav a:hover {
  color: var(--ink);
}

.icon-button {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: #fffef9;
  color: var(--ink);
  font-size: 1.1rem;
}

.icon-button[aria-pressed="true"] {
  background: var(--mint);
  color: #123f36;
}

.hero {
  position: relative;
  min-height: calc(100svh - 8rem);
  display: grid;
  align-items: center;
  padding: 5rem clamp(1rem, 6vw, 5rem);
  isolation: isolate;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.8) 40%, rgba(255, 250, 240, 0.18) 100%),
    linear-gradient(180deg, rgba(159, 224, 210, 0.08) 0%, rgba(255, 242, 223, 0.92) 100%);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(42rem, 100%);
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 0.98;
  max-width: 11ch;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.3rem 0 0;
  color: #695750;
  font-size: 1.08rem;
  line-height: 1.9;
}

.bubu-hero-scene {
  position: absolute;
  right: clamp(1rem, 7vw, 6rem);
  bottom: clamp(1rem, 6vw, 4rem);
  z-index: 1;
  width: min(32vw, 22rem);
  min-width: 14rem;
  aspect-ratio: 1;
  pointer-events: none;
}

.bubu-hero-pair,
.bubu-hero-mini {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(75, 36, 31, 0.23));
}

.bubu-hero-pair {
  inset: auto 0 0 auto;
  width: 82%;
  animation: bubuFloat 5.5s ease-in-out infinite;
}

.bubu-hero-mini {
  left: 0;
  bottom: 13%;
  width: 34%;
  rotate: -8deg;
  animation: bubuFloat 6.2s ease-in-out -1.8s infinite;
}

.bubu-note {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 3rem;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(75, 36, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.86);
  color: var(--cocoa);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(75, 36, 31, 0.12);
}

.bubu-note-one {
  top: 4%;
  left: 14%;
  background: rgba(255, 217, 120, 0.9);
}

.bubu-note-two {
  top: 22%;
  right: 0;
  background: rgba(159, 224, 210, 0.92);
}

.bubu-note-three {
  right: 22%;
  bottom: 6%;
  background: rgba(255, 145, 168, 0.88);
  color: white;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-link,
.ghost-link {
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
}

.ghost-link {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: var(--line);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(70rem, calc(100% - 2rem));
  margin: -2.7rem auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 16px 50px rgba(75, 36, 31, 0.1);
}

.stats-strip article {
  min-height: 7rem;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.95), rgba(255, 242, 223, 0.88)),
    rgba(255, 250, 240, 0.92);
}

.stats-strip span {
  display: block;
  color: var(--cocoa);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.stats-strip p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.bubu-sticker-wall {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.35rem, 1vw, 0.9rem);
  width: min(70rem, calc(100% - 2rem));
  margin: 1.4rem auto -1.8rem;
  padding: 0.8rem clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(75, 36, 31, 0.1);
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 245, 220, 0.66), rgba(238, 255, 250, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 2.9rem, rgba(255, 145, 168, 0.08) 2.9rem 3rem);
  box-shadow: 0 18px 42px rgba(75, 36, 31, 0.08);
  overflow: hidden;
}

.bubu-sticker-wall img {
  width: 100%;
  max-height: 6.4rem;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(75, 36, 31, 0.13));
  transform-origin: 50% 82%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.bubu-sticker-wall img:nth-child(odd) {
  transform: rotate(-5deg);
}

.bubu-sticker-wall img:nth-child(even) {
  transform: rotate(5deg);
}

.bubu-sticker-wall img:nth-child(3),
.bubu-sticker-wall img:nth-child(6) {
  max-height: 7.1rem;
}

.bubu-sticker-wall:hover img {
  filter: drop-shadow(0 16px 18px rgba(75, 36, 31, 0.18));
}

.bubu-sticker-wall:hover img:nth-child(odd) {
  transform: rotate(-2deg) translateY(-0.25rem);
}

.bubu-sticker-wall:hover img:nth-child(even) {
  transform: rotate(2deg) translateY(-0.25rem);
}

.section,
.split-section,
.reason-section,
.letter-band {
  position: relative;
  z-index: 2;
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 32rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2,
.reason-copy h2,
.letter-paper h2 {
  font-size: 2.6rem;
  line-height: 1.1;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.timeline-toc {
  position: sticky;
  top: 5.2rem;
  max-height: calc(100svh - 6.4rem);
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid rgba(75, 36, 31, 0.11);
  border-radius: var(--card-radius);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 16px 46px rgba(75, 36, 31, 0.07);
  backdrop-filter: blur(18px);
}

.timeline-toc-title {
  margin: 0 0 0.65rem;
  color: var(--rose-deep);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline-toc-list {
  display: grid;
  gap: 0.45rem;
}

.timeline-toc-link {
  display: grid;
  gap: 0.15rem;
  min-height: 3.1rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  transition: all 0.2s ease;
}

.timeline-toc-link:hover,
.timeline-toc-link[aria-current] {
  border-color: transparent;
  background: var(--cocoa);
  color: white;
}

.timeline-toc-date {
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.timeline-toc-link[aria-current] .timeline-toc-date,
.timeline-toc-link:hover .timeline-toc-date {
  color: rgba(255, 255, 255, 0.72);
}

.timeline-toc-text {
  overflow: hidden;
  display: -webkit-box;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8.55rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 7.2rem 1rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  scroll-margin-top: 5.8rem;
}

.timeline-date {
  min-height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: #fffef9;
  color: var(--mint-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.timeline-dot {
  width: 0.82rem;
  height: 0.82rem;
  margin-top: 0.72rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--line);
  z-index: 1;
}

.timeline-card,
.place-card,
.reason-card,
.letter-paper {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 36, 31, 0.11);
  border-radius: var(--card-radius);
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(255, 245, 230, 0.86)),
    rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 46px rgba(75, 36, 31, 0.09);
  backdrop-filter: blur(8px);
}

.timeline-card > *,
.place-card > *,
.reason-card > *,
.letter-paper > * {
  position: relative;
  z-index: 1;
}

.timeline-card {
  min-height: 7.4rem;
  padding: 1.5rem;
  padding-right: clamp(1.5rem, 18%, 8rem);
}

.timeline-card::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  bottom: 0.3rem;
  width: clamp(4.4rem, 12vw, 7rem);
  aspect-ratio: 1;
  background: var(--card-sticker-image, none) center / contain no-repeat;
  opacity: 0.23;
  filter: saturate(0.95);
}

.timeline-card h3,
.place-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.timeline-card p,
.place-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.timeline-location {
  margin-top: 0.35rem !important;
  color: var(--rose-deep) !important;
  font-weight: 800;
}

.timeline-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

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

.timeline-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--control-radius);
  background: transparent;
}

.timeline-photo-button:focus-visible {
  outline: 3px solid rgba(198, 79, 107, 0.46);
  outline-offset: 3px;
}

.timeline-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--control-radius);
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(75, 36, 31, 0.09);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.4s ease;
}

.timeline-photo-button:hover .timeline-photo {
  transform: scale(1.03);
  box-shadow: 0 18px 42px rgba(75, 36, 31, 0.16);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(31, 24, 29, 0.78);
  backdrop-filter: blur(16px);
}

.image-lightbox img {
  max-width: min(100%, 82rem);
  max-height: 86svh;
  border-radius: var(--card-radius);
  object-fit: contain;
  background: rgba(255, 250, 246, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.image-lightbox-close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--control-radius);
  background: rgba(255, 250, 246, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.is-lightbox-open {
  overflow: hidden;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.place-card {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  overflow: hidden;
  position: relative;
}

.place-card::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  width: 8.4rem;
  height: 8.4rem;
  opacity: 0.22;
  background: var(--card-sticker-image, none) center / contain no-repeat;
  filter: saturate(0.92);
}

.accent-mint {
  color: var(--mint-deep);
}

.accent-rose {
  color: var(--rose-deep);
}

.place-date {
  margin: 0 0 0.45rem;
  color: currentColor;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-cloud span {
  display: inline-grid;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1.2rem;
  background: linear-gradient(180deg, #fffef9, #fff2df);
  color: #5f4b45;
  box-shadow: 0 8px 24px rgba(75, 36, 31, 0.07);
}

.reason-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.reason-card {
  min-height: 17rem;
  display: grid;
  align-content: space-between;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 254, 249, 0.92), rgba(236, 255, 249, 0.88)),
    #fff;
}

.reason-card::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  width: clamp(6.4rem, 18vw, 10rem);
  aspect-ratio: 1;
  background: var(--sticker-reason-image, none) center / contain no-repeat;
  opacity: 0.18;
}

.reason-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-size: 2rem;
  line-height: 1.45;
}

.reason-card button {
  justify-self: start;
  margin-top: 1.5rem;
}

.letter-band {
  padding-bottom: 6rem;
}

.letter-paper {
  padding: 2.5rem 2rem;
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.96), rgba(255, 245, 230, 0.92)),
    #fff;
}

.letter-paper::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  width: clamp(4.8rem, 12vw, 7.5rem);
  aspect-ratio: 1;
  background: var(--sticker-letter-image, none) center / contain no-repeat;
  opacity: 0.2;
}

.letter-paper p {
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
  line-height: 2.2;
  color: #5f4b45;
}

.signature {
  color: var(--rose-deep) !important;
  font-weight: 800;
  margin-top: 2rem !important;
}

.bubu-pet {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  z-index: 23;
  width: clamp(4.2rem, 5vw, 5rem);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cocoa);
  filter: drop-shadow(0 18px 20px rgba(75, 36, 31, 0.18));
  animation: bubuFloat 5.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: scale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease, rotate 0.25s ease;
}

.bubu-pet:hover {
  scale: 1.06;
  filter: drop-shadow(0 22px 24px rgba(75, 36, 31, 0.24));
}

.bubu-pet:active,
.bubu-pet.is-dragging {
  cursor: grabbing;
  scale: 1.12;
  filter: drop-shadow(0 28px 32px rgba(75, 36, 31, 0.32));
  animation-play-state: paused;
}

.bubu-pet img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.bubu-pet-bubble {
  position: absolute;
  right: 82%;
  bottom: 64%;
  width: max-content;
  max-width: min(12rem, calc(100vw - 9rem));
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(75, 36, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.93);
  box-shadow: 0 12px 24px rgba(75, 36, 31, 0.12);
  color: var(--cocoa);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  translate: 0 0.35rem;
  transition: opacity 0.2s ease, translate 0.2s ease;
  pointer-events: none;
}

.bubu-pet:hover .bubu-pet-bubble,
.bubu-pet:focus-visible .bubu-pet-bubble,
.bubu-pet.is-chatting .bubu-pet-bubble {
  opacity: 1;
  translate: 0 0;
}

.bubu-pet.is-happy {
  animation: bubuWiggle 0.55s ease-in-out;
}

.bubu-pet:focus-visible {
  outline: 3px solid rgba(255, 145, 168, 0.48);
  outline-offset: 0.2rem;
  border-radius: var(--control-radius);
}

/* --- 濠婃艾濮╁ǎ鈥冲弳閸斻劍鏅ラ惃鍕閸?--- */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-element.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {

  .unlock-panel {
    margin: 0 1rem;
    padding: 1.35rem;
  }

  .unlock-panel h1,
  .hero-content h1 {
    font-size: 3.25rem;
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    height: auto;
    min-height: 4rem;
    padding: 0.7rem 1rem;
  }

  .topbar nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero {
    min-height: calc(100svh - 9rem);
    padding: 4rem 1rem 9rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.82) 55%, rgba(255, 250, 240, 0.22) 100%),
      linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(159, 224, 210, 0.2));
    opacity: 0.4;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .bubu-hero-scene {
    right: 0.4rem;
    bottom: 0.4rem;
    width: min(54vw, 14rem);
    min-width: 10.5rem;
    opacity: 0.92;
  }

  .bubu-note {
    min-width: 2.5rem;
    min-height: 1.85rem;
    padding: 0 0.55rem;
    font-size: 0.78rem;
  }

  .stats-strip,
  .place-grid,
  .reason-section,
  .section-head {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: -1.4rem;
  }

  .bubu-sticker-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: -1rem;
  }

  .bubu-sticker-wall img:nth-child(n + 5) {
    display: none;
  }

  .stats-strip article {
    min-height: 5.7rem;
  }

  .section,
  .split-section,
  .reason-section,
  .letter-band {
    padding-top: 4.5rem;
  }

  .section-head h2,
  .reason-copy h2,
  .letter-paper h2 {
    font-size: 2.15rem;
  }

  .timeline-list::before {
    left: 0.39rem;
  }

  .timeline-layout {
    grid-template-columns: 1fr;
  }

  .timeline-toc {
    z-index: 11;
    top: 7.2rem;
    max-height: none;
    margin: 0 -1rem;
    padding: 0.65rem 1rem;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .timeline-toc-title {
    display: none;
  }

  .timeline-toc-list {
    display: flex;
    gap: 0.55rem;
    width: max-content;
    min-width: 100%;
  }

  .timeline-toc-link {
    width: 9.6rem;
    min-height: 3rem;
    flex: 0 0 auto;
  }

  .timeline-item {
    grid-template-columns: 1rem minmax(0, 1fr);
    scroll-margin-top: 11rem;
  }

  .timeline-date {
    grid-column: 2;
    justify-self: start;
    min-width: 7rem;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-card {
    grid-column: 2;
  }

  .reason-card p {
    font-size: 1.55rem;
  }

  .bubu-floating-wall img {
    opacity: 0.12;
  }
}

@media (max-width: 520px) {
  .password-row {
    grid-template-columns: 1fr;
  }

  .password-row button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
  }

  .timeline-card {
    padding-right: 1.2rem;
  }

  .timeline-card::after,
  .place-card::after,
  .reason-card::after,
  .letter-paper::after {
    opacity: 0.12;
  }

  .bubu-pet {
    width: 4.2rem;
    outline: none;
    box-shadow: none;
    filter: none;
  }

  .bubu-pet-bubble {
    right: 66%;
    max-width: calc(100vw - 7rem);
    font-size: 0.78rem;
    box-shadow: none;
  }

  .bubu-pet:focus,
  .bubu-pet:focus-visible {
    outline: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
