:root {
  color-scheme: light;
  --ink: #14333a;
  --muted: #5f7378;
  --brand: #1d7f8a;
  --brand-deep: #0e5f6e;
  --mint: #c8f2df;
  --aqua: #e3f8f9;
  --sun: #ffd66b;
  --coral: #ff8768;
  --paper: #fbfcf7;
  --line: rgba(20, 51, 58, 0.14);
  --shadow: 0 22px 60px rgba(22, 79, 91, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

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: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 247, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(20, 51, 58, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--brand);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(29, 127, 138, 0.24);
}

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

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--brand-deep);
  background: var(--aqua);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(38px, 7vw, 90px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 252, 247, 0.96) 0 48%, rgba(251, 252, 247, 0.66) 70%, rgba(251, 252, 247, 0.28) 100%),
    #e3f8f9;
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(29, 127, 138, 0.24);
}

.button.primary:hover {
  background: var(--brand-deep);
}

.button.secondary {
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line);
}

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

.hero-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(20, 51, 58, 0.08);
}

.hero-metrics dt {
  color: var(--brand-deep);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(58px, 8vw, 106px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.intro-band {
  background: #fff;
}

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

.material-grid article,
.service-card,
.capacity-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.material-grid article {
  min-height: 250px;
  padding: 28px;
}

.material-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  background: var(--mint);
  border-radius: 8px;
}

.material-icon.sheet::after,
.material-icon.cube::after,
.material-icon.ring::after {
  position: absolute;
  content: "";
  inset: 14px;
  border: 3px solid var(--brand-deep);
}

.material-icon.sheet::after {
  border-radius: 2px;
}

.material-icon.cube::after {
  transform: rotate(45deg);
}

.material-icon.ring::after {
  border-radius: 50%;
}

.material-grid p,
.service-card p,
.capacity-list p,
.flow-list p {
  color: var(--muted);
}

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

.service-card {
  min-height: 260px;
  padding: 26px;
}

.card-number {
  display: inline-flex;
  width: 46px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--brand-deep);
  font-weight: 900;
  background: var(--sun);
  border-radius: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(28px, 6vw, 82px);
  background: var(--aqua);
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.flow-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.flow-list span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: var(--coral);
  border-radius: 8px;
}

.capacity-band {
  background: #fff;
}

.capacity-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.warehouse-map {
  display: grid;
  min-height: 430px;
  grid-template-columns: 0.7fr 1fr 1fr;
  grid-template-rows: 0.7fr 1fr 0.8fr;
  gap: 12px;
  padding: 18px;
  background: #eef9ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.zone {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 18px;
  color: var(--ink);
  text-align: center;
  font-weight: 900;
  background: #fff;
  border: 2px solid rgba(29, 127, 138, 0.24);
  border-radius: 8px;
}

.zone.inbound {
  background: #fff2c8;
}

.zone.pallet {
  grid-column: span 2;
  background: #d8f4f4;
}

.zone.bulk {
  grid-column: span 2;
  grid-row: span 2;
  background: #ffffff;
}

.zone.pick {
  background: #c8f2df;
}

.zone.outbound {
  grid-column: span 3;
  background: #ffd9cf;
}

.capacity-list {
  display: grid;
  gap: 16px;
}

.capacity-list article {
  padding: 24px;
}

.quote-section {
  background: linear-gradient(180deg, #fbfcf7 0%, #e3f8f9 100%);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 127, 138, 0.14);
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.quote-result {
  max-width: 980px;
  margin-top: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 8px;
}

.quote-result p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.install-button {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 800;
  background: var(--sun);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
    padding-top: 74px;
    background:
      linear-gradient(180deg, rgba(251, 252, 247, 0.92), rgba(251, 252, 247, 0.78)),
      #e3f8f9;
  }

  .material-grid,
  .service-grid,
  .split,
  .capacity-layout {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .hero-metrics,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    padding: 16px;
  }

  .warehouse-map {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: auto;
  }

  .zone,
  .zone.pallet,
  .zone.bulk,
  .zone.outbound {
    grid-column: auto;
    grid-row: auto;
  }

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