/* ═══════════════ SHARED HEADER — identical to myDMTA portal ═══════════════
   橙色品牌条（Logo + 大搜索 + 图标工具组） + 白色导航条
   所有页面共用，避免重复维护
   ═══════════════════════════════════════════════════════════════════════ */

header, header.site {
  background: var(--gold, #F5A623);
  position: sticky; top: 0; z-index: 500;
}

.header-inner {
  --hp: 50px;
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap; row-gap: 10px;
  padding: 11px var(--hp); min-height: 76px;
  max-width: 1800px; margin: 0 auto;
}

/* ── brand（保持原样） ── */
.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo-img { width: 62px; height: 62px; object-fit: contain; flex-shrink: 0; background: white; border-radius: 10px; padding: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .heading {
  font-family: 'Oswald', 'Arial Narrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 21px;
  letter-spacing: 1.4px; color: var(--navy, #1E2D4E); text-transform: uppercase;
}
.logo-text .tagline {
  font-size: 11.5px; letter-spacing: 0.8px; color: rgba(30,45,78,0.72);
  font-weight: 700; margin-top: 5px; text-transform: uppercase;
}

/* ── search ── */
.pt-search {
  flex: 1 1 320px; max-width: 620px; display: flex; align-items: stretch;
  height: 44px; background: white; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(30,45,78,0.12);
}
.pt-search select {
  border: none; background: #F7F4EE; color: var(--navy, #1E2D4E);
  font-size: 12.5px; font-weight: 600; padding: 0 12px; outline: none;
  cursor: pointer; font-family: inherit; max-width: 150px;
  border-right: 1px solid #E7DFD2;
}
.pt-search input {
  flex: 1; border: none; outline: none; padding: 0 14px; font-size: 13.5px;
  font-family: inherit; color: var(--navy, #1E2D4E); background: white; min-width: 0;
}
.pt-search input::placeholder { color: #9C9482; }
.pt-search button {
  width: 52px; border: none; border-left: 1px solid #E7DFD2; background: white;
  color: var(--navy, #1E2D4E); font-size: 15px; cursor: pointer; transition: all .2s;
}
.pt-search button:hover { background: var(--navy, #1E2D4E); color: var(--gold, #F5A623); }

/* ── utility group（图标+文字，与 ERP 一致） ── */
.pt-utils { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pt-util {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  font-size: 10.5px; font-weight: 700; color: var(--navy, #1E2D4E);
  transition: background .18s; white-space: nowrap; text-decoration: none;
}
.pt-util:hover { background: rgba(255,255,255,0.28); color: var(--navy, #1E2D4E); }
.pu-ic { position: relative; font-size: 18px; line-height: 1; }
.pu-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--navy, #1E2D4E); color: white; font-size: 9.5px; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold, #F5A623); font-style: normal;
}
.pu-dot {
  position: absolute; top: -3px; right: -3px; width: 8px; height: 8px;
  background: #DC2626; border-radius: 50%; border: 1.5px solid var(--gold, #F5A623);
}

/* ── white nav row ── */
header nav, header nav.main {
  order: 3; flex-basis: auto; width: calc(100% + var(--hp, 50px) * 2);
  display: flex; align-items: center; gap: 30px; flex-wrap: nowrap;
  background: white; margin: 0 calc(-1 * var(--hp, 50px)) -11px;
  padding: 2px var(--hp, 50px);
  border-top: 1px solid rgba(30,45,78,0.10);
  overflow-x: auto; scrollbar-width: none;
}
header nav::-webkit-scrollbar { display: none; }
header nav a {
  color: var(--navy, #1E2D4E); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  position: relative; padding: 15px 0; transition: color 0.2s; white-space: nowrap;
}
header nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--gold, #F5A623);
  transform: scaleX(0); transition: transform 0.25s ease;
}
header nav a:hover::after, header nav a.active::after { transform: scaleX(1); }
header nav a:hover { color: var(--navy, #1E2D4E); }

/* PROMO tag */
.nav-hot { display: inline-flex !important; align-items: center; gap: 6px; }
.hot-tag {
  background: #E63946; color: white; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 3px; letter-spacing: 1px;
}

/* right side of nav */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-left: 16px; }

/* ── language switcher ── */
.lang-switcher { position: relative; }
.lang-current {
  background: white; border: 1.5px solid var(--navy, #1E2D4E); color: var(--navy, #1E2D4E);
  padding: 6px 11px; border-radius: 6px; display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; font-size: 12px; font-weight: 700; transition: all 0.2s; font-family: inherit;
}
.lang-current:hover { background: var(--navy, #1E2D4E); color: white; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: white;
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  min-width: 180px; padding: 6px; display: none; z-index: 1000;
}
.lang-menu.show { display: block; }
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px;
  border: none; background: transparent; color: var(--navy, #1E2D4E);
  font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 6px;
  text-align: left; transition: background 0.15s;
}
.lang-item:hover { background: #F4EFE6; color: var(--gold-dark, #E69510); }
.lang-item span { font-size: 18px; }

/* ── responsive ── */
@media (max-width: 1440px) {
  .header-inner { --hp: 26px; }
  .pt-search { max-width: 460px; }
}
@media (max-width: 1100px) {
  .header-inner { --hp: 18px; gap: 14px; }
  .pt-search { order: 3; flex: 1 1 100%; max-width: none; }
  .pt-util { padding: 6px 9px; font-size: 10px; }
  header nav { gap: 22px; }
  header nav a { font-size: 12.5px; letter-spacing: 1px; padding: 13px 0; }
}
@media (max-width: 640px) {
  .logo-text .heading { font-size: 16px; }
  .logo-text .tagline { font-size: 9.5px; }
  .logo-img { width: 50px; height: 50px; }
  .pu-lb { display: none; }
  .nav-right { gap: 8px; }
}

.pu-lb { line-height: 1.1; }


/* ── Language button: same utility-button look as Alerts (2026-11-28) ── */
.lang-wrap { position: relative; display: flex; align-items: center; }
.lang-current.pt-util {
  background: transparent; border: none; color: var(--navy, #1E2D4E);
  flex-direction: row; gap: 5px; padding: 6px 10px;
  font-size: 10.5px; font-weight: 700; text-decoration: none;
}
.lang-current.pt-util:hover { background: rgba(255,255,255,0.28); }
.lang-current.pt-util .pu-ic { font-size: 16px; }
.lang-current.pt-util .pu-lb { display: inline; line-height: 1.1; }
#lang-current-flag { font-size: 13px; }
.lang-menu {
  top: calc(100% + 8px); right: auto; left: 0;
  min-width: 210px; max-height: 340px; overflow-y: auto;
}
.lang-item { font-size: 13px; padding: 8px 12px; }
