/* ============================================
   AoliDeli — Language Switcher + Chinese typography
   ============================================ */

/* ---------- EN | 中 pill switcher ---------- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 14px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(45, 90, 39, 0.18);
  border-radius: 50px;
  box-shadow: 0 1px 4px rgba(45, 90, 39, 0.08);
  z-index: 1002;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav.scrolled .lang-switch {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(45, 90, 39, 0.22);
}
.lang-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 4px 13px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.2;
  color: rgba(45, 90, 39, 0.55);
  transition: color 0.3s ease;
}
.lang-btn:hover { color: rgba(45, 90, 39, 0.85); }
.lang-btn.active { color: #fff; }
.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--green, #2D5A27);
  border-radius: 50px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switch[data-lang="zh"] .lang-thumb { transform: translateX(100%); }

/* Keep nav links pinned right (switcher sits beside them) */
.nav-links { margin-left: auto; }

/* Mobile: switcher stays visible beside the hamburger */
@media (max-width: 800px) {
  .lang-switch { margin-left: auto; margin-right: 6px; }
  .lang-btn { padding: 4px 11px; }
}

/* ---------- Chinese typography (clean, modern) ---------- */
html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] select,
html[lang="zh-CN"] textarea {
  font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4,
html[lang="zh-CN"] .section-title {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
html[lang="zh-CN"] .hero-content h1 { line-height: 1.25; }
html[lang="zh-CN"] .hero-content h1 em { font-style: normal; }
html[lang="zh-CN"] .nav-logo,
html[lang="zh-CN"] .footer-brand .nav-logo {
  /* brand logo stays as-is */
  font-family: 'Playfair Display', Georgia, serif;
}
html[lang="zh-CN"] .hero-desc,
html[lang="zh-CN"] .box-card p,
html[lang="zh-CN"] .article-card p,
html[lang="zh-CN"] .interact-box p,
html[lang="zh-CN"] .footer p {
  line-height: 1.75;
}
