:root {
  --color-ink: #15202b;
  --color-muted: #5f6f7d;
  --color-line: #d6e0e8;
  --color-panel: #ffffff;
  --color-page: #eef5f8;
  --color-soft: #f6f9fb;
  --color-primary: #0b5f9c;
  --color-primary-dark: #08384f;
  --color-accent: #d97928;
  --color-teal: #118172;
  --shadow-soft: 0 18px 42px rgba(20, 45, 68, 0.13);
  --shadow-tight: 0 10px 24px rgba(20, 45, 68, 0.1);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--color-page);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  color: #e9f5fb;
  background: var(--color-primary-dark);
  font-size: 13px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: #ffffff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--color-line);
}

.nav {
  position: relative;
}

.nav__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand__logo {
  width: min(280px, 46vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.nav__menu a {
  display: block;
  padding: 28px 10px;
  color: #253543;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.nav__toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-ink);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background: #071f30;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 2400ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 30, 0.92), rgba(4, 31, 53, 0.75), rgba(4, 18, 30, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.16;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #edf8fd;
  font-size: 0.58em;
  line-height: 1.35;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #dcecf5;
  font-size: 18px;
}

.hero .section-kicker {
  color: #ffbd76;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero__button,
.hero__dot {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #ffffff;
  background: rgba(5, 26, 43, 0.62);
  cursor: pointer;
}

.hero__button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.hero__button:hover,
.hero__button:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero__dots {
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
}

.button--primary {
  color: #ffffff;
  background: var(--color-accent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #c76720;
}

.button--light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--color-primary-dark);
  background: #ffffff;
}

.product-strip {
  background: var(--color-primary);
}

.product-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.product-tile {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.product-tile:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.product-tile span {
  color: #ffca8c;
  font-weight: 700;
}

.product-tile strong {
  font-size: 18px;
  line-height: 1.2;
}

.product-tile small {
  color: #d6e8f2;
}

.product-tile:hover,
.product-tile:focus-visible {
  background: rgba(0, 0, 0, 0.16);
}

.section {
  padding: 86px 0;
  background: linear-gradient(180deg, #f9fcfd, #eef5f8);
}

.section--soft {
  background: linear-gradient(180deg, #e7f0f6, #f3f8fb);
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.about__copy h2,
.contact__intro h2,
.advantage__copy h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.22;
}

.section-heading p,
.about__copy p,
.contact__intro p,
.advantage__copy p {
  color: var(--color-muted);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card,
.contact-card {
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.product-card {
  overflow: hidden;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  padding: 10px;
  overflow: hidden;
  background: #f6f8fa;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 240ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.2);
}

.product-card__body {
  padding: 20px;
}

.product-card__body span {
  display: block;
  margin: 0 0 6px;
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 700;
}

.product-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}

.product-card p,
.contact-card p {
  margin: 0;
  color: var(--color-muted);
}

.contact-card p + p {
  margin-top: 12px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.about__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about__panel div {
  display: grid;
  gap: 2px;
  padding: 18px;
  background: var(--color-soft);
  border-left: 4px solid var(--color-accent);
}

.about__panel strong {
  color: var(--color-primary);
  font-size: 32px;
  line-height: 1;
}

.about__panel span {
  color: var(--color-muted);
  font-size: 14px;
}

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

.certification-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.certification-card__mark {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: 6px;
  font-size: 22px;
  font-weight: 700;
}

.certification-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
}

.certification-card p {
  margin: 0;
  color: var(--color-muted);
}

.advantage-section {
  background: linear-gradient(180deg, #f5f9fb, #e0edf4);
}

.advantage__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.advantage-infographic {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact {
  background: linear-gradient(180deg, #e7f0f6, #d8e9f2);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.9fr) minmax(340px, 1.25fr);
  gap: 22px;
}

.contact__intro {
  align-self: center;
  padding-right: 24px;
}

.contact-card {
  padding: 28px;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 700;
}

.contact-map {
  min-height: 320px;
  overflow: hidden;
  background: #dbe7ef;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: 0;
}

.footer {
  color: #d7e8f0;
  background: #071f30;
}

.footer__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 18px;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #ffffff;
}

@media (max-width: 1040px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    padding: 10px 20px 22px;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
    box-shadow: var(--shadow-tight);
  }

  .nav__menu.is-open {
    display: grid;
  }

  .nav__menu a {
    padding: 12px 0;
  }
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .advantage__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__intro {
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar__inner,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
  }

  .nav__inner {
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: min(226px, 58vw);
    max-height: 48px;
  }

  .hero {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .product-strip__grid,
  .product-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .certification-card {
    align-items: flex-start;
    padding: 24px;
  }

  .product-tile {
    min-height: 104px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .about__copy h2,
  .contact__intro h2,
  .advantage__copy h2 {
    font-size: 28px;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}
