/* ============================================
   智慧文旅 - 智能旅游助手 H5 移动端样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #fff0e8;
  --accent: #2e86de;
  --accent-light: #e8f4fd;
  --success: #10ac84;
  --warning: #feca57;
  --danger: #ee5a24;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --text: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --border: #e8eaed;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --topbar-height: 48px;
  --max-width: 414px;
  --font-xs: 11px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 17px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

#app {
  min-height: 100vh;
  padding-bottom: var(--nav-height);
}

/* --- Page System --- */
.page {
  display: none;
  animation: fadeSlideIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* ============================================
   Page 1: 攻略查询与偏好输入
   ============================================ */

.page-header {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 50%, #ffa975 100%);
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.app-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.app-subtitle {
  font-size: var(--font-sm);
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* 省域/市域选择 */
.search-card {
  background: var(--card-bg);
  margin: -12px 16px 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.region-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.region-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.region-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.region-icon {
  margin-right: 2px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.dest-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-md);
  outline: none;
  transition: border 0.2s;
}

.dest-input:focus {
  border-color: var(--primary);
}

.btn-search {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-search:active {
  background: var(--primary-dark);
}

.icon-search {
  font-size: 18px;
}

.search-suggestions {
  margin-top: 8px;
  display: none;
  flex-wrap: wrap;
  gap: 6px;
}

.search-suggestions.show {
  display: flex;
}

.suggestion-item {
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 20px;
  font-size: var(--font-sm);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
}

.suggestion-item:active {
  background: var(--primary-light);
  color: var(--primary);
}

/* 偏好输入 */
.pref-card {
  background: var(--card-bg);
  margin: 0 16px 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pref-group {
  margin-bottom: 14px;
}

.pref-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.pref-row {
  display: flex;
  gap: 10px;
}

.pref-input {
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  background: #fff;
  outline: none;
  transition: border 0.2s;
  color: var(--text);
}

.pref-input:focus {
  border-color: var(--primary);
}

.pref-input.half {
  flex: 1;
}

.pref-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  resize: none;
  height: 70px;
  outline: none;
  font-family: inherit;
  transition: border 0.2s;
}

.pref-textarea:focus {
  border-color: var(--primary);
}

/* Tag选择器 */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: var(--font-sm);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}

.tag.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.tag:active {
  transform: scale(0.96);
}

.btn-generate {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.btn-generate:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* 热门推荐 */
.hot-section {
  margin: 0 16px 20px;
}

.hot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hot-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
}

.hot-card:active {
  transform: scale(0.98);
}

.hot-card-img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 6px;
}

.hot-card-tag {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: var(--font-xs);
  padding: 2px 8px;
  border-radius: 10px;
}

.hot-card-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hot-card-title {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: 4px;
}

.hot-card-desc {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card-meta {
  display: flex;
  gap: 10px;
  font-size: var(--font-xs);
  color: var(--text-light);
}

/* ============================================
   Page 2: 个性化路线与拼团
   ============================================ */

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-topbar h2 {
  font-size: var(--font-lg);
  font-weight: 700;
}

.btn-back {
  background: none;
  border: none;
  font-size: var(--font-md);
  color: var(--primary);
  cursor: pointer;
  padding: 6px 8px;
  font-weight: 600;
}

.btn-share {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
}

/* 路线Tab */
.route-tabs {
  display: flex;
  margin: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.route-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.route-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.route-panel {
  display: none;
  padding: 0 16px 20px;
}

.route-panel.active {
  display: block;
}

.route-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

/* 路线卡片 */
.route-day-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.route-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.route-day-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary);
}

.route-day-date {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.route-spot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.route-spot:last-child {
  border-bottom: none;
}

.route-spot-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.route-spot-info h5 {
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.route-spot-info p {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.route-meta-row {
  display: flex;
  gap: 12px;
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.route-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.route-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-outline {
  flex: 1;
  padding: 12px;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:active {
  background: var(--primary-light);
}

.btn-primary {
  flex: 1;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-primary.full {
  width: 100%;
  flex: none;
  margin-top: 10px;
}

/* 拼团模块 */
.group-create-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.btn-create-group {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  font-size: var(--font-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-create-group:active {
  background: rgba(255,255,255,0.3);
}

.btn-icon {
  margin-right: 4px;
}

.group-create-tip {
  color: rgba(255,255,255,0.8);
  font-size: var(--font-xs);
  margin-top: 8px;
}

.subsection-title {
  font-size: var(--font-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.group-badge {
  font-size: var(--font-xs);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.group-badge.official {
  background: #e8f8f5;
  color: var(--success);
}

.group-badge.hot {
  background: #fef3e2;
  color: #e67e22;
}

.group-date {
  font-size: var(--font-sm);
  font-weight: 600;
}

.group-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.group-stats {
  display: flex;
  gap: 10px;
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.group-price {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary);
}

.group-price small {
  font-size: var(--font-xs);
  color: var(--text-light);
  font-weight: 400;
}

.group-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-discount {
  font-size: var(--font-xs);
  color: var(--danger);
  font-weight: 600;
}

.btn-join-group {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-join-group:active {
  background: var(--primary-dark);
}

.btn-join-group.full-capacity {
  background: var(--text-light);
  cursor: not-allowed;
}

/* ============================================
   Page 3: 套票
   ============================================ */

.route-summary {
  background: linear-gradient(135deg, #e8f4fd, #d5e8fc);
  margin: 10px 16px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-tabs {
  display: flex;
  margin: 0 16px 10px;
  gap: 8px;
}

.pkg-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.pkg-tab.active {
  background: var(--primary);
  color: #fff;
}

.ticket-list {
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}

.ticket-card:active {
  transform: scale(0.98);
}

.ticket-card.combo {
  border-left: 4px solid var(--primary);
}

.ticket-card.combo::after {
  content: '套票';
  position: absolute;
  top: 6px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: var(--font-xs);
  padding: 2px 8px;
  border-radius: 8px;
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ticket-card-title {
  font-size: var(--font-md);
  font-weight: 700;
  margin-right: 50px;
}

.ticket-spots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.ticket-spot-tag {
  font-size: var(--font-xs);
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-secondary);
}

.ticket-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.ticket-original {
  font-size: var(--font-sm);
  color: var(--text-light);
  text-decoration: line-through;
}

.ticket-current {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary);
}

.ticket-save {
  font-size: var(--font-xs);
  color: var(--danger);
  font-weight: 600;
}

.ticket-validity {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.ticket-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-detail {
  flex: 1;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  cursor: pointer;
}

.btn-add-cart {
  flex: 1;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
}

.btn-add-cart:active {
  background: var(--primary-dark);
}

.btn-add-cart.in-cart {
  background: var(--success);
}

/* 价格明细 */
.price-summary {
  margin: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.price-summary h4 {
  font-size: var(--font-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--font-sm);
  border-bottom: 1px dashed var(--border);
}

.price-row.total {
  font-weight: 700;
  font-size: var(--font-md);
  color: var(--primary);
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-md);
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

.btn-checkout:active {
  opacity: 0.9;
}

/* ============================================
   Page 4: 个人中心
   ============================================ */

.profile-header {
  background: linear-gradient(135deg, #2e86de, #54a0ff);
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 8px;
  border: 3px solid rgba(255,255,255,0.4);
}

.profile-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
}

.profile-header p {
  font-size: var(--font-xs);
  opacity: 0.8;
  margin-top: 2px;
}

.profile-stats {
  display: flex;
  margin: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.stat-item:active {
  transform: scale(0.95);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.profile-tabs {
  display: flex;
  margin: 0 16px 10px;
  gap: 8px;
}

.profile-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.profile-tab.active {
  background: var(--accent);
  color: #fff;
}

.profile-list {
  margin: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

/* 拼团状态卡片 */
.group-status-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.group-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.group-status-badge {
  font-size: var(--font-xs);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.status-matching {
  background: #fef3e2;
  color: #e67e22;
}

.status-matched {
  background: #e8f4fd;
  color: var(--accent);
}

.status-confirmed {
  background: #e8f8f5;
  color: var(--success);
}

.status-cancelled {
  background: #fde8e8;
  color: var(--danger);
}

.group-status-info {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.group-status-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-sm-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-sm-danger {
  background: #fde8e8;
  color: var(--danger);
  border: none;
}

.btn-sm-primary {
  background: var(--accent-light);
  color: var(--accent);
  border: none;
}

/* 订单卡片 */
.order-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.order-id {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.order-status {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--success);
}

.order-title {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: 4px;
}

.order-detail {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-price {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--primary);
}

.order-actions {
  display: flex;
  gap: 6px;
}

/* 行程卡片 */
.trip-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.trip-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.trip-name {
  font-size: var(--font-md);
  font-weight: 700;
}

.trip-date {
  font-size: var(--font-xs);
  color: var(--text-light);
}

.trip-days {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.trip-spots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.trip-spot-mini {
  font-size: var(--font-xs);
  padding: 2px 8px;
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent);
}

.trip-qrcode {
  text-align: right;
}

.btn-qrcode {
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 16px;
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   底部导航
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  background: #fff;
  display: flex;
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  color: var(--text-light);
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
}

/* ============================================
   插件层 (Modal)
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
}

.modal-overlay.show {
  display: block;
}

.modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  max-height: 85vh;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 201;
  overflow-y: auto;
  transition: transform 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.modal.show {
  transform: translateX(-50%) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-body {
  padding: 16px;
}

.modal-tip {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  outline: none;
  background: #fff;
  transition: border 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
}

.form-textarea {
  height: 80px;
  resize: none;
  font-family: inherit;
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90%;
  animation: fadeSlideIn 0.3s ease;
  border-left: 4px solid var(--success);
}

.toast-icon {
  font-size: 28px;
}

.toast-content strong {
  display: block;
  font-size: var(--font-md);
  margin-bottom: 2px;
}

.toast-content p {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

/* --- 热力图浮层 --- */
.heatmap-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatmap-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.heatmap-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
}

.heatmap-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
}

.heatmap-body {
  padding: 16px;
}

.heatmap-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.heatmap-label {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

.heatmap-track {
  flex: 1;
  height: 20px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
}

.heatmap-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.heatmap-val {
  font-size: var(--font-xs);
  font-weight: 600;
  width: 50px;
}

.heatmap-tip {
  margin-top: 14px;
  padding: 10px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- 通用按钮状态 --- */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- 滚动条 --- */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* --- 响应式微调 --- */
@media (min-width: 415px) {
  body {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
