:root {
  color-scheme: light;
  --ink: #20252e;
  --muted: #667085;
  --line: #dce3ea;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --soft: #edf5f2;
  --band: #f1ece2;
  --teal: #086f73;
  --green: #406e4f;
  --coral: #cb6548;
  --gold: #b7852f;
  --blue: #345f9f;
  --plum: #6f4d7d;
  --shadow: 0 18px 46px rgba(32, 37, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 247, 242, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

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

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: clamp(28px, 7vw, 92px);
  min-height: calc(100vh - 70px);
  padding: 58px clamp(20px, 6vw, 92px) 82px;
  background:
    linear-gradient(115deg, rgba(237, 245, 242, 0.98), rgba(248, 247, 242, 0.95)),
    linear-gradient(45deg, rgba(203, 101, 72, 0.12), rgba(52, 95, 159, 0.1));
}

.hero-copy {
  max-width: 820px;
  padding-top: 8px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.38;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.overview-grid p,
.scenario-grid p,
.prompt-card p,
.tool-card p,
.timeline p {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.prompt-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.filter {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--teal);
  background: var(--surface);
  border-color: var(--teal);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.phone-frame {
  position: absolute;
  inset: 20px 54px 20px 22px;
  padding: 18px;
  border-radius: 30px;
  background: #1f252c;
  box-shadow: var(--shadow);
}

.video-scene {
  position: relative;
  height: calc(100% - 48px);
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 58, 72, 0.2), rgba(0, 0, 0, 0.38)),
    linear-gradient(135deg, #d9cbb2 0 28%, #7da194 28% 46%, #d5d9d2 46% 68%, #2f5665 68%);
}

.before-person,
.after-person {
  position: absolute;
  bottom: 40px;
  width: 112px;
  height: 250px;
  border-radius: 56px 56px 24px 24px;
}

.before-person {
  left: 18%;
  background: linear-gradient(#f2cfb9 0 22%, #345f9f 22% 65%, #20252e 65%);
  opacity: 0.8;
}

.after-person {
  right: 18%;
  background: linear-gradient(#d8a98c 0 22%, #cb6548 22% 65%, #406e4f 65%);
}

.before-person::before,
.after-person::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0c1a8;
}

.after-person::before {
  background: #d89e79;
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.9);
  animation: scan 3.2s ease-in-out infinite;
}

.video-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 6px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
}

.floating-note {
  position: absolute;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(32, 37, 46, 0.15);
}

.note-one {
  top: 72px;
  right: 0;
  background: var(--blue);
}

.note-two {
  top: 45%;
  left: 0;
  background: var(--coral);
}

.note-three {
  right: 28px;
  bottom: 70px;
  background: var(--green);
}

@keyframes scan {
  0%,
  100% {
    transform: translateX(-100px);
  }
  50% {
    transform: translateX(100px);
  }
}

.section {
  padding: 88px clamp(20px, 6vw, 92px);
}

.section.compact {
  padding-top: 72px;
}

.band {
  background: var(--band);
}

.prompts {
  background: #eef2f5;
}

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

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.overview-grid,
.scenario-grid,
.prompt-grid {
  display: grid;
  gap: 18px;
}

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

.scenario-grid,
.prompt-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid article,
.scenario-grid article,
.prompt-card,
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(32, 37, 46, 0.06);
}

.overview-grid article,
.scenario-grid article,
.prompt-card {
  padding: 22px;
}

.overview-grid span,
.timeline span {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.overview-grid span {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--teal);
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(320px, 1.16fr);
  gap: clamp(28px, 6vw, 88px);
  background: var(--soft);
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.tool-list {
  display: grid;
  gap: 16px;
}

.tool-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.tool-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
}

.chat {
  background: var(--blue);
}

.wan {
  background: var(--teal);
}

.edit {
  background: var(--coral);
}

.gamma {
  background: var(--plum);
}

.feature-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-row {
  display: grid;
  grid-template-columns: 0.7fr 1.65fr 0.75fr;
}

.table-row > div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-row > div + div {
  border-left: 1px solid var(--line);
}

.table-row.header {
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.table-row:last-child > div {
  border-bottom: 0;
}

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

.timeline article {
  min-height: 210px;
  padding: 22px;
  border-top: 4px solid var(--teal);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 37, 46, 0.07);
}

.timeline span {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--ink);
}

.prompt-controls {
  margin-bottom: 24px;
}

.filter {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}

.filter.active,
.filter:hover,
.filter:focus-visible {
  color: #fff;
  background: var(--teal);
}

.prompt-card {
  display: flex;
  flex-direction: column;
}

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

.copy-btn {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn.copied {
  background: var(--green);
}

.footer {
  padding: 28px clamp(20px, 6vw, 92px);
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: clamp(28px, 7vw, 86px);
  min-height: 560px;
  padding: 74px clamp(20px, 6vw, 92px) 84px;
  background:
    linear-gradient(115deg, rgba(237, 245, 242, 0.98), rgba(248, 247, 242, 0.95)),
    linear-gradient(45deg, rgba(203, 101, 72, 0.12), rgba(52, 95, 159, 0.1));
}

.course-index-hero {
  min-height: 480px;
}

.course-hero-copy {
  max-width: 820px;
}

.course-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.course-badge {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(8, 111, 115, 0.94), rgba(64, 110, 79, 0.92)),
    var(--teal);
  box-shadow: var(--shadow);
}

.course-badge span {
  display: block;
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
}

.course-badge strong {
  display: block;
  max-width: 220px;
  font-size: 1.15rem;
  line-height: 1.45;
}

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

.course-card,
.course-list-card,
.course-outcome-card,
.course-outline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 37, 46, 0.07);
}

.course-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 24px;
}

.course-card > p:not(.eyebrow),
.course-list-card p,
.course-outcome-card p,
.course-outline h3,
.course-meta {
  color: var(--muted);
}

.course-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.course-meta {
  display: grid;
  gap: 6px;
  margin: 16px 0 22px;
  font-size: 0.92rem;
  font-weight: 800;
}

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

.course-list-card,
.course-outcome-card {
  padding: 22px;
}

.course-list-card p,
.course-outcome-card p {
  margin: 0;
}

.course-feature-grid article {
  min-height: 190px;
}

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

.course-outline article {
  display: grid;
  align-content: start;
  min-height: 180px;
  padding: 22px;
  border-top: 4px solid var(--teal);
}

.course-outline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.course-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(115deg, rgba(237, 245, 242, 0.98), rgba(248, 247, 242, 0.95)),
    linear-gradient(45deg, rgba(203, 101, 72, 0.12), rgba(52, 95, 159, 0.1));
}

.course-cta > div {
  max-width: 760px;
}

.course-cta p:not(.eyebrow) {
  color: var(--muted);
}

@media (max-width: 1160px) {
  .overview-grid,
  .scenario-grid,
  .timeline,
  .prompt-grid,
  .course-grid,
  .course-list-grid,
  .course-outline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .course-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .course-hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
  }

  .hero {
    padding: 36px 20px 66px;
  }

  .overview-grid,
  .scenario-grid,
  .timeline,
  .prompt-grid,
  .course-grid,
  .course-list-grid,
  .course-outline {
    grid-template-columns: 1fr;
  }

  .course-hero {
    padding: 42px 20px 66px;
  }

  .course-badge {
    min-height: 210px;
  }

  .course-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 390px;
  }

  .phone-frame {
    inset: 10px 22px;
  }

  .floating-note {
    display: none;
  }

  .tool-card {
    grid-template-columns: 48px 1fr;
  }

  .tool-mark {
    width: 48px;
    height: 48px;
  }

  .table-row,
  .table-row.header {
    grid-template-columns: 1fr;
  }

  .table-row.header {
    display: none;
  }

  .table-row > div + div {
    border-left: 0;
  }

  .table-row > div::before {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
  }

  .table-row > div:nth-child(1)::before {
    content: "功能";
  }

  .table-row > div:nth-child(2)::before {
    content: "學習重點";
  }

  .table-row > div:nth-child(3)::before {
    content: "主要工具";
  }
}

.instructor-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.instructor-photo-frame {
  width: min(100%, 460px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.instructor-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 825 / 1024;
  object-fit: cover;
}

.instructor-copy {
  max-width: 820px;
}

.instructor-profile .eyebrow {
  letter-spacing: 0;
}

.instructor-copy h2 {
  margin-bottom: 6px;
}

.instructor-subtitle {
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 1.08rem;
  font-weight: 900;
}

.instructor-bio {
  display: grid;
  gap: 14px;
}

.instructor-bio p {
  margin: 0;
  color: var(--muted);
}

.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.instructor-tag {
  padding: 7px 12px;
  border: 1px solid rgba(8, 111, 115, 0.28);
  border-radius: 999px;
  color: var(--teal);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
}

.instructor-actions {
  display: flex;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .instructor-profile {
    grid-template-columns: 1fr;
  }

  .instructor-photo-frame {
    width: min(100%, 380px);
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .instructor-profile {
    gap: 32px;
  }

  .instructor-photo-frame {
    width: 100%;
    max-width: 360px;
  }

  .instructor-subtitle {
    font-size: 1rem;
  }
}
