/* 语言切换组件通用样式 */
.lang-menu a[data-current="true"] {
  font-weight: 600;
  color: #2563eb; /* tailwind: text-blue-600 */
}

#desktop-language-toggle .current-flag {
  margin-right: 6px;
}


html[dir="rtl"] body {
  direction: rtl;
}

/* 固定桌面语言切换按钮宽度，避免顶部图标位移 */
#desktop-language-toggle {
  width: 9.5rem; /* ~152px，适配较长语言名 */
  min-width: 9.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 防止内部文字换行，保持旗帜与箭头间距稳定 */
#desktop-language-toggle .current-flag,
#desktop-language-toggle .fa,
#desktop-language-toggle span {
  white-space: nowrap;
}

/* 移动端圆形图标中，旗帜稍微放大以匹配视觉比例 */
#mobile-language-toggle .current-flag {
  font-size: 1.125rem;
}

/* 语言弹窗（移动端）当前项高亮与尺寸优化 */
#language-modal a[data-current="true"] {
  background-color: rgba(37, 99, 235, 0.10);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.3);
}
#language-modal a[data-current="true"]::after {
  content: "\2713"; /* ✓ */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 0.95rem;
}
#language-modal .fi { font-size: 1.25rem; }
#language-modal a[data-lang] {
  position: relative;
  line-height: 1.75;
  padding-right: 2rem; /* 为右侧勾选预留空间 */
}