/* 移动端优化样式 */

@media (max-width: 768px) {
  /* 隐藏页脚 */
  footer, .footer {
    display: none !important;
  }
  
  /* 优化头部 */
  header, .header {
    border-bottom: 1px solid #e0e0e0;
    /* 移除position: sticky以解决移动端悬停问题 */
    top: 0;
    z-index: 999;
  }
  
  .mobile-logo {
    height: 40px; /* 增大Logo高度以提高移动端品牌识别度 */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* 确保Logo在深色主题下有足够的对比度 */
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
  }
  
  /* 确保Logo在深色主题下有更好的可见性 */
  [data-theme="dark"] .mobile-logo {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
  }
  
  /* 确保Logo在动画主题下有更好的可见性 */
  [data-theme="animation"] .mobile-logo {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
  }
  
  /* 针对小屏幕设备进一步优化 */
  @media (max-width: 480px) {
    .mobile-logo {
      height: 36px; /* 在超小屏幕上稍微减小以适应屏幕 */
    }
  }
  
  .mobile-header-icons {
    display: flex;
    align-items: center;
  }
  
  .cart-icon-container {
    position: relative;
    margin-left: 15px;
  }
  
  .cart-icon {
    font-size: 20px;
    color: #333;
  }
  
  /* 确保图标在深色主题下清晰可见 */
  [data-theme="dark"] .navbar-toggler i,
  [data-theme="dark"] .cart-badge {
    color: #fff;
  }
  
  /* 确保图标在动画主题下清晰可见 */
  [data-theme="animation"] .navbar-toggler i,
  [data-theme="animation"] .cart-badge {
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  }
  
  .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }
  
  /* 内容区域优化 */
  .mobile-content {
    padding: 15px;
    margin-bottom: 60px; /* 为底部导航留出空间 */
  }
  
  /* 适配现有页面结构 */
  .container, .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .row {
    margin-left: -5px !important;
    margin-right: -5px !important;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  
  /* 底部固定导航栏 */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
  }
  
  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.2s ease;
  }
  
  .mobile-nav-item.active {
    color: #007bff;
  }
  
  .mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
  }
  
  .mobile-nav-item:hover {
    color: #007bff;
    background-color: #f8f9fa;
  }
}