/* 全局基础样式（与 Tailwind CDN 互补） */
html, body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1f2329;
}

/* 底部固定 Tab 导航 */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eef0f3;
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8a9099;
  gap: 2px;
}
.tabbar .tab.active {
  color: #1677ff;
  font-weight: 600;
}
.tabbar .tab .ico { font-size: 20px; line-height: 1; }

/* 内容区留出底部导航空间 */
.view-wrap {
  padding-bottom: 72px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 顶部吸顶搜索栏 */
.topbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 40;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f3;
}

/* Toast */
#__toast { display: none; }

/* 筛选 chips */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0f3;
  color: #4a5562;
  font-size: 13px;
  margin: 0 6px 6px 0;
  cursor: pointer;
  white-space: nowrap;
}
.chip.active { background: #1677ff; color: #fff; }

/* 卡片 */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin: 12px;
  padding: 14px;
  cursor: pointer;
}
.card .title { font-size: 17px; font-weight: 600; color: #1677ff; }
.card .row { font-size: 14px; color: #4a5562; margin-top: 6px; }

/* 大按钮 */
.btn-primary {
  background: #1677ff;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  padding: 14px;
  width: 100%;
  font-weight: 600;
}
.btn-ghost {
  background: #fff;
  color: #1677ff;
  border: 1px solid #1677ff;
  border-radius: 12px;
  font-size: 16px;
  padding: 14px;
  width: 100%;
  font-weight: 600;
}
.btn-danger {
  background: #fff;
  color: #e54d42;
  border: 1px solid #e54d42;
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 12px;
}

/* 详情遮罩（SPA 子页面） */
.overlay {
  position: fixed;
  inset: 0;
  background: #f5f6f8;
  z-index: 60;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.overlay.show { transform: translateX(0); }

/* 地图容器 */
#mapContainer { width: 100%; height: 100%; }
.map-fail {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #8a9099; font-size: 14px; text-align: center; padding: 20px;
}

/* 微信提示遮罩 */
.wechat-tip {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 30px; text-align: center;
}
.wechat-tip h2 { font-size: 20px; margin-bottom: 12px; }

/* 后台表格 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border: 1px solid #e5e7eb; padding: 6px 8px; }
.admin-table th { background: #f0f4ff; }
.input {
  width: 100%; border: 1px solid #d9dde3; border-radius: 8px; padding: 8px 10px;
  font-size: 14px; box-sizing: border-box; margin-bottom: 8px;
}
.label { font-size: 13px; color: #4a5562; margin: 6px 0 2px; display:block; }
