/* app.css — 壳内 H5 基础样式 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #F8F8F8;
  -webkit-font-smoothing: antialiased;
  /* 去掉 overflow:hidden — Android WebView 可能导致内容不可见 */
}

/* ===== 自定义导航栏 ===== */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 0.5px solid #e5e5e5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  /* 默认高度，JS 动态覆盖 */
  height: 44px;
}

.nav-bar-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

/* ===== 页面容器 ===== */
.app-container {
  /* paddingTop 由 JS 动态设置 */
  padding-top: 44px;
  min-height: 100%;
}

/* ===== 底 Tab 栏 ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: #fff;
  border-top: 0.5px solid #e5e5e5;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #999;
  cursor: pointer;
}

.tab-item.active { color: #007aff; }

.tab-icon { font-size: 22px; }

/* ===== 页面通用 ===== */
.page-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #999;
}
