/* ========================================
   Unicorn Steps Learning — 品牌站点样式
   配色：深蓝 #2D2D4E / 珊瑚橙 #E85D4A / 米白 #FDF8F2
   ======================================== */

:root {
  --navy: #2d2d4e;
  --navy-soft: #55557a;
  --navy-line: rgba(45, 45, 78, 0.12);
  --coral: #e85d4a;
  --coral-deep: #d44a37;
  --coral-wash: #fbeae6;
  --cream: #fdf8f2;
  --cream-deep: #f7ecdf;
  --white: #ffffff;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-s: 0 6px 18px -12px rgba(45, 45, 78, 0.45);
  --shadow-m: 0 22px 46px -28px rgba(45, 45, 78, 0.5);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Nunito", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Fredoka", "Nunito", "PingFang SC", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(232, 93, 74, 0.95);
}
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy-line);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1e1e36; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 15px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 242, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15.5px;
  font-weight: 600;
}
.nav-links a { color: var(--navy-soft); transition: color 0.15s; }
.nav-links a:hover { color: var(--coral); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--navy-line);
  color: var(--navy-soft);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
}
.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.16em;
  background: var(--coral-wash);
  border-radius: 999px;
  z-index: -1;
}
.hero-sub {
  font-size: 19px;
  color: var(--navy-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--coral-wash);
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

/* Hero 图 */
.hero-art { position: relative; }
.hero-blob {
  position: relative;
  background: linear-gradient(160deg, var(--cream-deep), #fdf3e9 60%, var(--coral-wash));
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  padding: 34px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob img {
  width: 92%;
  filter: drop-shadow(0 18px 24px rgba(45, 45, 78, 0.16));
}
.bubble {
  position: absolute;
  top: 6%;
  right: -4%;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 22px 22px 22px 6px;
  padding: 12px 18px;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-s);
  transform: rotate(-3deg);
}
.spark {
  position: absolute;
  color: var(--coral);
  font-size: 26px;
  opacity: 0.85;
}
.spark.s1 { top: 10%; left: 2%; }
.spark.s2 { bottom: 12%; right: 4%; font-size: 20px; }
.spark.s3 { bottom: 26%; left: 6%; font-size: 15px; }

/* ---------- 信用条 ---------- */
.strip {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  justify-content: center;
  gap: 54px;
  flex-wrap: wrap;
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.strip-inner b { color: #ffab9c; font-weight: 500; }

/* ---------- 区块通用 ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 16px;
}
.section-head p { color: var(--navy-soft); font-size: 18px; }
.kicker {
  font-family: "Fredoka", sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- 三卡理由 ---------- */
.why { background: var(--white); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-l);
  padding: 34px 30px;
}
.card .icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--coral-wash);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--navy-soft); font-size: 16px; }

/* ---------- 免费样品区 ---------- */
.sample {
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.sample::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  right: -90px; top: -110px;
}
.sample h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.sample p { font-size: 17.5px; opacity: 0.95; max-width: 44ch; }
.sample .btn { background: #fff; color: var(--coral); }
.sample .btn:hover { background: #fff5f2; }
.sample-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.sample-art img {
  width: 78%;
  border-radius: 20px;
  transform: rotate(4deg);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.45);
}
.sample-note {
  margin-top: 18px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ---------- 产品卡 ---------- */
.products { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product {
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-l);
  background: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  transform-origin: 50% 72%; /* 占位图自带标题文字，放大裁掉顶部，换成真产品图后可删除这行 */
}
.badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--navy);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
}
.badge.coral { background: var(--coral); }
.product-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 20px; margin-bottom: 8px; }
.product-desc { color: var(--navy-soft); font-size: 15px; margin-bottom: 16px; }
.tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 20px;
}
.tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-soft);
  background: var(--white);
  border: 1px solid var(--navy-line);
  padding: 4px 11px;
  border-radius: 999px;
}
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  font-weight: 600;
}
.price small {
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-left: 4px;
}
.price.strike { color: var(--navy-soft); text-decoration: line-through; font-size: 18px; }

.payline {
  text-align: center;
  margin-top: 34px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-soft);
}

/* ---------- 使用步骤 ---------- */
.how { background: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--navy-line);
}
.step-num {
  font-family: "Fredoka", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--coral);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--navy-soft); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { max-width: 780px; }
details {
  border-bottom: 1px solid var(--navy-line);
  padding: 22px 0;
}
details summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fredoka", sans-serif;
  font-size: 18.5px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-size: 24px;
  color: var(--coral);
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: "–"; }
details p {
  color: var(--navy-soft);
  font-size: 16px;
  margin-top: 14px;
  max-width: 66ch;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 62px 0 34px;
  font-size: 15px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand img {
  width: 260px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.footer-brand p { max-width: 34ch; font-size: 14.5px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: "Fredoka", sans-serif;
}
.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 14.5px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13.5px;
  opacity: 0.75;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 78, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: var(--radius-l);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.modal h3 { font-size: 24px; margin-bottom: 10px; }
.modal p { color: var(--navy-soft); font-size: 15.5px; margin-bottom: 22px; }
.modal img.modal-mark {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  margin-bottom: 18px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: var(--navy-soft);
  cursor: pointer;
  line-height: 1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.field input {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--navy-line);
  background: #fff;
  color: var(--navy);
  outline: none;
}
.field input:focus { border-color: var(--coral); }
.modal-note { font-size: 13px; color: var(--navy-soft); margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .cards-3, .product-grid, .steps { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; padding: 38px 30px; }
  .sample-art { display: none; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .footer-cols { gap: 40px; }
  .bubble { right: 0; font-size: 13.5px; padding: 10px 14px; }
}

/* ---------- 法务页（Terms / Privacy / Refund） ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; }
.legal .updated {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17.5px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--navy-soft); font-size: 16px; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--navy); }
.legal a { color: var(--coral); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal .note {
  background: var(--white);
  border: 1px solid var(--navy-line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-s);
  padding: 18px 20px;
  margin: 20px 0;
}
.legal .note p:last-child { margin-bottom: 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.legal-toc a {
  font-size: 13.5px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--navy-soft);
  text-decoration: none;
}
.legal-toc a:hover { border-color: var(--navy); color: var(--navy); }
.legal-foot {
  margin-top: 48px;
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
  font-size: 14px;
  color: var(--navy-soft);
}
.legal-foot a { margin-right: 20px; display: inline-block; }
