/* 站点统一导航栏（.site-header / .site-nav / .lang-switch）
 *
 * 为什么单独一个文件：首页/定价/FAQ/角色页原本各有自己的 header 样式，
 * 统一导航换上去之后这些 class 没有对应规则，语言切换器会挤成
 * "English中文繁體中文日本語한국어…" 一行——所以这里补一份最小样式，
 * 只作用于导航，不碰页面其余部分。
 */

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.4;
}

.site-header .brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  margin-right: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
}

/* 语言切换器：小号字 + 明确间距，排不下时换行，不再糊成一串 */
.site-header .lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.5;
}

/* 定价/FAQ 旧页面里有 `header .lang-switch a:not([aria-current]) { display:none }`，
   那是给"窄屏只显示当前语言"用的。现在导航栏统一列出全部语言，
   用更高优先级把显示恢复回来。 */
.site-header .lang-switch a[href] {
  display: inline-block;
}

.site-header .site-nav {
  margin-left: 0;
}

.site-header .lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  padding: 2px 2px;
  white-space: nowrap;
}

.site-header .lang-switch a:hover {
  opacity: 1;
}

.site-header .lang-switch a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* 语言下拉框：原生 select，键盘可用、移动端可点，选项用语言本地名。 */
.site-header .lang-select {
  margin-left: auto;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 32px 5px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.site-header .lang-select:hover,
.site-header .lang-select:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .site-header .lang-switch {
    margin-left: 0;
    width: 100%;
    gap: 8px;
    font-size: 12px;
  }

  .site-header .lang-select {
    margin-left: 0;
  }
}
