/* ==========================================================================
   语言切换控件（地球图标 + 下拉菜单）
   中文站与英文站共用；可扩展任意语言版本（往 .lang-menu__panel 里加一行即可）。
   ========================================================================== */

.lang-menu {
  position: relative;
  display: inline-flex;
  flex: none;
  vertical-align: middle;
}

/* 地球图标按钮 */
.lang-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 19, 24, .12);
  background: rgba(20, 19, 24, .04);
  color: #55504a;
  cursor: pointer;
  line-height: 0;
  transition: color .18s ease, background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

.lang-menu__btn:hover,
.lang-menu__btn[aria-expanded="true"] {
  color: var(--ink, #141318);
  background: #fff;
  border-color: rgba(20, 19, 24, .18);
  box-shadow: 0 2px 8px rgba(20, 19, 24, .1);
}

.lang-menu__btn svg {
  width: 19px;
  height: 19px;
}

.lang-menu__btn[aria-expanded="true"] svg {
  transform: rotate(12deg);
}

/* 下拉面板 */
.lang-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 148px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(20, 19, 24, .08);
  box-shadow: 0 10px 30px rgba(20, 19, 24, .16), 0 2px 8px rgba(20, 19, 24, .08);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #55504a;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.lang-menu__item::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.lang-menu__item:hover {
  color: var(--ink, #141318);
  background: rgba(20, 19, 24, .05);
  text-decoration: none;
}

.lang-menu__item.is-on {
  color: var(--ink, #141318);
  font-weight: 650;
}

.lang-menu__item.is-on::before {
  background: #e8552f;
}

/* 与主 CTA 的间距（窄桌面同样适用） */
.nav__actions .lang-menu { margin-left: 10px; }
@media (max-width: 1180px) {
  .nav__actions .lang-menu { margin-left: 6px; }
}

/* 移动端抽屉内：面板改为文档流展开，避免被滚动容器裁剪 */
.mobile__scroll .lang-menu,
.mobile .lang-menu {
  width: 100%;
  margin: 4px 0 12px;
}

.mobile__scroll .lang-menu__btn {
  width: 42px;
  height: 42px;
}

.mobile__scroll .lang-menu__btn svg {
  width: 21px;
  height: 21px;
}

.mobile__scroll .lang-menu__panel,
.mobile .lang-menu__panel {
  position: static;
  margin-top: 10px;
  min-width: 0;
  width: 100%;
}

.mobile__scroll .lang-menu__item,
.mobile .lang-menu__item {
  padding: 12px 14px;
  font-size: 14.5px;
}
