:root {
  --bg: #f5f6f8;
  --card: #fff;
  --tx: #333333;
  --mut: #656c6c;
  --ac: #f91e5a;
  --ac2: #fde8ef;
  --ok: #5b2d9e;
  --ok2: #efe8fa;
  --hd: #220660;
  --hdr: #220660;
  --bd: #e5e7eb;
  --warn: #c2410c;
  --p: #220660;
  --p2: #3a0a8a;
  --p3: #5b2d9e;
  --tint: #f3effa;
  --r: 14px;
  --shadow: 0 8px 28px rgba(34, 6, 96, 0.08);
  --shadow-sm: 0 2px 10px rgba(34, 6, 96, 0.06);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141c;
    --card: #1c1f2b;
    --tx: #e8e9ef;
    --mut: #9aa0b0;
    --ac: #ff4d7a;
    --ac2: #3a1a2a;
    --ok: #c4a8f5;
    --ok2: #2a1f3d;
    --hd: #efe9ff;
    --bd: #2c3142;
    --warn: #fb923c;
    --tint: #1a1528;
    --p: #c4a8f5;
    --p2: #8b6bc7;
    --p3: #a78bfa;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font:
    16px/1.6 Roboto,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    Segoe UI,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--ac);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--hdr);
  color: #fff;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(34, 6, 96, 0.25);
}
nav button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
nav button:not(.s) {
  background: var(--ac);
  border-color: var(--ac);
}
nav button.s {
  background: transparent;
  color: #fff;
}
nav button.s:hover {
  background: rgba(255, 255, 255, 0.14);
}
nav .mut {
  color: rgba(255, 255, 255, 0.75);
}
.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.burger {
  display: none;
  background: none !important;
  border: 0 !important;
  font-size: 28px;
  padding: 0 4px;
  color: #fff;
}
@media (max-width: 720px) {
  .burger {
    display: block;
  }
  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .menu.open {
    display: flex;
  }
}
.logo {
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  margin-right: auto;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  max-width: 180px;
  object-fit: contain;
}
.mark {
  display: none;
}
h1,
h2,
h3 {
  color: var(--hd);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1,
.hero h2,
.hero p {
  color: #fff;
}
.crumb {
  color: var(--mut);
  font-weight: 500;
}
.ttl {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  margin: 14px 0 28px;
}
.qn {
  width: 100%;
  padding: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 12px;
  font-size: 16px;
  background: var(--ac);
}
.dr {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--bd);
}
.dr b {
  color: var(--hd);
}
.tb {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid var(--bd);
  margin: 26px 0 16px;
}
.tb a {
  padding: 10px 0;
  font-weight: 500;
  cursor: pointer;
  color: var(--hd);
}
.tb a.on {
  color: var(--ac);
  border-bottom: 3px solid var(--ac);
  margin-bottom: -2px;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}
.hero {
  background: linear-gradient(145deg, #1a0548 0%, #220660 45%, #3a0a8a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 30, 90, 0.35), transparent 70%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 45, 158, 0.35), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 34px);
  position: relative;
  z-index: 1;
}
.hero p {
  margin: 0 0 18px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero .row,
.hero-search {
  position: relative;
  z-index: 1;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 18px auto 0;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.hero-search input {
  border: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  flex: 1;
  padding: 12px 18px !important;
  color: #333;
}
.hero-search button {
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--ac);
  white-space: nowrap;
}
.section-title {
  text-align: center;
  margin: 8px 0 6px;
  font-size: clamp(22px, 3vw, 28px);
}
.section-sub {
  text-align: center;
  color: var(--mut);
  margin: 0 0 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 2px;
  font-size: 17px;
}
.mut {
  color: var(--mut);
  font-size: 13px;
}
.tag {
  display: inline-block;
  background: var(--ac2);
  color: var(--ac);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  margin: 2px 3px 2px 0;
  font-weight: 500;
}
.tag.w {
  background: #fde8d9;
  color: var(--warn);
}
.tag.g {
  background: var(--ok2);
  color: var(--ok);
}
button,
.btn {
  background: var(--ac);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font: inherit;
  cursor: pointer;
  font-weight: 500;
}
button:hover,
.btn:hover {
  filter: brightness(1.05);
}
button.s {
  background: var(--ac2);
  color: var(--ac);
}
button.d {
  background: #fde8d9;
  color: var(--warn);
}
button.sm {
  padding: 5px 11px;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--card);
  color: var(--tx);
  font: inherit;
  margin: 4px 0 10px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(249, 30, 90, 0.25);
  border-color: var(--ac);
}
label {
  font-size: 13px;
  color: var(--mut);
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.tabs button {
  background: var(--card);
  color: var(--tx);
  border: 1px solid var(--bd);
  white-space: nowrap;
  border-radius: 999px;
}
.tabs button.on {
  background: var(--ac);
  color: #fff;
  border-color: var(--ac);
}
.box {
  max-width: 420px;
  margin: 36px auto;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stat {
  font-size: 28px;
  font-weight: 700;
  color: var(--ac);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--bd);
  font-size: 14px;
}
.scroll {
  overflow-x: auto;
}
.cl {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}
@media (min-width: 900px) {
  .cl {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}
summary {
  cursor: pointer;
}
.cover {
  height: 180px;
  background: linear-gradient(135deg, #220660, #3a0a8a);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 14px 14px;
  margin: -16px -16px 0;
}
.av {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #e5e7eb;
  margin: -10px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #9ca3af;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.av small {
  font-size: 12px;
  font-weight: 700;
}
button.out {
  background: transparent;
  color: #d6245c;
  border: 1px solid #d6245c;
  border-radius: 99px;
}
button.out.b {
  color: var(--hd);
  border-color: var(--hd);
}
.snd {
  width: 100%;
  background: var(--ac);
  padding: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.dt {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7fb2e8;
  margin-left: 4px;
}
.dt.off {
  background: var(--bd);
}
.ab {
  display: flex;
  gap: 14px;
  margin: 14px 0;
}
.ab i {
  font-style: normal;
  font-size: 26px;
}
.cl2 {
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.ls {
  list-style: none;
  padding: 0;
}
.ls li {
  padding: 10px 14px;
  border-left: 3px solid var(--ac);
  margin: 8px 0;
  background: var(--card);
  border-radius: 0 8px 8px 0;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--tx);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 99px;
  display: none;
  z-index: 9;
  box-shadow: var(--shadow);
}
.hint {
  background: var(--ac2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 10px;
  color: var(--tx);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}
.step {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hd);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  margin: 0 0 28px;
  color: var(--mut);
  font-size: 13px;
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 999px;
  padding: 6px 12px;
}
.exp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 3px solid var(--ac);
}
.exp-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px;
}
.price-card {
  text-align: left;
  position: relative;
  padding-top: 20px;
}
.price-card.featured {
  border: 2px solid var(--ac);
  box-shadow: var(--shadow);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--ac);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.price-card ul {
  padding-left: 0;
  list-style: none;
  margin: 14px 0;
}
.price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
  font-size: 14px;
}
.price-card li:last-child {
  border-bottom: 0;
}
.site-footer {
  margin-top: 48px;
  padding: 28px 0 10px;
  border-top: 1px solid var(--bd);
  color: var(--mut);
  font-size: 14px;
}
.site-footer .fg {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 18px;
}
.site-footer h4 {
  margin: 0 0 8px;
  color: var(--hd);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer a {
  color: var(--mut);
}
.site-footer a:hover {
  color: var(--ac);
}
.site-footer .copy {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--bd);
  font-size: 13px;
}
.cta-band {
  background: linear-gradient(135deg, #220660, #3a0a8a);
  color: #fff;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 28px;
}
.cta-band h2,
.cta-band p {
  color: #fff;
  margin: 0 0 10px;
}
.filter-card summary {
  font-weight: 700;
  color: var(--hd);
}
.pill-btn {
  border-radius: 999px !important;
}
.auth-card {
  box-shadow: var(--shadow);
}
.setup-card input,
.setup-card button {
  font-size: 16px;
  min-height: 44px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(26, 5, 72, 0.88) 0%,
    rgba(34, 6, 96, 0.82) 45%,
    rgba(58, 10, 138, 0.78) 100%
  );
  pointer-events: none;
}
.sec-banner {
  height: 160px;
  border-radius: var(--r);
  background-size: cover;
  background-position: center;
  margin: 0 0 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sec-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(34, 6, 96, 0.55),
    rgba(249, 30, 90, 0.15)
  );
}
.media-card {
  overflow: hidden;
  padding: 0;
}
.media-card .media {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.media-card .body {
  padding: 14px 16px 16px;
}
.course-thumb {
  height: 120px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}
.av-ph {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.av-ph small {
  display: none;
}
