:root {
  color-scheme: dark;
  --background: #0b1020;
  --background-deep: #080d1a;
  --foreground: #edf4ff;
  --muted: #a9b5c8;
  --muted-strong: #c6d2e6;
  --primary: #63b9ff;
  --primary-foreground: #08111f;
  --accent: #48d5a7;
  --card: rgba(20, 29, 51, 0.68);
  --card-strong: rgba(20, 29, 51, 0.88);
  --border: rgba(126, 163, 217, 0.22);
  --border-strong: rgba(99, 185, 255, 0.36);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background:
    linear-gradient(180deg, rgba(99, 185, 255, 0.09), rgba(72, 213, 167, 0.035) 34%, transparent 62%),
    linear-gradient(135deg, #0c1325 0%, #070c18 54%, #0b1020 100%);
  line-height: 1.72;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 163, 217, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 163, 217, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 14, 27, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.nav {
  width: min(var(--container), 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--primary);
  border-left-color: transparent;
  border-radius: 999px;
  opacity: 0.94;
  filter: drop-shadow(0 0 14px rgba(99, 185, 255, 0.45));
  animation: brand-spin 11s linear infinite;
}

.brand-mark::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(99, 185, 255, 0.85);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted);
  font-family: "Orbitron", "Noto Sans TC", sans-serif;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-links .nav-cta {
  min-height: 42px;
  padding: 0 18px;
  color: var(--primary-foreground);
  border-radius: 8px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(99, 185, 255, 0.32);
}

.nav-links .nav-cta:hover {
  color: var(--primary-foreground);
  background: #7bc5ff;
}

.nav-links .nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(20, 29, 51, 0.74);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

main {
  padding-top: 72px;
}

.breadcrumb,
.hero,
.section,
.footer-inner {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.breadcrumb {
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted-strong);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.hero {
  padding: 82px 0 62px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 12px;
  color: var(--accent);
  border: 1px solid rgba(72, 213, 167, 0.36);
  border-radius: 999px;
  background: rgba(72, 213, 167, 0.08);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(36px, 5.3vw, 68px);
  line-height: 1.06;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.22;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.36;
  font-weight: 800;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 840px;
  margin-top: 22px;
  color: var(--muted-strong);
  font-size: 19px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button.primary {
  color: var(--primary-foreground);
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 18px rgba(99, 185, 255, 0.28);
}

.button.secondary {
  color: var(--foreground);
  background: rgba(20, 29, 51, 0.72);
}

.section {
  padding: 36px 0;
}

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

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--border-strong);
}

.service-list a {
  display: block;
  text-decoration: none;
}

.service-list .card {
  height: 100%;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted-strong);
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted-strong);
}

li + li {
  margin-top: 8px;
}

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

.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  color: var(--foreground);
  font-weight: 800;
}

.faq p {
  margin-top: 10px;
  color: var(--muted-strong);
}

.tag {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

.site-footer {
  position: relative;
  margin-top: 58px;
  border-top: 1px solid var(--border);
  background: rgba(8, 13, 26, 0.9);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(99, 185, 255, 0.58), transparent);
}

.footer-inner {
  position: relative;
  padding: 52px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.65fr) minmax(180px, 0.75fr) minmax(220px, 0.85fr);
  gap: 38px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.footer-text,
.footer-links a,
.footer-contact {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

@keyframes brand-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 20px;
  }

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

  .two-col,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(9, 14, 27, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .nav-links a.is-active {
    background: rgba(99, 185, 255, 0.1);
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  main {
    padding-top: 68px;
  }

  .breadcrumb,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding: 56px 0 34px;
  }

  h1 {
    font-size: clamp(32px, 9.6vw, 46px);
  }

  .lead {
    font-size: 17px;
  }

  .grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .footer-inner {
    padding-top: 42px;
  }
}
