/* 底部固定导航：统一 5 项（首页 / 业务 / 洞察 / 消息 / 我的）与消息未读角标。
   这里同时提供基础布局，保证没有自带 .bottom-nav 样式的页面（如 messages.html）
   也能正确渲染成底部固定条，而不是一串裸链接。 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 68px;
  background: rgba(10, 37, 64, .96);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(212, 175, 55, .3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, .2);
  padding: 0 10px;
}
.bottom-nav a,
.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a9b7c7;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
}
.bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: var(--gold, #c8a45d);
}
.bottom-nav .icon,
.bottom-nav span:first-child {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 3px;
}
.bottom-nav .nav-badge {
  display: inline-block;
  margin-left: 5px;
  min-width: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}
.bottom-nav .nav-badge[hidden] {
  display: none;
}
.bottom-nav a,
.bottom-nav .nav-item {
  min-width: 0;
  white-space: nowrap;
}
@media (max-width: 430px) {
  .bottom-nav {
    height: 62px;
    padding: 0 4px;
  }
  .bottom-nav a,
  .bottom-nav .nav-item {
    font-size: 10px;
    letter-spacing: 0;
  }
  .bottom-nav .icon,
  .bottom-nav span:first-child {
    font-size: 18px !important;
    margin-bottom: 1px !important;
  }
  .bottom-nav .nav-badge {
    min-width: 14px;
    padding: 0 4px;
    line-height: 14px;
  }
}
