:root {
  --ink: #161c22;
  --muted: #66717b;
  --line: #dfe6ec;
  --paper: #f6f8fa;
  --white: #ffffff;
  --blue: #1858c9;
  --blue-dark: #0f2d63;
  --green: #1f7a58;
  --red: #c84f43;
  --gold: #d69d3a;
  --shadow: 0 18px 50px rgba(15, 45, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(22, 28, 34, 0.08);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(22, 28, 34, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 22px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 15px;
}

.site-nav button {
  font: inherit;
}

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

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 180ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-cart strong,
.cart-fab strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 124px clamp(20px, 6vw, 80px) 70px;
  background: linear-gradient(90deg, #10244f 0%, #153b80 52%, #eef4f6 52%, #ffffff 100%);
}

.hero::after {
  display: none;
}

.hero-content,
.hero-products {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.hero-products {
  display: grid;
  grid-template-columns: 0.76fr 1fr;
  grid-template-rows: minmax(210px, 36vh) minmax(210px, 36vh);
  gap: 16px;
  min-height: 580px;
}

.hero-product {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 88, 201, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-product.main {
  grid-row: 1 / 3;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats div {
  padding: 32px clamp(20px, 4vw, 54px);
  background: var(--white);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 24px;
}

.stats span {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow),
.quality-list,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.compact {
  max-width: 980px;
}

.about-section,
.strength {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.about-copy {
  padding: clamp(26px, 4vw, 42px);
  border-left: 5px solid var(--blue);
  background: #f7faff;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.about-points {
  display: grid;
  gap: 14px;
}

.about-points article,
.credential-grid article,
.solution-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(22, 28, 34, 0.05);
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 20px;
}

.about-points span {
  color: var(--muted);
  line-height: 1.75;
}

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

.solution-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credential-grid article {
  min-height: 180px;
}

.credential-grid h3,
.solution-grid h3 {
  color: var(--blue-dark);
}

.credential-grid p,
.solution-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.honor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.honor-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(24, 88, 201, 0.18);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #f7faff;
  font-weight: 700;
}

.solutions {
  background: #f0f4f8;
}

.solution-grid article span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--red);
  font-weight: 800;
}

.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.shop {
  background: var(--white);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

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

.product-card {
  display: grid;
  grid-template-rows: 240px auto auto 1fr auto auto;
  min-height: 500px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(22, 28, 34, 0.06);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-bottom: 18px;
}

.product-card span {
  display: inline-block;
  margin: 16px 0 12px;
  color: var(--red);
  font-weight: 800;
}

.product-card p {
  color: var(--muted);
  line-height: 1.75;
}

.buy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 8px 0 16px;
}

.buy-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.buy-row select,
.buy-row input,
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.checkout-form textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
}

.add-button {
  width: 100%;
}

.gallery {
  background: var(--white);
}

.middle-gallery {
  background: #f0f4f8;
}

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

.gallery-grid figure {
  display: grid;
  grid-template-rows: 300px auto;
  align-items: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.gallery-grid figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.band {
  background: var(--blue-dark);
  color: var(--white);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.2);
}

.process-list li {
  min-height: 220px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 16px;
  font-size: 23px;
}

.process-list span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
  background: var(--white);
}

.quality-list p {
  padding: 24px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: #edf5ef;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel a,
.contact-panel span {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.74);
  background: #121a17;
  font-size: 14px;
}

.cart-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow);
  font-weight: 800;
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(460px, 100vw);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-open .cart-drawer {
  transform: translateX(0);
}

.cart-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  padding: 22px;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(22, 28, 34, 0.2);
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  margin: 0;
  font-size: 30px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: #f7f9fb;
  border-radius: 8px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.cart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-form {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkout-button {
  width: 100%;
  margin-top: 4px;
}

.form-tip,
.empty-cart {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(10, 18, 28, 0.42);
}

.cart-open .cart-backdrop {
  display: block;
}

.cart-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-products {
    min-height: 520px;
  }

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

@media (max-width: 980px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 20px 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(22, 28, 34, 0.1);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
    background: linear-gradient(180deg, #10244f 0%, #153b80 54%, #f4f7fb 54%, #ffffff 100%);
  }

  .hero-products {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 260px);
    min-height: auto;
  }

  .hero-product.main {
    grid-row: auto;
  }

  .stats,
  .product-grid,
  .gallery-grid,
  .credential-grid,
  .solution-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .product-card,
  .process-list li {
    min-height: auto;
  }

  .product-card {
    grid-template-rows: 260px auto auto 1fr auto auto;
  }

  .gallery-grid figure {
    grid-template-rows: 280px auto;
  }

  .site-footer {
    display: grid;
  }
}
