/* ============================================
   TripMapper - 极简轻奢旅游风 UI
   主色调：天空浅蓝 + 纯白 + 淡青辅助色
   ============================================ */

/* --- 全局重置与基础 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f0f6fc;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c0d6e8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #89b4cf; }

/* --- Vue App --- */
#app { height: 100%; }

/* --- 页面过渡动画 --- */
.page-enter-active { animation: fadeSlideIn 0.4s ease; }
.page-leave-active { animation: fadeSlideOut 0.3s ease; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlideOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-8px); } }

/* --- 导航栏 --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(176,210,232,0.4);
  box-shadow: 0 2px 16px rgba(0,100,180,0.06);
  transition: all 0.3s ease;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #0a7bc4;
  cursor: pointer; user-select: none;
}
.navbar-brand svg { width: 32px; height: 32px; }
.navbar-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 500;
  color: #5a7a94; cursor: pointer; transition: all 0.25s ease;
  border: none; background: none; white-space: nowrap;
}
.nav-link:hover { background: #e8f2fb; color: #0a7bc4; }
.nav-link.active { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; box-shadow: 0 3px 12px rgba(10,123,196,0.25); }
.lang-toggle { display: flex; gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid #d0dfe8; }
.lang-btn {
  padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
  border: none; background: transparent; color: #5a7a94; transition: all 0.25s ease; white-space: nowrap;
}
.lang-btn.active { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; }
.lang-btn:hover:not(.active) { background: #e8f2fb; color: #0a7bc4; }

/* --- 首页 Landing Page --- */
.landing {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 20px;
  background: linear-gradient(170deg, #f0f8ff 0%, #e8f4f8 40%, #d6eef7 100%);
  position: relative; overflow: hidden;
}
.landing::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,184,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.landing::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,123,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.landing-logo {
  width: 80px; height: 80px; margin-bottom: 20px;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(10,123,196,0.2);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.landing-logo svg { width: 44px; height: 44px; }
.landing h1 { font-size: 40px; font-weight: 800; color: #0a4f80; margin-bottom: 10px; letter-spacing: -1px; }
.landing h1 span { background: linear-gradient(135deg, #0a7bc4, #3db8e8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.landing .tagline { font-size: 17px; color: #5a8faa; margin-bottom: 36px; max-width: 520px; line-height: 1.7; }
.feature-cards { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.feature-card {
  width: 200px; padding: 28px 20px; border-radius: 16px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(176,210,232,0.35);
  box-shadow: 0 4px 20px rgba(0,80,160,0.06); transition: all 0.35s ease;
  cursor: default;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,80,160,0.12); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.feature-icon.blue { background: linear-gradient(135deg, #e3f0fb, #c5dff6); }
.feature-icon.green { background: linear-gradient(135deg, #e3fbf0, #c5f6dd); }
.feature-icon.purple { background: linear-gradient(135deg, #f0e3fb, #e0c5f6); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 15px; font-weight: 600; color: #1a5276; margin-bottom: 8px; }
.feature-card p { font-size: 12.5px; color: #7a9bb5; line-height: 1.5; }
.btn-primary {
  padding: 14px 40px; border-radius: 28px; border: none;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff;
  font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 24px rgba(10,123,196,0.3); transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(10,123,196,0.4); }

/* --- 地图页面 --- */
.map-page { height: 100%; position: relative; }
#map-container { width: 100%; height: 100%; }

/* 地图搜索栏 */
.map-search-bar {
  position: absolute; top: 72px; left: 20px; z-index: 800;
  display: flex; gap: 8px;
}
.search-input-wrap {
  display: flex; align-items: center; background: rgba(255,255,255,0.95);
  border-radius: 14px; padding: 0 14px; box-shadow: 0 4px 20px rgba(0,60,120,0.1);
  border: 1.5px solid rgba(176,210,232,0.5); min-width: 280px;
  transition: all 0.3s ease;
}
.search-input-wrap:focus-within { border-color: #3db8e8; box-shadow: 0 4px 24px rgba(10,123,196,0.15); }
.search-input-wrap svg { width: 18px; height: 18px; color: #89b4cf; flex-shrink: 0; }
.search-input {
  border: none; outline: none; background: none; padding: 11px 10px;
  font-size: 14px; width: 100%; color: #2c3e50;
}
.search-input::placeholder { color: #a0b8cc; }
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
  background: rgba(255,255,255,0.98); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,60,120,0.12); max-height: 320px; overflow-y: auto;
  border: 1px solid rgba(176,210,232,0.3);
}
.search-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; transition: background 0.2s; border-bottom: 1px solid rgba(230,240,248,0.6);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #edf5fb; }
.search-item-icon {
  width: 34px; height: 34px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.search-item-icon.hotel { background: #fff3e0; }
.search-item-icon.attraction { background: #e8f5e9; }
.search-item-icon.amusement { background: #f3e5f5; }
.search-item-info h4 { font-size: 13.5px; font-weight: 600; color: #2c3e50; }
.search-item-info span { font-size: 12px; color: #7a9bb5; }

/* 国家快捷切换 */
.country-pills {
  position: absolute; top: 72px; right: 20px; z-index: 800;
  display: flex; gap: 6px; flex-wrap: wrap; max-width: 320px; justify-content: flex-end;
}
.country-pill {
  padding: 7px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 500;
  background: rgba(255,255,255,0.92); color: #5a7a94; cursor: pointer;
  border: 1.5px solid rgba(176,210,232,0.4); transition: all 0.25s;
  white-space: nowrap;
}
.country-pill:hover { border-color: #3db8e8; color: #0a7bc4; background: #eef6fc; }
.country-pill.active { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; border-color: transparent; }

/* 分类筛选 */
.filter-bar {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 800; display: flex; gap: 8px; padding: 8px 12px;
  background: rgba(255,255,255,0.95); border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,60,120,0.1); border: 1px solid rgba(176,210,232,0.3);
}
.filter-btn {
  padding: 8px 16px; border-radius: 12px; border: none; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: #5a7a94;
}
.filter-btn:hover { background: #edf5fb; }
.filter-btn.active { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; box-shadow: 0 3px 10px rgba(10,123,196,0.2); }
.filter-btn svg { width: 16px; height: 16px; }

/* --- POI详情弹窗 --- */
.poi-popup {
  width: 340px; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 40px rgba(0,60,120,0.15);
  animation: popIn 0.3s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.poi-popup-img {
  width: 100%; height: 160px; object-fit: cover;
  border-bottom: 3px solid rgba(10,123,196,0.15);
}
.poi-popup-body { padding: 16px; }
.poi-popup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poi-category-tag {
  padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600;
}
.poi-category-tag.hotel { background: #fff3e0; color: #e65100; }
.poi-category-tag.attraction { background: #e8f5e9; color: #2e7d32; }
.poi-category-tag.amusement { background: #f3e5f5; color: #7b1fa2; }
.poi-popup-name { font-size: 17px; font-weight: 700; color: #1a3a5c; }
.poi-popup-meta { display: flex; gap: 12px; margin-bottom: 10px; font-size: 12px; color: #7a9bb5; }
.poi-popup-desc { font-size: 13px; color: #5a7a94; line-height: 1.6; margin-bottom: 12px; }
.poi-popup-highlights { font-size: 12.5px; color: #3d8ab8; margin-bottom: 14px; }
.poi-popup-links { border-top: 1px solid #edf2f7; padding-top: 12px; }
.poi-popup-links h4 { font-size: 12.5px; color: #8aa4b8; margin-bottom: 8px; font-weight: 500; }
.official-link {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.25s; cursor: pointer;
}
.official-link:last-child { margin-bottom: 0; }
.official-link.primary { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; }
.official-link.primary:hover { box-shadow: 0 4px 16px rgba(10,123,196,0.3); transform: translateY(-1px); }
.official-link.secondary { background: #f0f6fc; color: #0a7bc4; border: 1px solid #d6e8f5; }
.official-link.secondary:hover { background: #e3f0fb; }
.official-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.poi-popup-actions { display: flex; gap: 8px; margin-top: 14px; }
.action-btn {
  flex: 1; padding: 9px; border-radius: 10px; border: 1.5px solid #d6e8f5;
  background: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 5px; color: #5a7a94;
}
.action-btn:hover { border-color: #3db8e8; color: #0a7bc4; background: #f0f8ff; }
.action-btn.added { background: #e8f5e9; border-color: #66bb6a; color: #2e7d32; }
.action-btn svg { width: 14px; height: 14px; }

/* Leaflet 自定义覆盖样式 */
.leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: none; background: transparent; }
.leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup-close-button { top: 8px !important; right: 8px !important; z-index: 10; width: 28px !important; height: 28px !important; background: rgba(255,255,255,0.85) !important; border-radius: 50% !important; font-size: 18px !important; color: #5a7a94 !important; display: flex !important; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important; }
.leaflet-popup-tip { background: #fff; box-shadow: 0 2px 8px rgba(0,60,120,0.08); }

/* --- 路线规划页面 --- */
.route-page { height: 100%; display: flex; padding-top: 60px; background: #f0f6fc; }
.route-map-panel { flex: 1; position: relative; }
#route-map { width: 100%; height: 100%; }
.route-sidebar {
  width: 400px; background: #fff; border-left: 1px solid #e2eef6;
  display: flex; flex-direction: column; box-shadow: -4px 0 20px rgba(0,60,120,0.05);
}
.route-sidebar-header {
  padding: 20px; border-bottom: 1px solid #edf2f7;
}
.route-sidebar-header h2 { font-size: 18px; font-weight: 700; color: #1a3a5c; margin-bottom: 4px; }
.route-sidebar-header p { font-size: 13px; color: #7a9bb5; }
.route-items { flex: 1; overflow-y: auto; padding: 12px; }
.route-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; background: #f8fbfd; margin-bottom: 8px;
  border: 1.5px solid transparent; transition: all 0.25s; cursor: grab;
  position: relative;
}
.route-item:hover { border-color: #c5dff6; background: #edf5fb; }
.route-item.dragging { opacity: 0.5; border-color: #3db8e8; }
.route-item-day {
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.route-item-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.route-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.route-item-info { flex: 1; }
.route-item-info h4 { font-size: 14px; font-weight: 600; color: #2c3e50; margin-bottom: 3px; }
.route-item-info span { font-size: 12px; color: #7a9bb5; }
.route-item-remove {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #b0c8d8;
  transition: all 0.2s; flex-shrink: 0;
}
.route-item-remove:hover { background: #ffebee; color: #e53935; }
.route-item-remove svg { width: 16px; height: 16px; }
.route-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 200px; color: #a0b8cc;
}
.route-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.route-empty p { font-size: 14px; }
.route-sidebar-footer {
  padding: 16px 20px; border-top: 1px solid #edf2f7;
  display: flex; gap: 8px;
}
.route-footer-btn {
  flex: 1; padding: 11px; border-radius: 12px; border: 1.5px solid #d6e8f5;
  background: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px; color: #5a7a94;
}
.route-footer-btn:hover { border-color: #3db8e8; color: #0a7bc4; }
.route-footer-btn.primary { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; border-color: transparent; }
.route-footer-btn.primary:hover { box-shadow: 0 4px 16px rgba(10,123,196,0.3); }
.route-footer-btn svg { width: 16px; height: 16px; }

/* --- 收藏页面 --- */
.favorites-page { height: 100%; padding-top: 60px; overflow-y: auto; background: #f0f6fc; }
.favorites-content { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }
.favorites-content h2 { font-size: 22px; font-weight: 700; color: #1a3a5c; margin-bottom: 6px; }
.favorites-content > p { font-size: 14px; color: #7a9bb5; margin-bottom: 24px; }
.fav-section { margin-bottom: 28px; }
.fav-section h3 { font-size: 16px; font-weight: 600; color: #2c5a7c; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.fav-card {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #e2eef6; transition: all 0.3s; cursor: pointer;
}
.fav-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,60,120,0.1); }
.fav-card-img { width: 100%; height: 140px; object-fit: cover; }
.fav-card-body { padding: 14px; }
.fav-card-body h4 { font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 4px; }
.fav-card-body p { font-size: 12.5px; color: #7a9bb5; margin-bottom: 8px; line-height: 1.5; }
.fav-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fav-tag {
  padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 500;
  background: #edf5fb; color: #3d8ab8;
}
.fav-route-card {
  border-radius: 16px; padding: 18px; background: #fff;
  border: 1px solid #e2eef6; transition: all 0.3s;
}
.fav-route-card:hover { box-shadow: 0 4px 20px rgba(0,60,120,0.08); }
.fav-route-card h4 { font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 6px; }
.fav-route-card .route-pois { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fav-route-card .poi-chip {
  padding: 4px 10px; border-radius: 8px; font-size: 12px;
  background: #f0f8ff; color: #0a7bc4; border: 1px solid #d6e8f5;
}
.fav-route-actions { display: flex; gap: 8px; }

/* --- Toast 提示 --- */
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 12px; background: rgba(26,58,92,0.9);
  color: #fff; font-size: 13.5px; font-weight: 500; z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); animation: toastIn 0.3s ease;
  backdrop-filter: blur(8px);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* --- 空状态 --- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: #a0b8cc;
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 15px; margin-bottom: 6px; }
.empty-state span { font-size: 13px; }

/* --- 自定义地图标记 --- */
.custom-marker { display: flex; align-items: center; justify-content: center; }
.marker-pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.marker-pin:hover { transform: rotate(-45deg) scale(1.15); }
.marker-pin.hotel { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.marker-pin.attraction { background: linear-gradient(135deg, #43a047, #66bb6a); }
.marker-pin.amusement { background: linear-gradient(135deg, #8e24aa, #ba68c8); }
.marker-pin svg { width: 18px; height: 18px; transform: rotate(45deg); fill: #fff; }

/* --- 响应式适配 --- */
@media (max-width: 900px) {
  .route-sidebar { width: 320px; }
  .country-pills { max-width: 240px; }
  .search-input-wrap { min-width: 200px; }
}
@media (max-width: 700px) {
  .route-page { flex-direction: column; }
  .route-map-panel { height: 40%; }
  .route-sidebar { width: 100%; height: 60%; border-left: none; border-top: 1px solid #e2eef6; }
  .country-pills { position: absolute; top: auto; bottom: 80px; right: 10px; left: 10px; justify-content: flex-start; overflow-x: auto; }
  .map-search-bar { left: 10px; right: 10px; }
  .search-input-wrap { min-width: 0; flex: 1; }
  .feature-cards { flex-direction: column; align-items: center; }
  .landing h1 { font-size: 28px; }
  .navbar-links { gap: 2px; }
  .nav-link { padding: 6px 12px; font-size: 13px; }
  .fav-grid { grid-template-columns: 1fr; }
}

/* --- 导出模态框 --- */
.export-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,20,40,0.45); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.export-modal {
  width: 560px; max-width: 90vw; max-height: 80vh;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,40,80,0.2); animation: popIn 0.3s ease;
}
.export-modal-header {
  padding: 20px 24px; border-bottom: 1px solid #edf2f7;
  display: flex; align-items: center; justify-content: space-between;
}
.export-modal-header h3 { font-size: 17px; font-weight: 700; color: #1a3a5c; }
.export-modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f0f6fc; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: #7a9bb5;
  transition: all 0.2s;
}
.export-modal-close:hover { background: #e3edf5; color: #2c3e50; }
.export-modal-body { padding: 20px 24px; overflow-y: auto; max-height: 60vh; }
.export-modal-body pre {
  background: #f8fbfd; border: 1px solid #e2eef6; border-radius: 12px;
  padding: 16px; font-size: 13px; line-height: 1.8; color: #2c5a7c;
  white-space: pre-wrap; word-break: break-all;
}
.export-modal-footer {
  padding: 16px 24px; border-top: 1px solid #edf2f7;
  display: flex; gap: 8px; justify-content: flex-end;
}

/* ============================================
   新增样式 - 价格/交通/汇总卡片
   ============================================ */

/* --- 1. POI 弹窗价格展示区域 --- */
.poi-popup-price {
  margin-top: 8px;
  margin-bottom: 12px;
}
.poi-popup-price .price-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.poi-popup-price .price-tag.hotel {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #fff;
}
.poi-popup-price .price-tag.attraction,
.poi-popup-price .price-tag.amusement {
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: #fff;
}
.poi-popup-price .price-tag.free {
  background: #e0e0e0;
  color: #757575;
}

/* --- 2. 路线行程项详细信息 --- */
.route-item-detail {
  padding-top: 6px;
  font-size: 12px;
  color: #7a9bb5;
  line-height: 1.6;
}
.route-item-detail span {
  display: inline-block;
  margin-right: 12px;
}

/* --- 3. 交通建议条 --- */
.route-transport-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f0f6fc;
  border-radius: 10px;
  margin: 4px 0 4px 32px;
  position: relative;
  font-size: 12.5px;
  color: #5a7a94;
}
.route-transport-bar::before {
  content: '';
  position: absolute;
  left: -16px;
  top: -4px;
  width: 2px;
  height: calc(100% + 8px);
  background: #c5dff6;
  border-radius: 1px;
}
.transport-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
}
.transport-icon.walk  { background: #43a047; }
.transport-icon.taxi,
.transport-icon.car   { background: #0a7bc4; }
.transport-icon.bus   { background: #ff9800; }
.transport-icon.train { background: #8e24aa; }
.transport-icon.flight{ background: #e53935; }
.transport-icon.ferry { background: #00acc1; }
.route-transport-bar .transport-text {
  flex: 1;
  line-height: 1.5;
}
.route-transport-bar .transport-text strong {
  font-weight: 600;
  color: #2c3e50;
}
.route-transport-bar .transport-meta {
  font-size: 11.5px;
  color: #89b4cf;
  white-space: nowrap;
}

/* --- 4. 行程汇总卡片 --- */
.route-summary-card {
  margin: 12px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8);
  color: #fff;
  box-shadow: 0 6px 24px rgba(10,123,196,0.25);
}
.route-summary-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}
.route-summary-card .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.route-summary-card .summary-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.route-summary-card .summary-row .summary-label {
  opacity: 0.8;
  font-weight: 400;
}
.route-summary-card .summary-row .summary-value {
  font-weight: 700;
  font-size: 15px;
}
.route-summary-card .summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.route-summary-card .summary-total .summary-label {
  font-size: 14px;
  font-weight: 600;
}
.route-summary-card .summary-total .summary-value {
  font-size: 20px;
  font-weight: 800;
}

/* --- 5. 交通标签 pill --- */
.transport-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: #edf5fb;
  color: #3d8ab8;
  border: 1px solid #d6e8f5;
  line-height: 1.5;
  white-space: nowrap;
}

/* --- 6. 路线行程项价格副标题 --- */
.route-item-price {
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
  display: block;
}
.route-item-price.hotel {
  color: #e65100;
}
.route-item-price.attraction,
.route-item-price.amusement {
  color: #2e7d32;
}

/* --- AI 行程生成模态框 --- */
.ai-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,20,40,0.45); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.ai-modal { width: 520px; max-width: 92vw; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,40,80,0.2); animation: popIn 0.3s ease; }
.ai-modal-header { padding: 24px; background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; }
.ai-modal-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.ai-modal-header p { font-size: 13px; opacity: 0.85; }
.ai-modal-body { padding: 24px; }
.ai-form-group { margin-bottom: 18px; }
.ai-form-group label { display: block; font-size: 13px; font-weight: 600; color: #2c5a7c; margin-bottom: 6px; }
.ai-form-group select, .ai-form-group input { width: 100%; padding: 10px 14px; border: 1.5px solid #d6e8f5; border-radius: 10px; font-size: 14px; color: #2c3e50; background: #f8fbfd; outline: none; transition: border-color 0.2s; }
.ai-form-group select:focus, .ai-form-group input:focus { border-color: #3db8e8; background: #fff; }
.ai-preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-pref-btn { padding: 10px; border-radius: 10px; border: 1.5px solid #d6e8f5; background: #f8fbfd; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: center; color: #5a7a94; }
.ai-pref-btn:hover { border-color: #3db8e8; color: #0a7bc4; }
.ai-pref-btn.active { background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(10,123,196,0.25); }
.ai-modal-footer { padding: 16px 24px; display: flex; gap: 10px; border-top: 1px solid #edf2f7; }
.ai-generating { text-align: center; padding: 30px; color: #7a9bb5; }
.ai-generating svg { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 签证信息标签 --- */
.visa-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; margin-top: 6px; }
.visa-tag.visa-free { background: #e8f5e9; color: #2e7d32; }
.visa-tag.visa-required { background: #fff3e0; color: #e65100; }
.visa-tag.visa-schengen { background: #e3f2fd; color: #1565c0; }
.visa-tag svg { width: 12px; height: 12px; }

/* --- 语言切换 --- */
.lang-toggle { display: flex; align-items: center; gap: 2px; background: #f0f6fc; border-radius: 20px; padding: 3px; border: 1px solid #d6e8f5; }
.lang-btn { padding: 5px 12px; border-radius: 16px; border: none; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: transparent; color: #7a9bb5; }
.lang-btn.active { background: #fff; color: #0a7bc4; box-shadow: 0 2px 8px rgba(0,80,160,0.1); }

/* ============================================
   首页改进样式
   ============================================ */

/* --- 首页内容容器 & 渐入动画 --- */
.landing-content {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 20px;
  position: relative; z-index: 2;
}
.landing-content > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.landing-ready > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.landing-ready > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.landing-ready > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.landing-ready > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.landing-ready > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.landing-ready > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
.landing-ready > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }
.landing-ready > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.56s; }
.landing-ready > *:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.64s; }
.landing-ready > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.72s; }
.landing-ready > *:nth-child(11) { opacity: 1; transform: translateY(0); transition-delay: 0.80s; }
.landing-ready > *:nth-child(12) { opacity: 1; transform: translateY(0); transition-delay: 0.88s; }

/* --- 背景浮动光斑 --- */
.landing-orbs { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: #3db8e8; top: 10%; left: -5%; animation-duration: 10s; }
.orb-2 { width: 250px; height: 250px; background: #0a7bc4; top: 60%; right: -8%; animation-duration: 12s; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #7b1fa2; bottom: 5%; left: 30%; animation-duration: 9s; animation-delay: -5s; }
.orb-4 { width: 180px; height: 180px; background: #00b894; top: 25%; right: 25%; animation-duration: 11s; animation-delay: -7s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

/* --- 热门目的地卡片 --- */
.hot-dest-card {
  border-radius: 14px; padding: 18px 14px; cursor: pointer;
  color: #fff; text-align: center; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; overflow: hidden;
}
.hot-dest-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0); transition: background 0.3s;
}
.hot-dest-card:hover::before { background: rgba(255,255,255,0.15); }
.hot-dest-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
.hot-dest-emoji { font-size: 28px; line-height: 1; margin-bottom: 4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.hot-dest-name { font-size: 15px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.hot-dest-city { font-size: 11px; opacity: 0.85; }
.hot-dest-count { font-size: 10px; opacity: 0.7; margin-top: 2px; }

/* --- 精选行程卡片 --- */
.featured-route-card {
  background: #fff; border-radius: 14px; padding: 18px 16px;
  border: 1.5px solid #e2eef6; cursor: pointer;
  transition: all 0.3s ease; text-align: left; position: relative; overflow: hidden;
}
.featured-route-card:hover { border-color: #3db8e8; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(10,123,196,0.12); }
.fr-tag {
  display: inline-block; padding: 3px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600; margin-bottom: 8px;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8); color: #fff;
}
.fr-name { font-size: 14px; font-weight: 700; color: #1a3a5c; margin-bottom: 6px; line-height: 1.3; }
.fr-meta { font-size: 12px; color: #7a9bb5; margin-bottom: 6px; }
.fr-budget { font-size: 14px; font-weight: 700; color: #0a7bc4; }

/* --- 用户评价轮播 --- */
.review-carousel { display: flex; flex-direction: column; align-items: center; }
.review-card {
  background: rgba(255,255,255,0.85); border-radius: 16px; padding: 20px 24px;
  border: 1px solid rgba(176,210,232,0.35); box-shadow: 0 4px 20px rgba(0,80,160,0.06);
  max-width: 520px; width: 100%; margin-bottom: 12px;
  transition: opacity 0.4s ease;
}
.review-text {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: #2c5a7c; line-height: 1.7; margin-bottom: 10px;
}
.review-author { font-size: 12px; color: #8b949e; text-align: right; }
.review-dots { display: flex; gap: 8px; }
.review-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d0dfe8;
  cursor: pointer; transition: all 0.3s;
}
.review-dot.active { background: #0a7bc4; transform: scale(1.3); }
.review-dot:hover { background: #3db8e8; }

/* --- 特性卡片图标动画 --- */
.feat-icon-globe svg { transition: transform 0.6s ease; }
.feature-card:hover .feat-icon-globe svg { transform: rotate(20deg) scale(1.1); }
.feat-icon-link svg { transition: transform 0.4s ease; }
.feature-card:hover .feat-icon-link svg { transform: translate(3px, -3px); }
.feat-icon-chart svg { transition: transform 0.5s ease; }
.feature-card:hover .feat-icon-chart svg { transform: scaleY(1.15); }

/* --- 键盘快捷键提示 --- */
.keyboard-hints {
  display: flex; gap: 20px; margin-bottom: 16px;
  font-size: 12px; color: #a0b8cc;
}
.keyboard-hints kbd {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  background: rgba(255,255,255,0.7); border: 1px solid #d6e8f5;
  font-size: 11px; font-weight: 600; color: #5a7a94;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-right: 4px;
  font-family: inherit;
}

/* --- 页脚 --- */
.landing-footer {
  font-size: 11px; color: #a0b8cc; margin-top: 8px;
  padding-bottom: 10px; opacity: 0.7;
}

/* --- 暗色模式首页改进适配 --- */
body.dark-mode .hot-dest-card { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
body.dark-mode .featured-route-card { background: #161b22; border-color: #21262d; }
body.dark-mode .featured-route-card:hover { border-color: #388bfd; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
body.dark-mode .fr-name { color: #c9d1d9; }
body.dark-mode .review-card { background: rgba(22,27,34,0.85); border-color: #30363d; }
body.dark-mode .review-text { color: #8b949e; }
body.dark-mode .review-author { color: #6e7681; }
body.dark-mode .review-dot { background: #30363d; }
body.dark-mode .review-dot.active { background: #58a6ff; }
body.dark-mode .keyboard-hints { color: #6e7681; }
body.dark-mode .keyboard-hints kbd { background: #161b22; border-color: #30363d; color: #8b949e; }
body.dark-mode .landing-footer { color: #484f58; }

/* --- 移动端首页改进适配 --- */
@media (max-width: 700px) {
  .hot-destinations > div,
  .featured-routes > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .orb-1 { width: 200px; height: 200px; }
  .orb-2 { width: 160px; height: 160px; }
  .orb-3, .orb-4 { display: none; }
  .review-card { padding: 16px 18px; }
  .review-text { font-size: 13px; }
  .keyboard-hints { gap: 12px; font-size: 11px; }
}

/* ============================================
   暗色模式
   ============================================ */
body.dark-mode {
  background: #0d1117;
  color: #c9d1d9;
}
body.dark-mode .navbar {
  background: rgba(13,17,23,0.92);
  border-bottom-color: rgba(48,54,61,0.6);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
body.dark-mode .navbar-brand { color: #58a6ff; }
body.dark-mode .nav-link { color: #8b949e; }
body.dark-mode .nav-link:hover { background: #161b22; color: #58a6ff; }
body.dark-mode .nav-link.active { background: linear-gradient(135deg, #1f6feb, #388bfd); }
body.dark-mode .landing {
  background: linear-gradient(170deg, #0d1117 0%, #0d1b2a 40%, #112240 100%);
}
body.dark-mode .landing h1 { color: #c9d1d9; }
body.dark-mode .landing h1 span { -webkit-text-fill-color: transparent; background: linear-gradient(135deg, #58a6ff, #79c0ff); -webkit-background-clip: text; }
body.dark-mode .landing .tagline { color: #8b949e; }
body.dark-mode .feature-card {
  background: rgba(22,27,34,0.85);
  border-color: rgba(48,54,61,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
body.dark-mode .feature-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
body.dark-mode .feature-card h3 { color: #c9d1d9; }
body.dark-mode .feature-card p { color: #8b949e; }
body.dark-mode .search-input-wrap {
  background: rgba(22,27,34,0.95);
  border-color: rgba(48,54,61,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
body.dark-mode .search-input { color: #c9d1d9; }
body.dark-mode .search-input::placeholder { color: #484f58; }
body.dark-mode .search-dropdown {
  background: rgba(22,27,34,0.98);
  border-color: rgba(48,54,61,0.5);
}
body.dark-mode .search-item { border-bottom-color: rgba(48,54,61,0.4); }
body.dark-mode .search-item:hover { background: #161b22; }
body.dark-mode .search-item-info h4 { color: #c9d1d9; }
body.dark-mode .search-item-info span { color: #8b949e; }
body.dark-mode .country-pill {
  background: rgba(22,27,34,0.92);
  border-color: rgba(48,54,61,0.5);
  color: #8b949e;
}
body.dark-mode .country-pill:hover { border-color: #388bfd; color: #58a6ff; background: #0d1117; }
body.dark-mode .country-pill.active { background: linear-gradient(135deg, #1f6feb, #388bfd); color: #fff; border-color: transparent; }
body.dark-mode .filter-bar {
  background: rgba(22,27,34,0.95);
  border-color: rgba(48,54,61,0.5);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.dark-mode .filter-btn { color: #8b949e; }
body.dark-mode .filter-btn:hover { background: #161b22; }
body.dark-mode .filter-btn.active { background: linear-gradient(135deg, #1f6feb, #388bfd); }
body.dark-mode .poi-popup { background: #161b22; box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
body.dark-mode .poi-popup-name { color: #c9d1d9; }
body.dark-mode .poi-popup-meta { color: #8b949e; }
body.dark-mode .poi-popup-desc { color: #8b949e; }
body.dark-mode .poi-popup-highlights { color: #58a6ff; }
body.dark-mode .poi-popup-links { border-top-color: #21262d; }
body.dark-mode .poi-popup-links h4 { color: #8b949e; }
body.dark-mode .official-link.secondary {
  background: #0d1117;
  color: #58a6ff;
  border-color: #21262d;
}
body.dark-mode .official-link.secondary:hover { background: #161b22; }
body.dark-mode .action-btn {
  background: #0d1117;
  border-color: #21262d;
  color: #8b949e;
}
body.dark-mode .action-btn:hover { border-color: #388bfd; color: #58a6ff; }
body.dark-mode .action-btn.added { background: #0d2818; border-color: #238636; color: #3fb950; }
body.dark-mode .route-page { background: #0d1117; }
body.dark-mode .route-sidebar { background: #161b22; border-left-color: #21262d; }
body.dark-mode .route-sidebar-header h2 { color: #c9d1d9; }
body.dark-mode .route-sidebar-header p { color: #8b949e; }
body.dark-mode .route-item { background: #0d1117; border-color: transparent; }
body.dark-mode .route-item:hover { border-color: #30363d; background: #161b22; }
body.dark-mode .route-item-info h4 { color: #c9d1d9; }
body.dark-mode .route-item-info span { color: #8b949e; }
body.dark-mode .route-transport-bar { background: #161b22; }
body.dark-mode .route-transport-bar .transport-text strong { color: #c9d1d9; }
body.dark-mode .route-footer-btn {
  background: #0d1117;
  border-color: #21262d;
  color: #8b949e;
}
body.dark-mode .route-footer-btn:hover { border-color: #388bfd; color: #58a6ff; }
body.dark-mode .route-footer-btn.primary { background: linear-gradient(135deg, #1f6feb, #388bfd); color: #fff; border-color: transparent; }
body.dark-mode .favorites-page { background: #0d1117; }
body.dark-mode .favorites-content h2 { color: #c9d1d9; }
body.dark-mode .favorites-content > p { color: #8b949e; }
body.dark-mode .fav-card { background: #161b22; border-color: #21262d; }
body.dark-mode .fav-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
body.dark-mode .fav-card-body h4 { color: #c9d1d9; }
body.dark-mode .fav-card-body p { color: #8b949e; }
body.dark-mode .fav-tag { background: #0d1117; color: #58a6ff; border-color: #21262d; }
body.dark-mode .fav-route-card { background: #161b22; border-color: #21262d; }
body.dark-mode .fav-route-card h4 { color: #c9d1d9; }
body.dark-mode .poi-chip { background: #0d1117; color: #58a6ff; border-color: #21262d; }
body.dark-mode .ai-modal { background: #161b22; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
body.dark-mode .ai-modal-body label { color: #c9d1d9; }
body.dark-mode .ai-form-group select,
body.dark-mode .ai-form-group input { background: #0d1117; border-color: #30363d; color: #c9d1d9; }
body.dark-mode .ai-form-group select:focus,
body.dark-mode .ai-form-group input:focus { border-color: #388bfd; }
body.dark-mode .ai-pref-btn { background: #0d1117; border-color: #21262d; color: #8b949e; }
body.dark-mode .ai-pref-btn:hover { border-color: #388bfd; color: #58a6ff; }
body.dark-mode .ai-pref-btn.active { background: linear-gradient(135deg, #1f6feb, #388bfd); color: #fff; border-color: transparent; }
body.dark-mode .ai-modal-footer { border-top-color: #21262d; }
body.dark-mode .export-modal { background: #161b22; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
body.dark-mode .export-modal-header { border-bottom-color: #21262d; }
body.dark-mode .export-modal-header h3 { color: #c9d1d9; }
body.dark-mode .export-modal-close { background: #0d1117; color: #8b949e; }
body.dark-mode .export-modal-close:hover { background: #161b22; color: #c9d1d9; }
body.dark-mode .export-modal-body pre { background: #0d1117; border-color: #21262d; color: #8b949e; }
body.dark-mode .export-modal-footer { border-top-color: #21262d; }
body.dark-mode .toast { background: rgba(13,17,23,0.92); }
body.dark-mode .lang-toggle { background: #0d1117; border-color: #21262d; }
body.dark-mode .lang-btn { color: #8b949e; }
body.dark-mode .lang-btn.active { background: #161b22; color: #58a6ff; }
body.dark-mode .leaflet-popup-content-wrapper { background: transparent; }
body.dark-mode .leaflet-popup-close-button { background: rgba(22,27,34,0.85) !important; color: #8b949e !important; }

/* 暗色模式切换按钮 */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #d6e8f5;
  background: #f0f6fc; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.25s;
  flex-shrink: 0; margin-left: 8px;
}
.theme-toggle:hover { border-color: #3db8e8; background: #e3f0fb; }
.theme-toggle svg { width: 18px; height: 18px; color: #5a7a94; }
body.dark-mode .theme-toggle {
  background: #161b22; border-color: #30363d;
}
body.dark-mode .theme-toggle:hover { border-color: #388bfd; background: #0d1117; }
body.dark-mode .theme-toggle svg { color: #f0883e; }

/* ============================================
   星级评分
   ============================================ */
.star-rating { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; }
.star-rating .star { color: #ffc107; font-size: 13px; line-height: 1; }
.star-rating .star.empty { color: #d0dfe8; }
.star-rating .star.half { position: relative; }
.star-rating .rating-score {
  font-size: 12px; font-weight: 600; color: #5a7a94; margin-left: 4px;
}
body.dark-mode .star-rating .star.empty { color: #30363d; }
body.dark-mode .star-rating .rating-score { color: #8b949e; }

/* POI弹窗中的评分展示 */
.poi-popup-rating {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 10px; font-size: 13px;
}
.poi-popup-rating .stars { display: flex; gap: 1px; }
.poi-popup-rating .stars svg { width: 14px; height: 14px; }
.poi-popup-rating .score { font-weight: 700; color: #1a3a5c; margin-left: 4px; }
.poi-popup-rating .count { color: #8b949e; font-size: 12px; margin-left: 2px; }
body.dark-mode .poi-popup-rating .score { color: #c9d1d9; }

/* 搜索结果中的评分 */
.search-item-rating {
  display: flex; align-items: center; gap: 3px;
  margin-top: 2px;
}
.search-item-rating .stars { display: flex; gap: 1px; }
.search-item-rating .stars svg { width: 12px; height: 12px; }
.search-item-rating .score { font-size: 11px; font-weight: 600; color: #f59e0b; }

/* ============================================
   首页统计数据面板
   ============================================ */
.stats-bar {
  display: flex; gap: 24px; justify-content: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-item .stat-number {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #0a7bc4, #3db8e8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 12px; color: #7a9bb5; margin-top: 2px;
}
body.dark-mode .stat-item .stat-label { color: #8b949e; }

/* ============================================
   地图标记脉冲动画
   ============================================ */
.marker-pulse {
  position: absolute; width: 100%; height: 100%;
  border-radius: 50%; animation: pulse 2s ease-out infinite;
}
.marker-pin.hotel .marker-pulse { background: rgba(255,152,0,0.3); }
.marker-pin.attraction .marker-pulse { background: rgba(67,160,71,0.3); }
.marker-pin.amusement .marker-pulse { background: rgba(142,36,170,0.3); }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ============================================
   分享功能
   ============================================ */
.share-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,20,40,0.45); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
body.dark-mode .share-modal-overlay { background: rgba(0,0,0,0.6); }
.share-modal {
  width: 480px; max-width: 92vw;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,40,80,0.2); animation: popIn 0.3s ease;
}
body.dark-mode .share-modal { background: #161b22; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.share-modal-header {
  padding: 20px 24px; border-bottom: 1px solid #edf2f7;
  display: flex; align-items: center; justify-content: space-between;
}
body.dark-mode .share-modal-header { border-bottom-color: #21262d; }
.share-modal-header h3 { font-size: 17px; font-weight: 700; color: #1a3a5c; }
body.dark-mode .share-modal-header h3 { color: #c9d1d9; }
.share-modal-body { padding: 24px; }
.share-card {
  background: linear-gradient(135deg, #0a7bc4, #3db8e8);
  border-radius: 16px; padding: 24px; color: #fff;
  margin-bottom: 16px;
}
.share-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.share-card .share-route-info {
  font-size: 13px; opacity: 0.85; line-height: 1.8;
}
.share-card .share-budget {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-weight: 600; font-size: 15px;
}
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-action-btn {
  padding: 12px; border-radius: 12px; border: 1.5px solid #d6e8f5;
  background: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #5a7a94;
}
body.dark-mode .share-action-btn {
  background: #0d1117; border-color: #21262d; color: #8b949e;
}
.share-action-btn:hover { border-color: #3db8e8; color: #0a7bc4; }
body.dark-mode .share-action-btn:hover { border-color: #388bfd; color: #58a6ff; }
.share-action-btn svg { width: 18px; height: 18px; }
.share-modal-footer {
  padding: 16px 24px; border-top: 1px solid #edf2f7;
  display: flex; justify-content: flex-end;
}
body.dark-mode .share-modal-footer { border-top-color: #21262d; }

/* ============================================
   移动端优化
   ============================================ */
@media (max-width: 700px) {
  .stats-bar { gap: 16px; margin-bottom: 24px; }
  .stat-item .stat-number { font-size: 22px; }
  .share-modal { border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-height: 85vh; }
  .share-modal-overlay { align-items: flex-end; }
  .share-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .share-card { padding: 18px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 4px 10px; font-size: 11px; }
  .poi-popup { width: 300px; }
  .poi-popup-img { height: 130px; }
}

/* ============================================
   国内出行方案规划
   ============================================ */
.domestic-overlay {
  position: fixed; inset: 0; background: rgba(10, 25, 45, 0.62);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.domestic-modal {
  background: #fff; border-radius: 20px; width: min(1200px, 96vw);
  max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0, 40, 80, 0.25);
  animation: modalIn 0.3s ease;
}
body.dark-mode .domestic-modal { background: #0d1117; }
.domestic-header {
  background: linear-gradient(135deg, #e8590c, #ff922b);
  color: #fff; padding: 22px 28px; border-radius: 20px 20px 0 0;
  position: relative;
}
.domestic-header h3 { margin: 0 0 6px; font-size: 20px; }
.domestic-header p { margin: 0; font-size: 13px; opacity: 0.9; }
.domestic-back {
  position: absolute; right: 20px; top: 20px; background: rgba(255,255,255,0.2);
  color: #fff; border: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.domestic-back:hover { background: rgba(255,255,255,0.35); }
.domestic-body { padding: 24px 28px; }
.domestic-footer {
  padding: 16px 28px; border-top: 1px solid #edf2f7; display: flex; gap: 10px;
}
body.dark-mode .domestic-footer { border-top-color: #21262d; }

.domestic-form-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; margin-bottom: 18px;
}
.domestic-form-group { display: flex; flex-direction: column; gap: 6px; }
.domestic-form-group label { font-size: 13px; font-weight: 600; color: #1a3a5c; }
body.dark-mode .domestic-form-group label { color: #c9d1d9; }
.domestic-form-group select, .domestic-form-group input {
  padding: 10px 12px; border: 1.5px solid #dce8f2; border-radius: 10px; font-size: 14px;
  background: #f8fbfd; color: #1a3a5c; outline: none;
}
body.dark-mode .domestic-form-group select, body.dark-mode .domestic-form-group input {
  background: #161b22; border-color: #30363d; color: #c9d1d9;
}
.domestic-form-group select:focus, .domestic-form-group input:focus { border-color: #3db8e8; }
.domestic-dest-display {
  padding: 10px 12px; border: 1.5px solid #ffd8a8; border-radius: 10px; font-size: 14px;
  background: #fff4e6; color: #e8590c; font-weight: 600;
}
body.dark-mode .domestic-dest-display { background: #2d1b00; border-color: #e8590c; color: #ff922b; }

.domestic-route-preview {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: #f8fbfd; border: 1.5px dashed #dce8f2; border-radius: 14px; padding: 16px;
}
body.dark-mode .domestic-route-preview { background: #161b22; border-color: #30363d; }
.preview-stop {
  padding: 8px 14px; background: #fff; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #1a3a5c; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
body.dark-mode .preview-stop { background: #21262d; color: #c9d1d9; }
.preview-arrow { color: #ff922b; font-weight: 700; }

/* 方案卡片 */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  background: #f8fbfd; border: 1.5px solid #e2eef6; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,40,80,0.12); }
body.dark-mode .plan-card { background: #161b22; border-color: #21262d; }
.plan-card-head { color: #fff; padding: 18px 18px 14px; position: relative; }
.plan-tag {
  display: inline-block; background: rgba(255,255,255,0.25); padding: 3px 10px;
  border-radius: 8px; font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.plan-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.plan-total { display: flex; align-items: baseline; gap: 8px; }
.plan-total span { font-size: 12px; opacity: 0.9; }
.plan-total b { font-size: 22px; }
.plan-summary {
  padding: 10px 18px; font-size: 12px; color: #7a9bb5; line-height: 1.6;
  border-bottom: 1px solid #edf2f7; background: #fff;
}
body.dark-mode .plan-summary { background: #0d1117; color: #8b949e; border-bottom-color: #21262d; }

.plan-section { padding: 12px 18px; border-bottom: 1px solid #edf2f7; }
body.dark-mode .plan-section { border-bottom-color: #21262d; }
.plan-section-title {
  font-size: 13px; font-weight: 700; color: #1a3a5c; margin-bottom: 10px;
}
body.dark-mode .plan-section-title { color: #c9d1d9; }
.plan-nights { font-size: 11px; color: #8b949e; font-weight: 400; }

.plan-segment { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.plan-segment:last-child { margin-bottom: 0; }
.seg-day {
  flex-shrink: 0; width: 30px; height: 22px; background: #e8f4fb; color: #0a7bc4;
  border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
body.dark-mode .seg-day { background: #1f3a5c; color: #58a6ff; }
.seg-main { flex: 1; min-width: 0; }
.seg-route { font-size: 13px; color: #1a3a5c; font-weight: 600; }
body.dark-mode .seg-route { color: #c9d1d9; }
.seg-arrow { color: #ff922b; margin: 0 2px; }
.seg-meta { font-size: 11px; color: #8b949e; margin-top: 2px; }
.seg-cost { font-size: 12px; font-weight: 700; color: #e8590c; white-space: nowrap; }

.plan-taxi { display: flex; gap: 6px; align-items: baseline; margin-bottom: 7px; font-size: 12px; }
.plan-taxi:last-child { margin-bottom: 0; }
.taxi-route { flex: 1; color: #2c5a7c; }
body.dark-mode .taxi-route { color: #8b949e; }
.taxi-time { color: #8b949e; font-size: 11px; white-space: nowrap; }
.taxi-cost { font-weight: 700; color: #0a7bc4; white-space: nowrap; }

.plan-hotel { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; font-size: 12px; }
.plan-hotel:last-child { margin-bottom: 0; }
.hotel-tier {
  flex-shrink: 0; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff;
}
.tier-经济 { background: #2e7d32; }
.tier-舒适 { background: #0a7bc4; }
.tier-奢华 { background: #7b1fa2; }
.hotel-name { flex: 1; color: #1a3a5c; }
body.dark-mode .hotel-name { color: #c9d1d9; }
.hotel-price { color: #e8590c; font-weight: 600; white-space: nowrap; }

.plan-ticket { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.plan-ticket:last-child { margin-bottom: 0; }
.ticket-name { color: #2c5a7c; }
body.dark-mode .ticket-name { color: #8b949e; }
.ticket-price { font-weight: 700; color: #7b1fa2; }

.plan-card-footer { padding: 14px 18px; margin-top: auto; }
.plan-add-btn {
  width: 100%; border: none; color: #fff; padding: 11px; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.2s, opacity 0.2s;
}
.plan-add-btn:hover { transform: translateY(-2px); opacity: 0.9; }

@media (max-width: 980px) {
  .plans-grid { grid-template-columns: 1fr; }
  .domestic-form-grid { grid-template-columns: 1fr; }
}
