
/* =========================================================
   YUBAO — ENGINEERING SUPPORT
========================================================= */

#yb-engineering-module{
  --yb-blue:#0739AC;
  --yb-dark:#061126;
  --yb-text:#4B5A73;
  --yb-border:#D6E5F3;
  --yb-bg:#F5F9FD;

  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);

  padding:52px 0;
  background:var(--yb-bg);

  box-sizing:border-box;
  overflow:hidden;
}

#yb-engineering-module *,
#yb-engineering-module *::before,
#yb-engineering-module *::after{
  box-sizing:border-box;
}

#yb-engineering-module .yb-eng-wrap{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:0 48px;
}

/* =========================================================
   主布局：左侧文案 + 右侧四张卡片
========================================================= */

#yb-engineering-module .yb-eng-layout{
  display:grid;
  grid-template-columns:minmax(320px,.82fr) minmax(0,2.18fr);
  gap:42px;
  align-items:center;
}

/* =========================================================
   左侧文案
========================================================= */

#yb-engineering-module .yb-eng-intro{
  min-width:0;

  display:flex;
  flex-direction:column;
  justify-content:center;
}


/* Section label: supports scanning without changing heading hierarchy */
#yb-engineering-module .yb-section-kicker{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  text-align:left;
  margin:0 0 11px;
  font-family:'Poppins-Bold','Poppins',Arial,sans-serif;
  font-size:13px;
  line-height:1.2;
  letter-spacing:3.2px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--yb-blue);
}

#yb-engineering-module h2{
  max-width:520px;
  margin:0 0 14px;

  font-family:'Poppins-Bold','Poppins',Arial,sans-serif;
  font-size:36px;
  line-height:1.18;
  letter-spacing:-.5px;
  font-weight:700;

  color:var(--yb-dark);
}

#yb-engineering-module .yb-eng-desc{
  max-width:500px;
  margin:0 0 22px;

  font-family:'Poppins-Regular','Poppins',Arial,sans-serif;
  font-size:16px;
  line-height:1.58;

  color:var(--yb-text);
}

/* =========================================================
   CTA按钮
========================================================= */

#yb-engineering-module .yb-eng-btn{
  width:max-content;
  min-width:290px;
  height:54px;
  padding:0 26px;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;

  background:var(--yb-blue);
  color:#fff!important;
  border:2px solid var(--yb-blue);
  border-radius:5px;

  text-decoration:none;

  font-family:'Poppins-Bold','Poppins',Arial,sans-serif;
  font-size:15px;
  line-height:1;
  font-weight:700;

  box-shadow:0 12px 28px rgba(7,57,172,.22);

  transition:
    color .28s ease,
    background .28s ease,
    border-color .28s ease,
    transform .28s ease,
    box-shadow .28s ease;
}

#yb-engineering-module .yb-eng-btn:hover{
  color:var(--yb-blue)!important;
  background:transparent;
  border-color:var(--yb-blue);

  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(7,57,172,.14);
}

#yb-engineering-module .yb-eng-btn span{
  color:inherit;
  font-size:22px;
  line-height:1;

  transition:transform .28s ease;
}

#yb-engineering-module .yb-eng-btn:hover span{
  transform:translateX(6px);
}

/* =========================================================
   右侧四张等高卡片
========================================================= */

#yb-engineering-module .yb-eng-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:1fr;

  gap:18px;
  align-items:stretch;
}

#yb-engineering-module .yb-eng-card{
  width:100%;
  min-width:0;
  min-height:232px;
  height:100%;

  padding:17px 16px 18px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;

  text-align:center;

  background:#fff;
  border:1px solid var(--yb-border);
  border-radius:7px;

  box-shadow:0 12px 30px rgba(18,40,70,.07);

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

#yb-engineering-module .yb-eng-card:hover{
  transform:translateY(-4px);
  border-color:#B9D2EA;
  box-shadow:0 20px 42px rgba(18,40,70,.12);
}

/* =========================================================
   图标
========================================================= */

#yb-engineering-module .yb-eng-icon{
  width:84px;
  height:84px;
  flex:0 0 84px;

  margin:0 auto 7px;

  display:flex;
  align-items:center;
  justify-content:center;
}

#yb-engineering-module .yb-eng-icon img{
  display:block;

  width:78px;
  height:78px;

  object-fit:contain;
  object-position:center;
}

/* =========================================================
   卡片标题
========================================================= */

#yb-engineering-module .yb-eng-card h3{
  width:100%;
  min-height:42px;

  margin:0 0 4px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-family:'Poppins-Bold','Poppins',Arial,sans-serif;
  font-size:17px;
  line-height:1.25;
  font-weight:700;

  color:var(--yb-dark);
  text-align:center;
}

/* =========================================================
   卡片描述
========================================================= */

#yb-engineering-module .yb-eng-card p{
  width:100%;
  max-width:230px;
  min-height:44px;

  margin:0 auto;

  font-family:'Poppins-Regular','Poppins',Arial,sans-serif;
  font-size:13.5px;
  line-height:1.45;

  color:var(--yb-text);
  text-align:center;
}

/* =========================================================
   中等桌面
========================================================= */

@media(max-width:1360px){

  #yb-engineering-module .yb-eng-wrap{
    padding:0 36px;
  }

  #yb-engineering-module .yb-eng-layout{
    grid-template-columns:minmax(290px,.78fr) minmax(0,2.22fr);
    gap:30px;
  }

  #yb-engineering-module .yb-eng-grid{
    gap:14px;
  }

  #yb-engineering-module .yb-eng-card{
    min-height:220px;
    padding:16px 13px 16px;
  }

  #yb-engineering-module .yb-eng-icon{
    width:76px;
    height:76px;
    flex-basis:76px;
    margin-bottom:6px;
  }

  #yb-engineering-module .yb-eng-icon img{
    width:70px;
    height:70px;
  }

  #yb-engineering-module .yb-eng-card h3{
    min-height:40px;
    font-size:16px;
  }

  #yb-engineering-module .yb-eng-card p{
    min-height:42px;
    font-size:13px;
  }
}

/* =========================================================
   平板
========================================================= */

@media(max-width:1100px){

  #yb-engineering-module{
    padding:60px 0;
  }

  #yb-engineering-module .yb-eng-wrap{
    padding:0 30px;
  }

  #yb-engineering-module .yb-eng-layout{
    grid-template-columns:1fr;
    gap:32px;
  }

  #yb-engineering-module .yb-eng-intro{
    align-items:flex-start;
  }

  #yb-engineering-module .yb-eng-desc{
    max-width:720px;
  }

  #yb-engineering-module .yb-eng-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }

  #yb-engineering-module .yb-eng-card{
    min-height:220px;
  }

  #yb-engineering-module .yb-eng-icon{
    width:82px;
    height:82px;
    flex-basis:82px;
  }

  #yb-engineering-module .yb-eng-icon img{
    width:76px;
    height:76px;
  }
}

/* =========================================================
   手机端
========================================================= */

@media(max-width:768px){

  #yb-engineering-module .yb-section-kicker{
    margin-bottom:9px;
    font-size:12px;
    letter-spacing:2.5px;
  }



  #yb-engineering-module{
    padding:50px 0;
  }

  #yb-engineering-module .yb-eng-wrap{
    padding:0 16px;
  }

  #yb-engineering-module .yb-eng-layout{
    gap:26px;
  }

  #yb-engineering-module h2{
    font-size:30px;
    line-height:1.22;
  }

  #yb-engineering-module .yb-eng-desc{
    margin-bottom:20px;
    font-size:16px;
  }

  #yb-engineering-module .yb-eng-btn{
    width:100%;
    min-width:0;
  }

  #yb-engineering-module .yb-eng-grid{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
    gap:14px;
  }

  #yb-engineering-module .yb-eng-card{
    min-height:0;
    height:auto;

    padding:17px 18px;

    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:17px;
    row-gap:4px;

    align-items:center;
    text-align:left;
  }

  #yb-engineering-module .yb-eng-icon{
    grid-column:1;
    grid-row:1 / span 2;

    width:72px;
    height:72px;
    margin:0;
    flex-basis:auto;
  }

  #yb-engineering-module .yb-eng-icon img{
    width:68px;
    height:68px;
  }

  #yb-engineering-module .yb-eng-card h3{
    grid-column:2;
    grid-row:1;

    min-height:0;
    margin:0;

    display:block;

    font-size:17px;
    text-align:left;
  }

  #yb-engineering-module .yb-eng-card p{
    grid-column:2;
    grid-row:2;

    max-width:none;
    min-height:0;
    margin:0;

    font-size:14px;
    text-align:left;
  }
}
