/* ===================== 全局基础样式 ===================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft Yahei", sans-serif;
    font-style: normal!important; /* 强制设置为正常字体（无斜体） */
    font-size: 20px;
    color: #333;
    line-height: 1.6;
}

ul, li, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, background-color 0.3s ease;
}
/* 全局链接悬浮变红（非导航区通用） */
a:hover {
    color: #ff0000;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
}

/* ===================== PC端头部导航（核心横向样式） ===================== */
/* 顶部导航容器 - 黑色背景 */
.top1 {
    width: 100%;
    background: #000;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    position: relative;
    z-index: 999;
}

/* Logo样式 */
.top1 .logo {
    float: left;
}
.top1 .logo h1 {
    margin: 0;
    padding: 0;
    line-height: 60px;
}
.top1 .logo img {
    height: 60px;
    width: auto;
}

/* 菜单容器（横向核心） */
.menu_box {
    float: left;
    margin-left: 30px;
}
.menu {
    height: 60px;
}
.menu > ul {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 一级菜单项 - 核心：默认白色，悬浮变红 */
.menu > ul > li.nli {
    position: relative;
    margin: 0 15px;
    height: 100%;
}
/* 导航文字默认白色 */
.menu > ul > li.nli > span > a {
    display: block;
    height: 100%;
    line-height: 60px;
    font-size: 20px;
    color: #ffffff; /* 关键：默认白色 */
    padding: 0 5px;
    font-weight: bold; /* 新增：导航文字加粗 */
    font-style: normal!important; /* 强制设置为正常字体（无斜体） */
}
/* 鼠标悬浮/选中时变红 + 底部红线 */
.menu > ul > li.on > span > a,
.menu > ul > li.nli:hover > span > a
.menu > ul > li.nli:has(.sub li.on) > span > a {
    color: #ff0000; /* 关键：悬浮/选中变红 */
    border-bottom: 2px solid #ff0000;
}

/* 二级下拉菜单 */
.menu .sub {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-top: 2px solid #ff0000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 180px;
    display: none;
    z-index: 999;
}
.menu .sub li {
    padding: 0 15px;
}
.menu .sub li a {
    display: block;
    line-height: 40px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}
.menu .sub li:last-child a {
    border-bottom: none;
}
/* 二级菜单悬浮变红 */
.menu .sub li a:hover {
    color: #ff0000;
    background: #fef0f0;
}
.menu > ul > li.nli:hover .sub {
    display: block;
}

/* 右侧电话模块 - 白色文字适配黑底 */
.tPhone {
    float: right;
    height: 60px;
    display: flex;
    align-items: center;
}
.tPhone .ico {
    margin-right: 10px;
}
.tPhone .ico img {
    height: 30px;
    width: auto;
}
.phoneText {
    color: #fff;
}
.phoneLine {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

/* ===================== 移动端头部导航 ===================== */
/* 移动端顶部 - 黑色背景 */
.top2 {
    display: none;
    background: #000;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 999;
}
.top2 .logo {
    text-align: center;
    line-height: 40px;
}
.top2 .logo img {
    height: 40px;
    width: auto;
}
/* 移动端菜单按钮 - 白色适配黑底 */
.menuph {
    float: left;
    height: 40px;
    display: flex;
    align-items: center;
}
#mbtn {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}
.navbtn {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 3px;
    margin-top: -1px;
    transition: background 0.3s ease;
}
.navbtn::before, .navbtn::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: transform 0.3s ease;
}
.navbtn::before {
    top: -8px;
}
.navbtn::after {
    bottom: -8px;
}
/* 移动端按钮悬浮变红 */
#mbtn:hover .navbtn,
#mbtn:hover .navbtn::before,
#mbtn:hover .navbtn::after {
    background: #ff0000;
}

/* 移动端下拉菜单 */
.xialaph {
    position: fixed;
    left: 0;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.xialaph.show {
    transform: translateX(0);
}
/* 移动端一级菜单默认黑色，悬浮变红 */
.xialaph .ul1 .l1 {
    border-bottom: 1px solid #eee;
}
.xialaph .ul1 .l1 h4 a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    font-weight: bold; /* 移动端导航文字加粗 */
}
.xialaph .ul1 .l1 h4 a:hover {
    color: #ff0000;
    background: #fef0f0;
}
.xialaph .ul1 .l1 h4 .ico {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: inline-block;
}
.xialaph .ul1 .l1 h4 b {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid #ff0000;
    border-bottom: 2px solid #ff0000;
    transform: rotate(-45deg);
    margin-left: auto;
    transition: transform 0.3s ease;
}
/* 移动端二级菜单 */
.xialaph .ul2 {
    background: #f9f9f9;
    display: none;
}
.xialaph .ul2 li {
    padding: 10px 0 10px 40px;
}
.xialaph .ul2 li h5 a {
    font-size: 14px;
    color: #666;
}
.xialaph .ul2 li h5 a:hover {
    color: #ff0000;
    background: #fef0f0;
}

/* 移动端遮罩 */
.phonemeng {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(1px);
}

/* ===================== 首页其他模块样式 ===================== */
/* Banner轮播模块 */
.pz_banner {
    width: 100%;
    height: 680px;
    overflow: hidden;
    position: relative;
}
.pz_banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bannerText {
    color: #fff;
    text-align: center;
    padding-top: 100px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0,0,0,0);
}
.bannerText h3 {
    font-size: 32px;
    margin: 0 0 10px;
}
.bannerText p {
    font-size: 16px;
    margin: 0;
}

/* 我们能做什么模块 - 数字红色 */
.index1 {
    padding: 80px 0;
    background: #f9f9f9;
}
.index1 .title {
    text-align: center;
    margin-bottom: 50px;
}
.index1 .title h4 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}
.index1 .title h5 {
    font-size: 16px;
    color: #666;
    margin: 0;
}
.index1List {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.index1List .list {
    width: calc(33.33% - 15px);
    text-align: center;
    margin-bottom: 0;
    padding: 20px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.index1List .H4 {
    font-size: 36px;
    color: #ff0000; /* 数字红色 */
    font-weight: bold;
    margin: 0 0 10px;
}
.index1List .p {
    font-size: 16px;
    color: #666;
    margin: 0 0 5px;
}
.index1List .num {
    font-size: 24px;
    color: #999;
}

/* 服务案例模块 */
.index2 {
    padding: 80px 0;
}
.index2 .title {
    text-align: center;
    margin-bottom: 50px;
}
.index2 .title h4 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}
.index2 .title h5 {
    font-size: 16px;
    color: #666;
    margin: 0;
}
.index2Tab {
    display: flex;
    gap: 20px;
}
.index2Nav {
    width: 20%;
}
.index2Nav .list {
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s ease;
}
.index2Nav .list:hover {
    background: #fef0f0;
    border-left: 3px solid #ff0000;
}
.index2Nav .H5 {
    font-size: 18px;
    color: #333;
}
.index2R {
    width: calc(80% - 20px);
    overflow: hidden;
}
.index2RList .list {
    width: 100%;
}
.index2PicCollage .thumb {
    width: 190px;
    height: 140px;
    display: inline-block;
    margin: 0 5px 5px 0;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.index2PicCollage .thumb:hover {
    transform: scale(1.02);
}

/* 服务流程模块 */
.index5 {
    padding: 80px 0;
    background: #f9f9f9;
}
.index5 .title {
    text-align: center;
    margin-bottom: 50px;
}
.index5 .title h4 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}
.index5 .title h5 {
    font-size: 16px;
    color: #666;
    margin: 0;
}
.index5List {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.index5List .list {
    width: calc(20% - 16px);
    text-align: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.index5List .listBox img {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
}
.index5List .H6 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* 服务客户模块 */
.index7 {
    padding: 80px 0;
}
.index7 .title {
    text-align: center;
    margin-bottom: 50px;
}
.index7 .title h4 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
}
.index7 .title h5 {
    font-size: 16px;
    color: #666;
    margin: 0;
}
.index7 .brandHero img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ===================== 响应式适配 ===================== */
/* 平板端（<1200px） */
@media (max-width: 1200px) {
    .menu > ul > li.nli {
        margin: 0 10px;
    }
    .menu > ul > li.nli > span > a {
        font-size: 15px;
    }
    .index1List .list {
        width: calc(50% - 10px);
    }
    .index5List .list {
        width: calc(33.33% - 13px);
        margin-bottom: 0;
    }
}

/* 移动端（<768px） */
@media (max-width: 768px) {
    .top1 {
        display: none;
    }
    .top2 {
        display: block;
    }

    .pz_banner {
        height: 250px;
    }
    .bannerText h3 {
        font-size: 24px;
    }
    .bannerText p {
        font-size: 14px;
    }
    .index1List .list {
        width: 100%;
    }
    .index1List .H4 {
        font-size: 32px;
    }
    .index2Tab {
        flex-direction: column;
        gap: 10px;
    }
    .index2Nav, .index2R {
        width: 100%;
    }
    .index2PicCollage .thumb {
        width: calc(50% - 5px);
    }
    .index5List .list {
        width: calc(50% - 10px);
    }
    .index5List .listBox img {
        width: 70px;
        height: 70px;
    }
    .index7 .brandHero img {
        width: 95%;
    }
}

/* 小屏移动端（<480px） */
@media (max-width: 480px) {
    .index2PicCollage .thumb {
        width: 100%;
        margin: 0 0 10px 0;
    }
    .index5List .list {
        width: 100%;
    }
}

/* ===================== 通用优化样式 ===================== */
* {
    -webkit-tap-highlight-color: transparent;
}
html {
    scroll-behavior: smooth;
}
/* 仅针对导航栏的 .bg-light 覆盖 */
.navbar.bg-light {
  background-color: #000 !important;
}
/* 同时修改文字颜色适配黑色背景 */
.navbar-light .nav-link {
  color: #fff !important;
}
.navbar-light .navbar-text,
.navbar-light .navbar-text a {
  color: #fff !important;
}
/* 轮播插件适配样式（修复不轮播+高度兼容） */
.pz_banner.c_banner {
    position: relative !important;
    z-index: 1 !important;
}
.pz_banner.c_banner .slide1 {
    height: 100% !important;
    width: 100% !important;
}
.pz_banner.c_banner .slide1 .slick-track {
    height: 100% !important;
    display: flex !important;
}
.pz_banner.c_banner .slide1 .slick-slide {
    height: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
}
/* 确保轮播圆点正常显示 */
.slick-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    z-index: 10 !important;
}
.slick-dots li {
    display: inline-block !important;
    margin: 0 5px !important;
}
.slick-dots li button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #fff !important;
    opacity: 0.7 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.slick-dots li.slick-active button {
    background: #ff0000 !important;
    opacity: 1 !important;
}
/* 仅在备份的 style.css 末尾添加全局悬浮变红（不碰导航样式） */
a:hover {
    color: #ff0000 !important;
}
/* 保留分类标签/案例标题的悬浮样式（不影响导航） */
.cate-tab-list li.active a,
.cate-tab-list li.on a {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
}
/* 彻底隐藏分页组件 */
.pagination,
.page,
.page-box {
    display: none !important;
}
/* ===================== 全局选中标签变红（核心） ===================== */
/* 1. 导航栏选中标签（首页/案例等一级菜单） */
.menu > ul > li.on > span > a {
    color: #ff0000 !important; /* 选中文字红 */
    border-bottom: 2px solid #ff0000 !important; /* 底部红线强化 */
}

/* 2. 服务案例分类选中标签 */
.cate-tab-list li.active a,
.cate-tab-list li.on a {
    color: #ff0000 !important; /* 白字（对比更清晰） */
    border-color: #ff0000 !important; /* 边框红 */
}
/* 分类标签悬浮态也变红（保持一致） */
.cate-tab-list li a:hover {
    color: #ff0000 !important;
    border-bottom: 2px solid #ff0000 !important;
}

/* 3. 移动端导航选中标签 */
.xialaph .ul1 .l1.on h4 a,
.xialaph .ul1 .l1.active h4 a {
    color: #ff0000 !important; /* 选中文字红 */
    background: #fef0f0 !important; /* 浅红背景 */
}

/* 4. 其他通用选中标签（兜底） */
.active a,
.on a,
.current a,
.selected a {
    color: #ff0000 !important;
}
.active,
.on,
.current,
.selected {
    border-color: #ff0000 !important;
}
/* 兼容PbootCMS子页面时父栏目高亮的类名 */
body[class*="case"] .menu > ul > li.nli:has(a[href*="case"]) > span > a {
    color: #ff0000 !important;
    border-bottom: 2px solid #ff0000 !important;
}
/* 服务案例分类标签：激活 = 文字等长下划线 */
.cate-tab-list li a {
  display: inline-block !important;
  padding: 10px 0 !important;
  border-bottom: 2px solid transparent !important;
}
.cate-tab-list li.active a {
  background: transparent !important;
  color: #ff0000 !important;
  border-bottom: 2px solid #ff0000 !important;
}
/* 🔥 终极修复：分类标签间距正常 + 下划线与文字等长 */
/* 强制重置父容器，避免横向挤压 */
.cate-tab-list {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 15px 0 !important;
  white-space: normal !important; /* 允许换行，避免溢出 */
}
/* 每个标签独立块级 + 水平间距 */
.cate-tab-list li {
  display: inline-block !important;
  margin: 0 20px 10px 0 !important; /* 关键：右侧+底部间距，避免拥挤 */
  padding: 0 !important;
  vertical-align: middle !important;
}
/* 标签文字自适应宽度 + 下划线基础样式 */
.cate-tab-list li a {
  display: inline-block !important;
  padding: 8px 0 !important; /* 仅上下内边距，不撑开左右 */
  border-bottom: 2px solid transparent !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 18px !important; /* 统一文字大小，避免拥挤 */
}
/* 悬浮态：文字变红 + 等长下划线 */
.cate-tab-list li a:hover {
  color: #ff0000 !important;
  border-color: #ff0000 !important;
}
/* 激活态：文字变红 + 等长下划线 + 无背景 */
.cate-tab-list li.active a {
  color: #ff0000 !important;
  border-color: #ff0000 !important;
  background: transparent !important; /* 去掉白色背景，避免撑满 */
}
/* 首页服务案例图片容器：足够大、不裁剪、高度匹配左侧6个标签 */
.index2PicCollage {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  max-height: 580px !important; /* 足够高，匹配6个标签 */
  height: 580px !important;
  overflow: hidden !important;
}
.index2PicCollage .thumb {
  width: 100% !important;
  height: 260px !important;
  display: block !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 6px !important;
}
.index2PicCollage .thumb:hover {
  transform: scale(1.02) !important;
}

/* 左侧分类标签激活样式（保持与当前一致） */
.index2Nav .list.on .index2NavLink h5 {
  color: #ff0000 !important;
}
.index2Nav .list.on {
  border-left: 3px solid #ff0000 !important;
  background: #fef0f0 !important;
}