/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #f5f5f5;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 页面内容区域 */
.page-content {
  flex: 1;
  overflow-y: hidden;
  position: relative;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  display: none;
}

.page.active {
  display: block;
}

.page h2 {
  margin-bottom: 5px;
  color: #333;
}

.page p {
  color: #666;
  line-height: 1.6;
}

/* 底部导航样式 */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  height: 12vw; 
  padding: 0 4vw;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

/* 彩色图标样式 */
.nav-item:nth-child(1) i { color: #4cd964; } /* 充值 - 绿色 */
.nav-item:nth-child(2) i { color: #ff9500; } /* 充值记录 - 橙色 */
.nav-item:nth-child(3) i { color: #007aff; } /* 交易记录 - 蓝色 */
.nav-item:nth-child(4) i { color: #af52de; } /* 会员信息 - 紫色 */
.nav-item:nth-child(5) i { color: #ff2d55; } /* 数据看板 - 红色 */

/* 激活状态样式 */
.nav-item.active {
  color: #007aff;
}

.nav-item.active:nth-child(1) i { color: #34c759; }
.nav-item.active:nth-child(2) i { color: #ff8c00; }
.nav-item.active:nth-child(3) i { color: #0066cc; }
.nav-item.active:nth-child(4) i { color: #9c27b0; }
.nav-item.active:nth-child(5) i { color: #d32f2f; }

/* 响应式调整 */
@media (min-width: 768px) {
  .bottom-nav {
    height: 64px;
  }
  
  .nav-item {
    font-size: 14px;
  }
  
  .nav-item i {
    font-size: 24px;
  }
  
  .page {
    padding: 40px;
  }
}

/* 模拟App环境的样式 */
@media (max-width: 480px) {
  .bottom-nav {
    height: 50px;
  }
  
  .nav-item i {
    font-size: 18px;
  }
}
