:root {
  color-scheme: light;
  --ink: #1d2b36;
  --muted: #5d6971;
  --line: #dfe5e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --steel: #506473;
  --accent: #0b8f67;
  --accent-dark: #066348;
  --warm: #b88a54;
  --shadow: 0 24px 80px rgba(29, 43, 54, 0.16);
  font-family:
    "Noto Sans TC",
    "Microsoft JhengHei",
    "PingFang TC",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 36px rgba(29, 43, 54, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--steel), var(--ink));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.86;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta,
.primary-button,
.secondary-button,
.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta,
.primary-button,
.line-button {
  color: var(--white);
  background: var(--accent);
}

.primary-button:hover,
.line-button:hover,
.nav-cta:hover {
  background: var(--accent-dark);
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: var(--ink);
}

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

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 27, 34, 0.88), rgba(15, 27, 34, 0.46), rgba(15, 27, 34, 0.18)),
    linear-gradient(0deg, rgba(15, 27, 34, 0.72), rgba(15, 27, 34, 0.1) 45%);
}

.hero-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 56px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  font-size: 1.42rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.intro p:last-child,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 2;
}

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

.product-section {
  padding-top: 24px;
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(29, 43, 54, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f2;
}

.product-card.featured img {
  object-fit: contain;
  padding: 22px;
}

.product-card div {
  padding: 24px;
}

.product-card h3,
.advantage-grid h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.product-card p,
.advantage-grid p,
.process-list span,
.contact-panel p,
.contact-panel small {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.advantages {
  width: 100%;
  max-width: none;
  padding: 88px max(18px, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: var(--white);
}

.advantages .section-heading {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.advantage-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.advantage-grid article {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.advantage-grid span {
  display: block;
  margin-bottom: 56px;
  color: var(--warm);
  font-weight: 900;
}

.advantage-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  padding: 28px 28px 28px 76px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: steps;
}

.process-list li::before {
  content: counter(steps);
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--steel);
  border-radius: 50%;
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.contact {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(29, 43, 54, 0.94), rgba(58, 80, 91, 0.92)),
    url("鋼櫃.jpg") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact .section-kicker,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact h2 {
  margin-bottom: 18px;
}

.contact-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.line-button {
  width: 100%;
  margin: 18px 0 12px;
  min-height: 54px;
  font-size: 1.05rem;
}

.contact-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-stats,
  .intro,
  .product-grid,
  .advantage-grid,
  .process-list,
  .contact {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .advantage-grid article {
    min-height: 190px;
  }

  .advantage-grid span {
    margin-bottom: 28px;
  }

  .contact {
    margin-bottom: 54px;
  }
}

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

  .brand small {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions a {
    width: 100%;
  }

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

  .section-heading {
    display: block;
  }

  .process-list li {
    padding-right: 22px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 10px;
  }
}
