:root {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #102746;
  background: #fff;
  line-height: 1.7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 max(5vw, 28px);
  border-bottom: 1px solid #dce3e9;
  gap: 38px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
  flex-shrink: 0;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.brand > b {
  font-size: 25px;
  color: #078c88;
}
.brand span {
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 500;
}
.brand + nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.contact,
.primary {
  background: #082c5b;
  color: #fff;
  padding: 11px 22px;
  border-radius: 4px;
}
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  padding: 75px max(5vw, 28px);
  overflow: hidden;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.3;
  margin: 0 0 24px;
}
.hero p {
  font-size: 18px;
  color: #566478;
  max-width: 650px;
}
.actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}
.secondary {
  border: 1px solid #102746;
  padding: 10px 22px;
  border-radius: 4px;
}
.hero-art img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: 65% center;
  box-shadow: 0 16px 40px #1027461a;
  cursor: zoom-in;
}
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #06162deb;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.image-viewer.is-open { display: flex; }
.image-viewer-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.image-viewer img { max-width: 92vw; max-height: 78vh; object-fit: contain; transform-origin: center; transition: transform .16s ease; user-select: none; -webkit-user-drag: none; }
.image-viewer-controls { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.image-viewer button { width: 48px; height: 48px; border: 1px solid #ffffff66; background: #fff; color: #082c5b; font: 800 22px/1 inherit; border-radius: 4px; }
.image-viewer-close { position: fixed; right: 18px; top: max(18px, env(safe-area-inset-top)); z-index: 3; }
.zoom-hint { display: block; margin-top: 10px; text-align: center; color: #667386; font-size: 13px; }
body.viewer-open { overflow: hidden; }
.products {
  background: #f3f7fa;
  padding: 84px max(5vw, 28px);
}
.product-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 34px;
  max-width: 1320px;
}
.product-heading h2 { margin: 0 0 8px; font-size: 36px; color: #082c5b; }
.product-heading p { margin: 0; color: #667386; }
.product-heading > span { color: #078c88; font-weight: 800; white-space: nowrap; }
.software-row {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.software-card {
  background: white;
  border: 1px solid #d8e3eb;
  border-top: 4px solid #078c88;
  padding: 34px;
  box-shadow: 0 14px 32px #1027460d;
}
.viewer-card { border-top-color: #082c5b; }
.card-head { display: flex; align-items: center; gap: 18px; }
.card-body > p, .hr-copy > p { color: #526276; line-height: 1.75; }
.product-entry { display: inline-flex; gap: 12px; align-items: center; margin-top: 12px; color: #078c88; font-weight: 900; text-decoration: none; border-bottom: 2px solid #078c88; padding-bottom: 4px; }
.product-entry span { transition: transform .2s ease; }
.product-entry:hover span { transform: translateX(5px); }
.product-entry.on-dark { color: #66d7d1; border-color: #66d7d1; }
.products .hr-product {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 42px;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 54px;
  background: #082c5b;
  color: white;
  box-shadow: 0 18px 40px #082c5b1f;
}
.hr-product .sub { color: #66d7d1; }
.hr-product .hr-copy > p { color: #c5d4e3; }
.hr-product ul { padding-left: 20px; color: #edf5fb; }
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  align-self: stretch;
  background: #315173;
  border: 1px solid #315173;
}
.flow-step {
  background: white;
  color: #082c5b;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 164px;
}
.flow-step span { color: #078c88; font-size: 28px; font-weight: 900; }
.flow-step b { font-size: 18px; margin: 10px 0 7px; }
.flow-step small { color: #667386; line-height: 1.5; }
.flow-step:not(:last-child)::after {
  content: "→";
  color: #078c88;
  font-size: 22px;
  position: absolute;
}
.flow-step { position: relative; }
.flow-step:not(:last-child)::after { right: -9px; top: 50%; z-index: 2; background: white; }
.product-title {
  width: 76px;
  height: 64px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}
.teal {
  background: #078c88;
}
.navy {
  background: #082c5b;
}
.products h2 {
  margin: 0;
  font-size: 28px;
}
.sub {
  margin: 0;
  color: #078c88;
  font-weight: bold;
}
.products li {
  margin: 7px 0;
}
.compare,
.download,
.security,
.faq {
  padding: 80px max(7vw, 35px);
}
section > h2 {
  font-size: 34px;
  margin: 0 0 12px;
}
.compare > p {
  color: #667386;
}
.table {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.5fr;
  margin-top: 30px;
  border-top: 2px solid #082c5b;
  border-left: 1px solid #d7dfe6;
}
.table > * {
  padding: 16px;
  border-right: 1px solid #d7dfe6;
  border-bottom: 1px solid #d7dfe6;
}
.th {
  background: #082c5b;
  color: white;
  font-weight: bold;
}
.download {
  background: #082c5b;
  color: white;
}
.download > p {
  max-width: 820px;
  color: #c5d4e3;
}
.download .light {
  color: white;
  border-color: #8fa8c3;
}
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.downloads article {
  padding: 28px;
  border: 1px solid #ffffff44;
  background: #ffffff0b;
}
.downloads .primary {
  display: inline-block;
  background: #0aa09a;
}
.downloads small {
  display: block;
  margin-top: 14px;
  color: #b9c9d9;
}
.download ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  list-style-position: inside;
}
.security > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.security article {
  border-top: 3px solid #078c88;
  padding-top: 18px;
}
.faq details {
  border-bottom: 1px solid #d9e0e6;
  padding: 18px 4px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
}
.cta {
  margin: 0 max(5vw, 28px) 70px;
  padding: 38px 46px;
  background: #eef7f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cta h2 {
  margin: 0;
}
.cta a {
  background: #078c88;
  color: white;
  padding: 12px 24px;
}
footer {
  background: #071d3b;
  color: white;
  padding: 30px max(5vw, 28px);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  font-size: 13px;
}
@media (max-width: 900px) {
  header {
    height: 66px;
    padding: 0 16px;
    gap: 10px;
  }
  header nav,
  .brand + nav {
    display: none !important;
  }
  .brand {
    gap: 9px;
    overflow: hidden;
  }
  .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .brand span {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .brand small {
    display: none;
  }
  .contact {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 13px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-art {
    margin-top: 40px;
  }
  .software-row,
  .downloads {
    grid-template-columns: 1fr;
  }
  .products .hr-product {
    grid-template-columns: 1fr;
  }
  .workflow {
    grid-template-columns: 1fr 1fr;
  }
  .table {
    font-size: 12px;
  }
  .download ol,
  .security > div {
    grid-template-columns: 1fr 1fr;
  }
  .cta,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .products { padding: 55px 18px; }
  .card-head { align-items: flex-start; gap: 14px; }
  .product-title { width: 58px; height: 54px; flex: 0 0 58px; font-size: 14px; }
  .products h2 { font-size: 23px; line-height: 1.25; overflow-wrap: anywhere; }
  .sub { font-size: 14px; line-height: 1.45; margin-top: 5px; }
  .card-body > p, .hr-copy > p { font-size: 15px; }
  .products ul { padding-left: 22px; }
  .products li { margin: 9px 0; font-size: 15px; }
  .product-heading { align-items: flex-start; flex-direction: column; }
  .product-heading h2 { font-size: 29px; }
  .software-card, .products .hr-product { padding: 22px 20px; }
  .products .hr-product { gap: 28px; }
  .workflow { grid-template-columns: 1fr; }
  .flow-step { min-height: 120px; }
  .table {
    grid-template-columns: 0.8fr 1fr 1fr;
  }
  .download ol,
  .security > div {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 30px;
  }
  body { width: 100%; max-width: 100%; overflow-x: hidden; touch-action: pan-y; }
  .hero-art img { border: 1px solid #d8e3eb; }
}
