/* ==================== CSS 变量 ==================== */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #EFF6FF;
  --primary-lighter: #DBEAFE;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --surface-muted: #F3F4F6;
  --text: #171717;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;
  --gold: #F5C518;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --sidebar-w: 200px;
  --topbar-h: 56px;
  --bottomtab-h: 60px;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Noto Sans CJK SC", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; outline: none; border: none; background: none; color: inherit; }
h1, h2, h3 { font-weight: 600; }

/* ==================== 视图切换 ==================== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* ==================== 首页 - 导航栏 ==================== */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.landing-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.btn-nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  transition: all 0.2s;
}
.btn-nav-login:hover { background: var(--primary); color: #fff; }

/* ==================== 首页 - Hero ==================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  gap: 48px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-hero-primary:hover { background: var(--primary-dark); }
.btn-hero-secondary {
  height: 46px;
  padding: 0 24px;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Hero 模拟界面 */
.hero-visual { flex-shrink: 0; }
.hero-mockup {
  width: 300px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mockup-screen { background: var(--surface); }
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mockup-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--surface-muted);
  border-radius: var(--radius);
}
.mockup-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.mockup-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mockup-line { height: 7px; border-radius: 3px; background: var(--border); }
.mockup-line.w30 { width: 30%; }
.mockup-line.w35 { width: 35%; }
.mockup-line.w40 { width: 40%; }
.mockup-line.w50 { width: 50%; }
.mockup-line.w60 { width: 60%; }
.mockup-line.w70 { width: 70%; }

/* ==================== 首页 - 功能特性 ==================== */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ==================== 首页 - 下载区域 ==================== */
.download-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.download-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: stretch;
}
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.platform-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.platform-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.android-icon { background: #EFF6FF; color: #3B82F6; }
.windows-icon { background: #EFF6FF; color: #2563EB; }
.platform-header h3 { font-size: 18px; margin-bottom: 2px; }
.platform-version {
  font-size: 13px;
  color: var(--text-muted);
}
.download-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.download-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
}
.download-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  align-self: flex-start;
}
.btn-download:hover { background: var(--primary-dark); }
.download-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.download-qr-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  min-width: 180px;
}
.qr-image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.qr-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==================== 首页 - 页脚 ==================== */
.landing-footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.landing-footer p { font-size: 14px; color: var(--text-secondary); }
.footer-sub { font-size: 12px !important; color: var(--text-muted) !important; margin-top: 4px; }
/* ICP 备案号（按规定悬挂于网站底部，链接至工信部备案系统） */
.footer-icp { font-size: 12px !important; color: var(--text-muted) !important; margin-top: 6px; }
.footer-icp a { color: var(--text-muted); text-decoration: none; }
.footer-icp a:hover { color: var(--primary); }
.footer-sep { margin: 0 6px; }
.footer-ga { display: inline; }
.ga-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }


/* ==================== 登录页 ==================== */
#login-view {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  position: relative;
}
#login-view.active { display: flex; }

.login-back {
  position: absolute;
  top: 20px;
  left: 20px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-back:hover { background: rgba(255,255,255,0.15); }

.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card h1 {
  font-size: 22px;
  margin-bottom: 4px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  height: 44px;
  transition: border-color 0.2s;
}
.input-group:focus-within { border-color: var(--primary); }

.input-group input {
  flex: 1;
  font-size: 15px;
  height: 100%;
}

.code-group { gap: 8px; padding-right: 6px; }
.code-group input { letter-spacing: 4px; }

.btn-outline {
  white-space: nowrap;
  font-size: 13px;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; border-color: var(--text-muted); color: var(--text-muted); }

.btn-primary {
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-text {
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.btn-text:hover { color: var(--danger); }

.error-msg {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin-top: 4px;
}

.login-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ==================== 顶栏 ==================== */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-phone {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== 主布局 ==================== */
.main-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

/* ==================== 侧边栏 (桌面) ==================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
  width: 100%;
}
.nav-item:hover { background: var(--surface-muted); }
.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}
.nav-item svg { flex-shrink: 0; }

/* ==================== 底部 Tab (移动端) ==================== */
.bottom-tab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomtab-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.bottom-tab .nav-item {
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px;
  font-size: 11px;
  border-radius: 0;
  justify-content: center;
}
.bottom-tab .nav-item.active { background: none; color: var(--primary); }
.bottom-tab .nav-item svg { width: 18px; height: 18px; }

/* ==================== 内容区 ==================== */
.content {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.content-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.content-header h2 { font-size: 20px; }

.count-badge {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-muted);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* ==================== 数据卡片 ==================== */
.data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.data-card:hover { box-shadow: var(--shadow); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.card-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-lighter);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.card-title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.data-card.expanded .card-chevron { transform: rotate(90deg); }

.card-body {
  display: none;
  padding: 0 14px 12px;
  border-top: 1px solid var(--border-light);
}
.data-card.expanded .card-body { display: block; }

/* 详情行 */
.detail-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
}
.detail-value {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  word-break: break-all;
}

/* 子列表 (涉案记录、手机) */
.sub-section {
  margin-top: 8px;
}
.sub-section-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.sub-item {
  background: var(--surface-muted);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 13px;
}
.sub-item-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 3px;
}

/* 标签 */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
  color: var(--text-secondary);
}
.tag-status-investigating { background: #FEF3C7; color: #92400E; }
.tag-status-closed { background: #D1FAE5; color: #065F46; }
.tag-status-transferred { background: #DBEAFE; color: #1E40AF; }
.tag-status-pending { background: #FED7AA; color: #9A3412; }
.tag-status-unknown { background: var(--surface-muted); color: var(--text-muted); }

/* 手机信息 */
.phone-main {
  font-weight: 500;
  font-size: 13px;
}
.phone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}
.phone-password {
  color: var(--warning);
  font-weight: 500;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
  height: 34px;
  margin-left: auto;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  font-size: 13px;
  height: 100%;
  min-width: 120px;
}

/* 线索条目 */
.clue-item {
  background: var(--surface-muted);
  border-left: 3px solid var(--primary);
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
}
.clue-type-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* 线索图片 */
.clue-image-item { padding: 8px 10px; }
.clue-image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  margin-top: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.clue-image:hover { opacity: 0.85; }
.clue-image-fallback {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* AI 分析 */
.ai-analysis {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.ai-analysis-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-analysis-content { color: var(--text); }
.ai-analysis-content h1 { font-size: 15px; font-weight: 600; margin: 6px 0 4px; }
.ai-analysis-content h2 { font-size: 14px; font-weight: 600; margin: 6px 0 4px; }
.ai-analysis-content h3 { font-size: 13px; font-weight: 600; margin: 4px 0 3px; }
.ai-analysis-content p { margin: 3px 0; }
.ai-analysis-content ul { margin: 4px 0; padding-left: 20px; }
.ai-analysis-content li { margin: 2px 0; }
.ai-analysis-content strong { font-weight: 600; }
.ai-analysis-content em { font-style: italic; }
.ai-analysis-content code {
  background: rgba(59,130,246,0.15);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
  font-family: "Cascadia Code", "Fira Code", monospace;
}
.ai-analysis-content pre {
  background: rgba(0,0,0,0.06);
  padding: 8px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 4px 0;
}
.ai-analysis-content pre code {
  background: none;
  padding: 0;
}

/* 笔录卡片 */
.transcript-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.transcript-meta span {
  font-size: 12px;
  color: var(--text-muted);
}
.download-btn {
  font-size: 13px;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: all 0.2s;
  flex-shrink: 0;
}
.download-btn:hover { background: var(--primary-light); }

/* ==================== 热力图 ==================== */
#map-container {
  width: 100%;
  height: calc(100vh - var(--topbar-h) - 100px);
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.leaflet-container { background: #E5E7EB; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state p { font-size: 15px; margin-bottom: 8px; }
.empty-hint { font-size: 13px !important; color: var(--text-muted); }

/* 空数据 */
.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== 加载遮罩 ==================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.overlay.active { display: flex; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-text { font-size: 14px; color: var(--text-muted); }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(23,23,23,0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 10000;
  transition: transform 0.3s;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-tab { display: flex; }
  .content { padding: 16px; padding-bottom: calc(var(--bottomtab-h) + 20px); }
  .content-header h2 { font-size: 18px; }
  .content-header { flex-wrap: wrap; }
  .search-box { width: 100%; margin-left: 0; }
  .topbar { padding: 0 12px; }
  .topbar-left span { font-size: 15px; }
  .login-card { margin: 16px; padding: 32px 24px; }
  #map-container { height: calc(100vh - var(--topbar-h) - var(--bottomtab-h) - 80px); }
  .toast { bottom: calc(var(--bottomtab-h) + 16px); }

  /* 首页移动端 */
  .landing-nav { padding: 0 16px; height: 56px; }
  .landing-nav-left span { font-size: 15px; }
  .hero { flex-direction: column; text-align: center; padding: 40px 20px 60px; }
  .hero h1 { font-size: 30px; }
  .hero-tagline { font-size: 16px; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .features { padding: 0 16px 60px; }
  .section-title { font-size: 22px; margin-bottom: 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-card { padding: 18px 14px; }
  .download-section { padding: 0 16px 60px; }
  .download-platforms { grid-template-columns: 1fr; }
  .download-card { padding: 24px 20px; }
  .download-qr-side { order: -1; padding: 20px; }
  .qr-image { width: 120px; height: 120px; }
  .landing-footer { padding: 24px 16px; }
}
