/* =========================================================
   我们 · 情路 —— 旅途手账风格
   ========================================================= */

:root {
  --paper: #f7f2ea;
  --paper-deep: #f1e9dd;
  --paper-card: #fffdf8;
  --ink: #3c332c;
  --ink-soft: #5f5348;
  --muted: #8d7f70;
  --line: rgba(60, 51, 44, 0.12);
  --accent: #b5523b;
  --accent-deep: #8f3d2c;
  --accent-soft: #d9a48f;
  --sand: #e8dcc9;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --shadow-sm: 0 6px 18px rgba(76, 56, 36, 0.08);
  --shadow-md: 0 18px 50px rgba(76, 56, 36, 0.12);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================
   页头
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(247, 242, 234, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
  margin: 0 0.1em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.music-toggle:hover {
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 12px;
}

.bars i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
}

.music-toggle.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f2;
}

.music-toggle.is-playing .bars i {
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.music-toggle.is-playing .bars i:nth-child(2) {
  animation-delay: 0.25s;
}

.music-toggle.is-playing .bars i:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes equalize {
  from { height: 3px; }
  to { height: 11px; }
}

/* =========================================================
   首屏
   ========================================================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 16vh, 170px) clamp(20px, 5vw, 56px) 90px;
  overflow: hidden;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  animation: rise 0.9s var(--ease) both;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 12vw, 8.6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hero-heart {
  position: absolute;
  top: 0.06em;
  right: -0.62em;
  font-size: 0.2em;
  color: var(--accent);
  animation: heartbeat 2.4s ease-in-out infinite;
}

.hero-lead {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero-body {
  max-width: 30em;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #fff8f2;
  box-shadow: 0 10px 24px rgba(181, 82, 59, 0.22);
}

.btn-solid:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(181, 82, 59, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-small {
  min-height: 38px;
  padding: 7px 18px;
  font-size: 0.82rem;
}

.day-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 40px;
  padding: 10px 20px;
  border: 1px dashed var(--accent-soft);
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.7);
  transform: rotate(-1deg);
  box-shadow: var(--shadow-sm);
}

.day-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.day-number {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.day-unit {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 首屏照片 */
.hero-photo {
  position: relative;
  width: min(100%, 430px);
  margin: 0 0 0 auto;
  z-index: 2;
  animation: rise 1.1s 0.15s var(--ease) both;
}

.arch {
  position: relative;
  padding: 11px;
  border-radius: 300px 300px 14px 14px;
  background: var(--paper-card);
  box-shadow: var(--shadow-md);
  transform: rotate(1.4deg);
}

.arch::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(181, 82, 59, 0.22);
  border-radius: 280px 280px 8px 8px;
  pointer-events: none;
}

.arch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 290px 290px 8px 8px;
  background: var(--sand);
}

.hero-photo figcaption {
  position: relative;
  margin-top: 26px;
  text-align: center;
}

.tape {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgba(226, 196, 152, 0.55);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 2px 6px rgba(76, 56, 36, 0.08);
}

.hero-photo figcaption p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.stamp {
  position: absolute;
  top: -26px;
  right: -20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(181, 82, 59, 0.75);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  transform: rotate(12deg);
  background: rgba(247, 242, 234, 0.4);
}

.stamp small {
  font-family: var(--sans);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  opacity: 0.8;
}

/* 浮动爱心 */
.floating-hearts {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  bottom: -40px;
  color: rgba(181, 82, 59, 0.14);
  font-size: 18px;
  animation: drift 16s linear infinite;
}

.floating-hearts span:nth-child(1) { left: 6%; font-size: 14px; animation-duration: 18s; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 16%; font-size: 22px; animation-duration: 22s; animation-delay: 3s; }
.floating-hearts span:nth-child(3) { left: 28%; font-size: 12px; animation-duration: 15s; animation-delay: 7s; }
.floating-hearts span:nth-child(4) { left: 38%; font-size: 18px; animation-duration: 20s; animation-delay: 1s; }
.floating-hearts span:nth-child(5) { left: 48%; font-size: 26px; animation-duration: 24s; animation-delay: 9s; }
.floating-hearts span:nth-child(6) { left: 58%; font-size: 14px; animation-duration: 17s; animation-delay: 5s; }
.floating-hearts span:nth-child(7) { left: 68%; font-size: 20px; animation-duration: 21s; animation-delay: 11s; }
.floating-hearts span:nth-child(8) { left: 78%; font-size: 13px; animation-duration: 16s; animation-delay: 2s; }
.floating-hearts span:nth-child(9) { left: 88%; font-size: 24px; animation-duration: 23s; animation-delay: 6s; }
.floating-hearts span:nth-child(10) { left: 94%; font-size: 16px; animation-duration: 19s; animation-delay: 12s; }

@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 0.7; }
  100% { transform: translateY(-108vh) rotate(300deg); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--accent-soft));
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.16); }
}

/* =========================================================
   数字条
   ========================================================= */

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(60, 51, 44, 0.1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 30px 12px 28px;
  background: var(--paper-deep);
}

.stat strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.stat span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* =========================================================
   通用 section
   ========================================================= */

.section-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.section-sub {
  max-width: 36em;
  margin: 16px auto 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--muted);
}

/* =========================================================
   信件
   ========================================================= */

.letter-section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 130px) clamp(18px, 5vw, 56px);
  background: linear-gradient(to bottom, var(--paper), #f3ebde 55%, var(--paper));
}

.letter-card {
  position: relative;
  max-width: 820px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: clamp(34px, 6vw, 68px);
  background: var(--paper-card);
  border: 1px solid rgba(60, 51, 44, 0.09);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.letter-card::before,
.letter-card::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 92px;
  height: 26px;
  background: rgba(226, 196, 152, 0.5);
  box-shadow: 0 2px 6px rgba(76, 56, 36, 0.07);
}

.letter-card::before {
  left: 28px;
  transform: rotate(-3deg);
}

.letter-card::after {
  right: 28px;
  transform: rotate(2.5deg);
}

.letter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.letter-date {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.letter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.letter-pdf {
  padding-bottom: 2px;
  border-bottom: 1px dotted var(--accent-soft);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.letter-pdf:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.letter-seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(181, 82, 59, 0.55);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transform: rotate(-8deg);
}

.letter-greeting {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.letter-body p {
  margin: 0 0 1.15em;
  font-size: 1.02rem;
  line-height: 2.1;
  text-indent: 2em;
  color: var(--ink-soft);
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-body strong {
  color: var(--accent-deep);
  font-weight: 600;
}

.letter-highlight {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: #f8eee2;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--accent-deep);
  text-indent: 0 !important;
}

.letter-wish {
  color: var(--muted) !important;
}

.letter-sign {
  margin: 44px 0 0;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.letter-sign span {
  color: var(--accent);
}

/* =========================================================
   情路时间线
   ========================================================= */

.journey-section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 130px) clamp(18px, 5vw, 56px);
  background: var(--paper-deep);
  border-top: 1px solid rgba(60, 51, 44, 0.06);
  border-bottom: 1px solid rgba(60, 51, 44, 0.06);
}

.route {
  position: relative;
  max-width: 780px;
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding: 0;
  list-style: none;
}

.route::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-soft), rgba(181, 82, 59, 0.18) 85%, transparent);
}

.route-item {
  position: relative;
  padding-left: 76px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.route-item:last-child {
  margin-bottom: 0;
}

.route-node {
  position: absolute;
  left: 0;
  top: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  background: var(--paper-card);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 6px rgba(241, 233, 221, 0.9);
}

.route-node::after {
  content: "";
  position: absolute;
  right: -33px;
  top: 50%;
  width: 33px;
  height: 1px;
  background: rgba(181, 82, 59, 0.18);
}

.route-card {
  max-width: 620px;
  padding: clamp(22px, 3.4vw, 30px) clamp(22px, 4vw, 34px);
  background: var(--paper-card);
  border: 1px solid rgba(60, 51, 44, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.route-tag {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.route-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.route-card p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* =========================================================
   相册
   ========================================================= */

.gallery-section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 130px) clamp(14px, 4vw, 48px) clamp(70px, 10vw, 110px);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: clamp(34px, 5vw, 52px) auto 20px;
  padding: 0 4px;
}

.gallery-count {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.gallery {
  max-width: 1280px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 18px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 7px 7px 10px;
  background: var(--paper-card);
  border: 1px solid rgba(60, 51, 44, 0.06);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.photo-card:nth-child(4n + 2) { --tilt: 0.45deg; }
.photo-card:nth-child(4n + 4) { --tilt: -0.4deg; }
.photo-card:nth-child(7n + 3) { --tilt: 0.3deg; }

.photo-card:hover,
.photo-card:focus-within {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-md);
}

.photo-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.photo-open img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--sand);
}

.photo-caption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 4px 1px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.photo-num {
  flex: none;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* =========================================================
   灯箱
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 20, 16, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.25s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  z-index: 2;
}

.lb-btn {
  border: 1px solid rgba(255, 248, 240, 0.28);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
  color: #f6ece0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lb-play {
  padding: 8px 18px;
}

.lb-close {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1rem;
}

.lb-btn:hover {
  background: rgba(255, 248, 240, 0.18);
  border-color: rgba(255, 248, 240, 0.5);
}

.lb-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f2;
}

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 100%);
}

.lb-figure img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: #201914;
  transition: opacity 0.25s var(--ease);
}

.lb-figure img.is-loading {
  opacity: 0.35;
}

.lb-caption {
  margin-top: 18px;
  max-width: 700px;
  text-align: center;
  color: #f2e8dc;
}

.lb-counter {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
}

.lb-caption p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 248, 240, 0.25);
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.08);
  color: #f6ece0;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lb-nav:hover {
  background: rgba(255, 248, 240, 0.18);
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { transform: translateY(-50%) translateX(2px); }

body.lightbox-open {
  overflow: hidden;
}

/* =========================================================
   页脚 / 浮动控件
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 100px) 24px clamp(50px, 7vw, 76px);
  text-align: center;
  background: linear-gradient(to bottom, var(--paper), #ede3d4);
  border-top: 1px solid rgba(60, 51, 44, 0.07);
}

.footer-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 0.16em;
  color: var(--ink);
}

.footer-line {
  margin: 12px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-small {
  margin: 26px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgba(141, 127, 112, 0.8);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.back-top:hover {
  transform: translateY(-3px);
  color: var(--accent);
}

.back-top[hidden] {
  display: none;
}

.music-hint {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 85;
  transform: translateY(-10px);
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(60, 51, 44, 0.9);
  color: #f7f2ea;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.music-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   滚动进入动画
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1100px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(4.2rem, 16vw, 7rem);
  }

  .hero-body {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-photo {
    width: min(78vw, 360px);
    margin: 0 auto;
  }

  .stamp {
    right: -8px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .music-toggle {
    margin-left: auto;
  }

  .gallery {
    column-count: 2;
    column-gap: 12px;
  }

  .photo-card {
    margin-bottom: 12px;
    padding: 5px 5px 8px;
  }

  .photo-caption {
    padding: 8px 3px 1px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .photo-num {
    font-size: 0.64rem;
  }

  .lb-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  .lb-figure img {
    max-height: 68vh;
  }

  .lb-caption p {
    font-size: 0.9rem;
  }

  .lb-play {
    padding: 7px 14px;
    font-size: 0.74rem;
  }

  .music-hint {
    top: 72px;
    right: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .music-text {
    display: none;
  }

  .music-toggle {
    padding: 8px 12px;
  }

  .hero {
    padding-top: 100px;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }

  .hero-lead {
    font-size: 1.35rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .day-badge {
    padding: 9px 15px;
  }

  .day-number {
    font-size: 1.6rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 22px 10px 20px;
  }

  .route-item {
    padding-left: 64px;
  }

  .route-node {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .route::before {
    left: 19px;
  }

  .route-node::after {
    right: -27px;
    width: 27px;
  }

  .letter-card::before,
  .letter-card::after {
    width: 64px;
  }

  .letter-top {
    margin-bottom: 24px;
  }

  .letter-seal {
    width: 54px;
    height: 54px;
    font-size: 0.7rem;
  }

  .letter-body p {
    font-size: 0.98rem;
    line-height: 2;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lb-bar {
    padding: 12px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

/* =========================================================
   动效偏好
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .floating-hearts {
    display: none;
  }
}
