/**
 * 多语言站 en/tw/ja/de/es/fr/hi/it/pt/ru — 移动端微调
 * 2026-07-06
 */

@media (max-width: 640px) {
  html[lang="en"] .dropdown-content,
  html[lang="zh-TW"] .dropdown-content,
  html[lang="ja"] .dropdown-content,
  html[lang="de"] .dropdown-content,
  html[lang="es"] .dropdown-content,
  html[lang="fr"] .dropdown-content,
  html[lang="hi"] .dropdown-content,
  html[lang="it"] .dropdown-content,
  html[lang="pt"] .dropdown-content,
  html[lang="ru"] .dropdown-content {
    max-width: min(100vw - 1.5rem, 320px);
  }

  html[lang="en"] .leda-footer__i18n-grid,
  html[lang="zh-TW"] .leda-footer__i18n-grid,
  html[lang="ja"] .leda-footer__i18n-grid,
  html[lang="de"] .leda-footer__i18n-grid,
  html[lang="es"] .leda-footer__i18n-grid,
  html[lang="fr"] .leda-footer__i18n-grid,
  html[lang="hi"] .leda-footer__i18n-grid,
  html[lang="it"] .leda-footer__i18n-grid,
  html[lang="pt"] .leda-footer__i18n-grid,
  html[lang="ru"] 

  html[lang="en"] .compare-table,
  html[lang="en"] table,
  html[lang="zh-TW"] .compare-table,
  html[lang="zh-TW"] table,
  html[lang="ja"] .compare-table,
  html[lang="ja"] table,
  html[lang="de"] .compare-table,
  html[lang="de"] table,
  html[lang="es"] .compare-table,
  html[lang="es"] table,
  html[lang="fr"] .compare-table,
  html[lang="fr"] table,
  html[lang="hi"] .compare-table,
  html[lang="hi"] table,
  html[lang="it"] .compare-table,
  html[lang="it"] table,
  html[lang="pt"] .compare-table,
  html[lang="pt"] table,
  html[lang="ru"] .compare-table,
  html[lang="ru"] table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[lang="en"] .grid[class*="minmax(300px"],
  html[lang="zh-TW"] .grid[class*="minmax(300px"],
  html[lang="ja"] .grid[class*="minmax(300px"],
  html[lang="de"] .grid[class*="minmax(300px"],
  html[lang="es"] .grid[class*="minmax(300px"],
  html[lang="fr"] .grid[class*="minmax(300px"],
  html[lang="hi"] .grid[class*="minmax(300px"],
  html[lang="it"] .grid[class*="minmax(300px"],
  html[lang="pt"] .grid[class*="minmax(300px"],
  html[lang="ru"] .grid[class*="minmax(300px"] {
    grid-template-columns: minmax(min(100%, 260px), 1fr) !important;
  }
}

html[lang="en"] .leda-footer__seo,
html[lang="zh-TW"] .leda-footer__seo,
html[lang="ja"] .leda-footer__seo,
html[lang="de"] .leda-footer__seo,
html[lang="es"] .leda-footer__seo,
html[lang="fr"] .leda-footer__seo,
html[lang="hi"] .leda-footer__seo,
html[lang="it"] .leda-footer__seo,
html[lang="pt"] .leda-footer__seo,
html[lang="ru"] .leda-footer__seo {
  line-height: 1.65;
  font-size: 0.875rem;
}

html[lang="en"] a[lang="zh-CN"]::after,
html[lang="zh-TW"] a[lang="zh-CN"]::after,
html[lang="ja"] a[lang="zh-CN"]::after,
html[lang="de"] a[lang="zh-CN"]::after,
html[lang="es"] a[lang="zh-CN"]::after,
html[lang="fr"] a[lang="zh-CN"]::after,
html[lang="hi"] a[lang="zh-CN"]::after,
html[lang="it"] a[lang="zh-CN"]::after,
html[lang="pt"] a[lang="zh-CN"]::after,
html[lang="ru"] a[lang="zh-CN"]::after {
  content: "";
}

/* i18n fec.html：legacy .hero 与目录页对齐（v20260729） */
body[data-page="fec-directory"] .hero {
  background: #F6F6FB !important;
  border-bottom: 1px solid #DEE0E3;
  color: #1F2329 !important;
  padding: 1.25rem 0 !important;
  margin-bottom: 0 !important;
}

body[data-page="fec-directory"] .hero h1,
body[data-page="fec-directory"] .hero h1 a {
  color: #111827 !important;
  font-size: clamp(1.25rem, 4vw, 1.5rem) !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body[data-page="fec-directory"] .hero p {
  color: #64748b !important;
  font-size: 0.875rem !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body[data-page="fec-directory"] .hero-button.primary {
  background: #fff !important;
  color: #374151 !important;
  border: 1px solid #DEE0E3 !important;
  box-shadow: none !important;
}

body[data-page="fec-directory"] .hero-button.primary:hover {
  border-color: rgba(51, 112, 255, 0.45) !important;
  color: #1D4ED8 !important;
}

body[data-page="fec-directory"]:not(:has(.fec-step-bar)) .nav-container {
  top: var(--lc-page-offset, 91px) !important;
}
