/* ============================================================
   i18n 语言切换器 + 补充样式
   ============================================================ */
.lang-switch {
  position: relative;
  margin-left: 10px;
}
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13.5px; font-family: inherit;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  transition: .2s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.lang-btn .caret { font-size: 10px; opacity: .7; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 150px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  padding: 6px; display: none; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-2); transition: .15s;
}
.lang-menu a:hover { background: rgba(30,144,255,.12); color: #fff; }
.lang-menu a.active { color: var(--brand); font-weight: 600; }
.lang-menu a .flag { font-size: 15px; line-height: 1; }

@media (max-width: 960px) {
  .lang-switch { position: static; margin-left: 0; width: 100%; }
  .lang-btn { width: 100%; justify-content: space-between; margin-top: 8px; }
  .lang-menu {
    position: static; box-shadow: none; margin-top: 6px;
    background: transparent; border: none; padding: 0;
  }
  .lang-menu a { padding-left: 20px; }
}
