@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Zen+Old+Mincho:wght@600;700;900&display=swap');

:root {
  --ink: #173f49;
  --ink-deep: #102f37;
  --paper: #f7f0e4;
  --paper-light: #fffaf1;
  --orange: #e46f4f;
  --orange-deep: #bd4e35;
  --blue: #177cba;
  --pink: #c33f78;
  --gold: #efbd4a;
  --mint: #dff0e8;
  --line: rgba(23, 63, 73, 0.18);
  --muted: #62747a;
  --shadow: 0 24px 70px rgba(23, 63, 73, 0.12);
  --radius: 24px;
  --display: 'Zen Old Mincho', 'Noto Serif TC', serif;
  --body: 'Noto Sans TC', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at 8% 4%, rgba(228, 111, 79, 0.12), transparent 30rem),
    radial-gradient(circle at 94% 22%, rgba(23, 124, 186, 0.10), transparent 32rem),
    var(--paper);
  font-family: var(--body);
  line-height: 1.75;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 240, 228, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-light);
  background: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.08em;
}

.brand-copy strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--paper-light);
  background: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.28; }

h1 {
  font-size: clamp(3rem, 8vw, 6.9rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.hero h1 { margin: 24px 0; }

.hero-lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: white;
  background: var(--orange);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--orange-deep);
  box-shadow: 0 12px 30px rgba(189, 78, 53, .23);
}

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

.button.secondary:hover {
  color: white;
  background: var(--ink);
  box-shadow: none;
}

.hero-art {
  position: relative;
  min-height: 440px;
}

.hero-art .panel {
  position: absolute;
  inset: 18px 0 0 28px;
  border-radius: 160px 160px 28px 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art .panel::before,
.hero-art .panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.hero-art .panel::before {
  width: 250px;
  height: 250px;
  right: -40px;
  top: -30px;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.03);
}

.hero-art .panel::after {
  width: 150px;
  height: 150px;
  left: -45px;
  bottom: -30px;
  background: var(--orange);
}

.hero-art .quote {
  position: absolute;
  inset: auto 30px 40px 60px;
  color: var(--paper-light);
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.45;
  z-index: 2;
}

.hero-art .stamp {
  position: absolute;
  top: 0;
  right: 16px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
  transform: rotate(8deg);
  z-index: 3;
}

.section { padding: 92px 0; }
.section.compact { padding: 56px 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 40px;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--muted); margin-bottom: 8px; }

.course-card {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, .86);
  box-shadow: var(--shadow);
}

.course-card-media {
  min-height: 560px;
  background: #d9edf7;
  overflow: hidden;
}

.course-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.course-card:hover .course-card-media img { transform: scale(1.025); }

.course-card-body {
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-card-body h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 18px 0;
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag { color: var(--blue); background: rgba(23,124,186,.10); }
.tag.pink { color: var(--pink); background: rgba(195,63,120,.10); }
.meta-pill { color: var(--ink); background: var(--mint); }

.price-line {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.price-line strong {
  display: block;
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 2rem;
}

.future-section {
  position: relative;
  overflow: hidden;
  background: rgba(255, 250, 241, .58);
  border-block: 1px solid var(--line);
}

.future-course-card {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid rgba(23, 63, 73, .28);
  border-radius: var(--radius);
  background: var(--ink-deep);
  box-shadow: var(--shadow);
}

.future-course-visual {
  position: relative;
  min-height: 520px;
  padding: 42px;
  overflow: hidden;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 75% 24%, rgba(239, 189, 74, .42), transparent 28%),
    linear-gradient(145deg, #176a83, var(--ink-deep) 68%);
}

.future-course-visual::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -72px;
  bottom: -65px;
  border: 28px solid rgba(239, 189, 74, .92);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 250, 241, .08), 0 0 0 48px rgba(255, 250, 241, .04);
}

.future-status,
.future-year,
.future-month {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.future-status {
  width: max-content;
  padding: 7px 11px;
  color: var(--ink-deep);
  background: var(--gold);
  border-radius: 999px;
}

.future-year { margin-top: 86px; color: rgba(255, 250, 241, .68); }

.future-course-visual strong {
  position: relative;
  z-index: 2;
  display: block;
  margin: -10px 0 -4px;
  font-family: var(--display);
  font-size: clamp(7rem, 16vw, 11rem);
  line-height: 1;
  letter-spacing: -.08em;
}

.future-machine-lines {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(400px) rotateX(54deg) scale(1.3) translateY(33%);
  transform-origin: bottom;
}

.future-course-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
  color: var(--paper-light);
}

.tag.gold { color: #634500; background: var(--gold); }

.future-kicker {
  margin: 28px 0 8px;
  color: rgba(255, 250, 241, .66);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.future-course-body h3 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.future-subtitle {
  color: var(--gold);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

.future-speaker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
}

.future-speaker span { color: rgba(255, 250, 241, .62); font-size: 13px; }
.future-speaker strong { font-family: var(--display); font-size: 1.6rem; }
.future-speaker a { color: rgba(255, 250, 241, .78); font-size: 14px; }

.future-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 250, 241, .18);
}

.future-course-footer p { margin-bottom: 0; }
.future-course-footer small { color: rgba(255, 250, 241, .58); }
.future-course-footer .button.secondary { color: var(--paper-light); border-color: rgba(255, 250, 241, .42); }
.future-course-footer .button.secondary:hover { color: var(--ink-deep); background: var(--gold); border-color: var(--gold); }

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

.feature {
  min-height: 230px;
  padding: 26px;
  border-top: 4px solid var(--orange);
  border-radius: 6px 6px 20px 20px;
  background: rgba(255,250,241,.72);
}

.feature:nth-child(2) { border-color: var(--blue); }
.feature:nth-child(3) { border-color: var(--pink); }
.feature:nth-child(4) { border-color: var(--gold); }

.feature-num {
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255,255,255,.78);
  background: var(--ink-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.detail-hero {
  padding: 58px 0 42px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.detail-title {
  max-width: 920px;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  margin: 18px 0 24px;
}

.detail-lede {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 44px;
  align-items: start;
  padding: 52px 0 96px;
}

.content-stack { display: grid; gap: 28px; }

.content-block {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,241,.82);
}

.content-block h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
}

.content-block p:last-child { margin-bottom: 0; }

.session-grid { display: grid; gap: 20px; }

.session {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(23,124,186,.08);
}

.session.pink { background: rgba(195,63,120,.08); }
.session::before {
  content: attr(data-month);
  position: absolute;
  right: 20px;
  top: -18px;
  color: rgba(23,124,186,.11);
  font-family: var(--display);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
}
.session.pink::before { color: rgba(195,63,120,.10); }
.session > * { position: relative; z-index: 1; }

.session-date {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.session.pink .session-date { color: var(--pink); }

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--line);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.plain-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.sidebar-card {
  position: sticky;
  top: 102px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.sidebar-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.sidebar-body { padding: 28px; }

.sidebar-price {
  color: var(--orange-deep);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 900;
}

.sidebar-body .button { width: 100%; margin-top: 12px; }
.sidebar-facts { margin-top: 20px; }
.sidebar-facts div { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }

.policy {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(239,189,74,.12);
}

.draft-note {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #8a3d28;
  background: #fae0d8;
  font-size: 12px;
  font-weight: 800;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}

.pending-link {
  cursor: not-allowed;
  opacity: .62;
}

.qr-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: var(--mint);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.qr-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 47, 55, .12);
}

.qr-box:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.qr-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.mobile-cta { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-art,
  .course-card,
  .feature {
    animation: rise .75s cubic-bezier(.2,.8,.2,1) both;
  }
  .hero-art { animation-delay: .12s; }
  .feature:nth-child(2) { animation-delay: .08s; }
  .feature:nth-child(3) { animation-delay: .16s; }
  .feature:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}

@media (max-width: 900px) {
  .main-nav a:not(.active) { display: none; }
  .hero { min-height: auto; padding-top: 60px; }
  .hero-grid,
  .section-heading,
  .course-card,
  .future-course-card,
  .detail-layout,
  .registration-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; }
  .course-card-media { min-height: 420px; max-height: 620px; }
  .future-course-visual { min-height: 360px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-card { position: static; }
}

@media (max-width: 600px) {
  .header-inner,
  .shell { width: min(100% - 28px, 1180px); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 14px; }
  .section { padding: 62px 0; }
  .hero-art { min-height: 310px; }
  .hero-art .quote { inset: auto 20px 30px 32px; }
  .hero-art .stamp { width: 86px; height: 86px; font-size: 10px; }
  .course-card-media { min-height: 360px; }
  .future-course-visual { min-height: 300px; padding: 28px; }
  .future-year { margin-top: 44px; }
  .future-course-body { padding: 32px 24px; }
  .future-course-footer { align-items: stretch; flex-direction: column; }
  .future-course-footer .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .session { padding: 24px 20px; }
  .qr-box { grid-template-columns: 90px 1fr; }
  .qr-box img { width: 90px; height: 90px; }
  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,250,241,.94);
    box-shadow: 0 14px 44px rgba(16,47,55,.22);
    backdrop-filter: blur(14px);
  }
  .mobile-cta .button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
  .site-footer { padding-bottom: 100px; }
}
