:root {
  --green: #2E7D32;
  --green-dark: #1B5E20;
  --green-light: #4CAF50;
  --green-bg: #E8F5E9;
  --orange: #FF8F00;
  --orange-light: #FFB300;
  --red: #D32F2F;
  --blue: #1565C0;
  --text: #212121;
  --text-sec: #757575;
  --border: #E0E0E0;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.10);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
}

/* ===== 页面容器 ===== */
.page-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: none;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.page.active { display: block; }
.page::-webkit-scrollbar { display: none; }

/* ===== TabBar ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  display: flex;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-icon { font-size: 22px; transition: transform 0.2s; }
.tab-label { font-size: 10px; color: var(--text-sec); transition: color 0.2s; }
.tab-item.active .tab-label { color: var(--green); font-weight: 700; }
.tab-item.active .tab-icon { transform: scale(1.15); }
.tab-item:active .tab-icon { transform: scale(0.95); }
