:root {
  --ink: #17212b;
  --muted: #627181;
  --line: #d9e1e8;
  --soft: #f4f7f9;
  --white: #ffffff;
  --brand: #165f83;
  --brand-dark: #12384f;
  --accent: #b88746;
  --green: #2f8f72;
  --shadow: 0 20px 60px rgba(22, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 249, 251, 0.92), rgba(255, 255, 255, 0.98)),
    url("../images/factory-building.png") center top / cover fixed;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 232, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #344657;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.lang-toggle,
.button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.lang-toggle {
  min-width: 68px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #e9f3f7;
}

.hero {
  overflow: hidden;
  background: #05080b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 12px 20px;
}

.button.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(18, 106, 140, 0.25);
}

.button.secondary {
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0;
}

.stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 225, 232, 0.85);
  border-radius: 8px;
}

.stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats dd {
  margin: 2px 0 0;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}

.hero-media {
  position: relative;
  min-height: clamp(430px, 66vh, 650px);
}

.hero-media > img {
  height: clamp(430px, 66vh, 650px);
  object-fit: cover;
  object-position: center;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 11, 0.08), rgba(5, 8, 11, 0.12));
  content: "";
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots span {
  width: 13px;
  height: 13px;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 50%;
}

.hero-dots span:first-child {
  background: transparent;
}

.section {
  padding: clamp(32px, 3vw, 46px) clamp(18px, 4vw, 56px);
  scroll-margin-top: 78px;
}

.about-intro {
  margin: clamp(14px, 2vw, 24px) clamp(18px, 4vw, 56px) 0;
  padding: clamp(42px, 5vw, 68px) clamp(22px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 225, 232, 0.86);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 56, 79, 0.12);
  backdrop-filter: blur(14px);
}

.about-intro .section-copy {
  color: #35495b;
  font-size: 18px;
  line-height: 1.85;
}

.about-intro h2 {
  color: var(--brand-dark);
  font-size: clamp(30px, 4vw, 52px);
}

.about-intro .section-copy p {
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-copy {
  color: #415164;
  font-size: 18px;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.compact {
  max-width: 690px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(203, 216, 226, 0.86);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(22, 95, 131, 0.34);
  box-shadow: 0 18px 46px rgba(18, 56, 79, 0.14);
  transform: translateY(-4px);
}

.product-image {
  display: grid;
  height: 430px;
  place-items: center;
  padding: 26px;
  background: transparent;
}

.product-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.air-category .product-image img {
  max-width: 94%;
  max-height: 88%;
}

.cabin-category .product-image img {
  max-width: 88%;
  max-height: 88%;
}

.oil-category .product-image img {
  max-width: 88%;
  max-height: 88%;
}

.product-body {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 18px 24px;
  text-align: center;
  background: rgba(248, 251, 253, 0.74);
  border-bottom: 1px solid rgba(203, 216, 226, 0.86);
}

.category-card h3 {
  margin-bottom: 0;
  color: var(--brand-dark);
  font-size: 24px;
}

.product-body p,
.timeline p,
.contact-copy p {
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.gallery-strip img {
  height: 170px;
  padding: 16px;
  object-fit: contain;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-hero {
  padding: clamp(36px, 5vw, 62px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(18, 56, 79, 0.96), rgba(22, 95, 131, 0.88)),
    url("../images/factory-workshop-wide.png") center / cover;
}

.detail-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.detail-hero h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 68px);
}

.detail-hero p {
  max-width: 980px;
  margin: 0 auto 18px;
  color: #e7eef2;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 7px;
  font-weight: 800;
}

.detail-intro {
  max-width: 980px;
  margin: 0 auto 34px;
  color: #35495b;
  font-size: 18px;
  line-height: 1.85;
  text-align: center;
}

.detail-products {
  padding-top: clamp(28px, 4vw, 48px);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail-gallery figure {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(18, 56, 79, 0.08);
  backdrop-filter: blur(10px);
}

.detail-gallery img {
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 28px;
  object-fit: contain;
  background: transparent;
}

.detail-gallery figcaption {
  padding: 16px 18px 18px;
  color: var(--brand-dark);
  font-weight: 800;
  text-align: center;
}

.factory {
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(241, 246, 248, 0.96)),
    url("../images/factory-workshop-wide.png") center / cover;
}

.factory-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.factory-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 300px 1fr;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(18, 56, 79, 0.09);
  backdrop-filter: blur(8px);
}

.factory-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #eef4f6;
}

.factory-card-body {
  padding: 22px;
}

.factory-card h3 {
  min-height: 54px;
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.35;
}

.factory-card p {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.factory-card:nth-child(1) img,
.factory-card:nth-child(4) img {
  object-position: center 42%;
}

.factory-card:nth-child(6) img {
  object-position: center 48%;
}

.factory-card:nth-child(2) img {
  object-position: center 82%;
}

.factory-card:nth-child(3) img {
  object-position: center 86%;
}

.factory-card:nth-child(5) img {
  object-position: center 40%;
}

.process {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
    url("../images/warehouse-inventory.png") center / cover;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--white);
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 3vw, 46px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 64, 89, 0.96), rgba(18, 106, 140, 0.9)),
    url("../images/factory-workshop-wide.png") center / cover;
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p {
  color: #dcecf2;
}

.contact-panel {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-methods a {
  display: grid;
  gap: 3px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-methods span,
.qr-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-methods strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.qr-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #eaf5f2, #f8fbfc);
  border: 1px solid #cfe3dc;
  border-radius: 8px;
}

.qr-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 8px;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card strong {
  color: var(--green);
  font-size: 22px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: #dfe9ee;
  background: #111922;
  font-size: 14px;
}

@media (max-width: 1020px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-media > img {
    height: 500px;
  }

  .product-grid,
  .timeline,
  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }

  .stats,
  .product-grid,
  .timeline,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 460px;
  }

  .hero-media > img {
    height: 460px;
    object-position: 58% center;
  }

  .hero-overlay {
    right: 16px;
    left: 16px;
  }

  .hero-overlay p {
    font-size: 16px;
  }

  .section,
  .contact-section {
    padding: 36px 16px;
  }

  .about-intro {
    margin: 16px;
    padding: 44px 18px;
  }

  .product-image,
  .detail-gallery img {
    height: auto;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 34px 16px;
  }

  .detail-hero h1 {
    font-size: 34px;
  }

  .detail-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .factory-flow {
    grid-template-columns: 1fr;
  }

  .factory-card {
    grid-template-rows: auto 1fr;
  }

  .factory-card img {
    height: 260px;
  }

  .timeline article {
    min-height: auto;
  }

  .qr-card {
    grid-template-columns: 92px 1fr;
  }
}
