:root {
  --blue: #245fe8;
  --blue-strong: #1249d8;
  --cyan: #1db9ff;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4eaf5;
  --soft: #f4f8ff;
  --white: #ffffff;
  --footer: #061b35;
  --shadow: 0 18px 45px rgba(31, 72, 150, 0.12);
  --section-max: 1262px;
  --section-wide-max: 1600px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 61px;
  border-bottom: 1px solid rgba(214, 224, 242, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: min(var(--section-max), calc(100% - 178px));
  min-height: 61px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 80px;
  height: 18px;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 3.2vw, 46px);
  flex: 0 1 auto;
  margin-left: 150px;
  color: #000000;
  font-size: 14px;
  font-weight: 400;
}

.site-nav a,
.site-nav .nav-trigger {
  position: relative;
  padding: 20px;
  transition: color 180ms ease;
}

.site-nav .nav-trigger {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav a::after,
.site-nav .nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .nav-trigger:hover::after,
.site-nav .nav-trigger:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .nav-trigger:hover,
.site-nav .nav-trigger:focus-visible {
  color: #114ce3;
}

.site-nav a.is-active,
.site-nav .nav-trigger.is-active {
  color: #114ce3;
}

.site-nav a.is-active::after,
.site-nav .nav-trigger.is-active::after {
  transform: scaleX(1);
}

.nav-arrow {
  display: none;
}

.mega-menu {
  position: fixed;
  top: 61px;
  right: 0;
  left: 0;
  z-index: 19;
  display: block;
  width: 100vw;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(231, 234, 248, 0.9);
  border-bottom: 1px solid rgba(231, 234, 248, 0.9);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(14, 46, 101, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  gap: 24px;
  width: max-content;
  max-width: calc(100vw - 96px);
  margin: 0 0 0 max(89px, calc((100vw - var(--section-max)) / 2));
}

.site-nav .mega-menu a {
  padding: 0 20px;
}

.mega-card {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  overflow: hidden;
  border-radius: 12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #0f2d5c;
}

.mega-card::after {
  display: none;
}

.mega-card strong {
  color: #101828;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.mega-card span {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.mega-card-1 {
  background-image: url("img/nav-bg1.png");
}

.mega-card-2 {
  background-image: url("img/nav-bg2.png");
}

.mega-card-3 {
  background-image: url("img/nav-bg3.png");
}

.mega-card-4 {
  background-image: url("img/nav-bg4.png");
}

.solution-mega {
  padding: 22px 0 24px;
  box-shadow: 0 14px 28px rgba(14, 46, 101, 0.06);
}

.solution-mega .mega-menu-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 30px;
}

.solution-menu-item {
  position: relative;
  display: grid;
  width: max-content;
  min-width: 132px;
  min-height: 68px;
  grid-template-columns: 20px auto;
  grid-template-rows: auto auto;
  column-gap: 7px;
  row-gap: 10px;
  align-content: center;
  padding: 11px 17px 10px 20px;
  padding-right: 40px;
  color: #000000;
  border-radius: 8px;
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav .solution-mega .solution-menu-item {
  padding: 11px 40px 10px 20px;
}

.solution-menu-item:hover,
.solution-menu-item:focus-visible {
  transform: translateY(-2px);
}

.solution-menu-item::after {
  display: none;
}

.solution-menu-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.solution-menu-item strong {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

.solution-menu-item span {
  grid-column: 1 / -1;
  color: #999999;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.solution-menu-item:hover strong,
.solution-menu-item:focus-visible strong,
.solution-menu-item.is-featured:hover strong,
.solution-menu-item.is-featured:focus-visible strong {
  color: #114ce3;
}

.solution-menu-item:hover,
.solution-menu-item:focus-visible,
.solution-menu-item.is-featured:hover,
.solution-menu-item.is-featured:focus-visible {
  background: #f5f7fc;
}

.solution-menu-item.is-current,
.solution-menu-item.is-featured {
  width: max-content;
}

.phone,
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.phone {
  margin-left: auto;
  font-size: 16px;
  cursor: default;
}

.phone-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.phone-dot img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-toggle,
.nav-button {
  display: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.24;
  font-weight: 900;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.solution-section-heading {
  width: min(1000px, 100%);
  margin: 0 auto;
  text-align: center;
}

.solution-section-heading h2 {
  margin: 0;
  color: #333333;
  font-size: 32px;
  line-height: 1.35;
}

.solution-section-heading p {
  margin: 15px auto 0;
  color: #333333;
  font-size: 18px;
  line-height: 1.75;
}

.site-footer {
  background:
    linear-gradient(90deg, rgba(6, 27, 53, 0.96), rgba(8, 35, 69, 0.94)),
    url("img/footer-bg.png") center / cover no-repeat;
  color: #dbe7ff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.55fr auto;
  gap: 42px;
  width: min(var(--section-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.footer-brand p,
.service-title {
  margin-top: 16px;
  color: #b8c8df;
  font-size: 14px;
}

.footer-brand .service-title {
  margin-top: 44px;
  color: var(--white);
  font-weight: 800;
}

.site-footer .brand-logo {
  width: 80px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.footer-phone {
  margin-top: 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-links,
.footer-contact,
.qr {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links a {
  transition: color 180ms ease, opacity 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #114ce3;
}

.footer-contact {
  font-style: normal;
}

.footer-contact-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item img {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  object-fit: contain;
  opacity: 0.5;
}

.qr {
  align-items: center;
}

.qr img {
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: var(--white);
}

.qr span {
  color: #dbe7ff;
  font-size: 13px;
}

.copyright {
  width: min(var(--section-max), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #9fb0c7;
  font-size: 13px;
  line-height: 1.7;
  padding: 17px 0 24px;
  text-align: center;
}

.copyright a {
  color: inherit;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.beian-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (min-width: 1600px) {
  .header-inner {
    width: min(var(--section-wide-max), calc(100% - 128px));
  }

  .mega-menu-inner {
    width: max-content;
    max-width: calc(100vw - 96px);
    margin-left: max(64px, calc((100vw - var(--section-wide-max)) / 2));
  }

  .footer-inner,
  .copyright {
    width: min(var(--section-wide-max), calc(100% - 128px));
  }
}

@media (max-width: 1120px) {
  .header-inner {
    width: calc(100% - 48px);
  }

  .site-nav {
    gap: 22px;
    margin-left: 48px;
  }

  .mega-menu-inner {
    width: max-content;
    max-width: calc(100vw - 48px);
    gap: 16px;
    margin-left: 24px;
  }

  .mega-card {
    min-height: 104px;
    padding-inline: 18px;
  }

  .solution-mega .mega-menu-inner {
    gap: 30px;
  }

  .solution-menu-item {
    width: max-content;
    min-width: 112px;
  }

  .solution-menu-item.is-current,
  .solution-menu-item.is-featured {
    width: max-content;
  }

  .phone {
    display: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .nav-button {
    display: grid;
    gap: 5px;
    width: 42px;
    margin-left: auto;
    padding: 9px;
    cursor: pointer;
  }

  .nav-button span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #203452;
    transition: transform 220ms ease, opacity 180ms ease, background-color 180ms ease;
    transform-origin: center;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    margin-left: 0;
    overflow: hidden auto;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      max-height 260ms ease,
      opacity 220ms ease,
      transform 260ms ease,
      visibility 0s linear 260ms;
  }

  .site-nav > a,
  .site-nav > .nav-item {
    width: 100%;
    min-width: 100vw;
  }

  .site-nav a,
  .site-nav .nav-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 16px 24px;
    border-top: 0;
  }

  .nav-item {
    display: block;
  }

  .nav-item.has-mega {
    display: block;
    border-top: 0;
  }

  .nav-item.has-mega > .nav-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    border-top: 0;
    padding: 16px 24px;
  }

  .nav-item.has-mega > .nav-trigger .nav-arrow {
    display: block;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-left: auto;
    object-fit: contain;
    transition: filter 180ms ease, transform 180ms ease;
  }

  .nav-item.has-mega.is-open > .nav-trigger .nav-arrow {
    filter: brightness(0) saturate(100%) invert(25%) sepia(96%) saturate(3148%) hue-rotate(222deg) brightness(91%) contrast(96%);
  }

  .nav-item.has-mega.is-open > .nav-trigger {
    color: #114ce3;
    background: transparent;
  }

  .nav-item.has-mega.is-open > .nav-trigger .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-item.has-mega .mega-menu {
    position: static;
    z-index: auto;
    display: block;
    width: auto;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    visibility: hidden;
    transition:
      max-height 240ms ease,
      opacity 200ms ease,
      transform 240ms ease,
      visibility 0s linear 240ms;
  }

  .nav-item.has-mega.is-open .mega-menu {
    max-height: 520px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-item.has-mega .mega-menu-inner,
  .nav-item.has-mega .solution-mega .mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding-right: 0;
  }

  .site-nav .mega-menu a,
  .mega-card,
  .solution-menu-item,
  .solution-menu-item.is-current,
  .solution-menu-item.is-featured {
    display: flex;
    min-width: 0;
    min-height: 0;
    width: 100vw;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    padding: 12px 24px;
    color: #333333;
    text-align: left;
    transform: none;
  }

  .site-nav .solution-mega .solution-menu-item {
    padding: 12px 24px;
  }

  .mega-card strong,
  .mega-card span,
  .solution-menu-item strong,
  .solution-menu-item span {
    width: 100%;
    text-align: left;
  }

  .site-nav .mega-menu a + a {
    border-top: 0;
  }

  .mega-card strong,
  .solution-menu-item strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
  }

  .mega-card span,
  .solution-menu-item span,
  .solution-menu-item img {
    display: none;
  }

  .site-nav a::after,
  .site-nav .nav-trigger::after {
    display: none;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: calc(100vh - 64px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 32px);
  }

  .brand {
    max-width: 92px;
  }

  .brand-logo {
    width: 92px;
    height: 21px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .footer-brand,
  .footer-contact,
  .qr {
    grid-column: 1 / -1;
  }

  .qr {
    align-items: center;
    justify-self: center;
    text-align: center;
  }

  .footer-inner,
  .copyright {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
