/* Shared language controls, longer-copy layout and logical RTL overrides. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.header-tools { display: flex; align-items: center; gap: 16px; margin-inline-start: 16px; }
.site-nav { margin-inline-start: auto; }
.site-nav > a, .site-nav > .products-trigger { min-width: 82px; padding-inline: 12px; }
.products-trigger { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-height: 36px; border: 0; border-inline-start: 1px dotted #ffffff25; background: none; color: #e9eff4; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
.products-trigger:hover, .products-trigger.active, .products-trigger[aria-expanded="true"] { color: #4fc4ff; }
.nav-chevron { display: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.products-trigger:focus-visible { outline: 2px solid #70d2ff; outline-offset: 4px; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid #ffffff36; border-radius: 8px; background: #ffffff0a; color: #e5f4ff; cursor: pointer; font-size: 12px; white-space: nowrap; }
.language-toggle > svg { width: 17px; height: 17px; fill: none; stroke: #70cfff; stroke-width: 1.5; }
.language-toggle:hover, .language-toggle[aria-expanded="true"] { background: #ffffff15; border-color: #70cfff; }
.language-toggle:focus-visible, .language-panel button:focus-visible { outline: 2px solid #4fc4ff; outline-offset: 3px; }
.language-panel { position: absolute; z-index: 10; box-sizing: border-box; width: 360px; max-height: min(640px, calc(100dvh - 100px)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #426276; border-radius: 14px; background: #202d38; color: #edf7ff; padding: 18px; box-shadow: 0 16px 40px #12283950; text-align: start; }
.language-panel-heading strong { font-size: 16px; }
.language-mode { margin: 6px 0 15px; color: #b1c4d2; font-size: 12px; line-height: 1.5; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.language-option { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 42px; padding: 9px 10px; background: #ffffff06; color: #e5eef5; border: 1px solid #ffffff16; border-radius: 7px; cursor: pointer; font-size: 13px; text-align: start; }
.language-option:hover { background: #ffffff12; }
.language-option[aria-pressed="true"] { background: #17618a; border-color: #65c7f8; color: #fff; }
.language-check { opacity: 0; }
.language-option[aria-pressed="true"] .language-check { opacity: 1; }
.language-auto { width: 100%; min-height: 40px; padding: 8px 10px; margin-top: 12px; border: 1px solid #72b4d6; border-radius: 7px; background: transparent; color: #b9e7ff; font-size: 13px; cursor: pointer; }
.language-auto:hover { background: #ffffff0c; }
.language-fallback-note { margin: 12px 0 0; color: #a5bac9; font-size: 11px; line-height: 1.5; }
.hero h1, .section h2, .feature-copy h2, .product-name { overflow-wrap: anywhere; text-wrap: balance; line-height: 1.2; }
html:not(:lang(zh)) .hero h1 { font-size: clamp(34px, 4vw, 54px); }
html:not(:lang(zh)) .product-hero h1.product-name { font-size: clamp(36px, 4vw, 54px); }
.section-heading h2 { max-width: 760px; }
.product-content h3, .product-switch strong, .feature-jumps a, .product-tag-row > span, .related-product h3 { overflow-wrap: anywhere; }
.product-content > p:not(.product-en) { min-height: 0; }
.product-switch a { min-width: 0; }
.contact-row strong, .footer-contact a { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[data-translation-fallback="en"] { unicode-bidi: isolate; }
.product-illustration > div { direction: ltr; }
html[dir="rtl"] body { font-family: Tahoma, Arial, "Microsoft Yahei", sans-serif; }
html[dir="rtl"] .hero-media { background: linear-gradient(245deg, #e8f7ff 0%, #d3efff 45%, #84d0f7 100%); }
html[dir="rtl"] .hero-character { right: auto; left: max(-96px, calc((100vw - 1480px) / 2)); }
html[dir="rtl"] .hero-sticker { right: auto; left: 14%; transform: rotate(-10deg); }
html[dir="rtl"] .hero-content, html[dir="rtl"] .feature-copy, html[dir="rtl"] .contact-heading { text-align: right; }
html[dir="rtl"] .intro-copy { border-left: 0; border-right: 1px solid var(--line); padding-left: 0; padding-right: 52px; }
html[dir="rtl"] .text-link span { margin-left: 0; margin-right: 10px; display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .text-link:hover span { margin-right: 16px; }
html[dir="rtl"] .button > span, html[dir="rtl"] .card-link > span, html[dir="rtl"] .related-product > strong { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .brand-copy strong { letter-spacing: .08em; }
html[dir="rtl"] .site-nav > a, html[dir="rtl"] .site-nav > .products-trigger { border-left: 0; border-right: 1px dotted #ffffff25; }
html[dir="rtl"] .header-products a + a { border-left: 0; border-right: 1px dotted #ffffff30; }
html[dir="rtl"] .product-number { right: auto; left: 26px; }
html[dir="rtl"] .capability-list article:hover { padding-left: 22px; }
html[dir="rtl"] .feature-copy .section-kicker > span { margin-right: 0; margin-left: 8px; padding-right: 0; padding-left: 14px; border-right: 0; border-left: 1px solid #a0b5b7; }
html[dir="rtl"] .feature-copy li::before { text-align: right; }
html[dir="rtl"] .back-top { right: auto; left: 24px; }
.product-switch, html[dir="rtl"] .product-switch { top: 70px; }
.product-page section[id] { scroll-margin-top: 184px; }
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-wrap { padding-inline: 26px; }
  .site-nav > a, .site-nav > .products-trigger { min-width: 74px; padding-inline: 9px; font-size: 12px; }
  .header-tools { margin-inline-start: 12px; }
  .language-toggle { padding-inline: 7px; }
}
@media (max-width: 1100px) and (min-width: 1025px) {
  html[dir="rtl"] .hero-character { right: auto; left: -120px; }
}
@media (max-width: 1024px) {
  .site-header, .site-header.scrolled, .product-page .site-header { height: 64px; filter: none; }
  .nav-wrap { width: 100%; padding: 0 18px; clip-path: none; }
  .site-header .brand { position: relative; z-index: 3; margin-inline-end: auto; }
  .header-tools { position: relative; z-index: 4; margin-inline-start: auto; gap: 15px; }
  .menu-toggle { display: block; z-index: 4; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 2; height: 100dvh; margin: 0; padding: 98px 24px 32px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 9px; background: #20272e; transform: translateX(105%); transition: transform .2s ease; }
  html[dir="rtl"] .site-nav { transform: translateX(-105%); }
  .site-nav.open, html[dir="rtl"] .site-nav.open { transform: none; }
  .site-nav > a, .site-nav > .products-trigger, .site-nav .nav-contact { flex: 0 0 auto; flex-direction: row; justify-content: space-between; width: min(100%, 400px); min-height: 46px; margin: 0; padding: 8px; border: 0; border-bottom: 1px solid #ffffff20; font-size: 16px; line-height: 1.4; }
  html[dir="rtl"] .site-nav > a, html[dir="rtl"] .site-nav > .products-trigger { border-left: 0; border-right: 0; }
  .site-nav > .products-trigger { justify-content: flex-start; gap: 10px; }
  .nav-chevron { display: block; flex-shrink: 0; margin-inline-start: auto; transition: transform .15s; }
  .products-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
  .site-nav .header-products, .site-nav .header-products.is-open { position: static; transform: none; clip-path: none; display: grid; grid-template-columns: 1fr; flex: 0 0 auto; width: min(100%, 400px); height: auto; padding: 7px 12px; margin: -3px 0 4px; border: 1px solid #ffffff20; border-radius: 9px; background: #14232e; opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav .header-products a { display: flex; min-width: 0; width: 100%; min-height: 42px; padding: 10px 7px; border: 0; color: #cbeaff; font-size: 14px; text-align: start; justify-content: flex-start; box-shadow: none; }
  .site-nav .header-products a + a, html[dir="rtl"] .site-nav .header-products a + a { border-left: 0; border-right: 0; border-top: 1px solid #ffffff12; }
  .language-panel { max-height: calc(100dvh - 90px); }
  .language-toggle { min-height: 34px; }
  .product-switch, html[dir="rtl"] .product-switch { top: 64px; }
  .product-switch-label { display: none; }
  .product-page section[id] { scroll-margin-top: 168px; }
}
@media (max-width: 820px) {
  html[dir="rtl"] .hero-character { left: calc(50% - 310px); right: auto; }
  html[dir="rtl"] .intro-copy { padding-right: 30px; }
}
@media (max-width: 620px) {
  .nav-wrap { padding-inline: 14px; }
  .header-tools { gap: 12px; }
  .language-toggle { padding: 6px 7px; gap: 5px; }
  .language-toggle > svg { width: 16px; height: 16px; }
  .brand-copy small { font-size: 7px; }
  .language-panel { padding: 14px; }
  html:not(:lang(zh)) .hero h1 { font-size: 36px; }
  html:not(:lang(zh)) .product-hero h1.product-name { font-size: 36px; }
  .hero .button, .product-hero .button { max-width: 100%; white-space: normal; }
  .section h2 { line-height: 1.22; }
  html[dir="rtl"] .hero-character { left: 0; right: auto; }
  html[dir="rtl"] .hero-sticker { left: 16%; right: auto; }
  html[dir="rtl"] .intro-copy { border: 0; padding: 0; }
  .product-tag-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .feature-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { max-width: 100%; }
}
@media (max-width: 360px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand { gap: 7px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 6px; }
  .header-tools { gap: 8px; }
  .language-toggle { font-size: 11px; }
}
