html body {
  padding-top: 78px !important;
}

html body .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 78px !important;
  z-index: 9999 !important;
  display: block !important;
  background: #fff !important;
  border-bottom: 1px solid #dfe7f1 !important;
  box-shadow: 0 8px 24px rgba(6, 26, 54, .06) !important;
}

html body .header-inner {
  width: min(1180px, calc(100% - 48px)) !important;
  height: 78px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
}

html body .brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 300px !important;
  margin: 0 !important;
  color: #061a36 !important;
  font-size: 21px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body .brand-mark {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  background: #061a36 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

html body .site-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 26px !important;
  height: 78px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .site-nav .nav-link {
  height: 78px !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 3px solid transparent !important;
  color: #3f4a5c !important;
  font-size: 14px !important;
  line-height: 78px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

html body[data-page="home"] .nav-link[data-nav="home"],
html body[data-page="about"] .nav-link[data-nav="about"],
html body[data-page="news"] .nav-link[data-nav="news"],
html body[data-page="products"] .nav-link[data-nav="products"],
html body[data-page="success"] .nav-link[data-nav="success"],
html body[data-page="contact"] .nav-link[data-nav="contact"],
html body .site-nav .nav-link:hover {
  color: #0057d8 !important;
  border-bottom-color: #0057d8 !important;
}

html body .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: 78px !important;
  white-space: nowrap !important;
}

html body .hotline {
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

html body .btn {
  min-height: 42px !important;
  padding: 0 20px !important;
}

html body .menu-toggle {
  display: none !important;
}

@media (max-width: 1100px) {
  html body .brand {
    min-width: 250px !important;
    font-size: 18px !important;
  }

  html body .site-nav {
    gap: 16px !important;
  }

  html body .hotline {
    display: none !important;
  }
}

@media (max-width: 900px) {
  html body {
    padding-top: 66px !important;
    overflow-x: hidden !important;
  }

  html body .site-header,
  html body .header-inner {
    height: 66px !important;
  }

  html body .header-inner {
    width: min(100% - 24px, 720px) !important;
    gap: 10px !important;
  }

  html body .brand {
    min-width: 0 !important;
    max-width: calc(100vw - 92px) !important;
    font-size: 16px !important;
    overflow: hidden !important;
  }

  html body .brand-mark {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }

  html body .brand-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .site-nav,
  html body .header-actions {
    display: none !important;
  }

  html body .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 50px !important;
    min-height: 38px !important;
    border: 1px solid #dfe7f1 !important;
    background: #fff !important;
    color: #061a36 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  html body .site-header.open .site-nav {
    position: fixed !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    display: grid !important;
    height: auto !important;
    gap: 0 !important;
    padding: 8px 18px 14px !important;
    background: #fff !important;
    border-top: 1px solid #dfe7f1 !important;
    box-shadow: 0 18px 30px rgba(6, 26, 54, .12) !important;
  }

  html body .site-header.open .site-nav .nav-link {
    height: auto !important;
    min-height: 46px !important;
    line-height: 1.4 !important;
    padding: 12px 4px !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid #eef3f8 !important;
    font-size: 15px !important;
  }
}

/* v8: stronger phone navigation override */
@media (max-width: 760px) {
  html,
  html body {
    overflow-x: hidden !important;
  }

  html body {
    padding-top: 60px !important;
  }

  html body .site-header,
  html body .header-inner {
    height: 60px !important;
    min-height: 60px !important;
  }

  html body .site-header {
    box-shadow: 0 10px 28px rgba(6, 26, 54, 0.1) !important;
  }

  html body .header-inner {
    width: calc(100% - 28px) !important;
    gap: 10px !important;
  }

  html body .brand {
    min-width: 0 !important;
    max-width: calc(100% - 62px) !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  html body .brand-mark {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    font-size: 13px !important;
  }

  html body .brand-text {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  html body .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    min-height: 38px !important;
    height: 38px !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 1px solid #dbe5f1 !important;
    background: #ffffff !important;
    color: #061a36 !important;
    font-size: 0 !important;
    border-radius: 0 !important;
  }

  html body .menu-toggle::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #061a36;
    box-shadow: 0 7px 0 #061a36, 0 -7px 0 #061a36;
  }

  html body .site-nav,
  html body .header-actions {
    display: none !important;
  }

  html body .site-header.open .site-nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    display: grid !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 8px 20px 14px !important;
    border-top: 1px solid #e5ebf3 !important;
    background: #ffffff !important;
    box-shadow: 0 20px 42px rgba(6, 26, 54, 0.16) !important;
  }

  html body .site-header.open .site-nav .nav-link {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
    padding: 0 4px !important;
    border-bottom: 1px solid #edf2f7 !important;
    color: #061a36 !important;
    font-size: 15px !important;
  }

  html body .site-header.open .site-nav .nav-link::after {
    display: none !important;
  }

  html body .site-header.open .header-actions {
    position: fixed !important;
    top: 338px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 9998 !important;
    display: grid !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 0 18px !important;
    background: #ffffff !important;
  }

  html body .site-header.open .hotline {
    display: block !important;
    text-align: left !important;
    color: #5c6b7d !important;
  }

  html body .site-header.open .header-actions .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
}

/* v21: compact dark mobile drawer menu */
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 760px) {
  html body.mobile-menu-open {
    overflow: hidden !important;
  }

  html body .site-header.open .site-nav,
  html body .site-header.open .header-actions {
    display: none !important;
  }

  html body .menu-toggle {
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease !important;
  }

  html body.mobile-menu-open .menu-toggle {
    border-color: #0066ff !important;
    background: #e6f0ff !important;
    transform: scale(.98);
  }

  html body .mobile-menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    pointer-events: none;
    background: rgba(3, 10, 24, 0);
    transition: background-color .3s ease;
  }

  html body.mobile-menu-open .mobile-menu-drawer {
    pointer-events: auto;
    background: rgba(3, 10, 24, .54);
  }

  html body .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 0 18px;
    background: #0a192f;
    color: #ffffff;
    box-shadow: -18px 0 42px rgba(0, 0, 0, .32);
    transform: translateX(100%);
    transition: transform .3s ease;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  }

  html body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
  }

  html body .mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #1e293b;
    border-radius: 4px;
    background: rgba(18, 31, 61, .82);
    color: #cbd5e1;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  html body .mobile-menu-section {
    padding: 14px 20px;
    border-bottom: 1px solid #1e293b;
  }

  html body .mobile-menu-brand {
    padding-top: 16px;
    padding-bottom: 14px;
    padding-right: 56px;
  }

  html body .mobile-menu-brand-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px !important;
    color: #ffffff;
  }

  html body .mobile-menu-brand-row .brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    font-size: 17px !important;
    background: #07162b !important;
    color: #ffffff !important;
  }

  html body .mobile-menu-brand-row .brand-text {
    display: block !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  html body .mobile-menu-brand p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
  }

  html body .mobile-menu-service {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  html body .mobile-menu-service-label {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.4;
  }

  html body .mobile-menu-phone {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #0066ff;
  }

  html body .mobile-menu-phone span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #0066ff;
    font-size: 18px;
  }

  html body .mobile-menu-phone strong {
    color: #0066ff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
  }

  html body .mobile-menu-section h3 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
  }

  html body .mobile-menu-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 2px;
    height: 16px;
    background: #0066ff;
  }

  html body .mobile-menu-list {
    display: grid;
    gap: 6px;
  }

  html body .mobile-menu-link {
    display: flex !important;
    align-items: center;
    min-height: 34px;
    margin: 0 !important;
    padding: 5px 8px;
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.4;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
  }

  html body .mobile-menu-link:hover,
  html body .mobile-menu-link:focus-visible,
  html body .mobile-menu-link.active,
  html body[data-page="home"] .mobile-menu-link[data-nav="home"],
  html body[data-page="about"] .mobile-menu-link[data-nav="about"],
  html body[data-page="products"] .mobile-menu-link[data-nav="products"],
  html body[data-page="news"] .mobile-menu-link[data-nav="news"],
  html body[data-page="success"] .mobile-menu-link[data-nav="success"],
  html body[data-page="contact"] .mobile-menu-link[data-nav="contact"] {
    color: #0066ff;
    background: rgba(0, 102, 255, .1);
  }

  html body .mobile-menu-link:active {
    transform: scale(.98);
  }

  html body .mobile-menu-contact {
    padding-bottom: 18px;
    border-bottom: 0;
  }

  html body .mobile-menu-contact p {
    margin: 0 0 7px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
  }

  html body .mobile-menu-contact a {
    display: inline !important;
    margin: 0 !important;
    color: #cbd5e1;
  }

  html body .mobile-menu-contact a:hover,
  html body .mobile-menu-contact a:focus-visible {
    color: #0066ff;
  }
}

/* v70: final header logo render guard. This file loads after style.css, so
   keep the real header logo path free from older brand constraints here. */
html body .site-header {
  min-height: 88px !important;
  height: auto !important;
  overflow: visible !important;
}

html body .header-inner {
  width: min(1400px, calc(100% - 56px)) !important;
  min-height: 88px !important;
  height: auto !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  overflow: visible !important;
}

html body .site-header .brand {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 42px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

html body .site-header .brand-logo,
html body .site-header .brand img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: 56px !important;
  max-width: 320px !important;
  object-fit: contain !important;
  object-position: left center !important;
  aspect-ratio: auto !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  transform: none !important;
}

html body .site-nav {
  margin-left: auto !important;
}

html body .mobile-menu-brand-row {
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
}

html body .mobile-menu-brand-row .brand-logo,
html body .mobile-menu-brand-row img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: 42px !important;
  max-width: 240px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

@media (max-width: 900px) {
  html body {
    padding-top: 72px !important;
  }

  html body .site-header,
  html body .header-inner {
    min-height: 72px !important;
    height: auto !important;
  }

  html body .header-inner {
    width: min(100% - 24px, 720px) !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  html body .site-header .brand {
    min-width: max-content !important;
    max-width: none !important;
    margin-right: 12px !important;
    overflow: visible !important;
  }

  html body .site-header .brand-logo,
  html body .site-header .brand img {
    max-height: 42px !important;
    max-width: 240px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  html body .menu-toggle {
    margin-left: auto !important;
  }
}

/* v74: bring the header group inward, enlarge the logo, and strengthen nav text. */
html body .header-inner {
  width: min(1260px, calc(100% - 96px)) !important;
  gap: 24px !important;
}

html body .site-header .brand {
  margin: 0 30px 0 0 !important;
}

html body .site-header .brand-logo,
html body .site-header .brand img {
  width: 270px !important;
  max-width: 270px !important;
  max-height: 95px !important;
}

html body .site-nav {
  gap: 26px !important;
}

html body .site-nav .nav-link {
  font-size: 16px !important;
  font-weight: 700 !important;
}

html body .hotline {
  font-size: 16px !important;
  font-weight: 700 !important;
}

html body .header-actions .btn {
  font-size: 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 1200px) {
  html body .header-inner {
    width: min(1180px, calc(100% - 56px)) !important;
  }

  html body .site-header .brand-logo,
  html body .site-header .brand img {
    width: 235px !important;
    max-width: 235px !important;
    max-height: 82px !important;
  }

  html body .site-nav {
    gap: 20px !important;
  }

  html body .site-nav .nav-link,
  html body .hotline,
  html body .header-actions .btn {
    font-size: 15px !important;
  }
}

@media (max-width: 900px) {
  html body .header-inner {
    width: min(100% - 24px, 720px) !important;
  }

  html body .site-header .brand-logo,
  html body .site-header .brand img {
    width: 168px !important;
    max-width: 168px !important;
    max-height: 59px !important;
  }
}

/* v77: use a higher-resolution header logo source and display it slightly smaller. */
html body .site-header .brand {
  margin-right: 28px !important;
}

html body .site-header .brand-logo,
html body .site-header .brand img {
  width: 245px !important;
  max-width: 245px !important;
  max-height: 86px !important;
  image-rendering: auto !important;
}

@media (max-width: 1200px) {
  html body .site-header .brand-logo,
  html body .site-header .brand img {
    width: 218px !important;
    max-width: 218px !important;
    max-height: 76px !important;
  }
}

@media (max-width: 900px) {
  html body .site-header .brand-logo,
  html body .site-header .brand img {
    width: 154px !important;
    max-width: 154px !important;
    max-height: 54px !important;
  }
}

/* v78: tighten the visual gap between the header logo and navigation. */
html body .header-inner {
  gap: 0 !important;
}

html body .site-header .brand {
  margin-right: 36px !important;
}

html body .site-nav {
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 24px !important;
  flex: 0 0 auto !important;
}

html body .header-actions {
  margin-left: auto !important;
}

@media (max-width: 1200px) {
  html body .site-header .brand {
    margin-right: 28px !important;
  }

  html body .site-nav {
    gap: 18px !important;
  }
}

@media (max-width: 900px) {
  html body .site-header .brand {
    margin-right: 12px !important;
  }
}

/* v79: center the logo and navigation as one visual group. */
@media (min-width: 901px) {
  html body .header-inner {
    position: relative !important;
    width: min(1560px, calc(100% - 72px)) !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  html body .site-header .brand {
    margin-right: 34px !important;
  }

  html body .site-nav {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  html body .header-actions {
    position: absolute !important;
    right: 0 !important;
    margin-left: 0 !important;
  }
}

/* v79.1: keep the logo and navigation visually centered without overlap. */
@media (min-width: 901px) {
  html body .site-header .brand {
    transform: none !important;
  }

  html body .site-nav {
    transform: none !important;
  }

  html body .header-actions {
    gap: 16px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1500px) and (min-width: 1201px) {
  html body .site-header .brand {
    transform: none !important;
  }

  html body .site-nav {
    gap: 20px !important;
    transform: none !important;
  }

  html body .site-nav .nav-link,
  html body .hotline,
  html body .header-actions .btn {
    font-size: 15px !important;
  }

  html body .header-actions .btn {
    min-width: 96px !important;
    padding-inline: 18px !important;
  }
}

@media (max-width: 1800px) and (min-width: 901px) {
  html body .hotline {
    display: none !important;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  html body .site-header .brand,
  html body .site-nav {
    transform: translateX(0) !important;
  }
}
