/* 全站统一主导航样式 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,31,54,0.95);
  backdrop-filter: blur(10px);
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
}
.header-logo { display:flex; align-items:center; gap:4px; text-decoration:none; }
.header-logo .logo-img { height:56px; width:auto; display:block; }

.header-nav-row {
  background: rgba(45,51,72,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 46px;
}
.header-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
}
.header-nav-inner .header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-nav-inner .nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.header-nav-inner .nav-link:hover,
.header-nav-inner .nav-link.active {
  color: #fff;
  background: rgba(59,130,246,0.2);
}

/* =========================================================
   移动端：汉堡菜单 (≤768px) —— 写在 header.css（后加载，覆盖 style.css 同名规则）
   ========================================================= */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .app-header .header-inner { position: relative; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; padding: 0; background: transparent; border: none; cursor: pointer; z-index: 120; }
  .nav-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-nav-row { height: auto; max-height: 0; overflow: hidden; transition: max-height .35s ease; border-bottom: none; }
  .header-nav-row.open { max-height: 78vh; overflow-y: auto; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-nav-inner { height: auto; display: block; padding: 0 14px; }
  .header-nav { flex-direction: column; align-items: stretch; width: 100%; padding: 6px 0; gap: 0; }
  .header-nav .nav-link { padding: 15px 10px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 0; }
  .header-nav .nav-link:last-child { border-bottom: none; }
  .header-nav .nav-link.active { background: rgba(59,130,246,0.18); }
  .header-logo span { display: none; }
}

