:root {
  color-scheme: light;
  --navy: #0d1b55;
  --muted: #68708f;
  --lavender: #f2f1ff;
  --paper: #ffffff;
  --line: #e7e7f2;
  --blue: #6570ff;
  --orange: #ff741e;
  --green: #4f9b70;
  --red: #ff2442;
  --shadow: 0 16px 38px rgba(40, 47, 105, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--navy);
  background: var(--lavender);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--lavender);
}

a {
  color: inherit;
}

.campaign-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 calc(150px + env(safe-area-inset-bottom));
}

.campaign-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 16px;
}

.is-embedded .campaign-nav {
  display: none;
}

.is-embedded .campaign-shell {
  padding-top: 10px;
}

.hero-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.nav-control {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  text-decoration: none;
}

.nav-title {
  display: grid;
  flex: 1;
  gap: 4px;
  text-align: center;
}

.nav-title strong {
  font-size: 18px;
}

.nav-title span {
  color: var(--muted);
  font-size: 12px;
}

.hero-badge {
  margin-top: 12px;
  color: var(--blue);
  background: #eef0ff;
}

.hero-card,
.content-card,
.reward-card,
.safety-note {
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  min-height: 332px;
  overflow: hidden;
  padding: 40px 34px 28px;
  background: #fdfdff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 440px;
  padding-right: 190px;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.hero-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-mascot {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 1;
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(60, 73, 144, 0.18));
}

.seven-day-track {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.milestone-track li:not(.is-complete) span {
  color: var(--blue);
  background: #f6f6ff;
  font-size: 11px;
}

.seven-day-track::before {
  position: absolute;
  top: 17px;
  right: 6%;
  left: 6%;
  z-index: -1;
  height: 3px;
  border-radius: 999px;
  background: #dfe2fa;
  content: "";
  transform: rotate(-4deg);
}

.seven-day-track li {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.seven-day-track li:nth-child(1) { transform: translateY(8px); }
.seven-day-track li:nth-child(2) { transform: translateY(6px); }
.seven-day-track li:nth-child(3) { transform: translateY(4px); }
.seven-day-track li:nth-child(4) { transform: translateY(2px); }

.seven-day-track span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #cfd2dc;
  border-radius: 50%;
  color: white;
  background: white;
  font-size: 16px;
  font-weight: 800;
}

.seven-day-track .is-complete span {
  border-color: white;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(100, 115, 255, 0.18), 0 6px 12px rgba(100, 115, 255, 0.22);
}

.seven-day-track small {
  color: var(--navy);
  font-size: 11px;
  white-space: nowrap;
}

@media (min-width: 561px) {
  .hero-card {
    min-height: 382px;
  }

  .hero-copy {
    max-width: 440px;
    padding-right: 0;
  }

  .hero-mascot {
    top: 24px;
    right: 28px;
    width: 198px;
    height: 198px;
  }

  .seven-day-track {
    bottom: 26px;
  }
}

.content-card,
.reward-card,
.safety-note {
  margin-top: 18px;
  padding: 26px;
}

h2 {
  margin-bottom: 18px;
  font-size: 25px;
  line-height: 1.25;
}

.section-index {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 2px;
  border-top: 0;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  font-size: 26px;
}

.step-icon-blue {
  color: #3e9cf5;
  background: #e9f5ff;
}

.step-icon-orange {
  color: #ff952f;
  background: #fff1e2;
}

.step-icon-red {
  color: white;
  background: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.steps strong,
.topic-grid strong {
  font-size: 17px;
}

.steps p,
.topic-grid p,
.rules li,
.safety-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.steps b {
  color: var(--blue);
}

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

.topic-grid article {
  min-height: 116px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbff;
  text-align: center;
}

.topic-grid article > i {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 30px;
}

.topic-grid article:nth-child(2) > i {
  color: #4dbb68;
}

.topic-grid article:nth-child(3) > i {
  color: #7658ef;
}

.topic-grid article:nth-child(4) > i {
  color: var(--orange);
}

.reward-card h2 {
  margin-bottom: 16px;
}

.membership-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.membership-tier {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px 10px;
  border: 1px solid #e4e1ff;
  border-radius: 18px;
  background: #f4f2ff;
  text-align: center;
}

.membership-tier i {
  color: #9789ff;
  font-size: 34px;
}

.membership-tier strong {
  font-size: 15px;
  white-space: nowrap;
}

.membership-tier strong b {
  font-size: 27px;
}

.membership-tier span {
  color: var(--muted);
  font-size: 12px;
}

.tier-thirty {
  border-color: #ffe7a8;
  background: #fff8d8;
}

.tier-thirty i {
  color: #ffc83d;
}

.tier-year {
  border-color: #ffd222;
  background: #fff04a;
}

.tier-year i {
  color: #ff9d2f;
}

.reward-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.rules ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.safety-note {
  border-color: #dfece3;
  background: #edf7f0;
}

.safety-note p {
  margin-bottom: 0;
}

.campaign-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.campaign-footer a {
  text-underline-offset: 3px;
}

.sticky-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(211, 212, 232, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -18px 40px rgba(40, 47, 105, 0.1);
  backdrop-filter: blur(18px);
}

.sticky-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  color: var(--paper);
  background: var(--orange);
  box-shadow: 0 12px 24px rgba(255, 116, 30, 0.24);
}

.secondary-action {
  border: 1px solid #ffc297;
  color: #db5c09;
  background: var(--paper);
}

.sticky-actions a:focus-visible,
.nav-control:focus-visible,
.campaign-footer a:focus-visible {
  outline: 3px solid rgba(100, 115, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .campaign-shell {
    width: min(calc(100% - 20px), 430px);
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: calc(126px + env(safe-area-inset-bottom));
  }

  .is-embedded .campaign-shell {
    padding-top: 8px;
  }

  .campaign-nav {
    padding: 0 2px 8px;
  }

  .nav-control {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .nav-title strong {
    font-size: 16px;
  }

  .nav-title span {
    font-size: 10px;
  }

  .hero-card,
  .content-card,
  .reward-card,
  .safety-note {
    border-radius: 24px;
  }

  .hero-card {
    min-height: 210px;
    padding: 16px 16px 12px;
  }

  .hero-copy {
    padding-right: 116px;
  }

  h1 {
    margin-bottom: 7px;
    font-size: 23px;
    line-height: 1.16;
  }

  .hero-copy > p {
    font-size: 11px;
    line-height: 1.45;
  }

  .hero-badge {
    position: absolute;
    top: 111px;
    left: 16px;
    z-index: 4;
    margin-top: 0;
    padding: 5px 9px;
    font-size: 10px;
  }

  .hero-mascot {
    top: 7px;
    right: -5px;
    width: 132px;
    height: 132px;
  }

  .seven-day-track {
    right: 16px;
    bottom: 10px;
    left: 16px;
    gap: 3px;
  }

  .seven-day-track::before {
    top: 13px;
  }

  .seven-day-track span {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .seven-day-track small {
    font-size: 9px;
  }

  .milestone-track {
    gap: 2px;
  }

  .milestone-track li:not(.is-complete) span {
    font-size: 8px;
  }

  .milestone-track small {
    font-size: 7px;
  }

  .content-card,
  .reward-card,
  .safety-note {
    margin-top: 10px;
    padding: 12px 14px;
  }

  h2 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .steps li {
    grid-template-columns: 24px 32px 1fr;
    gap: 7px;
    padding: 4px 0;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 17px;
  }

  .step-icon-red {
    font-size: 7px;
  }

  .steps strong {
    font-size: 12px;
  }

  .steps p {
    display: none;
  }

  .topic-grid {
    gap: 6px;
  }

  .topic-grid article {
    min-height: 58px;
    padding: 6px 3px;
    border-radius: 12px;
  }

  .topic-grid article > i {
    margin-bottom: 3px;
    font-size: 18px;
  }

  .topic-grid article strong {
    display: block;
    font-size: 9px;
    line-height: 1.25;
  }

  .topic-grid article p {
    display: none;
  }

  .membership-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .membership-tier {
    gap: 3px;
    padding: 6px 3px;
    border-radius: 13px;
  }

  .membership-tier i {
    font-size: 20px;
  }

  .membership-tier strong {
    font-size: 9px;
  }

  .membership-tier strong b {
    font-size: 18px;
  }

  .membership-tier span,
  .reward-card small {
    font-size: 8px;
  }

  .reward-card small {
    margin-top: 7px;
  }

  .sticky-actions {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-top: 9px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
  }

  .sticky-actions a {
    min-height: 44px;
    border-radius: 16px;
    font-size: 15px;
  }
}
