/* === askintell-nav.css v1.0 — 统一导航栏组件 === */
/* 基于 index.html 的 .nav 设计，适配所有非 family-home 页面 */

.askintell-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(8,8,12,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme=light] .askintell-nav {
  background: rgba(247,247,250,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.askintell-nav-left { display: flex; align-items: center; gap: 28px; }
.askintell-nav-logo {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.askintell-nav-logo img {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover;
}
.askintell-nav-logo span {
  font-size: 17px; font-weight: 700; color: #f1f5f9;
  white-space: nowrap;
}
[data-theme=light] .askintell-nav-logo span { color: #1a1a2e; }

.askintell-nav-links { display: flex; align-items: center; gap: 2px; }
.askintell-nav-link {
  font-size: 14px; font-weight: 500; color: #94a3b8;
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.askintell-nav-link:hover { color: #f1f5f9; background: rgba(255,255,255,0.06); }
.askintell-nav-link.active { color: #818CF8 !important; background: rgba(99,102,241,0.15) !important; font-weight: 600 !important; }
[data-theme=light] .askintell-nav-link { color: #5A6478; }
[data-theme=light] .askintell-nav-link:hover { color: #1a1a2e; background: rgba(0,0,0,0.04); }
[data-theme=light] .askintell-nav-link.active { color: #6366F1 !important; background: rgba(99,102,241,0.1) !important; font-weight: 600 !important; }

.askintell-nav-right { display: flex; align-items: center; gap: 10px; }
.askintell-nav-theme-btn {
  font-size: 16px; cursor: pointer; border: none; background: none;
  color: #94a3b8; padding: 6px 8px; border-radius: 8px; transition: all 0.2s;
}
.askintell-nav-theme-btn:hover { color: #f1f5f9; }
[data-theme=light] .askintell-nav-theme-btn { color: #5A6478; }
[data-theme=light] .askintell-nav-theme-btn:hover { color: #1a1a2e; }

.askintell-nav-toggle { display: none; font-size: 18px; cursor: pointer; border: none; background: none; color: #94a3b8; }
[data-theme=light] .askintell-nav-toggle { color: #5A6478; }

/* Mobile menu */
.askintell-nav-mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  background: rgba(8,8,12,0.98); padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-direction: column; gap: 4px;
}
[data-theme=light] .askintell-nav-mobile-menu {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.askintell-nav-mobile-menu.open { display: flex; }
.askintell-nav-mobile-menu .askintell-nav-link { padding: 10px 14px; }

@media (max-width: 768px) {
  .askintell-nav-links { display: none; }
  .askintell-nav-right > #navUserArea { display: none; }
  .askintell-nav-toggle { display: block; }
}
