:root {
  --bg: #111314;
  --bg-soft: #171b1f;
  --surface: #202429;
  --surface-strong: #2a3036;
  --text: #f7f4ee;
  --muted: #c9c3b9;
  --line: rgba(247, 244, 238, 0.16);
  --accent: #57c7a3;
  --accent-strong: #f4b95b;
  --danger: #e36d5e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--text);
  color: #111314;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
  background: rgba(17, 19, 20, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 156px;
  height: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  content: "";
}

.nav-toggle-label span::before {
  transform: translateY(-6px);
}

.nav-toggle-label span::after {
  transform: translateY(4px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(247, 244, 238, 0.08);
}

.nav-cta {
  border: 1px solid rgba(87, 199, 163, 0.5);
  color: var(--text);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92);
  transform: scale(1.02);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(17, 19, 20, 0.96) 0%, rgba(17, 19, 20, 0.78) 46%, rgba(17, 19, 20, 0.34) 100%),
    linear-gradient(0deg, rgba(17, 19, 20, 1) 0%, rgba(17, 19, 20, 0.14) 42%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(87, 199, 163, 0.4);
  border-radius: 999px;
  background: rgba(87, 199, 163, 0.1);
  color: #bdf1dd;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 1.35rem 0 1rem;
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.78rem 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button.primary {
  background: var(--text);
  color: #111314;
}

.button.secondary {
  border-color: rgba(247, 244, 238, 0.28);
  background: rgba(247, 244, 238, 0.08);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.stat-pill {
  min-width: 132px;
  border: 1px solid rgba(247, 244, 238, 0.14);
  border-radius: 8px;
  background: rgba(17, 19, 20, 0.52);
  padding: 0.8rem 0.95rem;
}

.stat-pill strong {
  display: block;
  color: var(--text);
  font-size: 1.15rem;
}

.stat-pill span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 5.5rem 0;
}

.section.tight {
  padding-top: 3rem;
}

.section.alt {
  background: var(--bg-soft);
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 800;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.lead-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.lead-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
}

.lead-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  background: rgba(87, 199, 163, 0.13);
  color: #bdf1dd;
  font-weight: 900;
}

.lead-item h3,
.card h3,
.path-card h3,
.module h3,
.faq-block summary {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead-item p,
.card p,
.path-card p,
.module p,
.faq-block p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.media-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  border-top: 1px solid var(--line);
  padding: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.path-card,
.module,
.faq-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.35rem;
}

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

.card.accent {
  border-color: rgba(244, 185, 91, 0.34);
  background: rgba(244, 185, 91, 0.1);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.path-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.path-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.1);
  color: var(--muted);
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.path-card h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
}

.path-card .button {
  width: fit-content;
  margin-top: auto;
}

.curriculum {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.module {
  padding: 0;
  overflow: hidden;
}

.module summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  padding: 1.2rem 1.35rem;
  list-style: none;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module summary::after {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(247, 244, 238, 0.1);
  color: var(--text);
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.module[open] summary::after {
  content: "-";
}

.module-body {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.35rem 1.35rem;
}

.module-body ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.module-body li {
  break-inside: avoid;
  position: relative;
  margin: 0 0 0.62rem;
  padding-left: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.module-body li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "•";
}

.comparison {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.comparison th,
.comparison td {
  border: 1px solid var(--line);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--text);
  background: var(--surface-strong);
}

.comparison td {
  color: var(--muted);
  line-height: 1.65;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.faq-block summary {
  cursor: pointer;
  list-style: none;
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.cta-band {
  background: #f7f4ee;
  color: #111314;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.cta-band p {
  max-width: 680px;
  margin: 0.8rem 0 0;
  color: #4b4b47;
  line-height: 1.8;
}

.cta-band .button.primary {
  background: #111314;
  color: #f7f4ee;
}

.site-footer {
  padding: 3rem 0;
  background: #0d0f10;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .brand img {
    width: 138px;
  }

  .nav-link {
    padding-inline: 0.62rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 19, 20, 0.98);
    padding: 0.6rem;
    box-shadow: var(--shadow);
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem;
    font-size: 1rem;
  }

  .hero {
    min-height: 82vh;
    padding: 7rem 0 4rem;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(17, 19, 20, 0.94) 0%, rgba(17, 19, 20, 0.72) 100%),
      linear-gradient(0deg, rgba(17, 19, 20, 1) 0%, rgba(17, 19, 20, 0.1) 42%);
  }

  .split,
  .path-grid,
  .cta-band .container,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .module-body ul {
    columns: 1;
  }

  .cta-band .actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 120px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .lead-item {
    grid-template-columns: 1fr;
  }

  .lead-index {
    width: 2.6rem;
    height: 2.6rem;
  }

  .comparison {
    display: block;
    overflow-x: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
