:root {
  --mcx-shell-night: #030815;
  --mcx-shell-frost: #effbff;
  --mcx-shell-muted: #9aafc5;
  --mcx-shell-ice: #82d0ff;
  --mcx-shell-periwinkle: #a7b7ff;
  --mcx-shell-line: rgba(130, 208, 255, .11);
  --mcx-shell-font: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) #masthead,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) header.site-header,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) .elementor-location-header,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) .elementor-location-footer,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) .elementor-location-footer footer,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) #colophon,
body.mcx-global-shell:not(.mcx-home-page):not(.mcx-agent-page) footer.site-footer {
  display: none !important;
}

body.mcx-global-shell .mcx-site-header,
body.mcx-global-shell .mcx-site-header *,
body.mcx-global-shell .mcx-site-footer,
body.mcx-global-shell .mcx-site-footer * {
  box-sizing: border-box;
  font-family: var(--mcx-shell-font);
}

body.mcx-global-shell .mcx-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 clamp(24px, 4.3vw, 82px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--mcx-shell-line);
  background: rgba(3, 8, 21, .92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.mcx-home-page .mcx-site-header {
  position: absolute;
}

body.mcx-global-shell .mcx-site-brand {
  justify-self: start;
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--mcx-shell-frost);
  -webkit-text-fill-color: var(--mcx-shell-frost);
  font-size: 21px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

body.mcx-global-shell .mcx-site-brand .brand-icon,
body.mcx-global-shell .mcx-site-footer .brand-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #0868f4;
  box-shadow: 0 8px 26px rgba(8, 104, 244, .24);
}

body.mcx-global-shell .mcx-site-brand .brand-icon img,
body.mcx-global-shell .mcx-site-footer .brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.28);
}

body.mcx-global-shell .mcx-site-nav {
  justify-self: center;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(23px, 2.6vw, 42px);
  margin: 0;
  padding: 0;
}

body.mcx-global-shell .mcx-site-nav a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: var(--mcx-shell-muted);
  -webkit-text-fill-color: var(--mcx-shell-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color .2s ease;
}

body.mcx-global-shell .mcx-site-nav a:hover,
body.mcx-global-shell .mcx-site-nav a.active {
  color: var(--mcx-shell-frost);
  -webkit-text-fill-color: var(--mcx-shell-frost);
}

body.mcx-global-shell .mcx-site-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 26px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--mcx-shell-ice), var(--mcx-shell-periwinkle));
  box-shadow: 0 0 16px rgba(130, 208, 255, .38);
}

body.mcx-global-shell .mcx-site-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #8fa7bf;
  -webkit-text-fill-color: #8fa7bf;
  font-size: 12px;
  line-height: 1;
}

body.mcx-global-shell .mcx-language-switch {
  min-width: 34px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 5px;
  border-radius: 8px;
  color: #9db2c8;
  -webkit-text-fill-color: #9db2c8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

body.mcx-global-shell .mcx-language-switch:hover,
body.mcx-global-shell .mcx-language-switch:focus-visible {
  background: rgba(130, 208, 255, .08);
  color: #effbff;
  -webkit-text-fill-color: #effbff;
  outline: none;
}

body.mcx-global-shell .mcx-language-switch:focus-visible {
  box-shadow: 0 0 0 2px rgba(130, 208, 255, .45);
}

.mcx-gtranslate-runtime {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/*
 * GTranslate wraps translated copy in legacy <font> elements. Keep those
 * wrappers typographically transparent so page-specific title treatments do
 * not fall back to browser defaults while the translated DOM is being drawn.
 */
body.mcx-global-shell :is(h1, h2, h3, h4, h5, h6) font {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  text-decoration: inherit !important;
  text-transform: inherit !important;
}

/* English headings need a tighter scale because translated copy is longer. */
html[data-mcx-language="en"] body.mcx-home-page .hero h1 {
  max-width: 700px !important;
  font-size: clamp(48px, 4.35vw, 64px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
}

html[data-mcx-language="en"] body.mcx-home-page :is(.section-heading h2, .agent-copy h2, .vendor-heading h2) {
  font-size: clamp(38px, 3.45vw, 52px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.04em !important;
}

html[data-mcx-language="en"] body.mcx-home-page .closing-section h2 {
  font-size: clamp(48px, 5vw, 72px) !important;
  line-height: 1.04 !important;
}

html[data-mcx-language="en"] body.mcx-categories-page .elementor-26 .elementor-element.elementor-element-f1e412b h2,
html[data-mcx-language="en"] body.mcx-products-page .michen-product-page-title,
html[data-mcx-language="en"] body.mcx-vendor-page .elementor-1023 .vendor-join-title,
html[data-mcx-language="en"] body.mcx-about-page .michen-root .hero h1 {
  font-size: clamp(38px, 3vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

body.mcx-global-shell .mcx-site-login {
  width: auto;
  min-width: 72px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 19px;
  border: 1px solid rgba(130, 197, 251, .32);
  border-radius: 999px;
  background: rgba(130, 208, 255, .045);
  color: #cfeeff;
  -webkit-text-fill-color: #cfeeff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, border-color .18s ease;
}

body.mcx-global-shell .mcx-site-login:hover {
  border-color: rgba(167, 183, 255, .62);
  background: rgba(130, 208, 255, .095);
  color: #cfeeff;
  -webkit-text-fill-color: #cfeeff;
}

body.mcx-global-shell .mcx-site-login:active {
  transform: scale(.97);
}

body.mcx-global-shell .mcx-site-menu-button {
  justify-self: end;
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(130, 208, 255, .2);
  border-radius: 10px;
  background: rgba(10, 24, 43, .7);
  cursor: pointer;
}

body.mcx-global-shell .mcx-site-menu-button span {
  width: 22px;
  height: 1px;
  display: block;
  margin: 3px auto;
  background: #dff4ff;
}

body.mcx-global-shell .mcx-site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr 1.5fr;
  align-items: start;
  gap: 80px;
  margin: 0;
  padding: 76px clamp(28px, 7vw, 112px) 28px;
  border: 0;
  border-top: 1px solid var(--mcx-shell-line);
  background: #020610;
  color: var(--mcx-shell-frost);
  -webkit-text-fill-color: currentColor;
}

body.mcx-global-shell .mcx-site-footer .footer-brand-lockup {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5f8ff;
  -webkit-text-fill-color: #f5f8ff;
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}

body.mcx-global-shell .mcx-site-footer .footer-tagline {
  margin: 10px 0 0 50px;
  color: #7890a9;
  -webkit-text-fill-color: #7890a9;
  font-size: 14px;
  line-height: 1.6;
}

body.mcx-global-shell .mcx-site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 40px;
}

body.mcx-global-shell .mcx-site-footer .footer-links div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.mcx-global-shell .mcx-site-footer .footer-links b {
  margin: 0 0 8px;
  color: #e5f3fb;
  -webkit-text-fill-color: #e5f3fb;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

body.mcx-global-shell .mcx-site-footer .footer-links a {
  color: #7890a9;
  -webkit-text-fill-color: #7890a9;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

body.mcx-global-shell .mcx-site-footer .footer-links a:hover {
  color: #9edcff;
  -webkit-text-fill-color: #9edcff;
}

body.mcx-global-shell .mcx-site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 24px;
  border-top: 1px solid var(--mcx-shell-line);
  color: #536b84;
  -webkit-text-fill-color: #536b84;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .15em;
}

body.mcx-global-shell .mcx-site-footer .footer-bottom span:nth-child(2) { text-align: center; }
body.mcx-global-shell .mcx-site-footer .footer-bottom span:last-child { text-align: right; }

body.mcx-agent-page[data-view="guest"] {
  overflow-y: auto;
}

body.mcx-agent-page[data-view="guest"] .app {
  min-height: 100dvh;
}

body.mcx-agent-page[data-view="guest"] .guest {
  min-height: calc(100dvh - 80px);
}

body.mcx-agent-page[data-view="guest"] .capability-tag,
body.mcx-agent-page[data-view="guest"] #guestSend,
body.mcx-agent-page[data-view="guest"] #guestSend * {
  font-family: var(--mcx-shell-font);
}

@media (max-width: 980px) {
  body.mcx-global-shell .mcx-site-header {
    display: flex;
    justify-content: space-between;
  }

  body.mcx-global-shell .mcx-site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    width: calc(100% - 28px);
    max-width: none;
    box-sizing: border-box;
    top: 68px;
    height: auto;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(130, 208, 255, .22);
    border-radius: 12px;
    background: rgba(5, 13, 28, .97);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }

  body.mcx-global-shell .mcx-site-nav.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  body.mcx-global-shell .mcx-site-nav a {
    height: 44px;
    justify-content: flex-start;
    padding: 0 8px;
  }

  body.mcx-global-shell .mcx-site-nav a.active::after { display: none; }
  body.mcx-global-shell .mcx-site-actions { margin-left: auto; margin-right: 12px; }
  body.mcx-global-shell .mcx-site-actions .lang { display: inline-flex; }
  body.mcx-global-shell .mcx-site-menu-button { display: grid; }
}

@media (max-width: 760px) {
  body.mcx-global-shell .mcx-site-header {
    height: 68px;
    padding: 0 16px;
  }

  body.mcx-global-shell .mcx-site-brand { font-size: 18px; }
  body.mcx-global-shell .mcx-site-brand .brand-icon { flex-basis: 34px; width: 34px; height: 34px; }
  body.mcx-global-shell .mcx-site-actions { display: flex; margin-left: auto; margin-right: 8px; }
  body.mcx-global-shell .mcx-site-actions .mcx-site-login { display: none; }
  body.mcx-global-shell .mcx-language-switch { width: 36px; min-width: 36px; height: 36px; padding: 0; }
  body.mcx-global-shell .mcx-site-nav { top: 60px; }
  body.mcx-global-shell .mcx-site-footer { grid-template-columns: 1fr; gap: 48px; padding: 62px 22px 24px; }
  body.mcx-global-shell .mcx-site-footer .footer-links { gap: 20px; }
  body.mcx-global-shell .mcx-site-footer .footer-bottom { grid-template-columns: 1fr; gap: 10px; }
  body.mcx-global-shell .mcx-site-footer .footer-bottom span:nth-child(2),
  body.mcx-global-shell .mcx-site-footer .footer-bottom span:last-child { text-align: left; }
  body.mcx-agent-page[data-view="guest"] .guest { min-height: calc(100dvh - 68px); }
}

@media (prefers-reduced-transparency: reduce) {
  body.mcx-global-shell .mcx-site-header,
  body.mcx-global-shell .mcx-site-nav { background: #061126; backdrop-filter: none; }
}

/* Original DingTalk JinBuTi asset and the site-wide heading layer. Translation
 * wrappers inherit this family, so GTranslate cannot replace the Chinese title
 * styling while translating text nodes. */
@font-face {
  font-family: "MCX DingTalk JinBuTi";
  src: url("fonts/dingtalk-jinbuti/DingTalk-JinBuTi.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --mcx-heading-font: "MCX DingTalk JinBuTi", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

@layer mcx-heading-typography {
  body.mcx-global-shell.mcx-auth-page .wpum-template.wpum-form::before,
  body.mcx-global-shell.mcx-compare-page .mc-ai-compare-page::before,
  body.mcx-global-shell.mcx-profile-page .entry-title::after {
    font-family: var(--mcx-heading-font) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-synthesis: none !important;
  }

  body.mcx-global-shell :is(
    h1, h2, h3, h4, h5, h6,
    .elementor-heading-title, .e-heading-base,
    .sai-brand-title, .sai-contact-title,
    .sai-panel-title > span:first-child, .sai-quick-title > span:first-child,
    .mcx-model-copy > strong, .mcx-inspector-head > strong,
    .michen-toolify-card-title, .michen-vendor-card-title,
    .mc-ai-section-title, .mc-ai-sidebar-title, .mc-ai-related-title,
    .mc-ai-compare-section-title,
    .mcx-site-brand > span:last-child, .footer-brand-lockup > span:last-child,
    .mcx-site-footer .footer-links > div > b, .loader-wordmark
  ) {
    font-family: var(--mcx-heading-font) !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-synthesis: none !important;
  }

  body.mcx-global-shell :is(
    h1, h2, h3, h4, h5, h6, .elementor-heading-title, .e-heading-base,
    .michen-toolify-card-title, .michen-vendor-card-title,
    .mc-ai-section-title, .mc-ai-sidebar-title, .mc-ai-related-title,
    .mc-ai-compare-section-title
  ) :is(a, em, strong, span):not([aria-hidden="true"]):not([class*="icon"]) {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-style: normal !important;
    font-synthesis: none !important;
  }
}
