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

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

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

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

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

/* Breadcrumb */
.af-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;
}

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

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

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

.af-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 */
}

.af-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;
}

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

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

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

/* ================================================
   SECTION 01 — 适合谁学 (bg=#F3F8FE, h=710px)
   ================================================ */
.af-audience {
  background: #F3F8FE;
  height: 36.9792vw;
  /* 710px */
  display: flex;
  align-items: center;
}

.af-audience .container {
  width: 100%;
}

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

.af-audience-card {
  width: 36.4063vw;
  /* 699px */
  height: 15.625vw;
  /* 300px */
  background: linear-gradient(to right, #3853E9, #4E5DFF, #8E8CFD);
  border-radius: 1.5625vw;
  /* 30px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.885vw 0.99vw 0.885vw 2.76vw;
  overflow: hidden;
}

.af-audience-card-text {
  flex-shrink: 0;
}

.af-audience-card-title {
  font-size: 2.0833vw;
  /* 40px */
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1875vw;
  /* 3.6px */
  margin-bottom: 0.625vw;
  /* 12px */
  line-height: 1.3;
}

.af-audience-card-title--sm {
  font-size: 1.875vw;
  /* 36px */
}

.af-audience-card-desc {
  font-size: 1.0417vw;
  /* 20px */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.6;
  max-width: 13.5417vw;
  /* 260px */
}

.af-audience-card-img {
  width: 19.0104vw;
  /* 365px */
  height: 13.8542vw;
  /* 266px */
  flex-shrink: 0;
  border-radius: 1.5625vw;
  /* 30px */
  overflow: hidden;
}

.af-audience-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5625vw;
  /* 30px */
}

/* ================================================
   SECTION 02 — 课程特色 (bg=white, border #F1F9FF, h=649px)
   ================================================ */
.af-features {
  background: var(--color-white);
  height: 33.8021vw;
  /* 649px */
  display: flex;
  align-items: center;
  border: 1px solid #F1F9FF;
}

.af-features .container {
  width: 100%;
}

.af-features-cards {
  display: flex;
  justify-content: space-between;
}

.af-feature-card {
  width: 33.9583vw;
  /* 652px */
  height: 23.3854vw;
  /* 449px */
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5625vw;
  /* 30px */
  text-align: center;
}

.af-feature-icon {
  width: 13.5417vw;
  /* 260px */
  height: 11.4583vw;
  /* 220px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5625vw;
  /* 30px */
}

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

.af-feature-title {
  font-size: 1.6667vw;
  /* 32px */
  font-weight: 700;
  color: #3D65F3;
  margin-bottom: 0.8333vw;
  /* 16px */
  letter-spacing: 0.1042vw;
  /* 2px */
  line-height: 1.4;
}

.af-feature-desc {
  font-size: 1.0417vw;
  /* 20px */
  font-weight: 500;
  color: #777;
  line-height: 1.6;
}

/* ================================================
   SECTION 03 — 详情介绍 (bg=white + 20% pattern overlay)
   ================================================ */
.af-details {
  position: relative;
  background: url('../assets/06-anti-fraud/sections/section-1.webp') center / cover no-repeat;
  padding: 3.6458vw 0 5.2083vw;
  /* ~70px 0 100px */
  overflow: hidden;
}

.af-details-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.af-details-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-details-inner {
  position: relative;
  z-index: 1;
}

.af-details-card {
  width: 73.75vw;
  /* 1416px */
  height: 20.4167vw;
  /* 392px */
  background: url('../assets/06-anti-fraud/hero/banner-1.webp') center / cover no-repeat;
  border-radius: 1.5625vw;
  /* 30px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.af-details-card-content {
  padding: 2.6042vw 0 2.6042vw 3.125vw;
  /* 50px 0 50px 60px */
  flex: 1;
  z-index: 1;
}

.af-details-title {
  font-size: 1.6667vw;
  /* 32px */
  font-weight: 700;
  color: #3D65F3;
  margin-bottom: 1.5625vw;
  /* 30px */
  letter-spacing: 0.1042vw;
  /* 2px */
  line-height: 1.4;
}

.af-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.af-details-list li {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: #000;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 1.615vw;
  margin-bottom: 0.9375vw;
  /* 18px */
}

.af-details-list li:last-child {
  margin-bottom: 0;
}

.af-details-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5625vw;
  /* 30px */
  height: 1.5625vw;
  /* 30px */
  border-radius: 50%;
  background: #3D65F3;
  color: var(--color-white);
  font-size: 0.8333vw;
  /* 16px */
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1563vw;
  /* 3px */
}

.af-details-card-banner {
  width: 36.4583vw;
  /* 700px */
  height: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.af-details-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 1.5625vw 1.5625vw 0;
  /* 0 30px 30px 0 */
}

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

  /* -- Global overflow prevention -- */
  .af-hero,
  .af-audience,
  .af-features,
  .af-details {
    max-width: 100vw;
    overflow-x: hidden;
  }

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

  .af-hero-inner {
    text-align: center;
    height: auto;
  }

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

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

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

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

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

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

  /* ---- Section 01 — Audience ---- */
  .af-audience {
    height: auto;
    padding: 36px 0;
  }

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

  .af-audience-card {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 20px;
    border-radius: 14px;
    flex-direction: row;
  }

  .af-audience-card-text {
    flex: 1;
    min-width: 0;
  }

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

  .af-audience-card-title--sm {
    font-size: 18px;
  }

  .af-audience-card-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: none;
  }

  .af-audience-card-img {
    width: 120px;
    height: 100px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .af-audience-card-img img {
    border-radius: 12px;
  }

  /* ---- Section 02 — Features ---- */
  .af-features {
    height: auto;
    padding: 36px 0;
    border: none;
  }

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

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

  .af-feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .af-feature-title {
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 1px;
  }

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

  /* ---- Section 03 — Details ---- */
  .af-details {
    padding: 36px 0 40px;
  }

  .af-details-card {
    width: 100%;
    height: auto;
    flex-direction: column;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
  }

  .af-details-card-content {
    padding: 20px;
  }

  .af-details-title {
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
  }

  .af-details-list li {
    font-size: 14px;
    line-height: 24px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .af-details-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-top: 2px;
  }

  .af-details-card-banner {
    width: 100%;
    height: 200px;
  }

  .af-details-card-banner img {
    border-radius: 0 0 14px 14px;
  }
}