/**
 * 导航栏组件样式文件
 * 包含桌面端和移动端的所有导航相关样式
 * 遵循BEM命名规范和模块化设计原则
 */

/* ==========================================================================
   基础导航样式 (Base Navbar Styles)
   ========================================================================== */
.container{
  padding-left: 0;
  padding-right: 0;
}
/**
 * 页面顶部蓝色装饰条
 * 用于页面顶部的品牌色装饰
 */
.navbar__top-strip {
  width: 100%;
  height: 6px;
  background-color: #055eae;
}

/**
 * 导航栏基础样式
 * 移除默认的底部边距
 */
.navbar {
  margin-bottom: 0;
}

/**
 * 导航栏包装器
 * 用于定位和布局控制
 */
.navbar-wrapper {
  /* 可根据需要添加定位样式 */
}

.navbar-wrapper .navbar {
  padding-right: 0;
  padding-left: 0;
  height: 80px;
}

/* ==========================================================================
   品牌标识样式 (Brand Logo Styles)
   ========================================================================== */

/**
 * 导航栏品牌标识
 * 包含公司logo的显示样式
 */
.navbar__brand {
  float: left;
  width: 195px;
  height: 30px;
  margin: 32px 0 32px 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  background-image: url("../../image/logo.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.navbar > .container .navbar__brand {
  margin-left: 0;
}

/* Bootstrap兼容性 */
.navbar-brand {
  float: left;
  width: 195px;
  height: 30px;
  margin: 25px 0 25px 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
  background-image: url("../../image/logo.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.navbar > .container .navbar-brand {
  margin-left: 0;
}

/* ==========================================================================
   导航菜单样式 (Navigation Menu Styles)
   ========================================================================== */

/**
 * 导航菜单容器
 * 右侧对齐的导航菜单
 */
.navbar__nav {
  float: right;
  margin: 37px 0 37px 0;
}

.navbar__nav > li > a {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  font-family: 'Microsoft YaHei';
}

/* Bootstrap兼容性 */
.navbar-nav {
  float: right;
  margin: 30px 0 30px 0;
}

.navbar-nav > li > a {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  font-family: 'Microsoft YaHei';
}

/* ==========================================================================
   当前页面高亮样式 (Active Page Highlight Styles)
   ========================================================================== */

/**
 * 导航项下划线效果
 * 用于当前页面的视觉指示
 */
.nav li span {
  position: absolute;
  top: 27px;
  bottom: 0;
  left: 50%;  
  height: 3px;
  width: 0;  
  display: block;
  background: url(../../image/underline.png) bottom no-repeat;
  transition: 0.8s;
}

/* ==========================================================================
   主题样式 (Theme Styles)
   ========================================================================== */

/**
 * 反色主题导航栏
 * 白色背景的导航栏样式
 */
.navbar--inverse {
  background-color: #fff;
  border-color: #fff;
}

/* Bootstrap兼容性 */
.navbar-inverse {
  background-color: #fff;
  border-color: #fff;
}

/**
 * 当前页面导航项样式
 */
.navbar--inverse .navbar__nav > .active > a,
.navbar-inverse .navbar-nav > .active > a {
  color: #005bad;
  background-color: transparent;
}

.navbar--inverse .navbar__nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:hover {
  color: #005bad;
  background-color: transparent;
}

/**
 * 非当前页面导航项样式
 */
.navbar--inverse .navbar__nav > li > a,
.navbar-inverse .navbar-nav > li > a {
  color: #333;
  background-color: transparent;
}

.navbar--inverse .navbar__nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:hover {
  color: #005bad;
  background-color: transparent;
}

/* ==========================================================================
   容器布局样式 (Container Layout Styles)
   ========================================================================== */

/**
 * 导航栏容器样式
 * 移除默认内边距
 */
.navbar-wrapper > .container {
  padding-right: 0;
  padding-left: 0;
}

.navbar-wrapper .navbar .container {
  width: auto;
}

/* ==========================================================================
   响应式布局 - 大屏幕 (Responsive Layout - Large Screens)
   ========================================================================== */

/**
 * 超大屏幕 (1920px+)
 * 固定容器宽度和最大最小宽度限制
 */
@media (min-width: 1920px) {
  .navbar-wrapper .container {
    width: 63.059%;
    max-width: 1200px;
    min-width: 960px;
  }
}

/**
 * 大屏幕 (1366px - 1919px)
 * 固定容器宽度和最大最小宽度限制
 */
@media screen and (min-width: 1366px) and (max-width: 1919px) {
  .navbar-wrapper .container {
    width: 63.059%;
    max-width: 1200px;
    min-width: 960px;
  }
}

/**
 * 中等屏幕 (768px - 1366px)
 * 固定容器宽度和最大最小宽度限制
 */
@media screen and (min-width: 768px) and (max-width: 1366px) {
  .navbar-wrapper {
    min-width: 960px;
  }
  
  .navbar-wrapper .container {
    width: 63.059%;
    max-width: 1200px;
    min-width: 960px;
  }
}

/* ==========================================================================
   移动端样式 (Mobile Styles)
   ========================================================================== */

/**
 * 移动端隐藏元素
 * 默认隐藏移动端导航
 */
.navbar__mobile-nav {
  display: none;
}

/* Bootstrap兼容性 */
.navhide {
  display: none;
}

/**
 * 移动端响应式样式 (768px以下)
 */
@media (max-width: 768px) {
  /**
   * 隐藏桌面端导航
   */
  #navbar {
    display: none;
  }
  /*手机端一直悬浮在顶部*/
  body{
    padding-top: 1.76rem  /* 132/75 */;
  }
  #navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
  }
  /**
   * 导航栏容器调整
   */
  .container > .navbar-header {
    margin-left: 0;
    margin-right: 0;
  }
  

  /**
   * 移动端菜单切换按钮
   */
  .navbar__toggle, .navbar-toggle {
    background-image: url(../../image/nav.png);
    width: 40px;
    height: 30px;
    border: 0px;
    border-radius: 0px;
    top: 51px;
    right: 5px;
    transform: translate(0, -50%);
  }
  
  .navbar__toggle.collapsed:hover,
  .navbar-toggle.collapsed:hover {
    background-color: #fff;
  }
  
  /**
   * 移动端导航菜单
   * 侧边滑出式导航
   */
  .navbar__mobile-nav,
  .navhide {
    position: fixed;
    height: 100%;
    width: 65%;
    background: #2e2e2e;
    top: 0px;
    z-index: 1000;
    right: -65%;
    transition: all 0.4s;
    display: block;
  }
  
  /**
   * 移动端导航菜单列表
   */
  .navbar__mobile-nav > ul,
  .navhide > ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  /**
   * 移动端导航菜单项
   */
  .navbar__mobile-nav > ul > li,
  .navhide > ul > li {
    height: 1.067rem  /* 80/75 */;
    background: #2e2e2e;
    line-height: 1.067rem  /* 80/75 */;
    color: #fff;
    font-family: "苹方";
    border-bottom: 2px solid #444;
    font-size: 0.427rem  /* 32/75 */;
    text-align: center;
    position: relative;
    cursor: pointer;
  }
  
  .navbar__mobile-nav > ul > li:last-child,
  .navhide > ul > li:last-child {
    border-bottom: 0px;
  }
  
  /**
   * 移动端导航链接
   */
  .navbar__mobile-nav > ul > li > a,
  .navhide > ul > li > a {
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    display: block;
  }
  
  /**
   * 移动端导航图标
   */
  .navbar__mobile-nav > ul > li > span,
  .navhide > ul > li > span {
    position: absolute;
    /*top: 50%;*/
    /*right: 5%;*/
    /*transform: translate(-50%, -50%);*/
    transform: translate(0%, 0%);
    top: 0;
    right: 0;
    height: 100%;
    width: 1.707rem  /* 128/75 */;
    padding-top:0.267rem  /* 20/75 */;
  }
  .glyphicon-menu-down:before {
    width: 0.533rem;
    height: 0.533rem;
    display: inline-block;
  }

  .navbar__mobile-nav > ul > li > span:nth-of-type(2),
  .navhide > ul > li > span:nth-of-type(2) {
    display: none;
  }
  
  /**
   * 移动端子菜单样式
   */
  .navbar__submenu--company,
  .navbar__submenu--news,
  .navbar__submenu--solution,
  .comf,
  .newnavs,
  .sous {
    font-size: 0.373rem  /* 28/75 */ !important;
    height: 1.04rem  /* 78/75 */ !important;
    background: #3b3b3b !important;
    display: none;
  }
  
  .navbar__submenu--company > a,
  .navbar__submenu--news > a,
  .navbar__submenu--solution > a,
  .comf > a,
  .newnavs > a,
  .sous > a {
    color: #999999 !important;
    cursor: pointer;
    display: block;
  }
  
  /**
   * 隐藏顶部蓝色装饰条
   */
  .navbar__top-strip,
  .apical-blue-strip {
    display: none;
  }


  .navbar-wrapper .navbar .container {
    padding: 0 0.32rem  /* 24/75 */;
  }
  .navbar__toggle, .navbar-toggle {
    right: 0;
    margin: 0;
    padding: 0;
    width: 0.853rem  /* 64/75 */;
    height: 0.853rem  /* 64/75 */;
    top: 0.453rem  /* 34/75 */;
    transform: translate(0, 0);
    background-size: 100% 100%;
  }
  .navbar__brand, .navbar-brand {
    width: 3.52rem  /* 264/75 */;
    height: 0.533rem  /* 40/75 */;
    margin: 0.613rem  /* 46/75 */ 0 0.613rem  /* 46/75 */ 0  /* 0/75 */ !important;
  }
  .navbar-wrapper .navbar {
    height: 1.76rem  /* 132/75 */;
    box-shadow: 0 0.107rem  /* 8/75 */ 0.107rem  /* 8/75 */ 0 rgba(0, 0, 0, 0.15);
  }
}

/**
 * 小屏幕设备优化 (375px以下)
 */
@media (max-width: 375px) {
  .navbar__mobile-nav > ul > li > span,
  .navhide > ul > li > span {
    position: absolute;
    top: 50%;
    right: -1%;
    transform: translate(-50%, -50%);
  }




}

/**
 * 超小屏幕设备优化 (320px以下)
 */
@media (max-width: 320px) {
  .navbar__mobile-nav > ul > li > span,
  .navhide > ul > li > span {
    position: absolute;
    top: 50%;
    right: -6%;
    transform: translate(-50%, -50%);
  }
}

/* ==========================================================================
   工具类 (Utility Classes)
   ========================================================================== */

/**
 * 显示移动端导航
 * 通过JavaScript控制显示/隐藏
 */
.navbar__mobile-nav--visible,
.navhide--visible {
  right: 0 !important;
}

/**
 * 隐藏移动端导航
 * 默认隐藏状态
 */
.navbar__mobile-nav--hidden,
.navhide--hidden {
  right: -65% !important;
}