/* =========================================================================
   全站统一语言切换器
   ========================================================================= */
.fs-lang-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.fs-lang {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding: 0 30px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(6, 21, 18, .16);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7674' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #061512;
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.fs-lang:hover { border-color: rgba(6, 21, 18, .28); }
.fs-lang:focus-visible { outline: 2px solid #7fffd4; outline-offset: 2px; }

/* 深色页面（暗房）适配 */
.rx-dark .fs-lang,
[data-page="darkroom"] .fs-lang {
  background-color: transparent;
  border-color: rgba(255, 255, 255, .18);
  color: #f5f5f7;
}

/* 注册页：右上角悬浮 */
.rg-page .fs-lang-wrap {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
}

/* 隐藏旧的各页切换器，保证全站只有一套 */
.site-header .language,
.cf-head .lang,
.rg-page > .rg-main > .rg-lang,
#rx-lang,
.rx-lang {
  display: none !important;
}

@media (max-width: 760px) {
  .fs-lang { height: 30px; font-size: 12px; padding-right: 26px; }
}
