:root {
  --primary: #00204a;
  --secondary: #005792;
  --accent: #00bbf0;
  --highlight: #f9c74f;
  --bg-soft: #e8f1f8;
  --text-main: #1e293b;
  --white-glass: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 14px 40px rgba(0, 32, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 187, 240, 0.13) 0, transparent 35%),
    radial-gradient(circle at 90% 5%, rgba(0, 87, 146, 0.14) 0, transparent 30%),
    linear-gradient(180deg, #f3f8fc 0%, #ebf2f9 48%, #f5fafc 100%);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

main section[id] {
  scroll-margin-top: 132px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 32, 74, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.sticky-info {
  position: sticky;
  top: 61px;
  z-index: 9;
  background: rgba(0, 87, 146, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.sticky-info-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.48rem 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.sticky-info-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.sticky-info-inner span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.55);
  margin-left: 0.55rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1rem;
}

.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--highlight);
}

.glass-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: var(--white-glass);
  box-shadow: var(--shadow-card);
}

.hero {
  margin-top: 1.5rem;
  padding: 2.2rem;
}

.chip {
  display: inline-block;
  background: rgba(0, 187, 240, 0.18);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Chiron GoRound TC", "Noto Sans TC", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.85rem;
  font-size: clamp(1.75rem, 3.4vw, 2.95rem);
  color: var(--primary);
  line-height: 1.15;
}

.lead {
  margin-top: 0.9rem;
  line-height: 1.9;
  color: #334155;
}

.value-pills {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.value-pills span {
  border-radius: 999px;
  background: rgba(0, 87, 146, 0.12);
  color: #003459;
  padding: 0.35rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-cta {
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: 0.64rem 1.22rem;
  font-weight: 700;
}

.hero-cta:hover {
  filter: brightness(1.08);
}

.quick-facts {
  margin-top: 1rem;
  padding: 1.05rem 1.15rem;
}

.quick-facts h2 {
  color: var(--primary);
  font-size: 1.28rem;
}

.facts-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.fact-item {
  border-radius: 14px;
  border: 1px solid rgba(0, 87, 146, 0.2);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.8rem;
}

.fact-item h3 {
  color: #0f4c75;
  font-size: 1rem;
}

.fact-item p {
  margin: 0.45rem 0 0;
  line-height: 1.65;
}

.student-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.student-card {
  padding: 1rem;
}

.student-card h3 {
  color: var(--primary);
  font-size: 1.04rem;
}

.student-card p {
  margin: 0.5rem 0 0;
  line-height: 1.72;
}

.roadmap-wrap {
  margin-top: 1rem;
  padding: 1.25rem;
}

.roadmap-wrap h2 {
  color: var(--primary);
  font-size: 1.45rem;
}

.roadmap-intro {
  margin-top: 0.55rem;
  line-height: 1.78;
  color: #334155;
}

.filter-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  border: 1px solid rgba(0, 87, 146, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #0f4c75;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.filter-btn:hover {
  filter: brightness(1.03);
}

.map-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.map-card {
  border-radius: 18px;
  border: 1px solid rgba(0, 87, 146, 0.2);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card.dimmed {
  opacity: 0.42;
  transform: scale(0.985);
}

.map-card.focused {
  box-shadow: 0 10px 25px rgba(0, 87, 146, 0.2);
}

.map-card h3 {
  color: #0f4c75;
  font-size: 1.02rem;
}

.map-card p {
  margin: 0.45rem 0 0;
  line-height: 1.68;
}

.future-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.future-card {
  border-radius: 14px;
  padding: 0.8rem;
  background: linear-gradient(145deg, rgba(0, 87, 146, 0.1), rgba(0, 187, 240, 0.16));
}

.future-card h3 {
  color: var(--primary);
  font-size: 1.01rem;
}

.future-card p {
  margin: 0.45rem 0 0;
  line-height: 1.66;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.course-card {
  padding: 1.3rem 1.3rem 1.5rem;
}

.course-card h2 {
  color: var(--primary);
  font-size: 1.33rem;
}

.meta-line {
  margin-top: 0.42rem;
  color: #0f4c75;
  font-weight: 700;
  font-size: 0.92rem;
}

.subtitle {
  margin-top: 0.45rem;
  color: #0f4c75;
  font-weight: 600;
}

.course-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.72;
}

.tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags span {
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(0, 87, 146, 0.12);
  color: #003459;
  padding: 0.3rem 0.65rem;
}

.cta {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  padding: 0.62rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta-secondary {
  margin-top: 0.75rem;
  background: rgba(0, 87, 146, 0.12);
  color: #0f4c75;
  border: 1px solid rgba(0, 87, 146, 0.35);
}

.cta-secondary:hover {
  background: rgba(0, 187, 240, 0.18);
  filter: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric {
  padding: 1rem;
}

.metric h3 {
  color: var(--secondary);
  font-size: 1.08rem;
}

.metric p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
}

.register-wrap {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.register-card {
  padding: 1.3rem;
}

.register-card h2 {
  color: var(--primary);
}

.register-card p {
  color: #475569;
}

.field-row {
  margin-top: 0.88rem;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.62rem 0.66rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 187, 240, 0.4);
  border-color: var(--accent);
}

.status {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  font-size: 0.93rem;
  font-weight: 600;
}

.status.success {
  color: #047857;
}

.status.error {
  color: #b91c1c;
}

.req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 1px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.2rem;
  color: #475569;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .facts-grid,
  .map-grid,
  .future-grid,
  .student-grid,
  .section-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 162px;
  }

  main section[id] {
    scroll-margin-top: 162px;
  }

  .sticky-info {
    top: 93px;
  }

  .sticky-info-inner {
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    font-size: 0.82rem;
    padding: 0.42rem 0;
  }

  .sticky-info-inner span:not(:last-child)::after {
    display: none;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .hero {
    padding: 1.25rem;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }
}
