/* 共用頂部導覽（計算Pro 2026）— 需先載入 calculator/style.css */

header.site-header-2026 {
  background: #a80000;
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.site-header-2026__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header-2026__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4rem;
  gap: 1rem;
}

.site-header-2026__brand {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.site-header-2026__brand svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.site-header-2026__nav-desktop {
  display: none;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header-2026__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  transition: background 0.2s;
}

.site-header-2026__nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.site-header-2026__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header-2026__menu-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.site-header-2026__menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-header-2026__menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-header-2026__nav-mobile {
  display: none;
  padding-bottom: 1rem;
}

.site-header-2026__nav-mobile.active {
  display: block;
}

.site-header-2026__nav-mobile a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.site-header-2026__nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 語系選單：沿用 calculator 的 .language-switcher / .language-select 時需覆寫為淺底 */
.site-header-2026 .language-switcher {
  margin-left: 0;
}

.site-header-2026 .language-select {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: var(--contrast);
}

.site-header-2026 .language-select:hover {
  border-color: var(--btn-tertiary);
}

@media (min-width: 768px) {
  .site-header-2026__nav-desktop {
    display: flex;
  }

  .site-header-2026__menu-btn {
    display: none;
  }
}
