/* ============================================================
   我们的网站 · 样式

   ★ 想换配色 / 字体：只改下面 :root 里的变量就够了。
     整站的颜色（包括花瓣、星图、标题渐变）都从这里取，
     改完保存、刷新页面就是新样子。
   ============================================================ */

:root {
  /* ── 一、基础色（最常改的 4 个）──────────────────────── */
  --cream: #fbf6ef;       /* 页面底色 */
  --paper: #fffdf9;       /* 卡片 / 弹窗的白 */
  --ink: #241d18;         /* 主文字 */
  --ink-soft: #6d6055;    /* 次要文字 */

  /* ── 二、强调色（决定整站的“色调”）──────────────────── */
  --rose: #b8405a;        /* 主色：标题、按钮、爱心、星图节点 */
  --rose-deep: #7e2a3d;   /* 主色深一档：悬停、小标题 */
  --rose-soft: #f3dfe2;   /* 主色浅一档：分隔、标签底 */
  --gold: #bf9a54;        /* 点缀金：光晕、路线 */
  --ink-faint: #a1938a;   /* 最淡的说明文字 */

  /* ── 三、上面 5 个色的 RGB 分量（做半透明阴影用）────────
     改了 --rose / --ink / --gold，记得把对应这行也改掉。
     例：--rose 改成 #3b6ea5 → --rose-rgb: 59, 110, 165;      */
  --rose-rgb: 184, 64, 90;
  --ink-rgb: 36, 29, 24;
  --gold-rgb: 191, 154, 84;
  --shadow-rgb: 70, 45, 30;

  /* ── 四、两处文字渐变（首屏大标题 / 在一起天数）──────── */
  --grad-title: linear-gradient(168deg, #2a211b 12%, #6b3040 58%, #b8405a 100%);
  --grad-num: linear-gradient(165deg, #9c2e46 10%, #c0506b 90%);

  /* ── 五、线条、阴影、字体、动画曲线 ─────────────────── */
  --paper-2: #f6efe5;
  --line: rgba(var(--ink-rgb), 0.12);
  --line-soft: rgba(var(--ink-rgb), 0.07);
  --shadow-s: 0 2px 10px rgba(var(--shadow-rgb), 0.06);
  --shadow-m: 0 18px 40px -18px rgba(var(--shadow-rgb), 0.28);
  --shadow-l: 0 40px 80px -40px rgba(var(--shadow-rgb), 0.45);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* 让 hidden 属性永远有效（否则会被 display: flex 之类覆盖） */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

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

/* 细颗粒纸感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* ── 顶部进度条 ───────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

/* ── 导航 ─────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 56px);
  transition: background 0.5s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.nav.scrolled {
  padding: 10px clamp(18px, 5vw, 56px);
  background: rgba(251, 246, 239, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -24px rgba(var(--shadow-rgb), 0.5);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}
.beat {
  color: var(--rose);
  animation: beat 2.6s var(--ease) infinite;
  display: inline-block;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.28); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
  50% { transform: scale(1); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.3s; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after { width: 100%; }

/* ── 按钮 ─────────────────────────────────── */
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary {
  background: var(--rose);
  color: #fff8f4;
  box-shadow: 0 12px 26px -14px rgba(var(--rose-rgb), 0.9);
}
.btn.primary:hover { background: var(--rose-deep); }
.btn.ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: rgba(255, 253, 249, 0.6);
}
.btn.ghost:hover { border-color: var(--rose); color: var(--rose-deep); }
.btn.tiny { padding: 8px 16px; font-size: 0.8rem; border-color: var(--rose); color: var(--rose-deep); }
.btn.tiny:hover { background: var(--rose); color: #fff; }
.btn.small { padding: 9px 18px; font-size: 0.82rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ── 首屏 ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(20px, 6vw, 60px) 90px;
  overflow: hidden;
  text-align: center;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: floaty 18s ease-in-out infinite;
}
.g1 {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--rose-rgb), 0.28), transparent 68%);
  top: -8%; left: -6%;
}
.g2 {
  width: 40vw; height: 40vw;
  max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--gold-rgb), 0.28), transparent 66%);
  bottom: -12%; right: -8%;
  animation-delay: -7s;
}
.g3 {
  width: 30vw; height: 30vw;
  max-width: 420px; max-height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(126, 42, 61, 0.16), transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -12s;
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(3%, -4%, 0) scale(1.08); }
  66% { transform: translate3d(-3%, 3%, 0) scale(0.96); }
}

.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.kicker {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  font-size: clamp(2.5rem, 9.6vw, 6.6rem);
  letter-spacing: 0.03em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0;
}
.hero-title .word {
  display: inline-block;
  white-space: nowrap;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordIn 1.5s var(--ease) both;
}
@keyframes wordIn {
  from { transform: translateY(110%) rotate(2deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.days-card {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 34px;
  padding: 14px 26px 15px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.days-card:hover {
  box-shadow: 0 14px 34px -18px rgba(var(--rose-rgb), 0.4);
  transform: translateY(-2px);
}
.days-pre,
.days-post {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
.days-pre { padding-left: 0.22em; }
.days-num {
  display: inline-block;
  min-width: 3.1ch;
  text-align: center;
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.days-since {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  padding-left: 6px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}
.days-since:empty { display: none; }

.hero-cities {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
}
.hero-cities span { display: inline-flex; align-items: center; gap: 10px; }
.hero-cities i {
  font-style: normal;
  color: var(--rose);
  opacity: 0.55;
  font-size: 0.7rem;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-hint .dot {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── 城市滚动条 ───────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 253, 249, 0.5);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee-item b { font-weight: 400; color: var(--ink); }
.marquee-item em { font-style: normal; color: var(--rose); opacity: 0.5; }

/* ── 通用区块 ─────────────────────────────── */
.section {
  position: relative;
  padding: clamp(70px, 11vw, 140px) clamp(20px, 6vw, 60px);
}
.section-head {
  max-width: 620px;
  margin: 0 auto clamp(38px, 6vw, 68px);
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  color: var(--rose);
  text-transform: uppercase;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.4vw, 2.85rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ── 星图 ─────────────────────────────────── */
.map-section {
  padding-top: clamp(36px, 6vw, 80px);
  padding-bottom: clamp(36px, 6vw, 80px);
}
.map-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(10px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(var(--gold-rgb), 0.1), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(var(--rose-rgb), 0.09), transparent 62%),
    var(--paper);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.map-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--ink-rgb), 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}
#constellation { position: relative; width: 100%; height: auto; display: block; }

.node-label {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  fill: var(--ink);
  pointer-events: none;
}
.node-label-en {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.22em;
  fill: var(--ink-faint);
  pointer-events: none;
}
.map-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdf7f0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translate(-50%, -140%) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.map-tip.show { opacity: 1; transform: translate(-50%, -160%) scale(1); }

/* ── 相册 ─────────────────────────────────── */
.gallery { padding-top: clamp(36px, 6vw, 80px); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 34px;
}
.chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fdf7f0;
}
.chip .n { opacity: 0.45; font-size: 0.72rem; margin-left: 5px; }

.grid {
  columns: var(--cols, 4); /* 照片少的时候 JS 会把列数调小，铺得满一点 */
  column-gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.ph {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px; /* 注意：清掉 figure 自带的左右 40px 外边距 */
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
  box-shadow: var(--shadow-s);
  transform: translateZ(0);
}
.ph img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.ph:hover img { transform: scale(1.045); }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 18, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s;
}
.ph:hover::after { opacity: 1; }
.ph-cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  color: #fff8f2;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease);
}
.ph:hover .ph-cap { opacity: 1; transform: translateY(0); }
.ph-city {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
}
.empty-heart { font-size: 2.4rem; color: var(--rose); opacity: 0.5; margin-bottom: 8px; }
.empty p { margin: 0 0 18px; letter-spacing: 0.1em; }

/* ── 结尾 ─────────────────────────────────── */
.footer {
  position: relative;
  margin-top: 40px;
  padding: clamp(56px, 9vw, 100px) 20px clamp(40px, 6vw, 64px);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(var(--rose-rgb), 0.24), transparent 70%),
    #221a16;
  color: #f4e9dd;
  text-align: center;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.footer-heart {
  font-size: 1.4rem;
  color: var(--rose);
  animation: beat 3s var(--ease) infinite;
  margin-bottom: 14px;
}
.footer h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  letter-spacing: 0.16em;
}
.footer-note {
  margin: 14px auto 0;
  max-width: 32em;
  color: rgba(244, 233, 221, 0.62);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}
.footer-meta {
  margin-top: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(244, 233, 221, 0.45);
}
.footer-meta:empty { margin-top: 0; }
.footer-meta .sep { margin: 0 8px; opacity: 0.5; }
.footer-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .btn.ghost {
  border-color: rgba(244, 233, 221, 0.22);
  color: rgba(244, 233, 221, 0.8);
  background: transparent;
}
.footer .btn.ghost:hover { border-color: var(--rose); color: #fff; }

/* ── 灯箱 ─────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 17, 14, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.55s var(--ease);
}
.lightbox.open .lb-figure { transform: scale(1); }
.lb-figure img {
  max-height: 76vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lb-figure figcaption {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 248, 242, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.lb-city {
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(var(--rose-rgb), 0.28);
  color: #ffd9df;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.lb-del {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.3s;
}
.lb-del:hover { border-color: #ff7a90; color: #ff9aac; }
.lb-close, .lb-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 242, 0.85);
  cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; }
.lb-nav.prev { left: 22px; }
.lb-nav.next { right: 22px; }

/* ── 弹窗 ─────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(var(--ink-rgb), 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow-l);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.5s var(--ease);
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-card.wide { width: min(720px, 100%); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 0;
}
.modal-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: 0.08em;
}
.icon-btn {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  width: 34px; height: 34px;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.modal-body { padding: 18px 26px 26px; }

.field-label {
  display: block;
  margin: 18px 0 7px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.field-label:first-child { margin-top: 0; }
.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefb;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(var(--rose-rgb), 0.12);
}
textarea.input { resize: vertical; min-height: 76px; line-height: 1.7; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.city-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.city-picker button {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.city-picker button:hover { border-color: var(--rose); color: var(--rose-deep); }
.city-picker button.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff8f4;
}

/* 管理面板里的城市编辑器 */
.city-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 292px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.city-editor::-webkit-scrollbar { width: 5px; }
.city-editor::-webkit-scrollbar-thumb {
  background: rgba(var(--rose-rgb), 0.22);
  border-radius: 3px;
}
.city-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px 30px;
  gap: 8px;
  align-items: center;
}
.city-edit input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.city-edit input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(var(--rose-rgb), 0.1);
}
.city-edit .ce-num {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.76rem;
}
.city-edit .ce-num::placeholder { font-size: 0.72rem; letter-spacing: 0.02em; }
.city-edit .ce-del {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-faint);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.city-edit .ce-del:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(var(--rose-rgb), 0.06);
}
.city-add { margin-top: 10px; }

.dropzone {
  margin-top: 18px;
  padding: 30px 20px;
  border: 1.5px dashed rgba(var(--rose-rgb), 0.32);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
  background: rgba(251, 246, 239, 0.6);
}
.dropzone:hover, .dropzone.drag {
  background: rgba(243, 223, 226, 0.5);
  border-color: var(--rose);
}
.dropzone.drag { transform: scale(1.01); }
.dz-icon {
  font-size: 1.6rem;
  color: var(--rose);
  opacity: 0.7;
  margin-bottom: 6px;
}
.dropzone p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.dropzone small { display: block; margin-top: 6px; font-size: 0.74rem; color: var(--ink-faint); }
.link { color: var(--rose-deep); border-bottom: 1px solid rgba(var(--rose-rgb), 0.4); }

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  animation: pop 0.4s var(--ease);
}
@keyframes pop {
  from { transform: scale(0.86); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 17, 14, 0.6);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-foot {
  position: sticky;
  bottom: -26px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 0 8px;
  background: linear-gradient(to top, var(--paper) 55%, rgba(255, 253, 249, 0));
}
.form-msg {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--rose-deep);
  min-height: 1.2em;
}
/* ── 提示条 ───────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translate(-50%, 24px);
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(34, 26, 22, 0.94);
  color: #fdf7f0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s var(--ease);
  box-shadow: var(--shadow-m);
  max-width: 86vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hint { margin: 6px 0 0; font-size: .76rem; color: var(--ink-faint); letter-spacing: .04em; }

/* ── 滚动揭示 ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ── 响应式 ───────────────────────────────── */
@media (max-width: 1080px) {
  .grid { columns: 3; }
}
@media (max-width: 860px) {
  .nav-links a { display: none; }
  .grid { columns: 2; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.3rem; }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
}
@media (max-width: 560px) {
  .grid { columns: 2; column-gap: 10px; }
  .ph { margin: 0 0 10px; border-radius: 12px; }
  .grid2 { grid-template-columns: 1fr; }
  .modal-card { border-radius: 20px; }
  .days-num { font-size: 1.6rem; }
  .hero-cities { font-size: 0.76rem; }
  .city-edit {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    grid-template-areas:
      "name name del"
      "lon lat lat";
    gap: 6px;
  }
  .city-edit > .ce-name { grid-area: name; }
  .city-edit > input:nth-child(2) { grid-area: lon; }
  .city-edit > input:nth-child(3) { grid-area: lat; }
  .city-edit > .ce-del { grid-area: del; justify-self: end; }
  .city-edit input { padding: 8px 10px; font-size: 0.82rem; }
  .city-edit .ce-del { width: 26px; height: 26px; font-size: 0.9rem; }
  .city-editor { max-height: 300px; }
}

@media (max-width: 640px) {
  /* 星图在窄屏会被整体等比缩小，字要放大才看得清 */
  .node-label { font-size: 23px; letter-spacing: 0.06em; }
  .node-label-en { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
