:root {
  --bg:        #fcfaf7;
  --card:      rgba(255,255,255,0.55);
  --card-line: rgba(255,255,255,0.6);
  --text:      #2e1f1b;
  --text-soft: #6d534b;
  --text-muted:#a39288;
  --primary:   #3e2b25;
  --primary-text: #fffbf6;
  --accent:    #d4a373;
  --shadow:    rgba(62,43,37,0.08);
  --shadow-hover: rgba(62,43,37,0.16);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --maxw: 1080px;
  --gut:  clamp(1rem, 4vw, 2.4rem);
}

/* ===== 可可暗色主题 ===== */
[data-theme="cocoa"] {
  --bg:        #231a16;
  --card:      rgba(48,37,32,0.58);
  --card-line: rgba(255,251,246,0.10);
  --text:      #f5ebe3;
  --text-soft: #d6c6bb;
  --text-muted:#a7978b;
  --primary:   #e8d4c4;
  --primary-text: #2e1f1b;
  --accent:    #e0b17d;
  --shadow:    rgba(0,0,0,0.28);
  --shadow-hover: rgba(0,0,0,0.38);
}
[data-theme="cocoa"] .bg-base { background: var(--bg); }
[data-theme="cocoa"] .blob-1 { background: #4a352a; opacity: 0.35; }
[data-theme="cocoa"] .blob-2 { background: #5c3d2e; opacity: 0.28; }
[data-theme="cocoa"] .blob-3 { background: #3f2f26; opacity: 0.32; }
[data-theme="cocoa"] .blob-4 { background: #4a3429; opacity: 0.25; }
[data-theme="cocoa"] .spotlight { background: radial-gradient(circle, rgba(224,177,125,0.14) 0%, rgba(224,177,125,0) 70%); }
[data-theme="cocoa"] .gate { background: var(--bg); }
[data-theme="cocoa"] .loader { background: var(--bg); }
[data-theme="cocoa"] .film-strip { background: #0f0a08; }
[data-theme="cocoa"] .film-photo img { box-shadow: 0 10px 30px rgba(0,0,0,0.55); }
[data-theme="cocoa"] .lb-main { background: #15100d; }
[data-theme="cocoa"] .theme-toggle { background: rgba(245,235,227,0.12); border-color: rgba(245,235,227,0.18); color: #f5ebe3; }
[data-theme="cocoa"] .theme-toggle:hover { background: rgba(245,235,227,0.20); }
[data-theme="cocoa"] .theme-toggle .moon { opacity: 1; transform: translateY(0); }
[data-theme="cocoa"] .theme-toggle .sun { opacity: 0; transform: translateY(12px); }
[data-theme="cocoa"] .capsule-text { background: rgba(30,23,19,0.55); color: var(--text); }
[data-theme="cocoa"] .capsule-text:focus { background: rgba(30,23,19,0.75); box-shadow: 0 0 0 4px rgba(224,177,125,0.12); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.75; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: "Playfair Display", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif; }
.serif-cn { font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif; }
a { color: inherit; text-decoration: none; }

.bg-base { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.blob { position: fixed; border-radius: 50%; filter: blur(85px); pointer-events: none; z-index: 0; }
.blob-1 { width: 40vw; height: 40vw; top: -10vw; left: -8vw; background: #f6e7c6; opacity: 0.6; }
.blob-2 { width: 34vw; height: 34vw; top: 14vh; right: -10vw; background: #f3d8c8; opacity: 0.5; }
.blob-3 { width: 32vw; height: 32vw; bottom: -8vw; left: 24vw; background: #ecd9b8; opacity: 0.55; }
.blob-4 { width: 26vw; height: 26vw; bottom: 8vh; right: 16vw; background: #f7e3cf; opacity: 0.45; }

main, footer { position: relative; z-index: 1; }

/* 顶部品牌区（首页） */
.brand { text-align: center; padding: 4.5rem var(--gut) 1.2rem; }
.brand h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 600; letter-spacing: 0.08em; color: var(--text); margin-bottom: 0.5rem; }
.brand .to { font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: var(--accent); letter-spacing: 0.1em; margin-bottom: 1.1rem; }
.brand .desc { max-width: 660px; margin: 0 auto; color: var(--text-soft); font-size: clamp(0.95rem, 2.2vw, 1.05rem); line-height: 1.9; }

.cta-row { max-width: var(--maxw); margin: 0 auto; padding: 0.8rem var(--gut) 2rem; display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: var(--primary-text);
  border: none; border-radius: var(--radius-pill); padding: 0.95rem 1.7rem; font-size: 0.9rem; letter-spacing: 0.04em; cursor: pointer;
  box-shadow: 0 10px 28px rgba(62,43,37,0.18); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(62,43,37,0.24); }
.btn-pill .en { opacity: 0.72; font-size: 0.85em; }
.tagline { color: var(--text-muted); font-size: 0.78rem; line-height: 1.9; letter-spacing: 0.06em; text-align: left; }
.tagline .en { display: block; }
.tagline .cn { display: block; color: var(--text-soft); }

/* 数据卡片 */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 2.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat {
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 1.3rem 1rem; text-align: center; box-shadow: 0 12px 30px var(--shadow);
}
.stat .v { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--text); line-height: 1; }
.stat .l { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 0.45rem; }
.stat .l .cn { color: var(--text-soft); margin-left: 0.3em; }
.stats-note { max-width: var(--maxw); margin: -1.6rem auto 0; padding: 0 var(--gut) 2.2rem; text-align: center; font-family: var(--serif-cn, "Noto Serif SC", serif); font-size: 0.95rem; color: var(--text-soft); letter-spacing: 0.04em; }
.letter-replay { margin: 1.4rem auto 0; }

/* 故事展示区 */
.showcase { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 3rem; display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.4rem; align-items: stretch; }
.card {
  background: var(--card); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--card-line); border-radius: var(--radius-xl); box-shadow: 0 18px 46px var(--shadow); overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.card:hover { box-shadow: 0 26px 58px var(--shadow-hover); transform: translateY(-2px); }

.featured {
  display: flex;
  min-height: 420px;
}
.featured .visual {
  flex: 1.1; position: relative; min-height: 260px; background: linear-gradient(135deg, #f3dcc8, #f7e8d8);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.12em;
}
.featured .visual[hidden], .featured.no-visual .visual { display: none; }
.featured .visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.featured.no-visual { min-height: auto; flex-direction: column; text-align: center; }
.featured.no-visual .body { align-items: center; }
.featured.no-visual .desc { max-width: 34ch; }
.featured.no-visual .meta { justify-content: center; width: 100%; }
.featured .tag {
  position: absolute; bottom: 1.1rem; left: 1.1rem; background: rgba(255,251,246,0.85); border: 1px solid var(--card-line);
  border-radius: var(--radius-pill); padding: 0.4rem 0.85rem; font-size: 0.7rem; color: var(--text-soft); letter-spacing: 0.05em; backdrop-filter: blur(4px);
}
.featured .body { flex: 1; padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.featured.no-visual .btn-pill { width: auto; min-width: 160px; }
.featured:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.featured .label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.featured .label-row .cn { text-transform: none; margin-left: 0.4em; color: var(--text-muted); }
.heart { color: var(--accent); font-size: 1.1rem; }
.featured h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.45rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.featured .sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.featured .desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.85; margin-bottom: 1.6rem; }
.featured .meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, auto));
  justify-content: start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  text-align: left;
}
.meta-item .label { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
.meta-item .label .cn { text-transform: none; margin-left: 0.4em; }
.meta-item .value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.featured .btn-pill { width: 100%; justify-content: center; }

/* 无图状态：恢复居中文本布局 */
.featured.no-visual::before { display: none; }
.featured.no-visual {
  min-height: auto;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.featured.no-visual .visual { display: none; }
.featured.no-visual .body { width: 100%; margin-left: 0; align-items: center; }
.featured.no-visual .desc { max-width: 34ch; }
.featured.no-visual .meta { justify-content: center; width: 100%; }
.featured.no-visual .btn-pill { width: auto; min-width: 160px; }

.menu-list { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.menu-item {
  display: flex; align-items: center; gap: 0.9rem; background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 0.85rem; box-shadow: 0 10px 26px var(--shadow); cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  user-select: none;
}
.menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-item:hover { box-shadow: 0 16px 38px var(--shadow-hover); transform: translateY(-2px); }
.menu-item .thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3dcc8, #f7e8d8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.menu-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .info { flex: 1; min-width: 0; }
.menu-item h3 { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .sub { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item .sub .cn { color: var(--text-soft); }
.menu-item .price { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-left: 0.3rem; white-space: nowrap; }
.menu-item .chev { width: 9px; height: 9px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); opacity: 0.6; flex: 0 0 auto; }

/* 里程碑列表底部装饰卡片 */
.menu-decor {
  margin-top: auto;
  background: linear-gradient(135deg, #FFF9E6, #FFF3D1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid #FCE8B8; border-radius: var(--radius-lg);
  padding: 0.95rem 1.1rem; box-shadow: 0 10px 26px var(--shadow);
  display: flex; align-items: center; justify-content: flex-start; gap: 0.9rem;
  color: var(--text-soft); font-size: 0.82rem; letter-spacing: 0.04em;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.menu-decor:hover { box-shadow: 0 16px 38px var(--shadow-hover); transform: translateY(-2px); }
.menu-decor .pixel-mango { display: inline-flex; line-height: 0; }
.menu-decor .pixel-mango svg { display: block; width: 42px; height: auto; image-rendering: pixelated; }
.menu-decor .text { display: flex; flex-direction: column; gap: 0.15rem; }
.menu-decor .en { font-size: 0.68rem; letter-spacing: 0.08em; color: #B88900; text-transform: uppercase; }
.menu-decor .cn { color: #7A5C00; font-weight: 500; }

/* 里程碑电影胶片灯箱 */
.film-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.film-lightbox.open { opacity: 1; visibility: visible; }
.film-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 20, 16, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.film-inner {
  position: relative; z-index: 1;
  width: min(980px, 100%);
  max-height: 90vh;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.film-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.film-head .t { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: 0.03em; }
.film-head .c { font-size: 0.78rem; color: rgba(255,255,255,0.72); margin-top: 0.25rem; }
.film-close {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.film-close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.film-strip-wrap {
  display: flex; align-items: center; gap: 0.8rem;
}
.film-nav {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.film-nav:hover { transform: scale(1.08); background: #fff; }
.film-frame {
  flex: 1; min-width: 0; overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}
.film-strip {
  position: relative;
  display: flex; align-items: center;
  gap: 1.1rem;
  padding: 26px calc(50% - 150px);
  background: #15100d;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.film-strip::-webkit-scrollbar { display: none; }
/* 胶片齿孔 */
.film-strip::before,
.film-strip::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 12px;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.78) 2px, transparent 2.5px);
  background-size: 18px 12px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.film-strip::before { top: 7px; }
.film-strip::after { bottom: 7px; }
.film-photo {
  flex: 0 0 300px;
  scroll-snap-align: center;
  opacity: 0.42;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 0; border: none; background: transparent; cursor: pointer;
}
.film-photo.active { opacity: 1; transform: scale(1); }
.film-photo img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  pointer-events: none;
}
.film-foot {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  max-width: 560px; margin: 0 auto;
}
.film-date { font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.78); margin-bottom: 0.4rem; }
.film-caption {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  font-size: 1.05rem; line-height: 1.7; color: #fff; margin-bottom: 0.5rem;
}
.film-caption:empty { display: none; }
.film-desc { font-size: 0.98rem; line-height: 1.75; }

/* 足迹（首页，城市卡跳转到城市页） */
.footprints { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 3rem; }
.footprints .label-row { display: flex; justify-content: center; gap: 0.5rem; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.4rem; }
.footprints .label-row .cn { text-transform: none; color: var(--text-muted); }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.city {
  position: relative;
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; box-shadow: 0 12px 30px var(--shadow);
  display: flex; flex-direction: column; gap: 0.2rem; transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.city:hover { box-shadow: 0 16px 38px var(--shadow-hover); transform: translateY(-2px); }
.city .cover { height: 96px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 0.6rem; background-color: #f3dcc8; }
.city .name { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.city .en { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }
.city .pin { margin-top: 0.5rem; font-size: 0.7rem; color: var(--accent); }
/* 邮戳式角标：城市序号 */
.city .stamp {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px dashed rgba(212, 163, 115, 0.75);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.4); color: var(--accent);
  transform: rotate(-8deg); pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}
.city:hover .stamp { transform: rotate(0deg) scale(1.05); }
.city .stamp-ring { font-size: 0.95rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.city .stamp-txt { font-size: 0.4rem; letter-spacing: 0.12em; margin-top: 2px; opacity: 0.82; }
/* 未解锁城市（未来扩展用）：灰度 + 虚线边框，像待寄出的明信片 */
.city.locked { filter: grayscale(1); opacity: 0.72; border-style: dashed; }
.city.locked:hover { transform: none; box-shadow: 0 12px 30px var(--shadow); }
.city.locked .cover { background-color: #e9e2da; }

/* 结尾信 */
.letter-wrap { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gut) 4rem; }
.letter-card {
  background: var(--card); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--card-line);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3rem); box-shadow: 0 18px 46px var(--shadow); text-align: center;
}
.letter-card .label-row { display: flex; justify-content: center; gap: 0.5rem; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem; }
.letter-card .label-row .cn { text-transform: none; color: var(--text-muted); }
.letter-card h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; margin-bottom: 1.3rem; }
.letter-card .paper { max-width: 620px; margin: 0 auto; text-align: left; color: var(--text-soft); font-size: 0.95rem; line-height: 2; }
.letter-card .paper p + p { margin-top: 1rem; }
.letter-card .sign { margin-top: 1.4rem; text-align: right; color: var(--text); letter-spacing: 0.05em; }

footer { text-align: center; padding: 2rem var(--gut) 3rem; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.18em; }
footer .heart { color: var(--accent); }

/* ===== 城市章节页 ===== */
.back {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 1.4rem var(--gut) 0; padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--card-line); color: var(--text-soft);
  font-size: 0.82rem; letter-spacing: 0.05em; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.back:hover { transform: translateX(-3px); box-shadow: 0 10px 26px var(--shadow); }

.chapter { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem var(--gut) 3rem; }
.ch-head { text-align: center; margin-bottom: 1.6rem; }
.ch-label { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.6rem; }
.ch-name { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 600; letter-spacing: 0.06em; color: var(--text); line-height: 1.1; }
.ch-en { font-size: 0.95rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.3rem; }
.ch-cover {
  width: 100%; max-width: 760px; margin: 1.6rem auto 0; aspect-ratio: 16/9; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f3dcc8, #f7e8d8) center/cover no-repeat;
  box-shadow: 0 22px 56px var(--shadow); overflow: hidden;
}
.ch-meta { text-align: center; margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.1em; }

.gallery { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 4rem; }
.gallery .label-row { display: flex; justify-content: center; gap: 0.5rem; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.4rem; }
.gallery .label-row .cn { text-transform: none; color: var(--text-muted); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.g-card {
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  box-shadow: 0 12px 30px var(--shadow); transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.g-card:hover { box-shadow: 0 16px 40px var(--shadow-hover); transform: translateY(-3px); }
.g-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.g-empty { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* 城市页：按具体地点分节 */
.place { margin-bottom: 2.6rem; }
.place:last-child { margin-bottom: 0; }
.place-name {
  display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.1rem;
  font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: 0.04em;
}
.place-name::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* 照片放大弹层（城市页内） */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  background: rgba(30,22,18,0.42);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-inner {
  width: min(960px, 100%);
  max-height: 92vh;
  background: linear-gradient(180deg, #fffdfa 0%, #f9f3eb 100%);
  border: 1px solid rgba(212,163,115,0.35);
  border-radius: 26px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 30px 90px rgba(0,0,0,0.28),
    0 0 0 1px rgba(0,0,0,0.04) inset;
}
.lb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(212,163,115,0.14);
  background: rgba(255,255,255,0.45);
}
.lb-head .t { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.lb-head .c { font-size: 0.72rem; color: var(--text-muted); margin-left: 0.5rem; }
.lb-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(212,163,115,0.2);
  font-size: 1.2rem; line-height: 1; color: var(--text-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.lb-close:hover { transform: rotate(90deg); background: #fff; }
.lb-main {
  position: relative;
  background: #f7f1e8;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
  padding: 1.6rem 4.2rem;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.lb-main.dragging { cursor: grabbing; }
.lb-main img {
  max-width: 100%; max-height: 52vh; object-fit: contain; display: block;
  border-radius: 10px;
  border: 12px solid #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.4rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-thumbs {
  display: flex; gap: 0.55rem;
  padding: 1rem 1.4rem 1.3rem;
  overflow-x: auto;
  border-top: 1px solid rgba(212,163,115,0.12);
  background: rgba(255,255,255,0.35);
}
.lb-thumbs img { width: 76px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; opacity: 0.65; transition: opacity 0.2s ease, transform 0.2s ease; }
.lb-thumbs img:hover { opacity: 0.9; transform: translateY(-2px); }
.lb-thumbs img.active { border-color: var(--accent); opacity: 1; }
.lb-caption {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  text-align: center; font-size: 1rem; line-height: 1.8; color: #4a3b32;
  max-width: 680px;
  margin: 1.1rem auto 0.6rem;
  padding: 1rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(212,163,115,0.25);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.lb-caption:empty { display: none; }

/* 加载页 */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-heart { font-size: 3rem; color: var(--accent); animation: heartbeat 1.2s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}
.loader-text { color: var(--text-soft); font-size: 0.82rem; letter-spacing: 0.14em; }

/* ===== 暗号门 ===== */
.gate {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--card); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--card-line); border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  box-shadow: 0 28px 70px var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gate-card.shake { animation: gateShake 0.45s ease; }
@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.gate-card.gate-success { transform: scale(0.98); opacity: 0.92; }
.gate-seal {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8a87c);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 8px 24px rgba(212,163,115,0.28);
  margin-bottom: 1.2rem;
}
.gate-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.gate-sub { color: var(--text-soft); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.8rem; }
.gate-label { display: block; color: var(--text); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.7rem; }
.gate-input {
  width: 100%; padding: 0.95rem 1.1rem;
  border: 1px solid var(--card-line); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  color: var(--text); font-size: 1rem; text-align: center; letter-spacing: 0.05em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gate-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(212,163,115,0.12); }
.gate-hint { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.55rem; margin-bottom: 1.4rem; }
.gate-error { min-height: 1.4em; color: #c45a4a; font-size: 0.85rem; margin-top: 0.7rem; }
.gate .btn-pill { width: 100%; }

/* 进入仪式：手写邀请语 + 输入时门缝微光 + 答对后封口拆开 */
.gate-glow {
  position: absolute; left: 50%; top: 16%; width: 240px; height: 240px;
  transform: translate(-50%, -50%) scale(0.55);
  background: radial-gradient(circle, rgba(255, 214, 158, 0.6), rgba(255, 214, 158, 0) 66%);
  opacity: 0; pointer-events: none; transition: opacity 0.55s ease, transform 0.65s ease;
}
.gate-card.glowing { box-shadow: 0 30px 86px rgba(212, 163, 115, 0.38); }
.gate-card.glowing .gate-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gate-invite {
  font-family: "Ma Shan Zheng", "Songti SC", cursive; font-size: 1.02rem; line-height: 1.7;
  color: var(--accent); margin: 0 0 1.1rem; letter-spacing: 0.04em;
  opacity: 0; animation: inviteIn 1.1s ease 0.25s forwards;
}
@keyframes inviteIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gate-seal { transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease; }
.gate-card.unsealing { animation: gateUnseal 0.82s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.gate-card.unsealing .gate-seal { transform: scale(1.45) rotate(20deg); opacity: 0; box-shadow: 0 0 40px rgba(255, 221, 170, 0.8); }
@keyframes gateUnseal {
  0% { transform: scale(1); opacity: 0.95; }
  35% { transform: scale(1.04); opacity: 1; box-shadow: 0 32px 92px rgba(212, 163, 115, 0.45); }
  100% { transform: scale(1.07) translateY(-16px); opacity: 0; filter: blur(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-invite { animation: none; opacity: 1; }
  .gate-card.unsealing { animation: none; opacity: 0; }
}

/* 首页 Hero 入场 */
.hero-el { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(7px); transition: opacity 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.95s ease; }
body.loaded .hero-el { opacity: 1; transform: none; filter: none; }
.hero-1 { transition-delay: 0.2s; }
.hero-2 { transition-delay: 0.48s; }
.hero-3 { transition-delay: 0.74s; }
.hero-4 { transition-delay: 1.0s; }

/* Hero 标题装饰线 */
.brand h1 { position: relative; display: inline-block; }
.brand h1::after {
  content: ""; position: absolute; left: 50%; bottom: -0.35rem; transform: translateX(-50%) scaleX(0);
  width: 2.6rem; height: 2px; border-radius: 2px; background: var(--accent);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
body.loaded .brand h1::after { transform: translateX(-50%) scaleX(1); }

/* Hero 标题心跳 pulse（只播一次） */
.brand h1 { animation: heroPulse 1.6s ease-in-out 0.9s 1; }
@keyframes heroPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.03); }
  55% { transform: scale(1); }
  75% { transform: scale(1.015); }
}

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 打字机光标 */
.typing-cursor {
  display: inline-block; width: 2px; height: 1em; background: var(--accent);
  margin-left: 3px; vertical-align: middle; animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 页面淡入 */
.fade-in { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== 柔和光晕光标 ===== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 52px; height: 52px; border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(212,163,115,0.18) 0%, rgba(212,163,115,0.08) 42%, transparent 72%);
  border: 1px solid rgba(212,163,115,0.22);
  box-shadow: 0 0 28px rgba(212,163,115,0.18), inset 0 0 12px rgba(212,163,115,0.08);
  opacity: 0; transition: opacity 0.35s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
  mix-blend-mode: normal;
}
.cursor.is-moving { opacity: 0.85; }
.cursor.heart {
  width: 64px; height: 64px;
  background: radial-gradient(circle at center, rgba(212,163,115,0.24) 0%, rgba(212,163,115,0.10) 45%, transparent 75%);
  border-color: rgba(212,163,115,0.32);
  box-shadow: 0 0 36px rgba(212,163,115,0.24);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent);
}
.cursor.mango {
  width: 58px; height: 58px;
  background: radial-gradient(circle at center, rgba(245,166,35,0.18) 0%, rgba(245,166,35,0.08) 45%, transparent 75%);
  border-color: rgba(245,166,35,0.28);
  box-shadow: 0 0 32px rgba(245,166,35,0.18);
}
.cursor.mango svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }

body.cursor-none, body.cursor-none * { cursor: none !important; }

@media (pointer: coarse) {
  .cursor { display: none; }
  body.cursor-none, body.cursor-none * { cursor: auto !important; }
}

/* ===== 里程碑 Hover 预览 ===== */
.menu-item { position: relative; }
.menu-item .hover-preview {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(0.92);
  width: 130px; height: 96px; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); box-shadow: 0 18px 44px var(--shadow-hover);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  pointer-events: none; z-index: 10;
}
.menu-item .hover-preview img { width: 100%; height: 100%; object-fit: cover; }
.menu-item:hover .hover-preview { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }

/* ===== 漂浮氛围元素 ===== */
.float-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.float-el {
  position: absolute; color: var(--accent); opacity: 0.12; user-select: none;
  animation: floatY linear infinite;
}
.float-el.heart::before { content: "♥"; }
.float-el.star::before { content: "✦"; }
.float-el.mango::before { content: "🥭"; }
@keyframes floatY {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ===== 光斑跟随鼠标 ===== */
.spotlight {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,240,0.55) 0%, rgba(255,248,240,0) 70%);
  pointer-events: none; transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  filter: blur(40px);
}

/* ===== 旅行路线地图 ===== */
.route-map {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gut) 3rem;
  position: relative;
}
.route-map .label-row {
  display: flex; justify-content: center; gap: 0.5rem;
  color: var(--accent); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.route-map .label-row .cn { text-transform: none; color: var(--text-muted); }
.route-svg {
  width: 100%; height: auto; display: block;
}
.route-path {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 6;
  opacity: 0.55;
}
.route-node {
  cursor: pointer; transition: transform 0.3s ease;
}
.route-node:hover { transform: scale(1.12); }
.route-node circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.route-node text { fill: var(--text); font-size: 12px; font-weight: 500; text-anchor: middle; }
.route-node .en { fill: var(--text-muted); font-size: 9px; }
.route-plane {
  fill: var(--accent); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.route-tooltip {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 8px) scale(0.92);
  width: 150px; max-width: calc(100% - 1.2rem); padding: 0.6rem; border-radius: var(--radius-lg);
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); box-shadow: 0 16px 40px var(--shadow-hover);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 10;
}
.route-tooltip.show { opacity: 1; visibility: visible; transform: translate(-50%, -10px) scale(1); }
.route-tooltip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 0.45rem; display: block; }
.route-tooltip .name { font-size: 0.9rem; font-weight: 600; color: var(--text); text-align: center; }
.route-tooltip .en { font-size: 0.65rem; color: var(--text-muted); text-align: center; letter-spacing: 0.06em; }
.route-tooltip .count { font-size: 0.68rem; color: var(--accent); text-align: center; margin-top: 0.25rem; }
.route-map { position: relative; }
.route-svg .route-node { position: relative; }

/* ===== 信件信封 ===== */
.letter-wrap { position: relative; }
.letter-card { position: relative; }
.envelope-wrap {
  max-width: 620px; margin: 0 auto;
  perspective: 1200px;
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s, opacity 0.45s ease 0.55s;
}
.envelope-wrap.is-sealed {
  grid-template-rows: 0fr;
  opacity: 0;
}
.envelope {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f7e8d8, #f3dcc8);
  border-radius: var(--radius-xl); box-shadow: 0 18px 46px var(--shadow);
  cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}
.envelope:hover { transform: translateY(-3px); box-shadow: 0 26px 58px var(--shadow-hover); }
.envelope .front {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column;
  backface-visibility: hidden; border-radius: var(--radius-xl);
}
.envelope .front .seal {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,0.12); margin-bottom: 0.8rem;
}
.envelope .front .hint { color: var(--text-soft); font-size: 0.8rem; letter-spacing: 0.08em; }
.envelope.opened { transform: rotateX(180deg); opacity: 0; pointer-events: none; transition: transform 0.8s ease, opacity 0.35s ease 0.45s; }
.letter-content {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.85s ease 0.55s, transform 0.85s ease 0.55s;
}
.letter-content.visible { opacity: 1; transform: translateY(0); }
.letter-date { text-align: center; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.06em; margin-bottom: 1.2rem; }

/* ===== 时间胶囊 ===== */
.capsule-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 4rem; }
.capsule-card {
  background: var(--card); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--card-line);
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 2.8rem);
  box-shadow: 0 18px 46px var(--shadow); text-align: center;
}
.capsule-seal {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8a87c); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 24px rgba(212,163,115,0.28);
  margin-bottom: 1.1rem;
}
.capsule-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: 1.2rem; color: var(--text); }
.capsule-hint { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.1rem; line-height: 1.7; }
.capsule-text {
  width: 100%; max-width: 560px; margin: 0 auto 1.1rem; display: block;
  padding: 1rem 1.1rem; border: 1px solid var(--card-line); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.55); color: var(--text); font-size: 0.95rem; line-height: 1.8;
  font-family: inherit; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.capsule-text:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(212,163,115,0.10); }
.capsule-locked { color: var(--text-soft); }
.capsule-lock { font-size: 2.4rem; margin-bottom: 0.6rem; }
.capsule-open-date { font-size: 0.82rem; color: var(--accent); margin-top: 0.4rem; letter-spacing: 0.04em; }

/* ===== 芒果彩蛋 ===== */
.menu-decor { cursor: pointer; position: relative; }
.menu-decor .mango-toast {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) scale(0.9);
  background: var(--card); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 0.6rem 1rem; box-shadow: 0 12px 30px var(--shadow-hover);
  color: var(--text-soft); font-size: 0.82rem; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.menu-decor.show-toast .mango-toast { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }

/* ===== 满屏小心心彩蛋 ===== */
.heart-rain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden;
}
.heart-rain span {
  position: absolute; top: -40px; color: var(--accent); font-size: 1.4rem; opacity: 0.85;
  animation: rainFall linear forwards;
}
@keyframes rainFall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ===== 唱片机音乐播放器 ===== */
.music-player {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 100;
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem 0.55rem 0.7rem; box-shadow: 0 12px 30px var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.music-player:hover { box-shadow: 0 16px 38px var(--shadow-hover); transform: translateY(-2px); }
.music-player .record {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5a4a42 0%, #2e1f1b 40%, #1a110e 55%, #2e1f1b 56%, #1a110e 100%);
  position: relative; flex: 0 0 auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.music-player .record::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.music-player .record.spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-player .info { display: flex; flex-direction: column; min-width: 0; }
.music-player .title { font-size: 0.72rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.music-player .artist { font-size: 0.65rem; color: var(--text-muted); }
.music-player .controls { display: flex; align-items: center; gap: 0.35rem; }
.music-player .controls button {
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.music-player .toggle {
  width: 30px; height: 30px;
  background: var(--primary); color: var(--primary-text);
  font-size: 0.8rem;
}
.music-player .prev, .music-player .next {
  width: 24px; height: 24px;
  background: var(--card-line); color: var(--text);
  font-size: 0.9rem; line-height: 1;
}
.music-player .controls button:hover { transform: scale(1.1); }

/* 播放器：信息行 + 均衡器 + 进度条 + 时间 */
.music-player .info { display: flex; flex-direction: column; min-width: 0; gap: 0.12rem; width: 150px; }
.music-player .info-row { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.music-player .title { font-size: 0.72rem; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-player .artist { font-size: 0.65rem; color: var(--text-muted); }
.music-player .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: 0 0 auto; }
.music-player .eq i { width: 2.5px; height: 100%; background: var(--accent); border-radius: 2px; transform: scaleY(0.3); transform-origin: bottom; transition: transform 0.2s ease; }
.music-player.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.music-player .eq i:nth-child(2) { animation-delay: 0.18s; }
.music-player .eq i:nth-child(3) { animation-delay: 0.36s; }
.music-player .eq i:nth-child(4) { animation-delay: 0.54s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.music-player .progress { position: relative; height: 4px; border-radius: 999px; background: var(--card-line); cursor: pointer; overflow: hidden; margin-top: 0.18rem; }
.music-player .progress .bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 999px; transition: width 0.15s linear; }
.music-player .progress:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.music-player .time { font-size: 0.58rem; color: var(--text-muted); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }

/* 弹层打开时：播放器缩成只露唱片的小圆点 */
.music-player.compact {
  width: 48px; height: 48px;
  padding: 0; border-radius: 50%;
  justify-content: center; overflow: hidden;
  cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.music-player.compact .info,
.music-player.compact .controls,
.music-player.compact .progress,
.music-player.compact .time { display: none; }
.music-player.compact .record {
  width: 36px; height: 36px; margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.music-player.compact .record::after { width: 10px; height: 10px; }
.music-player.compact:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .music-player.playing .eq i { animation: none; transform: scaleY(0.7); }
  .music-player .progress .bar { transition: none; }
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
  position: fixed; top: 1.1rem; right: 1.1rem; z-index: 120;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--card-line); box-shadow: 0 8px 22px var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:hover { transform: scale(1.08) rotate(8deg); box-shadow: 0 12px 30px var(--shadow-hover); }
.theme-toggle .sun, .theme-toggle .moon {
  position: absolute; font-size: 1.15rem; line-height: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.theme-toggle .sun { opacity: 1; transform: translateY(0); }
.theme-toggle .moon { opacity: 0; transform: translateY(12px); }

/* ===== 随机回忆按钮 ===== */
.memory-draw {
  position: fixed; right: 1.2rem; bottom: 5.2rem; z-index: 100;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-pill);
  padding: 0.55rem 0.95rem 0.55rem 0.75rem; box-shadow: 0 10px 26px var(--shadow);
  color: var(--text-soft); font-size: 0.82rem; letter-spacing: 0.04em;
  cursor: pointer; transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.memory-draw:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px var(--shadow-hover); }
.memory-draw:active { transform: scale(0.96); }
.memory-draw .icon { color: var(--accent); font-size: 1rem; }
.memory-draw.draw-anim { animation: drawPop 0.55s ease; }
@keyframes drawPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) rotate(-6deg); }
  65% { transform: scale(0.96) rotate(3deg); }
  100% { transform: scale(1); }
}

.memory-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.memory-modal.open { opacity: 1; visibility: visible; }
.memory-backdrop { position: absolute; inset: 0; background: rgba(28,20,16,0.68); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.memory-card {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  background: var(--card); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--card-line); border-radius: var(--radius-xl);
  padding: 1.1rem; box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}
.memory-modal.open .memory-card { transform: none; }
.memory-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.05); border: 1px solid var(--card-line);
  color: var(--text-soft); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.memory-close:hover { transform: rotate(90deg); background: rgba(0,0,0,0.08); }
.memory-pic { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; }
.memory-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.memory-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 45%, transparent 60%);
  transform: translateX(-100%); opacity: 0;
}
.memory-modal.open .memory-shine { animation: shineSweep 1s ease 0.25s; }
@keyframes shineSweep { to { transform: translateX(100%); opacity: 1; } }
.memory-from { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.3rem; }
.memory-caption { font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif; font-size: 1rem; line-height: 1.7; color: var(--text); min-height: 1.7em; }
.memory-caption:empty::before { content: "每一张，都是想你的证据。"; color: var(--text-muted); }
.memory-actions { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.3rem; }
.memory-actions .btn-pill { padding: 0.75rem 1.2rem; font-size: 0.82rem; }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--card-line); box-shadow: none; }
.btn-ghost:hover { background: var(--card); }

/* ===== 纪念日彩蛋横幅 ===== */
.occasion-banner {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%) translateY(-120%);
  z-index: 110;
  background: var(--card); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-line); border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem; box-shadow: 0 12px 30px var(--shadow);
  color: var(--text); font-size: 0.85rem; letter-spacing: 0.04em;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.occasion-banner.show { transform: translateX(-50%) translateY(0); }
.occasion-banner .heart { margin: 0 0.35rem; }

/* ===== 城市页入场动画 ===== */
.ch-head, .ch-cover, .ch-meta, .place, .g-card, .back, .route-map {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
body.loaded .back { opacity: 1; transform: none; transition-delay: 0.1s; }
body.loaded .ch-head { opacity: 1; transform: none; transition-delay: 0.2s; }
body.loaded .ch-cover { opacity: 1; transform: none; transition-delay: 0.35s; }
body.loaded .ch-meta { opacity: 1; transform: none; transition-delay: 0.5s; }
body.loaded .place { opacity: 1; transform: none; }
body.loaded .g-card { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .theme-toggle { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; }
  .music-player { bottom: 0.9rem; right: 0.9rem; gap: 0.5rem; padding: 0.45rem 0.7rem 0.45rem 0.55rem; }
  .music-player .record { width: 34px; height: 34px; }
  .music-player .record::after { width: 10px; height: 10px; }
  .music-player .title { font-size: 0.68rem; }
  .music-player .artist { font-size: 0.6rem; }
  .music-player .toggle { width: 26px; height: 26px; font-size: 0.7rem; }
  .music-player .prev, .music-player .next { width: 20px; height: 20px; font-size: 0.8rem; }
  .memory-draw { right: 0.9rem; bottom: 4.6rem; padding: 0.5rem 0.8rem 0.5rem 0.65rem; }
  .memory-draw .txt { display: none; }
  .memory-actions { flex-direction: column; }
  .memory-actions .btn-pill { width: 100%; }
  .showcase { grid-template-columns: 1fr; }
  .featured { flex-direction: column; min-height: auto; }
  .featured .visual { min-height: 220px; }
  .featured .visual img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .featured .body { padding: clamp(1.3rem, 4vw, 1.8rem); align-items: center; text-align: center; }
  .featured .desc { max-width: 34ch; }
  .featured .meta { justify-content: center; width: 100%; }
  .featured.no-visual { padding: 1.2rem; }
  .featured.no-visual .body { padding-top: clamp(1.4rem, 3vw, 2rem); }
  .film-photo { flex: 0 0 76vw; }
  .film-strip { padding: 24px calc(50% - 38vw); }
  .film-nav { flex: 0 0 36px; width: 36px; height: 36px; }
  .film-desc { font-size: 0.9rem; }
  .cta-row { gap: 1.2rem; flex-direction: column; text-align: center; }
  .tagline { text-align: center; }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .lightbox { transition: none !important; }
  .fade-in { animation: none !important; }
  .hero-el, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .brand h1 { animation: none !important; }
  .brand h1::after { transform: translateX(-50%) scaleX(1) !important; }
  .typing-cursor { display: none !important; }
}

/* 城市篇章弹层 —— 一页从暗处浮出来的信纸/相册 */
.city-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: flex-start; justify-content: center;
  background:
    linear-gradient(180deg, rgba(249,242,233,0.97) 0%, rgba(244,234,222,0.98) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}
.city-modal.open { opacity: 1; visibility: visible; }
.city-modal.open .city-modal-inner {
  opacity: 1; transform: translateY(0);
}
.city-modal-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.city-modal-inner {
  position: relative; z-index: 1;
  width: 100%; min-height: 100vh;
  background: var(--bg, #fcfaf7);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.city-modal-scroll {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem var(--gut) 4rem;
}

/* 关闭按钮：右上角小圆点 */
.city-modal-close {
  position: fixed; top: 1rem; right: 1rem; z-index: 6;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(212,163,115,0.22);
  background: rgba(255,252,247,0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text-soft); font-size: 1rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.city-modal-close:hover {
  transform: rotate(90deg) scale(1.08);
  color: var(--text); background: rgba(255,252,247,0.95);
  border-color: rgba(212,163,115,0.45);
}

/* 弹层内：章节页版式（与 city.html 米色全宽页一致） */
.city-modal-scroll .ch-hero { max-width: 760px; margin: 0 auto; }
.city-modal-scroll .ch-head { text-align: center; margin-bottom: 1.4rem; }
.city-modal-scroll .ch-label { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.6rem; }
.city-modal-scroll .ch-name { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 600; letter-spacing: 0.06em; color: var(--text); line-height: 1.1; }
.city-modal-scroll .ch-en { font-size: 0.95rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.3rem; }
.city-modal-scroll .ch-cover {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f3dcc8, #f7e8d8) center/cover no-repeat;
  background-size: cover; background-position: center;
  border: 1px solid rgba(212,163,115,0.18);
  box-shadow: 0 22px 56px var(--shadow); overflow: hidden;
  margin: 0;
}
.city-modal-scroll .ch-meta { text-align: center; margin-top: 1rem; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
.city-modal-scroll .gallery { max-width: var(--maxw); margin: 2.4rem auto 0; padding: 0; }
.city-modal-scroll .gallery .label-row {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--accent); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.city-modal-scroll .gallery .label-row .label-cn { font-family: 'Ma Shan Zheng', 'Noto Serif SC', cursive; font-size: 1rem; color: var(--text); text-transform: none; }
.city-modal-scroll .gallery .label-row .label-line { flex: 0 0 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,163,115,0.45), transparent); }
.city-modal-scroll .gallery .label-row .label-en { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); }

/* 地点叙事 —— 拍立得背面说明 */
.city-modal-scroll .place { margin: 0 0 2.2rem; }
.city-modal-scroll .place-story {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(212,163,115,0.14); border-radius: 18px;
  padding: 0.85rem 1rem; margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.city-modal-scroll .place-stamp {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px dashed rgba(212,163,115,0.45);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.75rem;
  transform: rotate(-12deg);
}
.city-modal-scroll .place-name {
  font-size: 1.05rem; font-weight: 500; color: var(--text);
  margin-bottom: 0.2rem;
}
.city-modal-scroll .place-note {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.65;
}

/* 照片卡片 */
.city-modal-scroll .g-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.city-modal-scroll .g-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  transform: translateY(-4px) scale(1.015);
}

/* 章节页脚 */
.ch-footer {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(212,163,115,0.12);
}
.ch-footer-line { flex: 1; max-width: 100px; height: 1px; background: rgba(212,163,115,0.25); }
.ch-footer-text {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .city-modal, .city-modal-inner, .city-modal-close { transition: none !important; }
}
@media (max-width: 640px) {
  .city-modal-scroll { padding: 1.6rem 1rem 3rem; }
  .city-modal-scroll .ch-cover { border-radius: 18px; }
  .city-modal-scroll .place-story { padding: 0.75rem 0.85rem; }
}
