/* ===== 页面切换 ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--gc-card);
  border-top: 1px solid var(--gc-border);
  z-index: 50;
}
.bottom-nav-inner {
  max-width: var(--gc-container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gc-muted-foreground);
  transition: color 0.2s;
}
.nav-btn.active { color: var(--gc-primary); font-weight: 600; }
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn span { font-size: 11px; line-height: 1; }

/* ===== 主容器 ===== */
.app-container {
  max-width: var(--gc-container-width);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 64px;
  position: relative;
  overflow-x: hidden;
}

/* ===== 平板竖屏全局微调（小米平板竖屏等） ===== */
@media (min-width: 768px) {
  /* 底部导航条略加高，触控更舒适 */
  .bottom-nav { height: 72px; }
  .app-container { padding-bottom: 72px; }
  .nav-btn svg { width: 22px; height: 22px; }
  .nav-btn span { font-size: 12px; }
}

/* ===== 平板横屏全局微调 ===== */
@media (min-width: 1024px) {
  .bottom-nav { height: 76px; }
  .app-container { padding-bottom: 76px; }
  .nav-btn svg { width: 24px; height: 24px; }
}

/* ===== 小屏手机紧凑优化（<=360px） ===== */
@media (max-width: 360px) {
  .bottom-nav { height: 60px; }
  .app-container { padding-bottom: 60px; }
  .nav-btn span { font-size: 10px; }
}

/* ===================================================================
   各页面在平板/小屏下的局部调整
   说明：因页面 CSS 在 layout.css 之后加载，会覆盖此处规则，
   故各页面的响应式规则请放到对应页面 CSS 文件末尾维护。
   此处仅保留全局通用元素（底部导航/主容器）的调整。
   =================================================================== */

