/**
 * 全站导航组件（单一来源）
 * 被以下页面引用：index / products / courses / experts / activities / job-list / job-submit /
 * product-consult / signup / product-detail/*
 * welfare-shop、welfare-detail 使用独立的轻量导航，不引用本文件。
 * 修改导航样式只需改本文件，不再逐页修改。
 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav-inner {
  max-width: var(--max-w, 1200px);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img { height: 57px; width: auto; display: block; }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sub, #4E5969);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue, #1a5c9e); }
.nav-links a.active { color: var(--blue, #1a5c9e); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-main, #1D2129);
}

/* ===== 768px 以下：折叠为下拉菜单 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white, #fff);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border, #e8e8e8);
    box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, .08));
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== 480px 以下：小屏精修 ===== */
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .logo-img { height: 46px; }
  .nav-links { padding: 10px 16px; }
  .nav-links a {
    display: block;
    padding: 10px 0;
    min-height: 44px;
    box-sizing: border-box;
  }
}
