:root {
  --brand: #554092;
  --brand-dark: #2d255f;
  --brand-soft: #e8e3f4;
  --accent: #d62027;
  --paper: #f8f8f6;
  --panel: #ffffff;
  --ink: #202032;
  --muted: #6f7480;
  --line: #d9d3c9;
  --focus: #d62027;
  --shadow: 0 22px 70px rgba(45, 37, 95, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(47, 58, 70, .08) 1px, transparent 1px),
    linear-gradient(rgba(47, 58, 70, .08) 1px, transparent 1px),
    #e9e6df;
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}
a { color: #352886; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { height: auto; }
.modern-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(32, 37, 50, .28);
  border-radius: 4px;
  background: rgba(251, 250, 246, .96);
  color: var(--brand-dark);
  box-shadow: 0 12px 34px rgba(32, 37, 50, .18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease, color .18s ease;
}
.modern-back-to-top svg {
  fill: currentColor;
}
.modern-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.modern-back-to-top:hover {
  background: var(--brand-dark);
  color: #ffffff;
}
.modern-header {
  position: relative;
  z-index: 20;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid #303640;
  background: #fbfaf6;
}
.modern-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo button"
    "nav nav";
  align-items: center;
  row-gap: 8px;
  column-gap: 24px;
  width: min(996px, calc(100% - 44px));
  min-height: 92px;
  margin: 0 auto;
  padding: 10px 0 12px;
}
.modern-logo {
  grid-area: logo;
  display: inline-grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 360px;
  color: var(--brand-dark);
  text-decoration: none;
}
.modern-logo img {
  display: block;
  width: 58px;
  height: 48px;
  object-fit: contain;
}
.modern-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.modern-company-name {
  display: block;
  color: var(--brand-dark);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}
.modern-company-subtitle {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}
.modern-menu-button {
  grid-area: button;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  place-items: center;
}
.modern-menu-icon,
.modern-menu-icon::before,
.modern-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-dark);
}
.modern-menu-icon {
  position: relative;
}
.modern-menu-icon::before,
.modern-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}
.modern-menu-icon::before { top: -7px; }
.modern-menu-icon::after { top: 7px; }
.modern-menu-button[aria-expanded="true"] .modern-menu-icon {
  background: transparent;
}
.modern-menu-button[aria-expanded="true"] .modern-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.modern-menu-button[aria-expanded="true"] .modern-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.modern-nav {
  grid-area: nav;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 1px;
  width: auto;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #303640;
  border-radius: 0;
  background: #303640;
}
.modern-nav-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 2px;
  color: #ffffff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.1;
  background: transparent;
  transition: transform .18s ease, color .18s ease, background-color .18s ease;
}
.modern-nav-item:hover, .modern-nav-item.is-active {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
.modern-nav-item:active { transform: translateY(0); }
.modern-nav-item img { display: none; }
.modern-main { padding: 28px 0 84px; }
.modern-shell {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #333b45;
  border-radius: 0;
  background: #fbfaf6;
  box-shadow: 0 18px 0 rgba(47, 58, 70, .14);
}
.modern-shell::before {
  display: block;
  grid-column: 1 / -1;
  width: 108px;
  height: 4px;
  margin: -33px 0 28px -1px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  content: "";
}
.modern-shell.has-sidebar {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.modern-shell.is-home {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.modern-shell.is-home::before {
  display: none;
}
.modern-sidebar {
  position: sticky;
  top: 110px;
  overflow: hidden;
  border: 1px solid #d7d2c7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(81, 65, 142, .18), transparent 26px),
    linear-gradient(180deg, #fbfaf5, #f0ece2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 30px rgba(39, 36, 48, .08);
}
.modern-sidebar table { width: 100% !important; height: auto !important; }
.modern-sidebar td { display: block; width: 100% !important; padding: 2px 0; text-align: center; }
.modern-sidebar a {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  transition: transform .18s ease, filter .18s ease;
}
.modern-sidebar a:hover { transform: translateX(2px); filter: saturate(1.08); }
.modern-sidebar img { display: inline-block; max-width: 128px; height: auto; }
.modern-content {
  overflow-x: auto;
  color: var(--ink);
  scrollbar-color: var(--brand) #ece7dc;
}
.modern-content table { max-width: 100%; }
.modern-content td, .modern-content th { line-height: 1.72; }
.modern-content p { margin-top: .75rem; margin-bottom: .75rem; }
.modern-content a {
  color: #31217f;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.modern-content a:hover { color: #5b38b4; }
.modern-content img {
  max-width: none;
  border-radius: 4px;
}
.modern-home {
  overflow: visible;
}
.modern-home img {
  max-width: 100%;
}
.modern-content img[src*="Logo.gif"],
.modern-content img[src*="logo.gif"],
.modern-content img[src*="news.gif"],
.modern-content img[src*="company.gif"],
.modern-content img[src*="technology.gif"],
.modern-content img[src*="products.gif"],
.modern-content img[src*="video.gif"],
.modern-content img[src*="contact.gif"] {
  border-radius: 0;
}
.modern-content table[border]:not(.MsoNormalTable) {
  border-color: #2f3440;
  border-collapse: collapse;
  background: rgba(255,255,255,.55);
}
.modern-content table[border]:not(.MsoNormalTable) td,
.modern-content table[border]:not(.MsoNormalTable) th {
  border-color: #2f3440;
}
.modern-content [bgcolor="#CCCCFF"], .modern-content [bgColor="#CCCCFF"], .modern-content [style*="rgb(204, 204, 255)"] { background: var(--brand-soft) !important; }
.modern-content [bgcolor="#5b489a"], .modern-content [bgColor="#5b489a"], .modern-content [bgcolor="#5B489A"], .modern-content [bgColor="#5B489A"] { background: var(--brand) !important; }
.modern-content form {
  max-width: 620px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.modern-content input, .modern-content textarea, .modern-content select, .modern-content button {
  max-width: 100%;
  font: inherit;
  border-radius: 6px;
}
.modern-content input[type="submit"], .modern-content button {
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #6250a0, var(--brand-dark));
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.modern-content input[type="submit"]:hover, .modern-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(35,31,67,.18);
}
.modern-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: 0;
}
.home-catalog-hero {
  display: grid;
  grid-template-columns: .72fr minmax(420px, 1fr);
  gap: 34px;
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 6px solid var(--brand);
}
.home-catalog-copy h1 {
  max-width: 8.5em;
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(2.7rem, 5.6vw, 6rem);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}
.home-catalog-visual {
  display: grid;
  justify-items: end;
}
.home-catalog-visual img {
  width: min(620px, 100%);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(32, 32, 50, .16);
}
.home-catalog-products,
.home-catalog-news {
  width: min(1220px, calc(100% - 44px));
  margin: 42px auto 0;
}
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.home-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.home-product-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 18px;
}
.home-product-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 8px;
  background: #222435;
  color: #ffffff;
}
.home-product-card.is-large {
  grid-row: span 2;
}
.home-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .86;
  transition: transform .26s ease, opacity .26s ease;
}
.home-product-card:hover img {
  opacity: .96;
  transform: scale(1.04);
}
.home-product-card strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(23, 22, 36, .78);
  font-size: 1.08rem;
  line-height: 1.35;
}
.home-product-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: rgba(85, 64, 146, .16);
}
.home-product-links a {
  min-height: 64px;
  padding: 14px;
  background: #ffffff;
  color: #1e266f;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.home-product-links a:hover {
  color: #ffffff;
  background: var(--brand);
}
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(85, 64, 146, .16);
}
.home-news-grid span {
  min-height: 96px;
  padding: 16px;
  background: #ffffff;
  color: #1e266f;
  font-weight: 700;
}
.home-news-grid time {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 800;
}
.home-original-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  width: min(996px, calc(100% - 44px));
  margin: 0 auto;
  padding: 8px 18px;
  color: #ffffff;
  background: #303640;
  font-size: .92rem;
}
.home-original-footer span:nth-child(2) { text-align: center; }
.home-original-footer span:last-child { text-align: right; }
.home-live-panel {
  width: min(996px, calc(100% - 44px));
  margin: 0 auto;
  border: 1px solid #333b45;
  border-bottom: 0;
  background: #fbfaf6;
  box-shadow: 0 18px 0 rgba(47, 58, 70, .14);
}
.home-live-top {
  display: grid;
  grid-template-columns: 406px minmax(0, 1fr);
  min-height: 264px;
  border-top: 3px solid var(--accent);
  border-bottom: 11px solid var(--accent);
}
.home-live-entry {
  display: grid;
  place-items: start center;
  margin: 0;
  padding: 10px 3px 12px;
  background: #efede6;
}
.home-live-entry img {
  width: 400px;
  height: 240px;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}
.home-live-news {
  padding: 11px 18px 0 6px;
  border-left: 1px solid rgba(47, 58, 70, .18);
}
.home-live-news h1,
.home-live-equipment h2 {
  margin: 0;
  padding-left: 8px;
  border-left: 4px solid var(--brand);
  color: #22252a;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
}
.home-live-news-list {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  color: #002fd1;
  font-size: .92rem;
  line-height: 1.55;
}
.home-live-news-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  min-height: 22px;
  align-items: start;
}
.home-live-news-list time {
  font-variant-numeric: tabular-nums;
}
.home-live-news-list time::after {
  content: ":";
  margin-left: 9px;
}
.home-live-equipment {
  padding: 12px 50px 16px;
}
.home-live-equipment-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 6px;
}
.home-live-equipment-list {
  list-style: none;
  display: grid;
  grid-template-columns: 234px 184px;
  grid-auto-rows: 19px;
  margin: 0;
  padding: 0 0 0 9px;
  color: #002fd1;
  font-size: .92rem;
  line-height: 1.35;
}
.home-live-equipment-list a {
  color: inherit;
  text-decoration: none;
}
.home-live-equipment-list a:hover {
  text-decoration: underline;
}
.home-live-product-links {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 13px;
}
.home-live-product-links a {
  display: block;
  padding: 4px;
  border: 1px solid #c6bfb0;
  background: #ffffff;
  transition: transform .18s ease, border-color .18s ease;
}
.home-live-product-links a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}
.home-live-product-links img {
  width: 68px;
  height: 65px;
  max-width: none;
  border-radius: 0;
}
.modern-map-source-hidden { display: none !important; }
.modern-map-scroll { overflow: hidden; max-width: 100%; padding-bottom: 8px; }
.modern-map-grid {
  display: grid;
  grid-template-columns: repeat(5, 227px);
  width: max-content;
  margin: 32px 0;
  line-height: 0;
  transform-origin: top left;
}
.modern-map-grid img { display: block; width: 227px; max-width: none; height: 180px; }
.section-contact .modern-content table.MsoNormalTable { width: 100% !important; table-layout: auto; }
.section-contact .modern-content table.MsoNormalTable tr { height: auto !important; }
.section-contact .modern-content table.MsoNormalTable td { width: auto !important; height: auto !important; max-width: 100%; padding-top: 2px !important; padding-bottom: 2px !important; overflow-wrap: anywhere; }
.section-contact .modern-content table.MsoNormalTable p { width: auto !important; margin-top: 2px !important; margin-bottom: 2px !important; line-height: 1.35 !important; }
@media (max-width: 900px) {
  .modern-header-inner, .modern-shell { width: min(100% - 28px, 720px); }
  .modern-header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav";
    min-height: 0;
    row-gap: 8px;
    padding: 10px 0;
  }
  .modern-logo {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    max-width: calc(100% - 58px);
  }
  .modern-logo img { width: 42px; height: 38px; }
  .modern-company-name {
    font-size: clamp(.98rem, 4.4vw, 1.24rem);
    white-space: normal;
  }
  .modern-company-subtitle { display: none; }
  .modern-menu-button { display: none; }
  .modern-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-self: start;
    gap: 1px;
    padding: 4px;
    box-shadow: none;
  }
  .modern-nav-item {
    min-width: 84px;
    min-height: 28px;
    padding: 5px 8px;
    font-size: .84rem;
  }
  .modern-main { padding: 22px 0 68px; }
  .modern-back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
  .modern-shell, .modern-shell.has-sidebar { display: block; padding: 18px; }
  .modern-shell.is-home { width: 100%; padding: 0; }
  .modern-shell::before { margin: -19px 0 22px -1px; width: 86px; }
  .modern-sidebar { position: static; margin-bottom: 24px; }
  .modern-sidebar td { display: inline-block; width: auto !important; }
  .modern-content { font-size: 1rem; }
  .modern-content img { max-width: 100%; height: auto; }
  .modern-map-grid img { max-width: none; }
  .home-catalog-hero,
  .home-product-grid,
  .home-news-grid,
  .home-product-links {
    grid-template-columns: 1fr;
  }
  .home-live-panel,
  .home-original-footer {
    width: 100%;
  }
  .home-live-top,
  .home-live-equipment-grid {
    grid-template-columns: 1fr;
  }
  .home-live-entry {
    place-items: start center;
    padding: 10px 4px 12px;
  }
  .home-live-entry img {
    width: min(100%, 400px);
    height: auto;
    max-width: 100%;
  }
  .home-live-news {
    padding: 14px 16px 20px;
    border-left: 0;
  }
  .home-live-news-list li {
    grid-template-columns: 74px 1fr;
  }
  .home-live-equipment {
    padding: 14px 16px 20px;
  }
  .home-live-equipment-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 7px;
    padding-left: 0;
  }
  .home-live-product-links {
    padding-top: 0;
  }
  .home-catalog-hero,
  .home-catalog-products,
  .home-catalog-news {
    width: min(100% - 28px, 720px);
  }
  .home-catalog-hero {
    gap: 24px;
    align-items: start;
  }
  .home-catalog-copy h1 {
    max-width: 100%;
    font-size: 2.55rem;
  }
  .home-catalog-visual {
    justify-items: start;
  }
  .home-product-card,
  .home-product-card.is-large {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .home-section-heading {
    display: block;
  }
  .home-section-heading h2 {
    margin-top: 6px;
    font-size: 2.25rem;
    line-height: 1.08;
  }
  .home-product-links a {
    min-height: 52px;
  }
  .home-original-footer {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }
  .home-original-footer span,
  .home-original-footer span:nth-child(2),
  .home-original-footer span:last-child {
    text-align: left;
  }
}
