:root {
  --ink: #172027;
  --muted: #60717d;
  --line: #dbe4e8;
  --panel: #ffffff;
  --panel-soft: #f3f7f8;
  --steel: #24323a;
  --teal: #0b8582;
  --red: #c83a2a;
  --amber: #d39b27;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 28, 36, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(19, 33, 42, 0.12);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: -2px;
  font-size: 11px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  color: currentColor;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: currentColor;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 96vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 18, 22, 0.92) 0%, rgba(12, 18, 22, 0.72) 36%, rgba(12, 18, 22, 0.16) 76%),
    linear-gradient(0deg, rgba(12, 18, 22, 0.86), rgba(12, 18, 22, 0.05) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  height: 100%;
  padding-top: 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ce0d6;
}

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

h1 {
  margin-bottom: 18px;
  font-size: 96px;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.18;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.3;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 15px 30px rgba(200, 58, 42, 0.28);
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-metrics div {
  min-height: 104px;
  padding: 20px;
  background: rgba(10, 20, 24, 0.28);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 6px;
  font-size: 34px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.two-column,
.split-panel,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

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

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.company-equipment {
  display: grid;
  gap: 46px;
  margin-top: 68px;
}

.equipment-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.equipment-copy {
  position: sticky;
  top: 104px;
}

.equipment-copy h3 {
  margin-bottom: 14px;
  font-size: 30px;
}

.equipment-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.production-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
}

.equipment-card {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--steel);
  box-shadow: var(--shadow);
}

.equipment-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.equipment-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(11, 17, 20, 0.76), transparent);
  content: "";
}

.equipment-card:hover img {
  transform: scale(1.04);
}

.equipment-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  color: var(--white);
  font-weight: 900;
  line-height: 1.3;
}

.production-gallery .equipment-card {
  grid-column: span 3;
  min-height: 0;
}

.production-gallery .equipment-card img {
  min-height: 0;
}

.production-gallery .equipment-card:first-child {
  grid-row: span 2;
}

.testing-block {
  align-items: center;
}

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

.testing-gallery .equipment-card {
  min-height: 360px;
}

.intro-copy p:last-child,
.section-head p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.product-band {
  background:
    linear-gradient(180deg, var(--panel-soft), #ffffff 62%),
    repeating-linear-gradient(90deg, rgba(36, 50, 58, 0.05) 0 1px, transparent 1px 120px);
}

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

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.section-head.compact {
  margin-bottom: 28px;
}

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

.product-card,
.advantage-item,
.inquiry-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card h3,
.product-card p {
  padding-right: 22px;
  padding-left: 22px;
}

.product-card h3 {
  margin-top: 30px;
}

.product-card p {
  min-height: 0;
  margin-bottom: 22px;
  color: var(--muted);
  flex: 1;
}

.product-visual {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  cursor: zoom-in;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.02);
}

.product-visual:focus-visible {
  outline: 3px solid rgba(11, 133, 130, 0.32);
  outline-offset: -3px;
}

.advantages {
  background: var(--steel);
  color: var(--white);
}

.advantages .section-kicker {
  color: #8ce0d6;
}

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

.advantage-item {
  min-height: 270px;
  padding: 24px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.advantage-item .index {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 900;
}

.advantage-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list li {
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.industries {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 32, 39, 0.95), rgba(23, 32, 39, 0.78)),
    url("assets/hero-linear-rail-caliper.png") center / cover;
}

.industries .section-kicker {
  color: #8ce0d6;
}

.industries p {
  color: rgba(255, 255, 255, 0.74);
}

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

.industry-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.contact {
  background: var(--panel-soft);
}

.contact p {
  color: var(--muted);
  font-size: 17px;
}

.contact-lines {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
}

.contact-lines div {
  padding-left: 18px;
  border-left: 4px solid var(--teal);
}

.contact-lines dt {
  color: var(--ink);
  font-weight: 900;
}

.contact-lines dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
}

.inquiry-form span {
  color: var(--steel);
  font-size: 14px;
  font-weight: 900;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 133, 130, 0.14);
}

.form-btn {
  width: 100%;
  border: 0;
}

.contact-card {
  padding: 32px;
}

.contact-card-kicker {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card h3 {
  margin-bottom: 24px;
  font-size: 30px;
}

.contact-card h3 span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.contact-detail-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-detail-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.contact-detail-list dt {
  margin-bottom: 6px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 900;
}

.contact-detail-list dt span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-detail-list dd small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-detail-list a {
  color: inherit;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-preview[hidden] {
  display: none;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 18, 22, 0.74);
  backdrop-filter: blur(8px);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(980px, 100%);
  max-height: min(86vh, 820px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.preview-dialog img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: var(--white);
  background: rgba(12, 18, 22, 0.72);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #11181d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 760px;
    height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 18, 22, 0.92), rgba(12, 18, 22, 0.62)),
      linear-gradient(0deg, rgba(12, 18, 22, 0.9), rgba(12, 18, 22, 0.14) 50%);
  }

  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-metrics strong {
    font-size: 28px;
  }

  .two-column,
  .split-panel,
  .contact-layout,
  .equipment-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .company-equipment {
    margin-top: 46px;
  }

  .equipment-copy {
    position: static;
  }

  .production-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .production-gallery .equipment-card {
    grid-column: span 1;
  }

  .production-gallery .equipment-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

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

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

@media (max-width: 640px) {
  .page-wrap {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-top: 94px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .hero-metrics div {
    min-height: 82px;
  }

  .section {
    padding: 66px 0;
  }

  .product-grid,
  .advantage-grid,
  .process-list,
  .equipment-gallery {
    grid-template-columns: 1fr;
  }

  .production-gallery {
    grid-auto-rows: auto;
  }

  .production-gallery .equipment-card,
  .production-gallery .equipment-card:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

  .equipment-copy h3 {
    font-size: 26px;
  }

  .testing-gallery .equipment-card {
    min-height: 260px;
  }

  .product-card p {
    min-height: auto;
  }

  .advantage-item {
    min-height: auto;
  }

  .advantage-item .index {
    margin-bottom: 18px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
