:root {
  color-scheme: light;
  --ink: #172235;
  --muted: #5e6a7d;
  --line: #dce3ec;
  --paper: #f7f9fc;
  --white: #ffffff;
  --navy: #122247;
  --blue: #1e5aa8;
  --cyan: #20c7d8;
  --shadow: 0 18px 50px rgba(18, 34, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(247, 249, 252, 0.9);
  border-bottom: 1px solid rgba(220, 227, 236, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

nav.mobile-nav {
  display: none !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 6vw 56px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.9) 58%, rgba(220, 239, 248, 0.68)),
    radial-gradient(circle at 88% 18%, rgba(32, 199, 216, 0.2), transparent 34%);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 9vw, 86px);
  line-height: 1.05;
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 6vw, 44px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

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

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

.primary-button {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(18, 34, 71, 0.18);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.hero-visual,
.equipment-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-visual {
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.section,
.equipment-section {
  padding: 86px 6vw;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 36px;
}

.section-heading p:last-child,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 34, 71, 0.06);
}

.service-card p,
.equipment-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid rgba(32, 199, 216, 0.32);
  border-radius: 8px;
  background: #ecfbfd;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
}

.equipment-section {
  background: var(--white);
}

.equipment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 32px;
  align-items: stretch;
}

.equipment-photo-main img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

.equipment-content {
  display: grid;
  gap: 16px;
}

.equipment-content article {
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
}

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

.equipment-gallery img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

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

.product-card {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 34, 71, 0.06);
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card figcaption {
  padding: 18px 20px;
  font-weight: 800;
  color: var(--ink);
}

.application-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.application-list span {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(18, 34, 71, 0.06);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 40px;
  align-items: start;
  padding: 86px 6vw;
  background: var(--white);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.contact-card a {
  color: var(--blue);
  word-break: break-word;
}

.contact-name {
  font-size: 22px;
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6vw;
  background: #0c1730;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .equipment-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .application-list,
  .equipment-gallery,
  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand {
    display: none;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 18px 20px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    font-size: 15px;
  }

  nav.desktop-nav {
    display: none !important;
  }

  nav.mobile-nav {
    display: flex !important;
  }

  .hero,
  .section,
  .equipment-section,
  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    padding-top: 48px;
    gap: 34px;
  }

  .hero-text {
    font-size: 18px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .service-grid,
  .application-list,
  .equipment-gallery,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }
}
