/* ==========================================================================
   Nav Ask Hint v4 — 精准修（用 flex 包容器，彻底不用 absolute）
   ========================================================================== */

/* ---------- 修 1：active 不闪动 ---------- */
/* 原 nav active 文字加粗（font-weight: 700）→ 文字宽度变 → nav-cta 位移闪动
   修法：active 用 ::after 下划线表示，文字粗细不变 */
.site-header .nav-links a.active {
  font-weight: inherit;
}
.site-header .nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent, #f97316);
  border-radius: 1px;
  margin-top: 2px;
  width: 100%;
}

/* ---------- 修 2：右侧容器包住 Ask + Get Quote ---------- */
/* nav-right 是 flex 容器，Ask 和 Get Quote 自动紧密排列 */
.site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;  /* Ask 和 Get Quote 之间 8px 间距 */
  flex-shrink: 0;
}

/* ---------- Ask 按钮样式 ---------- */
.nav-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line, #e2e8f0);
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-kbd-hint:hover {
  border-color: var(--accent, #f97316);
  color: var(--accent, #f97316);
  background: #fff7ed;
}

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .site-header .nav-right { gap: 6px; }
  .nav-kbd-hint {
    padding: 5px 10px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  /* 极窄屏：直接隐藏 Ask 按钮 */
  .nav-kbd-hint { display: none; }
  .site-header .nav-links { gap: 14px !important; }
}