:root {
  --site-footer-bg: #060d20;
  --site-footer-line: rgba(255, 255, 255, .06);
  --site-footer-link: #b8cbe6;
  --site-footer-muted: #7895bd;
  --site-footer-heading: #58b7ff;
}

/* Global floating consultation entry. Kept with the shared site chrome so the
 * same control is available on every public page. */
.floating-consult-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #39a7ff, #1688f8);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 8px 30px rgba(22, 136, 248, .42);
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.floating-consult-button svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-consult-button i {
  font-size: 30px;
  line-height: 1;
}

.floating-consult-button:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 12px 38px rgba(22, 136, 248, .56);
}

.floating-consult-button:active { transform: scale(.97); }

.floating-consult-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .96);
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .floating-consult-button {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
  }

  .floating-consult-button svg {
    width: 26px;
    height: 26px;
  }

  .floating-consult-button i { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-consult-button { transition: none; }
}

/* MICHAT injects its own launcher. The branded AIMS button above is the only
 * visible entry and calls the same chat API directly. */
#MICHAT-FLOAT-WRAP { display: none !important; }

/*
 * Canonical site navigation geometry.
 * The home-page header is the source of truth. These high-priority shared
 * rules prevent page-specific bundles from changing the same controls.
 */
body > header > nav,
[data-site-header] > header > nav {
  box-sizing: border-box !important;
  width: calc(100% - 48px) !important;
  max-width: 1360px !important;
  height: 68px !important;
  min-height: 68px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 24px 0 26px !important;
  gap: 30px !important;
  border: 1px solid rgba(255, 255, 255, .11) !important;
  border-radius: 999px !important;
  background: rgba(4, 16, 34, .76) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body > header .nav-logo-img,
[data-site-header] > header .nav-logo-img {
  width: 215px !important;
  height: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

body > header .nav-right,
[data-site-header] > header .nav-right {
  flex: 0 0 auto !important;
  gap: 14px !important;
}

body > header .nav-right .btn,
[data-site-header] > header .nav-right .btn {
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 21px !important;
  border-radius: 999px !important;
  font-family: "General Sans", -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
}

body > header .nav-right .btn-primary,
[data-site-header] > header .nav-right .btn-primary {
  border: 0 !important;
}

body > header .nav-right .btn-ghost,
[data-site-header] > header .nav-right .btn-ghost {
  border: 1px solid rgba(255, 255, 255, .16) !important;
}

body > header .menu-toggle,
[data-site-header] > header .menu-toggle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

@media (max-width: 900px) {
  body > header > nav,
  [data-site-header] > header > nav {
    width: calc(100% - 28px) !important;
    height: 68px !important;
    min-height: 68px !important;
    margin-right: 14px !important;
    margin-left: 14px !important;
    padding: 0 18px !important;
    gap: 18px !important;
  }

  body > header .nav-logo-img,
  [data-site-header] > header .nav-logo-img {
    width: 180px !important;
  }

  body > header .nav-right .lang-btn,
  [data-site-header] > header .nav-right .lang-btn {
    display: none !important;
  }

  body > header .nav-right .btn,
  [data-site-header] > header .nav-right .btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 9px 15px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  body > header .menu-toggle,
  [data-site-header] > header .menu-toggle {
    display: grid !important;
  }
}

@media (max-width: 560px) {
  body > header > nav,
  [data-site-header] > header > nav {
    width: calc(100% - 20px) !important;
    height: 58px !important;
    min-height: 58px !important;
    margin-right: 10px !important;
    margin-left: 10px !important;
    padding: 0 10px 0 14px !important;
    gap: 8px !important;
    border-radius: 26px !important;
  }

  body > header .logo,
  [data-site-header] > header .logo {
    width: 160px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  body > header .nav-logo-img,
  [data-site-header] > header .nav-logo-img {
    width: 160px !important;
    max-width: 100% !important;
    max-height: 38px !important;
  }

  body > header .nav-right,
  [data-site-header] > header .nav-right {
    gap: 14px !important;
  }

  body > header .menu-toggle,
  [data-site-header] > header .menu-toggle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 390px) {
  body > header .nav-right,
  [data-site-header] > header .nav-right {
    gap: 6px !important;
  }

  body > header .nav-right .btn,
  [data-site-header] > header .nav-right .btn {
    padding: 8px 9px !important;
    font-size: 12.5px !important;
  }
}

/* Desktop header secondary actions turn primary blue only on interaction. */
header .nav-right .lang-btn,
header .nav-right .btn-ghost {
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Use a familiar translation mark instead of the globe glyph. */
header .nav-right .lang-btn {
  position: relative;
}

header .nav-right .lang-btn svg {
  display: none;
}

header .nav-right .lang-btn::before,
header .nav-right .lang-btn::after {
  position: absolute;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
}

header .nav-right .lang-btn::before {
  content: "文";
  top: 9px;
  left: 8px;
  font-size: 16px;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
}

header .nav-right .lang-btn::after {
  content: "A";
  right: 7px;
  bottom: 7px;
  font-size: 15px;
  opacity: .72;
  transform: scale(.92);
  transform-origin: center;
}

header .nav-right .lang-btn.is-english::before {
  opacity: .58;
  transform: scale(.72);
}

header .nav-right .lang-btn.is-english::after {
  opacity: 1;
  transform: scale(1.12);
}

header .nav-right .lang-btn:hover,
header .nav-right .lang-btn:focus-visible,
header .nav-right .btn-ghost:hover,
header .nav-right .btn-ghost:focus-visible {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #39a7ff, #1688f8);
  box-shadow: 0 8px 30px rgba(22, 136, 248, .42);
  transform: translateY(-1px);
}

/* Shared mobile language switcher */
@media (max-width: 900px) {
  .mobile-menu-panel .mobile-menu-meta {
    margin-top: 18px;
    padding-top: 18px;
  }

  .mobile-menu-panel .mobile-language-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .mobile-menu-panel .mobile-language-row > h4 {
    flex: 0 0 auto;
    margin: 0;
    color: #dbe6f7;
    font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  .mobile-menu-panel .mobile-language-switch {
    width: min(196px, 62%);
    min-width: 164px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(139, 184, 238, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .mobile-menu-panel .mobile-language-row .mobile-language-switch__option {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #8e9bb0;
    font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  .mobile-menu-panel .mobile-language-row .mobile-language-switch__option:hover {
    color: #dceaff;
    background: rgba(255, 255, 255, .06);
  }

  .mobile-menu-panel .mobile-language-row .mobile-language-switch__option.is-active {
    border-color: rgba(90, 184, 255, .58);
    color: #fff;
    background: linear-gradient(180deg, rgba(44, 157, 255, .96), rgba(18, 119, 232, .96));
    box-shadow: 0 6px 18px rgba(15, 112, 224, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  }

  .mobile-menu-panel .mobile-language-row .mobile-language-switch__option:focus-visible {
    outline: 2px solid #66baff;
    outline-offset: 2px;
  }
}

@media (max-width: 360px) {
  .mobile-menu-panel .mobile-language-row {
    display: block;
  }

  .mobile-menu-panel .mobile-language-row > h4 {
    margin-bottom: 10px;
  }

  .mobile-menu-panel .mobile-language-switch {
    width: 100%;
    min-width: 0;
  }
}

/* Shared inner-page banner typography, matched to the About Us banner. */
.banner-shell {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.banner-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 760px;
  padding-top: 14px;
  text-align: left;
}

.banner-copy h1 {
  display: grid;
  justify-items: start;
  gap: 2px;
  max-width: none;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
}

.banner-title-line {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.banner-title-kicker {
  color: rgba(238, 247, 255, .96);
  font-size: clamp(34px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .14em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .58);
}

.banner-title-accent {
  position: relative;
  padding: 3px 0 12px;
  color: #e8bd63;
  font-size: clamp(52px, 4.45vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .025em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .58);
}

.banner-title-accent::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8bd63, rgba(232, 189, 99, 0));
}

.banner-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -.01em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .58);
}

.account-hero .banner-copy {
  padding-top: 86px;
}

.stock-hero .banner-copy {
  padding-top: 80px;
}

.partner-banner .banner-shell,
.contact-banner .banner-shell,
.blank-hero .banner-shell {
  padding-top: 86px;
}

.blank-hero .banner-shell {
  min-height: inherit;
}

@media (max-width: 820px) {
  .banner-copy {
    max-width: 620px;
    padding-top: 28px;
  }

  .banner-copy h1 {
    white-space: normal;
  }

  .banner-title-kicker {
    font-size: clamp(31px, 5vw, 38px);
  }

  .banner-title-accent {
    font-size: clamp(44px, 7vw, 56px);
  }

  .banner-lead {
    font-size: 17px;
  }

  .account-hero .banner-copy,
  .stock-hero .banner-copy {
    padding-top: 42px;
  }

  .partner-banner .banner-shell,
  .contact-banner .banner-shell,
  .blank-hero .banner-shell {
    padding-top: 76px;
  }
}

@media (max-width: 560px) {
  .partner-banner {
    height: 400px;
  }

  .banner-copy {
    padding-top: 42px;
  }

  .banner-title-kicker {
    font-size: 26px;
    letter-spacing: .08em;
  }

  .banner-title-accent {
    padding-bottom: 10px;
    font-size: 38px;
    letter-spacing: .01em;
  }

  .banner-title-accent::after {
    width: 64px;
    height: 2px;
  }

  .banner-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  .account-hero .banner-copy,
  .stock-hero .banner-copy {
    padding-top: 42px;
  }

  .partner-banner .banner-shell,
  .contact-banner .banner-shell,
  .blank-hero .banner-shell {
    padding-top: 66px;
  }
}

/* Canonical site footer. Spacing and dividers mirror the homepage footer. */
.site-footer {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 82px 0 36px !important;
  border: 0 !important;
  border-top: 1px solid var(--site-footer-line) !important;
  background:
    linear-gradient(180deg, rgba(3, 11, 22, 0), rgba(3, 11, 22, .78)),
    var(--site-footer-bg) !important;
  color: #eaf4ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", Arial, sans-serif;
}

/* Override page-specific CTA-to-footer rules so every page keeps the same gap. */
html body main + footer.site-footer.site-footer,
body [data-site-footer] > .site-footer {
  margin-top: 0 !important;
}

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

.site-footer__inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(72, 180, 255, .28);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  justify-content: space-between;
  column-gap: clamp(20px, 2vw, 40px);
  row-gap: 28px;
  padding: 0 0 36px;
  border-bottom: 1px solid rgba(72, 180, 255, .28);
  align-items: start;
}

.site-footer__stack {
  display: contents;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-34px);
}

.site-footer__brand img {
  display: block;
  width: 284px;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.site-footer__contact {
  align-self: center;
  min-width: 410px;
  text-align: right;
}

.site-footer__contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.site-footer__contact-row .site-footer__socials {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer__column h5 {
  margin: 0 0 18px;
  color: var(--site-footer-heading);
  font-family: "Clash Display", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__column a,
.site-footer__email {
  color: var(--site-footer-link);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible,
.site-footer__email:hover,
.site-footer__email:focus-visible {
  color: #fff;
}

.site-footer__email {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(72, 180, 255, .28);
  border-radius: 10px;
  background: #0a2338;
  line-height: 1;
  white-space: nowrap;
}

.site-footer__email span {
  display: flex;
  height: 16px;
  align-items: center;
  line-height: 16px;
}

.site-footer__email-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transform: translateY(1px);
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
  border-color: rgba(72, 180, 255, .7);
  background: #0a2038;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.site-footer__socials a {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(72, 180, 255, .28);
  border-radius: 10px;
  background: #0a2338;
  color: var(--site-footer-link);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  border-color: rgba(72, 180, 255, .7);
  background: #0a2038;
  color: #fff;
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.site-footer__legal p {
  margin: 0;
  color: var(--site-footer-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.site-footer__legal b {
  color: #9fb8dc;
  font-weight: 600;
}

.site-footer__copyright {
  margin: 50px 0 0 !important;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  color: rgba(120, 149, 189, .72);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer,
  html body main + footer.site-footer.site-footer,
  body [data-site-footer] > .site-footer {
    margin-top: 0 !important;
  }

  .site-footer {
    padding-top: 58px !important;
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 32px;
    row-gap: 28px;
    padding-right: 0;
  }

  .site-footer__top {
    gap: 24px;
    margin-bottom: 40px;
    padding-right: 0;
  }

  .site-footer__brand img {
    width: 220px;
  }

  .site-footer__brand-link {
    transform: translateX(-26px);
  }

  .site-footer__contact {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .site-footer,
  html body main + footer.site-footer.site-footer,
  body [data-site-footer] > .site-footer {
    margin-top: 0 !important;
  }

  .site-footer {
    padding: 48px 0 30px !important;
  }

  .site-footer__inner {
    padding: 0 16px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
    padding-bottom: 28px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    padding-bottom: 28px;
  }

  .site-footer__brand img {
    width: 190px;
  }

  .site-footer__brand-link {
    transform: none;
  }

  .site-footer__contact {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .site-footer__contact-row {
    justify-content: flex-start;
    gap: 14px;
  }

  .site-footer__contact-row .site-footer__socials {
    display: flex;
    justify-content: flex-start;
  }

  .site-footer__stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__stack--left {
    grid-column: 1;
  }

  .site-footer__stack--right {
    grid-column: 2;
  }

  .site-footer__column h5 {
    margin-bottom: 12px;
  }

  .site-footer__column ul {
    gap: 9px;
  }

  .site-footer__column a {
    font-size: 14px;
  }

  .site-footer__email {
    height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .site-footer__socials {
    display: grid;
    grid-template-columns: repeat(2, 34px);
    justify-content: start;
    gap: 10px;
    margin-top: 14px;
  }

  .site-footer__socials a {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .site-footer__socials svg {
    width: 16px;
    height: 16px;
  }

  .site-footer__legal {
    gap: 14px;
    margin-top: 34px;
  }

  .site-footer__legal p {
    font-size: 11.5px;
    line-height: 1.75;
  }

  .site-footer__copyright {
    margin-top: 34px !important;
    padding-top: 22px;
    font-size: 12px;
  }
}
