:root {
  color-scheme: dark;
  --ink: #f5f7fa;
  --accent: #66fcf1;
  --muted: #b9c4cd;
  --line: #354655;
  --surface: #161e2c;
  --container: 980px;
  font-family: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: #111315;
  font-size: 16px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 50;
  inset: .5rem auto auto .5rem;
  padding: .6rem .9rem;
  background: var(--accent);
  color: #07181a;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.btn {
  min-height: 46px;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { color: #07181a; background: #57b6b1; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { border-color: #a3d9f6; background: #080d1380; color: var(--ink); }
.btn-outline:hover { background: #263745; border-color: var(--accent); }

.site-header { position: relative; z-index: 5; background: #000; }
.nav-shell {
  width: min(calc(100% - 3rem), 1365px);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}
.site-logo { display: flex; align-items: center; gap: .45rem; flex: none; text-decoration: none; }
.site-logo img { width: 70px; aspect-ratio: 1; object-fit: contain; }
.site-brand { display: grid; gap: .18rem; color: #f0f1f2; font-size: .94rem; font-weight: 700; line-height: 1.12; white-space: nowrap; }
.site-brand span { color: var(--accent); font-size: .67rem; font-weight: 600; }
.nav-rail { display: flex; align-items: center; flex: 1; min-width: 0; }
.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  gap: clamp(.45rem, .9vw, 1rem);
  align-items: center;
  justify-content: space-between;
}
.site-header[data-menu-ready]:not([data-touch-menu]) .site-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: .3rem;
  scrollbar-width: none;
}
.site-header[data-menu-ready]:not([data-touch-menu]) .site-nav > * { flex: none; }
.site-header[data-menu-ready]:not([data-touch-menu]) .nav-submenu {
  position: fixed;
  inset: var(--submenu-top, auto) auto auto var(--submenu-left, auto);
  max-height: var(--submenu-height, 70vh);
  overflow: auto;
}
.nav-scroll-button {
  display: none;
  flex: none;
  width: 30px;
  min-height: 40px;
  margin-inline: .15rem;
  padding: 0;
  border: 1px solid #426366;
  border-radius: .4rem;
  background: #152728;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.nav-rail[data-overflow] .nav-scroll-button { display: inline-grid; place-items: center; }
.nav-scroll-button[aria-disabled="true"] { opacity: .42; cursor: default; }
.nav-scroll-button:not([aria-disabled="true"]):hover { background: #234246; }
.site-nav > a, .nav-group > summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: .15rem;
  padding: .2rem 0;
  border-block: 2px solid #b7b7b7;
  color: #f0f1f2;
  font-size: clamp(.83rem, 1.05vw, 1rem);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .nav-group > summary:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary svg { display: none; width: 15px; height: 15px; }
.nav-group[open] > summary svg { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  z-index: 2;
  left: -.75rem;
  top: calc(100% + .45rem);
  min-width: 12rem;
  padding: .35rem;
  border: 1px solid #36414a;
  border-radius: .55rem;
  background: #141b24;
  box-shadow: 0 12px 28px #0008;
}
.nav-submenu a { display: block; padding: .6rem .7rem; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav-submenu a:hover, .nav-submenu a:focus-visible { background: #202e3a; border-radius: .3rem; }
.nav-external, .nav-social { display: flex; align-items: center; gap: .55rem; }
.nav-social img { width: clamp(26px, 2.75vw, 39px); }
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .25rem .9rem;
  border-radius: .6rem;
  background: #4b98e0;
  color: white;
  font-size: clamp(.83rem, 1.22vw, 1.1rem);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.nav-contact svg { width: 1.45rem; height: 1.45rem; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: .38rem;
  padding: .45rem .65rem;
  border: 1px solid #455260;
  border-radius: .45rem;
  background: #151a20;
  min-height: 44px;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-footer { background: #101113; color: #c9c9c9; }
.footer-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1rem, 5vw, 3.4rem);
  align-items: start;
  padding-block: 74px 85px;
}
.site-footer h2 { margin: 0 0 .45rem; font-size: 1.27rem; font-weight: 500; }
.site-footer address, .site-footer p, .site-footer a { color: inherit; font-size: .78rem; }
.site-footer address { font-style: normal; }
.site-footer p { margin: .28rem 0 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-contact > a { display: flex; justify-content: flex-end; align-items: center; gap: .65rem; margin-bottom: .3rem; overflow-wrap: anywhere; }
.footer-contact svg { flex: 0 0 24px; width: 24px; }
.footer-social, .footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer-social { justify-content: flex-end; gap: .45rem; margin-top: .7rem; }
.footer-bottom {
  background: #212121;
  padding: 1.05rem 1rem 1.2rem;
  text-align: center;
}
.footer-legal { justify-content: center; gap: .55rem 1.8rem; margin-bottom: .45rem; }
.footer-legal a { font-weight: 650; }
.footer-bottom p { margin: 0; }

.site-float, body > .ai-launch {
  position: fixed;
  z-index: 10;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}
.site-float {
  display: grid;
  justify-items: end;
  gap: .5rem;
  pointer-events: none;
}
.site-float-actions { display: none; }
.site-float-actions:not([hidden]) {
  display: grid;
  gap: .5rem;
}
.site-float-actions > :not([hidden]) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 0 4px 16px #0007;
  pointer-events: auto;
}
.site-float-actions svg { width: 24px; height: 24px; }
.site-float-actions > .site-float-top { color: #fff; background: #182839; border-color: #7895ac; }
.site-float-contact { color: #071c10; background: #52e389; }
.ai-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1.35rem;
  min-height: 56px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(115deg, #3e76f6, #589bf9);
  box-shadow: 0 8px 28px #0006;
  color: #fff;
  font-size: .875rem;
  font-weight: 750;
  text-decoration: none;
  pointer-events: auto;
}
.ai-launch:hover { background: #235cc4; }
.ai-symbol { width: 30px; height: 30px; background: #fff; mask: url('./dragon.svg') center / contain no-repeat; }
.ai-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(calc(100% - 2rem), 420px);
  max-width: none;
  max-height: min(720px, calc(100dvh - 2rem));
  margin: 0;
  padding: 0;
  border: 1px solid #406685;
  border-radius: 1rem;
  background: #0e1725;
  color: var(--ink);
  box-shadow: 0 20px 70px #000a;
}
.ai-dialog[open] { display: flex; flex-direction: column; }
.ai-dialog::backdrop { background: #01060a99; }
.ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .45rem .35rem .9rem;
  background: #14243a;
}
.ai-bar h2 { margin: 0; font-size: 1rem; }
.ai-close { width: 44px; height: 44px; border: 0; border-radius: .4rem; background: transparent; display: grid; place-items: center; }
.ai-close:hover { background: #243c5a; }
.ai-close svg { width: 23px; height: 23px; }
.ai-policy { margin: 0; padding: .45rem .9rem; font-size: .85rem; line-height: 1.45; }
.ai-policy a { color: #aed2ff; }
.ai-dialog iframe { border: 0; width: 100%; height: min(560px, 70dvh); background: #121b28; }
.ai-external { display: block; padding: .55rem .9rem; font-size: .85rem; color: #aed2ff; text-align: center; }

.site-related {
  padding-block: clamp(1.75rem, 4vw, 3rem);
  background: #0d151e;
  border-block: 1px solid #293d4b;
}
.site-related h2 { margin: 0 0 .9rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.site-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 46px;
  height: 100%;
  padding: .6rem .8rem;
  border: 1px solid #375567;
  border-radius: .5rem;
  color: #d8efef;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.site-related a:is(:hover, :focus-visible) { border-color: var(--accent); background: #17313b; }
.site-related a > span { color: var(--accent); }
@media print { .site-related { display: none; } }

@media (max-width: 1280px) {
  .nav-shell { width: calc(100% - 2rem); min-height: 67px; }
  .site-logo img { width: 53px; height: auto; }
}
.site-header[data-touch-menu] .nav-shell {
  width: calc(100% - 2rem);
  min-height: 67px;
  flex-wrap: wrap;
  gap: 0;
}
.site-header[data-touch-menu] .site-logo img { width: 53px; height: auto; }
.site-header[data-touch-menu] .nav-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: .4rem;
}
.site-header[data-touch-menu] .nav-toggle svg { width: 30px; height: 30px; }
.site-header[data-touch-menu][data-menu-open] ~ :is(.site-float, .ai-launch) { display: none; }
.site-header[data-touch-menu] .nav-rail { display: block; flex: 1 0 100%; }
.site-header[data-touch-menu]:not([data-menu-open]) .nav-rail { display: none; }
.site-header[data-touch-menu] .site-nav {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  max-height: calc(100dvh - 67px);
  overflow-y: auto;
  gap: .15rem;
  padding: .3rem .2rem .8rem;
}
.site-header[data-touch-menu] .site-nav > a,
.site-header[data-touch-menu] .nav-group > summary {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid #2c353d;
  padding: .4rem .45rem;
  justify-content: space-between;
  font-size: .95rem;
}
.site-header[data-touch-menu] .nav-group > summary svg { display: block; }
.site-header[data-touch-menu] .nav-submenu { position: static; margin: .3rem 0; box-shadow: none; }
.site-header[data-touch-menu] .nav-submenu a { min-height: 44px; }
.site-header[data-touch-menu] .nav-contact { margin-top: .35rem; min-height: 44px; justify-self: start; }
.site-header[data-touch-menu] .nav-external { flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 650px) {
  .footer-body { grid-template-columns: 1fr; padding-block: 2rem; gap: 1.4rem; text-align: center; }
  .footer-contact > a, .footer-social { justify-content: center; }
  .footer-bottom { padding-bottom: 4.7rem; }
  .site-float, body > .ai-launch { right: max(.7rem, env(safe-area-inset-right)); bottom: max(.7rem, env(safe-area-inset-bottom)); }
  .ai-launch { padding-inline: 1rem; min-height: 48px; }
  .ai-symbol { width: 24px; height: 24px; }
}
@media (max-width: 430px) {
  .ai-launch-extra { display: none; }
  .ai-dialog { inset-inline: .5rem; width: calc(100% - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.case-carousel { background: #161c26; padding: 42px 0 48px; text-align: center; }
.case-carousel h2, .case-carousel h3, .case-carousel p { margin: 0; }
.case-carousel-heading h2 { font-size: 24px; line-height: 1.3; }
.case-carousel-heading p { color: #b3b7bd; font-size: 13px; margin-top: .3rem; }
.case-carousel-stage { position: relative; }
.case-carousel-slides {
  display: grid;
  place-items: center;
  min-height: 375px;
  padding: 45px 56px 76px;
}
.case-carousel-slide { width: min(100%, 700px); }
.case-carousel-slide h3 { font-size: 16px; line-height: 1.55; }
.case-carousel-slide > span { display: block; width: 36px; margin: 22px auto; border-top: 1px solid #8893a3; }
.case-carousel-slide p { color: #c3c8cf; font-size: 16px; line-height: 1.45; }
.case-carousel-controls > button {
  position: absolute;
  top: 46%;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #aeb6c0;
  font: 300 38px/1 Arial, sans-serif;
}
.case-carousel-controls > button:first-child { left: clamp(2px, 5vw, 78px); }
.case-carousel-controls > button:nth-child(2) { right: clamp(2px, 5vw, 78px); }
.case-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: -25px auto 24px;
  padding-inline: 14px;
}
.case-carousel-dots button {
  display: grid;
  place-items: center;
  width: 21px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
}
.case-carousel-dots button::after { content: ''; width: 5px; height: 5px; background: #c8cdd0; border-radius: 50%; }
.case-carousel-dots button[aria-pressed=true]::after { width: 8px; height: 8px; background: transparent; border: 1px solid #fff; }
.case-carousel-all {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .5rem 1.15rem;
  border-radius: 10px;
  background: #2b594e;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
@media (max-width: 650px) {
  .case-carousel { padding: 32px 0 38px; }
  .case-carousel-slides { min-height: 300px; padding: 32px 40px 62px; }
  .case-carousel-controls > button { width: 38px; }
  .case-carousel-controls > button:first-child { left: 0; }
  .case-carousel-controls > button:nth-child(2) { right: 0; }
  .case-carousel-slide p { font-size: 14px; }
  .case-carousel-dots { margin-top: -22px; }
  .case-carousel-dots button { width: 22px; height: 26px; }
}

.nav-group:has(a[aria-current="page"]) > summary {
  border-block-color: #72d1cb;
  color: #d7fffb;
}

.page-visual {
  padding: clamp(2rem, 5vw, 4.25rem) 0;
  border-block: 1px solid #223a47;
  background: #09141f;
  color: #edf8fc;
  scroll-margin-block-start: 5rem;
}
.page-visual-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.75rem);
  width: min(calc(100% - 2rem), 66rem);
  margin-inline: auto;
}
.page-visual .page-visual-copy {
  min-width: 0;
  text-align: start;
}
.page-visual .page-visual-copy h2 {
  margin: 0 0 .75rem;
  color: #8af4f0;
  font-size: clamp(1.35rem, 2.7vw, 2.05rem);
  line-height: 1.35;
}
.page-visual .page-visual-copy p {
  margin: 0 0 .8rem;
  color: #c9d6e1;
  font-size: 1rem;
  line-height: 1.75;
}
.page-visual a.page-visual-link {
  display: inline-block;
  padding: .55rem 0;
  color: #91faf1;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.page-visual-link:focus-visible { outline: 2px solid #91faf1; outline-offset: 3px; }
.page-visual .page-visual-inner figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #2e5061;
  border-radius: .75rem;
  background: #0f2130;
}
.page-visual .page-visual-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
}
.page-visual figcaption {
  padding: .6rem .85rem;
  color: #bacdd9;
  font-size: .875rem;
  line-height: 1.5;
  text-align: start;
}
@media (max-width: 680px) {
  .page-visual-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .page-visual .page-visual-copy :is(h2, p) { text-wrap: pretty; }
  .page-visual .page-visual-copy h2 { text-align: center; }
  .page-visual a.page-visual-link {
    display: table;
    margin-inline: auto;
    text-align: center;
  }
}

.case-carousel-slides { min-height: var(--case-stage-height, 375px); touch-action: pan-y pinch-zoom; }
.case-carousel .case-carousel-count { margin: -20px auto 4px; color: #bbc5ce; font-size: 12px; line-height: 16px; }
.case-carousel-controls > button:focus-visible, .case-carousel-dots button:focus-visible { outline-offset: 0; }
:is(.sd-home, .district) .btn:focus-visible { box-shadow: 0 0 15px rgb(95 231 221 / 25%); }
@media (max-width: 650px) {
  .case-carousel-slides { min-height: 300px; }
}
@media (hover: hover) and (pointer: fine) {
  .case-carousel-controls > button:hover { color: #fff; background: rgb(102 252 241 / 9%); border-radius: .4rem; }
  :is(.sd-home, .district) .btn:hover { box-shadow: 0 0 15px rgb(95 231 221 / 25%); }
  .site-nav > a:hover, .nav-group > summary:hover { border-block-color: #72d1cb; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.sd-home, .district) .btn { transition: translate 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out; }
  :is(.sd-home, .district) .btn:hover { translate: 0 -2px; }
  .case-carousel-controls > button > span { display: inline-block; transition: translate 170ms ease-out; }
  .case-carousel-controls > [data-carousel-step="-1"]:is(:hover, :focus-visible) > span { translate: -.18em 0; }
  .case-carousel-controls > [data-carousel-step="1"]:is(:hover, :focus-visible) > span { translate: .18em 0; }
}
