:root {
  --i18n-ink: #071f3d;
  --i18n-muted: #52677e;
  --i18n-accent: #06a8cc;
  --i18n-line: #d9e3ec;
  --i18n-soft: #f2f6fa;
}

.i18n-page {
  color: var(--i18n-ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.i18n-page [dir="ltr"],
.i18n-page bdi,
html[dir="rtl"] .notranslate {
  direction: ltr;
  unicode-bidi: isolate;
}

.i18n-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.i18n-switcher {
  position: relative;
  z-index: 40;
  min-width: 8.75rem;
}

.i18n-switcher summary {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--i18n-ink);
  cursor: pointer;
  display: flex;
  box-sizing: border-box;
  font: inherit;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  list-style: none;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.i18n-switcher summary::-webkit-details-marker { display: none; }
.i18n-switcher summary::after { background: url("/assets/images/shop/icons/chevron-down.svg") center / contain no-repeat; content: ""; height: .75rem; margin-inline-start: .05rem; transition: transform .18s ease; width: .75rem; }
.i18n-switcher[open] summary::after { transform: rotate(180deg); }
.i18n-switcher summary:hover,
.i18n-switcher summary:focus-visible,
.i18n-switcher[open] summary { background: #eaf2f8; border-color: #c8d9e7; }
.i18n-switcher summary img { height: 1.15rem; width: 1.15rem; }

.i18n-switcher ul {
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: .9rem;
  box-shadow: 0 18px 44px rgb(7 31 61 / 18%);
  display: grid;
  inset-block-start: calc(100% + .4rem);
  inset-inline-end: 0;
  list-style: none;
  margin: 0;
  min-width: 16rem;
  padding: .55rem;
  position: absolute;
}

.i18n-switcher li { margin: 0; }
.i18n-switcher .i18n-switcher-title { border-bottom: 1px solid var(--i18n-line); color: var(--i18n-ink); font-weight: 800; margin: 0 0 .35rem; padding: .75rem .9rem; }
.i18n-switcher li a {
  color: var(--i18n-ink) !important;
  border-radius: .65rem;
  display: flex;
  justify-content: space-between;
  padding: .72rem .9rem;
  text-align: start;
  text-decoration: none;
}
.i18n-switcher li a::after { display: none !important; }

.i18n-switcher li a:hover,
.i18n-switcher li a:focus-visible,
.i18n-switcher li a[aria-current="page"] { background: #e8f7fb; color: #005f82 !important; }
.i18n-switcher li a[aria-current="page"]::before { align-self: center; background: #086bad; border-radius: 50%; content: ""; height: .5rem; margin-inline-start: 1rem; order: 2; width: .5rem; }
.i18n-switcher li a[data-translation-fallback="true"]::after { content: " · EN"; color: #63798f; font-size: .75em; }

.i18n-floating-switcher {
  inset-block-start: 5.5rem;
  inset-inline-end: 1rem;
  position: fixed;
  z-index: 45;
}

.i18n-hero {
  background: linear-gradient(135deg, #061b35 0%, #0a365d 100%);
  color: #fff;
  min-height: 31rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.i18n-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
}

.i18n-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: .7rem 0 1.25rem;
  max-width: 14ch;
}

.i18n-hero p:not(.zq-kicker) { color: #c6d8e8; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.75; max-width: 48rem; }
.i18n-hero img { background: #fff; border: 1px solid rgb(255 255 255 / 20%); height: auto; max-height: 30rem; object-fit: contain; width: 100%; }

.i18n-breadcrumb { align-items: center; color: #b7d0e5; display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; margin-block-end: 2rem; }
.i18n-breadcrumb a { color: #e6f5ff; }

.i18n-section { padding: clamp(3.8rem, 7vw, 7rem) 0; }
.i18n-section-soft { background: var(--i18n-soft); }
.i18n-section-dark { background: #071f3d; color: #fff; }
.i18n-section-dark h2 { color: #fff; }
.i18n-section-heading { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-block-end: 2rem; }
.i18n-section-heading h2 { font-size: clamp(2rem, 4vw, 3.8rem); margin: .4rem 0 0; }
.i18n-section-heading > p { color: var(--i18n-muted); max-width: 42rem; }

.i18n-grid { display: grid; gap: 1.25rem; }
.i18n-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.i18n-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.i18n-card { background: #fff; border: 1px solid var(--i18n-line); display: flex; flex-direction: column; min-width: 0; }
.i18n-card-media { align-items: center; aspect-ratio: 4 / 3; background: #f5f8fb; display: flex; justify-content: center; overflow: hidden; }
.i18n-card-media:empty::before { color: #70859a; content: "ZHIQI ELECTRIC"; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.i18n-card-media img { height: 100%; object-fit: contain; padding: 1rem; width: 100%; }
.i18n-card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.i18n-card-copy h2 { font-size: 1.25rem; line-height: 1.3; margin: .3rem 0 .7rem; }
.i18n-card-copy h2 a { color: var(--i18n-ink); text-decoration: none; }
.i18n-card-copy p:not(.zq-kicker) { color: var(--i18n-muted); line-height: 1.65; }
.i18n-card-action { color: #006b93; font-weight: 800; margin-block-start: auto; padding-block-start: 1rem; text-decoration: none; }

.i18n-link-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.i18n-link-grid a { background: #0c2f55; border: 1px solid #1b4c75; color: #eaf8ff; display: block; font-weight: 700; min-height: 8rem; padding: 1.5rem; text-decoration: none; }
.i18n-prose { max-width: 72rem; }
.i18n-prose h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-block: 2.5rem 1rem; }
.i18n-prose p, .i18n-prose li { color: var(--i18n-muted); font-size: 1.05rem; line-height: 1.8; }
.i18n-note { background: #f0f6fb; border-inline-start: 4px solid var(--i18n-accent); padding: 1rem 1.2rem; }
.i18n-empty { border: 1px dashed #99adbf; color: var(--i18n-muted); padding: 2rem; }

.i18n-product-layout { align-items: start; display: grid; gap: 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.i18n-identification { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 2rem; }
.i18n-identification div { border-block-end: 1px solid var(--i18n-line); padding: 1rem; }
.i18n-identification dt { color: var(--i18n-muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.i18n-identification dd { font-weight: 800; margin: .35rem 0 0; }
.i18n-table-wrap { max-width: 100%; overflow-x: auto; }
.i18n-spec-table { border-collapse: collapse; width: 100%; }
.i18n-spec-table th, .i18n-spec-table td { border-block-end: 1px solid var(--i18n-line); padding: .95rem; text-align: start; vertical-align: top; }
.i18n-spec-table th { background: #f2f6fa; width: 42%; }

.i18n-form-layout { align-items: start; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(16rem, .35fr); }
.i18n-form { margin: 0; }
.i18n-form label { display: grid; gap: .5rem; }
.i18n-form-context { background: #071f3d; color: #fff; padding: 2rem; position: sticky; top: 6rem; }
.i18n-form-context h2 { color: #fff; }
.i18n-form-context dt { color: #8ddff1; font-size: .78rem; font-weight: 800; margin-block-start: 1rem; }
.i18n-form-context dd { margin: .25rem 0 0; }
.i18n-form-context a { color: #fff; display: block; margin-block-start: 1rem; }

.i18n-error { align-items: center; background: #071f3d; color: #fff; display: flex; min-height: 100vh; text-align: center; }
.i18n-error .container { align-items: center; display: flex; flex-direction: column; }
.i18n-error h1 { color: #fff; font-size: clamp(2.5rem, 8vw, 6rem); }
.i18n-error .i18n-switcher { margin-block-end: 3rem; }

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-menu,
html[dir="rtl"] .i18n-breadcrumb,
html[dir="rtl"] .zq-slide-actions,
html[dir="rtl"] .i18n-section-heading { direction: rtl; }
html[dir="rtl"] .i18n-hero-grid,
html[dir="rtl"] .i18n-product-layout,
html[dir="rtl"] .i18n-form-layout { direction: rtl; }
html[dir="rtl"] img,
html[dir="rtl"] svg,
html[dir="rtl"] video { transform: none; }

@media (max-width: 1120px) {
  .i18n-page .menu-toggle { display: inline-flex; margin-left: auto; }
  .i18n-page .nav-menu { align-items: stretch; background: #fff; box-shadow: 0 20px 35px rgb(7 31 61 / 13%); display: none; flex-direction: column; gap: 0; inset: 76px 0 auto; padding: 20px 24px 28px; position: absolute; }
  .i18n-page .nav-menu.is-open,
  .i18n-page .nav-menu.open { display: flex; }
  .i18n-page .nav-menu > a:not(.button) { border-bottom-width: 1px; padding: 13px 0; }
}

@media (max-width: 1050px) {
  .i18n-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i18n-hero-grid, .i18n-product-layout { grid-template-columns: 1fr; }
  .i18n-hero h1 { max-width: 18ch; }
  .i18n-hero img { max-height: 24rem; }
}

@media (max-width: 900px) {
  .nav-inner:has(> .quote-nav-actions) { flex-wrap: wrap; }
  .nav-inner > .quote-nav-actions {
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .i18n-grid-3, .i18n-grid-4, .i18n-link-grid, .i18n-form-layout { grid-template-columns: 1fr; }
  .i18n-section-heading { align-items: start; flex-direction: column; }
  .i18n-identification { grid-template-columns: 1fr; }
  .i18n-switcher { width: 100%; }
  .i18n-switcher summary { justify-content: space-between; }
  .i18n-switcher ul { inset-inline: 0; min-width: 100%; }
  .shop-navigation .i18n-switcher--mobile-relocated { margin-block: .5rem; }
  .i18n-form-context { position: static; }
  .i18n-floating-switcher { inset-block-start: auto; inset-block-end: 1rem; }
}

@media (max-width: 560px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: .65rem;
    padding-block: .7rem;
  }

  .quote-nav-actions {
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .quote-nav-actions > .i18n-switcher {
    flex: 1 1 auto;
    max-width: 11rem;
    min-width: 0;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .i18n-page *, .i18n-page *::before, .i18n-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
