:root {
  --global-nav-red: #e51b23;
  --global-nav-ink: #111923;
  --global-nav-muted: #8b96a3;
}

body.has-ai-feedback-dialog { overflow: hidden; }
.global-ai-feedback button:disabled { cursor: wait; opacity: .58; }
.global-ai-feedback > [role="status"] { align-self: center; margin-left: 4px; color: #478066; font-size: 12px; line-height: 1.4; }
.global-ai-feedback > [role="status"].is-error { color: #c0242d; }
.global-ai-feedback-error { min-height: 18px; display: block; margin-top: 7px; color: #c0242d; font-size: 13px; line-height: 1.5; }
.global-ai-feedback-dialog-card textarea[aria-invalid="true"] { border-color: #d7343d; box-shadow: 0 0 0 4px rgba(215,52,61,.08); }

.global-site-header {
  position: sticky;
  top: 18px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 398px;
  align-items: center;
  width: min(1720px, calc(100vw - 48px));
  height: 88px;
  margin: 18px auto 0;
  padding: 0 28px 0 34px;
  color: var(--global-nav-ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(244, 249, 252, .68));
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 14px;
  box-shadow:
    0 22px 52px rgba(23, 39, 55, .12),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  /* Keep fixed-position mega menus anchored to the viewport. A backdrop-filter
     on this ancestor would create a containing block and shift the menu right. */
}

.global-site-header::before,
.global-site-header::after {
  content: none;
}

.global-brand {
  display: inline-flex;
  align-items: center;
  width: 210px;
}

.global-brand img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

/* Brand variants: red/black on light surfaces, red/white on dark surfaces. */
.global-brand img { content: url("https://insnexsoftware.oss-cn-shanghai.aliyuncs.com/site-assets/assets/insnex-logo-light.png"); }
html[data-theme="dark"] .global-brand img { content: url("https://insnexsoftware.oss-cn-shanghai.aliyuncs.com/site-assets/assets/insnex-logo-dark.png"); }

.global-desktop-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  position: static;
  margin-left: -64px;
}

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

.global-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 22px 0 15px;
  color: var(--global-nav-ink);
  font-size: 19px;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav-link::before {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa4af;
  transform: translateY(-35%);
  transition: transform .2s ease, border-color .2s ease;
}

.global-nav-link::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  background: var(--global-nav-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.global-nav-link:hover,
.global-nav-link:focus-visible {
  color: var(--global-nav-ink);
}

.global-nav-item:hover > .global-nav-link::before,
.global-nav-item:focus-within > .global-nav-link::before {
  border-top-color: var(--global-nav-red);
  transform: translateY(-35%) rotate(180deg);
}

.global-nav-link:hover::after,
.global-nav-link:focus-visible::after,
.global-nav-link.is-active::after {
  transform: scaleX(1);
}

.global-nav-item.is-direct .global-nav-link { padding-right: 15px; }
.global-nav-item.is-direct .global-nav-link::before { display: none; }

.global-nav-popover {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 20;
  display: grid;
  width: 220px;
  padding: 18px;
  gap: 4px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(21, 34, 48, .09);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(20, 36, 52, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.global-nav-popover > span {
  padding: 4px 10px 10px;
  color: #98a2ae;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .16em;
}

.global-nav-popover a {
  display: grid;
  padding: 10px;
  color: #2b3541;
  border-radius: 9px;
  font-size: 18px;
  line-height: 1.25;
  text-decoration: none;
}

.global-nav-popover a:hover,
.global-nav-popover a:focus-visible {
  color: var(--global-nav-red);
  background: #f5f7f9;
}

.global-nav-popover small {
  margin-top: 4px;
  color: #99a2ad;
  font-size: 14px;
}

.global-nav-popover.global-product-mega {
  position: fixed;
  top: 104px;
  /* Anchor the mega menu to the same centered container as the header. */
  left: 50vw;
  grid-template-columns: 1.06fr 1.08fr 1.3fr 1.06fr 1.08fr;
  width: min(1720px, calc(100vw - 96px));
  max-height: calc(100vh - 132px);
  padding: 22px 24px 24px;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(21, 34, 48, .1);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(17, 31, 45, .2);
  transform: translate(-50%, 12px);
}

/* Software mega menu: centered within the header, with a calmer inset width.
   Preserve MiSans and the brand red; the reference's translucent panel is
   implemented with a readable near-solid fill, not a new visual framework.
   DESIGN_VARIANCE: 3 / MOTION_INTENSITY: 2 / VISUAL_DENSITY: 5. */
.global-site-header > .global-desktop-nav { position: static; }
.global-software-nav { position: static; }
.global-software-nav .global-nav-popover.global-product-mega {
  position: absolute;
  top: calc(100% - 1px);
  right: auto;
  bottom: auto;
  left: 50%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1480px, calc(100% - 64px));
  max-height: calc(100dvh - 136px);
  padding: 30px 24px 32px;
  background: rgba(255,255,255,.985);
  border-radius: 0 0 16px 16px;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.global-software-nav.is-open .global-nav-popover.global-product-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .2s ease, transform .2s ease;
}
.global-software-nav:not(.is-open) .global-nav-popover.global-product-mega {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
}
.global-software-nav:not(.is-open) > .global-nav-link::before {
  border-top-color: #9aa4af;
  transform: translateY(-35%);
}
.global-software-nav.is-open > .global-nav-link::before {
  border-top-color: var(--global-nav-red);
  transform: translateY(-35%) rotate(180deg);
}
.global-software-nav.is-open > .global-nav-link::after { transform: scaleX(1); }
.global-software-nav .global-product-column { padding: 0 28px 2px; }
.global-software-nav .global-product-column:first-child { padding-left: 8px; }
.global-software-nav .global-product-column:last-child { padding-right: 8px; }
.global-software-nav .global-product-mega .global-product-column-title {
  margin: 0;
  width: 100%;
  min-height: 52px;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: 1.35;
}
.global-software-nav .global-product-mega .global-product-links {
  margin-top: 18px;
  gap: 9px;
}
.global-product-title-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.global-software-nav .global-product-mega .global-product-title-copy > b {
  color: #101924;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.global-software-nav .global-product-mega .global-product-title-description {
  display: block;
  margin: 0;
  color: #8b96a3;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.global-software-nav .global-product-mega .global-product-entry {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 24px;
  padding: 0;
  font-size: 17px;
  line-height: 1.5;
}
.global-software-nav .global-product-links b {
  color: #8b96a3;
  font-weight: 650;
}
.global-software-nav .global-product-links small {
  margin: 0;
  color: #8b96a3;
  font-size: 16px;
  font-weight: 400;
}
.global-software-nav a:focus-visible {
  outline: 2px solid var(--global-nav-red);
  outline-offset: 3px;
}
html[data-theme="dark"] .global-software-nav .global-product-mega {
  background: rgba(13,19,27,.99);
}
html[data-theme="dark"] .global-software-nav .global-product-mega .global-product-column-title { border-bottom-color: transparent; }
html[data-theme="dark"] .global-software-nav .global-product-mega .global-product-title-copy > b {
  color: #f3f6f8;
}
html[data-theme="dark"] .global-software-nav .global-product-mega .global-product-title-description,
html[data-theme="dark"] .global-software-nav .global-product-links small {
  color: #8f9ba7;
}
html[data-theme="dark"] .global-software-nav .global-product-links b {
  color: #aeb8c2;
}
@media (min-width:981px) and (max-width:1260px) {
  .global-software-nav .global-product-column { padding-right: 14px; padding-left: 14px; }
  .global-software-nav .global-product-mega .global-product-column-title { font-size: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .global-software-nav .global-nav-popover.global-product-mega,
  .global-software-nav.is-open .global-nav-popover.global-product-mega,
  .global-software-nav .global-nav-link::before,
  .global-software-nav .global-product-title-arrow { transition: none; }
}
@media (max-width:1359px) {
  /* Expanded navigation owns this layer; floating contact controls must not
     cover its links or the language picker near the bottom of the screen. */
  body:has(.global-mobile-nav.is-open) .global-ai-assistant:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
  }
  .global-mobile-nav .global-mobile-products { margin-left: 6px; padding-left: 6px; }
  .global-mobile-product {
    min-width: 0;
    padding: 14px 8px 15px;
    border-top: 1px solid rgba(126, 140, 153, .18);
  }
  .global-mobile-product:first-child { border-top: 0; }
  .global-mobile-product .global-product-column-title {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 0;
    color: #17212b;
    border-bottom: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
  }
  .global-mobile-product .global-product-column-title:hover,
  .global-mobile-product .global-product-column-title:focus-visible {
    background: transparent;
  }
  .global-mobile-product .global-product-title-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }
  .global-mobile-product .global-product-title-copy {
    gap: 2px;
    padding-top: 1px;
  }
  .global-mobile-product .global-product-title-copy > b {
    color: #17212b;
    font-size: 18px;
    font-weight: 800;
  }
  .global-mobile-product .global-product-title-description {
    display: block;
    margin: 0;
    color: #8b96a3;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }
  .global-mobile-product .global-product-title-arrow {
    margin-top: 8px;
  }
  .global-mobile-product .global-product-links { margin: 12px 0 0 44px; gap: 6px; }
  .global-mobile-nav .global-product-entry {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-height: 24px;
    padding: 0;
    color: #667381;
    line-height: 1.5;
  }
  .global-mobile-product .global-product-links small { font-size: 15px; font-weight: 400; }
  html[data-theme="dark"] .global-mobile-product .global-product-column-title {
    color: #f3f6f8;
    border-bottom-color: transparent;
  }
  html[data-theme="dark"] .global-mobile-product .global-product-title-copy > b { color: #f3f6f8; }
  html[data-theme="dark"] .global-mobile-product .global-product-title-description { color: #8f9ba7; }
  html[data-theme="dark"] .global-mobile-nav .global-product-entry { color: #aeb8c2; }
}

.global-product-mega-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin: -4px 8px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf1;
}

.global-product-mega-head span {
  color: var(--global-nav-red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
}

.global-product-mega-head small {
  margin: 0;
  color: #87929e;
  font-size: 15px;
}

.global-product-column {
  min-width: 0;
  padding: 2px 18px 4px;
  border-right: 1px solid #edf0f3;
}

.global-product-column:first-of-type { padding-left: 8px; }
.global-product-column:last-child {
  padding-right: 8px;
  border-right: 0;
}

.global-nav-popover.global-product-mega a {
  display: block;
  padding: 0;
  border-radius: 5px;
  line-height: 1.35;
}

.global-nav-popover.global-product-mega a:hover,
.global-nav-popover.global-product-mega a:focus-visible {
  color: var(--global-nav-red);
  background: transparent;
}

.global-nav-popover.global-product-mega .global-product-column-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 0;
  color: #101924;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.global-product-title-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.global-product-title-icon[data-product-icon="vde"] { color: #e51b23; background: #fff0f1; }
.global-product-title-icon[data-product-icon="vde"]:not(.has-image)::before {
  content: "";
  width: 21px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
}
.global-product-title-icon[data-product-icon="vde"]:not(.has-image)::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 14px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -3px 0 -1px currentColor;
}
.global-product-title-icon[data-product-icon="esai"] { color: #276ee8; background: #edf3ff; }
.global-product-title-icon[data-product-icon="esai"]:not(.has-image)::before {
  content: "◇";
  font-family: Arial, sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  transform: scaleX(.82) rotate(45deg);
}
.global-product-title-icon[data-product-icon="omaf"] { color: #6b35e8; background: #f2edff; }
.global-product-title-icon[data-product-icon="omaf"]:not(.has-image)::before {
  content: "☁";
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
}
.global-product-title-icon[data-product-icon="toolslib"] { background: #061426; }
.global-product-title-icon[data-product-icon="toolslib"]:not(.has-image)::before {
  content: "TL+";
  color: #f4f7fa;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.global-product-title-icon.has-image { background: transparent; box-shadow: none; }
.global-product-title-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

.global-product-title-arrow {
  margin-left: auto;
  color: #aeb7c0;
  font-size: 17px;
  transition: color .18s ease, transform .18s ease;
}

.global-product-column-title:hover .global-product-title-arrow,
.global-product-column-title:focus-visible .global-product-title-arrow {
  color: var(--global-nav-red);
  transform: translateX(3px);
}
.global-product-column-title.is-static { cursor: default; }

.global-product-group + .global-product-group { margin-top: 17px; }

.global-nav-popover.global-product-mega .global-product-group-title {
  margin-bottom: 7px;
  padding: 0;
  color: #d9161f;
  font-size: 17px;
  font-weight: 760;
}

.global-product-links {
  display: grid;
  gap: 1px;
}

.global-nav-popover.global-product-mega .global-product-entry {
  padding: 0;
  color: #596572;
  font-size: 15px;
  font-weight: 540;
}

.global-product-links.is-compact { gap: 0; }
.global-nav-popover.global-product-mega .global-product-links.is-compact .global-product-entry {
  padding-top: 3px;
  padding-bottom: 3px;
}

.global-nav-item:hover .global-nav-popover,
.global-nav-item:focus-within .global-nav-popover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.global-nav-popover.is-right {
  right: 0;
  left: auto;
  transform: translate(0, 10px);
}

.global-nav-item:hover .global-nav-popover.is-right,
.global-nav-item:focus-within .global-nav-popover.is-right {
  transform: translate(0, 0);
}

.global-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: 398px;
  gap: 14px;
}

.global-language,
.global-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.global-language {
  width: 50px;
  color: #4a5663;
  background: #fff;
  border: 1px solid #e2e7ec;
  font-size: 18px;
}

.global-header-cta {
  min-width: 126px;
  padding: 0 24px;
  color: #fff;
  background: var(--global-nav-red);
  border: 1px solid var(--global-nav-red);
  font-size: 19px;
  font-weight: 720;
  box-shadow: 0 10px 24px rgba(229, 27, 35, .18);
}

.global-header-cta:hover,
.global-header-cta:focus-visible {
  color: #fff;
  background: #c9121a;
  border-color: #c9121a;
}

.global-service-phone { margin-top: 6px; border-top: 1px solid #edf0f3; }
.global-service-phone small { color: var(--global-nav-red); font-weight: 700; letter-spacing: .04em; }

.global-header-tool,
.global-login {
  width: 46px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #29343f;
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  text-decoration: none;
  cursor: pointer;
}
.global-header-tool:hover,
.global-header-tool:focus-visible,
.global-login:hover,
.global-login:focus-visible { color: var(--global-nav-red); border-color: rgba(229,27,35,.35); }
.global-search-button { position: relative; }
.global-search-button span { width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 50%; }
.global-search-button span::after { content: ""; position: absolute; width: 6px; height: 1.7px; right: 10px; bottom: 14px; background: currentColor; transform: rotate(45deg); }
.global-theme-toggle span { font-size: 23px; line-height: 1; transform: rotate(-28deg); transition: transform .25s ease; }
.global-theme-toggle.is-dark span { transform: rotate(152deg); }
.global-login { width: 58px; font-size: 17px; font-weight: 700; }

.global-phone-compact {
  height: 54px;
  min-width: 154px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #27323d;
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.global-phone-compact span { color: var(--global-nav-red); font-size: 10px; }
.global-phone-compact:hover,
.global-phone-compact:focus-visible { color: var(--global-nav-red); border-color: rgba(229,27,35,.35); }

.global-account-button { position: relative; }
.global-account-button span { position: relative; width: 18px; height: 18px; border: 1.6px solid currentColor; border-radius: 50%; }
.global-account-button span::before { content: ""; position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; border: 1.25px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.global-account-button span::after { content: ""; position: absolute; right: 3px; bottom: 2px; left: 3px; height: 5px; border: 1.25px solid currentColor; border-radius: 7px 7px 4px 4px; }
.global-account-button.is-authenticated { border-color: rgba(21,34,48,.12); }
.global-account-button.is-authenticated .global-account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background-color: #182733;
  background-position: center;
  background-size: cover;
  box-shadow: 0 4px 12px rgba(17,25,35,.18);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.global-account-button.is-authenticated .global-account-avatar::before,
.global-account-button.is-authenticated .global-account-avatar::after { content: none; }
.global-account-button.is-authenticated:hover .global-account-avatar { box-shadow: 0 0 0 3px rgba(229,27,35,.1),0 5px 14px rgba(17,25,35,.2); }

.global-search-overlay {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: min(18vh, 160px);
  background: rgba(6,10,15,.5);
  backdrop-filter: blur(12px);
}
.global-search-overlay[hidden] { display: none; }
.global-ai-assistant[hidden] { display: none !important; }
.global-search-panel { position: relative; width: min(850px, calc(100vw - 32px)); padding: 38px; color: #151d26; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.global-search-panel > span { color: var(--global-nav-red); font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.global-search-panel label { height: 70px; margin-top: 20px; padding: 0 24px; display: flex; align-items: center; border: 1px solid #dfe4e9; border-radius: 12px; background: #f6f8fa; }
.global-search-panel input { width: 100%; color: inherit; border: 0; outline: 0; background: transparent; font: inherit; font-size: 19px; }
.global-search-close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; color: #64707b; border: 1px solid #e1e6ea; border-radius: 50%; background: #fff; font-size: 23px; cursor: pointer; }
.global-search-shortcuts { margin-top: 14px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.global-search-results { max-height: 330px; margin-top: 12px; overflow: auto; border: 1px solid #e4e9ee; border-radius: 12px; background: #fff; }
.global-search-results a { position: relative; display: grid; gap: 3px; padding: 13px 42px 13px 16px; color: #1d2731; text-decoration: none; border-bottom: 1px solid #edf1f4; }
.global-search-results a:last-child { border-bottom: 0; }
.global-search-results a:hover { background: #f7f9fb; }
.global-search-results span { color: var(--global-nav-red); font-size: 13px; letter-spacing: .08em; }
.global-search-results b { font-size: 17px; }
.global-search-results small { color: #87929d; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-results i { position: absolute; top: 31px; right: 16px; color: var(--global-nav-red); font-style: normal; }
.global-search-empty { margin: 0; padding: 24px; color: #87929d; text-align: center; font-size: 16px; }
.global-search-shortcuts a { padding: 14px; display: grid; color: #1d2731; border-radius: 9px; background: #f2f5f7; text-decoration: none; }
.global-search-shortcuts a:hover { color: var(--global-nav-red); }
.global-search-shortcuts small { margin-top: 3px; color: #87929d; font-size: 14px; }

html[data-theme="dark"] { background: #070b10; }
html[data-theme="dark"] body { color: #edf2f6; background: #070b10; }
html[data-theme="dark"] .global-site-header { color: #eef3f7; background: linear-gradient(135deg,rgba(15,21,29,.93),rgba(8,13,20,.86)); border-color: rgba(255,255,255,.11); box-shadow: 0 22px 60px rgba(0,0,0,.38); }
html[data-theme="dark"] .global-nav-link { color: #eef3f7; }
html[data-theme="dark"] .global-nav-popover { background: rgba(13,19,27,.98); border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .global-nav-popover a { color: #e8edf2; }
html[data-theme="dark"] .global-nav-popover a:hover { background: #1a2530; }
html[data-theme="dark"] .global-product-mega-head,
html[data-theme="dark"] .global-product-column { border-color: rgba(255,255,255,.09); }
html[data-theme="dark"] .global-nav-popover.global-product-mega .global-product-column-title { color: #f3f6f8; }
html[data-theme="dark"] .global-nav-popover.global-product-mega .global-product-entry { color: #aeb8c2; }
html[data-theme="dark"] .global-nav-popover.global-product-mega .global-product-group-title {
  color: #ff5a61;
}
html[data-theme="dark"] .global-software-nav .global-product-mega .global-product-group-title,
html[data-theme="dark"] .global-software-nav .global-product-mega [data-product="toolslib"] .global-product-column-title {
  border-bottom-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] :is(.global-language,.global-header-tool,.global-login,.global-phone-compact) { color: #e8edf2; background: #151d26; border-color: #2c3742; }
html[data-theme="dark"] .global-search-panel { color: #edf2f6; background: #0e151d; }
html[data-theme="dark"] .global-search-panel label,
html[data-theme="dark"] .global-search-shortcuts a { color: #edf2f6; background: #18212a; border-color: #2b3742; }
html[data-theme="dark"] .global-search-close { color: #edf2f6; background: #18212a; border-color: #2b3742; }
html[data-theme="dark"] :is(.architecture,.selector,.applications,.downloads) { color: #eef3f7; background: #090e14; }
html[data-theme="dark"] :is(.section-heading,.downloads-intro) h2 { color: #f4f7fa; }
html[data-theme="dark"] .anchor-rail { background: #101720; }
html[data-theme="dark"] .anchor-rail a { color: #c8d0d8; }
html[data-theme="dark"] .architecture-card { color: #eef3f7; background: #111922; border-color: #27323c; }
html[data-theme="dark"] .application-number { background: #151d26; }
html[data-theme="dark"] .application-number > div { color: #eef3f7; }

.global-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
}

.global-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #18212b;
}

.global-mobile-nav {
  display: none;
}

.global-contact-rail {
  position: relative;
  width: 62px;
  margin: 0 0 12px auto;
  padding: 6px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(112,157,185,.32);
  border-radius: 20px;
  background: rgba(248,250,252,.97);
  box-shadow: 0 15px 38px rgba(16,31,45,.18), inset 0 1px 0 rgba(255,255,255,.9);
}

.global-contact-action {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #263846;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.global-contact-action:hover,
.global-contact-action:focus-visible {
  color: #fff;
  background: #d9141d;
  outline: none;
  transform: translateX(-3px);
}

.global-contact-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  color: currentColor;
}

html[data-theme="dark"] .global-contact-rail {
  border-color: rgba(143,192,220,.28);
  background: rgba(19,29,39,.97);
  box-shadow: 0 17px 42px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
}

html[data-theme="dark"] .global-contact-action { color: #e8edf2; }
html[data-theme="dark"] .global-contact-icon-wecom::after { background: #131d27; }
html[data-theme="dark"] .global-contact-action:hover .global-contact-icon-wecom::after,
html[data-theme="dark"] .global-contact-action:focus-visible .global-contact-icon-wecom::after { background: #d9141d; }

.global-contact-icon-consult::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 7px;
}
.global-contact-icon-consult::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skew(-24deg);
}

.global-contact-icon-wecom::before,
.global-contact-icon-wecom::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.global-contact-icon-wecom::before { top: 2px; left: 1px; width: 16px; height: 13px; }
.global-contact-icon-wecom::after { right: 0; bottom: 2px; width: 14px; height: 12px; background: #f8fafc; }
.global-contact-action:hover .global-contact-icon-wecom::after,
.global-contact-action:focus-visible .global-contact-icon-wecom::after { background: #d9141d; }

.global-contact-icon-phone {
  width: 19px;
  height: 21px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}
.global-contact-icon-phone::before,
.global-contact-icon-phone::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}
.global-contact-icon-phone::before { top: -2px; left: -4px; transform: rotate(-45deg); }
.global-contact-icon-phone::after { right: -4px; bottom: -2px; transform: rotate(-45deg); }

.global-contact-phone-expansion {
  position: absolute;
  z-index: 3;
  right: calc(100% + 8px);
  width: 0;
  height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  color: #fff;
  border-radius: 999px;
  background: #d9141d;
  opacity: 0;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
  transition: width .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease, padding .24s ease;
}

.global-contact-action-phone:hover .global-contact-phone-expansion,
.global-contact-action-phone:focus-visible .global-contact-phone-expansion {
  width: 158px;
  padding: 0 14px;
  opacity: 1;
}

.global-contact-action-phone .global-contact-icon-phone {
  z-index: 2;
}

.global-contact-wecom-panel {
  position: absolute;
  z-index: -1;
  right: calc(100% + 8px);
  top: 50%;
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 29px;
  background: #d9141d;
  opacity: 0;
  transform: translate(10px, -50%) scale(.96);
  pointer-events: none;
  transition: width .24s cubic-bezier(.2,.8,.2,1), height .24s cubic-bezier(.2,.8,.2,1), padding .24s ease, opacity .18s ease, transform .24s ease;
}

.global-contact-wecom-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  background: #fff;
}

.global-ai-assistant.is-wecom-open .global-contact-wecom-panel {
  z-index: 4;
  width: 296px;
  height: 296px;
  padding: 22px;
  opacity: 1;
  transform: translate(0, -50%) scale(1);
  pointer-events: auto;
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .global-contact-action-wecom:hover .global-contact-wecom-panel,
  .global-contact-action-wecom:focus-visible .global-contact-wecom-panel {
    z-index: 4;
    width: 296px;
    height: 296px;
    padding: 22px;
    opacity: 1;
    transform: translate(0, -50%) scale(1);
    pointer-events: auto;
  }
}

.global-ai-assistant {
  position: fixed;
  z-index: 1900;
  right: 24px;
  bottom: 24px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.global-ai-greeting {
  position: absolute;
  right: 76px;
  bottom: 8px;
  width: min(320px, calc(100vw - 132px));
  padding: 14px 17px;
  color: #26323c;
  border: 1px solid rgba(117,139,155,.28);
  border-radius: 16px 16px 4px 16px;
  outline: 0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 45px rgba(16,31,45,.18), inset 0 1px 0 rgba(255,255,255,.98);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(10px,8px,0) scale(.96);
  transform-origin: right bottom;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.global-ai-greeting::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 18px;
  width: 13px;
  height: 13px;
  border-top: 1px solid rgba(117,139,155,.28);
  border-right: 1px solid rgba(117,139,155,.28);
  background: #fff;
  transform: rotate(45deg);
}
.global-ai-greeting.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.global-ai-assistant.is-open .global-ai-greeting { opacity: 0; visibility: hidden; pointer-events: none; }
.global-ai-greeting:focus-visible { border-color: rgba(227,19,28,.5); box-shadow: 0 18px 45px rgba(16,31,45,.18), 0 0 0 4px rgba(227,19,28,.1); }
html[data-theme="dark"] .global-ai-greeting { color: #eef3f6; border-color: rgba(143,166,183,.3); background: rgba(14,29,42,.97); box-shadow: 0 20px 52px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08); }
html[data-theme="dark"] .global-ai-greeting::after { border-color: rgba(143,166,183,.3); background: #0e1d2a; }

.global-ai-trigger {
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: #17212b;
  border: 1px solid rgba(112,157,185,.42);
  border-radius: 21px;
  background:
    radial-gradient(circle at 17% 0%, rgba(255,255,255,.98), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,247,252,.96) 58%, rgba(255,239,240,.97));
  box-shadow: 0 20px 50px rgba(16,31,45,.2), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(18px) saturate(135%);
  cursor: pointer;
  transition: width .34s cubic-bezier(.2,.8,.2,1), transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.global-ai-trigger:hover,
.global-ai-trigger:focus-visible {
  width: 172px;
  border-color: rgba(76,135,171,.64);
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(16,31,45,.24), 0 0 0 4px rgba(76,135,171,.08), inset 0 1px 0 rgba(255,255,255,.98);
}

.global-ai-trigger-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 17px;
  background: #f4f6f8;
  box-shadow: 0 8px 20px rgba(18,31,43,.17), 0 0 0 1px rgba(112,157,185,.16);
}

.global-ai-trigger-icon::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #22bf73;
  box-shadow: 0 0 0 4px rgba(34,191,115,.13), 0 0 12px rgba(34,191,115,.82);
  animation: globalAiOnlinePulse 2.2s ease-in-out infinite;
}

.global-ai-trigger-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 24%;
  transform: scale(1.08);
}

.global-ai-trigger-icon svg {
  width: 31px;
  height: 31px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-ai-trigger-icon svg circle { fill: currentColor; stroke: none; }
.global-ai-trigger-label { position: relative; z-index: 1; width: 0; min-width: 0; display: grid; gap: 3px; overflow: hidden; text-align: left; white-space: nowrap; opacity: 0; transform: translateX(7px); transition: width .24s ease, opacity .2s ease .05s, transform .24s ease .04s; }
.global-ai-trigger:hover .global-ai-trigger-label,
.global-ai-trigger:focus-visible .global-ai-trigger-label { width: 88px; opacity: 1; transform: none; }
.global-ai-trigger-label b { color: #17212b; font-size: 16px; line-height: 1.15; }
.global-ai-trigger-label small { color: #d70d17; font-size: 11px; font-weight: 700; letter-spacing: .08em; }

html[data-theme="dark"] .global-ai-trigger {
  color: #f3f6f8;
  border-color: rgba(112,157,185,.52);
  background:
    radial-gradient(circle at 17% 0%, rgba(57,104,143,.38), transparent 36%),
    linear-gradient(135deg, rgba(17,35,52,.98), rgba(10,24,38,.97) 58%, rgba(52,20,28,.98));
  box-shadow: 0 22px 54px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.1);
}
html[data-theme="dark"] .global-ai-trigger:hover,
html[data-theme="dark"] .global-ai-trigger:focus-visible {
  border-color: rgba(143,192,220,.72);
  box-shadow: 0 26px 62px rgba(0,0,0,.52), 0 0 0 4px rgba(143,192,220,.1), inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-theme="dark"] .global-ai-trigger-icon {
  border-color: #26333d;
  background: #18242d;
}
html[data-theme="dark"] .global-ai-trigger-icon::after { border-color: #26333d; }
html[data-theme="dark"] .global-ai-trigger-label b { color: #f3f6f8; }
html[data-theme="dark"] .global-ai-trigger-label small { color: #ff656d; }

@keyframes globalAiOnlinePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,191,115,.1), 0 0 8px rgba(34,191,115,.55); }
  50% { box-shadow: 0 0 0 6px rgba(34,191,115,.18), 0 0 17px rgba(34,191,115,.95); }
}

/* Embedded assistant: flat surfaces, clear controls and one shared composer. */
.global-ai-panel {
  --assistant-border: #e6e8eb;
  --assistant-secondary: #68717b;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 72px;
  width: min(386px, calc(100vw - 28px));
  height: min(620px, calc(100dvh - 128px));
  padding: 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "controls" "intro" "messages" "composer";
  color: var(--global-nav-ink);
  border: 1px solid var(--assistant-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(16,31,45,.07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  container-type: inline-size;
  container-name: assistant;
}
.global-ai-assistant.is-open .global-ai-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.global-ai-assistant.is-open .global-contact-rail { visibility: hidden; pointer-events: none; }
.global-ai-window-controls { grid-area: controls; display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.global-ai-window-title {
  min-width: 0; overflow: hidden; color: #53606c; font-size: 16px; font-weight: 600;
  line-height: 1.4; text-overflow: ellipsis; white-space: nowrap;
}
.global-ai-window-actions { display: flex; gap: 6px; }
.global-ai-icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.global-ai-window-actions button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  color: #45505b; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
}
.global-ai-window-actions button:hover { color: var(--global-nav-ink); background: #f3f4f5; }
.global-ai-window-actions button:disabled { opacity: .45; cursor: wait; }
.global-ai-panel button:focus-visible { outline: 2px solid #79848f; outline-offset: 3px; }
.global-ai-intro { grid-area: intro; min-width: 0; min-height: 0; padding: 6px 0 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.global-ai-brand-line { display: block; width: 28px; height: 3px; margin-bottom: 11px; border-radius: 2px; background: var(--global-nav-red); }
.global-ai-intro h2 { margin: 0; color: var(--global-nav-ink); font-size: 26px; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.global-ai-intro > p { margin: 7px 0 0; color: var(--assistant-secondary); font-size: 16px; line-height: 1.55; }
.global-ai-question-section { min-width: 0; margin-top: 15px; }
.global-ai-question-section[hidden] { display: none; }
.global-ai-question-title { margin: 0 0 8px; color: #58636e; font-size: 16px; font-weight: 500; line-height: 1.45; }
.global-ai-suggestions { min-width: 0; overflow: hidden; border: 1px solid var(--assistant-border); border-radius: 12px; background: #fff; }
.global-ai-suggestions:empty { display: none; }
.global-ai-suggestions button {
  position: relative; display: block; width: 100%; min-width: 0; min-height: 44px;
  padding: 10px 38px 10px 13px; overflow: hidden; color: #303942; border: 0;
  border-bottom: 1px solid var(--assistant-border); background: #fff; font: inherit;
  font-size: 16px; line-height: 1.55; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.global-ai-suggestions button:last-child { border-bottom: 0; }
.global-ai-suggestions button::after {
  content: "›"; position: absolute; top: 50%; right: 13px; color: #89939d;
  font-family: Arial, sans-serif; font-size: 25px; font-weight: 400; line-height: 1; transform: translateY(-52%);
}
.global-ai-suggestions button:hover { color: var(--global-nav-ink); background: #f5f6f7; }
.global-ai-suggestions button:hover::after { color: var(--global-nav-red); }
.global-ai-panel.has-conversation {
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "controls" "messages" "composer";
}
.global-ai-panel.has-conversation .global-ai-intro { display: none; }
.global-ai-messages {
  grid-area: messages; min-height: 0; margin: 0 0 20px; padding: 0 4px 0 0; display: flex;
  flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-color: #d2d6db transparent; scrollbar-width: thin;
}
.global-ai-message { max-width: 90%; padding: 12px 14px; border-radius: 14px; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; box-sizing: border-box; }
.global-ai-message.is-assistant { align-self: flex-start; color: #303942; border: 0; background: #f5f6f7; }

.global-ai-feedback { display: flex; gap: 4px; margin-top: 7px; }
.global-ai-feedback button { padding: 2px 6px; border: 1px solid #dce4e9; border-radius: 6px; background: #fff; color: #65727d; cursor: pointer; font-size: 14px; }
.global-ai-feedback button:hover, .global-ai-feedback button.is-selected { color: #e3131c; border-color: rgba(227,19,28,.35); }
.global-ai-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 25, 35, .46);
  backdrop-filter: blur(8px);
  animation: global-ai-feedback-fade-in .18s ease both;
}
.global-ai-feedback-dialog-card {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  color: #17212b;
  border: 1px solid rgba(23, 33, 43, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 90px rgba(8, 20, 32, .28), inset 0 1px 0 rgba(255,255,255,.9);
  animation: global-ai-feedback-rise-in .22s cubic-bezier(.2,.8,.2,1) both;
}
.global-ai-feedback-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #75818a;
  border: 1px solid #e1e7eb;
  border-radius: 50%;
  background: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.global-ai-feedback-dialog-close:hover,
.global-ai-feedback-dialog-close:focus-visible { color: #d90d17; border-color: rgba(227,19,28,.3); outline: none; }
.global-ai-feedback-eyebrow { display: block; color: #e3131c; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.global-ai-feedback-dialog-card h3 { margin: 13px 38px 8px 0; color: #17212b; font-size: 26px; letter-spacing: -.04em; line-height: 1.25; }
.global-ai-feedback-dialog-card p { margin: 0 0 18px; color: #70808c; font-size: 15px; line-height: 1.7; }
.global-ai-feedback-dialog-card textarea { width: 100%; min-height: 104px; padding: 12px 13px; resize: vertical; color: #26333e; border: 1px solid #dce4e9; border-radius: 12px; background: #f8fafb; font: inherit; font-size: 15px; line-height: 1.6; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.global-ai-feedback-dialog-card textarea:focus { border-color: rgba(227,19,28,.5); background: #fff; box-shadow: 0 0 0 4px rgba(227,19,28,.08); }
.global-ai-feedback-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.global-ai-feedback-dialog-actions button { min-width: 92px; padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.global-ai-feedback-cancel { color: #5e6c77; border: 1px solid #dce4e9; background: #fff; }
.global-ai-feedback-cancel:hover { border-color: #bdc9d1; background: #f6f8f9; }
.global-ai-feedback-submit { color: #fff; border: 1px solid #e3131c; background: #e3131c; box-shadow: 0 8px 18px rgba(227,19,28,.2); }
.global-ai-feedback-submit:hover { background: #c90e16; border-color: #c90e16; }
@keyframes global-ai-feedback-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes global-ai-feedback-rise-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .global-ai-feedback-dialog-card { padding: 25px 20px 20px; border-radius: 18px; }
  .global-ai-feedback-dialog-card h3 { font-size: 23px; }
}
.global-ai-message > :first-child { margin-top: 0; }
.global-ai-message > :last-child { margin-bottom: 0; }
.global-ai-message p { margin: .5em 0; }
.global-ai-message h3,
.global-ai-message h4,
.global-ai-message h5,
.global-ai-message h6 { margin: .85em 0 .35em; color: #111923; font-size: 1.08em; line-height: 1.4; }
.global-ai-message ul,
.global-ai-message ol { margin: .45em 0; padding-left: 1.55em; }
.global-ai-message li + li { margin-top: .24em; }
.global-ai-message strong { color: #111923; font-weight: 750; }
.global-ai-message em { color: #56636e; }
.global-ai-message a { color: #cf0e17; text-decoration: underline; text-underline-offset: 2px; }
.global-ai-message code { padding: .12em .38em; color: #b10c14; border-radius: 4px; background: rgba(227,19,28,.08); font-family: Consolas, "SFMono-Regular", monospace; font-size: .92em; }
.global-ai-message img { display: block; max-width: 100%; height: auto; margin: .55em 0; border: 1px solid #e1e7eb; border-radius: 8px; background: #fff; object-fit: contain; }
.global-ai-message pre { margin: .6em 0; padding: 10px; overflow-x: auto; color: #e7edf2; border-radius: 8px; background: #111923; }
.global-ai-message pre code { padding: 0; color: inherit; background: transparent; }
.global-ai-message blockquote { margin: .6em 0; padding-left: 9px; color: #5f6d77; border-left: 3px solid #e3131c; }
.global-ai-message hr { height: 1px; margin: .75em 0; border: 0; background: #dce3e7; }
.global-ai-message.is-user { align-self: flex-end; color: #27313c; background: #eaeef1; white-space: pre-wrap; }
.global-ai-message.is-pending { color: var(--assistant-secondary); }
.global-ai-message.is-streaming::after { content: ""; width: 2px; height: 1em; margin-left: 3px; display: inline-block; vertical-align: -.16em; background: #68717b; }
.global-ai-message.is-error { color: #8d3037; background: #faf4f4; }
.global-ai-composer-section { grid-area: composer; min-width: 0; }
.global-ai-form {
  position: relative; min-width: 0; min-height: 84px; padding: 8px; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0,1fr) 40px; grid-template-rows: 22px 40px;
  gap: 4px 8px; align-items: center; border: 1px solid var(--assistant-border); border-radius: 22px;
  background: #fff; transition: border-color .18s ease;
}
.global-ai-form:focus-within { border-color: #d8bfc2; }
.global-ai-form textarea {
  grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0; height: 22px; min-height: 22px;
  max-height: 22px; padding: 0 6px; box-sizing: border-box; resize: none;
  color: var(--global-nav-ink); border: 0; border-radius: 0; outline: none; background: transparent;
  font: inherit; font-size: 18px; line-height: 22px; box-shadow: none;
}
.global-ai-form textarea::placeholder { color: #737c85; opacity: 1; }
.global-ai-form textarea:disabled { color: var(--assistant-secondary); }
.global-ai-form button { font: inherit; cursor: pointer; }
.global-ai-type-selector { grid-column: 1; grid-row: 2; justify-self: end; min-width: 0; }
.global-ai-form .global-ai-type-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px;
  max-width: 100%; padding: 0 14px; color: #45505b; border: 1px solid var(--assistant-border);
  border-radius: 18px; background: #fff; white-space: nowrap; font-size: 16px; line-height: 1;
}
.global-ai-type-trigger .global-ai-icon { width: 12px; height: 12px; }
.global-ai-type-trigger:hover, .global-ai-type-trigger[aria-expanded="true"] { background: #f7f8f9; }
.global-ai-type-menu {
  position: absolute; right: 56px; bottom: calc(100% + 10px); z-index: 3; width: 190px; max-width: calc(100% - 64px); box-sizing: border-box;
  padding: 6px; border: 1px solid var(--assistant-border); border-radius: 12px; background: #fff;
  box-shadow: 0 4px 16px rgba(16,31,45,.06);
}
.global-ai-type-menu[hidden] { display: none; }
.global-ai-type-menu button {
  width: 100%; min-height: 38px; padding: 10px 12px; display: block; text-align: left;
  color: #45505b; border: 0; border-radius: 6px; background: #fff; font-size: 16px; line-height: 1.4;
}
.global-ai-type-menu button[aria-checked="true"] { color: var(--global-nav-ink); font-weight: 600; background: #f3f4f5; }
.global-ai-type-menu button:not(:disabled):hover { background: #edeff1; }
.global-ai-type-menu button:disabled { color: #a0a6ad; cursor: not-allowed; }
.global-ai-send {
  grid-column: 2; grid-row: 2; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; color: #fff; border: 0; border-radius: 50%; background: #222a33;
  opacity: .35; transition: opacity .16s ease, background .16s ease;
}
.global-ai-form.has-input .global-ai-send { opacity: 1; }
.global-ai-form.has-input .global-ai-send:hover { background: #101720; }
.global-ai-send:disabled { cursor: wait; opacity: .35; }
.global-ai-disclaimer { margin: 16px 0 0; color: #7b838b; font-size: 15px; line-height: 1.5; text-align: center; }
.global-ai-composer-section { min-width: 0; }
.global-ai-disclaimer { overflow-wrap: anywhere; }
.global-ai-panel:not(.has-conversation) .global-ai-messages:empty { display: none; }
.global-ai-feedback { align-items: center; gap: 6px; }
.global-ai-feedback button { display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 0; background: transparent; }
.global-ai-feedback button .global-ai-icon { width: 16px; height: 16px; }
.global-ai-feedback button:hover, .global-ai-feedback button.is-selected { color: #283642; background: #e9ecef; }
.global-ai-message a { color: #354d60; }
.global-ai-message code { color: #374554; background: #e7ebee; }
.global-ai-message blockquote { border-left-color: #bdc5cd; }
.global-ai-message pre code { color: inherit; background: transparent; }
@container assistant (min-width: 580px) {
  .global-ai-form { min-height: 76px; grid-template-columns: minmax(0,1fr) auto 42px; grid-template-rows: auto; gap: 12px; padding: 12px; }
  .global-ai-form textarea { grid-column: 1; grid-row: 1; height: 44px; max-height: 44px; padding: 11px 0; }
  .global-ai-type-selector { grid-column: 2; grid-row: 1; }
  .global-ai-type-menu { right: 66px; }
  .global-ai-send { grid-column: 3; grid-row: 1; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-ai-panel, .global-ai-form, .global-ai-send { transition: none; }
}

html[data-theme="dark"] .global-ai-panel {
  --assistant-border: #303b46;
  --assistant-secondary: #a9b3bc;
  color: #edf2f6;
  background: #121a23;
  box-shadow: 0 12px 38px rgba(0,0,0,.32);
}
html[data-theme="dark"] .global-ai-window-title,
html[data-theme="dark"] .global-ai-question-title { color: #bac3cb; }
html[data-theme="dark"] .global-ai-window-actions button { color: #b7c1ca; }
html[data-theme="dark"] .global-ai-window-actions button:hover { color: #f1f5f7; background: #202a34; }
html[data-theme="dark"] .global-ai-intro h2 { color: #f1f5f7; }
html[data-theme="dark"] .global-ai-suggestions { background: #151e28; }
html[data-theme="dark"] .global-ai-suggestions button { color: #dce3e8; background: #151e28; }
html[data-theme="dark"] .global-ai-suggestions button:hover { color: #f5f7f9; background: #202a34; }
html[data-theme="dark"] .global-ai-form,
html[data-theme="dark"] .global-ai-type-menu,
html[data-theme="dark"] .global-ai-form .global-ai-type-trigger { color: #e2e7eb; background: #151e28; }
html[data-theme="dark"] .global-ai-form textarea { color: #edf2f6; }
html[data-theme="dark"] .global-ai-form textarea::placeholder { color: #89949e; }
html[data-theme="dark"] .global-ai-type-menu button { color: #c5ced5; background: #151e28; }
html[data-theme="dark"] .global-ai-type-menu button[aria-checked="true"],
html[data-theme="dark"] .global-ai-type-menu button:not(:disabled):hover { color: #f3f6f8; background: #26313c; }
html[data-theme="dark"] .global-ai-message.is-assistant { color: #e3e8ec; background: #202a34; }
html[data-theme="dark"] .global-ai-message.is-user { color: #edf2f6; background: #303b46; }

body.has-compare-dock .global-ai-assistant { bottom: 106px; }

.global-ai-assistant.is-expanded .global-ai-panel {
  position: fixed; top: clamp(18px, 5vh, 56px); right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 5vh, 56px); width: min(860px, calc(100vw - 36px)); height: auto;
  padding: clamp(20px, 2.5vw, 30px); border-radius: 24px;
}
.global-ai-assistant.is-expanded .global-ai-message { max-width: 82%; }

@media (max-height: 560px) {
  .global-ai-panel { position: fixed; top: 12px; right: 14px; bottom: 12px; height: auto; padding: 12px 20px; }
  .global-ai-window-actions button { width: 36px; height: 32px; }
  .global-ai-intro { max-height: 200px; padding: 3px 0 12px; overflow-y: auto; box-sizing: border-box; }
  .global-ai-brand-line { margin-bottom: 8px; }
  .global-ai-intro h2 { font-size: 26px; }
  .global-ai-intro > p { margin-top: 6px; line-height: 1.4; }
  .global-ai-question-section { margin-top: 10px; }
  .global-ai-suggestions button { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .global-ai-messages { margin-bottom: 12px; }
}

@keyframes globalAiPulse {
  0% { opacity: .55; transform: scale(.9); }
  70%,100% { opacity: 0; transform: scale(1.2); }
}

@media (max-width: 1260px) {
  .global-nav-popover.global-product-mega {
    left: 50vw;
    width: calc(100vw - 80px);
    padding-right: 16px;
    padding-left: 16px;
  }

  .global-product-column { padding-right: 12px; padding-left: 12px; }
  .global-nav-popover.global-product-mega .global-product-column-title { font-size: 19px; }
  .global-nav-popover.global-product-mega .global-product-group-title { font-size: 16px; }
  .global-site-header {
    grid-template-columns: 155px minmax(0, 1fr) auto;
    padding-right: 20px;
    padding-left: 25px;
  }

  .global-desktop-nav {
    gap: 0;
    margin-left: -20px;
  }

  .global-nav-link {
    padding-right: 18px;
    padding-left: 10px;
    font-size: 17px;
  }

  .global-nav-link::before {
    right: 6px;
  }

  .global-header-actions {
    gap: 8px;
  }

  .global-header-cta {
    min-width: 108px;
    padding: 0 16px;
    font-size: 17px;
  }
}
@keyframes globalAiCursor { 50% { opacity: 0; } }

@keyframes globalAiThinking { 50% { opacity: .52; } }

/*
 * Keep the desktop header proportions identical on every landing page.
 * Some pages expose the complete utility set while others only show language
 * and consultation actions; a fixed utility column prevents the navigation
 * from changing apparent scale between page transitions.
 */
@media (min-width: 981px) and (max-width: 1440px) {
  .global-site-header {
    grid-template-columns: 220px minmax(0, 1fr) 230px;
  }

  .global-header-actions {
    width: 230px;
  }

  .global-phone-compact {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1260px) {
  .global-site-header {
    grid-template-columns: 155px minmax(0, 1fr) 230px;
  }
}

/* Longer translated labels use the compact menu before they touch the logo. */
@media (min-width:1360px) {
  .global-site-header {
    grid-template-columns: 210px minmax(0,1fr) auto;
    column-gap: 24px;
  }
  .global-site-header > .global-desktop-nav { margin-left: 0; }
  .global-site-header .global-header-actions { width: auto; }
}
@media (min-width:1360px) and (max-width:1440px) {
  .global-site-header { grid-template-columns: 160px minmax(0,1fr) auto; column-gap: 12px; padding: 0 20px; }
  .global-site-header .global-brand,
  .global-site-header .global-brand img { width: 160px; }
  .global-site-header .global-nav-link { font-size: 16px; padding-left: 8px; padding-right: 18px; }
  .global-site-header .global-nav-item.is-direct .global-nav-link { padding-right: 8px; }
  .global-site-header .global-desktop-nav { gap: 0; }
  .global-site-header .global-header-actions { gap: 8px; }
}
@media (max-width: 1359px) {
  .global-site-header {
    top: 10px;
    grid-template-columns: 1fr auto;
    width: calc(100vw - 24px);
    height: 64px;
    margin-top: 10px;
    padding: 0 10px 0 18px;
    border-radius: 12px;
  }

  .global-brand,
  .global-brand img {
    width: 112px;
  }

  .global-header-actions {
    width: auto;
    gap: 0;
  }

  .global-desktop-nav,
  .global-phone-compact,
  .global-language,
  .global-header-cta,
  .global-header-tool,
  .global-login {
    display: none;
  }

  .global-menu-button {
    display: block;
  }

  .global-mobile-nav {
    position: fixed;
    top: 84px;
    right: 12px;
    left: 12px;
    z-index: 999;
    display: grid;
    max-height: calc(100vh - 100px);
    padding: 14px;
    gap: 4px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(18, 31, 45, .08);
    border-radius: 14px;
    box-shadow: 0 22px 52px rgba(23, 39, 55, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .global-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .global-mobile-nav a {
    padding: 13px 15px;
    color: #17212b;
    border-radius: 8px;
    text-decoration: none;
  }

  .global-mobile-group {
    border: 0;
    border-radius: 8px;
  }

  .global-mobile-group summary {
    position: relative;
    padding: 13px 38px 13px 15px;
    color: #17212b;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
  }

  .global-mobile-group summary::-webkit-details-marker { display: none; }
  .global-mobile-group summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 15px;
    color: #909aa4;
    font-size: 21px;
    font-weight: 400;
    transform: translateY(-50%);
  }
  .global-mobile-group[open] summary::after { content: "−"; color: var(--global-nav-red); }
  .global-mobile-group summary.is-active { color: var(--global-nav-red); background: #fff2f3; }
  .global-mobile-subnav {
    margin: 2px 0 8px 14px;
    padding: 4px 0 4px 12px;
    display: grid;
    gap: 1px;
    border-left: 1px solid #e5e9ed;
  }
  .global-mobile-subnav a { padding: 9px 12px; color: #66727e; font-size: 15px; font-weight: 600; }
  .global-mobile-subnav a:hover { color: var(--global-nav-red); background: #fff7f7; }

  .global-mobile-nav a.is-active {
    color: var(--global-nav-red);
    background: #fff2f3;
  }

  .global-mobile-nav .global-mobile-phone {
    margin-top: 8px;
    padding-top: 16px;
    color: var(--global-nav-red);
    border-top: 1px solid #e5e9ed;
    font-size: 16px;
    font-weight: 750;
  }

  html[data-theme="dark"] .global-mobile-nav { background: rgba(12,18,25,.98); border-color: rgba(255,255,255,.1); }
  html[data-theme="dark"] .global-mobile-nav a { color: #e8edf2; }
  html[data-theme="dark"] .global-mobile-nav a.is-active { color: #ff6871; background: #25161b; }
  html[data-theme="dark"] .global-mobile-group summary { color: #e8edf2; }
  html[data-theme="dark"] .global-mobile-group summary.is-active { color: #ff6871; background: #25161b; }
  html[data-theme="dark"] .global-mobile-subnav { border-left-color: #2a3540; }
  html[data-theme="dark"] .global-mobile-subnav a { color: #aeb8c2; }
  html[data-theme="dark"] .global-mobile-nav .global-mobile-phone { color: #ff6871; border-top-color: #2a3540; }
}
@media (max-width: 980px) {
  .global-ai-assistant { right: 14px; bottom: 15px; }
  .global-contact-rail { width: 172px; max-width: calc(100vw - 28px); margin-bottom: 9px; padding: 5px; grid-template-columns: repeat(3, 1fr); border-radius: 17px; gap: 3px; }
  .global-contact-action { width: 50px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; }
  .global-contact-icon { width: 19px; height: 19px; flex-basis: 19px; }
  .global-contact-phone-expansion { display: none; }
  .global-contact-wecom-panel { right: -64px; top: auto; bottom: calc(100% + 12px); border-radius: 24px; transform: translate(0, 10px) scale(.96); }
  .global-ai-assistant.is-wecom-open .global-contact-wecom-panel { width: 248px; height: 248px; padding: 16px; transform: translate(0, 0) scale(1); }
  .global-ai-trigger { width: 58px; height: 58px; border-radius: 19px; }
  .global-ai-greeting { right: 68px; bottom: 5px; width: min(270px, calc(100vw - 96px)); padding: 12px 14px; border-radius: 14px 14px 4px 14px; font-size: 15px; }
  .global-ai-trigger-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; }
  .global-ai-trigger:hover,
  .global-ai-trigger:focus-visible,
  .global-ai-assistant.is-open .global-ai-trigger { width: 58px; }
  .global-ai-trigger-label { display: none; }
  .global-ai-panel { bottom: 66px; width: min(386px, calc(100vw - 56px)); }
  .global-ai-assistant.is-expanded .global-ai-panel { top: 10px; right: 10px; bottom: 10px; left: 10px; width: auto; padding: 20px; border-radius: 22px; }
  .global-ai-intro h2 { font-size: clamp(26px, 7.2vw, 30px); }
  .global-ai-assistant.is-expanded .global-ai-message { max-width: 90%; }
  body.has-compare-dock .global-ai-assistant { bottom: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  .global-contact-action,
  .global-contact-phone-expansion,
  .global-contact-wecom-panel { transition: none; }
  .global-ai-trigger-icon::after { animation: none; }
  .global-ai-greeting { transition: none; }
}

/* Shared public-site footer */
.global-site-footer,
.global-site-footer * { box-sizing: border-box; }

.global-site-footer {
  position: relative;
  margin: 36px 16px 16px;
  overflow: hidden;
  color: #f4f7fa;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  background:
    radial-gradient(circle at 65% 4%, rgba(19, 78, 137, .26), transparent 32%),
    linear-gradient(135deg, #090e15, #07111d 62%, #080d14);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.global-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

.global-site-footer a { color: inherit; text-decoration: none; }
.global-footer-glow {
  position: absolute;
  top: -330px;
  right: 12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: #0d64bb;
  filter: blur(130px);
  opacity: .18;
  pointer-events: none;
}

.global-footer-cta,
.global-footer-main,
.global-footer-wordmark {
  width: min(1600px, calc(100% - 80px));
  margin-right: auto;
  margin-left: auto;
}

.global-footer-cta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(650px, 1.18fr);
  gap: clamp(44px, 6vw, 110px);
  align-items: center;
  padding: 72px 0 58px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.global-footer-cta-copy p {
  margin: 0 0 22px;
  color: #6fdfff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .18em;
}

.global-footer-cta-copy h2 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.055em;
  white-space: nowrap;
}

/* English support titles are substantially wider than the Chinese copy.
   Give both CTA columns explicit room and keep the display title inside its
   own grid track instead of allowing it to overlap the support panel. */
html[data-locale="en"] .global-footer-cta {
  grid-template-columns: minmax(0, .95fr) minmax(650px, 1.05fr);
  gap: clamp(36px, 4vw, 72px);
}

html[data-locale="en"] .global-footer-cta-copy {
  min-width: 0;
}

html[data-locale="en"] .global-footer-cta-copy h2 {
  max-width: 100%;
  font-size: clamp(38px, 2.55vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
  white-space: normal;
  overflow-wrap: normal;
}

.global-footer-support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 2.7vw, 42px);
  align-items: center;
}

.global-footer-support-copy > span,
.global-footer-qr > span {
  color: #6fdfff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
}

.global-footer-support-copy h3 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.global-footer-support-copy > p {
  max-width: 520px;
  margin: 13px 0 0;
  color: #82909e;
  font-size: 17px;
  line-height: 1.7;
}

.global-footer-primary {
  min-height: 46px;
  margin-top: 25px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: #fff !important;
  border-radius: 8px;
  background: #e51b23;
  box-shadow: 0 16px 34px rgba(229,27,35,.2);
  font-size: 17px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease;
}

.global-footer-primary i { font-style: normal; }
.global-footer-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(229,27,35,.3);
}

.global-footer-qr-group {
  display: grid;
  grid-template-columns: repeat(2, 116px);
  column-gap: clamp(20px, 2.7vw, 42px);
}

.global-footer-qr {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  justify-items: center;
  align-items: start;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.global-footer-qr figure {
  width: 108px;
  height: 108px;
  margin: 10px 0 9px;
  padding: 7px;
  border: 1px solid rgba(229,27,35,.38);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
}

.global-footer-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.global-footer-qr b { color: #edf3f8; font-size: 16px; }
.global-footer-qr small { margin-top: 4px; color: #68798a; font-size: 14px; }

.global-footer-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.65fr .72fr;
  gap: clamp(42px, 6vw, 100px);
  padding: 46px 0 48px;
}

.global-footer-brand img { display: block; width: 142px; height: auto; }
.global-footer-brand p {
  max-width: 310px;
  margin: 24px 0 0;
  color: #82909e;
  font-size: 17px;
  line-height: 1.7;
}

.global-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.global-footer-links > div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.global-footer-links span,
.global-footer-contact > span {
  margin-bottom: 9px;
  color: #637383;
  font-size: 15px;
  letter-spacing: .14em;
}

.global-footer-links a {
  display: grid;
  gap: 2px;
  color: #b8c2cc;
  font-size: 17px;
  line-height: 1.35;
}

.global-footer-links a b { font-weight: 700; }
.global-footer-links a small { color: #637383; font-size: 15px; }
.global-footer-links a:hover { color: #fff; }

.global-footer-contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: normal;
}

.global-footer-contact a,
.global-footer-contact p { margin: 0; }
.global-footer-contact small,
.global-footer-contact b { display: block; }
.global-footer-contact small { color: #637383; font-size: 15px; }
.global-footer-contact b { margin-top: 6px; color: #d4dce4; font-size: 17px; }

.global-footer-wordmark {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  margin-bottom: -19px;
  color: rgba(255,255,255,.035);
  font-size: clamp(100px, 14vw, 220px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.095em;
  user-select: none;
}

.global-footer-bottom {
  position: relative;
  z-index: 2;
  min-height: 58px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #63707c;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: 14px;
  letter-spacing: .07em;
}

.global-footer-bottom div { display: flex; gap: 24px; }
.global-footer-bottom a:hover { color: #fff; }

@media (max-width: 1180px) {
  .global-footer-cta { grid-template-columns: 1fr; gap: 38px; }
  .global-footer-main { grid-template-columns: 1fr 1.8fr; }
  .global-footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1360px) {
  html[data-locale="en"] .global-footer-cta {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .global-site-footer { margin: 20px 8px 8px; border-radius: 18px; }
  .global-footer-cta,
  .global-footer-main,
  .global-footer-wordmark { width: calc(100% - 40px); }
  .global-footer-cta { padding: 48px 0 38px; }
  .global-footer-cta-copy h2 { font-size: 42px; white-space: normal; }
  .global-footer-support-panel { grid-template-columns: 1fr 1fr; }
  .global-footer-support-copy { grid-column: 1 / -1; }
  .global-footer-qr-group { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-footer-support-copy h3 { font-size: 25px; }
  .global-footer-qr figure { width: 96px; height: 96px; }
  .global-footer-main { grid-template-columns: 1fr; gap: 34px; padding: 38px 0 42px; }
  .global-footer-links { grid-template-columns: 1fr 1fr; }
  .global-footer-contact { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .global-footer-wordmark { font-size: 25vw; }
  .global-footer-bottom { padding: 20px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .global-footer-links,
  .global-footer-contact { grid-template-columns: 1fr; }
  .global-footer-bottom div { flex-wrap: wrap; gap: 12px 20px; }
}

/* GLASS NAV V2 · restore depth without whitening the artwork underneath */
.global-site-header {
  isolation: isolate;
  background: transparent;
}
.global-site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(244, 249, 252, .22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  pointer-events: none;
}
.global-site-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, .2), transparent 42%, rgba(255, 255, 255, .08));
  pointer-events: none;
}
.global-site-header > * {
  position: relative;
  z-index: 1;
}
html[data-theme="dark"] .global-site-header {
  background: transparent;
}
html[data-theme="dark"] .global-site-header::before {
  border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, rgba(15, 21, 29, .58), rgba(8, 13, 20, .36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* Page-level anchor navigation follows the document flow on every product page. */
.section-nav,
.esai-section-nav,
.omaf-section-nav,
.linex-anchor,
.detail-anchor,
.anchor-rail {
  position: relative !important;
  top: auto !important;
}

.global-mobile-language {
  display: none;
}

@media (max-width: 1359px) {
  .global-mobile-nav .global-mobile-language {
    display: flex !important;
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(18, 31, 45, .10);
    border-radius: 8px;
    color: #596875;
    background: #f7f9fb;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .global-mobile-nav .global-mobile-language::before {
    content: "Language";
    color: #7a8792;
    font-weight: 600;
  }

  html[data-locale="en"] .global-mobile-nav .global-mobile-language::before {
    content: "语言";
  }
}

/* Canonical global Liquid Glass contact rail. Keep this block last so legacy
   contact styles cannot override its optical material or popover geometry. */
/* Liquid Glass global contact rail. Loaded after global-nav.css. */
.global-liquid-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.global-contact-rail,
.global-contact-rail *,
.global-contact-rail *::before,
.global-contact-rail *::after {
  box-sizing: border-box;
  direction: ltr;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.global-contact-rail {
  --glass-x: 50%;
  --glass-y: 18%;
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  position: fixed;
  z-index: 1910;
  top: 50%;
  right: 24px;
  isolation: isolate;
  width: 60px;
  margin: 0;
  padding: 3px;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 25px 22px 26px 21px / 27px 23px 25px 22px;
  background:
    radial-gradient(120% 34% at var(--glass-x) 0%, rgba(255,255,255,.15), transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(180,216,234,.025) 48%, rgba(255,255,255,.035)),
    rgba(54,108,139,.085);
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(2.4px) saturate(164%) brightness(1.03) contrast(1.06);
  backdrop-filter: blur(2.4px) saturate(164%) brightness(1.03) contrast(1.06);
  box-shadow:
    0 18px 42px rgba(18,45,64,.15),
    0 3px 10px rgba(18,45,64,.055),
    inset 1px 1px 0 rgba(255,255,255,.48),
    inset -1px -1px 0 rgba(30,75,101,.22),
    inset 0 9px 20px rgba(255,255,255,.025),
    inset 0 -9px 20px rgba(44,87,111,.035);
  transform: translate3d(0,-50%,0);
  will-change: transform;
}

.global-contact-rail.has-liquid-displacement {
  -webkit-backdrop-filter: url("#global-liquid-glass-filter") blur(2.4px) saturate(164%) brightness(1.03) contrast(1.06);
  backdrop-filter: url("#global-liquid-glass-filter") blur(2.4px) saturate(164%) brightness(1.03) contrast(1.06);
}

.global-contact-rail::before,
.global-contact-rail::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.global-contact-rail::before {
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(42px 64px at var(--glass-x) var(--glass-y), rgba(255,255,255,.32), rgba(255,255,255,.055) 42%, transparent 76%),
    linear-gradient(112deg, rgba(255,255,255,.09), transparent 34%, rgba(73,139,172,.045) 67%, rgba(255,255,255,.05));
  opacity: .72;
  transform: translate3d(var(--glass-shift-x), var(--glass-shift-y), 0) scale(1.02);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}

.global-contact-rail.is-liquid-active::before {
  opacity: .92;
  transform: translate3d(var(--glass-shift-x), var(--glass-shift-y), 0) scale(1.035);
}

.global-contact-rail::after {
  z-index: 0;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(255,255,255,.14) 29%, rgba(116,160,183,.08) 57%, rgba(36,77,100,.22) 82%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .92;
}

.global-contact-action {
  --action-x: 50%;
  --action-y: 50%;
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #20394b;
  border: 0;
  border-radius: 20px 17px 21px 16px / 21px 18px 20px 17px;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, border-radius .24s cubic-bezier(.2,.8,.2,1), transform .24s cubic-bezier(.2,.8,.2,1);
}

.global-contact-action::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--action-x) var(--action-y), rgba(255,255,255,.48), rgba(255,255,255,.15) 38%, rgba(139,190,216,.045) 72%),
    rgba(255,255,255,.08);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.46), inset -1px -1px 1px rgba(59,108,134,.065), 0 6px 14px rgba(36,74,94,.045);
  opacity: .075;
  transform: scale(.96);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}

.global-contact-action:hover,
.global-contact-action:focus-visible {
  color: #102f45;
  background: transparent;
  border-radius: 22px 16px 19px 18px / 19px 22px 17px 21px;
  outline: none;
  transform: translate3d(calc(-2px + var(--glass-shift-x)), var(--glass-shift-y), 0) scale(1.025);
}

.global-contact-action:hover::before,
.global-contact-action:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.global-contact-action:focus-visible {
  outline: 2px solid rgba(229,27,35,.72);
  outline-offset: 3px;
}

.global-contact-icon {
  position: relative;
  z-index: 2;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: block;
  color: currentColor;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.58));
}

.global-contact-label,
.global-contact-wecom-panel {
  position: absolute;
  right: calc(100% + 10px);
  color: #173246;
  border: 1px solid rgba(255,255,255,.58);
  background:
    radial-gradient(90% 35% at 18% 0%, rgba(255,255,255,.48), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,.3), rgba(216,235,245,.1)),
    rgba(204,225,236,.16);
  -webkit-backdrop-filter: blur(10px) saturate(168%) brightness(1.07) contrast(1.04);
  backdrop-filter: blur(10px) saturate(168%) brightness(1.07) contrast(1.04);
  box-shadow:
    0 16px 42px rgba(19,46,64,.17),
    inset 1px 1px 0 rgba(255,255,255,.78),
    inset -1px -1px 0 rgba(61,105,129,.14),
    inset 0 10px 24px rgba(255,255,255,.05);
}

.global-contact-label {
  z-index: 7;
  top: 50%;
  width: max-content;
  min-width: max-content;
  max-width: none;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px 13px 15px 12px / 15px 13px 15px 13px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(9px,-50%,0) scale(.96);
  pointer-events: none;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  transition: opacity .18s ease, visibility .18s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}

.global-contact-label b,
.global-contact-label small,
.global-contact-label em {
  display: block;
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.global-contact-label b { color: inherit; font-size: 16px; font-weight: 760; line-height: 1.25; }
.global-contact-phone-label { width: max-content; min-width: 154px; align-items: flex-start; padding: 11px 14px; }
.global-contact-phone-label small { margin-top: 4px; color: #284c62; font-size: 17px; font-weight: 760; letter-spacing: .025em; line-height: 1.2; }
.global-contact-phone-label em { margin-top: 5px; color: #587183; font-size: 13px; font-style: normal; font-weight: 650; line-height: 1; }

.global-contact-action:hover > .global-contact-label,
.global-contact-action:focus-visible > .global-contact-label,
.global-ai-assistant.is-contact-consult-open [data-global-contact-consult] > .global-contact-label,
.global-ai-assistant.is-phone-open .global-contact-phone-label {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,-50%,0) scale(1);
}

.global-contact-wecom-panel {
  z-index: 8;
  top: 50%;
  width: 210px;
  height: auto;
  padding: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 21px 19px 23px 18px / 22px 20px 23px 19px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(12px,-50%,0) scale(.95);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}

.global-contact-label::before,
.global-contact-wecom-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(90px 40px at 15% 0%, rgba(255,255,255,.28), transparent 72%),
    linear-gradient(115deg, rgba(255,255,255,.08), transparent 42%, rgba(113,177,207,.04));
  pointer-events: none;
}

.global-contact-label > *,
.global-contact-wecom-panel > * {
  position: relative;
  z-index: 1;
}

.global-contact-wecom-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  bottom: 0;
  width: 12px;
}

.global-contact-wecom-panel > b { width: 100%; margin: 0 0 11px; font-size: 17px; font-weight: 780; line-height: 1.2; text-align: center; }
.global-contact-qr-frame { display: block; width: 100%; aspect-ratio: 1; padding: 8px; border: 1px solid rgba(20,49,67,.12); border-radius: 13px; background: #fff; box-shadow: 0 8px 20px rgba(15,40,57,.1); }
.global-contact-qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.global-contact-wecom-panel > small { align-self: center; margin-top: 10px; color: #526d7d; font-size: 14px; font-weight: 680; line-height: 1.2; }

.global-ai-assistant.is-wecom-open .global-contact-wecom-panel,
.global-contact-action-wecom:hover .global-contact-wecom-panel,
.global-contact-action-wecom:focus-visible .global-contact-wecom-panel {
  z-index: 8;
  width: 210px;
  height: auto;
  padding: 16px;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0,-50%,0) scale(1);
  pointer-events: auto;
}

.global-ai-assistant.is-wecom-open .global-contact-action-wecom > .global-contact-label,
.global-contact-action-wecom:hover > .global-contact-label,
.global-contact-action-wecom:focus-visible > .global-contact-label {
  opacity: 0;
  visibility: hidden;
}

.global-contact-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

html[data-theme="dark"] .global-contact-rail {
  background:
    radial-gradient(120% 34% at var(--glass-x) 0%, rgba(255,255,255,.15), transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(180,216,234,.025) 48%, rgba(255,255,255,.035)),
    rgba(54,108,139,.085);
  box-shadow: 0 18px 42px rgba(3,12,19,.2), inset 1px 1px 0 rgba(255,255,255,.48), inset -1px -1px 0 rgba(30,75,101,.22);
}
html[data-theme="dark"] .global-contact-action { color: #20394b; }
html[data-theme="dark"] .global-contact-action:hover,
html[data-theme="dark"] .global-contact-action:focus-visible { color: #102f45; background: transparent; }
html[data-theme="dark"] .global-contact-label,
html[data-theme="dark"] .global-contact-wecom-panel {
  color: #173246;
  border-color: rgba(255,255,255,.56);
  background:
    radial-gradient(90% 35% at 18% 0%, rgba(255,255,255,.46), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,.3), rgba(216,235,245,.1)),
    rgba(204,225,236,.18);
}
html[data-theme="dark"] .global-contact-phone-label small { color: #284c62; }
html[data-theme="dark"] .global-contact-phone-label em,
html[data-theme="dark"] .global-contact-wecom-panel > small { color: #526d7d; }

@media (max-width: 980px) {
  .global-contact-rail { right: 14px; width: 60px; padding: 3px; gap: 2px; }
  .global-contact-action { width: 54px; height: 54px; }
  .global-contact-icon { width: 20px; height: 20px; flex-basis: 20px; }
  .global-contact-wecom-panel { width: min(210px, calc(100vw - 84px)); max-width: 210px; min-width: 0; }
  .global-ai-assistant.is-wecom-open .global-contact-wecom-panel,
  .global-contact-action-wecom:hover .global-contact-wecom-panel,
  .global-contact-action-wecom:focus-visible .global-contact-wecom-panel { width: min(210px, calc(100vw - 84px)); height: auto; padding: 16px; }
}

@media (max-width: 640px), (max-height: 560px) {
  .global-contact-rail { right: max(10px, env(safe-area-inset-right)); }
}

.global-ai-assistant.is-contact-compact .global-contact-rail {
  right: max(8px, env(safe-area-inset-right));
  width: 54px;
  padding: 3px;
  gap: 1px;
  border-radius: 23px;
}

.global-ai-assistant.is-contact-compact .global-contact-action {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}

.global-ai-assistant.is-contact-compact .global-contact-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.global-ai-assistant.is-contact-compact .global-contact-wecom-panel,
.global-ai-assistant.is-contact-compact.is-wecom-open .global-contact-wecom-panel,
.global-ai-assistant.is-contact-compact .global-contact-action-wecom:hover .global-contact-wecom-panel,
.global-ai-assistant.is-contact-compact .global-contact-action-wecom:focus-visible .global-contact-wecom-panel {
  width: min(190px, calc(100vw - 74px), calc(100svh - 84px));
  max-width: 190px;
  padding: 14px;
  border-radius: 19px;
}

.global-ai-assistant.is-contact-compact .global-contact-qr-frame { padding: 6px; }
.global-ai-assistant.is-contact-compact .global-contact-phone-label { min-width: 150px; }

@media (any-hover: none) {
  .global-contact-label { display: none !important; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .global-contact-rail,
  .global-contact-label,
  .global-contact-wecom-panel { background: rgba(232,240,245,.97); }
}

@media (prefers-reduced-motion: reduce) {
  .global-contact-rail::before,
  .global-contact-action::before,
  .global-contact-action,
  .global-contact-label,
  .global-contact-wecom-panel { transition: none; }
}

.global-contact-wecom-panel[hidden] { display: none; }

/* Shared mobile contact toolbar for static product pages and React routes. */
@media (max-width: 980px) {
  .global-ai-assistant { right: max(14px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); }
  .global-ai-assistant .global-contact-rail,
  .global-ai-assistant.is-contact-compact .global-contact-rail {
    top: auto;
    right: auto;
    bottom: max(15px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    width: max-content;
    max-width: calc(100vw - 100px);
    grid-template-columns: repeat(3, 44px);
    gap: 0;
    margin: 0;
    padding: 3px;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 2px 8px #16293c0a;
    transform: none;
    will-change: auto;
  }
  .global-ai-assistant .global-contact-rail::before,
  .global-ai-assistant .global-contact-rail::after,
  .global-ai-assistant .global-contact-action::before { content: none; }
  .global-ai-assistant .global-contact-rail .global-contact-action {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #20394b;
    transform: none;
  }
  .global-ai-assistant .global-contact-rail .global-contact-action:hover,
  .global-ai-assistant .global-contact-rail .global-contact-action:focus-visible { background: #f4f6f8; }
  .global-ai-assistant .global-contact-rail .global-contact-label { display: none; }
  .global-ai-assistant .global-contact-rail .global-contact-action-wecom .global-contact-wecom-panel,
  .global-ai-assistant.is-contact-compact .global-contact-rail .global-contact-action-wecom .global-contact-wecom-panel {
    top: auto;
    right: auto;
    bottom: calc(100% + 12px);
    left: -44px;
    width: min(210px, calc(100vw - 28px), calc(100svh - 160px));
    max-width: 210px;
    height: auto;
    padding: 14px;
    border: 1px solid #e5e8eb;
    border-radius: 16px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px #16293c14;
    transform: none;
    transform-origin: bottom left;
  }
  .global-ai-assistant .global-contact-wecom-panel::before,
  .global-ai-assistant .global-contact-wecom-panel::after { content: none; }
}

/* Keep the greeting above the launcher, with its tail following the avatar. */
.global-ai-assistant .global-ai-greeting{
  right:0;bottom:calc(100% + 12px);width:min(320px,calc(100vw - 48px));
  border-radius:16px;text-align:left;
}
.global-ai-assistant .global-ai-greeting::after{right:calc(var(--ai-launcher-width) - 36px);bottom:-7px;transform:rotate(135deg);transition:right .24s ease}

/* Keep the fourth row mounted so the glass rail grows/shrinks continuously.
   Inert/aria-hidden in JS removes the collapsed control from interaction. */
.global-contact-rail .global-back-top-slot{
  display:grid;grid-template-rows:0fr;min-height:0;margin-top:-2px;
  visibility:hidden;pointer-events:none;
  transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1),margin-top .36s cubic-bezier(.22,1,.36,1),visibility 0s .36s;
}
.global-ai-assistant.is-contact-compact .global-back-top-slot{margin-top:-1px}
.global-contact-rail .global-back-top-clip{min-height:0;overflow:hidden}
.global-ai-assistant .global-contact-rail .global-back-top{
  opacity:0;transform:translateY(8px) scale(.94);
  transition:opacity .2s ease,transform .36s cubic-bezier(.22,1,.36,1);
}
.global-ai-assistant .global-contact-rail.has-back-top .global-back-top-slot{
  grid-template-rows:1fr;margin-top:0;visibility:inherit;pointer-events:auto;
  transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1),margin-top .36s cubic-bezier(.22,1,.36,1),visibility 0s;
}
.global-ai-assistant .global-contact-rail.has-back-top .global-back-top{opacity:1;transform:none}
.global-back-top .global-ai-icon{transition:transform .22s cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (pointer:fine){
  .global-back-top:hover .global-ai-icon{transform:translateY(-2px)}
}
/* On phones keep the contact row and character launcher apart: place the extra
   action above the row instead of expanding it into the character launcher. */
@media(max-width:980px){
  .global-ai-assistant .global-contact-rail .global-back-top-slot{
    position:absolute;right:0;bottom:calc(100% + 10px);width:44px;margin:0;
  }
  .global-ai-assistant .global-contact-rail .global-back-top{
    position:relative;
    border:1px solid #e5e8eb;border-radius:12px;background:#fff;
    box-shadow:0 2px 8px #16293c0a;
  }
}
@media(prefers-reduced-motion:reduce){
  .global-ai-assistant .global-contact-rail .global-back-top-slot,
  .global-ai-assistant .global-contact-rail.has-back-top .global-back-top-slot,
  .global-ai-assistant .global-contact-rail .global-back-top,
  .global-back-top .global-ai-icon{transition:none}
}

/* Avatar at rest; mouse hover or keyboard focus reveals the same short name.
   Touch users can open chat directly, without a sticky hover expansion. */
.global-ai-assistant{
  --ai-launcher-width:58px;--ai-launcher-gap:0px;--ai-label-width:0px;
  --ai-label-opacity:0;--ai-label-visibility:hidden;--ai-chevron-width:0px;
}
.global-ai-assistant:has(.global-ai-trigger:focus-visible){
  --ai-launcher-width:166px;--ai-launcher-gap:13px;--ai-label-width:48px;
  --ai-label-opacity:1;--ai-label-visibility:visible;--ai-chevron-width:10px;
}
@media(hover:hover) and (pointer:fine){
  .global-ai-assistant:has(.global-ai-trigger:hover){
    --ai-launcher-width:166px;--ai-launcher-gap:13px;--ai-label-width:48px;
    --ai-label-opacity:1;--ai-label-visibility:visible;--ai-chevron-width:10px;
  }
}
.global-ai-assistant .global-ai-trigger,
.global-ai-assistant.is-open .global-ai-trigger{
  box-sizing:border-box;width:var(--ai-launcher-width);height:58px;padding:8px;
  gap:var(--ai-launcher-gap);border-radius:18px;border:1px solid #dce3e8;
  color:#17212b;background:#fff;
  box-shadow:0 5px 20px rgba(22,41,60,.1);
  backdrop-filter:none;transform:none;
  font:inherit;transition:width .24s ease,gap .24s ease,border-color .18s ease,box-shadow .18s ease;
}
.global-ai-assistant .global-ai-trigger:hover{
  border-color:#b8c4ce;box-shadow:0 7px 24px rgba(22,41,60,.15);transform:none;
}
.global-ai-assistant .global-ai-trigger:focus-visible{outline:2px solid #607d91;outline-offset:3px}
.global-ai-assistant .global-ai-trigger-icon{
  width:40px;height:40px;flex:0 0 40px;box-sizing:border-box;
  border:0;border-radius:13px;box-shadow:none;overflow:visible;
}
.global-ai-assistant .global-ai-trigger-icon img{border-radius:inherit;transform:none}
.global-ai-assistant .global-ai-trigger-icon::after{
  right:-1px;bottom:-1px;width:10px;height:10px;box-sizing:border-box;
  border:2px solid #fff;box-shadow:none;animation:none;
}
.global-ai-assistant .global-ai-trigger-label,
.global-ai-assistant .global-ai-trigger:hover .global-ai-trigger-label,
.global-ai-assistant .global-ai-trigger:focus-visible .global-ai-trigger-label{
  display:block;width:var(--ai-label-width);flex:0 0 auto;
  opacity:var(--ai-label-opacity);visibility:var(--ai-label-visibility);transform:none;
  transition:opacity .18s ease;
}
.global-ai-assistant .global-ai-trigger-label b{
  color:inherit;font-size:19px;font-weight:550;line-height:1.5;background:none;
}
.global-ai-trigger-chevron{display:flex;flex:0 0 var(--ai-chevron-width);width:var(--ai-chevron-width);overflow:hidden;margin-left:auto;margin-right:0;opacity:calc(var(--ai-label-opacity) * .45);visibility:var(--ai-label-visibility);transition:opacity .18s ease,transform .18s ease}
.global-ai-trigger-chevron .global-ai-icon{width:10px;height:10px;transform:rotate(-90deg)}
.global-ai-trigger:hover .global-ai-trigger-chevron{transform:translateX(2px)}
html[data-theme="dark"] .global-ai-assistant .global-ai-trigger{
  color:#edf2f6;background:#151e28;border-color:#34414e;box-shadow:0 5px 20px rgba(0,0,0,.2);
}
html[data-theme="dark"] .global-ai-assistant .global-ai-trigger:hover{border-color:#526373;box-shadow:0 7px 24px rgba(0,0,0,.3)}
html[data-theme="dark"] .global-ai-assistant .global-ai-trigger-icon::after{border-color:#151e28}
@media(prefers-reduced-motion:reduce){
  .global-ai-assistant .global-ai-trigger,.global-ai-trigger-chevron,
  .global-ai-assistant .global-ai-trigger-label,.global-ai-assistant .global-ai-greeting::after{transition:none}
}
