.language-switch {
  position: relative;
  flex-shrink: 0;
}
.language-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: #1e293b;
  font: 500 12px Inter, sans-serif;
  padding: 10px 0;
  cursor: pointer;
  white-space: nowrap;
}
.language-trigger > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.language-trigger > .language-chevron {
  width: 10px;
  height: 10px;
  stroke: #68788f;
}
.language-trigger:hover,
.language-trigger[aria-expanded='true'] {
  color: #3264f5;
}
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e1e8f4;
  border-radius: 11px;
  box-shadow: 0 12px 35px #223d6b18;
  z-index: 100;
}
.language-options[hidden] {
  display: none;
}
.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  font: 400 13px Inter, sans-serif;
  color: #42536b;
  cursor: pointer;
}
.language-options a span {
  visibility: hidden;
  color: #3264f5;
}
.language-options a[aria-pressed='true'] {
  color: #3264f5;
  background: #f2f6ff;
}
.language-options a[aria-pressed='true'] span {
  visibility: visible;
}
.language-options a:hover {
  background: #f4f7fc;
}
.language-switch button:focus-visible {
  outline: 2px solid #8eb0fc;
  outline-offset: 3px;
}
header .nav-actions {
  gap: 18px;
}
html[lang='en'] .hero-copy h1 {
  font-size: clamp(32px, 3.1vw, 58px);
  line-height: 1.2;
}
html[lang='en'] .hero-copy h1 em {
  max-width: 100%;
  white-space: normal;
}
html[lang='en'] .hero-copy > p {
  font-size: 15px;
  line-height: 1.8;
}
html[lang='en'] .hero-pill {
  font-size: 11px;
}
html[lang='en'] .popular-copy h3,
html[lang='en'] .popular-network .popular-copy .network-section-head h2 {
  white-space: normal;
}
html[lang='en'] header #nav {
  gap: 17px;
}
html[lang='en'] .choice-specs > div {
  grid-template-columns: 76px minmax(0, 1fr);
}
html[lang='en'] .location-row small {
  font-size: 8px;
}
html[lang='en'] .blue-card > strong {
  font-size: 16px;
}
html[lang='en'] .connect-copy > strong {
  font-size: 13px;
  white-space: normal;
}
html[lang='en'] .globe-node-label > span {
  white-space: nowrap;
  font-size: 9px;
}
html[lang='en'] .globe-country-list button {
  white-space: normal;
  font-size: 10px;
  line-height: 1.4;
}
html[lang='en'] .choice-card.product p.choice-description {
  min-height: 64px;
}
html[lang='en'] .technology-strengths strong {
  font-size: 14px;
}
@media (max-width: 1450px) {
  html[lang='en'] header .logo small {
    display: none;
  }
}
@media (max-width: 1200px) {
  header .nav-actions {
    gap: 12px;
  }
  .language-trigger {
    font-size: 11px;
    gap: 4px;
  }
  html[lang='en'] header #nav {
    gap: 13px;
  }
}
@media (max-width: 950px) {
  .language-current {
    display: none;
  }
  .language-trigger > svg {
    width: 18px;
    height: 18px;
  }
  .language-trigger > .language-chevron {
    width: 9px;
    height: 9px;
  }
}
@media (max-width: 760px) {
  header .nav-actions {
    gap: 12px;
  }
  .language-options {
    right: -30px;
  }
  .language-trigger {
    padding: 10px 2px;
  }
  html[lang='en'] .hero-copy h1 {
    font-size: clamp(29px, 7.5vw, 40px);
  }
  html[lang='en'] .hero-copy > p {
    font-size: 13px;
  }
  html[lang='en'] .hero-buttons {
    gap: 15px;
  }
  html[lang='en'] .hero-buttons .btn {
    font-size: 11px;
  }
  html[lang='en'] .popular-copy h3 {
    font-size: 22px;
  }
  html[lang='en'] .popular-network .popular-copy .network-section-head h2 {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  header .nav-actions > a:not(.btn) {
    display: none;
  }
  header .nav-actions {
    margin-left: auto;
    gap: 13px;
  }
}

/* Compact language popover, consistent with the blue and white navigation. */
.language-options {
  min-width: 168px;
  padding: 7px;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  box-shadow: 0 8px 28px #243b6414, 0 2px 6px #243b6406;
  transform-origin: top right;
  animation: language-menu-in 0.16s ease-out;
}
.language-options a {
  min-height: 40px;
  padding: 10px 12px;
  gap: 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  color: #475569;
  transition: background 0.16s, color 0.16s;
}
.language-options a + button {
  margin-top: 3px;
}
.language-options a[aria-pressed='true'] {
  background: #eef3ff;
  color: #3264f5;
  font-weight: 600;
}
.language-options a:hover {
  background: #f3f6fc;
  color: #3264f5;
}
.language-options a span {
  font-size: 14px;
  font-weight: 600;
}
.language-switch button:focus-visible {
  outline: 1px solid #93afff;
  outline-offset: -2px;
}
.language-chevron {
  transition: transform 0.18s;
}
.language-trigger[aria-expanded='true'] .language-chevron {
  transform: rotate(180deg);
}
@keyframes language-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-options {
    animation: none;
  }
  .language-chevron {
    transition: none;
  }
}

.language-options a { text-decoration: none; box-sizing: border-box; }

/* 前台顶部账号入口限制长用户名宽度，避免挤占导航和语言菜单。 */
header .web-account-link { display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:180px; }
header .web-account-link svg { flex-shrink:0; }
header .web-account-link span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(max-width:760px) { header .web-account-link { max-width:110px;gap:5px; } }

/* 顶部认证入口使用紧凑的双按钮层级，不继承内容区大按钮的立体高光。 */
header .nav-actions > .web-login-link,
header .nav-actions > .web-account-link,
header .nav-actions > .web-auth-primary {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  height:38px;min-height:38px;padding:0 17px;border-radius:9px;font-size:14px;
  font-weight:500;line-height:1;white-space:nowrap;text-decoration:none;flex-shrink:0;
}
header .nav-actions > .web-login-link { border:0;background:transparent;color:#52627d;padding:0 2px;margin-right:0; }
header .nav-actions > .web-login-link:hover { background:transparent;color:#345ff4; }
header .nav-actions > .web-auth-primary {
  gap:10px;border:1px solid #345ff4;background:#fff;color:#345ff4;
  box-shadow:none;min-width:110px;transform:none;
}
header .nav-actions > .web-auth-primary::before,
header .nav-actions > .web-auth-primary::after { display:none; }
header .nav-actions > .web-auth-primary b { font-size:16px;font-weight:400;line-height:1; }
header .nav-actions > .web-auth-primary:hover { background:#f4f7ff;border-color:#284fd6;color:#284fd6;box-shadow:none;transform:none; }
header .nav-actions > .web-account-link { padding:0 10px;color:#52627d;margin-right:-12px;gap:7px; }
header .nav-actions > .web-login-link:focus-visible,
header .nav-actions > .web-account-link:focus-visible,
header .nav-actions > .web-auth-primary:focus-visible { outline:3px solid #b8c9ff;outline-offset:3px; }
@media(max-width:760px) {
 header .nav-actions > .web-login-link,header .nav-actions > .web-auth-primary { height:36px;min-height:36px;padding:0 12px;font-size:13px;border-radius:8px; }
 header .nav-actions > .web-auth-primary { min-width:0;gap:8px; }
 header .nav-actions > .web-login-link,header .nav-actions > .web-account-link { margin-right:0; }
}
@media(max-width:480px) { header .nav-actions > .web-auth-primary b { display:none; } }

/* 文字登录入口与主按钮留出20px间距。 */
header .nav-actions > .web-login-link + .web-auth-primary { margin-left:0; }

