/* ========================================
   江汉数字通道 PWA · 全局样式
   设计：年轻化政务文旅 / Aurora渐变 / 支付宝品牌色
   ======================================== */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC',
               'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1A1A1A;
  background: #FFF8F2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button { font-family: inherit; border: 0; outline: 0; cursor: pointer; background: transparent; }
input, textarea { font-family: inherit; outline: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- CSS Variables ---------- */
:root {
  /* 品牌色 */
  --brand-orange: #FF6B1A;
  --brand-orange-deep: #E55A00;
  --brand-orange-light: #FFB37A;
  --brand-coral: #FF7A5C;
  --brand-pink: #FFB199;

  /* 功能色 */
  --color-taxi: #1677FF;
  --color-taxi-deep: #0958D9;
  --color-culture: #8B5CF6;
  --color-culture-deep: #6D28D9;
  --color-food: #EF4444;
  --color-food-deep: #B91C1C;
  --color-shop: #F59E0B;
  --color-shop-deep: #B45309;

  /* 中性色 */
  --color-bg: #FFF8F2;
  --color-bg-card: #FFFFFF;
  --color-bg-soft: #F5F5F7;
  --color-line: #EEEEEE;
  --color-line-soft: #F5F5F5;

  /* 文字色 */
  --color-text: #1A1A1A;
  --color-text-2: #4A4A4A;
  --color-text-3: #8C8C8C;
  --color-text-inv: #FFFFFF;

  /* 渐变 */
  --grad-orange: linear-gradient(135deg, #FF6B1A 0%, #FF7A5C 50%, #FFB199 100%);
  --grad-orange-deep: linear-gradient(135deg, #E55A00 0%, #FF6B1A 100%);
  --grad-warm: linear-gradient(180deg, #FF6B1A 0%, #FFB199 100%);
  --grad-taxi: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
  --grad-card: linear-gradient(135deg, #FFE6CC 0%, #FFF5E6 100%);
  --grad-purple: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  --grad-red: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
  --grad-gold: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
  --grad-aurora: linear-gradient(135deg, #FF6B1A 0%, #FF7A5C 35%, #FFB199 70%, #FFE6CC 100%);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-brand: 0 8px 24px rgba(255,107,26,0.24);
  --shadow-card: 0 4px 16px rgba(229,90,0,0.10);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* 演示横幅 */
.demo-banner {
  background: #1A1A1A;
  color: #FFB37A;
  text-align: center;
  font-size: 11px;
  padding: 6px 12px;
  letter-spacing: 0.5px;
}
.demo-banner b { color: var(--brand-orange); margin: 0 4px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255,248,242,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.topbar__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.topbar__back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}
.topbar__back:active { background: rgba(0,0,0,0.06); }
.topbar__back svg { width: 20px; height: 20px; }
.topbar__action {
  font-size: 13px;
  color: var(--brand-orange);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.topbar__action:active { background: rgba(255,107,26,0.08); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  gap: 6px;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:active { box-shadow: 0 4px 12px rgba(255,107,26,0.18); }
.btn--ghost {
  background: rgba(255,255,255,0.8);
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--sm { min-height: 32px; font-size: 12px; padding: 0 14px; }

.btn--taxi { background: var(--grad-taxi); color: #fff; box-shadow: 0 8px 24px rgba(22,119,255,0.24); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.card--brand {
  background: var(--grad-aurora);
  color: #fff;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.card--brand::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.card--brand::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,177,153,0.5) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,107,26,0.1);
  color: var(--brand-orange);
}
.tag--taxi { background: rgba(22,119,255,0.1); color: var(--color-taxi); }
.tag--culture { background: rgba(139,92,246,0.1); color: var(--color-culture); }
.tag--food { background: rgba(239,68,68,0.1); color: var(--color-food); }
.tag--shop { background: rgba(245,158,11,0.1); color: var(--color-shop); }
.tag--solid-orange { background: var(--brand-orange); color: #fff; }
.tag--solid-taxi { background: var(--color-taxi); color: #fff; }

/* ---------- 图标通用 ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }

/* ---------- 列表项 ---------- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.list-item:active { background: #FAFAFA; }

/* ---------- 文本工具 ---------- */
.text-orange { color: var(--brand-orange); }
.text-taxi { color: var(--color-taxi); }
.text-muted { color: var(--color-text-3); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.text-3xl { font-size: 28px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------- 浮层toast ---------- */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  z-index: 200;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- 底部安全区 ---------- */
.safe-bottom { height: 24px; }

/* ---------- 隐藏滚动条但保留滚动 ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}