@charset "UTF-8";
:root {
  /* Shared runtime values for CSS and JavaScript; media queries retain Sass. */
  --ad-breakpoint-mobile: 480px;
  --ad-breakpoint-768: 768px;
  --ad-breakpoint-nav: 1024px;
  --ad-breakpoint-1200: 1200px;
  --ad-breakpoint-wide: 1440px;
  --ad-breakpoint-1600: 1600px;
  --ad-color-brand: #006fae;
  --ad-color-brand-strong: #250188;
  --ad-color-surface-tint: #e2ecf2;
  --ad-color-brand-alt: #246fbe;
  --ad-color-text: #333;
  --ad-color-muted: #666;
  --ad-color-border: #b2b2b2;
  --ad-color-danger: #d93025;
  --ad-color-success: #218838;
  --ad-color-member-error: #d32f2f;
  --ad-color-member-success: #1b5e20;
  --ad-font-family-sans: Noto Sans TC, sans-serif;
  --ad-font-family-display: Poppins, sans-serif;
  --ad-space-1: 0.25rem;
  --ad-space-2: 0.5rem;
  --ad-space-3: 0.75rem;
  --ad-space-4: 1rem;
  --ad-space-5: 1.25rem;
  --ad-space-6: 1.5rem;
  --ad-space-8: 2rem;
  --ad-space-10: 2.5rem;
  --ad-space-12: 3rem;
  --ad-radius-control: 4px;
  --ad-radius-panel: 20px;
  --ad-radius-pill: 999px;
  --ad-shadow-panel: 0 12px 32px rgba(37, 1, 136, 0.1);
  --ad-motion-standard: 0.3s ease;
  --ad-content-wide: 1690px;
  --ad-content-member: 1200px;
  --ad-content-form: 720px;
}

/* ==========================================================================
   product-card
   ========================================================================== */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.5em;
}

.product-tags[hidden] {
  display: none;
}

.product-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-tag::before {
  content: "#";
}

.product-tag[data-cust-tag=下殺3折],
.product-tag[data-cust-tag=限時優惠],
.product-tag[data-cust-tag=限時開跑],
.product-tag[data-cust-tag="6折特惠"] {
  color: var(--ad-color-danger);
  font-weight: 700;
}

.product-card > .add-shopcart {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 0 0 20px 20px;
  background-color: var(--ad-color-brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.product-card > .add-shopcart:focus-visible {
  outline: 3px solid var(--ad-color-brand-strong);
  outline-offset: 3px;
}

.product-card .product-content {
  padding: 20px 20px 20px;
}

.product-card > a {
  overflow: hidden;
  width: 100%;
  display: block;
}

.product-card > a > img {
  border-radius: 20px 20px 0 0;
  transition: 0.6s;
  width: 100%;
}

.product-card .category {
  color: var(--ad-color-brand);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: clamp(16px, 0.9375vw, 18px);
}

.product-card .product-title {
  font-size: clamp(20px, 1.3541666667vw, 26px);
  letter-spacing: 0.2em;
  font-weight: 400;
  min-height: 125px;
}

.product-card .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.5;
  word-break: break-all;
  transition: 0.6s;
}

.product-card .product-price {
  display: flex;
  justify-content: space-between;
  line-height: 1;
}
.product-card .product-price .price {
  font-size: clamp(28px, 1.875vw, 36px);
  color: var(--ad-color-brand-strong);
  font-family: Arial, Helvetica, sans-serif;
}
.product-card .product-price .del {
  font-size: 18px;
  color: var(--ad-color-muted);
  text-decoration: line-through;
}

.product-card .product-price .add-shopcart {
  padding: 0;
}

.product-card .product-price .add-shopcart svg {
  fill: var(--ad-color-brand);
  transition: 0.6s;
  width: clamp(35px, 2.0833333333vw, 40px);
  aspect-ratio: 1;
}

.product-card .product-price .add-shopcart svg:hover {
  fill: var(--ad-color-brand-strong);
  transition: 0.6s;
}

.product-card:hover a {
  color: var(--ad-color-brand-strong);
  transition: 0.6s;
}

.product-card:hover a > img {
  transform: scale(1.1);
  transition: 0.6s;
}

.product-card.product-card--store {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: var(--ad-radius-panel);
  background: #fff;
  box-shadow: 0 2px 6px rgba(37, 1, 136, 0.12);
}

.product-card.product-card--store > a {
  flex-shrink: 0;
  border-radius: var(--ad-radius-panel) var(--ad-radius-panel) 0 0;
}

.product-card.product-card--store > a > img {
  display: block;
  height: auto;
}

.product-card.product-card--store .product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 12px 12px;
}

.product-card.product-card--store .category {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.product-card.product-card--store .product-title {
  min-height: 0;
  margin: 0 0 12px;
  font-size: clamp(20px, 1.3541666667vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.product-card.product-card--store .product-title a {
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-card.product-card--store .product-price {
  margin-top: auto;
  margin-bottom: 10px;
  line-height: 1.35;
}

.product-card.product-card--store .product-price .price {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-card.product-card--store .product-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.product-card.product-card--store .product-link a {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border: 1px solid var(--ad-color-border);
  border-radius: var(--ad-radius-control);
  color: var(--ad-color-muted);
  font-size: 1.125rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-card.product-card--store .product-link a:only-child {
  grid-column: 1/-1;
}

.product-card.product-card--store .product-link a.js-product-free-link {
  border-color: var(--ad-color-brand);
  color: var(--ad-color-brand);
}

.product-card.product-card--store .product-link a:hover {
  background: var(--ad-color-surface-tint);
}

.product-card.product-card--store .product-link a:focus-visible {
  outline: 3px solid var(--ad-color-brand-strong);
  outline-offset: 3px;
}

.product-card.product-card--store > .add-shopcart {
  margin-top: 0;
  font-size: 1.125rem;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .product-card.product-card--store .product-content {
    padding: 12px 6px 8px;
  }

  .product-card.product-card--store .product-link a {
    font-size: 1rem;
  }

  .product-card.product-card--store > .add-shopcart {
    padding: 10px 4px;
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
.product-card a,
.product-card img,
.product-card svg {
    transition-duration: 0.01ms !important;
  }
}
.price .discount-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 0.3em;
  background: var(--ad-color-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: nowrap;
  vertical-align: middle;
}

.price .discount-badge[hidden] {
  display: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #122747;
  font: 1rem/1.55 system-ui, sans-serif;
}

header,
nav,
.intro {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

header {
  justify-content: space-between;
  padding: 0.75rem 4%;
  background: white;
}

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

nav,
.more {
  font-weight: 750;
}

nav a,
.more a {
  color: #075597;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.trial {
  color: white;
  background: #005acb;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
}

h1,
h2,
.intro p {
  margin: 0;
}

.hero,
.offer-mobile img {
  width: 100%;
}

:where(#courses),
.rules-inner {
  max-width: 82rem;
  margin-inline: auto;
  padding: 0 4%;
}

:where(#courses) section {
  margin-block: clamp(1rem, 3vw, 3rem);
}

.intro img {
  width: auto;
  height: 3.5rem;
}

.tickets,
.cards {
  display: grid;
  gap: clamp(0.5rem, 1.4vw, 1.25rem);
}

.tickets {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  list-style: none;
  padding: 0;
}

.tickets li {
  text-align: center;
  font-weight: 750;
  color: #05679c;
}

.tickets img {
  width: 100%;
}

.offer-mobile {
  display: none;
}

.recommended,
.more {
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

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

.shelf {
  position: relative;
}

.shelf button:is(.previous, .next) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: white;
  background: #006ba1;
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  cursor: pointer;
}

.previous {
  left: -1rem;
}

.next {
  right: -1rem;
}

.shelf button:disabled {
  opacity: 0.55;
}

:where(#courses):not(.cart-ready) .js-product-cart {
  display: none;
}

.rules {
  margin-top: 2rem;
  padding-block: clamp(1rem, 2vw, 2rem);
  color: #101f40;
  background-color: #0879da;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1568627451) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1568627451) 1px, transparent 1px), linear-gradient(128deg, #0654ce, #0784de 52%, #119fe9 52%, #15b6ed);
  background-size: 1.6rem 1.6rem, 1.6rem 1.6rem, cover;
}

.rules-inner {
  container-type: inline-size;
}

.rules-heading,
.rules-period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.rules-heading {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rules h2,
.rules-heading p,
.rule-card,
.rules-period {
  border: 2px solid #101f40;
  box-shadow: 0.2rem 0.22rem #101f40;
}

.rules h2 {
  padding: 0.12em 1.1em;
  background: #fff9e6;
  transform: rotate(-2deg);
  font-size: clamp(1.25rem, 0.9rem + 2vw, 3rem);
}

.rules-heading p {
  margin: 0;
  padding: 0.15em 0.8em;
  border-radius: 0.45rem;
  background: #ffe248;
  font-weight: 800;
}

.rules-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: clamp(0.45rem, 1.2vw, 1rem);
}

.rule-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: stretch;
  gap: 0.45rem;
  padding: clamp(0.45rem, 1.3vw, 1.25rem);
  border-radius: 0.7rem;
  background: #e5f9ff;
  text-align: center;
  font-weight: 800;
}

.rule-card:last-child {
  background: #fff6d5;
}

.rule-card p {
  margin: 0;
}

.rule-threshold,
.rule-credit {
  align-self: center;
  font-size: clamp(1rem, 0.75rem + 1vw, 1.65rem);
}

.rule-threshold h3,
.rules-period b {
  display: inline-block;
  padding: 0.1em 0.65em;
  border-radius: 0.35rem;
}

.rule-threshold h3 {
  margin: 0 0 0.3em;
  background: #101f40;
  color: white;
  font-size: 1em;
}

.rule-credit {
  border-inline-start: 2px dashed #82a5c8;
  color: #194579;
}

.rule-credit strong {
  display: block;
  color: #0355ad;
  font-size: clamp(1.55rem, 1rem + 2.6vw, 3.8rem);
  line-height: 1.15;
}

.rule-condition {
  grid-column: 1/-1;
  padding: 0.2em 0.5em;
  border-radius: 0.45rem;
  background: #bce5fc;
}

.rules-period {
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0.4em 0.7em;
  border-radius: 0.6rem;
  background: #fffae8;
  text-align: center;
  font-size: clamp(1rem, 0.75rem + 1vw, 1.75rem);
  font-weight: 800;
}

.rules-period b {
  border: 2px solid #101f40;
  background: #a7f5ed;
}

.rules-earning {
  margin: 0.75rem 0 0;
  padding: 0.35em 0.75em;
  border-radius: 0.4rem;
  background: #e1f6ff;
}

@container (max-width: 46rem) {
  .rules-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .rule-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .rule-credit {
    padding-top: 0.3em;
    border-inline-start: 0;
    border-top: 2px dashed #82a5c8;
  }
}
@media (max-width: 56rem) {
  .cards {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - clamp(0.5rem, 1.4vw, 1.25rem)) / 2);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .cards article {
    min-width: 0;
    scroll-snap-align: start;
  }
}
@media (max-width: 36rem) {
  body {
    background: #f5f8fd;
  }

  header,
nav {
    gap: 0.5rem;
  }

  header img {
    width: 7rem;
  }

  .offer-mobile {
    display: block;
  }

  .offer-desktop {
    display: none;
  }

  .product-card .product-content {
    padding: 0.65rem;
  }

  .product-card .product-title {
    min-height: 0;
    letter-spacing: normal;
    font-size: 1rem;
  }

  .cards .product-link {
    flex-wrap: wrap;
  }
}
