/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: 'palt', 'liga', 'kern';
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 215, 232, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

/* 鈥斺€?Editorial typography baseline 鈥斺€?*/
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: var(--leading-tight);
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { margin: 0 0 1em; }
small { font-size: var(--text-sm); color: var(--ink-soft); }

/* 鈥斺€?Section eyebrow (number + label) 鈥斺€?*/
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rose-deep);
  transform: translateY(-4px);
}

/* 鈥斺€?Hairline divider 鈥斺€?*/
.hairline {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--surface-line) 18%, var(--surface-line) 82%, transparent);
  margin: var(--sp-7) auto;
  max-width: 320px;
}

::selection { background: var(--rose); color: var(--cream); }

/* ============================================
   Fonts（本地自托管 · 英文书写艺术体）
   ============================================ */
@font-face {
  font-family: 'Great Vibes';
  src: url('../assets/fonts/great-vibes-latin-400-normal.woff2') format('woff2'),
       url('../assets/fonts/great-vibes-latin-400-normal.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   Design Tokens
   ============================================ */
:root {
  /* 鈥斺€?鏍稿績鍝佺墝鑹诧細鐜懓 + 棣欐 + 鏆传 鈥斺€?*/
  --rose:           #ff7a9c;
  --rose-deep:      #e85a82;
  --rose-darker:    #c03b66;
  --rose-soft:      #ffd0dc;
  --rose-glow:      rgba(255, 122, 156, 0.20);
  --peach:          #ffd5b8;
  --cream:          #fff8f0;
  --gold:           #d4af37;
  --gold-soft:      #e9d5a0;
  --plum:           #4a3868;
  --plum-deep:      #2a1f4a;

  /* 鈥斺€?鏂囧瓧鑹蹭笁妗?鈥斺€?*/
  --ink:            #2c1d2e;
  --ink-soft:       #6a4f6a;
  --ink-mute:       #9a8090;

  /* 鈥斺€?琛ㄩ潰锛堢幓鐠?/ 鍗＄墖锛?鈥斺€?*/
  --surface:           rgba(255, 255, 255, 0.70);
  --surface-strong:    rgba(255, 255, 255, 0.92);
  --surface-line:      rgba(232, 90, 130, 0.16);
  --surface-line-soft: rgba(74, 56, 104, 0.08);

  /* 鈥斺€?闃村奖绯荤粺 鈥斺€?*/
  --shadow-sm:    0 2px 8px -2px rgba(74, 56, 104, 0.10);
  --shadow:       0 12px 32px -14px rgba(232, 90, 130, 0.22);
  --shadow-lg:    0 24px 64px -16px rgba(74, 56, 104, 0.20);
  --shadow-hover: 0 20px 48px -16px rgba(232, 90, 130, 0.30);
  --shadow-glow:  0 0 32px var(--rose-glow);

  /* 鈥斺€?瀛楀彿灏哄害锛?.250 闊抽樁锛?鈥斺€?*/
  --text-2xs:  11px;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  48px;
  --text-4xl:  64px;

  /* 鈥斺€?闂磋窛鏍呮牸 鈥斺€?*/
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;

  /* 鈥斺€?鍦嗚 鈥斺€?*/
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* 鈥斺€?瀛椾綋瀹舵棌 鈥斺€?*/
  --font-display:     "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-body:        "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-handwriting: "Ma Shan Zheng", "Dancing Script", cursive;
  --font-script:      "Great Vibes", "Snell Roundhand", "Savoye LET", "Segoe Script", "Brush Script MT", cursive;

  /* 鈥斺€?琛岄珮 鈥斺€?*/
  --leading-tight:   1.18;
  --leading-snug:    1.4;
  --leading-normal:  1.65;
  --leading-loose:   1.85;

  /* 鈥斺€?鍔ㄦ晥 鈥斺€?*/
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);  /* v3y: Emil Kowalski strong ease-out */
  --ease-in-out: cubic-bezier(0.4, 0, 0.4, 1);
  --dur-fast:    150ms;
  --dur:         280ms;
  --dur-slow:    560ms;

  /* 鈥斺€?鍐呭瀹藉害 鈥斺€?*/
  --content-max:     1200px;
  --section-padding: clamp(64px, 10vw, 120px);
}
/* ============================================
   v3y: Emil Kowalski — universal press feedback
   所有 clickable 元素按一下都有"被按下去"的物理感
   只动 transform (GPU 加速)，不打断 layout/paint
   hover 状态只对 fine pointer 生效（避免触屏误触）
   ============================================ */
@media (hover: hover) and (pointer: fine) {
  /* 通用：button-like 元素自带 press feedback */
  button,
  a.cover-cta,
  .btn-primary,
  .btn-ghost,
  .auth-submit,
  .auth-toggle,
  .reason-tag,
  .wish-item,
  .wish-check,
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next,
  .season-picker button,
  .modal-box button,
  .t-del,
  .photo-del,
  .filter-btn,
  .sig-clear,
  .sig-save,
  .night-toggle,
  .flipbook-btn {
    transition: transform 160ms var(--ease-out);
  }
  button:active,
  a.cover-cta:active,
  .btn-primary:active,
  .btn-ghost:active,
  .auth-submit:active,
  .auth-toggle:active,
  .reason-tag:active,
  .wish-item:active,
  .wish-check:active,
  .lightbox-close:active,
  .lightbox-prev:active,
  .lightbox-next:active,
  .season-picker button:active,
  .modal-box button:active,
  .t-del:active,
  .photo-del:active,
  .filter-btn:active,
  .sig-clear:active,
  .sig-save:active,
  .night-toggle:active,
  .flipbook-btn:active {
    transform: scale(0.97);
  }
  /* 已经有 :hover lift 的元素，:active 覆盖 hover 的 transform */
  .reason-tag:hover:active {
    transform: scale(0.97);
  }
}

.loader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4);
  z-index: 9999;
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-heart { display: none; }
.loader-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.loader-text::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rose-deep);
  vertical-align: middle;
  margin-right: 14px;
}
.loader-text::after {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rose-deep);
  vertical-align: middle;
  margin-left: 14px;
}

/* =============== Backgrounds =============== */
#starfield { position: fixed; inset:0; z-index:-2; pointer-events:none; opacity: 0; }
.petals { position: fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.petal {
  position:absolute; top:-30px;
  width:18px; height:18px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffb3c8);
  border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
  opacity:.8;
  filter: drop-shadow(0 2px 4px rgba(255,122,156,.3));
  animation: petal-fall linear forwards;
}
@keyframes petal-fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}

/* =============== Nav =============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 250, 247, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-line-soft);
  transition: transform var(--dur) var(--ease-out);
}
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--rose), var(--rose-deep), var(--plum));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1;
}
@supports (animation-timeline: scroll()) {
  .nav::before {
    animation: scroll-progress linear;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress {
    to { transform: scaleX(1); }
  }
}
.nav.hidden-y { transform: translateY(-100%); }
.nav-inner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255,251,247,0.78), rgba(255,251,247,0.55));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 0 rgba(201,138,130,0.15), 0 8px 24px -16px rgba(60,40,40,0.18);
  max-width: 100%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(28px, 5vw);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-top: 1px solid var(--rose-deep);
  border-bottom: 1px solid var(--rose-deep);
  position: relative;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  width: 86px;
  height: 22px;
}
.nav-logo::before {
  content: "VOLUME I";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0;
  color: var(--ink);
  background: none;
  -webkit-mask: none;
  mask: none;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
}
.nav-links { display: flex; gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.04em;
  transition: color var(--dur) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--rose-deep);
  transition: width var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); background: rgba(201,138,130,0.06); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active {
  /* Apple Liquid Glass active chip */
  padding: 6px 12px;
  margin: -6px -10px;
  background: linear-gradient(135deg, rgba(255,253,249,0.78), rgba(252,247,240,0.6));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(201,138,130,0.4);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px -3px rgba(201,138,130,0.2);
}
.nav-links a.active::after { display: none; } /* hide old hairline under-underline since chip is now active */
body:has(#story:target) .nav-links a[href="#story"],
body:has(#counter:target) .nav-links a[href="#counter"],
body:has(#timeline:target) .nav-links a[href="#timeline"],
body:has(#gallery:target) .nav-links a[href="#gallery"],
body:has(#letters:target) .nav-links a[href="#letters"],
body:has(#reasons:target) .nav-links a[href="#reasons"],
body:has(#wishes:target) .nav-links a[href="#wishes"],
body:has(#capsule:target) .nav-links a[href="#capsule"],
body:has(#map:target) .nav-links a[href="#map"],
body:has(#diary:target) .nav-links a[href="#diary"],
body:has(#videos:target) .nav-links a[href="#videos"],
body:has(#flipbook:target) .nav-links a[href="#flipbook"] {
  color: var(--rose-deep);
}
.nav-links a.active::after,
body:has(#story:target) .nav-links a[href="#story"]::after,
body:has(#counter:target) .nav-links a[href="#counter"]::after,
body:has(#timeline:target) .nav-links a[href="#timeline"]::after,
body:has(#gallery:target) .nav-links a[href="#gallery"]::after,
body:has(#letters:target) .nav-links a[href="#letters"]::after,
body:has(#reasons:target) .nav-links a[href="#reasons"]::after,
body:has(#wishes:target) .nav-links a[href="#wishes"]::after,
body:has(#capsule:target) .nav-links a[href="#capsule"]::after,
body:has(#map:target) .nav-links a[href="#map"]::after,
body:has(#diary:target) .nav-links a[href="#diary"]::after,
body:has(#videos:target) .nav-links a[href="#videos"]::after,
body:has(#flipbook:target) .nav-links a[href="#flipbook"]::after {
  width: 100%;
  background: var(--rose-deep);
}
.night-toggle {
  background: none;
  border: 1px solid var(--surface-line);
  width: 36px; height: 36px;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
  color: var(--ink-soft);
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.night-toggle:hover { border-color: var(--rose-deep); color: var(--ink); }
.night-toggle::before {
  content: "";
  text-indent: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -4px -2px 0 0 var(--cream);
}

/* =============== Common Section =============== */
.section {
  padding: clamp(96px, 14vw, 160px) 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.25, 1, 0.5, 1), transform 700ms cubic-bezier(0.25, 1, 0.5, 1);
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}
@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --num-h {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --num-m {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --num-s {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
.counter-card .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1), color 320ms var(--ease-out);
  display: inline-block;
}
.counter-card .num-days { counter-reset: num var(--num); }
.counter-card .num-days::after { content: counter(num); }
.counter-card .num-hours { counter-reset: num var(--num-h); }
.counter-card .num-hours::after { content: counter(num); }
.counter-card:hover .num { transform: translateY(-1px) scale(1.02); color: var(--rose-deep); }
@media (prefers-reduced-motion: reduce) {
  .section { opacity: 1; transform: none; transition: none; }
}
.section + .section::before {
  /* 2026-10-10「一页一景」后废弃：滚动时代的章间分隔浮标
     （会在页顶 56px 处随机冒出、压住标题卡；章号现在只活在六张标题卡内） */
  content: "✦  CHAP. " counter(chapter) "  ✦";
  display: none !important;
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  color: var(--rose-deep);
  opacity: 0.5;
  white-space: nowrap;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(255,253,249,0.7), rgba(252,247,240,0.55));
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.section-title {
  text-align: left;
  margin-bottom: clamp(48px, 8vw, 96px);
  max-width: 720px;
  /* Apple Liquid Glass hero block */
  padding: 28px 32px 24px;
  background: linear-gradient(180deg, rgba(255,253,249,0.78), rgba(252,247,240,0.62));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 28px -10px rgba(60,40,40,0.1);
  border-radius: 4px;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-title .zh {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--sp-3);
}
.section-title .en {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--ink);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 10px;
  padding: 4px 12px;
  /* Apple Liquid Glass chip */
  background: linear-gradient(135deg, rgba(255,251,247,0.7), rgba(250,232,218,0.45));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.section-sub {
  text-align: left;
  color: var(--ink-soft);
  max-width: 640px;
  margin: calc(-1 * var(--sp-7)) 0 var(--sp-7);
  font-size: var(--text-base);
  line-height: 1.85;
}
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub code {
  background: rgba(232, 90, 130, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 0.95em;
}

/* =============== Cover =============== */
.cover {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  padding: clamp(80px, 14vh, 160px) 28px clamp(60px, 10vh, 120px);
  text-align: center;
}
.cover-content {
  max-width: 1020px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.cover-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.cover-eyebrow::before, .cover-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rose-deep);
  vertical-align: middle;
  margin: 0 14px;
  transform: translateY(-2px);
}
.cover-names {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  margin: var(--sp-3) 0 var(--sp-2);
}
.cover-names .name {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.15;
  padding: 0.06em 0.04em;
}
.cover-names .amp {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--rose-deep);
}
.cover-meta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: var(--sp-4);
  padding: 6px 10px;
  /* 无框：日期直接融入夜色/云海 */
}
.cover-meta .cover-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(60, 40, 40, 0.3);
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-6);
  padding: 18px 36px;
  /* 去框：完全融入背景（反馈由 GSAP 柔光 / 涟漪承担，见 motion.css §CTA） */
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(60, 40, 40, 0.32);
  position: relative;
}
/* HTML already renders the arrow (➜). Drop duplicate CSS arrows. */
.cover-cta::before, .cover-cta::after { content: none; display: none; }

.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 28px;
  background: var(--ink-mute);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}

/* =============== Counter =============== */
.counter-section {
  padding: clamp(80px, 12vw, 140px) 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.counter-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 880px;
  margin: 0 auto;
}
.counter-card {
  position: relative;
  padding: var(--sp-7) var(--sp-4) var(--sp-5);
  /* Apple Liquid Glass number card */
  background: linear-gradient(180deg, rgba(255,253,249,0.85), rgba(252,247,240,0.7));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 20px -8px rgba(60,40,40,0.12);
  border-radius: 4px;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 280ms var(--ease-out);
}
.counter-card:hover {
  transform: translateY(-2px);
  border-color: var(--rose-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px -8px rgba(201,138,130,0.22);
}
.counter-card::after {
  content: "";
  position: absolute;
  left: 50%; top: -1px;
  width: 24px; height: 1px;
  background: var(--rose-deep);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.counter-card:hover::after { opacity: 1; }
/* 鏁板瓧鍚庝笅鍒掔嚎(甯搁┗ 1px rose-deep) */
.counter-card::before {
  content: "";
  position: absolute;
  left: 50%; top: -1px;
  width: 6px; height: 1px;
  background: var(--rose-deep);
  transform: translateX(-50%);
  opacity: 0.5;
}
.counter-card .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.5, 1), color 320ms var(--ease-out);
  display: inline-block;
}
.counter-card:hover .num { transform: translateY(-1px) scale(1.02); color: var(--rose-deep); }
.counter-card .lbl {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.counter-quote {
  margin-top: clamp(48px, 8vw, 96px);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.7;
  color: var(--ink-soft);
  border: none;
  padding: 0;
}
.counter-quote::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--rose-deep);
  margin: 0 auto var(--sp-4);
}

/* =============== Story =============== */
.story-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(40px, 6vw, 72px);
}
.story-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--surface-line);
  padding: var(--sp-5) 0 0;
  transition: border-color var(--dur) var(--ease-out), background 280ms var(--ease-out), transform 320ms var(--ease-out);
  border-radius: 4px;
  position: relative;
}
/* 2026-10-10「不再以信笺为风格」：编号水印退役——卡片交给星空与页面主题 */
.story-card::before {
  content: none;
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--rose-deep);
  opacity: 0.15;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: opacity 280ms var(--ease-out);
}
.story-card:hover::before { opacity: 0.4; }
.story-card:hover {
  border-top-color: var(--rose-deep);
  background: linear-gradient(180deg, rgba(255,253,249,0.6), rgba(252,247,240,0.4));
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transform: translateY(-2px);
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  box-shadow: 0 8px 24px -8px rgba(201,138,130,0.18);
}
.story-icon {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-bottom: var(--sp-3);
}
.story-star {
  display: inline-flex;
  color: rgba(255, 214, 224, 0.92);
  filter: drop-shadow(0 0 9px rgba(255, 214, 224, 0.4));
  margin-bottom: var(--sp-3);
}
.story-star svg { display: block; }
.story-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}
.story-text p {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.85;
  margin: 0;
}

/* =============== Timeline =============== */
.timeline-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
.timeline-list {
  margin: clamp(40px, 6vw, 80px) 0 0;
  position: relative;
  padding-left: 32px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--surface-line);
}
.timeline-item {
  position: relative;
  padding: var(--sp-5) 0;
  display: block;
}
/* Image-augmented variant: grid layout with image on the left */
.timeline-item.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  grid-template-areas: "media dot content";
  align-items: start;
  gap: 0 24px;
}
.timeline-item.has-media::before { display: none; }
.timeline-item.has-media .t-media { grid-area: media; padding-top: 8px; }
.timeline-item.has-media .t-dot {
  position: static !important;
  left: auto; top: auto; transform: none !important;
  margin: 32px 0 0;
  grid-area: dot;
}
.timeline-item.has-media .t-content {
  grid-area: content;
  padding-left: 0;
}
.timeline-item .t-media img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.92);
  transition: filter var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.timeline-item:hover .t-media img { filter: saturate(1); transform: scale(1.01); }
@media (max-width: 720px) {
  .timeline-item.has-media { grid-template-columns: 1fr; }
  .timeline-item.has-media .t-dot { display: none; }
  .timeline-item.has-media .t-content { padding-left: 0; }
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: calc(var(--sp-5) + 14px);
  width: 11px; height: 11px;
  background: var(--rose-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline-item.in-view::before { background: var(--ink); }
.t-date {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--sp-2);
}
.t-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}
.t-desc {
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: var(--text-base);
  max-width: 640px;
}
.timeline-add { text-align: center; margin-top: var(--sp-6); }
/* 鈥斺€?鍏煎鏃?HTML(t-spacer/t-dot/t-content)鐨勫厠鍒舵牱寮?鈥斺€?*/
.timeline-list .timeline-item .t-spacer { display: none; }
.timeline-list .timeline-item .t-dot {
  position: absolute;
  left: -32px; top: var(--sp-5);
  width: 11px; height: 11px;
  margin: 14px 0 0;
  background: var(--rose-deep);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream);
  display: block;
  font-size: 0;
}
.timeline-list .timeline-item.in-view .t-dot { background: var(--ink); }
.timeline-list .timeline-item .t-content {
  display: block;
  background: transparent;
  border: 0;
  padding: 16px 20px;
  border-radius: 6px;
  box-shadow: none;
  max-width: 640px;
  transform: none;
  transition: background 280ms var(--ease-out), backdrop-filter 280ms var(--ease-out), padding 280ms var(--ease-out);
}
.timeline-list .timeline-item:hover .t-content {
  background: linear-gradient(135deg, rgba(255,253,249,0.85), rgba(252,247,240,0.7));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 24px -10px rgba(201,138,130,0.18);
  padding: 18px 22px;
}
.timeline-list .timeline-item .t-content .t-date {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--sp-2);
}
.timeline-list .timeline-item .t-content .t-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  font-family: var(--font-display);
}
.timeline-list .timeline-item .t-content .t-desc {
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: var(--text-base);
}
.timeline-list .timeline-item .t-content .t-del {
  position: absolute;
  right: 0; top: var(--sp-5);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--ink-mute);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.timeline-list .timeline-item:hover .t-content .t-del { opacity: 1; }
.timeline-list .timeline-item .t-content .t-del:hover { color: var(--rose-deep); }



@media (max-width: 768px) {
  .timeline-list { padding-left: 28px; }
  .timeline-item::before { left: -28px; }
}

/* =============== Gallery =============== */
.gallery-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
.gallery-drop {
  border: 1px dashed var(--surface-line);
  border-radius: 0;
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
  background: transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
  cursor: pointer;
  margin: clamp(40px, 6vw, 72px) auto;
  max-width: 640px;
}
.gallery-drop.drag-over { border-color: var(--rose-deep); background: rgba(255, 122, 156, 0.04); }
.gallery-drop-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--ink-soft);
}
.gallery-drop-inner p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: var(--text-base); }
.gallery-drop-inner .drop-icon { font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--rose-deep); }

.gallery-months {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 14px; margin: 0 0 clamp(24px, 4vw, 40px);
  scrollbar-width: thin;
}
.gallery-months[hidden] { display: none; }
.gallery-month-chip {
  flex: 0 0 auto;
  border: 1px solid var(--surface-line);
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.gallery-month-chip.active,
.gallery-month-chip:hover {
  border-color: var(--rose-deep);
  color: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--surface-line-soft);
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease-out);
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--rose-deep);
  box-shadow: 0 12px 28px -8px rgba(201,138,130,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--dur) var(--ease-out);
}
.gallery-item .del-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(44, 29, 46, 0.78);
  color: var(--cream);
  border: 0;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.gallery-item:hover .del-btn { opacity: 1; }

/* =============== Lightbox =============== */
.lightbox {
  background: linear-gradient(180deg, rgba(20,12,16,0.78), rgba(30,18,22,0.85));
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  backdrop-filter: blur(40px) saturate(120%);
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 15, 30, .96);
  display: none; align-items: center; justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; animation: lightbox-backdrop-in 220ms var(--ease-out) both; }
.lightbox.open .lightbox-img { animation: lightbox-img-in 320ms var(--ease-out) 80ms both; }
.lightbox.open .lightbox-caption { animation: lightbox-cap-in 360ms var(--ease-out) 140ms both; }
@keyframes lightbox-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-img-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes lightbox-cap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 图片:editorial 直角 + 微阴影 */
.lightbox-img {
  max-width: 88vw; max-height: 78vh;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(20, 15, 30, .18);
  border-radius: 0;
  display: block;
}

/* Caption:Playfair italic + eyebrow + hairline */
.lightbox-caption {
  margin-top: 20px;
  padding: 12px 22px;
  font-family: var(--font-display, "Playfair Display"), serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-base, 1rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  max-width: 60ch;
  text-align: center;
  /* Apple Liquid Glass — caption card */
  background: linear-gradient(180deg, rgba(255,253,249,0.92), rgba(252,247,240,0.78));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 18px -6px rgba(60,40,40,0.18);
  border-radius: 4px;
}

/* 按钮:editorial 直角 + hairline 边框 + ASCII 字符 */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,253,249,0.18), rgba(252,247,240,0.12));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: rgba(253, 250, 247, .88);
  border: 1px solid rgba(253, 250, 247, .4);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--font-display, "Playfair Display"), serif;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 14px -4px rgba(0,0,0,0.4);
  transition: background 280ms var(--ease-out), border-color 280ms var(--ease-out), color 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--rose-deep);
  color: var(--cream);
  background: linear-gradient(135deg, rgba(255,253,249,0.22), rgba(252,247,240,0.16));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px -4px rgba(201,138,130,0.4);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 32px; height: 32px; font-size: 1.1rem; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-caption { font-size: var(--text-sm, .875rem); margin-top: 18px; padding-top: 12px; }
  .lightbox-img { max-width: 92vw; max-height: 70vh; }
  .lightbox-thumbs { bottom: 12px; padding: 6px 10px; gap: 4px; }
  .lightbox-thumb { width: 36px; height: 36px; }
}

/* =============== Letters =============== */
.letters-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
.letter-paper {
  background: var(--surface-strong);
  border: 1px solid var(--surface-line-soft);
  border-radius: 0;
  padding: clamp(48px, 6vw, 80px) clamp(36px, 6vw, 80px);
  max-width: 720px;
  margin: clamp(40px, 6vw, 80px) auto;
  position: relative;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.letter-paper::before {
  content: "Correspondence · " attr(data-vol);
  position: absolute;
  top: -28px; left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.letter-paper::after {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.letter-content {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 2;
  color: var(--ink);
  white-space: pre-wrap;
}
.letter-content p { margin: 0 0 1.2em; }
.letter-content p:last-child { margin-bottom: 0; }
.letter-content .signature {
  display: block;
  margin-top: var(--sp-6);
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  color: var(--rose-deep);
}

/* WeChat-style chat bubbles */
.letter-paper {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 36px 32px;
  background: linear-gradient(180deg, rgba(255,253,249,0.96), rgba(252,247,240,0.96));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 24px -8px rgba(60,40,40,0.08);
  border-radius: 4px;
}
.bubble-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 76%;
  animation: bubble-rise 460ms cubic-bezier(0.25, 1, 0.5, 1) both;
}
.bubble-row.bubble-a {
  align-self: flex-start;
  flex-direction: row;
}
.bubble-row.bubble-b {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.bubble-avatar {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  letter-spacing: 0;
}
.bubble-row.bubble-b .bubble-avatar {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}
.bubble-body {
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  letter-spacing: 0.01em;
}
.bubble-row.bubble-a .bubble-body {
  border-top-left-radius: 0;
}
.bubble-row.bubble-b .bubble-body {
  border-top-right-radius: 0;
}
.bubble-row.bubble-a .bubble-body { border-left: 2px solid var(--ink); }
.bubble-row.bubble-b .bubble-body { border-right: 2px solid var(--rose-deep); }
@keyframes bubble-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .bubble-row { max-width: 86%; }
  .bubble-body { font-size: 0.95rem; padding: 10px 14px; }
}

/* =============== Reasons =============== */
.reasons-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
/* Editorial numbered card grid (replaces cloud) */
.reasons-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px 24px;
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: 1080px;
  counter-reset: rsn;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.reason-tag, .reasons-tag {
  position: relative;
  display: block;
  padding: 24px 22px 26px 78px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  letter-spacing: 0.01em;
  transition: border-color 320ms var(--ease-out), background 320ms var(--ease-out), transform 380ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 320ms var(--ease-out);
  cursor: default;
  min-height: 100px;
  counter-increment: rsn;
}
.reason-tag::before, .reasons-tag::before {
  content: counter(rsn, decimal-leading-zero);
  position: absolute;
  left: 22px; top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--rose-deep);
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.92;
  transition: color 320ms var(--ease-out), transform 420ms cubic-bezier(0.25, 1, 0.5, 1), opacity 320ms var(--ease-out);
}
.reason-tag:hover::before, .reasons-tag:hover::before {
  color: var(--ink);
  transform: translateX(6px) translateY(-2px) scale(1.05);
  opacity: 1;
}
.reason-tag::after, .reasons-tag::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(0.25, 1, 0.5, 1);
}
.reason-tag:hover, .reasons-tag:hover {
  border-color: var(--rose-deep);
  background: linear-gradient(135deg, rgba(255,253,249,0.92), rgba(252,247,240,0.78));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 16px 38px -10px rgba(201,138,130,0.38);
  transform: translateY(-3px);
}
.reason-tag:hover::after, .reasons-tag:hover::after {
  transform: scaleX(1);
}
/* Eyebrow strip above the grid */
.reasons-cloud::before {
  content: "OUR LIST OF REASONS";
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--ink-mute);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

/* =============== Wishes =============== */
.wishes-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: var(--content-max); margin: 0 auto; }
.wish-list {
  list-style: none;
  margin: clamp(40px, 6vw, 80px) auto 0;
  padding: 0;
  max-width: 720px;
  border-top: 1px solid var(--surface-line);
}
.wish-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-line-soft);
  transition: padding-left var(--dur) var(--ease-out);
}
.wish-item {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 4px 0;
  transition: background 280ms var(--ease-out), backdrop-filter 280ms var(--ease-out), transform 280ms var(--ease-out), border-color 280ms var(--ease-out);
}
.wish-item:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(255,253,249,0.92), rgba(252,247,240,0.78));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(201,138,130,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 22px -8px rgba(201,138,130,0.25), 0 0 0 1px rgba(255,255,255,0.4);
}
.wish-check {
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.wish-check::after {
  content: "";
  width: 10px; height: 1px;
  background: transparent;
  transition: background var(--dur) var(--ease-out);
}
.wish-check::before {
  content: "";
  position: absolute;
  width: 1px; height: 10px;
  background: transparent;
  transition: background var(--dur) var(--ease-out);
  transform: rotate(45deg);
}
.wish-item.done .wish-check { background: var(--rose-deep); border-color: var(--rose-deep); }
.wish-item.done .wish-check::after { background: var(--cream); }
.wish-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
}
.wish-item.done .wish-text { color: var(--ink-mute); text-decoration: line-through; }
/* Editorial input row: hairline underline input + ghost submit */
.wishes-input, .reasons-input {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 560px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.wishes-input::before, .reasons-input::before {
  content: attr(data-eyebrow);
  position: absolute;
  left: 0; top: -22px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.wishes-input input, .reasons-input input,
#wish-input, #reason-input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 12px 4px;
  outline: none;
  letter-spacing: 0.01em;
}
.wishes-input input::placeholder, .reasons-input input::placeholder,
#wish-input::placeholder, #reason-input::placeholder {
  color: var(--ink-mute);
  font-style: italic;
  letter-spacing: 0.02em;
}
.wishes-input input:focus, .reasons-input input:focus,
#wish-input:focus, #reason-input:focus {
  outline: none;
}
.wishes-input button, .reasons-input button,
#wish-add, #reason-add {
  appearance: none;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--ink);
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.wishes-input button:hover, .reasons-input button:hover,
#wish-add:hover, #reason-add:hover {
  background: var(--ink);
  color: var(--cream);
}

/* =============== Ending =============== */
.ending {
  padding: clamp(120px, 18vw, 200px) 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
/* Apple Liquid Glass wax-seal backdrop */
.ending::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(280px, 60vw, 480px);
  height: clamp(280px, 60vw, 480px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,253,249,0.55) 0%, rgba(252,247,240,0.25) 50%, rgba(252,247,240,0) 75%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 60px -20px rgba(201,138,130,0.18);
  z-index: -1;
  pointer-events: none;
}
.ending-content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.ending-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.ending-content p {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
}
.ending-rule {
  width: 48px; height: 1px;
  background: var(--rose-deep);
  margin: var(--sp-3) auto;
}
.ending-heart {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-deep);
  margin: var(--sp-4) auto;
  font-size: 0;
  color: transparent;
}
.ending-foot {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-size: var(--text-xs);
}

/* =============== Buttons =============== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-ghost:hover { border-color: var(--rose-deep); color: var(--ink); }

/* =============== Click Heart Easter Egg =============== */
.click-heart {
  position: fixed; pointer-events: none;
  width: 10px;
  height: 10px;
  animation: heart-float 1.5s ease-out forwards;
  z-index: 10000;
}
.click-heart::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 0 0 1px rgba(232, 90, 130, 0.22);
}
@keyframes heart-float {
  0% { transform: translate(-50%, 0) scale(.5); opacity: 1; }
  100% { transform: translate(-50%, -120px) scale(1.5); opacity: 0; }
}

/* =============== Modal =============== */
.modal {
  position: fixed; inset:0; z-index: 2000;
  background: rgba(20,15,30,.7);
  display:none; align-items:center; justify-content:center;
  padding: 20px;
}
.modal.open { display:flex; animation: modal-backdrop-in 200ms var(--ease-out) both; }
.modal.open .modal-box { animation: modal-box-in 260ms var(--ease-out) 60ms both; }
@keyframes modal-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-box-in { from { opacity: 0; transform: scale(0.96) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-box h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.modal-box label {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.modal-box input, .modal-box textarea {
  display: block; width: 100%;
  margin-top: var(--sp-2);
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--surface-line);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur) var(--ease-out);
  border-radius: 0;
}
.modal-box input:focus, .modal-box textarea:focus { border-bottom-color: var(--rose-deep); }
.modal-actions { display:flex; justify-content:flex-end; gap: 12px; margin-top: 20px; }

/* =============== Mobile Tweaks =============== */
@media (max-width: 768px) {
  /* Typography scale down */
  h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); }

  /* Layout */
  .section { padding: clamp(72px, 12vw, 100px) 20px; }
  .nav-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-logo { font-size: 0.9rem; }
  .cover { padding: 80px 20px 60px; }
  .cover-names { flex-direction: column; gap: 8px; }
  .cover-names .name { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .cover-names .amp { font-size: clamp(1.4rem, 7vw, 2rem); }
  .cover-title { font-size: 0.85rem; }
  .cover-sub { font-size: 0.95rem; }
  .cover-cta { padding: 14px 24px; font-size: 0.75rem; }
  .scroll-hint { font-size: 0.7rem; bottom: 24px; }

  /* Section title smaller */
  .section-title { margin-bottom: 48px; }
  .section-title .zh { font-size: clamp(1.6rem, 6vw, 2rem); }
  .section-title .zh::before { font-size: 0.5em; margin-right: 8px; }

  /* Counter */
  .counter-section { padding: 72px 20px; }
  .counter-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
  .counter-card .num { font-size: clamp(2rem, 8vw, 2.6rem); }
  .counter-quote { font-size: 1.05rem; margin-top: 40px; }

  /* Story */
  .story-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Timeline */
  .timeline-list { padding-left: 24px; }
  .timeline-item::before { left: -28px; }
  .t-title { font-size: clamp(1.2rem, 5vw, 1.5rem); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gallery-drop { padding: 32px 20px; }

  /* Letters */
  .letter-paper { padding: 32px 20px; }
  .letter-content { font-size: 1.05rem; line-height: 1.85; }

  /* Reasons / Wishes */
  .reason-cloud { gap: 8px; }
  .reason-tag { padding: 8px 14px; font-size: 0.85rem; }
  .wish-item { padding: 14px 0; gap: 12px; }
  .wish-text { font-size: 0.95rem; }

  /* Countdown */
  
  
  

  /* Capsule */
  .capsule-grid { grid-template-columns: 1fr; }

  /* Diary */
  .diary-item { flex-direction: column; gap: 6px; }
  .diary-item-date { width: auto; }

  /* Ending */
  .ending { padding: 96px 20px; }
  .ending-line { font-size: clamp(2rem, 8vw, 2.6rem); }

  /* Filter */
  .filter-toolbar { gap: 6px; }
  .filter-btn { padding: 6px 12px; font-size: 0.75rem; }

  .season-picker { padding: 4px 8px; }
  .season-picker button { font-size: 1rem; padding: 2px 4px; }
}

@media (max-width: 480px) {
  .cover-names { flex-direction: column; gap: 4px; }
  .cover-names .amp { font-size: clamp(1.4rem, 8vw, 1.8rem); }
}
@media (max-width: 380px) {
  /* Extra-tight for iPhone SE / smaller — stack names vertically for editorial clarity */
  .cover-names { flex-direction: column; gap: 8px; }
  .cover-names .name { font-size: clamp(1.6rem, 9vw, 1.9rem); letter-spacing: -0.01em; }
  .cover-names .amp { font-size: 1.1rem; margin: 4px 0; transform: rotate(0deg); }
  .cover { padding: 56px 16px 40px; }
  .section { padding: 56px 16px; }
  .nav-inner { padding: 10px 16px; }
  .counter-display,
  
}
/* =============== 鉁?鐜荤拑鎷熸€佸熀纭€ =============== */
.glass {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

/* =============== 馃尭 瀛ｈ妭涓婚 =============== */
:root {
  /* 季节色:克制的纯色背景偏移,不用渐变 */
  --season-spring: #fdf3f6;
  --season-summer: #fdf6e8;
  --season-autumn: #fdf1e6;
  --season-winter: #f4f5fa;
  --season-spring-accent: #c98a82;
  --season-summer-accent: #c9a875;
  --season-autumn-accent: #b88a5a;
  --season-winter-accent: #8a9bb8;
}
body.season-spring { background-color: var(--season-spring); }
body.season-summer { background-color: var(--season-summer); }
body.season-autumn { background-color: var(--season-autumn); }
body.season-winter { background-color: var(--season-winter); }

/* JS 创建的 emoji 粒子完全隐藏,保留 class 以避免报错 */
.season-particle { display: none !important; }

@keyframes particle-fall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(360deg); }
}

.season-picker {
  display: flex; gap: 6px; align-items: center;
  background: linear-gradient(135deg, rgba(255,251,247,0.65), rgba(255,243,232,0.4));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  border-radius: 0;
  padding: 5px 12px;
}
.season-picker::before {
  content: "SEASON";
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-right: 6px;
}
.season-picker button {
  width: 10px; height: 10px;
  border: 1px solid var(--surface-line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  padding: 0;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.season-picker button:hover { transform: scale(1.2); }
.season-picker button.active {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}
.season-picker button:nth-child(1) { background: color-mix(in srgb, var(--rose-deep) 35%, transparent); }
.season-picker button:nth-child(2) { background: color-mix(in srgb, var(--gold) 45%, transparent); }
.season-picker button:nth-child(3) { background: color-mix(in srgb, var(--rose-deep) 55%, transparent); }
.season-picker button:nth-child(4) { background: color-mix(in srgb, var(--plum) 55%, transparent); }
.season-picker button.active {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}


/* =============== 鈴?绾康鏃ュ€掕鏃?=============== */










/* =============== 馃拰 鏃堕棿鑳跺泭 =============== */
.capsule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 6vw, 72px);
}
.capsule-card {
  background: var(--surface-strong);
  border: 1px solid var(--surface-line-soft);
  border-radius: 0;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  position: relative;
}
.capsule-card:hover { transform: translateY(-2px); border-color: var(--rose-deep); }
.capsule-card.locked {
  background: var(--plum-deep);
  color: rgba(245, 230, 240, 0.7);
  border-color: transparent;
}
.capsule-icon {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--sp-3);
}
.capsule-icon::before {
  content: "Capsule";
}
.capsule-card.locked .capsule-icon { color: var(--gold-soft); }
.capsule-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}
.capsule-card.locked .capsule-title { color: var(--cream); }
.capsule-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.04em;
}
.capsule-card.locked .capsule-date { color: rgba(245, 230, 240, 0.45); }
.capsule-content {
  font-family: var(--font-body);
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  font-size: var(--text-sm);
}
.capsule-card.locked .capsule-content { color: rgba(245, 230, 240, 0.55); font-style: italic; }
.capsule-countdown {
  margin-top: var(--sp-4);
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,253,249,0.78), rgba(252,247,240,0.6));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 4px 12px -4px rgba(60,40,40,0.1);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.capsule-card.locked .capsule-countdown { border-color: rgba(255, 255, 255, 0.1); color: var(--gold-soft); }
.capsule-add {
  background: transparent;
  border: 1px dashed var(--surface-line);
  border-radius: 0;
  padding: clamp(24px, 3vw, 32px);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.capsule-add:hover { border-color: var(--rose-deep); color: var(--ink); }

/* =============== 馃椇锔?鍦板浘瓒宠抗 =============== */
.map-section { padding: 100px 28px; max-width: 1200px; margin: 0 auto; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  text-align: center;
  transition: transform .3s;
  z-index: 2;
}
.map-pin:hover { transform: translate(-50%, -110%) scale(1.2); }
.map-pin-icon {
  width: 14px; height: 14px;
  background: var(--rose-deep);
  border-radius: 50%;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--rose-deep);
  display: block;
  margin: 0 auto;
  position: relative;
}
.map-pin-icon::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  background: transparent;
  padding: 0;
}

.map-pin-tooltip {
  position: absolute;
  bottom: 110%; left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  font-family: var(--font-body, "Noto Serif SC"), serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.map-pin:hover .map-pin-tooltip { opacity: 1; }
.map-pin-tooltip strong { color: var(--rose-deep); display: block; }
.map-pin-tooltip span { color: var(--ink-soft); font-size: 0.8rem; }

/* =============== 馃摂 蹇冩儏鏃ヨ =============== */
.diary-section { padding: clamp(80px, 12vw, 140px) 28px; max-width: 900px; margin: 0 auto; }
.diary-write {
  border: 1px solid var(--surface-line);
  border-radius: 0;
  padding: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
  background: transparent;
}
.diary-write label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.diary-write textarea {
  display: block;
  width: 100%;
  /* Apple Liquid Glass paper card */
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,253,249,0.92), rgba(252,247,240,0.86));
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px -3px rgba(60,40,40,0.06);
  border-radius: 8px;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}
.diary-write textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.diary-write textarea:focus {
  border-color: var(--rose-deep);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,243,232,0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 20px -4px rgba(201,138,130,0.22);
}
.diary-write textarea:focus { border-bottom-color: var(--rose-deep); }
.diary-mood-picker {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: var(--sp-3) 0 var(--sp-4);
}
.mood-opt {
  width: 38px; height: 38px;
  border: 1px solid var(--surface-line);
  background: transparent;
  border-radius: 0;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
/* 鐢?::after 鏄剧ず 1-4 涓渾鐐硅〃绀哄績鎯?鏍规嵁 emoji 瀵瑰簲:馃槉=1 骞抽潤 / 馃グ=1 娆㈠枩 / 馃構=1 淇忕毊 / 馃槩=2 / 馃槾=1 / 馃ぉ=1 / 鈽?2 / 馃尭=1) */
.mood-opt::after {
  content: "";
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto;
  background-image: radial-gradient(circle, var(--ink-soft) 1.5px, transparent 2px);
  background-size: 6px 6px;
  background-position: center;
  background-repeat: no-repeat;
}
.mood-opt.active,
.mood-opt:hover {
  border-color: var(--rose-deep);
  background: linear-gradient(135deg, rgba(255,253,249,0.92), rgba(252,247,240,0.78));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 18px -4px rgba(201,138,130,0.3);
  transform: translateY(-1px);
}
.mood-opt.active::after,
.mood-opt:hover::after {
  background-image: radial-gradient(circle, var(--rose-deep) 1.5px, transparent 2px);
}
.diary-add-row { display: flex; justify-content: flex-end; }
.diary-list { margin-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.diary-item {
  display: flex;
  gap: 16px;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--surface-line-soft);
}
.diary-item-date {
  flex-shrink: 0;
  width: 88px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--rose-deep);
}
.diary-item-mood,
.diary-mood {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--surface-line);
  border-radius: 50%;
  background: var(--rose-deep);
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.diary-entry {
  position: relative;
  padding: var(--sp-4) 40px var(--sp-4) 0;
  border-bottom: 1px solid var(--surface-line-soft);
  border-radius: 6px;
  margin: 4px -8px;
  padding-left: 16px;
  padding-right: 32px;
  transition: background 280ms var(--ease-out), backdrop-filter 280ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 280ms var(--ease-out);
.diary-entry:hover {
  background: linear-gradient(135deg, rgba(255,253,249,0.88), rgba(252,247,240,0.72));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: rgba(201,138,130,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 6px 18px -8px rgba(201,138,130,0.18);
  padding-left: 22px;
}
}
.diary-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  margin-bottom: var(--sp-2);
}
.diary-content {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
}
.diary-item-text {
  flex: 1;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.85;
}

/* =============== 馃幀 瑙嗛鍥炲繂 =============== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 6vw, 80px);
}
.video-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20,12,16,0.96), rgba(40,20,30,0.92));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 24px -8px rgba(0,0,0,0.35);
  aspect-ratio: 16/9;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.video-card:hover { opacity: 0.92; }
.video-card video {
  width: 100%; height: 100%; object-fit: cover;
  cursor: pointer;
}
.video-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(to top, rgba(44, 29, 46, 0.85), transparent);
  color: var(--cream);
}
.video-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.video-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  opacity: 0.7;
  letter-spacing: 0.12em;
  margin-top: var(--sp-2);
}
.video-add-card {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px dashed var(--surface-line);
  aspect-ratio: 16/9;
  border-radius: 0;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.video-add-card:hover { border-color: var(--rose-deep); color: var(--ink); }


/* =============== 馃巻 绾康鏃ョ矑瀛愶紙鐑熻姳锛?=============== */
.firework {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
}
.firework-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose-deep);
}

/* =============== 馃摉 3D 缈婚〉鐩稿唽 =============== */
.flipbook {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  perspective: 2000px;
}
.flipbook-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  transform-style: preserve-3d;
  cursor: pointer;
}
.flipbook-page {
  position: absolute; inset: 0;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  display: flex; align-items: center; justify-content: center;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.flipbook-page img {
  width: 100%; height: 100%; object-fit: cover;
}
.flipbook-controls {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 32px;
}
.flipbook-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  /* Apple Liquid Glass flipbook control */
  background: linear-gradient(135deg, rgba(255,253,249,0.78), rgba(252,247,240,0.6));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 4px 12px -4px rgba(60,40,40,0.1);
  border-radius: 50%;
  font-family: var(--font-display, "Playfair Display"), serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.flipbook-btn:hover {
  background: linear-gradient(135deg, rgba(255,253,249,0.92), rgba(255,243,232,0.78));
  border-color: var(--rose-deep);
  color: var(--rose-deep);
  transform: translateY(-2px);
}
.flipbook-indicator {
  text-align: center;
  font-family: var(--font-display, "Playfair Display"), serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: var(--text-sm, .875rem);
  letter-spacing: 0.1em;
  margin-top: 16px;
  position: relative;
}
.flipbook-indicator::before {
  content: "";
  display: block;
  width: 32px; height: 1px;
  background: var(--rose-deep);
  margin: 0 auto 12px;
}

/* =============== 馃帹 鐓х墖婊ら暅 =============== */
.filter-toolbar {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); justify-content: center;
  margin: clamp(40px, 6vw, 72px) auto;
  max-width: 720px;
  border-bottom: 1px solid var(--surface-line-soft);
  padding-bottom: var(--sp-4);
}
.filter-btn {
  position: relative;
  padding: 6px 0;
  background: transparent;
  color: var(--ink-mute);
  border: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur) var(--ease-out);
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--ink); }
.filter-btn.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -17px;
  height: 1px;
  background: var(--rose-deep);
}

/* =============== 鉁嶏笍 鎵嬪啓绛惧悕 =============== */
.signature-pad {
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 720px;
  border: 1px solid var(--surface-line);
  padding: clamp(24px, 3vw, 40px);
  background: transparent;
}
.signature-pad > p {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-3);
}
.signature-canvas {
  width: 100%;
  height: 200px;
  display: block;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-bottom: 1px solid var(--surface-line);
  cursor: crosshair;
  touch-action: none;
}
.signature-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: var(--sp-3); }

/* =============== 馃帣锔?璇煶鐣欒█ =============== */
#voice-section { margin-top: clamp(40px, 6vw, 72px); }
#voice-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 var(--sp-4);
}
#voice-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.voice-item {
  display: flex; align-items: center; gap: 16px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--surface-line-soft);
  border-radius: 0;
  background: transparent;
}
.voice-item audio { flex: 1; height: 32px; }
.voice-item .voice-del {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color var(--dur) var(--ease-out);
}
.voice-item .voice-del:hover { color: var(--rose-deep); }

/* =============== 馃摫 绉诲姩绔€傞厤 =============== */
@media (max-width: 768px) {
  
  
  .capsule-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .world-map { padding: 20px 10px; }
  .season-picker { padding: 4px 8px; }
  .season-picker button { font-size: 1rem; padding: 2px 4px; }
}

/* 鈥斺€?v2.x 娓呯悊锛氶殣钘忛钀借姳鐡ｈ楗?鈥斺€?*/
.petals, .petal, .season-particle { display: none !important; }

/* 鈥斺€?CSS counter: 鍙暟 6 澶т富绔犺妭(鍏朵綑浣滀负瀛愭ā鍧椾笉缂栧彿) 鈥斺€?*/
body { counter-reset: chapter; }
section#counter,
section#story,
section#timeline,
section#gallery,
section#letters,
section#ending {
  counter-increment: chapter;
}
/* 鈥斺€?鍙湪 6 澶т富绔犺妭鏄剧ず Chapter 缂栧彿 鈥斺€?*/
section#counter .section-title .zh::before,
section#story .section-title .zh::before,
section#timeline .section-title .zh::before,
section#gallery .section-title .zh::before,
section#letters .section-title .zh::before,
section#ending .section-title .zh::before {
  content: "Chapter " counter(chapter, decimal-leading-zero) "  ·  ";
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--rose-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-right: 14px;
}



/* ============================================
   Print Stylesheet 路 鎶婂洖蹇嗗綍鎵撳嵃鎴愮湡鏉傚織
   ============================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 18mm 16mm 22mm 16mm;
  }
  @page :first {
    margin-top: 0;
  }

  /* 鈥斺€?鍩虹 鈥斺€?*/
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  html, body {
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: 11pt;
    line-height: 1.55;
    background: white !important;
    color: #111 !important;
  }
  body { background-image: none !important; }

  /* 鈥斺€?闅愯棌浜や簰鍏冪礌 鈥斺€?*/
  .nav,
  .click-heart,
  .modal,
  .scroll-hint,
  .gallery-drop,
  .diary-write,
  .filter-toolbar,
  .signature-pad,
  #voice-section,
  .timeline-add,
  .story-grid > .story-card .story-icon,
  .cover-cta,
  .cover-meta {
    display: none !important;
  }

  /* 鈥斺€?绔犺妭寮哄埗鍒嗛〉 鈥斺€?*/
  section[id] {
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  section#cover { page-break-after: always; }
  section#counter { page-break-after: always; }
  section#story   { page-break-after: always; }
  section#timeline { page-break-after: always; }
  section#gallery { page-break-after: always; }
  section#letters { page-break-after: always; }
  section#reasons { page-break-after: always; }
  section#wishes  { page-break-after: always; }
  section#capsule { page-break-after: always; }
  section#map { page-break-after: always; }
  section#diary { page-break-after: always; }
  section#videos { page-break-after: always; }
  section#flipbook { page-break-after: always; }
  section#ending { page-break-after: auto; }

  /* 鈥斺€?Cover 褰撲綔灏侀潰 鈥斺€?*/
  .cover {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60mm 0 !important;
    page-break-after: always;
  }
  .cover-names { display: flex; gap: 12mm; }
  .cover-names .name { font-size: 56pt !important; }
  .cover-names .amp { font-size: 36pt; }
  .cover-title { font-size: 14pt !important; letter-spacing: 6pt !important; }
  .cover-sub { font-size: 11pt !important; line-height: 1.8; }

  /* 鈥斺€?Section titles 鈥斺€?*/
  .section-title {
    margin-bottom: 10mm !important;
    border-bottom: 1pt solid #111 !important;
    padding-bottom: 4mm !important;
  }
  .section-title .zh {
    font-size: 28pt !important;
    color: #111 !important;
  }
  .section-title .zh::before {
    color: #111 !important;
    font-size: 12pt;
  }
  .section-title .en { font-size: 11pt; color: #555 !important; font-style: italic; }

  /* 鈥斺€?Counter 鈥斺€?*/
  .counter-display {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8mm !important;
    page-break-inside: avoid;
  }
  .counter-card { border-top: 1pt solid #111 !important; padding-top: 4mm !important; }
  .counter-card .num { font-size: 32pt !important; color: #111 !important; }
  .counter-card .lbl { color: #555 !important; }

  /* 鈥斺€?Story grid 鍗＄墖 鈥斺€?*/
  .story-grid {
    display: block !important;
  }
  .story-card {
    border-top: 1pt solid #ccc !important;
    padding: 4mm 0 !important;
    page-break-inside: avoid;
    margin-bottom: 6mm !important;
  }
  .story-card h3 { font-size: 14pt !important; color: #111 !important; }

  /* 鈥斺€?Timeline 鈥斺€?*/
  .timeline-list {
    padding-left: 8mm !important;
    border-left: 1pt solid #ccc;
  }
  .timeline-list::before { display: none !important; }
  .timeline-item {
    page-break-inside: avoid;
    margin-bottom: 6mm !important;
    padding: 3mm 0 !important;
  }
  .timeline-item::before {
    background: #111 !important;
    box-shadow: 0 0 0 2pt white !important;
  }
  .t-date { color: #555 !important; }
  .t-title { font-size: 14pt !important; color: #111 !important; }

  /* 鈥斺€?Gallery 鐓х墖 鈥斺€?*/
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4mm !important;
  }
  .gallery-item {
    page-break-inside: avoid;
    border: 1pt solid #ccc !important;
  }
  .gallery-item img {
    width: 100% !important;
    height: auto !important;
    filter: none !important;
  }
  .gallery-item .del-btn { display: none !important; }

  /* 鈥斺€?Letters 鈥斺€?*/
  .letter-paper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 6mm 0 !important;
    page-break-inside: avoid;
  }
  .letter-paper::before {
    background: #111 !important;
    height: 1pt !important;
  }
  .letter-content { font-size: 12pt !important; line-height: 1.85; }

  /* 鈥斺€?Reasons 鈥斺€?*/
  .reason-cloud { gap: 4mm !important; }
  .reason-tag {
    border: 1pt solid #ccc !important;
    padding: 2mm 4mm !important;
    color: #111 !important;
  }

  /* 鈥斺€?Wishes 鈥斺€?*/
  .wish-list { border-top: 1pt solid #111 !important; }
  .wish-item {
    border-bottom: 1pt solid #ccc !important;
    page-break-inside: avoid;
  }
  .wish-check {
    border: 1pt solid #111 !important;
  }
  .wish-item.done .wish-check {
    background: #111 !important;
  }

  /* 鈥斺€?Capsule 鈥斺€?*/
  .capsule-card {
    border: 1pt solid #ccc !important;
    background: transparent !important;
    page-break-inside: avoid;
  }
  .capsule-card.locked {
    background: #f4f4f4 !important;
    border: 1pt dashed #999 !important;
  }

  /* 鈥斺€?Ending 鈥斺€?*/
  .ending {
    text-align: center;
    padding: 40mm 0 !important;
  }
  .ending-line { font-size: 36pt !important; }
  .ending-heart {
    background: #111 !important;
    width: 6pt !important;
    height: 6pt !important;
  }
  .ending-foot { color: #555 !important; }

  /* 鈥斺€?Footer 椤佃剼 鈥斺€?*/
  @page {
    @bottom-right {
      content: counter(page) " / " counter(pages);
      font-family: Georgia, serif;
      font-size: 9pt;
      color: #555;
    }
  }
}


/* ============================================
   v3i: Scroll-Driven Chapter Reveal (Chrome 115+)
   ============================================ */
.section-title,
.section-sub,
.timeline,
.gallery-grid,
.letters-stack,
.counter-display,
.wish-card,
.ending-content {
  opacity: 1;
  transform: none;
}
/* Always-on staggered section fade-in (visible by default; no headless trap) */
.section { animation: section-fade-in 900ms var(--ease-out) both; }
.section:nth-of-type(2) { animation-delay: 80ms; }
.section:nth-of-type(3) { animation-delay: 120ms; }
.section:nth-of-type(4) { animation-delay: 160ms; }
.section:nth-of-type(5) { animation-delay: 200ms; }
.section:nth-of-type(6) { animation-delay: 240ms; }
@keyframes section-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Scroll-driven reveal for true browsers (Chrome 115+)
   - Falls back gracefully if no scroll: chapter-reveal keeps `to` state
     because fill-mode is the default (none). */
@supports (animation-timeline: view()) {
  .section {
    animation: chapter-reveal linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  .section { animation-delay: 0s !important; }
  .section:nth-of-type(2),
  .section:nth-of-type(3),
  .section:nth-of-type(4),
  .section:nth-of-type(5),
  .section:nth-of-type(6) { animation-delay: 0s !important; }
}
@keyframes chapter-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   v3i: Cover First-Paint Reveal (stagger)
   ============================================ */
@keyframes cover-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cover-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cover-hairline {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}
@keyframes cover-meta-rise {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cover-names .name,
.cover-names .amp,
.cover-eyebrow,
.cover-title,
.cover-sub,
.cover-meta,
.cover-cta {
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  animation-fill-mode: both;
}
.cover-eyebrow      { animation-name: cover-rise; animation-delay: 80ms; }
.cover-names .name   { animation-name: cover-rise; animation-delay: 200ms; }
.cover-names .amp    { animation-name: cover-fade; animation-delay: 480ms; }
.cover-title         { animation-name: cover-rise; animation-delay: 360ms; }
.cover-sub           { animation-name: cover-rise; animation-delay: 560ms; }
.cover-sub::before   { animation: cover-hairline 800ms 720ms cubic-bezier(0.25, 1, 0.5, 1) both; transform-origin: center; }
.cover-meta          { animation-name: cover-rise; animation-delay: 720ms; }
.cover-meta::after   { animation: cover-meta-rise 800ms 1000ms cubic-bezier(0.25, 1, 0.5, 1) both; }
.cover-cta           { animation-name: cover-rise; animation-delay: 1080ms; }

/* ============================================
   v3i: Hover Hairline Extend on Section Titles
   ============================================ */
.section-title .zh {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title .zh::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 1px;
  background: var(--rose-deep);
  transition: width 360ms cubic-bezier(0.25, 1, 0.5, 1);
}
.section-title:hover .zh::after,
.section-title:focus-within .zh::after {
  width: 96px;
}
@media (prefers-reduced-motion: reduce) {
  .cover-names .name, .cover-names .amp, .cover-eyebrow, .cover-title,
  .cover-sub, .cover-sub::before, .cover-meta, .cover-meta::after, .cover-cta,
  .section-title .zh::after { animation: none !important; transition: none !important; }
}

/* Editorial flat world map (D3) */
.map-wrap {
  position: relative;
  margin: clamp(48px, 6vw, 96px) auto 0;
  max-width: 1000px;
  aspect-ratio: 2 / 1;
  background: #faf6f0;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  cursor: grab;
}
.map-wrap:active { cursor: grabbing; }
#map-svg { width: 100%; height: 100%; display: block; }
.map-controls {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  background: linear-gradient(135deg, rgba(255,251,247,0.7), rgba(250,232,218,0.45));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  padding: 4px 8px;
  z-index: 10;
}
.map-ctrl { appearance: none; background: transparent; border: 0; border-right: 1px solid var(--line-soft); padding: 3px 10px; font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.map-ctrl:last-child { border-right: 0; }
.map-ctrl:hover { background: var(--ink); color: var(--cream); }
.map-legend {
  position: absolute;
  top: 14px; right: 14px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, rgba(255,251,247,0.65), rgba(255,243,232,0.4));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  padding: 6px 10px;
  z-index: 10;
}
.map-legend .dot { display: inline-block; width: 8px; height: 8px; vertical-align: middle; }
.map-legend .dot-rose { background: #c98a82; border-radius: 50%; }
.map-legend .dot-mute { background: transparent; border: 1px solid var(--ink-mute); border-radius: 50%; }
#map-svg .country {
  transition: fill 240ms var(--ease-out), stroke 240ms var(--ease-out), stroke-width 240ms var(--ease-out);
}
#map-svg .country:hover {
  fill: var(--rose-deep);
  fill-opacity: 0.55;
  stroke: var(--gold);
  stroke-width: 0.8;
}
#map-svg .map-point { transition: r 200ms var(--ease-out); cursor: pointer; }
#map-svg .map-point:hover { r: 8; }
#map-svg .map-label { font-family: var(--font-display); font-size: 0.7rem; fill: var(--ink); letter-spacing: 0.04em; pointer-events: none; text-shadow: 0 0 4px #faf6f0, 0 0 2px #faf6f0, 0 0 2px #faf6f0; }
#map-svg .map-arc { animation: arcFlow 6s linear infinite; }
@keyframes arcFlow { to { stroke-dashoffset: -24; } }
@media (max-width: 600px) {
  .globe-wrap { aspect-ratio: 1 / 1; }
  .globe-controls { padding: 4px 6px; gap: 4px; }
  .globe-zoom { padding: 3px 8px; font-size: 0.7rem; }
}


/* Apple Liquid Glass — prefers-reduced-transparency fallback */
@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .modal-box,
  .season-picker, .globe-controls, .map-controls, .map-legend {
    background: var(--cream) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 1px 0 var(--line-soft) !important;
  }
  .lightbox { background: rgba(20,12,16,0.96) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ============================================
   v3y+: Sync status indicator + auth overlay
   ============================================ */
.sync-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--surface-line);
  background: linear-gradient(135deg, rgba(255,251,247,0.7), rgba(255,243,232,0.45));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 240ms var(--ease-out), color 240ms var(--ease-out);
  cursor: default;
}
.sync-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-mute);
  transition: background 240ms var(--ease-out);
}
.sync-status[data-state="synced"] { border-color: rgba(122, 184, 122, 0.5); color: var(--ink); }
.sync-status[data-state="synced"] .sync-dot { background: #7ab87a; }
.sync-status[data-state="syncing"] { border-color: rgba(212, 175, 55, 0.55); color: var(--ink); }
.sync-status[data-state="syncing"] .sync-dot { background: var(--gold); animation: pulse-dot 1.2s ease-in-out infinite; }
.sync-status[data-state="offline"] { border-color: rgba(192, 59, 102, 0.45); color: var(--rose-deep); }
.sync-status[data-state="offline"] .sync-dot { background: var(--rose-deep); }
.sync-status[data-state="auth"] { border-color: var(--surface-line); color: var(--ink-mute); }
.sync-status[data-state="auth"] .sync-dot { background: var(--ink-mute); }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.5); }
}
.sync-now, .sync-logout {
  appearance: none;
  background: transparent;
  border: 1px solid var(--surface-line);
  width: 32px; height: 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.sync-now:hover, .sync-logout:hover { border-color: var(--rose-deep); color: var(--ink); }

.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(180deg, rgba(255,253,249,0.96), rgba(252,247,240,0.92));
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: auth-overlay-in 400ms cubic-bezier(0.25, 1, 0.5, 1);
}
.auth-overlay[hidden] { display: none; }
@keyframes auth-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.auth-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, rgba(255,253,249,0.98), rgba(252,247,240,0.9));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 28px 80px -20px rgba(74,56,104,0.22);
  padding: 36px 32px 28px;
  font-family: var(--font-body);
  animation: auth-card-in 500ms cubic-bezier(0.25, 1, 0.5, 1) 100ms both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.auth-sub {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}
.auth-field {
  display: block;
  margin-bottom: 14px;
}
.auth-field[data-show="register"] { display: none; }
.auth-form[data-mode="register"] .auth-field[data-show="register"] { display: block; }
.auth-field > span {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  border: 1px solid var(--surface-line);
  background: rgba(255, 251, 247, 0.5);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.auth-field input::placeholder { color: var(--ink-mute); }
.auth-field input:focus {
  border-color: var(--rose-deep);
  background: rgba(255, 251, 247, 0.85);
}
.auth-error {
  color: var(--rose-deep);
  font-size: var(--text-sm);
  min-height: 22px;
  margin: 6px 0 12px;
  letter-spacing: 0.01em;
}
.auth-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 240ms var(--ease-out), transform 200ms var(--ease-out);
}
.auth-submit:hover:not(:disabled) { background: var(--rose-deep); transform: translateY(-1px); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-toggle {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms;
}
.auth-toggle:hover { color: var(--rose-deep); }

body.no-auth .cover-cta { opacity: 0.4; pointer-events: none; }

/* ============================================
   v3y: Emil Kowalski — list item enter (reasons / wishes)
   每次 render 时元素 fade-up，反馈用户"我刚加/改了"
   短 duration（200ms）+ 用 animation 而不是 transition（render 时机稳定）
   ============================================ */
.reasons-tag,
.wish-item {
  animation: item-enter 240ms var(--ease-out) both;
  /* 错落 stagger：前 10 个 30ms 递进 */
}
.reasons-tag:nth-child(1), .wish-item:nth-child(1) { animation-delay: 0ms; }
.reasons-tag:nth-child(2), .wish-item:nth-child(2) { animation-delay: 30ms; }
.reasons-tag:nth-child(3), .wish-item:nth-child(3) { animation-delay: 60ms; }
.reasons-tag:nth-child(4), .wish-item:nth-child(4) { animation-delay: 90ms; }
.reasons-tag:nth-child(5), .wish-item:nth-child(5) { animation-delay: 120ms; }
.reasons-tag:nth-child(6), .wish-item:nth-child(6) { animation-delay: 150ms; }
.reasons-tag:nth-child(7), .wish-item:nth-child(7) { animation-delay: 180ms; }
.reasons-tag:nth-child(8), .wish-item:nth-child(8) { animation-delay: 210ms; }
.reasons-tag:nth-child(9), .wish-item:nth-child(9) { animation-delay: 240ms; }
.reasons-tag:nth-child(10), .wish-item:nth-child(10) { animation-delay: 270ms; }
@keyframes item-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* v3u: Lightbox thumbnail strip — Apple-style glass film roll */
.lightbox-thumbs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255,253,249,0.18), rgba(252,247,240,0.12));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 18px -4px rgba(0,0,0,0.4);
  z-index: 5;
  max-width: 88vw;
  overflow-x: auto;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 1px solid rgba(255,255,255,0.3);
  transition: opacity 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
  flex-shrink: 0;
}
.lightbox-thumb:hover { opacity: 0.85; transform: translateY(-1px); }
.lightbox-thumb.active { opacity: 1; border-color: var(--rose-deep); transform: translateY(-2px); }
