/* ========== 新海诚风格 全局样式 ========== */
:root {
  --sky-dream: #A8C8E8;
  --sunset: #F8B6C7;
  --makoto: #6B9BD1;
  --lake: #4A6FA5;
  --cherry: #FFB7C5;
  --ink: #2C3E50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: #F5F8FC;
  -webkit-font-smoothing: antialiased;
}

/* ========== 导航栏 ========== */
#navbar {
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
#navbar .nav-title { color: #fff; transition: color 0.4s; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
#navbar .nav-link { color: rgba(255,255,255,0.9); transition: color 0.4s; text-shadow: 0 2px 6px rgba(0,0,0,0.2); }
#navbar.scrolled .nav-title { color: var(--ink); text-shadow: none; }
#navbar.scrolled .nav-link { color: var(--ink); text-shadow: none; }

/* ========== Hero 新海诚风格 ========== */
.hero-bg {
  background: linear-gradient(
    to bottom,
    #FFD6E0 0%,      /* 晨曦粉 */
    #FFE8B7 18%,     /* 阳光金 */
    #B8D4F0 45%,     /* 天空蓝 */
    #7BA8D6 75%,     /* 湖天相接 */
    #5B8AC4 100%
  );
}
.hero-clouds {
  background-image:
    radial-gradient(ellipse 200px 40px at 20% 25%, rgba(255,255,255,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 300px 50px at 70% 15%, rgba(255,255,255,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 250px 60px at 50% 35%, rgba(255,255,255,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 180px 35px at 85% 45%, rgba(255,255,255,0.5) 0%, transparent 70%);
  animation: cloudMove 60s linear infinite;
}
@keyframes cloudMove {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 200px 0, -200px 0, 150px 0, -150px 0; }
}
.hero-stars {
  background-image:
    radial-gradient(1px 1px at 10% 10%, rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 30% 20%, rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1px 1px at 50% 8%, rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(2px 2px at 70% 25%, rgba(255,255,255,0.8) 50%, transparent),
    radial-gradient(1px 1px at 90% 12%, rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 15% 30%, rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1px 1px at 85% 35%, rgba(255,255,255,0.7) 50%, transparent);
  animation: twinkle 4s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}
.hero-lake {
  background: linear-gradient(to bottom,
    rgba(74,111,165,0.2) 0%,
    rgba(74,111,165,0.6) 50%,
    rgba(44,74,124,0.9) 100%
  );
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
}
.hero-lake::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 40px,
    rgba(255,255,255,0.08) 40px,
    rgba(255,255,255,0.08) 42px
  );
  animation: ripple 8s linear infinite;
}
@keyframes ripple {
  from { background-position-x: 0; }
  to { background-position-x: 80px; }
}

.hero-title {
  animation: titleIn 1.8s cubic-bezier(.2,.8,.2,1) both;
  letter-spacing: 0.1em;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(40px) scale(0.9); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.fade-in-up { animation: fadeInUp 1.2s 0.3s cubic-bezier(.2,.8,.2,1) both; }
.fade-in-up-2 { animation: fadeInUp 1.2s 0.8s cubic-bezier(.2,.8,.2,1) both; }
.fade-in-up-3 { animation: fadeInUp 1.2s 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== 樱花飘落 ========== */
.sakura {
  position: absolute;
  top: -30px;
  font-size: 20px;
  opacity: 0.8;
  animation: sakuraFall linear infinite;
  will-change: transform;
}
@keyframes sakuraFall {
  0% { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate(var(--drift, 80px), 110vh) rotate(540deg); opacity: 0; }
}

/* ========== 毛玻璃卡片 ========== */
.card-glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(107,155,209,0.12), 0 2px 10px rgba(0,0,0,0.04);
  transition: transform 0.4s, box-shadow 0.4s;
}
.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(107,155,209,0.2), 0 4px 20px rgba(0,0,0,0.06);
}

/* ========== 四日亮点卡 ========== */
.day-highlight {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(232,240,250,0.9) 100%);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(107,155,209,0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.day-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,200,232,0.3), rgba(248,182,199,0.3));
  opacity: 0;
  transition: opacity 0.4s;
}
.day-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(107,155,209,0.25);
}
.day-highlight:hover::before { opacity: 1; }
.day-highlight > * { position: relative; z-index: 1; }
.day-num {
  font-size: 4rem;
  color: var(--makoto);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--makoto), var(--sunset));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.day-theme { font-size: 1.2rem; color: var(--ink); font-weight: 500; }

/* ========== Day Tab ========== */
.day-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(107,155,209,0.3);
  color: var(--ink);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'ZCOOL XiaoWei', serif;
}
.day-tab:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}
.day-tab.active {
  background: linear-gradient(135deg, var(--makoto), var(--lake));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(107,155,209,0.4);
}

/* ========== 地图景点列表 ========== */
.spot-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(107,155,209,0.15);
  cursor: pointer;
  transition: all 0.3s;
}
.spot-item:hover {
  background: linear-gradient(135deg, rgba(168,200,232,0.3), rgba(248,182,199,0.25));
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(107,155,209,0.15);
}
.spot-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--sky-dream), var(--cherry));
  color: white;
  box-shadow: 0 4px 12px rgba(107,155,209,0.3);
}
.spot-name { font-weight: 500; color: var(--ink); font-size: 0.9rem; }
.spot-time { font-size: 0.75rem; color: #8899AA; }

/* ========== Leaflet 自定义 Marker ========== */
.custom-marker {
  position: relative;
  width: 44px;
  height: 54px;
}
.custom-marker .pin {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--makoto), var(--lake));
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 3px solid white;
  display: flex; align-items: center; justify-content: center;
}
.custom-marker .pin span {
  transform: rotate(45deg);
  font-size: 18px;
  color: white;
}
.custom-marker.day-1 .pin { background: linear-gradient(135deg, #F8B6C7, #E8718A); }
.custom-marker.day-2 .pin { background: linear-gradient(135deg, #C8A8E8, #9574C4); }
.custom-marker.day-3 .pin { background: linear-gradient(135deg, #A8E8C8, #4AA574); }
.custom-marker.day-4 .pin { background: linear-gradient(135deg, #F8D8A8, #E8A85F); }
.custom-marker.hotel .pin { background: linear-gradient(135deg, #FFE066, #E0A800); }
.custom-marker .pulse {
  position: absolute;
  top: 8px; left: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: markerPulse 1.8s ease-out infinite;
}
@keyframes markerPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.leaflet-popup-content { margin: 0 !important; padding: 0 !important; }
.popup-card {
  width: 240px;
  overflow: hidden;
  border-radius: 16px;
}
.popup-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.popup-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}
.popup-body { padding: 12px 14px; }
.popup-title { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.popup-time { font-size: 0.75rem; color: #889; margin-bottom: 8px; }
.popup-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--makoto), var(--lake));
  color: white;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}
.popup-btn:hover { transform: scale(1.05); }

/* ========== 每日行程时间线 ========== */
.day-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(107,155,209,0.15);
  position: relative;
}
.day-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.day-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) brightness(0.95);
  transition: transform 1.5s;
}
.day-card:hover .day-hero-bg { transform: scale(1.05); }
.day-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44,74,124,0.7) 0%, rgba(74,111,165,0.3) 50%, rgba(248,182,199,0.3) 100%);
}
.day-hero-text {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem;
  color: white;
}
.day-hero-num {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 6rem;
  line-height: 1;
  opacity: 0.85;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.day-hero-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 2.5rem;
  margin-top: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.day-hero-date { font-size: 0.875rem; opacity: 0.9; letter-spacing: 0.2em; }

.timeline {
  padding: 2rem 2.5rem 2.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(2.5rem + 60px);
  top: 2rem; bottom: 2.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--makoto), var(--sunset));
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-time {
  flex-shrink: 0;
  width: 60px;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 0.875rem;
  color: var(--lake);
  font-weight: 500;
  padding-top: 2px;
}
.timeline-dot {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--makoto);
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(107,155,209,0.15);
}
.timeline-item.highlight .timeline-dot {
  background: var(--sunset);
  border-color: var(--sunset);
  box-shadow: 0 0 0 4px rgba(248,182,199,0.3);
}
.timeline-content {
  flex: 1;
  padding-bottom: 4px;
}
.timeline-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline-title.clickable {
  cursor: pointer;
  color: var(--lake);
  border-bottom: 1px dashed var(--makoto);
  display: inline-block;
  transition: all 0.2s;
}
.timeline-title.clickable:hover {
  color: var(--sunset);
  transform: translateX(4px);
}
.timeline-desc {
  font-size: 0.85rem;
  color: #667;
  line-height: 1.6;
}
.timeline-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  background: rgba(107,155,209,0.12);
  color: var(--lake);
  border-radius: 999px;
  margin-right: 6px;
  margin-top: 4px;
}
.timeline-tag.star { background: rgba(248,182,199,0.25); color: #D4638A; }

/* ========== 弹窗内容 ========== */
.modal-content { animation: modalIn 0.4s cubic-bezier(.2,.8,.2,1); }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-hero {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6));
}
.modal-hero-text {
  position: absolute;
  left: 2rem; bottom: 1.5rem;
  color: white;
  z-index: 1;
}
.modal-body { padding: 2rem; }

/* ========== 旅拍卡片 ========== */
.photo-pack {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,240,245,0.9));
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255,183,197,0.4);
  transition: all 0.4s;
  text-align: center;
}
.photo-pack:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(248,182,199,0.3);
}
.photo-pack .price {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #FF6B9D, #E8718A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== 预算条 ========== */
.budget-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(107,155,209,0.15);
}
.budget-row:last-child { border: none; }
.budget-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky-dream), var(--cherry));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.budget-name { flex: 1; font-size: 0.95rem; }
.budget-note { font-size: 0.75rem; color: #8899AA; }
.budget-price { font-family: 'ZCOOL XiaoWei', serif; font-size: 1.1rem; color: var(--lake); }

/* ========== 攻略卡片 ========== */
.tip-card {
  background: white;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(107,155,209,0.15);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--makoto), var(--sunset));
}
.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(107,155,209,0.18);
}
.tip-card h4 {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.2rem;
  color: var(--lake);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}
.tip-card li {
  font-size: 0.85rem;
  color: #556;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.6;
}
.tip-card li::before {
  content: '🌸';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 0.7rem;
}

.todo-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.todo-item:hover { background: rgba(255,255,255,0.9); transform: translateX(4px); }
.todo-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--makoto);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.todo-check.done {
  background: var(--makoto);
  color: white;
}
.todo-check.done::after { content: '✓'; font-size: 14px; }
.todo-item.done .todo-label { text-decoration: line-through; opacity: 0.5; }

/* ========== 滚动动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 滚动条 ========== */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(107,155,209,0.05); border-radius: 3px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(107,155,209,0.3); border-radius: 3px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: rgba(107,155,209,0.5); }

::selection { background: rgba(248,182,199,0.5); color: var(--ink); }

/* ============================================ */
/* ========== 漫画风 SVG 地图样式 ========== */
/* ============================================ */
.comic-map-wrap {
  background: linear-gradient(180deg, #FFE8D6 0%, #E8F0FB 50%, #D4E4F5 100%);
}
#leafletMap {
  overflow: hidden;
  position: relative;
}
.comic-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

/* 地图标签文字 */
.map-label-lake {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 38px;
  fill: #3A5B88;
  opacity: 0.55;
  letter-spacing: 8px;
}
.map-label-mini {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}
.map-label-tiny {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 10px;
  opacity: 0.85;
}

/* 云朵飘动 */
.comic-map-svg .clouds { animation: cloudDrift 30s ease-in-out infinite alternate; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}
.comic-map-svg .birds {
  animation: birdsFloat 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes birdsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== 景点标记 ========== */
.map-marker {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  transform-box: fill-box;
  transform-origin: center bottom;
}
.map-marker .marker-pulse {
  fill: rgba(107,155,209,0.25);
  transform-origin: center;
  animation: markerPulseSvg 2.2s ease-out infinite;
}
.map-marker .marker-halo {
  fill: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.3s;
}
.map-marker .marker-pin {
  fill: #6B9BD1;
  stroke: white;
  stroke-width: 2.5;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.25));
}
.map-marker .marker-inner {
  fill: white;
}
.map-marker .marker-icon {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
}
.map-marker .marker-label {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 12px;
  fill: #2C3E50;
  font-weight: 500;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 3;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0.9;
}

/* 每天颜色 */
.map-marker.d1 .marker-pin { fill: #E8718A; }
.map-marker.d1 .marker-pulse { fill: rgba(232,113,138,0.3); }
.map-marker.d2 .marker-pin { fill: #9574C4; }
.map-marker.d2 .marker-pulse { fill: rgba(149,116,196,0.3); }
.map-marker.d3 .marker-pin { fill: #4AA574; }
.map-marker.d3 .marker-pulse { fill: rgba(74,165,116,0.3); }
.map-marker.d4 .marker-pin { fill: #E8A85F; }
.map-marker.d4 .marker-pulse { fill: rgba(232,168,95,0.3); }
.map-marker.hotel .marker-pin { fill: #E0A800; }
.map-marker.hotel .marker-pulse { fill: rgba(224,168,0,0.3); }

@keyframes markerPulseSvg {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 悬浮放大 */
.map-marker:hover,
.map-marker.active,
.map-marker.hover-from-list {
  transform: scale(1.25) translateY(-4px);
  z-index: 10;
}
.map-marker:hover .marker-halo,
.map-marker.active .marker-halo,
.map-marker.hover-from-list .marker-halo {
  opacity: 1;
  animation: haloRing 1.2s ease-out infinite;
}
@keyframes haloRing {
  0% { opacity: 0.7; transform: scale(0.8); transform-origin: center; }
  100% { opacity: 0; transform: scale(1.6); transform-origin: center; }
}
.map-marker:hover .marker-label,
.map-marker.active .marker-label {
  opacity: 1;
  font-weight: 700;
}

/* 非当日景点 变暗 */
.map-marker.dim {
  opacity: 0.28;
  filter: grayscale(0.6);
  pointer-events: auto;
}
.map-marker.dim:hover {
  opacity: 1;
  filter: none;
}

/* 当日 高亮景点 弹跳 */
.map-marker.highlight {
  animation: markerBounce 2.4s ease-in-out infinite;
}
@keyframes markerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
/* 当日悬浮时停止自动弹跳，防止抖动 */
.map-marker.highlight:hover {
  animation: none;
}

/* 序号徽章 */
.marker-order {
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* ========== 路线动画 ========== */
.comic-map-svg .route-animate {
  animation: routeDraw 2.5s ease-out both, dashFlow 1.2s linear infinite 2.5s;
  stroke-dasharray: 10, 8;
}
.comic-map-svg .route-flow {
  animation: dashFlow 2s linear infinite;
}
@keyframes routeDraw {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}
@keyframes dashFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -36; }
}

/* ========== 悬浮预览卡 ========== */
.map-hover-card {
  position: absolute;
  width: 260px;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(107,155,209,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.map-hover-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.map-hover-img {
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.map-hover-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.map-hover-body {
  padding: 12px 14px 14px;
}
.map-hover-day {
  font-size: 10px;
  color: #6B9BD1;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.map-hover-title {
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.map-hover-time {
  font-size: 11px;
  color: #8899AA;
  margin-bottom: 6px;
}
.map-hover-desc {
  font-size: 12px;
  color: #556;
  line-height: 1.55;
  margin-bottom: 8px;
}
.map-hover-cta {
  font-size: 11px;
  color: #E8718A;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px dashed rgba(107,155,209,0.25);
}
.map-hover-card.hotel .map-hover-day { color: #E0A800; }
.map-hover-card.hotel .map-hover-cta { color: #E0A800; }

/* ========== 图例 ========== */
.map-legend i.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.map-legend i.legend-dot.d1 { background: #E8718A; }
.map-legend i.legend-dot.d2 { background: #9574C4; }
.map-legend i.legend-dot.d3 { background: #4AA574; }
.map-legend i.legend-dot.d4 { background: #E8A85F; }
.map-legend i.legend-dot.hotel { background: #E0A800; }

/* ========== 列表序号 ========== */
.spot-order {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(107,155,209,0.3);
}
.spot-order.d1 { background: linear-gradient(135deg, #F8B6C7, #E8718A); }
.spot-order.d2 { background: linear-gradient(135deg, #C8A8E8, #9574C4); }
.spot-order.d3 { background: linear-gradient(135deg, #A8E8C8, #4AA574); }
.spot-order.d4 { background: linear-gradient(135deg, #F8D8A8, #E8A85F); }

/* 响应式 */
@media (max-width: 768px) {
  .hero-title { font-size: 4.5rem !important; }
  .day-hero-num { font-size: 4rem; }
  .day-hero-title { font-size: 1.75rem; }
  .timeline { padding: 1.5rem; }
  .timeline::before { left: 74px; }
  .timeline-time { width: 50px; font-size: 0.75rem; }
}