*{
    box-sizing: border-box;
}
/* ===== 全局基础间距 ===== */
body{
    margin:0;
    padding:0;
}
/* ===== 页面整体左右间距20px ===== */
.page-wrapper{
    padding:0 20px;
}
/* ===== 板块标题样式：下划线只跟文字一样长，标题底部间距20px ===== */
.block-title{
    font-size:32px !important;
    color:#222 !important;
    font-weight:700 !important;
    font-family: "Poppins", sans-serif !important;
    margin:0 0 20px;
    position:relative;
    padding-bottom:12px;
    display:inline-block;
}


.block-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:4px;
    background:#222;
}
/* ===== 板块外层容器：右下角more按钮 ===== */
.block-container{
    max-width:1280px;
    margin:0 auto 5px; /* 板块之间距离改成5px */
    position:relative;
    padding-bottom:50px;
}
.block-container .more-link{
    position:absolute;
    right:0;
    bottom:0;
    display:inline-block;
    padding:8px 16px;
    background:rgba(1,188,113,1);
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

/* ===== About Us 板块【修复文字不能铺满】 ===== */
.about-block{
    max-width:1280px;
    margin:0 auto;
    width:100%;
}
.about-inner{
    display:grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap:40px;
    align-items: start;
    width:100%;
}
.about-image{
    width:100%;
    min-width:0;
}
.about-image img{
   width:100%;
    height:auto;
    display:block;
}
.about-text{
    width:100%;
    min-width:0;
    max-width:100%;
    display:block;
}
.about-sub-heading{
    font-size:22px;
    color:#4068b7;
    margin:0 0 8px;
    font-weight:500;
}
.about-main-heading{
    font-size:36px;
    color:#222;
    margin:0 0 12px;
}
.about-line{
    width:60px;
    height:3px;
    background-color:#4068b7;
    margin-bottom:24px;
}
.about-text-desc{
    line-height:1.55;
    color:#444;
    font-size:16px;
    font-family: "Poppins", sans-serif;
    font-weight:400;
    width:100%;
    max-width:100%;
    margin:0;
    padding:0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    text-align:left;
}

/* 强制覆盖宽度兜底，防止外层限制 */
.about-block,
.about-inner,
.about-text,
.about-text-desc{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
}
/* ===== 产品板块样式 ===== */
.product-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:20px;
}
.product-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover{
    transform: translateY(-8px);
    box-shadow:0 14px 30px rgba(0,0,0,0.13);
}
.product-image-wrap{
    width:100%;
    position:relative;
    overflow:hidden;
}

.product-card:hover .product-image{
    transform:scale(1.07);
}
.product-card-title {
    font-family: Arial, Helvetica, sans-serif;
    padding: 18px 16px 8px;
    font-weight: 600;              
    font-size: 1.1rem;     
    line-height: 140%;
    color: #333;  
    text-align: center;   
    min-height: 4rem;
    text-transform: capitalize;
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-action{
    padding:0 16px 18px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.product-card:hover .product-card-action{
    opacity: 1;
    transform: translateY(0);
}
.product-card-action a{
    display:inline-block;
    padding:7px 16px;
    background:rgba(1,188,113,1);
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

/* ===== 案例板块样式 ===== */
.case-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:20px;
}
.case-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}
.case-card:hover{
    transform: translateY(-8px);
    box-shadow:0 14px 30px rgba(0,0,0,0.13);
}
.case-image-wrap{
    width:100%;
    position:relative;
    overflow:hidden;
}
.case-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform 0.4s ease;
}
.case-card:hover .case-image{
    transform:scale(1.07);
}
.case-card-title{
    font-family: Arial, Helvetica, sans-serif;
    padding: 18px 16px 8px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 140%;
    color:#333;
    text-align: left;
    min-height: 6rem;
    text-transform: capitalize;
    letter-spacing: -0.01em;
  
}

.case-card-action{
    padding:0 16px 18px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.case-card:hover .case-card-action{
    opacity: 1;
    transform: translateY(0);
}
.case-card-action a{
    display:inline-block;
    padding:7px 16px;
    background:rgba(1,188,113,1);
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

/* ===== 新闻板块样式 ===== */
.news-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:20px;
}
.news-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}
.news-card:hover{
    transform: translateY(-8px);
    box-shadow:0 14px 30px rgba(0,0,0,0.13);
}
.news-image-wrap{
    width:100%;
    position:relative;
    overflow:hidden;
}
.news-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform 0.4s ease;
}
.news-card:hover .news-image{
    transform:scale(1.07);
}
.news-card-title{
    font-family: Arial, Helvetica, sans-serif;
    padding: 18px 16px 8px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 140%;
    color:#333;
    text-align: left;
    min-height: 6rem;
    text-transform: capitalize;
}
.news-card-action{
    padding:0 16px 18px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.news-card:hover .news-card-action{
    opacity: 1;
    transform: translateY(0);
}
.news-card-action a{
    display:inline-block;
    padding:7px 16px;
    background:rgba(1,188,113,1);
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
}

/* ===== 友情链接 Links 板块 【新增】 ===== */
.friend-link-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:20px 30px;
    align-items:center;
}
.link-item{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:16px;
    color:#222;
    text-decoration:none;
    transition:0.2s;
}
.link-item img{
    height:28px;
    width:auto;
    max-width:120px;
    object-fit:contain;
}
.link-item:hover{
    color:rgba(1,188,113,1);
}
.empty-tip{
    color:#999;
    padding:30px 0;
}
/* ========== Certificates 证书轮播 适配当前模板 ========== */
.cert-wrap{
  width:100%;
  overflow:hidden;
}
.cert-track{
  display:flex;
  gap:20px;
  transition: transform 0.5s ease;
}
.cert-item{
  flex:0 0 calc(20% - 16px);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  cursor:pointer;
}
.cert-image-wrap{
  width:100%;
  
  position:relative;
}
.cert-image{
    width:100%;
  overflow:hidden;
}
/* 头部标题+左右箭头 */
.cert-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}
.cert-arrows{
  display:flex;
  gap:10px;
}
.cert-arrow{
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid #222;
  background:#fff;
  color:#222;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cert-arrow:hover{
  background:rgba(1,188,113,1);
  color:#fff;
  border-color:rgba(1,188,113,1);
}
/* =====图片弹窗样式（和之前相册同款）===== */
.img-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.img-popup.show{
    display:flex;
}
.popup-inner{
    position:relative;
    max-width:90%;
    max-height:90%;
}
.popup-inner img{
    max-width:100%;
    max-height:90vh;
    border:4px solid #fff;
    border-radius:4px;
}
.popup-close{
    position:absolute;
    top:-14px;
    right:-14px;
    width:42px;
    height:42px;
    background:#fff;
    color:#333;
    font-size:26px;
    text-align:center;
    line-height:42px;
    border-radius:50%;
    cursor:pointer;
    font-weight:bold;
}
.popup-close:hover{
    background:rgba(1,188,113,1);
    color:#fff;
}

/* ===== 响应式适配 ===== */
@media (max-width:1024px){
  .cert-item {
    flex:0 0 calc(25% - 15px);
  }
  .product-grid,.case-grid,.news-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:768px){
  .cert-item {
    flex:0 0 calc(33.33% - 14px);
  }
  .popup-close{
    top:-10px;
    right:-10px;
    width:36px;
    height:36px;
    line-height:36px;
    font-size:22px;
  }
}
@media (max-width:640px){
  .about-inner {
    grid-template-columns:1fr;
  }
  .about-main-heading {
    font-size:28px;
  }
  .product-grid,.case-grid,.news-grid {
    grid-template-columns:1fr;
    gap:20px;
  }
  .cert-item {
    flex:0 0 calc(50% - 10px);
  }
  .cert-arrow {
    width:36px;
    height:36px;
    font-size:16px;
  }
}
