/* ===== LGSports 移动端专属样式 ===== */

/* ===== 底部 Tab 栏 - 全局基础样式（桌面+移动共用） ===== */

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-secondary, #888);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
  color: var(--primary-blue, #2563eb);
  font-weight: 600;
}

.tab-item .tab-icon {
  font-size: 20px;
  line-height: 1;
}

/* ========================================
   底部 Tab 栏 — 全局基础样式（所有屏幕共用）
   ======================================== */

.bottom-tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding-bottom: var(--safe-bottom, 0px);
  background: var(--card-bg, #fff);
  border-top: 1px solid var(--border-color, #e8e8e8);
  z-index: 200;
  justify-content: space-around;
  align-items: center;
}

/* 为底部 Tab 栏留出空间 */
.main {
  padding-bottom: calc(50px + var(--safe-bottom, 0px));
}

/* ========================================
   2. Dashboard 首页样式已移至 dashboard.css
   ======================================== */

/* ========================================
   3. 顶部品牌区 + 问候按钮
   ======================================== */

.header-brand {
  display: none;
  /* 桌面端隐藏 */
}

.greeting-btn {
  display: none;
  /* 桌面端隐藏 */
}

/* ========================================
   移动端激活（<=768px）
   ======================================== */

@media (max-width: 768px) {

  .tab-item {
    padding: 4px 12px;
  }

  .tab-item .tab-icon {
    font-size: 18px;
  }

  /* ----- 顶部导航栏 ----- */

  .header-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
  }

  .header-logo {
    font-size: 20px;
  }

  .header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #333);
  }

  .greeting-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--accent-color, #667eea);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .greeting-btn:active {
    opacity: 0.85;
  }

  /* ----- Dashboard 首页布局（详见 dashboard.css） ----- */

  .welcome-screen {
    min-height: 0;
    animation: dashboardFadeIn 0.3s ease-out;
  }

  @keyframes dashboardFadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ----- 通用移动卡片 ----- */

  .mobile-card {
    background: var(--card-bg, #fff);
    border-radius: var(--card-radius, 16px);
    box-shadow: var(--card-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    padding: 12px;
  }

  /* ----- 输入区微调 ----- */

  .chat-input-area {
    padding: 8px 12px;
  }

  .input-with-button textarea {
    border-radius: 20px;
    padding: 10px 50px 10px 16px;
  }
}

/* ===== 暗色模式 - Tab 栏（全局，桌面+移动共用） ===== */

body.dark-mode .bottom-tab-bar {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .tab-item {
  color: #888;
}

body.dark-mode .tab-item.active {
  color: #8899ff;
}

/* ========================================
   暗色模式（移动端组件）
   ======================================== */

@media (max-width: 768px) {

  body.dark-mode .header-title {
    color: #e0e0e0;
  }

  body.dark-mode .greeting-btn {
    background: #5568d3;
  }

  body.dark-mode .mobile-card {
    background: #1e1e2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  body.dark-mode .quick-tool-tile {
    background: #2a2a3a;
    box-shadow: none;
    border: 1px solid #3a3a4a;
  }

  body.dark-mode .quick-tool-tile:active {
    background: #3a3a4a;
  }

  body.dark-mode .quick-tool-tile .tile-label {
    color: #e0e0e0;
  }
}
