:root {
  --accent: #EE4D2D;
  --accent-hover: #D93F20;
  --bg: #FFF7F3;
  --bg-soft: #FAFAFA;
  --card: #FFFFFF;
  --card-warm: #FFF1EA;
  --text: #111111;
  --muted: #666666;
  --line: rgba(17, 17, 17, 0.1);
  --accent-soft: rgba(238, 77, 45, 0.12);
  --accent-shadow: 0 16px 34px rgba(238, 77, 45, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 48%, #fafafa 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 42%, var(--bg-soft) 100%);
  border-left: 1px solid rgba(17, 17, 17, 0.06);
  border-right: 1px solid rgba(17, 17, 17, 0.06);
}

.app-shell::before {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(238, 77, 45, 0.3);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.06);
}

.tab-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tab-button.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(238, 77, 45, 0.28);
}

.tab-button:active {
  transform: scale(0.96);
}

.page-section {
  display: none;
  position: relative;
  z-index: 1;
  padding: 24px 18px 108px;
  animation: sectionIn 260ms ease both;
}

.page-section.active {
  display: block;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.hero,
.page-hero {
  padding-top: 8px;
}

.courses-hero {
  padding-top: 8px;
  margin-bottom: 18px;
}

.courses-hero h1 {
  margin-bottom: 0;
}

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

.course-card {
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.course-title {
  margin: 2px 4px 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.course-description {
  margin: 12px 4px 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.course-description + .course-description {
  margin-top: 6px;
}

.course-includes {
  margin: 12px 4px 2px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card-warm);
}

.course-includes p {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.course-includes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.course-includes li::marker {
  color: var(--accent);
}

.course-includes strong {
  color: var(--text);
}

.course-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  background: var(--card-warm);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 11vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-copy {
  margin-bottom: 22px;
  font-size: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    var(--accent-shadow),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  box-shadow:
    0 18px 42px rgba(217, 63, 32, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.cta-button:active {
  background: var(--accent-hover);
  transform: translateY(1px) scale(0.98);
}

.hero-preview {
  position: relative;
  min-height: 210px;
  margin: 26px 0 0;
  border: 1px solid rgba(238, 77, 45, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff1ea 100%);
  box-shadow: 0 18px 44px rgba(238, 77, 45, 0.14);
  overflow: hidden;
}

.hero-preview::before,
.hero-preview::after {
  position: absolute;
  content: "";
}

.hero-preview::before {
  left: 22px;
  top: 24px;
  width: 138px;
  height: 162px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(238, 77, 45, 0.92) 0%, #ff8a58 100%);
  box-shadow:
    0 18px 36px rgba(238, 77, 45, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero-preview::after {
  left: 42px;
  top: 52px;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.preview-orbit {
  display: none;
}

.preview-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(68%, 232px);
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(12px);
}

.preview-panel span,
.preview-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-panel strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 20px;
  line-height: 1.05;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.metric-row small {
  display: flex;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--accent);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 28px 0 34px;
}

.trust-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 77, 45, 0.16);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.05);
}

.section-heading {
  margin-bottom: 16px;
}

.card-stack,
.gift-grid,
.bonus-list {
  display: grid;
  gap: 12px;
}

.card {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.07);
  overflow: hidden;
}

.benefit-card,
.gift-card,
.bonus-item {
  padding: 20px;
}

.card-index,
.gift-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--card-warm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(238, 77, 45, 0.15);
}

.card p {
  margin-bottom: 0;
  font-size: 14px;
}

.compact h1 {
  font-size: clamp(34px, 10vw, 42px);
}

.page-hero {
  margin-bottom: 22px;
}

.cta-panel {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(238, 77, 45, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fff1ea 100%);
  box-shadow: 0 18px 44px rgba(238, 77, 45, 0.13);
}

.cta-panel p {
  margin-bottom: 18px;
}

.scarcity-strip {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 15px 16px;
  border: 1px solid rgba(238, 77, 45, 0.2);
  border-radius: 18px;
  background: #fff1ea;
}

.scarcity-strip span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.scarcity-strip strong {
  font-size: 16px;
  line-height: 1.35;
}

.bonus-item h3 {
  padding-left: 18px;
}

.bonus-item h3::before {
  position: absolute;
  left: 20px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(238, 77, 45, 0.28);
  content: "";
}

.final {
  margin-top: 22px;
}

.support-float {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  box-shadow:
    0 16px 34px rgba(238, 77, 45, 0.35),
    0 0 0 8px rgba(238, 77, 45, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.support-float svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-float:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(217, 63, 32, 0.42),
    0 0 0 10px rgba(238, 77, 45, 0.1);
}

.support-float:active {
  background: var(--accent-hover);
  transform: translateY(1px) scale(0.95);
}

@media (max-width: 360px) {
  .page-section {
    padding-inline: 14px;
  }

  .topbar {
    padding-inline: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-preview {
    min-height: 192px;
  }

  .preview-panel {
    width: calc(100% - 40px);
  }
}
