:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --text: #17202a;
  --muted: #5b6876;
  --line: #dbe3ea;
  --panel: #ffffff;
  --navy: #17324d;
  --cyan: #0f8ca8;
  --green: #2f8f5f;
  --amber: #c9851a;
  --shadow: 0 18px 46px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 227, 234, 0.88);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav,
.hero-actions,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
}

.top-nav {
  gap: 8px;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  background: #edf3f7;
  color: var(--text);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 18, 30, 0.84), rgba(7, 18, 30, 0.56) 46%, rgba(7, 18, 30, 0.2)),
    linear-gradient(180deg, rgba(7, 18, 30, 0.18), rgba(247, 249, 251, 0.22) 78%, var(--bg));
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(92px, 14vh, 150px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #87dcec;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.toolbar,
.section,
.status-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 28px 0 10px;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.06);
}

.filters {
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.filter {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter.active {
  background: var(--navy);
  color: #ffffff;
}

.section {
  padding: 48px 0;
}

.section-heading {
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
}

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

.service-card {
  display: grid;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 140, 168, 0.45);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #e9f6f8;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.service-card p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.tag {
  align-self: end;
  width: fit-content;
  margin-top: 20px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f1e7;
  color: #8a5d14;
  font-size: 13px;
  font-weight: 800;
}

.service-card.is-hidden {
  display: none;
}

.status-band {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
  border-block: 1px solid var(--line);
  background: #eef5f2;
}

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

.status-list div {
  padding: 18px;
  border: 1px solid rgba(47, 143, 95, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

dd {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9eef3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

@media (max-width: 860px) {
  .site-header {
    padding: 0 20px;
  }

  .top-nav {
    display: none;
  }

  .toolbar,
  .status-band {
    grid-template-columns: 1fr;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
  }

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

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 620px;
  }

  .hero-content {
    width: min(100% - 32px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .button {
    width: 100%;
  }
}
