:root {
  --ink: #142033;
  --muted: #5c6877;
  --line: #d9e0e8;
  --panel: #f4f7fa;
  --white: #ffffff;
  --red: #d42027;
  --red-dark: #a9141a;
  --gold: #f0b429;
  --steel: #223246;
  --shadow: 0 20px 60px rgba(20, 32, 51, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: var(--white);
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 224, 232, 0.85);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; white-space: nowrap; }
.brand-logo { width: clamp(126px, 15vw, 190px); height: auto; object-fit: contain; }
.brand-text { display: grid; max-width: min(40vw, 420px); overflow: hidden; line-height: 1.15; }
.brand-text strong { overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.brand-text small { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; font-weight: 700; }
.site-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); color: #334156; font-size: 15px; }
.site-nav a { padding: 8px 0; white-space: nowrap; }
.site-nav a:hover, .text-link:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.language-switch button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.language-switch button.is-active { color: var(--white); background: var(--ink); }
.mobile-lang { display: none; }
.social-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}
.social-icon svg { width: 21px; height: 21px; fill: currentColor; }
.social-icon:hover { color: var(--white); background: #111827; border-color: #111827; }
.header-cta, .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
}
.header-cta {
  border: 0;
  padding: 0 16px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}
.header-cta.wechat { color: var(--ink); background: #eef4f8; border: 1px solid var(--line); }
.header-cta:hover, .btn.primary:hover { background: var(--red-dark); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-slider, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 900ms ease, transform 4500ms ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { z-index: 1; background: linear-gradient(90deg, rgba(14, 25, 42, 0.86), rgba(14, 25, 42, 0.64) 48%, rgba(14, 25, 42, 0.18)); }
.hero-content { position: relative; z-index: 2; width: min(780px, calc(100% - 36px)); margin-left: clamp(18px, 7vw, 96px); padding: 72px 0 92px; color: var(--white); }
.hero-dots { position: absolute; right: 34px; bottom: 34px; z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.45); }
.hero-dots span.is-active { background: var(--gold); }
.eyebrow { margin: 0 0 12px; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; overflow-wrap: anywhere; }
h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 46px); line-height: 1.16; overflow-wrap: anywhere; }
h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.25; }
.hero-copy { max-width: 700px; margin-bottom: 32px; color: rgba(255,255,255,.9); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.btn { border: 0; padding: 0 24px; cursor: pointer; font-size: 15px; }
.btn.primary { color: var(--white); background: var(--red); }
.btn.secondary { color: var(--white); border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.1); }
.btn.outline { color: var(--red); border: 1px solid var(--red); background: var(--white); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(680px, 100%); border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.14); backdrop-filter: blur(10px); }
.hero-stats div { padding: 18px; }
.hero-stats strong { display: block; font-size: 30px; line-height: 1; }
.hero-stats span { color: rgba(255,255,255,.82); font-size: 14px; }

.section { padding: clamp(68px, 9vw, 118px) clamp(18px, 5vw, 72px); }
.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading.wide { max-width: 920px; }
.section-heading p:not(.eyebrow), .intro-grid p, .product-card p, .service-list p, .about-copy p, .platform-copy p, .contact-copy p { color: var(--muted); }
.intro, .services { background: var(--panel); }
.intro-grid, .advantage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.intro-grid article, .service-list article, .advantage-grid article { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.intro-grid article { padding: 30px; }
.intro-grid span { display: block; margin-bottom: 24px; color: var(--red); font-size: 28px; font-weight: 800; }

.products { background: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1240px; margin: 0 auto; }
.product-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(20,32,51,.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.product-card:hover, .product-card:focus { transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }
.product-card img { width: 100%; height: 260px; object-fit: cover; object-position: center; background: #eef2f5; }
.product-card div { padding: 28px; }
.tag { display: inline-flex; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; color: var(--red); background: #fff0f1; font-size: 12px; font-weight: 800; }
ul { margin: 18px 0 0; padding-left: 18px; color: #334156; }

.xilin-section {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}
.xilin-hero {
  display: grid;
  grid-template-columns: minmax(320px, .56fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.xilin-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}
.xilin-hero > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
.xilin-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.xilin-points span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--red);
  background: #fff0f1;
  font-weight: 800;
  font-size: 13px;
}
.xilin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.xilin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(20,32,51,.08);
}
.xilin-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.xilin-card div {
  padding: 22px;
}
.xilin-card p {
  color: var(--muted);
}

.platform { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(28px,5vw,64px); align-items: center; background: var(--steel); color: var(--white); }
.platform-copy { max-width: 560px; justify-self: end; }
.platform-copy p { color: rgba(255,255,255,.78); }
.platform-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform-gallery img { width: 100%; height: 210px; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.platform-gallery .platform-main { grid-column: 1 / -1; height: 360px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.specs div { padding: 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.specs dt { font-size: 22px; font-weight: 800; line-height: 1.15; }
.specs dd { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 13px; }
.text-link { color: var(--gold); font-weight: 800; }

.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.service-list article { overflow: hidden; min-height: 280px; }
.service-list img { width: 100%; height: 170px; object-fit: cover; }
.service-list h3, .service-list p { padding-inline: 24px; }
.service-list h3 { margin-top: 22px; }
.service-list p { padding-bottom: 24px; }

.advantages { background: #111b2a; color: var(--white); }
.advantages .eyebrow { color: var(--gold); }
.advantage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advantage-grid article { padding: 26px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.advantage-grid strong, .advantage-grid span { display: block; }
.advantage-grid strong { margin-bottom: 10px; font-size: 20px; }
.advantage-grid span { color: rgba(255,255,255,.76); }

.about { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(28px,5vw,70px); align-items: center; }
.about-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.about-copy { max-width: 680px; }

.industries {
  position: relative;
  color: var(--white);
  background: linear-gradient(rgba(13,25,42,.76), rgba(13,25,42,.76)), url("assets/photos/factory-heavy-forklift.jpg") center / cover;
}
.industries .eyebrow { color: var(--gold); }
.industry-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.industry-grid span { display: flex; min-height: 70px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.26); border-radius: 8px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-weight: 700; }

.contact { display: grid; grid-template-columns: minmax(0,.86fr) minmax(320px,.64fr); gap: clamp(28px,5vw,72px); background: var(--white); }
.contact-copy { max-width: 700px; }
.contact-methods { display: grid; gap: 12px; margin-top: 28px; }
.contact-methods a, .contact-methods span, .contact-methods button {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: var(--panel);
  cursor: pointer;
}
.contact-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
label { display: grid; gap: 8px; color: #334156; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #c8d2dd; border-radius: 6px; padding: 12px 13px; color: var(--ink); font: inherit; background: var(--white); }
textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 32px; padding: 44px clamp(18px,5vw,72px); color: rgba(255,255,255,.82); background: #101827; }
.site-footer img { width: min(220px,100%); height: auto; }
.footer-logo-wrap { display: inline-flex; align-items: center; justify-content: center; width: min(240px,100%); margin-bottom: 16px; padding: 10px 14px; border-radius: 6px; background: var(--white); }
.site-footer strong { display: block; margin-bottom: 14px; color: var(--white); }
.site-footer a, .site-footer span, .site-footer button { display: block; margin-bottom: 10px; color: inherit; }
.site-footer button { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }

.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: grid; gap: 10px; }
.float-wa, .float-wechat { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 999px; color: var(--white); box-shadow: 0 14px 34px rgba(20,32,51,.24); font-weight: 800; cursor: pointer; }
.float-wa { background: #1fae5b; }
.float-wechat { background: #1677ff; }

.modal[hidden], .qr-modal[hidden], .toast[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; }
.qr-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,18,30,.68); }
.modal-panel { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.75fr); width: min(1040px,100%); max-height: min(760px, calc(100vh - 44px)); overflow: auto; border-radius: 8px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-panel > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.modal-body { padding: clamp(24px,4vw,44px); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 26px; cursor: pointer; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.qr-panel { position: relative; z-index: 1; width: min(420px, 100%); padding: 30px; border-radius: 8px; text-align: center; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.qr-panel h2 { font-size: 30px; }
.qr-panel img { width: min(300px, 100%); margin: 14px auto 18px; border: 1px solid var(--line); border-radius: 8px; }
.qr-panel p:last-child { margin-bottom: 0; color: var(--muted); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; color: var(--white); background: rgba(16,24,39,.94); box-shadow: var(--shadow); font-weight: 700; }

@media (max-width: 1120px) {
  .brand-text { display: none; }
  .product-grid, .service-list, .intro-grid, .xilin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantage-grid, .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-actions .wechat { display: none; }
}

@media (max-width: 1320px) {
  .brand-text small { display: none; }
  .site-nav { gap: 18px; font-size: 14px; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 10px 18px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .mobile-lang { display: inline-flex; width: max-content; margin: 4px 0 10px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { display: none; }
  .hero { min-height: 720px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(14,25,42,.84), rgba(14,25,42,.74)); }
  .hero-content { margin: 0 auto; padding-top: 92px; max-width: calc(100vw - 36px); overflow: hidden; }
  .hero-stats, .product-grid, .product-card, .platform, .about, .contact, .site-footer, .modal-panel { grid-template-columns: 1fr; }
  .xilin-hero { grid-template-columns: 1fr; }
  .product-card img { height: 280px; }
  .platform-copy { justify-self: start; }
  .platform-gallery .platform-main { height: 280px; }
  .platform-gallery img { height: 180px; }
  .modal-panel > img { min-height: 280px; height: 320px; }
}

@media (max-width: 620px) {
  .brand-logo { width: 132px; }
  h1 { font-size: 32px; line-height: 1.12; }
  .hero-copy { font-size: 16px; word-break: break-all; }
  .section-heading h2 { font-size: 28px; word-break: break-all; }
  .hero-stats, .intro-grid, .service-list, .advantage-grid, .industry-grid, .specs, .platform-gallery, .xilin-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding-top: 58px; padding-bottom: 58px; }
  .contact-form { padding: 20px; }
  .float-actions { right: 12px; bottom: 12px; }
}
