/* 五栏 APP 通用：固定底栏 + 安全区 */
.app-body .app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  background: #f2f4f8;
}

.app-body .app-main {
  flex: 1;
  width: 100%;
}

.app-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 100;
  display: flex;
  width: 100%;
  max-width: 430px;
  padding: 5px 2px calc(5px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e4e8ef;
  transform: translateX(-50%);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.app-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 2px;
  color: #8c94a3;
  font-size: 10px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

.app-tabbar .tab-icon {
  display: flex;
  width: 24px;
  height: 24px;
  color: #8c94a3;
}

.app-tabbar .tab-icon svg {
  width: 22px;
  height: 22px;
}

.app-tabbar a.is-active {
  color: #c41e22;
}

.app-tabbar a.is-active .tab-icon {
  color: #c41e22;
}

.toast {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
