:root {
  --ink: #102026;
  --muted: #627075;
  --line: #d9e3e3;
  --paper: #f6f9f8;
  --white: #ffffff;
  --teal: #04786f;
  --teal-dark: #064e4b;
  --mint: #dff3ee;
  --gold: #c28d32;
  --blue: #1f5d8c;
  --shadow: 0 18px 50px rgba(16, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 227, 227, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
}

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

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #314247;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--teal);
}

.cart-button,
.primary-action,
.secondary-action,
.filters button,
.intent-grid button,
.product-card button,
.contact-form button,
.cart-footer button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.cart-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #102026;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 23, 0.9) 0%, rgba(7, 18, 23, 0.7) 42%, rgba(7, 18, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 18, 23, 0.18) 0%, rgba(7, 18, 23, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 74px);
  padding: 54px 0 104px;
  color: var(--white);
}

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

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-action {
  color: var(--ink);
  background: var(--white);
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin-top: 44px;
}

.hero-metrics span {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 26px;
}

section {
  padding: 72px clamp(18px, 5vw, 72px);
}

.quick-order {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 26px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.18;
}

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

.intent-grid button,
.filters button {
  min-height: 44px;
  border-radius: 8px;
  background: #edf4f2;
  color: #24373c;
  font-weight: 700;
}

.intent-grid button:hover,
.filters button.active {
  color: var(--white);
  background: var(--teal);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters button {
  padding: 0 16px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 32, 38, 0.05);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.duration {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.product-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.32;
}

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

.product-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  color: #314247;
  font-size: 14px;
}

.product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.price {
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 900;
}

.product-card button {
  min-width: 112px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
}

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

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

.steps article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.steps span {
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
}

.steps h3 {
  margin: 18px 0 10px;
}

.steps p,
.quality p,
.contact p {
  color: var(--muted);
  line-height: 1.8;
}

.quality {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
  color: var(--white);
  background: #102026;
}

.quality p {
  color: rgba(255, 255, 255, 0.72);
}

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

.quality-list span {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.9fr);
  gap: 46px;
  align-items: start;
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #314247;
  font-size: 14px;
  font-weight: 800;
}

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

.contact-form button {
  min-height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

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

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

.cart-header h2 {
  font-size: 26px;
}

.cart-header button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 0;
}

.cart-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.cart-item h3 {
  margin: 0;
  font-size: 16px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.cart-empty {
  display: none;
  margin: 22px 0;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  line-height: 1.7;
}

.cart-empty.show {
  display: block;
}

.cart-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.total-row strong {
  color: var(--teal-dark);
  font-size: 28px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #314247;
  font-size: 14px;
  font-weight: 800;
}

.payment-methods label {
  position: relative;
  min-height: 42px;
}

.payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-methods span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #314247;
  background: #fbfdfd;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.payment-methods input:checked + span {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
}

.cart-footer button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.cart-footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(4, 16, 20, 0.42);
}

.scrim.show {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    align-items: start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  .quick-order,
  .quality,
  .contact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

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

  .cart-button {
    min-width: 88px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-metrics,
  .intent-grid,
  .product-grid,
  .steps,
  .quality-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .payment-methods {
    grid-template-columns: 1fr;
  }

  section {
    padding: 54px 18px;
  }
}
