/*
Theme Name: 企业官网定制主题
Theme URI: https://www.futine.com/
Description: 基于自定义HTML开发的企业官网WordPress主题，适配响应式，包含轮播、产品、案例、新闻等板块
Author: 自定义作者
Author URI: https://www.futine.com/
Version: 1.0
Text Domain: custom-enterprise-theme
*/

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    font-family: "Microsoft Yahei", sans-serif;
}
/* 通用容器 */
.container {
    max-width: 73.5%;
    margin: 0 auto;
    padding: 0 0px;
    
}
.padding30{ padding-top: 30px;}
.margintop{ margin-top: 40px;}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 1. 导航栏 (70px高) */
.header-nav {
    height: 90px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
 
}

.clearfloat { clear:both; height:0; font-size: 1px; line-height: 0px; }


.nav-logo {
    width: auto;        /* 自动宽度，不挤压 */
    max-width: 180px;   /* 最大宽度，防止太大 */
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;       /* 固定高度 */
    width: auto;        /* 宽度自动 → 不变形 */
    max-height: 100%;
    object-fit: contain; /* 核心：保持比例 */
    display: block;
}

/* 手机端 LOGO 变小一点 */
@media (max-width: 768px) {
    .nav-logo img {
        height: 42px;  /* 手机高度 */
        width: auto;  /* 不变形 */
    }
}

/* 桌面端基础导航样式 */
.nav-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 75%;
    margin: 0 auto;
    padding: 10px 20px;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    position: relative;
    margin-left: 20px;
    padding: 10px 0;
}
.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    margin-left: 5px;
}

/* =====二级下拉菜单===== */
.nav-menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    min-width: 260px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    display: none; /* 默认隐藏 */
    z-index: 999;
    border-radius: 4px;
}
.nav-menu li ul.sub-menu li {
    position: relative; 
    margin: 0;
    padding: 8px 20px 8px 15px;
    white-space: nowrap;
 }
/* 前面加小圆点 · */
.sub-menu li::before {
    content: "·";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 22px;
    line-height: 1;
    width: auto;
}
.nav-menu .sub-menu li a{
    font-size: 12px;
    line-height: 1.5;
}
.nav-menu .sub-menu li a:hover{
    text-decoration: underline;
}
/* 桌面端 hover 展开下拉 */
.nav-menu li:hover > ul.sub-menu {
    display: block;
}

/* ===== 移动端样式 ===== */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        font-size: 22px;
        cursor: pointer;
        padding: 10px;
    }
    .nav-menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 10px 0;
    }
    .nav-menu.show {
        display: flex !important;
    }
    .nav-menu li {
        width: 100%;
        padding: 10px 20px;
        margin: 0;
    }

    /* 移动端 下拉菜单样式 */
    .nav-menu li ul.sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }
    /* 移动端展开类 */
    .nav-menu li ul.sub-menu.open {
        display: block;
    }
    /* 下拉箭头 */
    .dropdown-arrow {
        float: right;
        font-size: 12px;
        transition: transform 0.3s;
    }
    .dropdown-arrow.rotate {
        transform: rotate(180deg);
    }
}
.nav-menu li a:hover{
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;

}


/* ===== 一级主菜单：仅当前页面高亮 ===== */
/* 仅真正打开的一级页面才高亮 */
.nav-menu > li.current_page_item > a,
.nav-menu > li.current-menu-item > a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;
}

/* ===== 核心关键：子页面/子分类 点亮父级主菜单 ===== */
/* 访问任意下拉子项、子详情页，父一级菜单强制保持高亮 */
.nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.current-page-ancestor > a,
.nav-menu > li.current-tax-ancestor > a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;
}

/* ===== 强制关闭下拉子项自身高亮 ===== */
/* 下拉里面的子链接，永远保持默认原色，绝不变色 */
.nav-menu .sub-menu li.current-menu-item a,
.nav-menu .sub-menu li a {
    /* color: inherit !important;
    background: transparent !important;
    border: none !important; */
}

/* 全局基础重置 */
.nav-menu li a {
    text-decoration: none !important;
    transition: all 0.2s;
}


/* 1、一级菜单 正常点击高亮 */
.nav-menu > li.current-menu-item > a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;
}

/* 2、新闻详情页 → 点亮【公司新闻】第3个菜单 */
body.single-news .nav-menu > li:nth-child(3) > a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;
}

/* 3、产品详情页 → 点亮【防腐木凉亭】第6个菜单 */
body.single-product .nav-menu > li:nth-child(7) > a {
    color: #007bff !important;
    border-bottom: 2px solid #007bff !important;
    padding-bottom: 5px;
}

/* 4、屏蔽下拉子菜单自身高亮 */
.nav-menu .sub-menu li.current-menu-item a {
    color: inherit !important;
    border: none !important;
}


/* 2. 轮播Banner (高620px 满屏) */
.banner-section {
    margin-top: 70px;
    height: 720px;
    position: relative;
    overflow: hidden;
}
.banner-slider {
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    width: 100%;
    height: 100%;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 轮播控制按钮 */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    outline: none;
    z-index: 10;
}
.banner-prev {
    left: 20px;
}
.banner-next {
    right: 20px;
}
/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}
.banner-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dot.active {
    background: #fff;
}
@media (max-width: 768px) {
    .banner-section {
        height: 300px;
    }
    .banner-prev, .banner-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* 3. 产品板块 (自适应 1400px内 一排3个 间距25px) */
.product-section {
    padding: 80px 0;
}
.product-title {
    text-align: center;
    margin-bottom: 50px;
}
.product-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}
.product-title p {
    font-size: 16px;
    color: #999;
    
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(33.333% - 25px), 1fr));
    gap: 25px;
}

/*首页产品列表*/
.product-item {
    background: #fff;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.08); */
    border-radius: 1px;
    overflow: hidden;
    transition: transform 0.3s;
}
.product-item:hover {
    transform: translateY(-0px);
}


.product-img {
    height:auto;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height:330px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

/* 产品板块超链接样式 */
.product-item a {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父元素颜色，标题/图片不变色 */
}
.product-item a:hover .product-img img {
    opacity: 0.9; /* 鼠标悬停图片轻微透明 */
    transition: opacity 0.3s;
}
.product-item a:hover h3 {
    color: #967a3f; /* 鼠标悬停标题变金色（和你之前的配色一致） */
    transition: color 0.3s;
}


.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}
.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.product-info a:hover{
    text-decoration: underline;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 25px), 1fr));
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 5. 案例展示板块 (H2 50px左右 1400px内 一排3个 2列) */
.case-section {
    padding: 80px 0;
}
.case-title {
    text-align: center;
    margin-bottom: 50px;
}
.case-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}
.case-title p {
    font-size: 16px;
    color: #666;
}

.case-gridin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-itemin {
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.case-imgin {
    height: 300px;
    overflow: hidden;
}
.case-imgin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.case-itemin:hover .case-imgin img {
    transform: scale(1.05);
}
.case-infoin {
    padding: 15px;
}
.case-infoin h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}
.case-infoin:hover a{text-decoration: underline;}

@media (max-width: 992px) {
    .case-gridin {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-imgin {
        height: 180px;
    }
    .case-title h2 {
        font-size: 36px;
    }
}
@media (max-width: 576px) {
    .case-gridin {
        grid-template-columns: 1fr;
    }
}
/* 6. 新闻中心板块 (全屏背景 轮播新闻) */
.news-section {
    background: url('images/newsbg.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px 0 80px 0;
    color: #fff;
}
.news-title {
    text-align: center;
}
.news-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
}
.news-title p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* 轮播容器 */
.news-slider-wrap {
    position: relative;
    overflow: hidden !important;
    width: 100%;
}
.news-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

/* 新闻卡片 */
.news-item {
    flex-shrink: 0;
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.news-img {
    width: 100%;
    height: 280px;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-item:hover a{ text-decoration: underline;}
.news-info {
    padding: 15px;
}
.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 按钮 */
.news-prev, .news-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
}
.news-prev { left:10px; }
.news-next { right:10px; }

/* ======================== */
/* PC 3条 */
/* ======================== */
@media (min-width: 769px) {
    .news-slider { gap:20px; }
    .news-item { width: calc(33.333% - 14px); }
}

/* ======================== */
/* 📱 手机 1条 —— 绝对生效 */
/* ======================== */
@media (max-width: 768px) {
    .news-slider { gap:0 !important; }
    .news-item { width:100% !important; }
    .news-img { height:220px; }
}


/* 7. 留言板块 (左表单 右优势) */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-wrap {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;      
    align-items: flex-start; 
}

/* 左侧表单：占比计算 */
.contact-form {
    flex: 0 0 55%; 
    background: #fff;
  
}

/* 右侧优势 */
.contact-advantage {
    flex: 1;
}

.contact-form h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    width: 50%;
    box-sizing: border-box; /* 核心：让边框不撑大宽度 */
}

/* 输入框样式优化，防止边框溢出 */
.form-group input, 
.form-group textarea {
    width: 90%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box; 
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
}

.advantage-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.advantage-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;

}

.advantage-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0; /* 不压缩图标 */
}

.advantage-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.advantage-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .advantage-item {
        width: 100% !important;
        min-width: unset !important;
      }
      .contact-advantage{min-width: 260px; }
     .contact-form {
        min-width: 260px; 
 margin-left: 0em;!important;
    }

     .form-group{ 
          width: 100%;
     }

    .contact-section {
        padding: 40px 0; 
    }
    
    .contact-wrap {      
        flex-direction: column; 
        gap: 20px; 
      
    }
    
    /* 手机端标题适配 */
    .contact-form h2,
    .advantage-title {
        font-size: 22px; 
    }    
}

/* ========== Footer 样式（完全匹配图片效果） ========== */
.footer-section {
    background: #000;
    color: #fff;
    padding: 0px 0 60px 0;
    font-family: inherit;
 
}
.footer-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

}
.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 8px;
}
.footer-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.footer-menu li a:hover {
    opacity: 0.5;
    color: #d4a373; /* 按钮同色系hover效果 */
}

/* 联系信息样式 */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    line-height: 2;
    opacity: 0.5;
}

/* 第四列咨询入口 */
.footer-col-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-tip p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
    opacity: 0.5;
}
.contact-btn {
    display: inline-block;
    width: fit-content;
    padding: 15px 40px;
    background: #d4a373; /* 图片中的浅棕色按钮 */
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px; /* 椭圆圆角 */
    transition: background 0.3s ease;
}
.contact-btn:hover {
    background: #c19660;
    color: #fff;
}

/* 社交图标 */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.social-icon.fb {
    background: #3b5998; /* Facebook蓝 */
}
.social-icon.tw {
    background: #1da1f2; /* Twitter蓝 */
}
.social-icon.yt {
    background: #ff0000; /* YouTube红 */
}
.social-icon:hover {
    transform: translateY(-3px);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .footer-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .footer-wrap {
        grid-template-columns: 1fr;
    }
}
/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
}
.back-to-top.active {
    display: flex;
}


/* 4. 关于我们板块（Why Choose Us + 定制服务，参考图排版） */
.about-section {
    background: #eaeaea; /* 参考图浅米色背景 */
    padding: 0;
}

/* Why Choose Us 板块 */
.why-choose-us-wrap {
    padding: 80px 0px;
    text-align: center;
}
.why-choose-title {
    font-size: 50px;
    color: #007bff; 
    font-family: "Times New Roman", serif;
    margin-bottom: 20px;
}
.why-choose-desc {
    max-width: 1400px;
    margin: 0 auto 50px;
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}
.why-choose-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.why-choose-item {
    text-align: center;
}
.why-choose-icon {
    font-size: 60px;
    color: #007bff;
    margin-bottom: 20px;
}
.why-choose-item-title {
    font-size: 24px;
    color: #666666;
    font-family: "Times New Roman", serif;
    margin-bottom: 15px;
    font-weight: normal;
}
.why-choose-item-desc {
    font-size: 15px;
    color: #8a7d66;
    line-height: 1.6;
}


.custom-service-wrap {
    background: #f0e7dd; 
}
.custom-service-container {
    display: flex;
    flex-wrap: wrap;
}
.custom-service-img {
    width: 45%;
    min-width: 300px;
    margin-left: auto;
  
}
.custom-service-img img {
    height:auto;  
    width: auto;   
    object-fit: unset; 
    display: block;  
    margin-left: auto;
    width: 100%;

}

.custom-service-content {
    width: 50%;
    min-width: unset; 
    padding: 60px 5%;  
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box; 
}
.custom-service-title {
    font-size: 48px;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 25px;
    font-weight: normal;
}
.custom-service-desc  {
    font-size: 0.9em;
    color: #8a7d66;
    line-height: 2.0;
    margin-bottom: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.custom-service-banner{
    background-color:#0178D2;
    line-height: 50px;
    border-radius: 25px;
    width: 180px;
    height: 50px;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.custom-service-banner a{ color: snow;}
.custom-service-banner:hover{ background-color: rgb(201, 171, 150);}
.custom-service-banner:hover a{ color: snow;}

/* 移动端适配 */
@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-service-container {
        flex-direction: column; 
    }
    .custom-service-img img{ margin-left: 0em; width: 100%; }
    .custom-service-img,
    .custom-service-content {
        width: 100%;
    }
    .custom-service-content {
        padding: 40px 10px;
    }
    .why-choose-title,
    .custom-service-title {
        font-size: 32px;
    }
}
@media (max-width: 576px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}



/* ==============================================
   联系我们页面样式
============================================== */

.contact-title {
    text-align: center;
    margin-bottom: 60px;
}
.contact-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}
.contact-title p {
    font-size: 16px;
    color: #666;
}

/* 联系信息栏 */
.contact-info-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 20px;
}
.contact-info-item {
    width: calc(20% - 16px);
    text-align: center;
    padding: 30px 15px;
}
.contact-icon {
    width: 100px;
    height: 100px;
    line-height: 100px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    /* 八边形效果 */
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.contact-icon i {
    font-size: 40px;
    color: #007bff; /* 红色图标，和截图一致 */
}
.contact-info-item h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}
.contact-info-item p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

/* 地图模块 */
.contact-map-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

/* 响应式适配（手机端） */
@media (max-width: 992px) {
    .contact-info-item {
        width: calc(50% - 10px);
    }
}
@media (max-width: 576px) {
    .contact-info-item {
        width: 100%;
    }
}

/* 在线留言板样式（1:1还原截图） */
.contact-message-wrap {
    margin-top: 60px;
    padding: 40px 0;
}
.message-title {
    text-align: center;
    margin-bottom: 40px;
}
.message-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}
.message-title p {
    font-size: 16px;
    color: #666;
}

/* 表单行 */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.form-item {
    width: calc(33.333% - 14px);
}
.form-item label,
.form-textarea label {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}
.form-item label i {
    margin-right: 8px;
    color: #c00;
    font-size: 18px;
}
.form-item input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}
.form-item input:focus {
    border-color: #c00;
}

/* 文本域 */
.form-textarea {
    margin-bottom: 30px;
}
.form-textarea textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s;
}
.form-textarea textarea:focus {
    border-color: #c00;
}

/* 提交按钮 */
.form-submit {
    text-align: center;
}
.form-submit button {
    width: 280px;
    height: 60px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}
.form-submit button:hover {
    background: #a00;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .form-row {
        flex-wrap: wrap;
    }
    .form-item {
        width: calc(50% - 10px);
    }
    .form-item:last-child {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .form-item {
        width: 100% !important;
    }
    .form-submit button {
        width: 100%;
    }
}
/* ========== 产品列表页样式 ========== */
.product-section {
    padding: 80px 0;
    background: #f9f9f9;
}

/* 布局容器 */
.product-page-wrap {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}


/* 右侧产品 */
.product-main {
    flex: 1;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 产品卡片 */
.productlist-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* 图片容器 + 悬浮放大 */
.plcase-img {
    height: 240px;
    overflow: hidden;
}
.plcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.productlist-item:hover .plcase-img img {
    transform: scale(1.05); /* 放大，不溢出 */
}

/* 产品标题 */
.productlist-item .p-title {
    padding: 15px;
    text-align: center;
    font-size: 16px;

}
.productlist-item .p-title a {
    color: #333;
    text-decoration: none;
}
.productlist-item .p-title a:hover {
    color: #967a3f;
}

/* 面包屑 */
.news-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    border-bottom: 1px solid #e7e4e4;
    height: 50px;
    line-height: 50px;
}
.news-breadcrumb a {    
    text-decoration: none;
}
.news-breadcrumb a:hover {
    color: #999999;
    
}

/* ===================== 手机自适应 ===================== */
@media (max-width: 992px) {
    .product-page-wrap {
        flex-direction: column;
    }
    .product-sidebar {
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .plcase-img {
        height: 200px;
    }
}

/* 产品/文章详情页 图片全局防撑大 */
.single-content img,
.entry-content img,
.wp-content img,
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain;
}

/* 强制禁止图片溢出容器 */
@media (max-width: 768px) {
    .single-content,
    .entry-content {
        overflow-x: hidden;
    }
}

/* ========== 产品详情页样式 ========== */
.product-detail-section {
    padding: 80px 0;
}
.product-detail-title {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}
.product-detail-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.product-detail-img {
    flex: 0 0 50%;
}
.product-detail-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.product-detail-content {
    flex: 0 0 50%;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}
.product-consult-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #967a3f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.product-consult-btn:hover {
    background: #7a6232;
}

/* 相关产品 */
.related-product h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}
.related-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.related-product-item {
    text-align: center;
}
.related-product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.related-product-item h4 {
    font-size: 16px;
    color: #333;
}
.related-product-item a {
    text-decoration: none;
    color: inherit;
}

/* ========== 响应式适配（手机端变大） ========== */
@media (max-width: 992px) {
    .product-grid, .related-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-detail-wrap {
        flex-direction: column;
    }
    .product-detail-img, .product-detail-content {
        flex: 0 0 100%;
        width: 100%;
    }
}
@media (max-width: 576px) {
    .product-grid, .related-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-img {
        height: 240px;
    }
    .product-title h2 {
        font-size: 28px;
    }
}

/* ======================== */
/* 案例列表页 - 左右结构样式 */
/* ======================== */

.case-page-title {
    text-align: center;
    margin: 40px 0;
}
.case-desc {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.7;
}

/* Banner 高度 600px */
.page-banner {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
}

/* 左右布局 → 左右互换 */
.case-page-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* 左侧：内容 */
.case-main {
    flex: 1;
    min-width: 300px;
}

/* 右侧：侧边栏 */
.case-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}
.sidebar-title {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.case-latest-list {
    padding: 0;
    list-style: none;
    margin: 0;
}
.case-latest-list li {
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
}
.case-latest-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.case-grid .case-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.case-grid .case-item img {
    width: 100%;
    max-width: 100%; 
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
/* 悬浮放大 不溢出 */
.case-grid .case-item:hover img {
    transform: scale(1.05);
}
.case-grid .case-item-text {
    padding: 14px;
    text-align: center;
}
.case-grid .case-item-text a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

@media (max-width: 768px) {
    .case-grid .case-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        transform: none !important;
    }

    
}
/* 手机端关闭最小宽度，解决偏左错位 */
@media (max-width: 992px) {
    .case-main {
      min-width: 100% !important; /* 👈 覆盖掉 300px */
      flex: none !important;
      width: 100% !important;
    }
  }


/* 分页 */
.case-pagination {
    text-align: center;
    margin-top: 45px;
}
.no-case {
    text-align: center;
    grid-column: 1/-1;
}


/*案例详情页 */
.case-page-wrap {
    padding-bottom: 60px;
}
.case-row {
    display: flex;
    gap: 30px;
}

/* 左侧内容 */
.case-content {
    flex: 1;
    min-width: 300px;
}
.case-title {
    font-size: 26px;
    margin-bottom: 20px;
}
.case-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}
.case-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}



/* 手机自适应 */
@media (max-width: 992px) {
    .case-row {
        flex-direction: column;
    }
    .case-sidebar {
        width: 100%;
    }
    .case-banner {
        height: 200px;
    }
    .case-banner-title {
        font-size: 24px;
    }

    .case-page-wrap {
        flex-direction: column;
        padding: 0 0px;
        
    }

    .case-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
    }
    .case-item img {
        height: 180px;
        
    }
}
/* ======================== */
/* 新闻列表页样式 */
/* ======================== */
.npage-banner {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 60px;
}
.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 46px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-description {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 28px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);

}


.news-page-title {
    text-align: center;
    margin: 40px 0;
}

.news-desc {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.news-item-text {
    padding: 15px;
    text-align: center;
}
.news-item-text a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.no-news {
    text-align: center;
    grid-column: 1/-1;
}

.news-pagination {
    text-align: center;
    margin-top: 40px;
}

/* 手机自适应 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .banner-title {       
        font-size: 36px;
    }
}

/* 新闻列表项：左图右文 */
.news-list-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.news-list-item:first-child {
    padding-top: 0;
}
.news-item-img {
    flex: 0 0 40%;
}
/* 核心修改：统一图片高度，防止大小不一 */
.news-item-img img {
    width: 100%;
    height: 220px; /* 统一固定高度，控制图片大小 */
    object-fit: cover; /* 保持比例填充，不变形 */
    border-radius: 4px;
}
.news-item-content {
    flex: 1;
}
.news-item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.news-item-title a {
    color: #333;
    text-decoration: none;
}

.news-item-title a:hover {
    text-decoration: underline; /* 鼠标移过显示下划线 */
}
.news-item-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}
.news-detail-btn {
    display: inline-block;
    font-size: 16px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}
.news-detail-btn:hover {
    text-decoration: underline;
}

/* 手机站适配 */
@media (max-width: 768px) {
    .news-list-item {
        display: block !important;
        padding: 20px 0 !important;
    }
    .news-item-img {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
    /* 手机端：高度统一180px，不会变形 */
    .news-item-img img {
        width: 100% !important;
        height: 180px !important; /* 手机端固定高度 */
        object-fit: cover !important;
    }
    .news-item-content {
        width: 100% !important;
    }
    .news-item-title {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    .news-item-excerpt {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

/* 平板端压缩高度 */
@media (max-width: 992px) {
    .npage-banner, .page-banner {
        height: 320px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .banner-title {
        font-size: 22px !important;
        padding: 0 15px;
        text-align: center;
    }
}

/* 手机端大幅降低高度，避免过高 */
@media (max-width: 768px) {
    .npage-banner, .page-banner {
        height: 220px !important;
    }
}

/* ======================== */
/* 公共面包屑（全页面通用） */
/* ======================== */
.common-breadcrumb {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.common-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.common-breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* ======================== */
/* 手机端完美适配 */
/* ======================== */
@media (max-width: 768px) {
    .common-breadcrumb {
        font-size: 13px;
        padding: 0 15px;
        height: 44px;
        line-height: 44px;
        background: #f9f9f9;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
    }
}

/* 分页按钮样式 - 还原你要的款式 */
.news-pagination,
.product-main .pagination {
    text-align: center;
    margin: 40px 0;
}
.news-pagination a,
.news-pagination span,
.product-main .pagination a,
.product-main .pagination span {
    display: inline-block;
    width:auto;
    padding: 0 13px;
    height: 40px;
    line-height: 40px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;

}
/* 当前页样式：红底白字 */
.news-pagination .current,
.product-main .pagination .current {
    background: #c00 !important;
    color: #fff !important;
    border-color: #c00 !important;
    font-weight: bold;
}
/*  hover效果 */
.news-pagination a:hover,
.product-main .pagination a:hover {
    background: #f5f5f5;
    border-color: #c00;
    color: #c00;
}
/* 禁用状态（首页/上一页在第一页、下一页/末页在最后一页） */
.news-pagination .disabled,
.product-main .pagination .disabled {
    color: #ccc !important;
    border-color: #eee !important;
    cursor: not-allowed;
}


/* 新闻详情页样式 */
.news-detail {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .news-detail-title {
    font-size: 24px;
    color: #333;
    margin: 15px 0 50px 0;
    line-height: 1.5;
    text-align:center;
    

  }
  .news-detail-time {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
  }
  .news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
  }
  .news-detail-content p {
    margin-bottom: 20px;
  }

  /* 上一条下一条 */
  .case-nav {
    margin-top: 40px;
    padding-top: 20px;
    
    font-size: 15px;
    display: flex;
    flex-direction: column; /* 上下排列 */
    gap: 12px; /* 两行之间间距 */
}
.nav-prev,
.nav-next {
    width: 100%;
}
.nav-prev a,
.nav-next a {
    width: 100%;
    display: block;
    color: #333;
    text-decoration: none;
    
    
}
.nav-prev a:hover,
.nav-next a:hover {
    color: #007bff;
}

/* ===================== PC 端：全部一样、不缩进、平级 ===================== */
.product-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .product-cat-list li {
    padding: 5px 0;
    
  }
  .product-cat-list a {

    display: block;
    padding: 0px 15px; 
    text-decoration: none;
    line-height: 35px;
    border-bottom: dotted  1px #dddbdb;
    color: #333;
    transition: all 0.3s; 
  }
  
.product-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    line-height: 50px;
    height: 50px;
  
}

.product-cat-list li a:hover{
    text-decoration: underline;
}
 
  
  /* ===================== 手机端：全部 2 个一排 ===================== */
  @media (max-width: 768px) {
    .product-cat-list {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 10px !important;
      padding: 0 !important;
    }
    .product-cat-list li {
            padding: 8px 0 !important;
    }
  }

  
/* 仅手机端：产品分类一行2个排列 */
@media (max-width: 768px) { 
    .product-cat-list {
      display: grid;
      grid-template-columns: 1fr 1fr; 
      gap: 12px; 
    }
  
   
    .product-cat-list li {
      margin-bottom: 0;
    }
 
    .product-cat-list li a:hover,
    .product-cat-list li.current-cat a,
    .product-cat-list li a:active,
    .product-cat-list li a:focus {
      background: transparent !important;
            border: none !important;
      box-shadow: none !important;
      outline: none !important;
    }
    .product-cat-list li a {
        white-space: nowrap;
        text-align: center;
      }

  } 

/* 页面相关描述 */
.term-page-desc {
    width: 92%;
    max-width: 1200px;
    margin: 20px auto 30px;
    line-height: 36px;
    font-size: 16px;
    color: #333;
    text-align: left;
}