:root {
  --ink: #17201d;
  --muted: #60716a;
  --line: #dfe7e2;
  --paper: #fbfcf8;
  --soft: #eef5ee;
  --green: #176246;
  --green-2: #0f4b38;
  --gold: #b98237;
  --blue: #2f6287;
  --danger: #b4453e;
  --shadow: 0 18px 48px rgba(23, 32, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(251, 252, 248, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.site-header[data-elevated="true"] { border-color: var(--line); box-shadow: 0 8px 28px rgba(23,32,29,.06); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #2d3935;
  font-size: 14px;
}
.main-nav a.active, .main-nav a:hover { background: var(--soft); color: var(--green-2); }
.main-nav .nav-erp { background: var(--ink); color: white; }
.nav-toggle { display: none; border: 0; background: var(--ink); color: white; border-radius: 8px; width: 42px; height: 38px; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 22, 17, .78) 0%, rgba(10, 22, 17, .48) 45%, rgba(10, 22, 17, .08) 100%),
    url("/images/hero-factory.png") center / cover no-repeat;
  color: white;
}
.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(74px, 12vh, 128px) 0 clamp(36px, 7vh, 72px);
}
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #dceee5;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p {
  max-width: 680px;
  color: #eef7f1;
  font-size: clamp(17px, 2vw, 22px);
  margin: 22px 0 28px;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: white; }
.btn.ghost { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.46); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 8vh, 82px);
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.26);
}
.stat { padding: 18px; background: rgba(8, 20, 15, .35); }
.stat strong { display: block; font-size: 25px; }
.stat span { color: #dceee5; font-size: 13px; }

.section { padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 64px); }
.section.alt { background: #f2f6f1; }
.section-head {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
.section-head p { max-width: 590px; margin: 8px 0 0; color: var(--muted); }
.grid { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(23,32,29,.06);
}
.card-body { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.media.wide { aspect-ratio: 16 / 9; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: #f7faf6; border-radius: 999px; padding: 5px 10px; color: #45544f; font-size: 12px; }
.sku-list { display: grid; gap: 8px; margin-top: 14px; }
.sku-line {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 9px 10px;
  color: var(--ink);
}
.sku-line strong { color: var(--green-2); }
.sku-line small { color: var(--muted); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.quote-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}
.designer-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.designer-layout .form-grid, .designer-layout .actions, .designer-layout .status-box { grid-column: 2; }
.designer-preview {
  grid-row: 1 / span 3;
  min-height: 420px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: white;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 14px rgba(255,255,255,.22);
}
.designer-preview div { font-size: clamp(34px, 5vw, 64px); font-weight: 800; max-width: 90%; overflow-wrap: anywhere; }
.designer-preview small { background: rgba(0,0,0,.26); border-radius: 999px; padding: 6px 12px; }
.capacity { height: 10px; border-radius: 999px; background: #e8efe9; overflow: hidden; margin: 12px 0 7px; }
.capacity span { display: block; height: 100%; background: var(--green); }

.product-feature {
  width: min(1180px, 100%);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}
.feature-copy {
  padding: clamp(26px, 5vw, 52px);
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.feature-copy p { color: #d9e5df; }
.feature-copy ul { margin: 18px 0 0; padding-left: 18px; color: #edf7f1; }

.steps { counter-reset: step; }
.step { padding: 22px; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-weight: 800;
}

.form-panel {
  width: min(940px, 100%);
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 34px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #cfdad4;
  border-radius: 8px;
  background: #fbfdfb;
  padding: 11px 12px;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; }
.status-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fbf7;
  border-radius: 8px;
}

.erp-strip {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 8px;
  background: #18392d;
  color: white;
}
.erp-strip p { color: #d9e6df; margin: 6px 0 0; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 64px);
  background: var(--ink);
  color: white;
}
.footer p { color: #cbd7d1; margin: 6px 0 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer a { border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 9px 12px; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: .2s ease;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateY(0); }
.empty { color: var(--muted); border: 1px dashed #cfdad4; padding: 16px; border-radius: 8px; background: #fbfdfb; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .stats, .grid.cols-4, .grid.cols-3, .grid.cols-2, .product-feature, .erp-strip { grid-template-columns: 1fr; }
  .designer-layout { grid-template-columns: 1fr; }
  .designer-layout .form-grid, .designer-layout .actions, .designer-layout .status-box { grid-column: auto; }
  .designer-preview { grid-row: auto; min-height: 300px; }
  .quote-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .footer { display: block; }
  .footer-actions { margin-top: 18px; }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { min-height: 720px; }
  .hero-inner { width: calc(100% - 28px); }
  .section { padding-left: 14px; padding-right: 14px; }
}

/* SNEX-style platform skin */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f5f7fb;
  --soft: #eef5ff;
  --green: #003865;
  --green-2: #124b73;
  --gold: #ff8a00;
  --blue: #003865;
  --shadow: 0 10px 28px rgba(15, 23, 42, .08);
}
body { background: var(--paper); color: #1f2937; font-size: 14px; }
.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e6edf5;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-mark { background: #003865; border-radius: 4px; width: 38px; height: 38px; }
.brand strong { color: #003865; letter-spacing: 0; }
.main-nav a { border-radius: 2px; color: #334155; }
.main-nav a.active, .main-nav a:hover { background: #edf5ff; color: #003865; }
.main-nav .nav-erp { background: #003865; border-radius: 2px; }
.hero {
  min-height: 640px;
  align-items: center;
  background-color: #f7fbff;
  color: #102033;
}
.hero::after {
  content: "";
  display: block;
  height: 1px;
  background: #e6edf5;
}
.hero-inner {
  padding-top: 86px;
  padding-bottom: 46px;
}
.eyebrow {
  color: #003865;
  background: #eaf3ff;
  border: 1px solid #cfe2f6;
  padding: 7px 12px;
  border-radius: 2px;
}
.hero h1 {
  color: #0f172a;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 650;
  max-width: 760px;
}
.hero p { color: #475569; max-width: 690px; }
.btn { border-radius: 2px; box-shadow: none; }
.btn.primary, .btn.dark { background: #003865; border-color: #003865; }
.btn.ghost {
  background: white;
  color: #003865;
  border-color: #b9cfe3;
}
.stats {
  max-width: 840px;
  background: white;
  border: 1px solid #e6edf5;
  box-shadow: var(--shadow);
}
.stat { background: white; border-right: 1px solid #edf1f6; }
.stat strong { color: #003865; }
.stat span { color: #64748b; }
.section { padding-top: clamp(46px, 7vw, 82px); padding-bottom: clamp(46px, 7vw, 82px); }
.section.alt { background: #fff; border-top: 1px solid #e6edf5; border-bottom: 1px solid #e6edf5; }
.section-head h2 { color: #0f172a; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
.card {
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}
.card h3 { color: #102033; font-weight: 600; }
.media { background: #eef2f7; }
.pill { border-radius: 2px; background: #f2f7ff; color: #003865; border-color: #d6e5f5; }
.sku-line, .quote-grid span, .field input, .field textarea, .field select, .status-box, .form-panel, .designer-preview, .erp-strip, .footer a {
  border-radius: 2px;
}
.feature-copy { background: #003865; border-radius: 2px; }
.step::before { background: #003865; border-radius: 2px; }
.form-panel { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.designer-preview { box-shadow: inset 0 0 0 12px rgba(255,255,255,.34), 0 8px 20px rgba(15, 23, 42, .06); }
.capacity span { background: #003865; }
.erp-strip { background: #003865; }
.footer { background: #0f172a; }
