/* Jusheng Precision — RapidDirect-inspired design system */
:root {
  --brand: #1B1B5C;
  --brand-hover: #12124A;
  --brand-soft: #F5C502;
  --brand-accent: #F5C502;
  --navy: #1B1B5C;
  --ink: #161616;
  --ink-ui: #1C1C1C;
  --muted: #7A7A7A;
  --muted-2: #54595F;
  --bg: #FBFBFB;
  --bg-alt: #F6F6F6;
  --line: rgba(28, 28, 28, 0.1);
  --white: #FFFFFF;
  --radius-cta: 12px;
  --header-h: 80px;
  --content: 1280px;
  --font: "Bai Jamjuree", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 8px 30px rgba(22, 22, 22, 0.06);
  --trans: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
p { margin: 0; }

.container {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

/* ========== Top bar ========== */
.topbar {
  background: var(--ink-ui);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding: 6px 0;
}

.topbar a { color: #fff; opacity: 0.9; }
.topbar a:hover { color: var(--brand-soft); opacity: 1; }
.topbar__right { display: flex; gap: 20px; align-items: center; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.lang-btn.is-active {
  color: #1B1B5C;
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  gap: 2px;
}

.logo__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
}

.logo__sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-ui);
  text-transform: uppercase;
}

.site-footer .logo__name,
.site-footer .logo__sub,
.admin-top .logo__name,
.admin-top .logo__sub {
  color: #fff;
}

.site-footer .logo__sub {
  color: rgba(255, 255, 255, 0.72);
}

.admin-top .logo__sub {
  color: rgba(255, 255, 255, 0.72);
}

.admin-top .logo__mark {
  height: 32px;
}

@media (max-width: 640px) {
  .logo__mark { height: 34px; }
  .logo__name { font-size: 14px; }
  .logo__sub { font-size: 10px; letter-spacing: 0.12em; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  flex: 1;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-ui);
  border-radius: 8px;
  transition: color var(--trans);
}

.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__link.is-active {
  color: var(--brand);
}

.nav__chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-cta);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--trans), color var(--trans), transform var(--trans), border-color var(--trans);
  white-space: nowrap;
}

.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: var(--brand);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 18px;
  border-radius: 0;
}

.btn--block { width: 100%; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* ========== Mega menu ========== */
.mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-30%);
  width: min(96vw, 980px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(22, 22, 22, 0.12);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega--sm {
  width: 280px;
  transform: translateX(0);
  left: 0;
  padding: 12px;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mega__col-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.mega a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.mega a:hover { color: var(--brand); }
.mega--sm a {
  padding: 10px 12px;
  border-radius: 8px;
}
.mega--sm a:hover { background: var(--bg-alt); }

.mega__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.mega__footer a { color: var(--brand); font-weight: 600; }

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #fff 0%, #fff 30%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.38) 54%, transparent 68%),
    url("../img/parts/13-hero.png") right center / cover no-repeat,
    var(--bg);
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 620px;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero__lead {
  font-size: 17px;
  color: var(--muted-2);
  max-width: 520px;
  margin-bottom: 28px;
  font-weight: 500;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 28px 0;
}

.stat {
  text-align: center;
  padding: 8px;
}

.stat__num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.stat__num span { color: var(--brand); }

.stat__label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ========== Sections ========== */
.section {
  padding: 88px 0;
}

.section--alt { background: var(--bg-alt); }
.section--white { background: #fff; }
.section--dark {
  background: var(--navy);
  color: #fff;
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section__head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section__head.center {
  text-align: center;
  margin-inline: auto;
}

.section__head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section--dark .section__head p { color: rgba(255,255,255,0.72); }

/* ========== Service cards ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(27, 27, 92, 0.35);
}

.service-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-card h3 {
  font-size: 18px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.service-card__link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__link::after {
  content: "→";
}

/* ========== Feature split ========== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split--rev { direction: rtl; }
.split--rev > * { direction: ltr; }

.split__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-alt);
  min-height: 360px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.feature-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted-2);
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ========== Platform cards ========== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color var(--trans), box-shadow var(--trans);
}

.platform-card:hover {
  border-color: rgba(27, 27, 92, 0.4);
  box-shadow: var(--shadow-card);
}

.platform-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 197, 2, 0.15);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.platform-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== Steps ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* ========== Factory cards ========== */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.factory-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.factory-card__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.factory-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-card__body {
  padding: 18px 20px 22px;
}

.factory-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.factory-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.factory-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* ========== Industries ========== */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color var(--trans), color var(--trans), transform var(--trans);
}

.industry-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

/* ========== Quality ========== */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quality-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
}

.quality-card h3 {
  margin: 14px 0 10px;
}

.quality-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.quality-card__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-accent);
}

/* ========== FAQ ========== */
.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 36px 22px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--brand);
  font-weight: 400;
}

.faq__item.is-open .faq__q::after { content: "–"; }

.faq__a {
  display: none;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq__item.is-open .faq__a { display: block; }

/* ========== CTA band ========== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1f3358 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-band .hero__ctas {
  justify-content: center;
}

/* ========== Page hero (inner) ========== */
.page-hero {
  background: var(--bg-alt);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { margin-bottom: 14px; }
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--brand); }

/* ========== Tables ========== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th,
table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
}

table.data tr:last-child td { border-bottom: none; }

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.info-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--brand);
}

.info-card p, .info-card a {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color var(--trans);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  background: #fff;
}

.field textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 12px;
  color: var(--muted);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--ink-ui);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer__brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 280px;
  color: rgba(255,255,255,0.6);
}

.footer__brand .logo {
  margin-bottom: 4px;
}

.footer__brand .logo__mark {
  height: 36px;
}

.footer__col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,0.65);
}
.footer__col a:hover { color: var(--brand-soft); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ========== Precision numbers ========== */
.precision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.precision-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  text-align: center;
}

.precision-card strong {
  display: block;
  font-size: 34px;
  color: var(--brand-accent);
  margin-bottom: 8px;
}

.precision-card span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* ========== Timeline ========== */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 18px 0;
}

.timeline__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.timeline__body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline__body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== Responsive: tablet → phone ========== */
/* Common devices: iPhone SE/12–16, Xiaomi, Huawei (~360–430 CSS px) */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .precision-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__content { max-width: 560px; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(100% - 40px, var(--content));
  }

  .menu-toggle { display: inline-flex; }

  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  }

  .site-header__inner {
    height: var(--header-h);
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 251, 251, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border-bottom: none;
    overflow: auto;
    display: none;
    z-index: 999;
    overscroll-behavior: contain;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav { display: flex; }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .mega,
  .mega--sm {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 12px 8px;
    display: none;
    background: transparent;
  }

  .nav__item.is-open .mega,
  .nav__item.is-open .mega--sm { display: block; }

  .mega__grid { grid-template-columns: 1fr; gap: 14px; }
  .mega a,
  .mega--sm a {
    padding: 10px 4px;
    font-size: 15px;
  }
  .mega__footer {
    margin-top: 8px;
    padding-top: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header__actions .btn--brand {
    padding: 10px 14px;
    font-size: 13px;
  }

  .split,
  .split--rev,
  .contact-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }

  .split__media,
  .split__media img {
    min-height: 240px;
  }

  .steps,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(78vh, 640px);
    align-items: flex-end;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.88) 42%,
        rgba(255, 255, 255, 0.55) 68%,
        rgba(255, 255, 255, 0.2) 100%
      ),
      url("../img/parts/13-hero.png") 70% 30% / cover no-repeat,
      var(--bg);
  }

  .hero__content {
    max-width: none;
    padding: 56px 0 40px;
  }

  .hero__ctas {
    gap: 10px;
  }

  .hero__ctas .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .form-row { grid-template-columns: 1fr; }

  .section {
    padding: 72px 0;
  }

  .section__head {
    margin-bottom: 32px;
  }

  .page-hero {
    padding: 40px 0 32px;
  }

  .cta-band {
    padding: 56px 0;
  }

  .cta-band .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: min(100% - 32px, var(--content));
  }

  h1 { font-size: clamp(30px, 8.2vw, 40px); }
  h2 { font-size: clamp(24px, 6.5vw, 34px); }
  h3 { font-size: clamp(18px, 4.8vw, 22px); }

  .topbar {
    font-size: 12px;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    min-height: 0;
  }

  .topbar__right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .section { padding: 56px 0; }

  .section__head p,
  .hero__lead,
  .page-hero p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 40px 0 36px;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn,
  .cta-band .hero__ctas .btn {
    width: 100%;
    max-width: none;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 14px 18px;
    font-size: 15px;
  }

  .btn--lg {
    padding: 14px 18px;
    font-size: 15px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 8px 0;
  }

  .stat {
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:last-child:nth-child(odd) {
    border-right: none;
    grid-column: 1 / -1;
  }

  .stat__num {
    font-size: 26px;
  }

  .services-grid,
  .platform-grid,
  .factory-grid,
  .industries,
  .precision-grid,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card__body,
  .platform-card,
  .quality-card,
  .step,
  .info-card {
    padding: 18px;
  }

  .form {
    padding: 20px;
    border-radius: 14px;
  }

  /* Prevent iOS zoom on focus */
  .field input,
  .field textarea,
  .field select,
  .lc-panel__form input {
    font-size: 16px;
    padding: 14px 14px;
  }

  .site-footer {
    padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer__grid {
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .faq__q {
    font-size: 16px;
    padding: 18px 28px 18px 0;
  }

  .table-wrap {
    margin-inline: -4px;
    border-radius: 10px;
  }

  .header__actions .btn--brand {
    display: none;
  }

  .breadcrumb {
    font-size: 12px;
  }
}

/* Large phones / Plus / Pro Max portrait (~414–430) */
@media (max-width: 430px) {
  .container {
    width: min(100% - 28px, var(--content));
  }

  .hero__content {
    padding: 36px 0 32px;
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .industry-chip {
    padding: 18px 16px;
    font-size: 14px;
  }
}

/* Compact Androids / iPhone SE (~360–390) */
@media (max-width: 390px) {
  .container {
    width: min(100% - 24px, var(--content));
  }

  .topbar__right a[data-i18n="top.contact_engineer"] {
    font-size: 12px;
  }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
  }

  .platform-card__icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 360px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .logo__sub { display: none; }

  .lang-btn {
    padding: 4px 6px;
    font-size: 11px;
  }
}

/* Landscape phones: keep content usable */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 28px 0;
  }

  .nav {
    top: var(--header-h);
  }
}

/* Touch: avoid sticky hover lift on coarse pointers */
@media (hover: none) {
  .service-card:hover,
  .industry-chip:hover,
  .platform-card:hover {
    transform: none;
  }

  .btn--brand:hover {
    transform: none;
  }
}

/* —— Live chat floating widget —— */
#js-livechat-root {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  font-family: inherit;
}

.lc-fab {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #1b1b5c;
  color: #fff;
  box-shadow: 0 10px 28px rgba(27, 27, 92, 0.35);
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lc-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(27, 27, 92, 0.42);
}

.lc-fab__icon { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.lc-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}

/* 与面板相同：必须覆盖 display:grid，否则 hidden 无法真正隐藏 */
.lc-fab__badge[hidden] {
  display: none !important;
  animation: none !important;
}

.lc-fab__badge.is-blink {
  animation: lc-badge-blink 0.9s ease-in-out infinite;
}

@keyframes lc-badge-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(229, 57, 53, 0.55);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.18);
    box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(229, 57, 53, 0);
  }
}

.lc-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 120px - env(safe-area-inset-bottom, 0px)));
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lc-in 0.22s ease;
}

/* 必须覆盖 display:flex，否则 hidden 属性无法真正隐藏面板 */
.lc-panel[hidden] {
  display: none !important;
}

@keyframes lc-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lc-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #15233f, #1b1b5c);
  color: #fff;
}

.lc-panel__head strong { display: block; font-size: 15px; }
.lc-panel__head small { opacity: 0.75; font-size: 11px; }

.lc-winbtns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.lc-winbtn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease;
}

.lc-winbtn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lc-winbtn--min {
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 4px;
}

.lc-winbtn--close:hover {
  background: #e53935;
}

/* 兼容旧类名（若缓存未刷新） */
.lc-close {
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lc-panel__msgs {
  flex: 1;
  overflow: auto;
  padding: 14px;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.lc-msg { display: flex; flex-direction: column; max-width: 85%; }
.lc-msg--me { align-self: flex-end; align-items: flex-end; }
.lc-msg--them { align-self: flex-start; align-items: flex-start; }
.lc-msg__bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.lc-msg--me .lc-msg__bubble {
  background: #1b1b5c;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lc-msg--them .lc-msg__bubble {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-bottom-left-radius: 4px;
}
.lc-msg__meta {
  font-size: 11px;
  color: #8a8a8a;
  margin-top: 4px;
}

.lc-panel__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6e8ec;
  background: #fff;
}
.lc-panel__form input {
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.lc-panel__form button {
  border: none;
  border-radius: 10px;
  background: #f5c502;
  color: #161616;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

@media (max-width: 640px) {
  #js-livechat-root {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .lc-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(70vh, 520px);
    border-radius: 16px;
  }

  .lc-fab {
    width: 52px;
    height: 52px;
  }
}

/* —— Global partnership / logo wall —— */
.partner-logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 36px;
}

.partner-logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  display: grid;
  place-items: center;
  min-height: 110px;
  box-shadow: 0 8px 24px rgba(21, 35, 63, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(21, 35, 63, 0.1);
}

.partner-logo-card img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.partner-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partner-case__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.partner-case__brand img {
  width: 96px;
  flex-shrink: 0;
  border-radius: 10px;
}

.partner-case__brand h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.partner-case__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(27, 27, 92, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.partner-case p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

@media (max-width: 980px) {
  .partner-logo-wall,
  .partner-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .partner-logo-wall,
  .partner-case-grid {
    grid-template-columns: 1fr;
  }

  .partner-case__brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

