/* ================================================
   RICH MINDSET COURSE PAGE — rm- prefix
   Desktop: all sizes in vw (px / 1920 * 100)
   Mobile: @media (max-width: 1023px) with px
   ================================================ */

/* ================================================
   HERO BANNER (h=494px)
   ================================================ */
.rm-hero {
  position: relative;
  height: 25.7292vw;
  /* 494px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0a1628;
}

.rm-hero-bg {
  position: absolute;
  /*inset: 0;*/
  z-index: 0;
}

.rm-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

/* Breadcrumb */
.rm-breadcrumb {
  position: absolute;
  top: 1.0417vw;
  /* 20px */
  left: 0;
  font-size: 1.25vw;
  /* 24px */
  font-weight: 400;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.4167vw;
  /* 8px */
  margin-left: 4.583vw;
}

.rm-breadcrumb a {
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.rm-breadcrumb a:hover {
  opacity: 1;
}

.rm-breadcrumb span {
  color: var(--color-white);
}

.rm-hero-title {
  font-size: 4.1667vw;
  /* 80px */
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.2083vw;
  /* 4px */
  line-height: 1.2;
  margin-bottom: 1.0417vw;
  /* 20px */
}

.rm-hero-subtitle {
  font-family: var(--font-display);
  font-size: 2.0833vw;
  /* 40px */
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.2708vw;
  /* 5.2px */
  line-height: 1.4;
}

/* ================================================
   INTRO — Section title + underline
   ================================================ */
.rm-intro {
  background: #F1F9FF;
  padding: 3.125vw 0 1.5625vw;
  /* 60px 0 30px */
}

.rm-intro-header {
  text-align: left;
}

.rm-intro-title {
  font-size: 2.0833vw;
  /* 40px */
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: 0.1042vw;
  /* 2px */
  line-height: 1.4;
}

.rm-intro-line {
  width: 25.1563vw;
  /* 483px */
  height: 0.2083vw;
  /* 4px */
  background: #3D65F3;
  border-radius: 0.1042vw;
  /* 2px */
  margin: 0.4167vw 0 0;
  /* 8px 0 0 */
}

/* ================================================
   SHARED SECTION NUMBER GROUP
   ================================================ */
.rm-section-num-group {
  display: flex;
  align-items: baseline;
  gap: 0.8333vw;
  /* 16px */
  margin-bottom: 2.0833vw;
  /* 40px */
}

.rm-section-num {
  font-size: 3.3333vw;
  /* 64px */
  font-weight: 900;
  color: #3D65F3;
  line-height: 1;
}

.rm-section-label {
  font-size: 2.0833vw;
  /* 40px */
  font-weight: 700;
  color: #3D65F3;
  line-height: 1;
}

/* ================================================
   SECTION 01 — 适合谁学
   3 gradient cards, portrait orientation (509x445)
   ================================================ */
.rm-audience {
  background: #F1F9FF;
  padding: 1.5625vw 0 4.1667vw;
  /* 30px 0 80px */
}

.rm-audience-cards {
  display: flex;
  gap: 2.344vw;
  justify-content: space-between;
}

.rm-audience-card {
  width: 23.1771vw;
  /* ~445px */
  height: 26.5104vw;
  /* ~509px */
  background: linear-gradient(to bottom, #3853E9, #4E5DFF 50%, #8E8CFD);
  border-radius: 1.5625vw;
  /* 30px */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rm-audience-card-img {
  width: 21.3542vw;
  /* 410px */
  height: 15.1042vw;
  /* 290px */
  border-radius: 1.5625vw;
  /* 30px */
  overflow: hidden;
  margin: 0.9375vw auto 0;
  /* 18px auto 0 */
  flex-shrink: 0;
}

.rm-audience-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-audience-card-body {
  padding: 1.25vw 1.5625vw;
  /* 24px 30px */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rm-audience-card-title {
  font-size: 1.875vw;
  /* 36px */
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1875vw;
  /* 3.6px */
  margin: 0 0 0.5208vw 0;
  /* 0 0 10px 0 */
  line-height: 1.3;
}

.rm-audience-card-desc {
  font-size: 1.0417vw;
  /* 20px */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.6;
  margin: 0;
}

/* ================================================
   SECTION 02 — 课程特色
   bg=white, border #F1F9FF, 3 cards 454x353
   ================================================ */
.rm-features {
  background: var(--color-white);
  padding: 3.6458vw 0 4.1667vw;
  /* ~70px 0 80px */
}

.rm-features-grid {
  display: flex;
  gap: 1.5625vw;
  /* 30px */
  justify-content: space-between;
}

.rm-feature-card {
  width: 23.6458vw;
  /* 454px */
  height: 18.3854vw;
  /* 353px */
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5625vw;
  /* 30px */
  text-align: center;
}

.rm-feature-img {
  width: 10.5729vw;
  /* 203px */
  height: 9.0625vw;
  /* 174px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25vw;
  /* 24px */
}

.rm-feature-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rm-feature-title {
  font-size: 1.6667vw;
  /* 32px */
  font-weight: 700;
  color: #3D65F3;
  margin: 0 0 0.4167vw 0;
  /* 0 0 8px 0 */
  line-height: 1.4;
}

.rm-feature-desc {
  font-size: 0.9375vw;
  /* 18px */
  font-weight: 500;
  color: #454545;
  line-height: 1.6;
  margin: 0;
}

/* ================================================
   SECTION 03 — 人人都要学的金融防骗课
   gradient card (#D2DAEE -> #EBEEF8), 1416x529, r=30
   image overlay on right
   ================================================ */
.rm-antifraud {
  background: var(--color-white);
  padding: 3.6458vw 0 4.1667vw;
  /* ~70px 0 80px */
}

.rm-antifraud-card {
  width: 73.75vw;
  /* 1416px */
  height: 27.5521vw;
  /* 529px */
  background: linear-gradient(to bottom right, #D2DAEE, #EBEEF8);
  border-radius: 1.5625vw;
  /* 30px */
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.rm-antifraud-left {
  flex: 1;
  padding: 3.125vw 0 3.125vw 3.6458vw;
  /* 60px 0 60px 70px */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

.rm-antifraud-title {
  font-size: 2.0833vw;
  /* 40px */
  font-weight: 700;
  color: #3D65F3;
  margin: 0 0 1.5625vw 0;
  /* 0 0 30px 0 */
  line-height: 1.4;
}

.rm-antifraud-desc {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: #777;
  line-height: 1.8;
  margin: 0 0 5.729vw 0;
  /* 0 0 40px 0 */
  max-width: 31.25vw;
  /* 600px */
}

.rm-antifraud-highlight {
  font-weight: 700;
  color: #3D65F3;
}

.rm-antifraud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15vw;
  /* 288px */
  height: 3.4896vw;
  /* 67px */
  background: #3660F3;
  color: var(--color-white);
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  border-radius: 1.5625vw;
  /* 30px */
  transition: opacity 0.3s;
}

.rm-antifraud-btn:hover {
  opacity: 0.9;
}

.rm-antifraud-right {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 0;
}

.rm-antifraud-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ================================================
   SECTION 04 — 财富规划课
   Dark gradient #3660F3 -> #D0CDFF
   radius top 70px, height 653px
   ================================================ */
.rm-wealth {
  background: url('../assets/05-rich-mindset/bg/section-bg.webp') center / cover no-repeat;
  border-radius: 3.6458vw 3.6458vw 0 0;
  /* 70px top */
  height: 34.0104vw;
  /* 653px */
  overflow: hidden;
}

.rm-wealth .container {
  align-items: unset;
}

.rm-wealth-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.rm-wealth-left {
  flex: 1;
  position: relative;
  padding-top: 6.333vw;
}

.rm-wealth-ghost {
  font-size: 6.6667vw; /* 128px */
  font-weight: 400;
  line-height: 2.0833vw; /* 40px */
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.09) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  pointer-events: none;
  user-select: none;
}

.rm-wealth-title {
  font-size: 1.6667vw;
  /* 32px */
  font-weight: 700;
  color: var(--color-white);
  margin: 1.25vw 0 1.25vw 0;
  /* 0 0 24px 0 */
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.rm-wealth-desc {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.8;
  margin: 0 0 2.0833vw 0;
  /* 0 0 40px 0 */
  max-width: 31.25vw;
  /* 600px */
  position: relative;
  z-index: 1;
}

.rm-wealth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15vw;
  /* 288px */
  height: 3.4896vw;
  /* 67px */
  background: #3660F3;
  color: var(--color-white);
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  border-radius: 3.958vw;
  transition: opacity 0.3s;
  position: relative;
  z-index: 1;
}

.rm-wealth-btn:hover {
  opacity: 0.9;
}

.rm-wealth-right {
  width: 34.2188vw;
  /* 657px */
  height: 27.0313vw;
  /* 519px */
  flex-shrink: 0;
  margin-top: 4.375vw;
}

.rm-wealth-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================================================
   RESPONSIVE — <=1023px (Mobile with px)
   ================================================ */
@media (max-width: 1023px) {

  /* -- Global overflow prevention -- */
  .rm-hero,
  .rm-intro,
  .rm-audience,
  .rm-features,
  .rm-antifraud,
  .rm-wealth {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ---- Hero ---- */
  .rm-hero {
    height: auto;
    min-height: auto;
    padding: 50px 0;
  }

  .rm-hero-inner {
    height: auto;
  }

  .rm-breadcrumb {
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 12px;
    gap: 6px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .rm-hero-title {
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .rm-hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* ---- Intro ---- */
  .rm-intro {
    padding: 30px 0 20px;
  }

  .rm-intro-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .rm-intro-line {
    width: 100%;
    max-width: 320px;
    height: 3px;
  }

  /* ---- Shared section elements ---- */
  .rm-section-num-group {
    gap: 10px;
    margin-bottom: 24px;
  }

  .rm-section-num {
    font-size: 32px;
  }

  .rm-section-label {
    font-size: 22px;
  }

  /* ---- Section 01 — Audience ---- */
  .rm-audience {
    padding: 20px 0 36px;
  }

  .rm-audience-cards {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .rm-audience-card {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 14px;
    margin: 0 auto;
  }

  .rm-audience-card-img {
    width: calc(100% - 24px);
    height: 180px;
    border-radius: 12px;
    margin: 12px auto 0;
  }

  .rm-audience-card-body {
    padding: 16px 20px 20px;
  }

  .rm-audience-card-title {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .rm-audience-card-desc {
    font-size: 14px;
    line-height: 24px;
  }

  /* ---- Section 02 — Features ---- */
  .rm-features {
    padding: 36px 0;
  }

  .rm-features-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .rm-feature-card {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 24px 20px;
  }

  .rm-feature-img {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .rm-feature-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .rm-feature-desc {
    font-size: 13px;
    line-height: 22px;
  }

  /* ---- Section 03 — Anti-fraud card ---- */
  .rm-antifraud {
    padding: 36px 0;
  }

  .rm-antifraud-card {
    width: 100%;
    height: auto;
    flex-direction: column;
    border-radius: 14px;
    position: relative;
  }

  .rm-antifraud-left {
    padding: 20px;
    text-align: left;
    align-items: flex-start;
  }

  .rm-antifraud-title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .rm-antifraud-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .rm-antifraud-btn {
    width: auto;
    min-width: 160px;
    height: 42px;
    font-size: 15px;
    border-radius: 21px;
  }

  .rm-antifraud-right {
    position: relative;
    width: 100%;
    height: 200px;
    right: auto;
    top: auto;
  }

  .rm-antifraud-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 14px 14px;
  }

  /* ---- Section 04 — Wealth ---- */
  .rm-wealth {
    height: auto;
    border-radius: 24px 24px 0 0;
    padding: 36px 0 0;
  }

  .rm-wealth-inner {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }

  .rm-wealth-left {
    padding: 0 0 24px 0;
    width: 100%;
  }

  .rm-wealth-ghost {
    font-size: 56px;
    line-height: 1;
  }

  .rm-wealth-title {
    font-size: 22px;
    margin: 10px 0;
  }

  .rm-wealth-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .rm-wealth-btn {
    width: auto;
    min-width: 160px;
    height: 42px;
    font-size: 15px;
    border-radius: 21px;
  }

  .rm-wealth-right {
    width: 100%;
    height: auto;
    max-height: 260px;
    margin-top: 0;
  }

  .rm-wealth-right img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: center bottom;
  }
}