:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1a2d;
  --panel-2: #101e38;
  --text: #eef8ff;
  --muted: #94a9c7;
  --cyan: #2de2e6;
  --violet: #7c5cff;
  --gold: #ffb000;
  --line: rgba(148, 169, 199, .2);
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 226, 230, .18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(124, 92, 255, .2), transparent 28%),
    linear-gradient(180deg, #081322 0%, #07111f 52%, #091422 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 104px;
  position: relative;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 16px;
}

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

.brand img {
  width: 118px;
  height: auto;
  display: block;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  color: var(--text);
}

.hero {
  min-height: 420px;
  padding: 26px 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(45, 226, 230, .32);
  border-radius: 999px;
  background: rgba(45, 226, 230, .08);
  color: #bffcff;
  font-size: 12px;
  font-weight: 700;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

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

h1 {
  margin-top: 18px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-art {
  margin: 24px 0 18px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(45, 226, 230, .18);
}

.hero-art img {
  display: block;
  width: 100%;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  border: 0;
  min-height: 50px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn {
  color: #06101c;
  background: linear-gradient(135deg, var(--cyan), #85f7ff 54%, #d8fdff);
  box-shadow: 0 14px 34px rgba(45, 226, 230, .22);
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section h2 {
  font-size: 21px;
  line-height: 1.25;
}

.link {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat,
.course-card,
.benefit,
.module,
.purchase-panel {
  border: 1px solid var(--line);
  background: rgba(13, 26, 45, .78);
  backdrop-filter: blur(18px);
}

.stat {
  min-height: 78px;
  border-radius: 18px;
  padding: 14px 10px;
}

.stat strong {
  display: block;
  font-size: 19px;
  color: var(--text);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.course-card {
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.course-card img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #07111f;
}

.course-card h3 {
  font-size: 16px;
  line-height: 1.35;
}

.course-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #c7d8ee;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  white-space: nowrap;
}

.detail-hero {
  padding: 18px 0 12px;
}

.back-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.cover {
  margin-top: 16px;
  min-height: 206px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(45, 226, 230, .18);
  background:
    linear-gradient(135deg, rgba(45, 226, 230, .18), transparent 45%),
    linear-gradient(315deg, rgba(124, 92, 255, .22), transparent 40%),
    #0d1a2d;
  position: relative;
}

.cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent);
}

.cover-title {
  position: absolute;
  inset: auto 20px 20px;
}

.cover-title h1 {
  font-size: 30px;
  margin: 10px 0 0;
}

.price-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(45, 226, 230, .18), rgba(124, 92, 255, .14));
  border: 1px solid rgba(45, 226, 230, .26);
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 34px;
  font-weight: 900;
}

.origin {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.benefit {
  border-radius: 18px;
  padding: 14px;
  min-height: 112px;
}

.benefit svg {
  color: var(--cyan);
  margin-bottom: 10px;
}

.benefit h3 {
  font-size: 14px;
}

.benefit p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modules {
  display: grid;
  gap: 10px;
}

.module {
  border-radius: 18px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.module-num {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #06101c;
  background: var(--cyan);
  font-weight: 900;
}

.module h3 {
  font-size: 15px;
}

.module p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bottom-buy {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  background: rgba(7, 17, 31, .9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 12px;
  align-items: center;
}

.bottom-buy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.bottom-buy strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

@media (max-width: 360px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .bottom-buy {
    grid-template-columns: 1fr 132px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
