/* public/assets/test/css/partials/why-flashmunk-v2.css */
/* Why FlashMunk V2 — 2 big + 4 mini; PC container wide & auto-sync by JS */

.wf2{
  --wf2-accent:#FFCB2E;
  --wf2-text:#111827;
  --wf2-muted:#6b7280;
  --wf2-border:#e5e7eb;
  --wf2-card:#f3f4f6;

  /* ✅ PC 默认更宽：避免你说的“左右边距太大” */
  --wf2-container: 1440px;
  --wf2-gutter: 24px;

  padding: 54px 0 46px;
  background: #fff;
}

.wf2, .wf2 *{ box-sizing:border-box; }

.wf2-inner{
  width: 100%;
  max-width: var(--wf2-container);
  margin: 0 auto;
  padding: 0 var(--wf2-gutter);
}

/* ===== Head ===== */
.wf2-head{
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.wf2-titleRow{
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.wf2-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--wf2-text);
  font-size: 32px;
  line-height: 1.12;
  padding-right: 34px;
}

.wf2-brand{
  position: relative;
  display: inline-block;
  color: var(--wf2-accent);
  font-weight: 900;
}
.wf2-brand::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: var(--wf2-accent);
  border-radius: 999px;
}

.wf2-sparkle{
  position:absolute;
  right: 0;
  top: -6px;
  width: 28px;
  height: 28px;
  pointer-events:none;
}

.wf2-sub{
  margin: 10px auto 0;
  max-width: 720px;
  color: var(--wf2-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ===== Primary cards ===== */
.wf2-primary{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.wf2-card{
  position: relative;
  border: 1px solid #edf0f4;
  background: #f4f5f7;
  border-radius: 22px;
  padding: 18px 18px 16px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}

.wf2-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 70% 70%, rgba(17,24,39,.06), transparent 60%),
    radial-gradient(420px 220px at 30% 20%, rgba(17,24,39,.04), transparent 60%);
  opacity: 1;
  pointer-events:none;
}
.wf2-card[style*="--wf2-bg"]::before{
  background:
    var(--wf2-bg) center / cover no-repeat,
    radial-gradient(600px 260px at 70% 70%, rgba(17,24,39,.06), transparent 60%);
  opacity: .18;
}

.wf2-cardTop{
  position: relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom: 10px;
  z-index: 1;
}

.wf2-cardIcon{
  width: 30px;
  height: 30px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wf2-cardIcon svg{ width: 26px; height: 26px; }

.wf2-cardNo{
  font-weight: 900;
  color: rgba(17,24,39,.18);
  letter-spacing: .04em;
  font-size: 14px;
}

.wf2-kicker{
  position: relative;
  z-index: 1;
  font-weight: 900;
  color: var(--wf2-text);
  font-size: 18px;
  margin-top: 4px;
}

.wf2-cardTitle{
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-weight: 900;
  color: var(--wf2-text);
  font-size: 22px;
  line-height: 1.15;
  max-width: 520px; /* PC 更宽一点，别挤 */
}

.wf2-cardDesc{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #7b808a;
  font-size: 13px;
  line-height: 1.45;
  max-width: 560px;
}

.wf2-moreBtn{
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #0b0b0d;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.14);
}
.wf2-moreBtn:hover{ transform: translateY(-1px); }
.wf2-moreBtn:active{ transform: translateY(0); }
.wf2-moreBtn:focus-visible{
  outline: 2px solid rgba(37,99,235,.35);
  outline-offset: 3px;
}

.wf2-morePanel{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(229,231,235,.7);
  color: var(--wf2-text);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Secondary grid ===== */
.wf2-secondary{
  margin-top: 14px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
}

.wf2-mini{
  padding: 16px 16px 18px;
  min-height: 150px;
  border-right: 1px solid #f1f2f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf2-mini:nth-child(4n){ border-right: 0; }

.wf2-miniIcon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e9eaee;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.wf2-miniIcon svg{ width: 26px; height: 26px; }

.wf2-miniTitle{
  font-weight: 900;
  color: var(--wf2-text);
  font-size: 16px;
  margin-top: 2px;
}

.wf2-miniDesc{
  color: #8b909a;
  font-size: 13px;
  line-height: 1.45;
}

/* ===== Mobile ===== */
@media (max-width: 860px){
  .wf2{ padding: 46px 0 38px; }

  /* 统一移动端 gutter（你项目没定义就用 14） */
  .wf2-inner{ padding: 0 var(--fm-gutter-m, 14px); }

  .wf2-title{
    font-size: 26px;
    padding-right: 30px;
  }
  .wf2-brand::after{ bottom: -5px; height: 4px; }

  .wf2-primary{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .wf2-card{
    padding: 16px 16px 16px;
    min-height: 248px;
  }

  .wf2-cardTitle{ font-size: 20px; }
  .wf2-cardDesc{ font-size: 12.5px; }

  .wf2-secondary{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }

  .wf2-mini{
    border-right: 1px solid #f1f2f4;
    border-top: 1px solid #f1f2f4;
    min-height: 164px;
  }
  .wf2-mini:nth-child(1),
  .wf2-mini:nth-child(2){ border-top: 0; }
  .wf2-mini:nth-child(2n){ border-right: 0; }
}

@media (prefers-reduced-motion: reduce){
  .wf2-moreBtn:hover,
  .wf2-moreBtn:active{ transform:none; }
}
