:root {
  --blue: #3A83F7;
  --blue-dark: #1F63D6;
  --navy: #0B1B33;
  --navy-2: #13294A;
  --ink: #142033;
  --muted: #5B6779;
  --line: #E1E6EE;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --latin: "Montserrat", "IBM Plex Sans Arabic", sans-serif;
}

html[lang="en"] { --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="en"] :is(h1, h2, h3, h4, h5) { font-family: var(--latin); letter-spacing: -.01em; }
html[lang="zh-CN"] { --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="zh-CN"] body { line-height: 1.8; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--blue); color: #fff; }

.eyebrow { font-family: var(--latin); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #9CC0FF; text-transform: uppercase; }
.eyebrow--dark { color: var(--blue); font-family: var(--font); letter-spacing: 0; font-size: 15px; text-transform: none; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; }
.nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-color: var(--blue); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); line-height: 1.4; white-space: nowrap; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11,27,51,.94) 0%, rgba(11,27,51,.82) 45%, rgba(11,27,51,.35) 100%); }
html[dir="ltr"] .hero::after { background: linear-gradient(90deg, rgba(11,27,51,.94) 0%, rgba(11,27,51,.82) 45%, rgba(11,27,51,.35) 100%); }
.hero__in { position: relative; z-index: 1; padding: 96px 0 72px; max-width: 1200px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 14px 0 18px; max-width: 760px; }
.hero h1 span { color: #8FB8FF; }
html[lang="en"] .hero h1 { font-size: clamp(30px, 4.3vw, 52px); max-width: 820px; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: #D5DEEC; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); max-width: 620px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 28px; line-height: 1.2; }
.hero__facts span { color: #AFC0D8; font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.head { max-width: 680px; margin-bottom: 40px; }
.head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 10px; }
.head p { color: var(--muted); font-size: 17px; }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--navy); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,27,51,.92) 0%, rgba(11,27,51,.35) 55%, rgba(11,27,51,.05) 100%); }
.cat:hover img { transform: scale(1.05); }
.cat__n { position: absolute; top: 16px; inset-inline-start: 18px; z-index: 1; font-family: var(--latin); font-weight: 700; font-size: 14px; background: var(--blue); padding: 4px 10px; border-radius: 6px; }
.cat__body { position: absolute; inset-inline: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; }
.cat__body strong { font-size: 22px; }
.cat__body em { font-style: normal; font-family: var(--latin); font-size: 13px; color: #B7C7DE; letter-spacing: .02em; }
.cat__count { margin-top: 8px; font-size: 13px; color: #fff; opacity: .85; }

@media (min-width: 1025px) { .cat:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 3 / 1; } }
@media (min-width: 601px) and (max-width: 1024px) { .cat:last-child:nth-child(2n+1) { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }

/* Sub nav */
.subnav { position: sticky; top: 72px; z-index: 20; background: rgba(243,246,250,.96); backdrop-filter: blur(8px); border-block: 1px solid var(--line); margin-bottom: 8px; }
.subnav__in { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .2s; }
.subnav a:hover, .subnav a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Product groups */
.group { padding-top: 48px; scroll-margin-top: 140px; }
.group__head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.group__n { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--latin); font-weight: 700; font-size: 18px; }
.group__head h3 { font-size: 24px; }
.group__head p { color: var(--muted); }
.group__en { margin-inline-start: auto; font-family: var(--latin); font-weight: 600; font-size: 13px; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.product h4 { font-size: 18px; }
.product__en { font-family: var(--latin); font-size: 12.5px; font-weight: 600; color: var(--blue); letter-spacing: .02em; }
.product p:not(.product__en) { color: var(--muted); font-size: 15px; }
.product .btn { margin-top: auto; align-self: flex-start; }
.product__body > p:last-of-type { margin-bottom: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(58,131,247,.12); color: var(--blue); font-family: var(--latin); font-weight: 700; margin-bottom: 14px; }
.steps h4 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Band */
.band { position: relative; color: #fff; padding: 96px 0; overflow: hidden; background: var(--navy); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(11,27,51,.8); }
.band__in { position: relative; z-index: 1; max-width: 680px; }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.band p { color: #D5DEEC; font-size: 17px; margin-bottom: 26px; }
.band .wrap { margin-inline: auto; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 6px; }
.contact__en { font-family: var(--latin); font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.contact__gap { height: 22px; }
.addr-zh { margin-top: 4px; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important; font-weight: 500; color: var(--muted) !important; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(58,131,247,.12); }
.ic svg { width: 20px; height: 20px; fill: var(--blue); }
.contact__list small { display: block; color: var(--muted); font-size: 13px; }
.contact__list a, .contact__list address { font-weight: 600; font-style: normal; display: block; }
.contact__list address { font-family: var(--latin); font-weight: 500; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.contact__list a[dir="ltr"] { font-family: var(--latin); }
html[dir="rtl"] [dir="ltr"] { text-align: right; }
.maplink { color: var(--blue); font-size: 14px; margin-top: 6px; font-weight: 600; }
.contact__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form h3 { font-size: 22px; }
.form > p { color: var(--muted); font-size: 15px; margin-top: -8px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FBFCFE; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(58,131,247,.35); border-color: var(--blue); }
.form__err { color: #C62828; font-size: 14px; }
.form .btn { width: 100%; }

/* Footer */
.footer { background: var(--navy); color: #C6D2E4; padding-top: 60px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer img { height: 46px; width: auto; margin-bottom: 14px; }
.footer p { max-width: 340px; font-size: 15px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer ul { display: grid; gap: 6px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer a[dir="ltr"] { font-family: var(--latin); font-size: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-family: var(--latin); font-size: 13px; color: #8597B2; }

.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar__cta { display: none; }
  .burger { display: block; }
  .lang { margin-inline-start: auto; }
  .nav { position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: 0 12px 24px rgba(11,27,51,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__in { padding: 72px 0 56px; }
  .hero::after { background: linear-gradient(0deg, rgba(11,27,51,.95) 0%, rgba(11,27,51,.75) 100%); }
  .hero__facts { gap: 14px 28px; }
  .hero__facts strong { font-size: 22px; }
  .group__en { display: none; }
  .group__head h3 { font-size: 20px; }
  .form { padding: 22px; }
  .footer__in { grid-template-columns: 1fr; }
  .brand img { height: 32px; }
  .lang a { padding: 4px 8px; }
  .topbar__in { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
