/* 导航栏相关样式 */

/* 导航栏容器 */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  box-shadow:0 2px 4px 0 rgba(0,0,0,0.1);
}

/* 导航栏内的容器 */
.navbar .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
}

/* Container 响应式 */
@media (min-width: 768px) {
  .navbar .container {
    width: 750px;
  }
  .navbar .container{
    padding:0;
  }
}

@media (min-width: 992px) {
  .navbar .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .navbar .container {
    width: 1170px;
  }
}

/* 导航栏内的行 */
.navbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo 样式 */
.navbar-header {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-brand {
  display: inline-block;
  padding: 0;
  line-height: 68px;
}

/* 导航栏内的 Logo */
.navbar .tab-logo {
  /* width: 160px; */
  /* height: 40px; */
  height:34px;
  display: block;
}

/* 导航菜单 */
.navbar-nav {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
  margin-left: auto;
}

.navbar-nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  padding: 0 20px;
  display: block;
  transition: color 0.3s ease;
  white-space: nowrap;
  height: 68px;
  line-height: 68px;
}

.navbar-nav a:hover {
  color: #357ad5;
}

/* 获取报价按钮 */
.nav-qr-wrapper {
  position: relative;
}

.nav-but {
  background: #357ad5;
  color: #fff !important;
  border-radius: 4px;
  margin-left: 20px;
  height: 34px !important;
  line-height: 34px !important;
  display: inline-block;
}

.nav-but:hover {
  background: #357ad5;
  color: #fff !important;
}

/* 导航栏中的二维码气泡 */
.nav-qr-wrapper .qr-bubble {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

/* 鼠标移入二维码组件时保持显示 */
.nav-qr-wrapper:hover .qr-bubble,
.nav-qr-wrapper .qr-bubble:hover {
  opacity: 1;
  visibility: visible;
}

/* Mega Menu 样式 */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 40px 0;
}

.nav-menu .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .nav-menu .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .nav-menu .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .nav-menu .container {
    width: 1170px;
  }
}

.menu-card {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.menu-card li {
  width: 25%;
  flex: 0 0 25%;
}

.menu-card .card {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.menu-card .card:hover {
  background: #eef5ff;
  /* transform: translateY(-5px); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.menu-card .card:hover p{
  text-decoration: underline;
}

.menu-card .card:hover span{
  text-decoration: underline;
}

.menu-card .card-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: block;
}

.menu-card .card p {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #333;
}

.menu-card .card span {
  display: block;
  font-size: 12px;
  color: #666;
}

.menu-card .txt-p2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* 桌面端：大于620px时显示导航菜单，隐藏移动端菜单 */
@media (min-width: 621px) {
  .navbar-nav {
    display: flex;
  }
  
  .navbar-toggle {
    display: none !important;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .nav-menu {
    display: block;
  }
}

/* 移动端：小于等于620px时隐藏导航菜单，显示移动端菜单 */
@media (max-width: 620px) {
  .navbar-nav {
    display: none;
  }
  
  .nav-menu {
    display: none !important;
  }
}

/* 汉堡菜单按钮 */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 9px 10px;
  margin-right: 15px;
  margin-top: 8px;
  margin-bottom: 8px;
  flex-direction: column;
  justify-content: space-around;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.navbar-toggle:hover {
  background:#ddd;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #888;
  border-radius: 1px;
  transition: all 0.3s ease;
  margin-top:4px;
}
.icon-bar:first-child {
  margin-top:0;
}

/* 去除汉堡菜单的动画 */
/* .navbar-toggle.active .icon-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .icon-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .icon-bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
} */

/* 移动端菜单 */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
  max-height: 1000px;
  transition: max-height 0.3s ease-in;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding:8px 15px;
}

/* .mobile-menu-list > li {
  border-bottom: 1px solid #f0f0f0;
} */

.mobile-menu-list > li:last-child {
  border-bottom: none;
}

.mobile-menu-list a {
  display: block;
  /* padding: 15px 20px; */
  padding:7px 16px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

/* .mobile-menu-list a:hover {
  background-color: #f5f5f5;
} */

.mobile-menu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-item-has-children.active .mobile-menu-toggle::after {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-submenu.active {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.mobile-menu-item-has-children.active{
  background-color: #f5f5f5;
}
/* .mobile-submenu li {
  border-bottom: 1px solid #e8e8e8;
} */

.mobile-submenu li:last-child {
  border-bottom: none;
}

.mobile-submenu a {
  /* padding: 12px 20px 12px 40px; */
  padding:12px 16px 12px 40px;
  font-size: 14px;
  color: #777;
}

.mobile-submenu a:hover {
  /* background-color: #eef5ff;
  color: #357ad5; */
  color:#333;
}

/* 移动端响应式 */
@media (max-width: 620px) {
  .navbar-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
}

@media only screen and (max-width: 468px){
  /* 修改logo尺寸，界面更美观 */
  .navbar .tab-logo{
    width:120px;
    height:35px;
  }
}