/* ============================================================
 *  我们的旅行星球 · Midnight & Champagne
 *  午夜蓝 + 羊皮纸奶白 + 香槟金，宝石色点缀
 *  字体：马善政手写体 / 霞鹜文楷 / Playfair Display（全部本地）
 * ============================================================ */

@font-face {
  font-family: "Love Hand";
  src: url("../fonts/MaShanZheng-subset.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Love Serif";
  src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0b1428;
  --night-2: #0f1e38;
  --night-3: #132947;
  --steel: #2b3b5c;
  --vellum: #f3e4c2;
  --ivory: #faf6ec;
  --champagne: #e0b868;
  --gold: #c9972b;
  --brass: #8a6a2f;
  --muted: #9aa0b5;
  --muted-2: #767d93;
  --line: rgba(243, 228, 194, .14);
  --line-strong: rgba(243, 228, 194, .28);
  --glass: rgba(243, 228, 194, .06);
  --font-hand: "Love Hand", "STKaiti", "KaiTi", cursive;
  --font-kai: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Love Serif", "Playfair Display", Georgia, "Times New Roman", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --pin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1C6.2 1 1.5 5.7 1.5 11.5c0 7.9 9.4 18.9 10 19.6.2.3.8.3 1 0 .6-.7 10-11.7 10-19.6C22.5 5.7 17.8 1 12 1z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  background: #080f1e;
  color: var(--ivory);
  font-family: var(--font-kai);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }

/* ---------------------------------------------------------- */
/*  夜空                                                        */
/* ---------------------------------------------------------- */
.sky {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1150px 800px at 14% 2%, rgba(58, 92, 150, .30), transparent 62%),
    radial-gradient(950px 760px at 86% 6%, rgba(120, 82, 150, .22), transparent 60%),
    radial-gradient(1100px 820px at 50% 112%, rgba(190, 140, 76, .16), transparent 66%),
    linear-gradient(168deg, #0a1222 0%, #0b1526 38%, #101b30 66%, #091020 100%);
}
.sky .neb {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); opacity: .42; mix-blend-mode: screen;
  animation: neb-drift 46s ease-in-out infinite alternate;
}
.neb-a { width: 46vw; height: 44vw; left: -10vw; top: 0;
  background: radial-gradient(circle at 42% 42%, rgba(64, 108, 168, .55), transparent 68%); }
.neb-b { width: 42vw; height: 42vw; right: -8vw; top: 26vh;
  background: radial-gradient(circle at 55% 45%, rgba(132, 96, 168, .48), transparent 68%);
  animation-delay: -16s; }
.neb-c { width: 50vw; height: 44vw; left: 30vw; bottom: -16vh;
  background: radial-gradient(circle at 50% 50%, rgba(206, 152, 86, .33), transparent 70%);
  animation-delay: -30s; }
.sky-vignette { position: absolute; inset: 0;
  background: radial-gradient(120% 92% at 50% 42%, transparent 40%, rgba(3, 7, 15, .72) 100%); }
@keyframes neb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2.2vw, -2vh, 0) scale(1.1); }
}

/* 漂浮的金色微光 */
.float-motes { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.float-motes i {
  position: absolute; bottom: -6vh; display: block;
  color: var(--champagne); opacity: 0;
  font-style: normal; line-height: 1;
  animation: mote-up var(--dur, 22s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes mote-up {
  0%   { transform: translate3d(0, 0, 0) scale(var(--s, 1)); opacity: 0; }
  12%  { opacity: var(--o, .32); }
  72%  { opacity: var(--o, .32); }
  100% { transform: translate3d(var(--dx, 26px), -112vh, 0) scale(var(--s, 1)); opacity: 0; }
}

/* ---------------------------------------------------------- */
/*  主舞台                                                      */
/* ---------------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; }

.hud { position: absolute; top: 0; left: 0; right: 0; padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 0; text-align: center;
  pointer-events: none; z-index: 20;
  transition: opacity .45s ease, transform .45s ease; }
.hud::before {
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 210px;
  background: linear-gradient(180deg, rgba(7, 12, 22, .78) 0%, rgba(7, 12, 22, .35) 55%, transparent 100%);
  z-index: -1; pointer-events: none;
}
body.focus-mode .hud { opacity: 0; transform: translateY(-12px); }
body.intro-mode .hud, body.intro-mode .chips { opacity: 0; }
body.intro-mode .hud { transform: translateY(-10px); }
body.intro-mode .chips { transform: translateX(-50%) translateY(14px); }
.chips { transition: opacity .6s ease, transform .6s ease; }
.hud { transition: opacity .6s ease, transform .6s ease; }


.overline {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .46em; text-indent: .46em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand h1 {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: .06em;
  background: linear-gradient(180deg, #fbf7ee 12%, #eddfc4 58%, #d9bd8f 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .55));
}
.brand-sub {
  margin: 7px 0 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

.world { flex: 1; position: relative; }
.globe-wrap { position: absolute; inset: 8px 0 0 0; cursor: grab; touch-action: none; }
.globe-wrap.grabbing { cursor: grabbing; }
.globe-wrap canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease; }
.globe-wrap canvas.ready { opacity: 1; }

.labels-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }

/* ---------------------------------------------------------- */
/*  白色定位戳                                                  */
/* ---------------------------------------------------------- */
.tm {
  position: absolute; left: 0; top: 0;
  width: 13px; height: 17px;
  padding: 0; margin: 0;
  pointer-events: auto;
  transform-origin: 50% 100%;
  will-change: transform;
  z-index: 6;
  background: none; border: 0;
  outline: none;
}
.tm::before {
  content: ""; position: absolute; inset: -9px;
  border-radius: 50%;
}
.tm[hidden] { display: none; }

.tm-pin {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ea 46%, #e9dcc0 100%);
  -webkit-mask: var(--pin-mask) center / contain no-repeat;
  mask: var(--pin-mask) center / contain no-repeat;
  filter: drop-shadow(0 3px 5px rgba(2, 6, 14, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .3));
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), filter .22s ease;
  transform-origin: 50% 92%;
}
.tm-dot {
  position: absolute; left: 50%; top: 4.2px;
  width: 3.8px; height: 3.8px; margin-left: -1.9px;
  border-radius: 50%;
  background: var(--dot, var(--champagne));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 1px 3px rgba(0, 0, 0, .35);
  transition: box-shadow .25s ease, transform .25s ease;
}
.tm::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 14px; height: 5px; margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(243, 228, 194, .30), transparent 70%);
  transform: scale(1);
  animation: ripple 3.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ripple {
  0%   { transform: scale(.45); opacity: .85; }
  72%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.tm:hover .tm-pin, .tm:focus-visible .tm-pin {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 5px 8px rgba(2, 6, 14, .6)) drop-shadow(0 0 6px rgba(224, 184, 104, .55));
}
.tm.selected .tm-pin {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 7px rgba(2, 6, 14, .6)) drop-shadow(0 0 10px rgba(224, 184, 104, .85));
}
.tm.selected .tm-dot {
  background: var(--champagne);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 0 3.5px rgba(224, 184, 104, .35);
}

.tm-label {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 4px);
  padding: 3px 8px 4px;
  border-radius: 6px;
  font-size: 9.5px; line-height: 1.15;
  letter-spacing: .05em;
  color: #16203a;
  white-space: nowrap;
  background: linear-gradient(180deg, #fbf6ea, #f1e6cf);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px rgba(2, 6, 14, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.tm-label i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 9.5px;
  color: var(--brass);
  margin-left: 5px;
  letter-spacing: .04em;
}
.tm:hover .tm-label, .tm.selected .tm-label, .tm:focus-visible .tm-label {
  opacity: 1; visibility: visible; transform: translate(-50%, 7px);
}

/* ---------------------------------------------------------- */
/*  悬浮提示 / 气泡                                             */
/* ---------------------------------------------------------- */
.country-tip {
  position: fixed; z-index: 30;
  display: inline-flex; align-items: center;
  padding: 7px 14px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #16203a;
  background: linear-gradient(180deg, #fbf6ea, #f0e4cc);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 10px 30px rgba(2, 6, 14, .6);
  pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px);
  transition: opacity .15s ease, transform .15s ease;
  max-width: 78vw; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.country-tip.show { opacity: 1; transform: translate(-50%, 0); }


/* 记忆胶片 */
.chips {
  position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; gap: 4px;
  max-width: min(94vw, 1220px);
  padding: 7px 10px;
  border-radius: 16px;
  background: rgba(8, 14, 26, .58);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(2, 6, 14, .6), inset 0 1px 0 rgba(243, 228, 194, .10);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  overflow-x: auto; scrollbar-width: none;
  z-index: 12;
}
.chips::-webkit-scrollbar { display: none; }
.chips { -webkit-overflow-scrolling: touch; }
.chips::before, .chips::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px;
  pointer-events: none; z-index: 2; border-radius: 16px;
}
.chips::after { right: 0; background: linear-gradient(270deg, rgba(8, 14, 26, .92), rgba(8, 14, 26, 0)); }

.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 7px 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--vellum);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.chip-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(243, 228, 194, .08);
  border: 1px solid rgba(243, 228, 194, .16);
  font-size: 11.5px; line-height: 1;
}
.chip-name { font-size: 12.5px; letter-spacing: .05em; }
.chip-date {
  font-family: var(--font-serif); font-style: italic;
  font-size: 10.5px; letter-spacing: .06em;
  color: var(--gold);
}
.chip:hover { background: rgba(243, 228, 194, .07); border-color: rgba(243, 228, 194, .14); }
.chip.active {
  background: var(--vellum);
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.chip.active .chip-name { color: #141d33; }
.chip.active .chip-date { color: var(--brass); }
.chip.active .chip-flag { background: rgba(20, 29, 51, .06); border-color: rgba(20, 29, 51, .14); }

/* 返回 / 音乐按钮 */
.back-home {
  position: fixed; left: 22px; top: calc(22px + env(safe-area-inset-top, 0px)); z-index: 22;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12.5px; letter-spacing: .08em;
  color: var(--vellum);
  background: rgba(8, 14, 26, .6);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease;
}
.back-home.show { opacity: 1; visibility: visible; transform: none; }
.back-home:hover { border-color: rgba(224, 184, 104, .55); }

.music-btn {
  position: fixed; right: 22px; top: calc(20px + env(safe-area-inset-top, 0px)); z-index: 22;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(8, 14, 26, .6);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s ease, transform .2s ease;
}
.music-btn:hover { border-color: rgba(224, 184, 104, .55); transform: scale(1.04); }
.music-btn .music-icon { font-size: 16px; line-height: 1; color: var(--vellum); }
.music-bars { display: none; align-items: flex-end; gap: 2px; height: 13px; }
.music-bars i { display: block; width: 2px; border-radius: 2px; background: var(--champagne); animation: eq 1s ease-in-out infinite; }
.music-bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
.music-bars i:nth-child(2) { height: 11px; animation-delay: .18s; }
.music-bars i:nth-child(3) { height: 7px; animation-delay: .34s; }
@keyframes eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.music-btn.playing .music-icon { display: none; }
.music-btn.playing .music-bars { display: inline-flex; }

.toast {
  position: fixed; left: 50%; bottom: 156px; z-index: 40;
  transform: translate(-50%, 10px);
  padding: 10px 20px 11px;
  border-radius: 8px;
  font-size: 13px; letter-spacing: .05em;
  color: var(--vellum);
  background: rgba(9, 15, 28, .92);
  border: 1px solid rgba(243, 228, 194, .22);
  box-shadow: 0 18px 50px rgba(2, 6, 14, .65);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1), visibility .3s;
  pointer-events: none; max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- */
/*  开屏                                                        */
/* ---------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background:
    radial-gradient(760px 560px at 50% 40%, rgba(206, 158, 92, .20), transparent 64%),
    radial-gradient(900px 640px at 78% 10%, rgba(90, 108, 160, .18), transparent 60%),
    radial-gradient(900px 660px at 18% 92%, rgba(120, 90, 150, .16), transparent 64%),
    linear-gradient(168deg, #080f1e 0%, #0d1930 46%, #0a1324 100%);
  opacity: 1; transition: opacity .9s ease, visibility .9s;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-glow {
  position: absolute; width: 52vmin; height: 52vmin; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(240, 210, 160, .20), rgba(200, 150, 90, .07) 46%, transparent 70%);
  filter: blur(14px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.splash-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(243, 228, 194, .16);
  animation: ring-in 2.6s ease-out both;
}
.splash-ring.r1 { width: 36vmin; height: 36vmin; }
.splash-ring.r2 { width: 50vmin; height: 50vmin; animation-delay: .2s; border-color: rgba(243, 228, 194, .10); }
.splash-ring.r3 { width: 66vmin; height: 66vmin; animation-delay: .4s; border-color: rgba(243, 228, 194, .06); }
@keyframes ring-in { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.splash-inner { position: relative; text-align: center; padding: 24px; max-width: 640px; }
.splash-overline {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: .52em; text-indent: .52em;
  text-transform: uppercase;
  color: var(--gold);
}
.splash-title {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 92px);
  line-height: 1.12;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #fdf9f0 6%, #f0e2c6 48%, #d5b788 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .6));
}
.splash-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 0; width: min(320px, 70vw);
}
.splash-divider i {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 43, .7), transparent);
}
.splash-divider span { font-size: 11px; color: var(--champagne); }
.splash-sig {
  margin: 20px 0 30px;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: .12em;
  color: #b6b2c4;
}
.splash-btn {
  position: relative;
  padding: 14px 40px 15px;
  border-radius: 10px;
  font-size: 15.5px; letter-spacing: .22em; text-indent: .22em;
  color: #151f36;
  background: linear-gradient(180deg, #fbf5e8 0%, #f0e2c6 55%, #e3d0aa 100%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 14px 40px rgba(2, 6, 14, .55), inset 0 1px 0 #fff;
  transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), box-shadow .22s ease, filter .2s ease;
}
.splash-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 20px 52px rgba(2, 6, 14, .6), 0 0 34px rgba(224, 184, 104, .22), inset 0 1px 0 #fff;
}
.splash-btn:active { transform: translateY(0) scale(.99); }

/* ---------------------------------------------------------- */
/*  相册载入中                                                  */
/* ---------------------------------------------------------- */
.album-loading {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; align-content: center; gap: 20px;
  background: rgba(6, 11, 21, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .3s ease;
}
.album-loading[hidden] { display: none; }
.album-loading p { margin: 0; font-size: 12.5px; letter-spacing: .16em; color: var(--muted); }

.ring-loader {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(243, 228, 194, .16);
  border-top-color: var(--champagne);
  animation: spin 1.05s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- */
/*  WebGL 兜底                                                  */
/* ---------------------------------------------------------- */
.webgl-fallback {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; gap: 8px;
  background: linear-gradient(168deg, #0a1222, #070d18);
  overflow-y: auto;
}
.webgl-fallback[hidden] { display: none; }
.webgl-fallback h2 { margin: 24px 0 0; font-family: var(--font-hand); font-weight: 400; font-size: 30px; color: var(--vellum); }
.webgl-fallback > p { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.fallback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; width: min(960px, 100%); }
.fallback-card {
  text-align: left; padding: 16px 18px 17px; border-radius: 10px;
  background: rgba(243, 228, 194, .05);
  border: 1px solid var(--line);
  border-left: 2px solid var(--champagne);
  transition: transform .2s ease, background .2s ease;
}
.fallback-card:hover { transform: translateY(-3px); background: rgba(243, 228, 194, .09); }
.fallback-card b { display: block; font-size: 15px; letter-spacing: .05em; color: var(--ivory); font-weight: 400; }
.fallback-card small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); font-family: var(--font-serif); font-style: italic; letter-spacing: .04em; }
.fallback-card em { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-hand); font-size: 15px; color: var(--champagne); }

/* ---------------------------------------------------------- */
/*  PhotoSwipe · 午夜主题                                        */
/* ---------------------------------------------------------- */
.pswp {
  --pswp-bg: #0a1120;
  --pswp-icon-color: #f3e4c2;
  --pswp-icon-color-secondary: rgba(243, 228, 194, .5);
  --pswp-preloader-color: rgba(224, 184, 104, .9);
  --pswp-preloader-color-secondary: rgba(224, 184, 104, .25);
}
.pswp { background: #0a1120; }
.pswp__bg {
  z-index: 0;
  background: transparent;
}
.pswp__scroll-wrap { z-index: 2 !important; }
.pswp__bg-photo { z-index: 1 !important; }
.pswp__top-bar { background: linear-gradient(180deg, rgba(4, 8, 16, .65), transparent); }
.pswp__button--close { opacity: .92; }
.pswp__counter { display: none; }

.pswp__album-title {
  position: absolute; left: 18px; top: 16px; z-index: 9999;
  pointer-events: none;
}
.at-card {
  padding: 11px 17px 12px;
  border-radius: 10px;
  background: rgba(8, 13, 25, .78);
  border: 1px solid rgba(243, 228, 194, .16);
  border-left: 2px solid var(--accent, var(--champagne));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(2, 6, 14, .5);
  max-width: min(72vw, 470px);
}
.at-kicker {
  font-family: var(--font-serif);
  font-size: 9px; letter-spacing: .30em;
  color: var(--gold);
  text-transform: uppercase;
}
.at-name {
  margin-top: 3px;
  font-family: var(--font-hand);
  font-size: 22px; line-height: 1.25;
  letter-spacing: .04em;
  color: var(--ivory);
}
.at-name i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--champagne);
  margin-left: 10px;
}
.at-note {
  margin-top: 2px;
  font-family: var(--font-kai);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.pswp__album-caption {
  position: absolute; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 9999;
  transform: translateX(-50%);
  max-width: min(86vw, 700px);
  padding: 9px 22px 10px;
  border-radius: 8px;
  text-align: center;
  background: rgba(8, 13, 25, .72);
  border: 1px solid rgba(243, 228, 194, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.pswp__album-caption .cap-text {
  font-family: var(--font-kai);
  font-size: 15px; letter-spacing: .06em; color: var(--vellum);
}
.pswp__album-caption .cap-text:empty { display: none; }
.pswp__album-caption .cap-count {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 10px; letter-spacing: .28em; text-indent: .28em;
  color: var(--gold);
}

/* ---------------------------------------------------------- */
/*  响应式                                                      */
/* ---------------------------------------------------------- */
@media (max-width: 760px) {
  .hud { padding: calc(16px + env(safe-area-inset-top, 0px)) 14px 0; }
  .overline { font-size: 9px; letter-spacing: .38em; margin-bottom: 8px; }
  .brand-sub { font-size: 11px; letter-spacing: .1em; }
  .hint { bottom: calc(84px + var(--safe-bottom)); font-size: 10.5px; letter-spacing: .08em; width: 92vw; text-align: center; white-space: normal; }
  .chips { bottom: calc(12px + var(--safe-bottom)); max-width: 100vw; border-radius: 14px; padding: 7px 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .chip { padding: 6px 9px 7px 6px; gap: 7px; }
  .chip-name { font-size: 12px; }
  .chip-date { display: none; }
  .toast { bottom: calc(140px + var(--safe-bottom)); font-size: 12px; }
  .country-tip { font-size: 11.5px; padding: 6px 11px 7px; }
  .back-home { left: 14px; top: calc(12px + env(safe-area-inset-top, 0px)); font-size: 12px; padding: 8px 13px; }
  .music-btn { right: 14px; top: calc(10px + env(safe-area-inset-top, 0px)); width: 38px; height: 38px; }
  .splash-overline { font-size: 9.5px; letter-spacing: .42em; }
  .splash-title { font-size: clamp(52px, 16vw, 68px); }
  .splash-sig { font-size: 15px; }
  .splash-btn { padding: 13px 34px 14px; font-size: 15px; }
  .tm { width: 10.5px; height: 13.5px; }
  .tm-dot { top: 3.3px; width: 3.1px; height: 3.1px; margin-left: -1.55px; }
  .tm-label { font-size: 9px; padding: 3px 7px 4px; border-radius: 6px; }
  .tm-label i { font-size: 8.5px; }
  .pswp__album-title { left: 10px; top: 10px; }
  .at-card { padding: 9px 13px 10px; max-width: 78vw; }
  .at-name { font-size: 19px; }
  .at-name i { font-size: 12px; margin-left: 8px; }
  .at-note { font-size: 10.5px; }
  .pswp__album-caption { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 7px 14px 8px; }
  .pswp__album-caption .cap-text { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky .neb, .float-motes i, .splash-title, .splash-glow,
  .tm-pin, .tm::after, .ring-loader, .music-bars i { animation: none !important; }
  .splash { transition-duration: .2s; }
}

/* 点击迸发的小光点 */
.burst-heart {
  position: fixed; z-index: 45; pointer-events: none;
  color: var(--champagne); line-height: 1;
  font-family: var(--font-kai);
  filter: drop-shadow(0 0 8px rgba(224, 184, 104, .8));
}


/* ---------------------------------------------------------- */
/*  全部城市面板                                                */
/* ---------------------------------------------------------- */
.all-cities {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 4vw;
  background: rgba(5, 9, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .22s ease;
}
.all-cities[hidden] { display: none; }
.all-cities.show { opacity: 1; }
.all-panel {
  width: min(1100px, 96vw); max-height: 90vh;
  display: flex; flex-direction: column;
  border-radius: 14px;
  background: rgba(9, 15, 28, .92);
  border: 1px solid rgba(243, 228, 194, .16);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.all-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 12px;
  border-bottom: 1px solid rgba(243, 228, 194, .10);
}
.all-head h2 {
  margin: 0; font-family: var(--font-hand); font-weight: 400;
  font-size: 26px; letter-spacing: .06em; color: var(--ivory);
}
.all-head h2 span { font-family: var(--font-serif); font-size: 13px; color: var(--gold); margin-left: 8px; letter-spacing: .1em; }
.all-close {
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--vellum); font-size: 15px;
  background: rgba(243, 228, 194, .06);
  border: 1px solid rgba(243, 228, 194, .16);
}
.all-close:hover { background: rgba(243, 228, 194, .12); }
.all-grid {
  padding: 16px 22px 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.all-card {
  text-align: left; padding: 12px 14px 13px;
  border-radius: 10px;
  background: rgba(243, 228, 194, .045);
  border: 1px solid rgba(243, 228, 194, .10);
  border-left: 2px solid var(--gold);
  display: flex; flex-direction: column; gap: 2px;
  transition: background .16s ease, transform .16s ease;
}
.all-card:hover { background: rgba(243, 228, 194, .10); transform: translateY(-2px); }
.all-flag { font-size: 18px; line-height: 1; margin-bottom: 4px; }
.all-name { font-family: var(--font-hand); font-size: 19px; color: var(--ivory); letter-spacing: .04em; }
.all-meta { font-family: var(--font-serif); font-style: italic; font-size: 10.5px; color: var(--muted); letter-spacing: .05em; }
@media (max-width: 760px) {
  .all-panel { max-height: 86vh; }
  .all-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .all-head { padding: 14px 16px 10px; }
  .all-head h2 { font-size: 22px; }
}


/* PhotoSwipe 环境模糊背景（苹果相册感） */
.pswp__bg-photo {
  position: absolute; inset: -60px;
  background: center / cover no-repeat;
  filter: blur(50px) brightness(.44) saturate(1.2);
  transform: scale(1.12);
  z-index: 1 !important; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.pswp__bg-photo.on { opacity: 1; }

/* 底部缩略图条 */
.pswp__thumbs {
  position: absolute; left: 0; right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex; justify-content: center;
  pointer-events: none;
}
.pswp__thumbs .thumbs-track {
  display: flex; gap: 6px;
  max-width: 92vw;
  overflow-x: auto; scrollbar-width: none;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(8, 13, 25, .72);
  border: 1px solid rgba(243, 228, 194, .16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.pswp__thumbs .thumbs-track::-webkit-scrollbar { display: none; }
.pswp__thumbs img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 7px;
  opacity: .48;
  filter: saturate(.75);
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
  cursor: pointer;
  flex: 0 0 auto;
}
.pswp__thumbs img.active {
  opacity: 1; filter: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px rgba(224, 184, 104, .95), 0 6px 16px rgba(0, 0, 0, .4);
}
@media (max-width: 760px) {
  .pswp__thumbs img { width: 34px; height: 34px; border-radius: 6px; }
  .pswp__thumbs { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}

/* 启动遮罩（微信里打开时先看到它，避免白屏） */
.boot {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: #070d18;
  transition: opacity .55s ease, visibility .55s;
}
.boot.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-planet {
  width: 86px; height: 86px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #3f5f8f 0%, #1b3155 42%, #0e1c33 72%, #0a1424 100%);
  box-shadow: 0 0 40px rgba(224, 184, 104, .18), inset -8px -12px 22px rgba(0, 0, 0, .45);
  position: relative;
  animation: boot-breathe 2.4s ease-in-out infinite;
}
.boot-planet::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(243, 228, 194, .18);
  border-top-color: rgba(224, 184, 104, .55);
  animation: spin 1.6s linear infinite;
}
.boot p {
  margin: 0; font-size: 12px; letter-spacing: .3em;
  color: #8f96aa; animation: boot-pulse 2s ease-in-out infinite;
}
@keyframes boot-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes boot-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }


/* 触屏设备：隐藏左右箭头，靠滑动 / 缩略图切换 */
@media (pointer: coarse), (max-width: 760px) {
  .pswp__button--arrow--prev,
  .pswp__button--arrow--next { display: none !important; }
}
