:root {
  color-scheme: light;
  --ink: #243037;
  --muted: #5f6e74;
  --paper: #f8f6ef;
  --surface: #fffdf7;
  --line: #ded5c6;
  --teal: #176b64;
  --teal-dark: #0d4c47;
  --coral: #d9664c;
  --gold: #bc8a2c;
  --blue: #335c91;
  --plum: #6d3f67;
  --sage: #dfeadf;
  --shadow: 0 24px 60px rgba(36, 48, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--teal);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 246, 239, 0.92);
  border-bottom: 1px solid rgba(222, 213, 198, 0.82);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
}

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

.nav-links a:hover {
  color: var(--teal-dark);
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  width: 100%;
  min-height: min(84vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(24, 32, 37, 0.88) 0%,
    rgba(24, 32, 37, 0.72) 32%,
    rgba(24, 32, 37, 0.32) 62%,
    rgba(24, 32, 37, 0.52) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 84px;
  color: #fff;
}

.hero-content .eyebrow {
  color: var(--coral);
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 {
  color: #fff;
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 24px;
  max-width: 260px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(248, 246, 239, 0.94);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-content .hero-lead {
  color: rgba(255, 255, 255, 0.86);
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

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

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

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-content .hero-actions {
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 22px 0 0;
}

.hero-content .hero-stats {
  animation: hero-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.hero-stats div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.64);
}

.hero-content .hero-stats div {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero-stats dt {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--teal-dark);
}

.hero-content .hero-stats dt {
  color: #fff;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hero-content .hero-stats dd {
  color: rgba(255, 255, 255, 0.78);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-lead,
  .hero-content .hero-actions,
  .hero-content .hero-stats {
    animation: none;
  }
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.trust-band span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.two-column p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.local-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(51, 92, 145, 0.22);
  border-radius: 999px;
  background: #eef3f8;
  color: var(--blue);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-heading.compact {
  max-width: 620px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.proof-grid,
.phase-grid,
.ops-grid,
.content-model,
.trial-grid,
.status-grid,
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.phase-grid {
  grid-template-columns: repeat(4, 1fr);
}

.content-model {
  grid-template-columns: repeat(4, 1fr);
}

.trial-grid,
.status-grid {
  grid-template-columns: repeat(4, 1fr);
}

.course-card,
.proof-grid article,
.phase-grid article,
.ops-grid article,
.content-model article,
.trial-grid article,
.status-grid article,
.update-card,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(36, 48, 55, 0.07);
}

.course-card {
  padding: 24px;
}

.update-card {
  overflow: hidden;
}

.update-visual {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #e8f1ee;
}

.update-card.blue .update-visual {
  background: #e8eef7;
}

.update-card.gold .update-visual {
  background: #f5ead6;
}

.update-visual span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.update-body {
  padding: 22px;
}

.update-body p:not(.update-meta) {
  margin-bottom: 0;
  color: var(--muted);
}

.update-meta {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.phase-grid article,
.ops-grid article,
.content-model article,
.trial-grid article,
.status-grid article {
  padding: 24px;
}

.phase-grid span,
.status-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.phase-grid p,
.ops-grid p,
.content-model p,
.trial-grid p,
.status-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.course-card.accent {
  border-color: rgba(23, 107, 100, 0.34);
  background: #f0f7f3;
}

.course-level {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 102, 76, 0.12);
  color: var(--coral);
  font-weight: 900;
}

.course-card p,
.course-card li {
  color: var(--muted);
}

.course-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.course-card a:hover {
  text-decoration: underline;
}

.course-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.feature-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 88px max(16px, calc((100vw - 1120px) / 2));
  background: #20363b;
  color: #fff;
}

.feature-band .eyebrow {
  color: #f1bf79;
}

.feature-band h2 {
  max-width: 680px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-list article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: stretch;
}

.teacher-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.teacher-panel .eyebrow,
.teacher-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.teacher-list {
  display: grid;
  gap: 14px;
}

.teacher-list article {
  padding: 22px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 253, 247, 0.76);
}

.teacher-list strong,
.teacher-list span {
  display: block;
}

.teacher-list span {
  margin-top: 6px;
  color: var(--muted);
}

.proof-grid article {
  padding: 26px;
}

.proof-number {
  display: block;
  color: var(--teal);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.proof-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.advice-section {
  max-width: 1000px;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.advice-grid article {
  padding: 26px;
  border: 1px solid rgba(23, 107, 100, 0.24);
  border-radius: 8px;
  background: #f0f7f3;
}

.advice-grid article.warn {
  border-color: rgba(217, 102, 76, 0.28);
  background: #fff3ee;
}

.advice-grid ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.course-hero {
  width: min(980px, calc(100% - 32px));
  min-height: 54vh;
  margin: 0 auto;
  padding: 88px 0 54px;
}

.trial-hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(78vh - 74px);
  margin: 0 auto;
  padding: 78px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 40px;
}

.trial-hero h1 {
  max-width: 12ch;
}

.trial-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.trial-summary {
  padding: 28px;
  border: 1px solid rgba(23, 107, 100, 0.24);
  border-radius: 8px;
  background: #f0f7f3;
  box-shadow: var(--shadow);
}

.trial-summary strong {
  display: block;
  font-size: 1.25rem;
}

.trial-summary ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.trial-flow {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: start;
}

.admissions-board {
  max-width: 1120px;
}

.section-actions {
  margin-top: 24px;
}

.schedule-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(36, 48, 55, 0.07);
}

.schedule-table [role="row"] {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1fr 0.8fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
}

.schedule-table [role="row"]:last-child {
  border-bottom: 0;
}

.schedule-table span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.schedule-head {
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.cms-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.lead-schema {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lead-schema span {
  padding: 10px 12px;
  border: 1px solid rgba(51, 92, 145, 0.22);
  border-radius: 8px;
  background: #eef3f8;
  color: var(--blue);
  font-weight: 900;
}

.course-hero h1 {
  max-width: 14ch;
}

.course-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.course-detail {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-section {
  max-width: 940px;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  counter-increment: process;
  position: relative;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
}

.process-list li::before {
  content: counter(process);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  font-weight: 900;
}

.faq-section {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  padding: 18px 20px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-section p {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-note.is-success {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(23, 107, 100, 0.1);
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(16px, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.social-links a,
.social-links span {
  color: #fff;
  text-decoration: none;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 15;
  display: grid;
  gap: 8px;
}

.floating-cta a {
  min-width: 112px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(36, 48, 55, 0.18);
}

.floating-cta a + a {
  background: var(--teal-dark);
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 66px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .trial-hero,
  .trial-flow,
  .two-column,
  .feature-band,
  .split,
  .contact-section,
  .course-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-content {
    padding: 84px 0 56px;
  }

  .hero-caption {
    right: 16px;
    top: 16px;
    max-width: 200px;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .course-grid,
  .proof-grid,
  .phase-grid,
  .ops-grid,
  .content-model,
  .trial-grid,
  .status-grid,
  .updates-grid,
  .cms-preview,
  .feature-list,
  .advice-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .schedule-table .schedule-head {
    display: none;
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 68px 0;
  }

  .feature-band {
    padding: 68px 16px;
  }

  .course-hero {
    min-height: 0;
    padding: 56px 0 30px;
  }

  .trial-hero {
    min-height: 0;
    padding: 56px 0 30px;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stats div {
    padding: 10px 8px;
  }

  .hero-stats dt {
    font-size: 1rem;
  }

  .hero-stats dd {
    font-size: 0.85rem;
  }

  .hero-caption {
    display: none;
  }

  .hero-actions .button,
  .contact-actions .button,
  .lead-form .button {
    width: 100%;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    bottom: 10px;
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-cta a {
    min-width: 0;
  }

  .site-footer {
    padding-bottom: 86px;
  }
}
