/* lalogo.cn — typography for Chinese and Uyghur, right-to-left layout for Uyghur (ئۇيغۇرچە).
   Loaded after main.css (site.extraCss); lalogo.uz never loads this file. No webfonts: CJK and Uyghur use system fonts. */

/* ---------- Chinese ---------- */
:root { --font: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'WenQuanYi Micro Hei', system-ui, -apple-system, Arial, sans-serif; }
html:lang(zh) body { line-height: 1.75; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3, html:lang(zh) h4 { letter-spacing: 0; line-height: 1.35; }
html:lang(zh) .eyebrow, html:lang(zh) .mega__title, html:lang(zh) .filter__title, html:lang(zh) .footer__title, html:lang(zh) .pcard__cat, html:lang(zh) .product__series, html:lang(zh) .keyspecs dt, html:lang(zh) .ccard-contact small, html:lang(zh) .project-list__sector { letter-spacing: .06em; }
html:lang(zh) .hero h1 { line-height: 1.3; }
html:lang(zh) .prose p, html:lang(zh) .prose li { text-align: justify; }

/* ---------- Uyghur: script ---------- */
html:lang(ug) { --font: 'UKIJ Tuz', 'UKIJ Tuz Tom', 'UKIJ Basma', 'ALKATIP Basma Tom', 'ALKATIP Tor', 'Microsoft Uighur', 'Noto Sans Arabic', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, 'Geeza Pro', Arial, sans-serif; }
html:lang(ug) body { font-size: 17px; line-height: 1.95; }
html:lang(ug) *, html:lang(ug) *::before, html:lang(ug) *::after { letter-spacing: 0 !important; } /* letter-spacing breaks the joining of Arabic-script letters */
html:lang(ug) .eyebrow, html:lang(ug) .mega__title, html:lang(ug) .filter__title, html:lang(ug) .footer__title, html:lang(ug) .pcard__cat, html:lang(ug) .product__series, html:lang(ug) .keyspecs dt, html:lang(ug) .ccard-contact small, html:lang(ug) .project-list__sector, html:lang(ug) .socials--big a { text-transform: none; font-size: .9rem; }
html:lang(ug) h1, html:lang(ug) h2, html:lang(ug) h3, html:lang(ug) h4 { line-height: 1.6; }
html:lang(ug) .btn { line-height: 1.5; }
/* Latin-script fragments inside Uyghur text (model codes, units) keep the Latin UI font */
html:lang(ug) .pcard__model, html:lang(ug) .logo, html:lang(ug) [lang='zh-CN'], html:lang(ug) [lang='en'] { font-family: 'Roboto', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }

/* ---------- Uyghur: right-to-left layout ---------- */
[dir='rtl'] ul, [dir='rtl'] ol { padding-left: 0; padding-right: 1.2em; }
[dir='rtl'] .skip { left: auto; right: -999px; }
[dir='rtl'] .skip:focus { right: 8px; }
[dir='rtl'] .note { border-left: 0; border-right: 3px solid var(--c-accent); padding-left: 0; padding-right: 12px; }
[dir='rtl'] .badge { right: auto; left: -4px; }
[dir='rtl'] .lang__menu { right: auto; left: 0; }
[dir='rtl'] .search input { padding: 10px 16px 10px 44px; }
[dir='rtl'] .search button { right: auto; left: 4px; }
[dir='rtl'] .search__results strong { margin-right: 0; margin-left: 6px; }
[dir='rtl'] .header__actions { margin-left: 0; margin-right: auto; }
[dir='rtl'] .mega { left: auto; right: 0; }
[dir='rtl'] .mega__featured { border-left: 0; padding-left: 0; border-right: 1px solid var(--c-line); padding-right: 24px; }
[dir='rtl'] .hero__overlay { background: linear-gradient(260deg, rgba(41,29,94,.94) 0%, rgba(41,29,94,.82) 45%, rgba(67,55,121,.55) 100%); }
[dir='rtl'] .hero__media { transform: rotate(1.5deg); }
[dir='rtl'] .page-hero::before { background: linear-gradient(270deg, rgba(41,29,94,.95), rgba(41,29,94,.7)); }
[dir='rtl'] .breadcrumbs li + li::before { content: '‹'; margin-right: 0; margin-left: 6px; }
[dir='rtl'] .chip span { margin-left: 0; margin-right: 4px; }
[dir='rtl'] .prose blockquote { border-left: 0; border-right: 4px solid var(--c-accent); border-radius: 8px 0 0 8px; }
[dir='rtl'] .prose th, [dir='rtl'] .prose td, [dir='rtl'] .spec__table tbody th, [dir='rtl'] .vcard { text-align: right; }
[dir='rtl'] .value { border-left: 0; border-right: 4px solid var(--c-accent); border-radius: var(--radius) 0 0 var(--radius); }
[dir='rtl'] .vcard__no { margin-right: 0; margin-left: 8px; }
[dir='rtl'] .form__hp { left: auto; right: -9999px; }
[dir='rtl'] .floating { right: auto; left: 18px; }
[dir='rtl'] .cookie { left: auto; right: 18px; }
[dir='rtl'] .drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
[dir='rtl'] .drawer.is-open .drawer__panel { transform: none; }
[dir='rtl'] .drawer__list li { padding: 6px 12px 6px 6px; }
[dir='rtl'] .lightbox__close { right: auto; left: 16px; }
[dir='rtl'] .lightbox__nav--prev { left: auto; right: 14px; transform: translateY(-50%) scaleX(-1); }
[dir='rtl'] .lightbox__nav--next { right: auto; left: 14px; transform: translateY(-50%) scaleX(-1); }
[dir='rtl'] .ic--flip { transform: scaleX(-1); } /* arrows and chevrons point the other way */
/* phone numbers, e-mail addresses and purely technical values keep their left-to-right order */
[dir='rtl'] a[href^='tel:'], [dir='rtl'] a[href^='mailto:'] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir='rtl'] .pcard__specs li, [dir='rtl'] .keyspecs dd, [dir='rtl'] .model-strip__seg strong, [dir='rtl'] .search__results strong, [dir='rtl'] .pcard__model { unicode-bidi: plaintext; }
/* parameter tables read like the printed data sheets: left to right, scroll area starting at the first column;
   cells keep LTR order so "6 / 6.3 / 10" is not reversed, Uyghur header words still shape correctly */
[dir='rtl'] .spec .table-scroll, [dir='rtl'] .spec__table, [dir='rtl'] .spec__table td, [dir='rtl'] .spec__table th { direction: ltr; }
[dir='rtl'] .spec__table tbody th { text-align: left; }
[dir='rtl'] input[type='tel'], [dir='rtl'] input[type='email'] { direction: ltr; text-align: right; }

@media (max-width: 1100px) {
  [dir='rtl'] .nav { right: auto; left: 0; transform: translateX(-100%); }
  [dir='rtl'] .nav.is-open { transform: none; }
  [dir='rtl'] .nav__head { padding: 12px 20px 12px 12px; }
}
@media (max-width: 640px) {
  [dir='rtl'] .lightbox__nav--prev { right: 4px; left: auto; }
  [dir='rtl'] .lightbox__nav--next { left: 4px; right: auto; }
  [dir='rtl'] .floating { left: 12px; right: auto; }
  [dir='rtl'] .cookie { right: 12px; left: 12px; }
}

/* ---------- cn-only components ---------- */
.floating__btn--call { background: #1e8a52; }
.floating__btn--call + .floating__btn--call { background: #176aa0; }
.share__text { width: auto !important; height: 40px; padding: 0 14px; border-radius: 999px !important; font-size: .85rem; font-weight: 600; }
.footer__icp { color: inherit; opacity: .85; margin-inline-start: 10px; }
.footer__icp:hover { opacity: 1; color: #fff; }
.topbar__link bdi { font-weight: 600; }
.regions { align-items: stretch; }
.region { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.region h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin-bottom: .5em; }
.region h3 .ic { color: var(--c-accent-text); flex: none; }
.region p { margin: 0 0 12px; font-size: .95rem; color: var(--c-text); }
.region__tags { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.region__tags li { font-size: .78rem; background: var(--c-primary-soft); color: var(--c-primary); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.prose-wrap { max-width: 900px; }

/* RTL fixes found in screenshots: the logo SVG text and numbers with units keep left-to-right order */
[dir='rtl'] .logo, [dir='rtl'] .logo__svg { direction: ltr; }
[dir='rtl'] .counter__value { direction: ltr; unicode-bidi: isolate; }
.region .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* review fixes: tab panels stay in the HTML for Baidu and are hidden only when JavaScript runs; project source badge */
.js .tabs__panel[data-js-hidden] { display: none; }
.project-list__source { font-size: .72rem; font-weight: 600; color: var(--c-muted); border: 1px solid var(--c-line); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
