:root {
  --ink: #111820;
  --muted: #5d6873;
  --paper: #eef2f4;
  --white: #ffffff;
  --line: #d8e0e5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --graphite: #111820;
  --charcoal: #18232d;
  --steel: #596a76;
  --blue: #1d6384;
  --teal: #2f7a72;
  --orange: #c76324;
  --amber: #d69a2d;
  --shadow: 0 22px 52px rgba(17, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f7f9fa 0%, var(--paper) 100%);
  background-size: 72px 72px, auto;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 4vw;
  left: 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 22px;
  color: var(--white);
  background: rgba(17, 24, 32, 0.88);
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, top 0.25s ease;
}

.site-header.is-scrolled {
  top: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 24, 32, 0.12);
  box-shadow: 0 16px 40px rgba(17, 24, 32, 0.1);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--orange), #a24617);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

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

.brand small {
  color: currentColor;
  opacity: 0.62;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 12px;
  opacity: 0.84;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--orange);
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  padding: 150px 5vw 82px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 17, 22, 0.94) 0%, rgba(12, 17, 22, 0.82) 42%, rgba(12, 17, 22, 0.22) 100%),
    linear-gradient(0deg, rgba(12, 17, 22, 0.62), rgba(12, 17, 22, 0.1)),
    url("./assets/hero-machining.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.84) 46%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 5vw;
  bottom: 44px;
  width: min(360px, 38vw);
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--amber), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding-left: 28px;
  border-left: 5px solid var(--orange);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.06;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.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 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
}

.section {
  position: relative;
  padding: 96px 5vw;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 40px;
}

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

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
}

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

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-copy {
  padding: 42px;
  background: var(--white);
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.about-copy p + p {
  margin-top: 18px;
}

.value-panel {
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(29, 99, 132, 0.22), transparent 55%),
    var(--graphite);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.value-panel h3,
.equipment-lead h3,
.contact-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.value-panel p,
.value-panel li {
  color: rgba(255, 255, 255, 0.76);
}

.value-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 24px 0 0;
}

.capability {
  background:
    linear-gradient(180deg, #f7f9fa 0%, var(--paper) 100%);
}

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

.capability-grid article {
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 430px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(17, 24, 32, 0.08);
}

.capability-grid article > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--line);
  filter: saturate(0.92) contrast(1.03);
}

.capability-grid article > div {
  padding: 26px;
}

.capability-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.capability-grid h3,
.equipment-cards h3,
.product-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.26;
}

.capability-grid p,
.equipment-cards p,
.product-grid p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.equipment-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(199, 99, 36, 0.16) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, #16202a 0%, #101820 100%);
  background-size: 88px 100%, auto;
}

.equipment-band .section-heading h2 {
  color: var(--white);
}

.equipment-map {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.42fr);
  gap: 22px;
}

.equipment-lead {
  padding: 38px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line-dark);
  border-top: 5px solid var(--orange);
}

.equipment-lead p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.88;
}

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

.equipment-cards article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 390px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
}

.equipment-cards article > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.equipment-cards article > div {
  padding: 28px 30px 30px;
}

.equipment-cards small {
  display: block;
  margin-bottom: 14px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.equipment-cards p {
  color: rgba(255, 255, 255, 0.72);
}

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

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.process div {
  position: relative;
  min-height: 128px;
  padding: 26px 24px;
  background: var(--white);
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.process div:last-child {
  border-right: 0;
}

.process div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.process span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--teal);
  font-size: 14px;
}

.products {
  background:
    linear-gradient(180deg, var(--paper) 0%, #f8fafb 100%);
}

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

.product-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 350px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 16px 36px rgba(17, 24, 32, 0.09);
}

.product-grid article:nth-child(2n) {
  border-top-color: var(--orange);
}

.product-grid article > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: var(--line);
}

.product-grid article > div {
  padding: 25px 28px 29px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(47, 122, 114, 0.2), transparent 48%),
    #0e151b;
}

.contact h2 {
  color: var(--white);
}

.contact > div:first-child p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  padding: 36px;
  color: var(--ink);
  background: var(--white);
  border-top: 5px solid var(--orange);
  box-shadow: var(--shadow);
}

.contact-card p + p {
  margin-top: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 5vw;
  color: #c6d0d6;
  background: #080d12;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .about-layout,
  .equipment-map,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 900px) {
  .site-header {
    right: 18px;
    left: 18px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(17, 24, 32, 0.12);
    box-shadow: var(--shadow);
  }

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

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

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    min-height: 62px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 190px;
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 116px 18px 64px;
  }

  .hero-content {
    padding-left: 18px;
    border-left-width: 4px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.14;
  }

  .hero-copy {
    font-size: 16px;
  }

  .capability-grid,
  .equipment-cards,
  .process,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 18px;
  }

  .about-copy,
  .value-panel,
  .equipment-lead,
  .contact-card {
    padding: 24px;
  }

  .equipment-cards article,
  .product-grid article {
    min-height: auto;
  }

  .capability-grid article {
    grid-template-rows: 210px 1fr;
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    right: 12px;
    left: 12px;
    min-height: 58px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .brand strong {
    max-width: 168px;
    font-size: 14px;
    line-height: 1.25;
  }

  .menu-button {
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .hero {
    padding: 96px 14px 54px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
  }

  .section {
    padding: 56px 14px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section h2 {
    font-size: 28px;
  }

  .about-copy,
  .value-panel,
  .equipment-lead,
  .contact-card,
  .capability-grid article > div,
  .equipment-cards article > div,
  .product-grid article > div {
    padding: 20px;
  }

  .about-copy p,
  .equipment-lead p {
    font-size: 16px;
    line-height: 1.78;
  }

  .capability-grid article {
    grid-template-rows: 180px 1fr;
  }

  .capability-grid h3,
  .equipment-cards h3,
  .product-grid h3 {
    font-size: 20px;
  }

  .process div {
    min-height: 96px;
    padding: 20px;
  }

  .footer {
    padding: 22px 14px;
  }
}

@media (max-width: 360px) {
  .brand strong {
    max-width: 138px;
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 30px;
  }

  .hero-copy,
  .about-copy p,
  .equipment-lead p {
    font-size: 14px;
  }

  .section h2 {
    font-size: 25px;
  }

  .capability-grid article {
    grid-template-rows: 160px 1fr;
  }
}
