/* ============================================
   漫游视界 - 全能旅行助手样式表
   ============================================ */

/* ========== CSS 变量 / 主题 ========== */
[data-theme="light"] {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef0f5;
  --bg-hover: #f0f2f8;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6c757d;
  --text-tertiary: #adb5bd;
  --accent: #4facfe;
  --accent-2: #00f2fe;
  --accent-grad: linear-gradient(135deg, #4facfe, #00f2fe);
  --accent-soft: rgba(79, 172, 254, 0.1);
  --border: #e3e6ed;
  --border-light: #eef0f5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #ffd43b;
  --overlay: rgba(0,0,0,0.5);
}

[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-hover: #262d36;
  --card-bg: #161b22;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --accent: #4facfe;
  --accent-2: #00f2fe;
  --accent-grad: linear-gradient(135deg, #4facfe, #00f2fe);
  --accent-soft: rgba(79, 172, 254, 0.12);
  --border: #30363d;
  --border-light: #262d36;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --danger: #ff6b6b;
  --success: #51cf66;
  --warning: #ffd43b;
  --overlay: rgba(0,0,0,0.7);
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ========== 通用 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { display: none; min-height: 60vh; padding-top: 80px; padding-bottom: 60px; animation: fadeIn 0.4s ease; }
.section-active { display: block; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; margin-top: 0; }
.section-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; }
.placeholder-icon { font-size: 3rem; margin-bottom: 16px; }
.placeholder-sub { color: var(--text-tertiary); font-size: 0.85rem; }

/* ========== 加载动画 ========== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; transition: opacity 0.5s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(79,172,254,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn-block { width: 100%; margin-bottom: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.2s;
  background: var(--bg-tertiary);
}
.icon-btn:hover { background: var(--accent-soft); transform: scale(1.05); }

/* ========== 表单输入 ========== */
.text-input, .select-input, .textarea-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; transition: all 0.2s;
  outline: none;
}
.text-input:focus, .select-input:focus, .textarea-input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea-input { resize: vertical; min-height: 100px; line-height: 1.5; }
.select-input { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

/* ========== Header ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 16px;
  overflow: visible;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.logo-icon { font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.logo-icon-svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-desktop { display: flex; gap: 2px; margin-left: auto; flex-shrink: 1; overflow: hidden; }
.nav-link {
  padding: 8px 10px; border-radius: 8px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s; cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: var(--bg-tertiary); transition: all 0.2s;
}
.theme-toggle:hover { background: var(--accent-soft); }
.theme-icon-svg { width: 20px; height: 20px; stroke: var(--text-primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="light"] .theme-icon-svg.icon-sun { display: none; }
[data-theme="light"] .theme-icon-svg.icon-moon { display: block; }
[data-theme="dark"] .theme-icon-svg.icon-sun { display: block; }
[data-theme="dark"] .theme-icon-svg.icon-moon { display: none; }

/* 语言切换器 */
.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-icon { width: 18px; height: 18px; stroke: var(--text-secondary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lang-select {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 28px 6px 10px; font-size: 0.85rem; cursor: pointer;
  outline: none; transition: all 0.2s; appearance: none;
  -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lang-select option { background: var(--bg-secondary); color: var(--text-primary); }
.mobile-toggle { display: none; flex-direction: column; gap: 4px; width: 38px; height: 38px;
  align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-tertiary); }
.mobile-toggle span { width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.nav-mobile {
  display: none; flex-direction: column; padding: 12px 20px;
  border-top: 1px solid var(--border); gap: 4px;
}
.nav-mobile.open { display: flex; animation: slideDown 0.3s ease; }
.nav-mobile .nav-link { padding: 12px 14px; font-size: 0.95rem; }

/* ========== Hero ========== */
.hero { position: relative; height: 480px; overflow: hidden; margin-top: 64px; padding-top: 0; }
#home.section { padding-top: 0; }
.hero-img-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(30,30,60,0.55), rgba(80,40,60,0.45)), url('../images/cities/paris.jpg');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}
.hero-title { font-size: 3rem; font-weight: 900; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.hero-search { display: flex; gap: 0; max-width: 560px; width: 100%; position: relative; }
.hero-search-input {
  flex: 1; padding: 14px 20px; border: none; border-radius: 12px 0 0 12px;
  font-size: 1rem; outline: none; background: rgba(255,255,255,0.95);
  color: #333;
}
.hero-search-btn {
  padding: 14px 24px; background: var(--accent-grad); color: #fff;
  border-radius: 0 12px 12px 0; font-weight: 500; font-size: 0.95rem;
  transition: all 0.2s;
}
.hero-search-btn:hover { filter: brightness(1.1); }
.hero-search-btn svg { stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-secondary); border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 10;
  text-align: left; display: none;
}
.hero-suggestions.show { display: block; }
.suggestion-item {
  padding: 10px 20px; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; gap: 8px; color: var(--text-primary);
}
.suggestion-item:hover { background: var(--bg-hover); }

/* ========== 功能卡片 ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px;
}
.feature-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 20px; text-align: center;
  cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-grad); transform: scaleX(0); transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card-highlight { background: var(--accent-grad); color: #fff; border: none; }
.feature-card-highlight::before { display: none; }
.feature-card-highlight:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(79,172,254,0.4); }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 36px; height: 36px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card-highlight .feature-icon { color: #fff; }
.feature-card-highlight .feature-icon svg { stroke: #fff; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text-secondary); }
.feature-card-highlight p { color: rgba(255,255,255,0.85); }

/* ========== 热门目的地 ========== */
.popular-destinations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ========== 城市卡片 ========== */
.city-card {
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: all 0.3s; position: relative; height: 200px;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.city-card-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.city-card:hover .city-card-bg { transform: scale(1.08); }
.city-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.city-card-content {
  position: absolute; inset: 0; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  z-index: 2;
}
.city-flag { font-size: 1.8rem; margin-bottom: auto; }
.city-name { font-size: 1.3rem; font-weight: 700; }
.city-country { font-size: 0.8rem; opacity: 0.85; margin-bottom: 6px; }
.city-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.city-tag {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 20px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}

/* ========== 装备清单 ========== */
.checklist-filters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
  background: var(--bg-secondary); padding: 20px; border-radius: 16px;
  border: 1px solid var(--border);
  align-items: start;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; min-height: fit-content; }
.filter-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.filter-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px; font-size: 0.82rem;
  background: var(--bg-tertiary); color: var(--text-secondary);
  transition: all 0.2s; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.filter-btn:hover { background: var(--bg-hover); }
.filter-btn.active { background: var(--accent-grad); color: #fff; }
.filter-chip {
  padding: 6px 16px; border-radius: 20px; font-size: 0.82rem;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.checklist-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.checklist-progress { margin-bottom: 20px; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 6px; }
.progress-label { font-size: 0.85rem; color: var(--text-secondary); }
.progress-text { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.progress-bar { height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-grad); border-radius: 4px; transition: width 0.4s ease; }

.checklist-categories { display: flex; flex-direction: column; gap: 16px; }
.checklist-category {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
}
.category-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.category-count { font-size: 0.75rem; color: var(--text-tertiary); font-weight: 400; }
.category-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checklist-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
  background: var(--bg-tertiary);
  min-width: 0; overflow: hidden;
}
.checklist-item:hover { background: var(--bg-hover); }
.checklist-item input[type="checkbox"] { display: none; }
.checkmark {
  width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.2s;
}
.checklist-item input:checked ~ .checkmark {
  background: var(--accent-grad); border-color: transparent;
}
.checkmark::after { content: '✓'; color: #fff; font-size: 0.7rem; opacity: 0; transition: opacity 0.2s; }
.checklist-item input:checked ~ .checkmark::after { opacity: 1; }
.item-icon { font-size: 1.1rem; flex-shrink: 0; }
.item-name { font-size: 0.875rem; flex: 1; transition: all 0.2s; min-width: 0; word-break: break-word; line-height: 1.3; }
.checklist-item input:checked ~ .item-name { text-decoration: line-through; color: var(--text-tertiary); }
.item-essential {
  font-size: 0.65rem; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,107,107,0.15); color: var(--danger); font-weight: 500;
}
.item-custom {
  font-size: 0.65rem; padding: 2px 6px; border-radius: 4px;
  background: rgba(81,207,102,0.15); color: var(--success); font-weight: 500;
}
.item-delete { font-size: 0.9rem; opacity: 0.5; transition: opacity 0.2s; }
.checklist-item:hover .item-delete { opacity: 1; }

.checklist-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.sidebar-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.sidebar-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.sidebar-card .select-input, .sidebar-card .text-input { margin-bottom: 8px; }

/* ========== 天气 ========== */
.weather-search { display: flex; gap: 8px; margin-bottom: 8px; }
.weather-search-input { flex: 1; }
.quick-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 24px; }
.quick-label { font-size: 0.8rem; color: var(--text-secondary); }
.quick-city {
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  transition: all 0.2s; cursor: pointer; color: var(--text-primary);
}
.quick-city:hover { border-color: var(--accent); color: var(--accent); }
.search-suggestions {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden;
  margin-bottom: 16px; display: none;
}
.search-suggestions.show { display: block; }

.weather-display { min-height: 300px; }
.weather-placeholder { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.weather-current {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.weather-location { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.weather-time { font-size: 0.8rem; color: var(--text-tertiary); }
.weather-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 200px; }
.weather-icon { font-size: 4rem; }
.weather-temp { font-size: 3rem; font-weight: 300; }
.weather-desc { font-size: 1.1rem; color: var(--text-secondary); }
.weather-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; min-width: 240px; }
.weather-detail {
  background: var(--bg-tertiary); border-radius: 12px; padding: 12px; text-align: center;
}
.weather-detail-icon { font-size: 1.3rem; margin-bottom: 4px; }
.weather-detail-label { font-size: 0.72rem; color: var(--text-tertiary); }
.weather-detail-value { font-size: 0.95rem; font-weight: 600; }

.weather-forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.forecast-day {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px; text-align: center; transition: all 0.2s;
}
.forecast-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.forecast-date { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 6px; }
.forecast-icon { font-size: 1.8rem; margin-bottom: 4px; }
.forecast-temp { font-size: 0.8rem; }
.forecast-temp .high { font-weight: 600; }
.forecast-temp .low { color: var(--text-tertiary); }

.weather-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.weather-tips-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start;
}
.tips-icon { font-size: 1.5rem; flex-shrink: 0; }
.tips-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.tips-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ========== 攻略搜索 ========== */
.guide-search { margin-bottom: 12px; }
.guide-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.city-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.no-results { text-align: center; padding: 60px 20px; color: var(--text-secondary); }

/* ========== 城市详情弹窗 ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--overlay); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.3s; }
.modal-content {
  background: var(--bg-secondary); border-radius: 20px;
  max-width: 720px; width: 100%; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: slideUp 0.4s ease;
}
.modal-header {
  padding: 32px 28px; color: #fff; position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
}
.modal-flag { font-size: 2.5rem; margin-bottom: 8px; }
.modal-city-name { font-size: 2rem; font-weight: 700; }
.modal-city-country { font-size: 0.9rem; opacity: 0.85; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.35); transform: rotate(90deg); }
.modal-body { padding: 24px 28px; max-height: 60vh; overflow-y: auto; }
.modal-section { margin-bottom: 24px; }
.modal-section-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-item {
  background: var(--bg-tertiary); padding: 10px 14px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.info-label { font-size: 0.8rem; color: var(--text-secondary); }
.info-value { font-size: 0.85rem; font-weight: 500; }
.attraction-list, .food-list { display: flex; flex-direction: column; gap: 10px; }
.attraction-item, .food-item {
  background: var(--bg-tertiary); padding: 12px 16px; border-radius: 12px;
}
.attraction-name, .food-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.attraction-desc, .food-desc { font-size: 0.82rem; color: var(--text-secondary); }
.modal-tips, .modal-scams {
  background: var(--bg-tertiary); padding: 14px 16px; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.7; white-space: pre-line; color: var(--text-secondary);
}
.modal-scams { border-left: 3px solid var(--danger); }
.modal-tips { border-left: 3px solid var(--success); }

/* ========== 语音记录 ========== */
.voice-recorder {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; text-align: center; margin-bottom: 24px;
}
.voice-btn {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all 0.3s; box-shadow: 0 4px 20px rgba(79,172,254,0.3);
}
.voice-btn:hover { transform: scale(1.05); }
.voice-btn.recording { animation: pulse 1.5s infinite; background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }
.voice-btn-icon { font-size: 2rem; }
.voice-btn-text { font-size: 0.7rem; margin-top: 2px; }
.voice-status { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; min-height: 20px; }
.voice-transcript-wrapper { position: relative; margin-bottom: 16px; }
.voice-transcript {
  min-height: 80px; padding: 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-tertiary); text-align: left;
  outline: none; transition: border-color 0.2s; font-size: 0.9rem; line-height: 1.6;
}
.voice-transcript:focus { border-color: var(--accent); }
.voice-transcript:empty::before { content: ''; }
.voice-placeholder {
  position: absolute; top: 14px; left: 14px; color: var(--text-tertiary);
  font-size: 0.9rem; pointer-events: none; transition: opacity 0.2s;
}
.voice-placeholder.hide { opacity: 0; }
.voice-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.voice-actions .text-input { flex: 1; min-width: 180px; }
.voice-notes-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.voice-notes-header h3 { font-size: 1.1rem; }
.notes-count { font-size: 0.8rem; color: var(--text-tertiary); }
.voice-notes-list { display: flex; flex-direction: column; gap: 12px; }
.voice-note {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
}
.voice-note-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.voice-note-title { font-size: 0.95rem; font-weight: 600; }
.voice-note-time { font-size: 0.75rem; color: var(--text-tertiary); }
.voice-note-content { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.voice-note-actions { display: flex; gap: 6px; }

/* ========== 翻译 ========== */
.translate-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px;
}
.translate-langs { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.lang-select-group { flex: 1; }
.lang-label { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 4px; display: block; }
.swap-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-tertiary); font-size: 1.2rem; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.swap-btn:hover { background: var(--accent-soft); transform: rotate(180deg); }
.translate-textareas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.textarea-wrapper { display: flex; flex-direction: column; }
.textarea-footer { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; }
.char-count { font-size: 0.72rem; color: var(--text-tertiary); }
.textarea-actions { display: flex; gap: 4px; }
.textarea-result { background: var(--bg-tertiary); }
#translateBtn { display: flex; align-items: center; justify-content: center; gap: 8px; }
#translateBtn svg { stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ========== 货币 ========== */
.currency-converter {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.currency-card {
  flex: 1; min-width: 240px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.currency-label { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.currency-result { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; min-height: 40px; }
.currency-card .select-input { margin-top: 8px; }
.currency-swap { flex-shrink: 0; }
.currency-info { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; text-align: center; }
.currency-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rate-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; text-align: center;
}
.rate-pair { font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 4px; }
.rate-value { font-size: 1rem; font-weight: 600; }

/* ========== 行程规划 ========== */
.planner-form { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.planner-form .text-input { flex: 1; min-width: 140px; }
.planner-trips { display: flex; flex-direction: column; gap: 16px; }
.planner-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.planner-trip {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; border-left: 4px solid var(--accent);
}
.trip-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.trip-destination { font-size: 1.2rem; font-weight: 700; flex: 1; }
.trip-countdown {
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.trip-countdown.urgent { background: rgba(255,107,107,0.15); color: var(--danger); }
.trip-countdown.past { background: var(--bg-tertiary); color: var(--text-tertiary); }
.trip-info { display: flex; gap: 20px; margin-bottom: 16px; font-size: 0.82rem; color: var(--text-secondary); }
.trip-itinerary { display: flex; flex-direction: column; gap: 10px; }
.itinerary-day {
  background: var(--bg-tertiary); border-radius: 12px; padding: 12px 16px;
}
.itinerary-day-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--accent); }
.itinerary-add { display: flex; gap: 6px; margin-bottom: 6px; }
.itinerary-add .text-input { flex: 1; padding: 6px 10px; font-size: 0.82rem; }
.itinerary-add .btn { padding: 6px 12px; font-size: 0.82rem; }
.itinerary-items { display: flex; flex-direction: column; gap: 4px; }
.itinerary-item {
  font-size: 0.82rem; padding: 4px 0; display: flex; align-items: center; gap: 6px;
  color: var(--text-secondary);
}
.itinerary-item::before { content: '•'; color: var(--accent); }
.itinerary-item .item-delete { margin-left: auto; }

/* ========== Footer ========== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-content { text-align: center; }
.footer-brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.footer-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.footer-copy { font-size: 0.78rem; color: var(--text-tertiary); }

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--text-primary); color: var(--bg-primary);
  padding: 12px 24px; border-radius: 12px; font-size: 0.875rem;
  z-index: 3000; opacity: 0; transition: all 0.3s; pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 返回顶部 ========== */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: all 0.3s; box-shadow: var(--shadow-md);
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); }

/* ========== 动画 ========== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
  50% { box-shadow: 0 0 0 20px rgba(255,107,107,0); }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .popular-destinations { grid-template-columns: repeat(3, 1fr); }
  .city-cards { grid-template-columns: repeat(2, 1fr); }
  .checklist-filters { grid-template-columns: repeat(2, 1fr); }
  .weather-forecast { grid-template-columns: repeat(4, 1fr); }
  .currency-rates { grid-template-columns: repeat(3, 1fr); }
  .category-items { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
  .lang-switcher { gap: 2px; }
  .lang-select { padding: 5px 24px 5px 8px; font-size: 0.8rem; }
  .header-actions { gap: 8px; }
  .hero { height: 380px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .section-title { font-size: 1.4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-destinations { grid-template-columns: repeat(2, 1fr); }
  .city-cards { grid-template-columns: repeat(2, 1fr); }
  .checklist-layout { grid-template-columns: 1fr; }
  .checklist-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 240px; }
  .checklist-filters { grid-template-columns: 1fr; }
  .weather-forecast { grid-template-columns: repeat(3, 1fr); }
  .weather-details { grid-template-columns: repeat(3, 1fr); min-width: 100%; }
  .weather-current { flex-direction: column; align-items: stretch; }
  .weather-tips { grid-template-columns: 1fr; }
  .translate-textareas { grid-template-columns: 1fr; }
  .translate-langs { flex-wrap: wrap; }
  .currency-converter { flex-direction: column; }
  .currency-swap { transform: rotate(90deg); }
  .currency-rates { grid-template-columns: repeat(2, 1fr); }
  .planner-form { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 24px 20px; }
  .voice-actions { flex-direction: column; }
  .voice-actions .text-input { min-width: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { height: 320px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-search { flex-direction: column; border-radius: 12px; overflow: hidden; }
  .hero-search-input { border-radius: 0; }
  .hero-search-btn { border-radius: 0; padding: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .popular-destinations { grid-template-columns: 1fr; }
  .city-cards { grid-template-columns: 1fr; }
  .weather-forecast { grid-template-columns: repeat(2, 1fr); }
  .weather-details { grid-template-columns: 1fr; }
  .currency-rates { grid-template-columns: 1fr; }
  .feature-card { padding: 20px 16px; }
  .section-title { font-size: 1.25rem; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .logo-text { font-size: 1rem; }
  .checklist-categories .category-items { grid-template-columns: 1fr; }
  .modal-content { border-radius: 16px 16px 0 0; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-content { width: 100%; max-height: 85vh; }
  .modal-body { max-height: calc(85vh - 180px); }
}

/* ========== 旅行安全中心 ========== */
#safety {
  position: relative;
  padding-top: 80px;
  padding-bottom: 60px;
}
.safety-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.safety-title .title-icon-svg {
  stroke: var(--accent);
}

/* SOS紧急求助栏 */
.sos-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sos-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  min-width: 200px;
}
.sos-icon {
  stroke: #fff;
  flex-shrink: 0;
}
.sos-bar-left strong {
  display: block;
  font-size: 1rem;
}
.sos-region {
  font-size: 0.75rem;
  opacity: 0.85;
}
.sos-numbers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.sos-number-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}
.sos-number-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.sos-label {
  font-size: 0.7rem;
  opacity: 0.9;
}
.sos-num {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.sos-ambulance { background: rgba(255,255,255,0.25); }
.sos-fire { background: rgba(255,255,255,0.25); }
.sos-embassy { background: rgba(255,255,255,0.15); min-width: 140px; }

/* 安全中心布局 */
/* ========== 旅行安全中心 - Google Maps 风格 ========== */
.map-fullscreen {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* 地图容器 - 使用自然文档流，避免Leaflet覆盖position导致坍塌 */
.map-container-new {
  width: 100%;
  height: 100%;
  position: relative;
  background: #e8eef5;
  z-index: 1;
}
.map-container-new.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  font-family: inherit;
  background: #e8eef5;
}
/* 强制Leaflet容器尺寸 */
.map-container-new .leaflet-pane {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* 地图加载状态 */
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f0f4f8;
  z-index: 5;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.map-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 深色模式地图瓦片 */
[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.6) invert(1) contrast(0.95) hue-rotate(200deg) saturate(0.25) brightness(0.85);
}

/* 顶部搜索栏 */
.map-search-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 72px;
  height: 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  padding: 0 4px 0 16px;
  z-index: 400;
  transition: box-shadow 0.2s;
}
.map-search-bar:focus-within {
  box-shadow: 0 4px 20px rgba(0,0,0,0.16), 0 0 0 2px var(--accent);
}
.map-search-back {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 4px;
  display: flex;
  align-items: center;
}
.map-search-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.map-search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  padding: 0 12px;
  font-size: 0.9rem;
  color: #1a1a2e;
  height: 100%;
}
.map-search-input::placeholder { color: #aaa; }
.map-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.map-search-btn:hover { transform: scale(1.05); }

/* 搜索下拉 */
.map-search-dropdown {
  position: absolute;
  top: 72px;
  left: 16px;
  right: 72px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: 320px;
  overflow-y: auto;
  z-index: 450;
  display: none;
}
.map-search-dropdown.show { display: block; }
.map-search-dropdown .suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.map-search-dropdown .suggestion-item:last-child { border-bottom: none; }
.map-search-dropdown .suggestion-item:hover { background: #f5f9ff; }
.map-search-dropdown .suggestion-item strong {
  font-size: 0.875rem;
  color: #1a1a2e;
  font-weight: 500;
}
.map-search-dropdown .suggestion-item small {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-search-dropdown .search-warning {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #e67e22;
  background: #fff8f0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.4;
}

/* 右侧浮动按钮组 */
.map-fab-group {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 400;
}
.map-fab {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: #fff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s;
}
.map-fab:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.map-fab-locate {
  color: var(--accent);
}
.map-fab-locate.active {
  background: var(--accent-grad);
  color: #fff;
}
.map-fab-ai {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.map-fab-ai:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 左侧SOS浮动按钮 */
.map-sos-fab {
  position: absolute;
  bottom: 260px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #ff4757, #ff3838);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,71,87,0.4);
  z-index: 400;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-sos-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255,71,87,0.5);
}

/* 用户位置标记 - Google Maps风格蓝色圆点 */
.user-location-marker {
  position: relative;
}
.user-marker-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #4285F4;
  border: 3px solid #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(66,133,244,0.5);
  z-index: 2;
}
.user-marker-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(66,133,244,0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-gm 2s ease-out infinite;
}
@keyframes pulse-gm {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

/* POI标记 - Google Maps风格彩色图钉 */
.poi-marker {
  position: relative;
  background: none !important;
  border: none !important;
  cursor: pointer;
}
.poi-pin {
  position: relative;
  width: 32px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.2s;
}
.poi-pin::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: center;
  z-index: 1;
  background: #4285f4;
}
.poi-marker:hover .poi-pin { transform: scale(1.2) translateY(-2px); }
.poi-marker-hospital .poi-pin::before { background: #ff4757; }
.poi-marker-police .poi-pin::before { background: #3742fa; }
.poi-marker-hotel .poi-pin::before { background: #a55eea; }
.poi-marker-restaurant .poi-pin::before { background: #ff6348; }
.poi-marker-pharmacy .poi-pin::before { background: #2ed573; }
.poi-marker-atm .poi-pin::before { background: #ffa502; }
.poi-marker-search .poi-pin::before { background: #ff6b81; }
.poi-marker-other .poi-pin::before { background: #747d8c; }
.poi-pin-icon {
  position: relative;
  z-index: 2;
  font-size: 13px;
  line-height: 1;
  margin-top: 2px;
}

/* 底部POI面板 */
.map-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 400;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.sheet-header {
  padding: 0 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}
.sheet-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border: none;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: #999;
  flex-shrink: 0;
}
.sheet-tab:hover { background: #f5f5f5; color: #666; }
.sheet-tab.active {
  background: #e8f0fe;
  color: #1a73e8;
}
.tab-icon { font-size: 1.2rem; }
.tab-label { font-size: 0.7rem; font-weight: 500; }

.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sheet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: #999;
  gap: 8px;
}
.sheet-empty-icon { font-size: 2.5rem; }
.sheet-empty p { font-size: 0.85rem; margin: 0; }

/* POI加载状态 */
.sheet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* POI弹窗 */
.poi-popup {
  font-family: inherit;
  text-align: center;
  min-width: 80px;
}
.poi-popup-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a1a2e;
}
.poi-popup-dist {
  font-size: 0.75rem;
  color: #1a73e8;
  margin-top: 2px;
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 4px 8px;
}
.leaflet-popup-tip {
  box-shadow: none;
}

/* AI加载状态 */
.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* AI推荐结果 */
.ai-rec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.ai-rec-header svg { stroke: #764ba2; }
.ai-rec-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8f8f8;
}
.ai-rec-item:last-child { border-bottom: none; }
.ai-rec-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ai-rec-info { flex: 1; }
.ai-rec-name { font-weight: 600; font-size: 0.9rem; color: #1a1a2e; }
.ai-rec-desc { font-size: 0.8rem; color: #666; margin-top: 2px; line-height: 1.4; }
.ai-rec-dist { font-size: 0.75rem; color: #1a73e8; margin-top: 4px; }
[data-theme="dark"] .ai-rec-header { border-bottom-color: #30363d; color: #8b949e; }
[data-theme="dark"] .ai-rec-item { border-bottom-color: #21262d; }
[data-theme="dark"] .ai-rec-name { color: #f0f6fc; }
[data-theme="dark"] .ai-rec-desc { color: #8b949e; }

/* AI推荐结果增强 */
.ai-rec-item {
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  padding: 10px 8px;
}
.ai-rec-item:hover {
  background: #f5f3ff;
}
.ai-rec-item:active {
  background: #ede9fe;
}
.ai-rec-meta {
  font-size: 0.75rem;
  color: #666;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ai-rec-type {
  background: #ede9fe;
  color: #7c3aed;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}
.ai-rec-city {
  color: #6b7280;
  font-size: 0.72rem;
}
.ai-rec-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 4px;
}
.ai-rec-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary);
}
.ai-rec-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.ai-rec-empty p {
  font-size: 0.85rem;
  margin: 0;
}
[data-theme="dark"] .ai-rec-item:hover { background: #1c1b2e; }
[data-theme="dark"] .ai-rec-item:active { background: #2a2740; }
[data-theme="dark"] .ai-rec-meta { color: #8b949e; }
[data-theme="dark"] .ai-rec-type { background: #2d1b4e; color: #c4b5fd; }

/* POI弹窗描述 */
.poi-popup-desc {
  font-size: 0.75rem;
  color: #555;
  margin-top: 4px;
  line-height: 1.3;
  max-width: 180px;
}
[data-theme="dark"] .poi-popup-desc { color: #8b949e; }

/* AI快捷问题标签 */
.ai-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.ai-quick-tag {
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid #e0d4f7;
  background: #f9f5ff;
  color: #6b46c1;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ai-quick-tag:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
}
.ai-quick-tag:active {
  transform: scale(0.96);
}
[data-theme="dark"] .ai-quick-tag {
  background: #1e1b2e;
  border-color: #2d2b4e;
  color: #c4b5fd;
}
[data-theme="dark"] .ai-quick-tag:hover {
  background: #2a2740;
  border-color: #4c3a7a;
}

/* POI列表项 */
.poi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f8f8f8;
}
.poi-card:last-child { border-bottom: none; }
.poi-card:hover { background: #f5f9ff; }
.poi-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.poi-card-icon.hospital { background: #ffeaea; }
.poi-card-icon.police { background: #e8ecff; }
.poi-card-icon.hotel { background: #f3e8ff; }
.poi-card-icon.restaurant { background: #fff0ee; }
.poi-card-icon.pharmacy { background: #e8faf0; }
.poi-card-icon.atm { background: #fff8e8; }
.poi-card-icon.other { background: #f0f0f0; }
.poi-card-info {
  flex: 1;
  min-width: 0;
}
.poi-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poi-card-meta {
  font-size: 0.75rem;
  color: #999;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.poi-card-dist { color: #1a73e8; font-weight: 500; }
.poi-card-addr {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.poi-card-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f4f8;
  color: #1a73e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.15s;
}
.poi-card-nav:hover {
  background: #1a73e8;
  color: #fff;
}

/* AI推荐弹窗 */
.ai-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  max-height: 80%;
  min-height: 240px;
  display: none;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}
.ai-sheet.show { display: flex; }
/* AI sheet打开时隐藏底部POI面板 */
.map-bottom-sheet.ai-open {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ai-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.ai-sheet-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a2e;
}
.ai-sheet-header h3 svg { stroke: #764ba2; }
.ai-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-sheet-close:hover { background: #eee; }
.ai-sheet-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ai-sheet-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.875rem;
  resize: none;
  outline: none;
  font-family: inherit;
  margin-bottom: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.ai-sheet-input:focus { border-color: var(--accent); }
.ai-sheet-body .btn-primary {
  flex-shrink: 0;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.ai-result {
  margin-top: 12px;
  flex: 1;
  overflow-y: auto;
}

/* AI结果样式 */
.ai-summary { font-size: 0.875rem; color: #555; margin-bottom: 12px; line-height: 1.5; }
.ai-reasons { font-size: 0.8rem; color: #666; margin-bottom: 12px; padding: 10px; background: #f8f9ff; border-radius: 10px; line-height: 1.5; }
.ai-places { display: flex; flex-direction: column; gap: 8px; }
.ai-place-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-place-item:hover { background: #e8f0fe; }
.ai-place-icon { font-size: 1.3rem; }
.ai-place-info { flex: 1; min-width: 0; }
.ai-place-name { font-size: 0.85rem; font-weight: 500; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-place-meta { font-size: 0.72rem; color: #999; margin-top: 2px; }
.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.ai-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #eee;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* SOS弹窗 */
.sos-modal {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.sos-modal.show { display: flex; }
.sos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.sos-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 320px;
  max-width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sos-modal-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #ff4757;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sos-modal-location {
  font-size: 0.8rem;
  color: #999;
  margin: 0 0 16px;
}
.sos-modal-numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sos-number-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}
.sos-number-btn.sos-police { background: #e8ecff; color: #3742fa; }
.sos-number-btn.sos-ambulance { background: #ffeaea; color: #ff4757; }
.sos-number-btn.sos-fire { background: #fff0e8; color: #ff6348; }
.sos-number-btn.sos-embassy { background: #f0f0f0; color: #555; }
.sos-number-btn:hover { transform: scale(1.02); }
.sos-label { font-size: 0.85rem; }
.sos-num { font-size: 1.1rem; font-weight: 700; }
.sos-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Leaflet popup定制 */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 0;
}
.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.leaflet-popup-tip { box-shadow: none; }

/* 深色模式适配 */
[data-theme="dark"] .map-search-bar { background: #1e2329; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .map-search-input { color: #f0f6fc; }
[data-theme="dark"] .map-search-input::placeholder { color: #6e7681; }
[data-theme="dark"] .map-search-icon { color: #6e7681; }
[data-theme="dark"] .map-fab { background: #21262d; color: #8b949e; border-color: #30363d; }
[data-theme="dark"] .map-fab:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .map-bottom-sheet { background: #161b22; }
[data-theme="dark"] .sheet-header { border-bottom-color: #30363d; }
[data-theme="dark"] .sheet-handle { background: #30363d; }
[data-theme="dark"] .sheet-tab { color: #6e7681; }
[data-theme="dark"] .sheet-tab:hover { background: #21262d; color: #8b949e; }
[data-theme="dark"] .sheet-tab.active { background: #1a3a5c; color: #58a6ff; }
[data-theme="dark"] .poi-card { border-bottom-color: #21262d; }
[data-theme="dark"] .poi-card:hover { background: #21262d; }
[data-theme="dark"] .poi-card-name { color: #f0f6fc; }
[data-theme="dark"] .poi-card-meta { color: #6e7681; }
[data-theme="dark"] .poi-card-addr { color: #6e7681; }
[data-theme="dark"] .poi-card-nav { background: #21262d; color: #58a6ff; }
[data-theme="dark"] .poi-card-nav:hover { background: #58a6ff; color: #fff; }
[data-theme="dark"] .ai-sheet { background: #161b22; }
[data-theme="dark"] .ai-sheet-header { border-bottom-color: #30363d; }
[data-theme="dark"] .ai-sheet-header h3 { color: #f0f6fc; }
[data-theme="dark"] .ai-sheet-close { background: #21262d; color: #8b949e; }
[data-theme="dark"] .ai-sheet-input { background: #0d1117; border-color: #30363d; color: #f0f6fc; }
[data-theme="dark"] .ai-reasons { background: #1c2129; color: #8b949e; }
[data-theme="dark"] .ai-place-item { background: #21262d; }
[data-theme="dark"] .ai-place-item:hover { background: #1a3a5c; }
[data-theme="dark"] .ai-place-name { color: #f0f6fc; }
[data-theme="dark"] .sos-modal-content { background: #161b22; }
[data-theme="dark"] .sos-modal-location { color: #6e7681; }
[data-theme="dark"] .sos-modal-close { background: #21262d; color: #8b949e; }
[data-theme="dark"] .map-search-dropdown { background: #1e2329; }
[data-theme="dark"] .map-search-dropdown .suggestion-item { border-bottom-color: #30363d; }
[data-theme="dark"] .map-search-dropdown .suggestion-item:hover { background: #21262d; }
[data-theme="dark"] .map-search-dropdown .suggestion-item strong { color: #f0f6fc; }
[data-theme="dark"] .map-search-dropdown .suggestion-item small { color: #6e7681; }
[data-theme="dark"] .map-container-new .leaflet-tile {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) saturate(0.8);
}
[data-theme="dark"] .map-container-new {
  background: #1a1f26;
}
[data-theme="dark"] .map-loading {
  background: #161b22;
  color: #8b949e;
}
[data-theme="dark"] .poi-popup-name { color: #f0f6fc; }
[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: #1e2329;
  color: #f0f6fc;
}
[data-theme="dark"] .leaflet-popup-tip { background: #1e2329; }
[data-theme="dark"] .sheet-loading { color: #8b949e; }
[data-theme="dark"] .ai-loading { color: #8b949e; }
[data-theme="dark"] .sheet-empty { color: #6e7681; }
[data-theme="dark"] .poi-card-icon.hospital { background: rgba(255,71,87,0.15); }
[data-theme="dark"] .poi-card-icon.police { background: rgba(55,66,250,0.15); }
[data-theme="dark"] .poi-card-icon.hotel { background: rgba(165,94,234,0.15); }
[data-theme="dark"] .poi-card-icon.restaurant { background: rgba(255,99,72,0.15); }
[data-theme="dark"] .poi-card-icon.pharmacy { background: rgba(46,213,115,0.15); }
[data-theme="dark"] .poi-card-icon.atm { background: rgba(255,165,2,0.15); }
[data-theme="dark"] .poi-card-icon.other { background: rgba(116,125,140,0.15); }

/* 响应式适配 */
@media (max-width: 768px) {
  .map-fullscreen {
    height: calc(100vh - 260px);
    min-height: 420px;
    max-height: 600px;
    border-radius: 16px;
    margin-top: 16px;
  }
  .map-search-bar {
    top: 10px;
    left: 10px;
    right: 60px;
    height: 42px;
    border-radius: 21px;
  }
  .map-search-input {
    font-size: 14px;
  }
  .map-fab-group { top: 10px; right: 10px; gap: 8px; }
  .map-fab { width: 38px; height: 38px; border-radius: 11px; }
  .map-sos-fab { bottom: 240px; left: 10px; width: 48px; height: 48px; font-size: 0.8rem; }
  .map-bottom-sheet { max-height: 200px; border-radius: 16px 16px 0 0; }
  .sheet-tab {
    padding: 8px 10px;
    gap: 4px;
  }
  .tab-label {
    font-size: 0.72rem;
  }
  .poi-card { padding: 8px 12px; gap: 10px; }
  .poi-card-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .poi-card-name { font-size: 0.82rem; }
  .poi-card-addr { font-size: 0.72rem; }
  .sos-bar {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .sos-numbers {
    width: 100%;
    justify-content: space-between;
  }
  .sos-number-btn {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
  }
  .sos-num { font-size: 1rem; }
  .sos-label { font-size: 0.65rem; }
}

/* AI推荐 */
.ai-panel {
  background: linear-gradient(135deg, rgba(79,172,254,0.08), rgba(102,126,234,0.08));
  border-color: rgba(79,172,254,0.2);
}
.ai-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-input-group textarea {
  resize: none;
  font-size: 0.85rem;
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.ai-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.ai-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ai-summary {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.ai-reasons {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.ai-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ai-tips li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.ai-tips li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}
.ai-places {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ai-place-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.ai-place-item:hover {
  background: var(--accent-light);
  transform: translateX(2px);
}
.ai-place-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ai-place-info {
  flex: 1;
  min-width: 0;
}
.ai-place-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-place-meta {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.ai-place-goto {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-no-places {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 8px;
}

/* 安全地图图例 */
.safety-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-safe { background: #2ed573; }
.legend-caution { background: #ffa502; }
.legend-danger { background: #ff4757; }
.safety-disclaimer {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.safety-zones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zone-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-secondary);
}
.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.zone-safe .zone-dot { background: #2ed573; }
.zone-caution .zone-dot { background: #ffa502; }
.zone-danger .zone-dot { background: #ff4757; }
.zone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.zone-info strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}
.zone-info small {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.zone-meta {
  font-size: 0.68rem !important;
  color: var(--text-tertiary) !important;
}

/* POI列表 */
.poi-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.poi-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}
.poi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.poi-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border);
}
.poi-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.poi-info {
  flex: 1;
  min-width: 0;
}
.poi-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poi-meta {
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.poi-addr {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.poi-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.15s;
}
.poi-nav-btn:hover {
  transform: scale(1.1);
}

/* 安全中心导航链接高亮 */
.nav-link-safety {
  position: relative;
}
.nav-link-safety::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ff4757;
  border-radius: 50%;
}

/* 安全中心响应式 */
@media (max-width: 900px) {
  .map-fullscreen { height: 550px; }
  .sos-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sos-numbers {
    margin-left: 0;
    width: 100%;
  }
  .sos-number-btn {
    flex: 1;
    min-width: 70px;
    padding: 6px 10px;
  }
  .sos-num { font-size: 1rem; }
}

@media (max-width: 480px) {
  .map-fullscreen {
    height: 500px;
    margin: 12px -10px 0;
    width: calc(100% + 20px);
    border-radius: 0;
  }
  .map-search-bar { top: 10px; left: 10px; right: 58px; height: 42px; }
  .map-fab-group { top: 10px; right: 10px; gap: 6px; }
  .map-fab { width: 36px; height: 36px; border-radius: 10px; }
  .map-fab svg { width: 16px !important; height: 16px !important; }
  .map-sos-fab { bottom: 220px; left: 10px; width: 44px; height: 44px; font-size: 0.7rem; }
  .map-bottom-sheet { max-height: 200px; }
  .sheet-tab { padding: 6px 10px; }
  .tab-icon { font-size: 1.1rem; }
  .tab-label { font-size: 0.65rem; }
  .poi-card { padding: 8px 12px; gap: 10px; }
  .poi-card-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .sos-number-btn { padding: 6px 8px; min-width: 60px; }
  .sos-num { font-size: 0.9rem; }
}

/* ============================================
   AI 旅行助手
   ============================================ */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: all 0.3s;
  animation: aiPulse 2s infinite;
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(79, 172, 254, 0.6);
  animation: none;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(79, 172, 254, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(79, 172, 254, 0.7), 0 0 0 8px rgba(79, 172, 254, 0.1); }
}

.ai-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.ai-chat-panel.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--accent-grad);
  color: #fff;
}
.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-chat-title { flex: 1; display: flex; flex-direction: column; }
.ai-chat-title strong { font-size: 0.95rem; font-weight: 600; }
.ai-chat-title small { font-size: 0.72rem; opacity: 0.85; }
.ai-chat-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.35); }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-msg { display: flex; gap: 8px; max-width: 85%; }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.ai-msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ai-msg-user .ai-msg-avatar {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.ai-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  word-break: break-word;
}
.ai-msg-bot .ai-msg-bubble {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-bubble .ai-recommend-card {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.ai-msg-bubble .ai-recommend-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ai-rec-img {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
}
.ai-rec-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; color: var(--text-primary); }
.ai-rec-country { font-size: 0.75rem; color: var(--text-tertiary); }
.ai-rec-reason { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.ai-typing { display: flex; gap: 4px; padding: 4px 0; }
.ai-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-tertiary);
  animation: aiTyping 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.ai-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.ai-quick-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ai-quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.ai-chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.ai-chat-input:focus { border-color: var(--accent); }
.ai-chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ai-chat-send:hover { transform: scale(1.08); }

/* AI聊天面板 - 浅色模式：纯白不透明背景 */
[data-theme="light"] .ai-chat-panel {
  background: #ffffff;
}
[data-theme="light"] .ai-chat-messages {
  background: #ffffff;
}
[data-theme="light"] .ai-chat-input-bar {
  background: #ffffff;
}
[data-theme="light"] .ai-msg-bot .ai-msg-bubble {
  background: #f5f6fa;
}
[data-theme="light"] .ai-msg-bubble .ai-recommend-card {
  background: #ffffff;
}
[data-theme="light"] .ai-quick-btn {
  background: #f5f6fa;
}
[data-theme="light"] .ai-chat-input {
  background: #f5f6fa;
}

/* AI聊天面板 - 深色模式：纯黑不透明背景 */
[data-theme="dark"] .ai-chat-panel {
  background: #000000;
  border-color: #30363d;
}
[data-theme="dark"] .ai-chat-messages {
  background: #000000;
}
[data-theme="dark"] .ai-chat-input-bar {
  background: #000000;
  border-top-color: #30363d;
}
[data-theme="dark"] .ai-msg-bot .ai-msg-bubble {
  background: #161b22;
  color: #f0f6fc;
}
[data-theme="dark"] .ai-msg-bubble .ai-recommend-card {
  background: #0d1117;
  border-color: #30363d;
}
[data-theme="dark"] .ai-rec-name { color: #f0f6fc; }
[data-theme="dark"] .ai-rec-country { color: #6e7681; }
[data-theme="dark"] .ai-rec-reason { color: #8b949e; }
[data-theme="dark"] .ai-quick-btn {
  background: #161b22;
  border-color: #30363d;
  color: #8b949e;
}
[data-theme="dark"] .ai-chat-input {
  background: #161b22;
  border-color: #30363d;
  color: #f0f6fc;
}
[data-theme="dark"] .ai-typing span {
  background: #6e7681;
}

/* ===== AI 智能助手新样式 ===== */

/* 推荐卡片增强 */
.ai-rec-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ai-rec-en {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.ai-rec-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.ai-rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* 操作按钮组 */
.ai-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ai-guide-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ai-guide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,172,254,0.4);
}
.ai-action-btn {
  flex: 1;
  min-width: 60px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
}
.ai-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.ai-action-btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  font-weight: 500;
}
.ai-action-btn-primary:hover {
  color: #fff;
  box-shadow: 0 3px 10px rgba(79,172,254,0.35);
}
.ai-action-btn-secondary {
  background: transparent;
}

/* 完整攻略卡片 */
.ai-full-guide {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.ai-guide-header {
  padding: 20px 16px;
  color: #fff;
  text-align: center;
  position: relative;
}
.ai-guide-flag {
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.ai-guide-city-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.ai-guide-city-en {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* 攻略概览 */
.ai-guide-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ai-guide-overview-item {
  text-align: center;
  padding: 0 4px;
  position: relative;
}
.ai-guide-overview-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.ai-guide-ov-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.ai-guide-ov-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* 攻略区块 */
.ai-guide-section {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.ai-guide-section:last-of-type {
  border-bottom: none;
}
.ai-guide-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-guide-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 列表项 */
.ai-guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: 10px;
}
.ai-guide-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.ai-guide-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ai-guide-item-content {
  flex: 1;
}
.ai-guide-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ai-attraction-item .ai-guide-item-content {
  border-left: none;
}
.ai-food-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 贴士项 */
.ai-tip-item {
  padding: 6px 10px;
  background: var(--bg-secondary);
}
.ai-tip-icon {
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 1px;
}
.ai-warn-item {
  background: rgba(239,68,68,0.08);
}
[data-theme="dark"] .ai-warn-item {
  background: rgba(248,81,73,0.12);
}

/* 天气卡片 */
.ai-weather-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 10px 12px;
}
.ai-weather-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ai-weather-row:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}
.ai-weather-label {
  color: var(--text-tertiary);
}

/* 行程 */
.ai-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-route-day {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-route-day-label {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ai-route-day-content {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 2px;
}

/* 攻略底部 */
.ai-guide-footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-secondary);
}
.ai-guide-footer .ai-action-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.8rem;
}

/* 简单的攻略子区块（美食/景点单独展示时） */
.ai-guide-section .ai-guide-title {
  padding-bottom: 0;
}

/* ===== 餐厅卡片样式 ===== */
.ai-food-types {
  margin-bottom: 12px;
}
.ai-food-types-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.ai-food-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-food-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: default;
  transition: all 0.2s;
}
.ai-food-tag:hover {
  background: var(--accent);
  color: #fff;
}
.ai-restaurant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-restaurant-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
  margin-top: 4px;
}
.ai-restaurant-card {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.ai-restaurant-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(79,172,254,0.1);
}
.ai-rest-card-compact {
  padding: 8px 10px;
}
.ai-rest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.ai-rest-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.ai-rest-tag {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.ai-rest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.ai-stars {
  color: #f5a623;
  font-size: 0.78rem;
  letter-spacing: 1px;
}
.ai-rest-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-rest-rating-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f5a623;
}
.ai-rest-price {
  font-size: 0.75rem;
  color: #e74c3c;
  font-weight: 500;
}
.ai-rest-type {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}
.ai-rest-addr {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 3px;
  line-height: 1.4;
}
.ai-rest-highlight {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}
.ai-rest-card-compact .ai-rest-addr {
  display: none;
}

/* 景点卡片样式 */
.ai-attraction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-attraction-card {
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.ai-attraction-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245,158,11,0.1);
}
.ai-att-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.ai-att-name-wrap {
  flex: 1;
  min-width: 0;
}
.ai-att-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.ai-att-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ai-att-level {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.ai-att-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
}
.ai-att-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ai-att-ticket, .ai-att-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.ai-att-highlight {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

/* 深色模式景点卡片 */
[data-theme="dark"] .ai-attraction-card {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .ai-attraction-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 2px 12px rgba(245,158,11,0.15);
}
[data-theme="dark"] .ai-att-tag {
  background: #21262d;
  color: #8b949e;
}
[data-theme="dark"] .ai-att-highlight {
  border-top-color: #30363d;
}

/* 深色模式补充 */
[data-theme="dark"] .ai-rec-badge {
  background: rgba(79,172,254,0.15);
}
[data-theme="dark"] .ai-guide-overview {
  border-bottom-color: #30363d;
}
[data-theme="dark"] .ai-guide-overview-item:not(:last-child)::after {
  background: #30363d;
}
[data-theme="dark"] .ai-guide-section {
  border-bottom-color: #21262d;
}
[data-theme="dark"] .ai-full-guide {
  background: #0d1117;
  border-color: #30363d;
}
[data-theme="dark"] .ai-guide-item {
  background: #161b22;
}
[data-theme="dark"] .ai-weather-card {
  background: #161b22;
}
[data-theme="dark"] .ai-weather-row:not(:last-child) {
  border-bottom-color: #30363d;
}
[data-theme="dark"] .ai-guide-footer {
  background: #161b22;
  border-top: 1px solid #30363d;
}
[data-theme="dark"] .ai-action-btn {
  background: #21262d;
  border-color: #30363d;
  color: #8b949e;
}
[data-theme="dark"] .ai-action-btn:hover {
  background: rgba(79,172,254,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
[data-theme="dark"] .ai-food-tag {
  background: rgba(79,172,254,0.15);
}
[data-theme="dark"] .ai-restaurant-card {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .ai-restaurant-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(79,172,254,0.15);
}
[data-theme="dark"] .ai-rest-highlight {
  border-top-color: #30363d;
}
[data-theme="dark"] .ai-rest-price {
  color: #f85149;
}

@media (max-width: 480px) {
  .ai-chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%;
    height: 85vh;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
  }
  .ai-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .ai-guide-overview { grid-template-columns: repeat(4, 1fr); }
  .ai-guide-ov-num { font-size: 0.85rem; }
  .ai-rest-meta { gap: 8px; }
}
