/*
 * SITPCBA responsive site header
 * Version: 2026-08-24
 * Scope: site-header only, plus the shared header-height contract with page banners.
 */

:root {
  --site-header-height: 64px;
  --site-header-accent: #0066ff;
  --site-header-accent-hover: #0052cc;
  --site-header-cyan: #00a9d6;
  --site-header-ink: #152238;
  --site-header-muted: #607086;
  --site-header-surface: rgba(255, 255, 255, 0.98);
  --site-header-border: rgba(21, 34, 56, 0.1);
  --site-header-shadow: 0 10px 30px rgba(13, 37, 68, 0.1);
  --site-header-layer: 900;
  --site-header-overlay-layer: 1;
  --site-header-content-layer: 3;
  --site-header-drawer-layer: 4;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 16px);
}

html body {
  padding-top: var(--site-header-height) !important;
}

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: var(--site-header-layer) !important;
  width: 100% !important;
  height: var(--site-header-height) !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site-header-border) !important;
  background: var(--site-header-surface) !important;
  box-shadow: var(--site-header-shadow) !important;
  color: var(--site-header-ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.site-header.shadow {
  animation: none !important;
  transform: none !important;
}

.site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) {
  border-bottom-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header__inner {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: min(calc(100% - 32px), 1840px);
  height: 100%;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
}

.site-header__brand {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-header__brand img {
  display: block;
  width: auto !important;
  height: 38px !important;
  max-width: 142px;
  max-height: 38px !important;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: filter 180ms ease, opacity 180ms ease;
}

.site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__brand img {
  filter: brightness(0) invert(1) !important;
}

.site-header__actions {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.site-header__contact {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 999px;
  background: #ffffff;
  color: var(--site-header-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.site-header__contact:hover {
  border-color: var(--site-header-accent);
  background: var(--site-header-accent);
  color: #f8fbff;
  transform: translateY(-1px);
}

.site-header__contact:active,
.site-header__quick-call:active,
.site-header__menu-button:active {
  transform: translateY(1px);
}

.site-header__contact-label {
  color: var(--site-header-muted);
  font-size: 11px;
  font-weight: 500;
}

.site-header__contact:hover .site-header__contact-label {
  color: inherit;
}

.site-header__quick-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(0, 102, 255, 0.32);
  border-radius: 999px;
  background: #ffffff;
  color: var(--site-header-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__quick-call {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.site-header__menu-button {
  position: relative;
  z-index: 5;
  display: inline-flex;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 102, 255, 0.32);
  border-radius: 10px;
  background: #ffffff;
  color: var(--site-header-ink);
  cursor: pointer;
}

.site-header__menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__menu-button {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

.site-header.is-menu-open .site-header__menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-button span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.is-menu-open .site-header__brand,
.site-header.is-menu-open .site-header__quick-call {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-header__nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--site-header-drawer-layer);
  display: flex;
  flex-direction: column;
  width: min(88vw, 400px);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--site-header-height) + 22px) 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid rgba(21, 34, 56, 0.08);
  background: #ffffff;
  box-shadow: -18px 0 44px rgba(13, 37, 68, 0.16);
  color: var(--site-header-ink);
}

.site-header.is-ready .site-header__nav {
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 200ms ease, opacity 160ms ease, visibility 0s linear 200ms;
}

.site-header.is-ready.is-menu-open .site-header__nav {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
}

.site-header__drawer-heading {
  margin: 0 0 14px;
  color: var(--site-header-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header__nav-list,
.site-header__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-list {
  flex: 0 0 auto;
}

.site-header__nav-item {
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(21, 34, 56, 0.1);
}

.site-header__nav-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.site-header__nav-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 12px 4px;
  color: var(--site-header-ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: none !important;
  white-space: nowrap;
}

.site-header__nav-item.cur > .site-header__nav-row > .site-header__nav-link {
  color: var(--site-header-accent) !important;
}

.site-header__submenu-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  margin: 2px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--site-header-muted);
  cursor: pointer;
}

.site-header__submenu-toggle:hover {
  background: rgba(0, 102, 255, 0.07);
  color: var(--site-header-accent);
}

.site-header__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.site-header__submenu-toggle[aria-expanded="true"] .site-header__chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.site-header.is-ready .site-header__nav-item:not(.is-submenu-open) > .site-header__submenu {
  display: none;
}

.site-header__submenu {
  padding: 2px 0 10px 14px;
}

.site-header__submenu-item {
  margin: 0;
  padding: 0;
}

.site-header__submenu-item a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #45566c !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
  text-shadow: none !important;
}

.site-header__submenu-item a:hover {
  background: rgba(0, 102, 255, 0.07);
  color: var(--site-header-accent) !important;
}

.site-header__drawer-contact {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
}

.site-header__drawer-contact-title {
  margin: 0 0 2px;
  color: var(--site-header-muted);
  font-size: 12px;
  font-weight: 600;
}

.site-header__drawer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.05);
  color: var(--site-header-accent) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.site-header__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--site-header-overlay-layer);
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 27, 48, 0.48);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.site-header.is-menu-open .site-header__overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

body.site-header-menu-open .sit-float-bar,
body.site-header-menu-open .zdsbacktop {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-header__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid var(--site-header-cyan);
  outline-offset: 3px;
}

.site-header:not(.is-ready) {
  position: relative !important;
  height: auto !important;
}

.site-header:not(.is-ready) .site-header__inner {
  height: auto;
  min-height: var(--site-header-height);
}

.site-header:not(.is-ready) .site-header__nav {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  max-height: none;
  margin-bottom: 16px;
  padding: 18px;
  box-shadow: none;
  transform: none;
}

.site-header:not(.is-ready) .site-header__menu-button,
.site-header:not(.is-ready) .site-header__overlay {
  display: none;
}

/* Shared header-height contract for the homepage and internal banners. */
body.home .hero-banner {
  box-sizing: border-box;
  min-height: 100vh !important;
  min-height: 100svh !important;
  margin-top: calc(-1 * var(--site-header-height)) !important;
  padding-top: var(--site-header-height) !important;
}

body.home .hero-content-wrapper {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: calc(100vh - var(--site-header-height)) !important;
  min-height: calc(100svh - var(--site-header-height)) !important;
  padding-top: clamp(32px, 6vh, 72px) !important;
  padding-bottom: clamp(32px, 6vh, 72px) !important;
  box-sizing: border-box;
}

body:not(.home) .inside-banner,
body:not(.home) .page-hd {
  margin-top: calc(-1 * var(--site-header-height)) !important;
}

body:not(.home) .page-hd__inner {
  padding-top: calc(var(--site-header-height) + 34px) !important;
}

@media (max-width: 1023px) {
  .full-inside-subnav,
  .crumb,
  .common-clumb-min {
    display: none !important;
  }
}

@media (max-height: 760px) {
  body.home .hero-content-wrapper {
    align-items: flex-start !important;
    padding-top: 26px !important;
    padding-bottom: 30px !important;
  }

  body.home .hero-badge {
    padding: 6px 14px;
    margin-bottom: 14px;
  }

  body.home .hero-title {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.12;
  }

  body.home .hero-subtitle {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  body.home .hero-stats {
    gap: 10px;
    margin-bottom: 16px;
  }

  body.home .stat-card {
    padding: 10px 12px;
  }

  body.home .stat-number {
    margin-bottom: 4px;
    font-size: 30px;
  }

  body.home .stat-number .unit {
    font-size: 16px;
  }

  body.home .hero-cta {
    margin-bottom: 0;
  }

  body.home .hero-btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  body.home .scroll-hint {
    display: none !important;
  }
}

@media (max-height: 760px) and (min-width: 769px) {
  body.home .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  :root {
    --site-header-height: 72px;
  }

  .site-header__inner {
    column-gap: clamp(18px, 1.6vw, 30px);
    width: min(calc(100% - 48px), 1840px);
  }

  .site-header__brand img {
    height: 40px !important;
    max-width: 150px;
    max-height: 40px !important;
  }

  .site-header__nav,
  .site-header.is-ready .site-header__nav,
  .site-header.is-ready.is-menu-open .site-header__nav {
    position: static;
    z-index: auto;
    display: block;
    grid-column: 2;
    width: auto;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header__drawer-heading,
  .site-header__drawer-contact,
  .site-header__submenu-toggle,
  .site-header__quick-call,
  .site-header__menu-button,
  .site-header__overlay {
    display: none !important;
  }

  .site-header__nav-list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(10px, 0.85vw, 18px);
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  .site-header__nav-item {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    height: 100%;
    border: 0;
  }

  .site-header__nav-row {
    height: 100%;
  }

  .site-header__nav-link {
    position: relative;
    flex: 0 0 auto;
    min-height: 100%;
    padding: 0 2px;
    color: var(--site-header-ink) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
  }

  .site-header__nav-link::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    left: 50%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--site-header-cyan);
    content: "";
    transition: right 160ms ease, left 160ms ease;
  }

  .site-header__nav-item:hover > .site-header__nav-row > .site-header__nav-link,
  .site-header__nav-item:focus-within > .site-header__nav-row > .site-header__nav-link,
  .site-header__nav-item.cur > .site-header__nav-row > .site-header__nav-link {
    color: var(--site-header-accent) !important;
  }

  .site-header__nav-item:hover > .site-header__nav-row > .site-header__nav-link::after,
  .site-header__nav-item:focus-within > .site-header__nav-row > .site-header__nav-link::after,
  .site-header__nav-item.cur > .site-header__nav-row > .site-header__nav-link::after {
    right: 0;
    left: 0;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__nav-link {
    color: #f8fbff !important;
    text-shadow: 0 1px 5px rgba(8, 22, 42, 0.45) !important;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open)
    .site-header__nav-item:hover
    > .site-header__nav-row
    > .site-header__nav-link,
  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open)
    .site-header__nav-item:focus-within
    > .site-header__nav-row
    > .site-header__nav-link,
  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open)
    .site-header__nav-item.cur
    > .site-header__nav-row
    > .site-header__nav-link {
    color: #7ee7ff !important;
  }

  .site-header__submenu {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    z-index: 5;
    display: block !important;
    width: max-content;
    min-width: 190px;
    max-width: 280px;
    padding: 8px;
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-top: 3px solid var(--site-header-accent);
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(13, 37, 68, 0.16);
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease, visibility 0s linear 160ms;
  }

  .site-header__nav-item:hover > .site-header__submenu,
  .site-header__nav-item:focus-within > .site-header__submenu {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-header__submenu-item a {
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .site-header__contact--phone {
    display: inline-flex;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__contact {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__contact-label {
    color: rgba(255, 255, 255, 0.76);
  }
}

@media (min-width: 1680px) {
  .site-header__contact--email {
    display: inline-flex;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    column-gap: 8px;
    width: calc(100% - 20px);
  }

  .site-header__brand img {
    height: 34px !important;
    max-width: 122px;
    max-height: 34px !important;
  }

  .site-header__quick-call {
    min-width: 42px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .site-header__menu-button {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header *,
  .site-header *::before,
  .site-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) {
    border-bottom-color: var(--site-header-border) !important;
    background: #ffffff !important;
    box-shadow: var(--site-header-shadow) !important;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__brand img {
    filter: none !important;
  }

  .site-header.has-backdrop:not(.is-scrolled):not(.is-menu-open) .site-header__nav-link {
    color: var(--site-header-ink) !important;
    text-shadow: none !important;
  }
}
