/* ============================================================
   顶栏电话区 —— 与 hegui.bcac.com.cn 完全同款

   注意：main.js 的抽屉逻辑在桌面端会执行 headerInner.appendChild(nav)，
   把 .nav 搬到 header-inner 末尾。所以这里不能依赖 DOM 顺序，
   必须用 flex order 钉死：logo < nav < 电话块 < 汉堡。

   ≥1140      两行电话（4000-989-866 服务热线 / 010-80885651 北京总部）
   1100–1139  收成金色「电话咨询」胶囊，紧跟导航贴右缘
   ≤1099      右侧抽屉模式，胶囊排在汉堡左侧
   ≤560       只留 42px 方形图标
   加载顺序在 style.css 之后
   ============================================================ */

.logo { order: 0; }
.nav { order: 1; }
.head__tels, .head__call { order: 2; }
.nav-toggle { order: 3; }

.head__tels {
  display: flex; flex-direction: column; gap: 5px;
  padding-left: 16px; border-left: 1px solid var(--border);
  flex: none;
}
.head__tel {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: .04em; color: var(--primary-deep);
  transition: color .2s;
}
.head__tel svg { width: 15px; height: 15px; color: var(--gold); stroke-width: 1.9; flex: 0 0 auto; }
.head__tel-num {
  font-size: 15.5px; font-weight: 700; line-height: 1.16;
  font-variant-numeric: tabular-nums; min-width: 123px;
}
.head__tel-tag {
  font-family: var(--font); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; color: #B8935A;
}
.head__tel--hq svg { transform: scale(.87); transform-origin: 50% 50%; opacity: .8; }
.head__tel--hq .head__tel-num { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
.head__tel--hq .head__tel-tag { color: var(--text-sub); font-weight: 500; }
.head__tel:hover .head__tel-num,
.head__tel:hover .head__tel-tag { color: #8a6c16; }

/* 中窄屏替代：金色电话胶囊（默认不显示） */
.head__call {
  display: none; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 16px; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, #DFC073 0%, #c9a86a 52%, #a8844a 100%);
  color: #231A05; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -14px rgba(160, 124, 36, .85);
  transition: filter .2s, transform .2s;
}
.head__call svg { width: 15px; height: 15px; stroke-width: 1.9; flex: 0 0 auto; }
.head__call:hover { filter: brightness(1.04); transform: translateY(-1px); color: #231A05; }

/* ≥1140：导航靠右，两行电话贴右缘 */
@media (min-width: 1140px) {
  .header-inner { gap: 24px; }
  /* margin-right 让导航整体左移，使「首页」靠近 LOGO；
     原先 LOGO↔首页约 130px、导航↔电话仅 24px，两端过于悬殊 */
  .nav { margin-left: auto; margin-right: 26px; }
  .head__tels { margin-left: 0; }
}

/* 1100–1139：横向导航 + 两行电话放不下，这一档改用胶囊 */
@media (min-width: 1100px) and (max-width: 1139px) {
  .header-inner { gap: 24px; }
  .nav { margin-left: auto; margin-right: 26px; }
  .head__tels { display: none; }
  .head__call { display: inline-flex; margin-left: 16px; }
}

/* ≤1099：右侧抽屉模式（JS 把 .nav 移到 body），胶囊排在汉堡左侧 */
@media (max-width: 1099px) {
  /* gap 从 40px 收到 14px：否则胶囊与汉堡之间会留出 50px 的空档 */
  .header-inner { gap: 14px; }
  .head__tels { display: none; }
  .head__call { display: inline-flex; margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* ≤560：只留图标，42px 点击区仍在 */
@media (max-width: 560px) {
  .head__call { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
  .head__call span { display: none; }
  .header-inner { gap: 12px; }
}
