::-webkit-scrollbar {
  width: 6px;     
  height: 6px;     
}
::-webkit-scrollbar-track {
  background: transparent;  
}
::-webkit-scrollbar-thumb {
  background-color: red; 
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-thumb {
    background-color: rgba(180, 180, 180, 0.35);
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(200, 200, 200, 0.55);
  }
}
body {
  font-family: 'Inter', system-ui, sans-serif;
}

.header-shadow {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.02),
    0 2px 6px rgba(0, 20, 40, 0.04);
  border-bottom: 1px solid #edf0f5;
}

.xcmg-logo {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1.5px;
  background: linear-gradient(145deg, #b11d21 0%, #d52b1e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 5px rgba(190, 30, 30, 0.1);
}

.nav-link {
  font-size: 16px;
  font-weight: 520;
  color: #1a2639;
  padding: 11px 0;
  border-bottom: 3px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  color: #0a5d9e;
  border-bottom-color: #facc15;
}

.header-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 70px;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-left: 0;
}

/* ============= 关键修复：使用包裹容器 ============= */
.menu-wrapper {
  position: relative;
}

/* 创建从导航到底部菜单的完整热区 */
.menu-wrapper::before {
  content: '';
  position: absolute;
  top: 42px; /* 从导航底部开始 */
  left: -58px; /* 向左扩展热区 */
  right: -50px; /* 向右扩展热区 */
  bottom: -400px; /* 向下覆盖整个菜单区域 */
  background: transparent;
  pointer-events: none; /* 默认不捕获事件 */
  z-index: 98;
}

/* 当悬停在导航或菜单上时，激活热区 */
.menu-wrapper:hover::before {
  pointer-events: auto; /* 捕获事件，形成连续区域 */
}

/* 菜单容器 - 提高z-index */
.megaMenu,
.sceneMenu {
  position: absolute;
  background: white;
  border-radius: 0 0 24px 24px;
  box-shadow:
    0 30px 50px -20px rgba(0, 20, 40, 0.3),
    0 10px 20px -5px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  pointer-events: none;
  border-top: 1px solid #f1f4f9;
  z-index: 100;
  top: 70px;
}

/* 产品菜单 */
.megaMenu {
  top: 50px;
  left: -92px;
  width: 1300px;
  max-width: 91vw;
  padding: 28px 36px 36px 36px;
}

/* 场景菜单 */
.sceneMenu {
  left: -211px;
  width: 1385px;
  top: 50px;
  max-width: 80vw;
  padding: 28px 36px 36px 36px;
}

/* 显示状态 */
.menu-wrapper:hover .megaMenu,
.menu-wrapper:hover .sceneMenu,
.megaMenu:hover,
.sceneMenu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 原有样式保持不变 */
.category-panel {
  width: 232px;
  border-right: 1px solid #eaeef4;
  padding-right: 24px;
  margin-right: 8px;
  position: relative;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px 16px;
}

.cat-item {
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 300;
  color: #2f3a4b;
  transition: all 0.15s;
  cursor: pointer;
  background-color: transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

.cat-item:hover {
  background-color: #f0f4fa;
  border-color: #e0e6ee;
  color: #1f2a3f;
}

.cat-item.active-cat {
  background-color: #f0f4fa;
  border-color: #e0e6ee;
  font-weight: 620;
  color: #0b1b33;
}

.active-line {
  position: absolute;
  right: -3px;
  width: 4px;
  height: 28px;
  background: #f5b324;
  border-radius: 4px 0 0 4px;
  transition: top 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(245, 180, 36, 0.3));
}

.product-panel {
  flex: 1;
  padding-left: 30px;
  min-height: 340px;
}

.productGroup {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pa{
   grid-template-columns: repeat(1, 1fr);
}

.productGroup.show-group {
  display: grid;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 18px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  cursor: pointer;
  flex-flow: wrap;
}

.product-card:hover {
  border-color: #f5b32440;
  box-shadow:
    0 12px 22px -12px rgba(0, 30, 60, 0.2),
    0 4px 8px rgba(245, 180, 36, 0.08);
  transform: translateY(-3px);
  background: #fdfdfd;
}

.product-card img {
  /* width: 70px; */
  /* height: 52px; */
  border-radius: 10px;
  /* object-fit: cover; */
  /* background: #f2f5f9; */
  /* border: 1px solid #eef2f8; */
}

.product-card span {
  font-size: 15.5px;
  font-weight: 520;
  color: #1e293b;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
}

.scene-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e7ecf3;
  border-radius: 18px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
  cursor: default;
}

.scene-card:hover {
  border-color: #f5b32470;
  box-shadow: 0 12px 22px -12px rgba(0, 30, 60, 0.15);
  transform: translateY(-3px);
  background: #fefefe;
}

.scene-card i {
  font-size: 32px;
  color: #b11d21;
  width: 44px;
  text-align: center;
  opacity: 0.9;
}

.scene-card .scene-text {
  font-weight: 600;
  font-size: 16px;
  color: #1e293b;
}

.scene-card .scene-desc {
  font-size: 12.5px;
  color: #6b7a8f;
  margin-top: 2px;
}

/* 首页链接样式统一 */
.home-link {
  font-size: 15.5px;
  font-weight: 520;
  color: #1a2639;
  padding: 24px 0;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.home-link:hover {
  color: #0a5d9e;
  border-bottom-color: #facc15;
}
/*  */
.header-phone{align-items: center;background: linear-gradient(33deg, red, #f3af49);padding: 2px 12px;border-radius: 16px;color: white;line-height: 42px;display: flex;}
.header-phone h4{ font-family: "DIN-BOLD"; font-size: 22px; letter-spacing:0.5px;}
.header-phone span{display: inline-block;font-family: cursive;font-size: 22px;color: #341d17;color: white;}
.header.on .header-search{ height:86px;}
.header-search{float:right;position: relative;  height:100px; text-align:center; margin-right:20px; }
/*  */
.con{
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}
/*  */
.t{
  font-family:fantasy;
  font-weight: 200;
  line-height: inherit;
  letter-spacing: 0px;
}
.cp_con{
    padding-bottom: 12px;
    font-family: 'Roboto Condensed';
}
.cp_con p>a{
  color: red; 
}
.cp_con img{margin: 12px auto;}
.cp_con h3{
  font-size:22px;
  color:red;
}
.cp_con h2{
  font-size:30px;
  color:orange;
  font-weight: 500;
  font-family: 'Roboto Condensed';
}
.cp_con p{line-height: 28px;font-size: 15px;}
/*  */
.cpht{
  background: linear-gradient(45deg, #2c449a, #f43b08);
  border-radius: 20px;
}
/*  */
.cp_con table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-weight: 300;
}
.cp_con th,.cp_con td {
  padding: 10px;
  border: 1px solid #ddd;
  width: 50%;
}
.cp_con th {
  background-color:#f0f7ff;
  font-weight: 500;
  text-align: center;
}
.bigimg{
  margin: 0 auto;
  display: block;
}
/*  */

.cpcan{
  margin-top: 20px;
  /*! margin: 0 auto; */
  font-family: 'Roboto Condensed';
  margin-bottom: 16px;
  font-size: 13px;
}
.one{
border: 1px solid #d0d6e3 !important;
}
.cpcan ul{}
.cpcan ul li{background: #f7faff;display: flex;align-items: center;justify-content: space-around;border: 1px solid #d0d6e3;line-height: 40px;border-top: none;}
.cpcan ul li>.left{width: 50%;border-right: 1px solid #ede2e2;text-align: left;margin: 0 0 0 2%;}
.cpcan ul li>.right{width: 50% !important;!i;!;margin: 0 0 0 2%;}
.cpcan ul li:first-child{border-top: 1px solid #d0d6e3 !important;}
.cpcan   .cpt{
  background: yellow !important;
}
.cpdetail .t2{
border-bottom:4px solid #dfdfdf;
text-align: center;
font-size: 30px;
width: fit-content;
padding: 8px 10px;
}
.cpcan ul li:nth-child(2n) {background-color: #f2f2f2;}
/*  */
.h_bott { background:#fff; border-bottom:1px solid #ececec;}
 .header .h_top{ border-bottom:1px solid #ececec; background:#fff;}
.header .h_top .wrap{display:flex; justify-content:space-between;}
.h_top .h_logo{height: 100px;display: flex;align-items: center;}
.h_top .h_logo img{height: 64px;max-width:none;vertical-align:text-bottom;}
.h_top .h_logo span{display:inline-block;position:relative;vertical-align:text-bottom;font-size: 16px;color:#333;line-height: 23px;padding-left: 12px;margin-left: 12px;}
.h_top .h_logo span::before{content:"";position:absolute;left:0;top: 5%;height: 27px;width:1px;background:#e8e8e8;}
.h_top .h_find{display:flex;align-items: center;justify-content: space-around;}
/*  */
.boxbtn{
  
font-family: fantasy;
  
color: #131010;
}
/*  */
/*  */
footer{
    display: block;
    position: relative;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 11;
    }
.foot{
    width: auto;
    margin: 0;
    padding: 2% 8%;
}
.foot ul li{
    text-align: center;
    width: 16%;
}
.foot ul li img{
    width: 30px;
    height: 30px;
    margin: 0 auto;
}
.foot ul li p{
    font-size: 12px;
    color: #555;
    line-height: 20px;
    margin-top: 6px;
}
.foot .max img{
    width: 67px;
    margin-top: -11px;
    height: auto;
}
.foot .max p{
    margin-top: 6px;
}
.foot ul{
    display: flex;
    justify-content: space-around;
}
/*  */

.max{
          width: 60px;
        height: 60px;
        position: relative;
        padding: 5px;
        box-sizing: border-box
}
.max{margin-top:-25px;cursor:pointer;padding:6px 1% 7px;background: white;border-radius: 52%;}
/*  */
/*  */
.fc{
  color: #1b1b1b;
  font-family: Impact;
}
.boxa{
line-height: 33px;
font-weight: 300;
}
/*  */
  .card-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform, box-shadow;
        }
 .card-hover:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }