/* ===== 2026-11-16 首页「资质证书」：标题副标居中 + 左右按钮固定在证书行两端垂直居中 ===== */
.gm-cert-section{padding:28px 0 30px;background:#f5f7fb;border-top:1px solid #eceff5;border-bottom:1px solid #eceff5}

/* 头部：标题 + 副标，均居中 */
.gm-cert-head{display:flex;flex-direction:column;align-items:center;margin-bottom:16px}
.gm-cert-title{margin:0;font-size:20px;line-height:1.35;color:#1a2340;font-weight:700;letter-spacing:1px}
.gm-cert-sub{margin:6px 0 0;font-size:13px;line-height:1.5;color:#8a92a6;font-weight:400;letter-spacing:0;text-align:center}

/* 证书行容器：两侧留出箭头位，箭头垂直居中于卡片行 */
.gm-cert-body{position:relative;padding:0 44px}

/* 圆形箭头按钮：贴在证书行左右两边 */
.gm-cert-btn{position:absolute;top:50%;left:5px;z-index:3;width:34px;height:34px;margin-top:-17px;padding:0;border:1px solid #d9dfea;background:#fff;border-radius:50%;color:#2b388b;cursor:pointer;box-shadow:0 2px 8px rgba(20,30,60,.1);transition:background .2s,border-color .2s,color .2s,box-shadow .2s}
.gm-cert-btn[data-dir="1"]{left:auto;right:5px}
.gm-cert-btn::before{content:"";position:absolute;left:50%;top:50%;width:0;height:0;border:5px solid transparent;border-right-color:currentColor;margin:-5px 0 0 -3px}
.gm-cert-btn[data-dir="1"]::before{border-right-color:transparent;border-left-color:currentColor;margin-left:-2px}
.gm-cert-btn:hover{background:#2b388b;border-color:#2b388b;color:#fff;box-shadow:0 3px 12px rgba(43,56,139,.3)}
.gm-cert-btn:focus-visible{outline:2px solid #2b388b;outline-offset:2px}
/* 一屏放得下（无需滚动）时箭头淡化不可点 */
.gm-cert-static .gm-cert-btn{opacity:.3;cursor:default;box-shadow:none}
.gm-cert-static .gm-cert-btn:hover{background:#fff;border-color:#d9dfea;color:#2b388b;box-shadow:none}

/* 横向轨道 */
.gm-cert-view{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}
.gm-cert-view::-webkit-scrollbar{display:none;height:0}
.gm-cert-track{display:flex;gap:14px;margin:0;padding:0;list-style:none;width:max-content}

/* 卡片 */
.gm-cert-item{flex:0 0 auto;width:145px;min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e4e8f0;border-radius:8px;padding:8px 8px 9px;box-shadow:0 1px 2px rgba(21,31,64,.05);text-align:center}
.gm-cert-item img{display:block;width:100%;height:auto;aspect-ratio:0.707;object-fit:contain;object-position:center;background:#fafbfd;border-radius:4px}
.gm-cert-item p{margin:8px 0 0;font-size:12px;line-height:1.35;color:#222a3d;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gm-cert-item span{display:block;margin-top:2px;font-size:10.5px;line-height:1.4;color:#8a92a6;font-family:Arial,Helvetica,sans-serif;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 中等屏：收窄两侧留白，避免挤掉卡片 */
@media(min-width:1024px) and (max-width:1279px){
  .gm-cert-body{padding:0 38px}
  .gm-cert-btn{left:2px}
  .gm-cert-btn[data-dir="1"]{left:auto;right:2px}
}

/* 窄屏 */
@media(max-width:1023px){
  .gm-cert-section{padding:22px 0 24px}
  .gm-cert-head{margin-bottom:12px}
  .gm-cert-title{font-size:17px;letter-spacing:.5px}
  .gm-cert-sub{margin-top:4px;font-size:12px;line-height:1.45}
  .gm-cert-body{padding:0 26px}
  .gm-cert-btn{width:28px;height:28px;margin-top:-14px;left:0}
  .gm-cert-btn[data-dir="1"]{left:auto;right:0}
  .gm-cert-track{gap:12px}
  .gm-cert-item{flex:0 0 auto;width:118px;padding:7px 7px 8px}
  .gm-cert-item p{font-size:11px}
  .gm-cert-item span{font-size:9.5px}
  .gm-cert-static .gm-cert-btn{opacity:1;cursor:pointer;box-shadow:0 2px 8px rgba(20,30,60,.1)}
}
