/* Mega panel: scroll safely; keep blue aside + CTA fully visible on short screens */
@media (min-width: 901px) {
  .mega-panel.site-mega,
  .mega-panel {
    max-height: calc(100vh - 6.5rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Don't force aside to match tall columns — that buried the white CTA below the clip edge */
  .mega-inner {
    align-items: start !important;
  }

  .mega-aside {
    position: sticky !important;
    top: 0.75rem !important;
    align-self: start !important;
    max-height: calc(100vh - 8rem) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* CTA sits under copy with clear gap; always inside the visible blue card */
  .mega-cta {
    margin-top: 1.15rem !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 900px) {
  .mega-aside {
    position: static !important;
    max-height: none !important;
  }
  .mega-cta {
    margin-top: 1rem !important;
  }
}

/* chat-rail-narrow-btns-20260820 — mail / chat / APP match AI报价 width */
@media (min-width: 901px) {
  html body .live-chat .chat-rail-btn.is-mail,
  html body .live-chat .chat-rail-btn.is-wa,
  html body .live-chat .chat-rail-btn.is-chat,
  html body .live-chat .chat-rail-btn.is-chat.live-chat-fab,
  html body .live-chat .chat-rail-btn.is-app,
  html body .chat-rail-btn.is-mail,
  html body .chat-rail-btn.is-wa,
  html body .chat-rail-btn.is-chat,
  html body .chat-rail-btn.is-chat.live-chat-fab,
  html body .chat-rail-btn.is-app {
    width: 3.55rem !important;
    min-width: 3.55rem !important;
    max-width: 3.55rem !important;
    min-height: 4.55rem !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.55rem 0.28rem 0.58rem !important;
    gap: 0.28rem !important;
    border-radius: 1.05rem !important;
  }
  html body .live-chat .chat-rail-btn .chat-rail-ico,
  html body .chat-rail-btn .chat-rail-ico {
    font-size: 1.05rem !important;
  }
  html body .chat-rail-btn.is-app .chat-rail-ico svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }
  html body .live-chat .chat-rail-btn-cap,
  html body .chat-rail-btn .chat-rail-btn-cap {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  html body .chat-rail-btn.is-app .chat-rail-btn-cap-line:last-child {
    font-size: 0.95em !important;
    letter-spacing: 0.04em !important;
  }
}


/* intro-hub-zh-only-20260821 */
/* Intro hub chip is Chinese-path only; hide on every other locale (cs/en/…) */
html:not([lang^="zh"]) [data-intro-hub] {
  display: none !important;
}

/* Longer Latin labels: keep accent + Dashboard from colliding */
html:not([lang^="zh"]) .site-subnav-track {
  gap: 0.35rem !important;
}
html:not([lang^="zh"]) .site-subnav a.site-subnav-link.is-accent {
  margin-inline-start: 0.35rem !important;
  padding-inline: 0.65rem !important;
  font-size: 0.82rem !important;
  max-width: 15.5rem !important;
  white-space: nowrap !important;
}
html:not([lang^="zh"]) .site-subnav .site-subnav-end {
  flex: 0 0 auto !important;
  margin-left: 0.35rem !important;
  gap: 0.35rem !important;
}
