/* ============================================================
   nav2.css — 新闻页新版导航（视觉与首页一致）
   独立类名，避免与旧 components.css 的 .site-header/.brand 冲突
   ============================================================ */

.nav2 {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}

.nav2-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌 */
.nav2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav2-mark {
  width: 56px;
  height: 56px;
  flex: none;
  display: block;
}
.nav2-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.nav2-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav2-txt strong {
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}
.nav2-txt small {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-top: 3px;
}

/* 菜单 */
.nav2-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav2-links a {
  position: relative;
  padding: 6px 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav2-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transition: right 0.3s ease;
}
.nav2-links a:hover { opacity: 1; }
.nav2-links a:hover::after { right: 0; }
.nav2-links a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
  opacity: 1;
}
.nav2-links a[aria-current="page"]::after { right: 0; }

/* 电话 */
.nav2-tel {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  text-decoration: none;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav2-tel:hover {
  background: var(--color-primary);
  color: var(--color-on-dark);
  border-color: var(--color-primary);
}

.nav2-toggle { display: none; }

/* 移动端 */
@media (max-width: 900px) {
  .nav2-links,
  .nav2-tel { display: none; }

  .nav2-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--color-ink);
  }
  .nav2-toggle span,
  .nav2-toggle span::before,
  .nav2-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: 0.3s ease;
  }
  .nav2-toggle span::before,
  .nav2-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav2-toggle span::before { top: -7px; }
  .nav2-toggle span::after { top: 7px; }

  .nav2.open .nav2-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px var(--space-4) 22px;
  }
  .nav2.open .nav2-links a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-line);
    opacity: 1;
  }
  .nav2.open .nav2-links a::after { display: none; }
}

@media (max-width: 520px) {
  .nav2-inner { min-height: 72px; gap: 10px; }
  .nav2-mark { width: 48px; height: 48px; }
  .nav2-txt strong { font-size: 17px; }
  .nav2-txt small { font-size: 10px; letter-spacing: 0.12em; }
}
