
/* =========================================================
   YUBAO — QUALITY & CERTIFICATION
========================================================= */

#yb-quality-proof{
  --yb-blue:#0739AC;
  --yb-dark:#061126;
  --yb-text:#4B5A73;
  --yb-border:#D6E5F3;
  --yb-bg:#FFFFFF;

  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:76px 0 82px;
  background:var(--yb-bg);
  overflow:hidden;
  box-sizing:border-box;
}

#yb-quality-proof *,
#yb-quality-proof *::before,
#yb-quality-proof *::after{
  box-sizing:border-box;
}

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

/* 主布局：左证书，右文案 */
#yb-quality-proof .yb-quality-grid{
  display:grid;
  grid-template-columns:minmax(480px,.86fr) minmax(0,1.14fr);
  gap:66px;
  align-items:center;
}

/* =========================================================
   左侧证书
========================================================= */

#yb-quality-proof .yb-cert-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:start;
}

#yb-quality-proof .yb-cert-card{
  display:block;
  padding:13px;
  overflow:hidden;

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

  box-shadow:0 18px 46px rgba(18,40,70,.09);
  text-decoration:none;

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

#yb-quality-proof .yb-cert-card:hover{
  transform:translateY(-4px);
  border-color:#B8D1EA;
  box-shadow:0 25px 58px rgba(18,40,70,.15);
}

#yb-quality-proof .yb-cert-card:focus-visible{
  outline:3px solid rgba(7,57,172,.22);
  outline-offset:4px;
}

#yb-quality-proof .yb-cert-card img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:0.707 / 1;

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

  background:#fff;
}

/* =========================================================
   右侧标题区域
========================================================= */

#yb-quality-proof .yb-quality-content{
  min-width:0;
}

#yb-quality-proof .yb-section-kicker{
  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-quality-proof h2{
  max-width:760px;
  margin:0 0 15px;

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

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

#yb-quality-proof .yb-quality-desc{
  max-width:820px;
  margin:0 0 27px;

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

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

/* =========================================================
   六张质量证明卡片
========================================================= */

#yb-quality-proof .yb-proof-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

#yb-quality-proof .yb-proof-card{
  min-width:0;
  min-height:144px;
  padding:20px 18px;

  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:15px;
  align-items:center;

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

  box-shadow:0 10px 27px rgba(18,40,70,.055);

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

#yb-quality-proof .yb-proof-card:hover{
  transform:translateY(-3px);
  border-color:#B8D1EA;
  box-shadow:0 17px 38px rgba(18,40,70,.10);
}

/* 图标 */
#yb-quality-proof .yb-proof-icon{
  width:56px;
  height:56px;

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

#yb-quality-proof .yb-proof-icon img{
  display:block;
  width:52px;
  height:52px;
  object-fit:contain;
  object-position:center;
}

/* 卡片文字 */
#yb-quality-proof .yb-proof-copy{
  min-width:0;
}

#yb-quality-proof .yb-proof-card h3{
  margin:0 0 5px;

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

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

#yb-quality-proof .yb-proof-card p{
  margin:0;

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

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

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

@media(max-width:1360px){

  #yb-quality-proof .yb-quality-wrap{
    padding:0 36px;
  }

  #yb-quality-proof .yb-quality-grid{
    grid-template-columns:minmax(420px,.82fr) minmax(0,1.18fr);
    gap:44px;
  }

  #yb-quality-proof .yb-cert-grid{
    gap:18px;
  }

  #yb-quality-proof .yb-proof-grid{
    gap:12px;
  }

  #yb-quality-proof .yb-proof-card{
    min-height:138px;
    padding:17px 14px;

    grid-template-columns:50px minmax(0,1fr);
    gap:12px;
  }

  #yb-quality-proof .yb-proof-icon{
    width:48px;
    height:48px;
  }

  #yb-quality-proof .yb-proof-icon img{
    width:46px;
    height:46px;
  }

  #yb-quality-proof .yb-proof-card h3{
    font-size:15px;
  }

  #yb-quality-proof .yb-proof-card p{
    font-size:12.5px;
  }
}

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

@media(max-width:1100px){

  #yb-quality-proof{
    padding:66px 0 72px;
  }

  #yb-quality-proof .yb-quality-wrap{
    padding:0 30px;
  }

  #yb-quality-proof .yb-quality-grid{
    grid-template-columns:1fr;
    gap:42px;
  }

  #yb-quality-proof .yb-quality-content{
    order:1;
  }

  #yb-quality-proof .yb-quality-certificates{
    order:2;
  }

  #yb-quality-proof .yb-quality-desc{
    max-width:850px;
  }

  #yb-quality-proof .yb-proof-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }

  #yb-quality-proof .yb-proof-card{
    min-height:126px;
  }

  #yb-quality-proof .yb-cert-grid{
    max-width:760px;
    margin:0 auto;
  }
}

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

@media(max-width:768px){

  #yb-quality-proof{
    padding:54px 0 60px;
  }

  #yb-quality-proof .yb-quality-wrap{
    padding:0 16px;
  }

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

  #yb-quality-proof h2{
    font-size:30px;
    line-height:1.22;
  }

  #yb-quality-proof .yb-quality-desc{
    margin-bottom:23px;
    font-size:15px;
  }

  #yb-quality-proof .yb-proof-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  #yb-quality-proof .yb-proof-card{
    min-height:auto;
    padding:16px 17px;

    grid-template-columns:54px minmax(0,1fr);
    gap:14px;
  }

  #yb-quality-proof .yb-proof-icon{
    width:52px;
    height:52px;
  }

  #yb-quality-proof .yb-proof-icon img{
    width:48px;
    height:48px;
  }

  #yb-quality-proof .yb-proof-card h3{
    font-size:16px;
  }

  #yb-quality-proof .yb-proof-card p{
    font-size:13px;
  }

  #yb-quality-proof .yb-cert-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  #yb-quality-proof .yb-cert-card{
    padding:7px;
  }
}

/* 窄手机：证书单列 */
@media(max-width:480px){

  #yb-quality-proof .yb-cert-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  #yb-quality-proof .yb-cert-card{
    max-width:340px;
    margin:0 auto;
  }
}
