/* 移动端底部菜单栏样式 */
.mobile-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(107, 114, 128, 0.9);
  border: none;
  box-shadow: none;
  z-index: 1000;
  display: none; /* 默认隐藏，只在移动端显示 */
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom, 8px); /* 适配iPhone底部安全区域 */
}

.mobile-bottom-menu-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.mobile-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 70px;
  border-radius: 8px;
  position: relative;
  background: transparent;
  margin: 0 2px;
}

.mobile-menu-item:hover {
  color: #60a5fa;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-item.active {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-bottom-menu {
    background: rgba(31, 41, 55, 0.9);
  }
  
  .mobile-menu-item {
    color: #e5e7eb;
  }
  
  .mobile-menu-item:hover,
  .mobile-menu-item.active {
    color: #60a5fa;
  }
}

/* 移动端显示和布局优化 */
@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    text-size-adjust: 100%;
  }
  
  .mobile-bottom-menu {
    display: block;
    z-index: 9999;
  }
  
  #app {
    padding-bottom: 44px;
    min-height: 100vh;
  }
  
  .ant-layout {
    min-height: calc(100vh - 44px);
  }
  
  .mobile-hide-sidebar {
    display: none;
  }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
  .mobile-menu-item {
    min-width: 50px;
    padding: 4px 6px;
  }
  
  .mobile-menu-icon {
    width: 20px;
    height: 20px;
  }
  
  .mobile-menu-text {
    font-size: 9px;
  }
}

/* 横屏适配 */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-menu-item {
    padding: 2px 8px;
  }
  
  .mobile-menu-icon {
    margin-bottom: 1px;
  }
}

/* 动画效果 */
.mobile-bottom-menu {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 点击反馈效果 */
.mobile-menu-item:active {
  transform: scale(0.95);
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

/* 图标样式 */
.mobile-menu-icon svg,
.mobile-menu-icon i,
.mobile-menu-icon iconify-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.mobile-menu-icon .iconify,
.mobile-menu-icon .anticon {
  font-size: 28px;
  line-height: 1;
}

.mobile-menu-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 徽章样式（用于显示未读消息等） */
.mobile-menu-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}