/* 华瑞德官网 墨绿色主题 适配Aoyun Bootstrap模板 */
/* 导航菜单：当前选中绿色 */
.navbar-nav>li.active>a.nav-link {
    color: #27A057 !important;
}
/* 鼠标悬浮菜单文字变绿色 */
.navbar-nav>li>a.nav-link:hover {
    color: #27A057 !important;
}

/* 板块标题（产品中心、关于我们标题）绿色 */
.section-title h2{
    color:#27A057 !important;
}

/* 主按钮样式：绿色底色 */
.btn-primary{
    background-color:#27A057 !important;
    border-color:#27A057 !important;
}
.btn-primary:hover{
    background-color:#208d4b !important;
    border-color:#208d4b !important;
}

/* 分页激活页码绿色 */
.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover{
    background-color:#27A057 !important;
    border-color:#27A057 !important;
}

/* 徽章标签颜色 */
.badge-danger{
    background-color:#27A057 !important;
}

/* 顶部通栏样式 */
.bg-dark {
    background-color:#222 !important;
}
/* 导航固定在顶部，页面整体向下偏移，防止内容被挡住 */
body {
    padding-top: 78px;
}/* 限制首页Banner高度，避免图片占满整个页面 */
.swiper-container,
.swiper-slide {
    max-height: 500px;
    overflow: hidden;
}

.swiper-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}/* ========== 首页Banner 完全复刻设计稿 ========== */
.home-banner {
    background: linear-gradient(90deg, #0F3B30, #155243);
    padding: 90px 0;
    color: #ffffff;
}
.banner-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
}
.home-banner h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 24px 0;
}
.green-text {
    color: #89E2B7;
}
.banner-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 32px;
}
.banner-btn-group a {
    display: inline-block;
    text-decoration: none;
    font-size:16px;
}
.btn-green {
    background-color: #28A768;
    color: #fff;
    padding:13px 32px;
    border-radius:8px;
    margin-right:16px;
}
.btn-outline {
    border:1px solid #ffffff;
    color:#fff;
    padding:13px 32px;
    border-radius:8px;
    background:transparent;
}
.banner-label-group {
    margin-top:42px;
}
.banner-label-group span {
    display: inline-block;
    border:1px solid rgba(255,255,255,0.28);
    padding:8px 14px;
    border-radius:6px;
    font-size:14px;
    margin:0 8px 10px 0;
}
.banner-img-box img {
    width: 100%;
    object-fit:contain;
    object-position: 50% center;
    display: block;
}
/* 动端适配，小屏幕变成上下布局 */

    .home-banner h1{
        font-size:34px;
    }
.banner-img-box{
    margin-top:35px;
    min-height:380px;
    display:flex;
    align-items:center;
    justify-content:center;
}
/* 全站统一背景色 方案B：整页墨绿色 */
body {
    background-color: #0F3B38 !important;
    color: #ffffff !important;
}
/* 面包屑 */
.breadcrumb a,
.breadcrumb {
    color: #e8e8e8 !important;
}
/* 标题白色加粗 */
h1,h2,h3,h4,h5,h6 {
    color:#ffffff !important;
    font-weight:600;
}
/* 正文段落，纯白文字，调行高，提升阅读舒适度 */
p {
    color:#ffffff !important;
    font-size:18px;
    line-height:1.8;
}
/* 公司简介页面标题单独强化，对齐首页“整线自动化解决方案”视觉 */
.page-title,
.title-page,
.company-title,
h2.company-title,
.page-content h2,
section.title h2 {
    color: #FFFFFF !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 30px;
}

h2,
.page-title,
.title-page {
    color: #FFFFFF !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}
.bg-dark.text-white.py-2:nth-of-type(2) {
    display: none !important;
}

/*所有内页Banner统一墨绿色背景*/
.page-title {
    background-color:#0F423A !important;
    width:100%;
    padding:60px 20px;
}
/*内页大标题*/
.page-title h2 {
    color:#57D385 !important;
    text-align:center !important;
    margin:30px 0 0 0 !important;
    font-size:36px !important;
    font-weight:700 !important;
    letter-spacing:2px !important;
}
/*面包屑导航：缩小字号，取消白色背景*/
.page-title .breadcrumb {
    color:#cccccc !important;
    background:transparent !important;
    padding:0 !important;
    margin:0 !important;
    font-size:14px !important;
}
/*产品列表卡片*/
.product-list{
    padding:30px 0;
}
.product-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:6px;
    overflow:hidden;
    transition: all 0.3s;
}
.product-card:hover{
    box-shadow:0 6px 18px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.product-img img{
    width:100%;
    height:220px;
    object-fit:cover;
}
.product-info{
    padding:16px;
}
.product-info h3{
    font-size:18px;
    margin:0 0 10px 0;
}
.product-info h3 a{
    color:#222;
    text-decoration:none;
}
.product-info h3 a:hover{
    color:#0F423A;
}
.product-info p{
    font-size:14px;
    color:#666;
    line-height:1.6;
    margin:0;
}
/*分页样式*/
.page a,.page span{
    border:1px solid #ddd;
    padding:6px 12px;
    margin:0 4px;
    border-radius:4px;
    color:#333;
    text-decoration:none;
}
.page a:hover{
    background:#0F423A;
    color:#fff;
    border-color:#0F423A;
}
.page span.current{
    background:#0F423A;
    color:#fff;
    border-color:#0F423A;
}
/*产品中心首页两大板块样式*/
.product-index{
    padding:30px 0;
}
.product-block{
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 12px rgba(0,0,0,0.08);
    transition:0.3s;
}
.product-block:hover{
    transform: translateY(-5px);
    box-shadow:0 8px 24px rgba(0,0,0,0.12);
}
.block-img{
    width:100%;
    height:280px;
    object-fit:cover;
}
.block-info{
    padding:24px;
}
.block-info h3{
    font-size:24px;
    color:#0F423A;
    margin:0 0 12px 0;
}
.block-info p{
    color:#666;
    line-height:1.7;
    margin-bottom:20px;
}
.block-btn{
    display:inline-block;
    background:#0F423A;
    color:#fff;
    padding:10px 24px;
    border-radius:4px;
    text-decoration:none;
}
.block-btn:hover{
    background:#0b332d;
}

/*二级栏目产品卡片样式*/
.product-list{
    padding:30px 0;
}
.product-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:6px;
    overflow:hidden;
    transition: all 0.3s;
}
.product-card:hover{
    box-shadow:0 6px 18px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.product-img img{
    width:100%;
    height:220px;
    object-fit:cover;
}
.product-info{
    padding:16px;
}
.product-info h3{
    font-size:18px;
    margin:0 0 10px 0;
}
.product-info h3 a{
    color:#222;
    text-decoration:none;
}
.product-info h3 a:hover{
    color:#0F423A;
}
.product-info p{
    font-size:14px;
    color:#666;
    line-height:1.6;
    margin:0;
}
/*分页样式*/
.page a,.page span{
    border:1px solid #ddd;
    padding:6px 12px;
    margin:0 4px;
    border-radius:4px;
    color:#333;
    text-decoration:none;
}
.page a:hover{
    background:#0F423A;
    color:#fff;
    border-color:#0F423A;
}
.page span.current{
    background:#0F423A;
    color:#fff;
    border-color:#0F423A;
}

/* 产品详情页：左侧图片区域加宽 */
.product-detail-wrap .row {
    display: flex;
    flex-wrap: wrap;
}

.product-detail-wrap .col-lg-7 {
    flex: 0 0 58%;
    max-width: 58%;
}

.product-detail-wrap .col-lg-5 {
    flex: 0 0 42%;
    max-width: 42%;
}

/* 图片保持比例，不被压缩变形 */
.product-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 右侧文字区域适当缩小宽度，避免表格撑太大 */
.product-detail-wrap .col-lg-5 {
    padding-left: 30px;
}

/* 参数表格响应式 */
.product-param table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    word-break: break-word;
}

.product-param table td {
    border: 1px solid #ffffff40;
    padding: 8px 10px;
    color: #fff;
}

/* 手机端：图片在上，文字在下 */
@media (max-width: 768px) {
    .product-detail-wrap .col-lg-7,
    .product-detail-wrap .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .product-detail-wrap .col-lg-5 {
        margin-top: 20px;
    }
/* ========== 面包屑【当前位置】压缩上下间距 ========== */
.position-box{
    padding-top:4px !important;
    padding-bottom:4px !important;
    margin-bottom:8px !important;
}
.position-box p{
    margin:0;
    white-space:nowrap !important;
    text-shadow:none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body .position-box p a,
body .position-box p a:link,
body .position-box p a:visited{
    color:#57D385 !important;
    text-decoration:none !important;
}
body .position-box p a:hover{
    color:#7ee6a3 !important;
}
body .position-box p span:first-child{
    color:#57D385 !important;
}
body .position-box p span:not(:first-child){
    color:#ffffff !important;
}
/* 页面大标题 */
.page-title{
    font-size:32px;
    color:#ffffff;
    margin:15px 0;
    font-weight:700;
}

/* 产品列表容器 */
.product-list-wrap{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:30px;
    margin:30px 0;
}
.product-item{
    background:#fff;
    border-radius:8px;
    overflow:hidden;
}
.product-item img{
    width:100%;
    height:220px;
    object-fit:cover;
}
.product-item h3{
    padding:15px;
    color:#333;
    font-size:16px;
    text-align:center;
}
@media (max-width:768px){
    .product-list-wrap{
        grid-template-columns: repeat(2,1fr);
        gap:20px;
    }
    .page-title{
        font-size:24px;
    }
}
.container-pages {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}
.page-title {
    font-size:32px;
    color:#ffffff;
    margin:15px 0 25px 0;
    font-weight:700;
    text-align:center;
}
.container-pages p{
    line-height:1.8;
    font-size:16px;
    color:#fff;
}
@media (max-width:768px){
    .container-pages{
        padding:0 15px;
    }
    .page-title{
        font-size:24px;
    }
    .product-list-wrap{
        grid-template-columns: repeat(2,1fr);
        gap:20px;
    }
}
/* aboutus 公司简介页面专属样式 */
body.aboutus div.container-pages {
    max-width:900px !important;
    margin: 40px auto;
    padding:0 50px !important;
    background:transparent !important;
}
body.aboutus div.container-pages h1.page-title {
    text-align:center !important;
    font-size:32px !important;
    margin:15px 0 25px 0 !important;
    font-weight:700 !important;
    color:#3c9c48 !important;
    background:transparent !important;
    padding:0 !important;
}
body.aboutus div.container-pages .content p {
    line-height:1.8 !important;
    font-size:16px !important;
    color:#333 !important;
}
/*移动端适配*/
@media (max-width:768px){
    body.aboutus div.container-pages {
        margin:20px auto;
        padding:0 15px !important;
    }
    body.aboutus div.container-pages h1.page-title {
        font-size:24px !important;
    }
}
/*=====产品详情页样式=====*/
.product-detail{padding:30px 0;}
.detail-img img{width:100%;border-radius:8px;}
.detail-title{font-size:28px;color:#222;margin-bottom:15px;}
.detail-sub{color:#666;margin-bottom:20px;}
.product-desc{margin-top:40px;}
.product-desc h3{font-size:20px;border-left:4px solid #57D385;padding-left:10px;margin-bottom:20px;}
.desc-body{line-height:1.8;color:#333;}
.block-btn{display:inline-block;padding:10px 24px;background:#57D385;color:#fff;border-radius:4px;text-decoration:none;margin-top:20px;}
.block-btn:hover{opacity:0.9;}
.product-pre-next{margin-top:40px;padding-top:20px;border-top:1px solid #eee;}
/* 面包屑导航 统一颜色 #57D385 */
    text-decoration: none;
}
.product-pre-next a:hover {
    color: #7ee6a3 !important;
}
html body div.position-box{
}
/* 面包屑文字链接绿色 */
html body div.position-box a,
html body div.position-box a:link,
html body div.position-box a:visited {
    color: #57D385 !important;
    text-decoration: none !important;
}
html body div.position-box a:hover {
    color: #7ee6a3 !important;
}
/* “当前位置:”文字绿色 */
html body div.position-box span:first-child{
    color:#57D385 !important;
}
/* 隐藏模板自带的 >> */
html body div.position-box span:not(:first-child){
    visibility:hidden !important;
}
/* 在链接后面生成白色 >> */
html body div.position-box a::after{
    content:" >> ";
    color:#ffffff !important;
}
/* 最后一项后面不要分隔符 */
html body div.position-box a:last-of-type::after{
    content:"";
}