/* ==========================================================================
   Blue Planet - 语言切换器样式
   下拉菜单：默认隐藏，点击 toggle 展开，点击外部收起
   ========================================================================== */

.bp-lang-switcher {
  position: relative;
  display: inline-block;
}

.bp-lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f4f7fa;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #143852;
  cursor: pointer;
  transition: all .18s ease;
  outline: none;
}

.bp-lang-switcher__toggle:hover {
  background: #eef2f7;
  border-color: #143852;
}

.bp-lang-switcher__toggle:focus {
  box-shadow: 0 0 0 2px rgba(20, 56, 82, .22);
}

.bp-lang-switcher__caret {
  font-size: 12px;
  transition: transform .18s ease;
}

.bp-lang-switcher__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: all .2s ease;
}

.bp-lang-switcher__menu.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.bp-lang-switcher__menu li {
  margin: 0;
}

.bp-lang-switcher__menu a {
  display: block;
  padding: 8px 12px;
  color: #143852;
  text-decoration: none;
  font-size: 14px;
  transition: all .18s ease;
}

.bp-lang-switcher__menu a:hover,
.bp-lang-switcher__menu a.is-active {
  background: #f4f7fa;
  color: #143852;
}

.bp-lang-switcher__menu a.is-active {
  font-weight: 600;
}

/* --- mobile ----------------------------------------------------------- */
@media (max-width: 768px) {
  .bp-lang-switcher__toggle {
    padding: 6px 10px;
  }

  .bp-lang-switcher__menu {
    min-width: 120px;
  }
}
