﻿/* ==========================================================================
   lang-switch.css 鈥斺€?涓夌珯璇█鍒囨崲鍣紙涓枃 / English / 袪褍褋褋泻懈泄锛?     路 鑷寘鍚牱寮忥紝涓嶄緷璧栫埗绾у鑸殑绫诲悕锛屼笁濂楀鑸兘鑳界敤
     路 鍥芥棗鐢ㄥ唴鑱?SVG锛屼笉渚濊禆 emoji锛圵indows 涓嶆覆鏌撳浗鏃?emoji锛?     路 瑙︽帶鐩爣 鈮?4px
   ========================================================================== */
.dsl {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.dsl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(245, 246, 248, .82);
  font-size: 13px;
  font-weight: 560;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.dsl-btn:hover,
.dsl-btn:focus-visible {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(217, 154, 91, .55);
  color: #f0c391;
  outline: none;
}
.dsl-flag {
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 2.5px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
  display: block;
}
.dsl-flag svg { display: block; width: 100%; height: 100%; }
.dsl-flag--txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #f0c391;
  background: rgba(217, 154, 91, .24);
}
.dsl-caret {
  flex: none;
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  transition: transform .2s cubic-bezier(.23, 1, .32, 1);
}
.dsl.open .dsl-caret { transform: rotate(180deg); }

/* ---------- 涓嬫媺闈㈡澘 ---------- */
.dsl-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  min-width: 186px;
  padding: 6px;
  display: none;
  z-index: 100010;
  background: rgba(20, 22, 26, .98);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.dsl.open .dsl-panel { display: block; }

.dsl-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(233, 234, 236, .88);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.dsl-opt:hover,
.dsl-opt:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #f0c391;
  outline: none;
}
.dsl-opt[aria-current="true"] {
  background: rgba(217, 154, 91, .14);
  color: #f0c391;
  font-weight: 620;
}
.dsl-opt .dsl-name { flex: 1 1 auto; }
.dsl-opt .dsl-native {
  flex: none;
  font-size: 11.5px;
  color: rgba(245, 246, 248, .38);
}
.dsl-opt[aria-current="true"] .dsl-native { color: rgba(240, 195, 145, .6); }
.dsl-tick {
  flex: none;
  width: 13px;
  height: 13px;
  color: #d99a5b;
}

/* ---------- 淇勮绔欏ご閮紙.hd锛夐噷鐨勯€傞厤 ---------- */
.hd .dsl { margin-left: auto; }
.hd nav + .dsl { margin-left: 18px; }

/* ---------- 绉诲姩绔?---------- */
@media (max-width: 1023px) {
  .dsl-btn { height: 34px; padding: 0 10px 0 8px; font-size: 12.5px; }
  .dsl-btn .dsl-label { display: none; }
  .dsl-flag { width: 20px; height: 13.5px; }
}
@media (max-width: 380px) {
  .dsl-btn { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .dsl-btn, .dsl-caret, .dsl-opt { transition: none; }
}
@media (prefers-contrast: more) {
  .dsl-panel { background: #000; border-color: rgba(255, 255, 255, .4); }
  .dsl-btn { border-color: rgba(255, 255, 255, .45); }
}

