@font-face {
  font-family: "Noto Serif TC Local";
  src: url("assets/noto-serif-tc-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif TC Local";
  src: url("assets/noto-serif-tc-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #090706;
  --card: rgba(8, 6, 4, 0.95);
  --gold: #d9b43b;
  --gold-light: #efca4c;
  --gold-deep: #8f701f;
  --white: #fffdf7;
  --serif: "Noto Serif TC Local", "Noto Serif TC", "Microsoft JhengHei", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
  min-width: 320px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 60px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(8, 6, 5, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  user-select: none;
}

.brand-mark {
  width: 38px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
  font-family: var(--serif);
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.05;
}

.brand-copy small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.36em;
  opacity: 0.78;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #e4c557;
  border-radius: 999px;
  background: linear-gradient(180deg, #dabb4e, #bf9528);
  color: #171006;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 7px 22px rgba(176, 131, 23, 0.22);
  transition: filter 160ms ease, transform 160ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 90px;
  overflow: hidden;
  background: #090706;
}

.hero-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: min(56.25vw, 802px);
}

.hero-media,
.hero-media img,
.hero-top-fade,
.hero-bottom-fade,
.hero-shade,
.hero-inner {
  grid-column: 1;
  grid-row: 1;
}

.hero-media {
  width: 100%;
  height: 100%;
}

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

.hero-shade {
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.hero-top-fade,
.hero-bottom-fade {
  z-index: 3;
  pointer-events: none;
}

.hero-top-fade {
  align-self: start;
  height: 110px;
  background: linear-gradient(to bottom, #0c0908, transparent);
}

.hero-bottom-fade {
  align-self: end;
  height: 145px;
  background: linear-gradient(to top, #0c0908, transparent);
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 44px;
  width: min(100%, 1280px);
  min-height: 100%;
  margin: 0 auto;
  padding: 34px 22px 42px;
}

.hero-copy {
  justify-self: end;
  width: min(100%, 500px);
  text-align: center;
  font-family: var(--serif);
}

.hero-kicker {
  margin: 0;
  color: var(--gold-light);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero-copy h1 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(62px, 5.25vw, 81px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.75);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  display: grid;
  justify-items: center;
  min-width: 116px;
}

.stat strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75);
}

.stat span {
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 2px 12px #000;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(109, 82, 20, 0.58), rgba(57, 42, 12, 0.62));
  color: #e8c552;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.13em;
  box-shadow: inset 0 0 18px rgba(230, 192, 73, 0.08), 0 8px 26px rgba(0, 0, 0, 0.2);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.course-card {
  width: 430px;
  max-width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(212, 175, 55, 0.06);
}

.course-cover {
  display: block;
  width: calc(100% - 48px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 24px 24px 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 13px;
  object-fit: cover;
}

.course-body {
  padding: 16px 24px 24px;
}

.course-eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.course-body h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
}

.course-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.course-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.course-tab.is-active {
  border-color: #dfba3e;
  background: linear-gradient(180deg, #e4be3f, #c99a1f);
  color: #181005;
}

.course-date {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  margin-top: 12px;
  padding: 0 13px;
  border-radius: 8px;
  background: #e2bb38;
  color: #221703;
  font-size: 13px;
  font-weight: 900;
}

.course-title,
.course-time {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.course-title {
  margin-top: 12px;
}

.course-time {
  color: rgba(255, 255, 255, 0.84);
}

.reserve-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 1px solid #edca51;
  border-radius: 12px;
  background: linear-gradient(180deg, #e8c344, #d7a92d);
  color: #201405;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 26px rgba(203, 157, 39, 0.16);
}

.line-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: filter 160ms ease, transform 160ms ease;
}

.line-word {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 35px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  color: #06c755;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.line-tail {
  position: absolute;
  left: 19px;
  bottom: 14px;
  width: 9px;
  height: 9px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: rotate(22deg);
}

.header-cta:hover,
.gold-outline:hover,
.course-tab:hover,
.reserve-cta:hover,
.line-float:hover {
  filter: brightness(1.08);
}

.header-cta:active,
.gold-outline:active,
.course-tab:active,
.reserve-cta:active,
.line-float:active {
  transform: translateY(1px) scale(0.99);
}

.header-cta:focus-visible,
.gold-outline:focus-visible,
.course-tab:focus-visible,
.reserve-cta:focus-visible,
.line-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .stats {
    gap: 20px;
  }

  .stat {
    min-width: 96px;
  }

  .stat strong {
    font-size: 34px;
  }

  .stat span {
    font-size: 14px;
  }

  .gold-outline {
    min-width: 110px;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }

  .course-card {
    width: 390px;
  }
}

@media (min-width: 1400px) {
  .hero-inner {
    transform: translateX(46px);
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 33px;
    height: 32px;
  }

  .brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .header-cta {
    min-width: 0;
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-stage {
    min-height: 1050px;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-top-fade {
    height: 80px;
  }

  .hero-bottom-fade {
    height: 100px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    padding: 43px 24px 96px;
  }

  .hero-copy {
    align-self: center;
    width: 100%;
    max-width: 430px;
  }

  .hero-kicker {
    font-size: 16px;
    letter-spacing: 0.3em;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(48px, 13vw, 66px);
  }

  .stats {
    gap: 14px;
    margin-top: 30px;
  }

  .stat {
    min-width: 0;
    flex: 1;
  }

  .stat strong {
    font-size: clamp(30px, 8vw, 42px);
  }

  .stat span {
    margin-top: 7px;
    font-size: clamp(12px, 3.4vw, 16px);
    letter-spacing: 0.04em;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 30px;
  }

  .gold-outline {
    min-width: 0;
    flex: 1;
    height: 50px;
    padding: 0 8px;
    font-size: clamp(14px, 3.8vw, 18px);
    letter-spacing: 0.08em;
  }

  .course-card {
    align-self: center;
    width: 100%;
    max-width: 430px;
    border-radius: 22px;
  }

  .course-cover {
    width: calc(100% - 36px);
    margin: 18px 18px 0;
  }

  .course-body {
    padding: 15px 18px 20px;
  }

  .course-body h2 {
    font-size: 23px;
  }

  .course-tab {
    padding: 0 11px;
    font-size: 12px;
  }

  .course-title,
  .course-time {
    font-size: 14px;
  }

  .reserve-cta {
    width: calc(100% - 64px);
  }

  .line-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    border-width: 3px;
  }

  .line-word {
    width: 31px;
    height: 24px;
    font-size: 8px;
  }

  .line-tail {
    left: 16px;
    bottom: 11px;
  }
}

@media (max-width: 374px) {
  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding: 0 11px;
    font-size: 11px;
  }

  .hero-inner {
    padding-inline: 15px;
  }

  .hero-kicker {
    font-size: 14px;
  }

  .stat strong {
    font-size: 28px;
  }

  .stat span {
    font-size: 11px;
  }

  .gold-outline {
    height: 46px;
    font-size: 13px;
  }

  .course-tab {
    padding-inline: 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
