* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0f5e9c;
  --secondary: #1a8ad6;
  --dark: #102030;
  --light: #f4f9ff;
  --text: #243447;
  --muted: #6a7a8a;
}

body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: #f7fbff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 46px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e8eef5;
}

@media (max-width: 768px) {
  .topbar {
    top: 0;
  }
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e4f2;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1e3f5f;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a {
  color: #28445f;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--secondary);
}

.hero {
  position: relative;
  min-height: 78vh;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero.short {
  min-height: 42vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 40, 70, 0.75), rgba(26, 138, 214, 0.45));
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(900px, 92%);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #e8f3ff;
}

.section {
  padding: 72px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #18324d;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eef5;
  box-shadow: 0 10px 30px rgba(30, 70, 110, 0.06);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin-bottom: 8px;
  color: #173451;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 18px;
  min-height: 320px;
  object-fit: cover;
}

.points {
  list-style: none;
  margin-top: 14px;
}

.points li {
  margin-bottom: 9px;
  padding-left: 26px;
  position: relative;
}

.points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0e9e73;
  font-weight: 700;
}

.content-box {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(10, 40, 70, 0.05);
  padding: 28px;
}

.content-box h2,
.content-box h3 {
  color: #163450;
  margin-bottom: 10px;
}

.content-box p,
.content-box li {
  color: #334a62;
}

.content-box ul {
  margin-left: 20px;
}

.contact-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

footer {
  background: #0f2032;
  color: #cdd7e1;
  padding: 30px 0;
  margin-top: 30px;
}

footer p {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.9;
}

footer a {
  color: #d9ecff;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-wrap {
    min-height: 76px;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    margin-top: 6px;
    padding: 8px 0;
    border-top: 1px solid #e6edf5;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 10px 2px;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 66vh;
  }

  .hero.short {
    min-height: 36vh;
  }
}
