* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", Helvetica, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.75;
    font-size: 15px;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.24s ease;
}
a:hover {
    color: #0066cc;
}
ul,ol {
    list-style: none;
}
img {
    max-width: 100%;
    border: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/*===== 头部导航 所有页面共用 =====*/
.header {
    background-color: #ffffff;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}
.nav-menu {
    display: flex;
    gap: 32px;
}
.nav-menu li a {
    color: #000000;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
}
.nav-menu li a.active {
    color: #4096ff;
}
.nav-menu li a.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background:#4096ff;
    position:absolute;
    bottom:0;
    left:0;
}

/*===== Banner轮播 =====*/
.banner-box {
    width:100%;
    height:420px;
    overflow:hidden;
    position:relative;
    background:#cbd5e1;
}
.banner-item {
    width:100%;
    height:100%;
    display:none;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:26px;
}
.banner-item.show {
    display:flex;
}
.banner-dots {
    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
}
.banner-dots span {
    width:12px;
    height:12px;
    border-radius:50%;
    background:#ffffff70;
    cursor:pointer;
}
.banner-dots span.dot-active {
    background:#fff;
}

/*===== 通用板块标题 =====*/
.section-title {
    text-align:center;
    font-size:28px;
    padding:42px 0 16px;
}
.section-title::after {
    content:"";
    width:80px;
    height:3px;
    background:#0066cc;
    display:block;
    margin:12px auto 0;
}
.bg-gray {
    background-color:#f5f7fa;
}

/*===== 面包屑导航 内页使用 =====*/
.breadcrumb {
    background:#8dc2fb;
    padding:14px 0;
    font-size:14px;
}

/*===== 我们实力 首页模块 =====*/
.power-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
    padding-bottom:45px;
}
.power-text p {
    margin-bottom:12px;
}
.btn-blue {
    display:inline-block;
    background:#0066cc;
    color:#fff !important;
    padding:9px 22px;
    border-radius:4px;
}
.btn-blue:hover {
    background:#0052a3;
}

/*===== 业务领域列表 =====*/
.business-list {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:24px;
    padding-bottom:45px;
}
.business-item {
    border:1px solid #e8e8e8;
    overflow:hidden;
    background:#fff;
}
.business-img {
    width:100%;
    height:170px;
    background:#cbd5e1;
    display:flex;
    align-items:center;
    justify-content:center;
}
.business-img img{
    width:100%;
    height:100%;
    object-fit:cover;


}
.business-item h4 {
    text-align:center;
    padding:12px 8px;
    font-size:17px;
    background:#f8f9fa;
}
.business-item .desc {
    padding:0 12px 16px;
    font-size:14px;
    color:#555;
}

/*===== 产品列表 =====*/
.product-list {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(210px,1fr));
    gap:22px;
    padding-bottom:45px;
}
.product-card {
    border:1px solid #eee;
    padding: 6px;       /* ←卡片四周白边调小，核心 */
    text-align:center;
    transition:0.2s;
}
.product-card:hover {
    box-shadow:0 2px 12px #00000018;
}
.pro-img {
    height:150px;
    background:#e2e8f0;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:6px; /* ←图片和标题文字之间空白 */
}
.product-list .pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/*===== 新闻列表 =====*/
.news-list {
    padding-bottom:45px;
}
.news-li {
    padding:14px 0;
    border-bottom:1px dashed #dddddd;
    display:flex;
    justify-content:space-between;
}
.news-li a {
    font-size:15px;
}
.news-date {
    color:#888;
    font-size:14px;
}

/*===== 详情页内容样式 =====*/
.article-wrap {
    padding:30px 0 50px;
}
.article-title {
    font-size:24px;
    text-align:center;
    margin-bottom:12px;
}
.article-meta {
    text-align:center;
    color:#888;
    margin-bottom:24px;
}
.article-body {
    line-height:2;
}

/*===== 联系模块/企业名片 =====*/
.contact-box {
    background:#0056b3;
    color:#fff;
    padding:45px 0;
}
.contact-box .section-title {
    color:#fff;
}
.contact-row {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

/*===== 页脚版权 =====*/
.footer {
    background:#000;
    color:#aaa;
    text-align:center;
    padding:18px 0;
    font-size:14px;
}

/*===== 返回顶部 =====*/
#backTop {
    position:fixed;
    right:24px;
    bottom:40px;
    width:44px;
    height:44px;
    background:#0066cc;
    color:#fff;
    text-align:center;
    line-height:44px;
    border-radius:4px;
    cursor:pointer;
    display:none;
}

/*========合作案例列表 修复版，大屏严格一排6个========*/
.case-list {
    display: grid;
    /* 固定6个单元尺寸，最大总宽1160px */
    max-width: calc(180px*6 + 16px*5);
    grid-template-columns: repeat(6, 1fr);
    gap:16px;
    margin: 0 auto 45px; /* 上下margin，用margin做居中，不要用padding左右 */
    
}
.case-list .product-card {
    padding:0;
    border:none;
    min-width:0; /* 防止图片撑破grid单元格 */
}
.case-list .pro-img {
    width:100%;
    height:120px;
    box-sizing: border-box;
    padding:0;
    border:1px solid #cccccc;
    background:#FFFFFF;
    display:flex;
    align-items:center;
    justify-content:center;
}
.case-list .pro-img img {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    object-fit:contain;
}

/* 平板：小于1240px → 变成4列 */
@media (max-width:1240px){
    .case-list{
        grid-template-columns: repeat(4, 1fr);
        max-width:100%;
        padding:0 10px; /* 只有小屏幕才开启左右安全边距 */
    }
}
/* 手机端：768px以下2列 */
@media (max-width:768px){
    .case-list{
        grid-template-columns: repeat(2,1fr);
        gap:12px;
        padding:0 10px;
        margin-bottom:30px;
    }
    .case-list .pro-img{
        height:110px;
    }
}

/*产品参数表格显示边框线*/
.pr-table {
    border-collapse: collapse; /*合并边框，避免双线*/
    width:100%;
    margin:15px 0;
}
.pr-table td {
    border:1px solid #cccccc; /*单元格灰线，全部格子都出线*/
    padding:10px 8px; /*单元格内边距，文字不要贴边框*/
    text-align:center;
}

/*=====新版案例展示卡片【大量竖版设备图推荐】=====*/
.new-case-list {
    display: grid;
    /*最小卡片280px，大屏1200px容器一排4张；屏幕变窄自动3/2列*/
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap:24px;
    padding-bottom:45px;
}
.new-case-item {
    border:1px solid #e8e8e8;
    overflow:hidden;
    background:#ffffff; /*留白底色白色，干净，不显示灰色*/
}
.new-case-img {
    width:100%;
    height:260px; /*盒子加高到260px，适配竖图；不要用220，竖图挤压严重*/
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
}
.new-case-img img {
    width:100%;
    height:100%;
    /* contain → cover */
    object-fit: cover;
    object-position: center; /* 图片居中，优先显示中间设备主体 */
}



/*===== 响应式适配手机 =====*/
@media(max-width:768px){
    .nav-wrap {
        flex-direction:column;
        height:auto;
        padding:12px 0;
    }
    .nav-menu {
        gap:14px;
        flex-wrap:wrap;
        justify-content:center;
        margin-top:10px;
    }
    .power-row {
        grid-template-columns:1fr;
    }
    .banner-box {
        height:240px;
    }
}
