/* ============================================================
   section5.css —— 第 5 屏 为什么选我们
   四条优势卡 / 背景大图
   ============================================================ */

.why {background:var(--ink);color:#fff}
.why .head p {color:#aaa4ae}
.whygrid {display:grid;grid-template-columns:1fr 1fr;gap:70px}
.advantages {display:grid;grid-template-columns:1fr 1fr;border-left:1px solid #ffffff28;border-top:1px solid #ffffff28}
.adv {padding:28px;border-right:1px solid #ffffff28;border-bottom:1px solid #ffffff28}
.adv b {color:var(--o)}
.adv p {font-size:11px;color:#aaa4ae}
.adv p {font-size:12px}
.adv>b {display:block;margin-bottom:12px;line-height:1.3}
.adv h3 {margin-bottom:8px;line-height:1.3}
.adv p {margin-bottom:0;line-height:1.65}
/* Why Wonsmart section */
.why {position:relative;padding:96px 0;overflow:hidden}
.why::before {content:"";position:absolute;z-index:1;inset:0;background:rgba(20,18,22,.28);pointer-events:none}
.why-bg {position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:brightness(.82) contrast(1.05)}
.why>.shell {position:relative;z-index:2}
.why .head {grid-template-columns:1fr;align-items:end;gap:0;margin-bottom:44px}
.why .head .eye {margin:0 0 14px;color:var(--o);font-size:12px;font-weight:600;line-height:1.45;letter-spacing:.06em;text-transform:uppercase}
.why .head h2 {margin:0;color:#fff;font-size:46px;font-weight:600;line-height:1.08;letter-spacing:0;white-space:nowrap}
.whygrid {display:block}
.why .advantages {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;border:0;border-radius:0;overflow:visible;background:none}
.why .adv {display:flex;min-width:0;min-height:400px;flex-direction:column;align-items:stretch;padding:0;border:0;border-radius:var(--r);background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(30,27,33,.1);overflow:hidden;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.why .adv:nth-child(odd) {border:0}
.why .adv:nth-child(-n+2) {border:0}
.why .adv:hover {transform:translateY(-4px);border-color:rgba(248,120,63,.5);box-shadow:0 18px 36px rgba(30,27,33,.14)}
.why .adv-media {position:relative;flex:0 0 250px;min-width:0;height:250px;min-height:250px;overflow:hidden;background:#f1f1f3}
.why .adv-media::after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,17,21,0),rgba(18,17,21,.06))}
.why .adv-media img {width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.why .adv:nth-child(1) .adv-media img {object-fit:cover;object-position:center;padding:0}
.why .adv:nth-child(2) .adv-media img {object-position:center}
.why .adv:nth-child(3) .adv-media img {object-position:center}
.why .adv:nth-child(4) .adv-media img {object-position:center}
.why .adv:hover .adv-media img {transform:scale(1.025)}
.why .adv-copy {display:flex;max-width:none;min-width:0;flex:1;flex-direction:column;justify-content:flex-start;padding:25px 24px 27px;border-top:1px solid rgba(30,27,33,.09);background:rgba(255,255,255,.96)}
.why .adv h3 {margin:0 0 11px;color:var(--ink);font-size:19px;font-weight:600;line-height:1.3;letter-spacing:0}
.why .adv p {margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.68}
@media(max-width:1180px) {
  .whygrid {grid-template-columns:1fr}
}
@media(max-width:820px) {
  .advantages {grid-template-columns:1fr}
  .adv h3 {line-height:1.32}
  .why {padding:68px 0}
  .why .head {margin-bottom:34px}
  .why .head .eye {margin-bottom:12px}
  .why .head h2 {font-size:clamp(34px,10vw,46px);line-height:1.1;white-space:normal}
  .why .advantages {grid-template-columns:1fr;gap:18px}
  .why .adv {min-height:0;border:0!important;border-radius:var(--r)}
  .why .adv-media {flex:0 0 250px;height:250px;min-height:250px}
  .why .adv-copy {padding:23px 22px 25px}
  .why .adv h3 {font-size:20px}
}
@media(max-width:1320px) and (min-width:821px) {
  .why {padding:88px 0}
  .why .head {margin-bottom:40px}
  .why .head h2 {font-size:clamp(34px,3.45vw,44px)}
  .why .advantages {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .why .adv {min-height:400px}
  .why .adv-media {flex-basis:250px;height:250px;min-height:250px}
  .why .adv-copy {padding:25px 26px 27px}
}
