:root {
  --safe-left: 415px; /* 左侧安全距离 */
  --safe-right: 328px; /* 右侧安全距离 */
  --logo-menu-gap: 187px; /* LOGO与菜单间距 */
}

.main-nav {
  padding-left: var(--safe-left); /* 通过padding实现logo精准定位 */
}
.nav-right {
  padding-right: var(--safe-right); /* 右侧留白 */
}
.logo {
  margin-right: var(--logo-menu-gap); /* 保持与菜单间距 */
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

/* Header样式 */
.header {
  height: 60px;
  background: #fff; /* 按需添加背景色 */
  position: fixed;
  z-index: 1000;
  width: 100%;
}

/* 导航容器 */
.nav-container {
  height: 100%;
  max-width: 1920px; /* 根据设计图最大宽度设定 */
  margin: 0 auto;
}

/* 主导航布局 */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between; /* 三端对齐 */
}

/* LOGO容器 */
.logo {
  width: 120px;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: 39px;
  object-fit: contain;
}

/* 导航菜单 */
.nav-list {
  display: flex;
  gap: 51px; /* 菜单项间距 */
  flex-grow: 1; /* 占据剩余空间 */
  overflow-x: auto; /* 横向溢出滚动 */
  scrollbar-width: none; /* 隐藏滚动条 */
  -ms-overflow-style: none;
  height: 100%;
  align-items: center;
}
.nav-list li{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.nav-list::-webkit-scrollbar {
  display: none;
}
.nav-list a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.header-active .header-text{
  color: #127EE0;
}

/* 右侧联系区 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 53px; /* 元素间距 */
  margin-left: auto;
  flex-shrink: 0;
}

/* 电话样式 */
.tel-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fa3c72;
}
.tel-box img {
  width: 26px; /* 按实际尺寸调整 */
  height: 26px;
}

/* 登录按钮 */
.login-box a {
  display: block;
  width: 48px;
  height: 23px;
  text-align: center;
  line-height: 23px;

  border-radius: 4px;
  font-size: 12px;
  color: #0046b4;
  text-decoration: none;
  border: #0046b4 solid 1px;
}

/* 统一断点管理 */
@media (max-width: 1700px) {
  :root {
    --safe-left: 5%;
    --safe-right: 5%;
    --logo-menu-gap: 5%;
  }
  .nav-list {
    gap: 30px;
  }
}
.dropdown-container{
  display: none;
}
/* 下拉容器核心样式 */
.has-dropdown:hover > .dropdown-container {
  display: block;
  z-index: 1000;
}

/* 容器样式 */
.dropdown-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  /* padding: 24px 120px; */
}

/* 双列布局 */
.dropdown-content {
  display: flex;
}

/* 分类导航 */
.category-nav {
  background: #f4f4f4;
  width: 380px;
}
/* 水平选项卡 */
.category-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
}

.tab-item {
  font-size: 18px;
  color: #666;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-item.active {
  color: #333;
  font-weight: 500;
  border-bottom: 3px solid #1890ff;
}

.sub-category {
  display: none;
}

.sub-category.active {
  display: block;
}

.sub-item {
  padding: 12px 0;
  padding-left: 76px;
  margin: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #333333;
}

.sub-item.active,
.sub-item:hover {
  background: #fff;
}

/* 产品列表 */
.product-list {
  display: flex;
  padding: 40px 40px;
}

.product-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.product-group.active {
  display: flex;
}

.product-card {

  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 122px;
  height: 122px;
  object-fit: cover;
}
.product-name {
  text-align: center;
  font-size: 10px;
  color: #999999;
}

.product-model {
  font-size: 12px;
  color: #999999;
    text-align: center;
}

/* 新增悬停反馈样式 */
.sub-item {
  transition: background 0.2s;
  cursor: pointer;
}

.sub-item:hover {
  background: rgba(24, 144, 255, 0.1);
}

/* 优化产品切换动画 */
.product-group {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-group.active {

  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*应用领域*/
/* 设置整个div的外边距 */
.area-title-list {
  margin-left: 488px;
  margin-right: 488px;
  /* 清除默认的padding和margin，确保没有额外的空间影响布局 */
  padding: 40px 0;
  margin-top: 0; /* 根据实际情况调整 */
}

/* 确保子元素没有额外的间距或样式干扰布局 */
.area-title {
  display: inline-block; /* 让元素在同一行显示，但允许设置宽高等属性 */
  width: 22%; /* 宽度设置为略小于25%，以考虑可能存在的空白间隙 */
  box-sizing: border-box; /* 确保内边距和边框被包含在宽度和高度内 */
  vertical-align: top; /* 顶部对齐，使得所有列从同一水平线上开始 */
  margin: 0; /* 去除默认的margin */
  padding: 10px; /* 可选：如果需要在元素内部增加一些空间 */
  padding-left: 20px;

  white-space: nowrap; /* 防止文本换行 */
  overflow: hidden; /* 超出宽度的部分隐藏 */
  text-overflow: ellipsis; /* 超出宽度时显示省略号 */
  font-size: 14px;
  color: #333333;
}

.area-title:hover{
  color: #127EE0;
  background: #F5F5F5;
}
.area-title:hover a{
  color: #127EE0;
}




.footer {
  width: 100%;
  background: #fff;
  color: #333;
  font-size: 14px;
  position: absolute;
  bottom: 0;
  left: 0;

}

/* 上部分容器 */
.footer-top {
  padding: 40px 0;
  border-bottom: 1px solid #e9eaed;
}

.footer-container {
  width: 1348px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;

}

/* 左侧LOGO区域 */
.footer-left {
  width: 360px;
}

.footer-logo {
  width: 360px;
  height: 113px;
  object-fit: contain;
}

.footer-desc {
  font-weight: bold;
  font-size: 27px;
  color: #127EE0;
}

.footer-line {
  width: 1px;
  height: 202px;
  background: #e9eaed;
  margin-left: 30px;
  margin-right: 50px;
}

/* 中间导航 */
.footer-nav {
  margin-left: 50px;
}



.footer .nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer .nav-list li {
  margin-bottom: 12px;
}

.footer .nav-list a {
  font-weight: bold;
  font-size: 22px;
  color: #666666;
  transition: color 0.3s;
}

.footer .nav-list a:hover {
  color: #00a0e9;
}

/* 右侧区域 */
.footer-right {
  /* width: 380px; */
}

.qrcode-group {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.qrcode-item img {
  width: 102px;
  height: 102px;
}

.qrcode-item p {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
}

/* 客服区域 */
.customer-service {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.service-info {
  line-height: 1.5;
}

.footer .hotline {
  color: #a0a3a8;
  font-size: 12px;
}

.footer .phone {
  font-size: 18px;
  font-weight: bold;
}

/* 底部备案信息 */
.footer-bottom {
  padding: 20px 0;
}

.icp-info {
  text-align: center;
  color: #a0a3a8;
  font-size: 12px;
  line-height: 1.8;
}
