:root {
  --orange: #f58200;
  --orange-soft: #fff4e8;
  --ink: #2d2f31;
  --gray: #6e6e6e;
  --line: #e5e1da;
  --paper: #ffffff;
  --warm: #f7f7f5;
  --charcoal: #25282a;
  --teal: #0f6b7a;
  --teal-soft: #e9f4f5;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(247, 247, 245, 0.9);
  border-bottom: 1px solid rgba(229, 225, 218, 0.8);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(45, 47, 49, 0.08);
}

.brand img {
  width: 214px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #4d4f51;
  font-size: 14px;
  font-weight: 700;
}

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 46px;
  padding: 148px clamp(24px, 6vw, 76px) 52px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 247, 245, 0.98) 0%, rgba(247, 247, 245, 0.88) 43%, rgba(247, 247, 245, 0.48) 100%),
    linear-gradient(180deg, rgba(247, 247, 245, 0.48) 0%, rgba(247, 247, 245, 0.95) 100%);
}

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

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

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

h1 {
  margin-bottom: 22px;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.12;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: #4f5356;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.hero-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(45, 47, 49, 0.12);
}

.hero-panel span {
  color: var(--gray);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  padding: 18px 20px;
  background: var(--orange-soft);
  border: 1px solid #f2d0ac;
  font-size: 17px;
}

.hero-panel strong:nth-of-type(2) {
  background: var(--teal-soft);
  border-color: #c9dfe3;
}

.hero-panel strong:nth-of-type(3) {
  background: #f1f1f1;
  border-color: #d9d9d9;
}

.hero-panel i {
  width: 2px;
  height: 24px;
  margin: -6px auto;
  background: var(--orange);
}

.section-band {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.section-inner,
.capabilities,
.platform-map,
.process,
.rfq {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 24px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.two-column > p,
.proof-list p {
  color: #53575a;
  font-size: 18px;
  line-height: 1.65;
}

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

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-masonry {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-auto-rows: minmax(250px, auto);
  align-items: stretch;
}

.capability-item {
  display: grid;
  grid-template-rows: 220px auto;
  background: var(--paper);
  border: 1px solid var(--line);
}

.category-card {
  min-width: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 58px rgba(45, 47, 49, 0.11);
}

.category-card-large {
  grid-row: span 2;
  grid-template-rows: minmax(360px, 1fr) auto;
}

.image-frame {
  overflow: hidden;
  background: #ecebe7;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-item > div:last-child {
  padding: 28px;
}

.capability-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.capability-item p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sourcing-visual {
  display: grid;
  place-items: center;
  background: var(--charcoal);
}

.sourcing-map {
  display: grid;
  gap: 14px;
  width: min(75%, 260px);
}

.sourcing-map b {
  padding: 14px 16px;
  color: #fff;
  background: #333638;
  border: 1px solid #4a4d50;
  text-align: center;
}

.sourcing-map i {
  width: 2px;
  height: 18px;
  margin: -7px auto;
  background: var(--orange);
}

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

.page-map div {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #fff;
  background: #333638;
  border: 1px solid #4a4d50;
  font-weight: 800;
  text-align: center;
}

.page-map .accent {
  background: var(--orange);
  border-color: var(--orange);
}

.detail-page {
  background: var(--warm);
}

.detail-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 136px 24px 70px;
}

.detail-hero h1 {
  max-width: 980px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 34px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.back-link::before {
  content: "<";
  margin-right: 10px;
  color: var(--orange);
  font-size: 16px;
}

.pcba-detail {
  scroll-margin-top: 76px;
}

.pcba-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 42px;
}

.pcba-hero p:last-child {
  color: #53575a;
  font-size: 18px;
  line-height: 1.65;
}

.pcba-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  margin-bottom: 24px;
}

.pcba-photo {
  min-height: 360px;
  overflow: hidden;
  background: #ecebe7;
}

.pcba-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcba-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pcba-stats div {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 160px;
  padding: 22px;
  background: var(--charcoal);
  border: 1px solid #4a4d50;
}

.pcba-stats strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.pcba-stats span {
  color: #cfd3d5;
  font-size: 13px;
  line-height: 1.5;
}

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

.pcba-grid article {
  min-width: 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pcba-grid h3 {
  font-size: 21px;
}

.pcba-grid ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pcba-grid li::marker {
  color: var(--orange);
}

.pcba-products {
  margin-top: 54px;
}

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

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

.product-grid article {
  min-width: 0;
  padding: 24px;
  background: #fbfbfa;
  border: 1px solid var(--line);
}

.product-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.product-grid h3 {
  font-size: 20px;
}

.product-grid p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}

.pcba-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pcba-systems article {
  min-width: 0;
  padding: 26px;
  color: #fff;
  background: var(--charcoal);
  border: 1px solid #4a4d50;
}

.pcba-systems h3 {
  font-size: 21px;
}

.pcba-systems p {
  margin-bottom: 0;
  color: #cfd3d5;
  font-size: 14px;
  line-height: 1.6;
}

.pcba-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.pcba-flow div {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--ink);
  background: var(--teal-soft);
  border: 1px solid #c9dfe3;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  min-height: 148px;
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.steps span {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.45;
}

.proof-list {
  display: grid;
  gap: 18px;
}

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

.proof-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.rfq {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 70px;
  align-items: start;
}

.rfq-copy p:last-child {
  margin-top: 24px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.6;
}

.rfq-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.rfq-form label {
  display: grid;
  gap: 8px;
  color: #4d4f51;
  font-size: 13px;
  font-weight: 800;
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  border: 1px solid #d9d5ce;
  background: #fbfbfa;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.rfq-form input,
.rfq-form select {
  height: 44px;
  padding: 0 12px;
}

.rfq-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(24px, 6vw, 76px);
  color: #d8d8d8;
  background: var(--charcoal);
}

.site-footer img {
  width: 210px;
}

.site-footer p {
  margin-bottom: 0;
  text-align: right;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 14px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .two-column,
  .pcba-hero,
  .pcba-showcase,
  .rfq {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 126px;
  }

  .hero-panel {
    max-width: 430px;
  }

  .capability-grid,
  .category-masonry,
  .pcba-grid,
  .product-grid,
  .pcba-systems,
  .page-map {
    grid-template-columns: 1fr 1fr;
  }

  .category-card-large {
    grid-row: auto;
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 68px;
    padding-inline: 18px;
  }

  .brand img {
    width: 168px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    padding: 108px 18px 44px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-inner,
  .capabilities,
  .platform-map,
  .process,
  .rfq {
    padding: 62px 18px;
  }

  .capability-grid,
  .category-masonry,
  .pcba-grid,
  .pcba-stats,
  .product-grid,
  .pcba-systems,
  .page-map,
  .pcba-flow,
  .steps {
    grid-template-columns: 1fr;
  }

  .capability-item {
    grid-template-rows: 190px auto;
  }

  .detail-hero {
    padding: 108px 18px 50px;
  }

  .site-footer p {
    text-align: left;
  }
}
