:root {
  --primary: #424ad2;
  --accent: rgba(66, 74, 210,0.8);
  --text-color: #555;
  --text-dark: #222;
  --text-white: #fff;
  --shadow: 0 4px 10px rgba(0,0,0,0.08);
  --border-gray: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  padding-top: 0;
}

button{
  font-family: "Montserrat", sans-serif;
}

body p{
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}
/* sticky 固定头部：header容器100%屏幕宽，背景铺满 */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.site-header.sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* 公共内容容器：最大1400px，居中，左右预留边距 */
.section-content{
  max-width: 1400px;
  margin: 0 auto;

  width: 100%;
}
/* Top Bar - 第一层 背景铺满全屏 */
.header-top {
  width: 100%;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 10px 0;
}
.header-top__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top__left {
  display: flex;
  gap: 24px;
}
.header-top__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.header-top__item a {
  color: var(--text-white);
  text-decoration: none;
}
.header-top__social {
  display: flex;
  gap: 16px;
}
.header-top__social a {
  color: var(--text-white);
  font-size: 16px;
  transition: color 0.2s;
}
.header-top__social a:hover {
  color: var(--accent);
}
/* Main Nav Bar - 第二层 */
.header-main {
  width: 100%;
  background-color: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-gray);
}
.header-main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 48px;
  object-fit: contain;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-menu > li {
  position: relative;
}
.nav-menu a {
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.nav-toggle.active{
  color: var(--primary);
}
.nav-menu a.active{
  color: var(--primary);
}

.nav-menu a.active i{
  color: var(--primary);
}


.nav-menu a i {
  font-size: 12px;
}
.nav-menu a:hover {
  color: var(--primary);
}
/* 下拉通用样式 - 桌面hover触发 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: var(--shadow);
  /*border: 1px solid var(--border-gray);*/
  /*border-radius: 4px;*/
  padding: 12px 0;
  display: none;
  border-top: 4px solid var(--primary);
}



.nav-parent:hover .nav-dropdown {
  display: block;
}
/* 箭头旋转 */
.nav-parent .chevron {
  transition: transform 0.25s ease;
}
.nav-parent:hover .chevron {
  transform: rotate(180deg);
}
.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--text-dark) !important;
  text-transform: none;
}

.nav-dropdown.nav-dropdown-mobile a{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-dropdown a:hover {
  background-color: #f7f8fa;
  color: var(--primary);
}
.nav-dropdown a.active {
  color: var(--primary) !important;
  font-weight: 600;
}
.dropdown-title {
  padding: 8px 18px;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.divider-line {
  margin: 6px 0;
  border-bottom: 1px solid #eee;
}
/* Request A Quote 询盘按钮 */
.quote-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
  white-space: nowrap;
}
.quote-btn:hover {
  background-color: var(--accent);
}
/* ========== 多语言下拉 ========== */
.lang-select {
  position: relative;
}
.lang-select button {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.lang-select button:hover {
  border-color: var(--primary);
  background-color: #f9fafb;
  box-shadow: 0 2px 6px rgba(66, 74, 210, 0.1);
  transform: translateY(-1px);
}
.lang-select .flag-icon {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lang-select .lang-text {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 0;
  padding: 6px 0;
  min-width: 180px;
  display: none;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
  z-index: 1000;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 使用伪元素填补按钮和下拉框之间的间隙 */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}
/* Hover trigger - show dropdown on hover (desktop only) */
@media (min-width: 787px) {
  .lang-select:hover .lang-dropdown {
    display: block;
  }
}
/* Click trigger for mobile */
.lang-dropdown.active {
  display: block;
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
}
.lang-dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}
.lang-dropdown a:hover::before {
  transform: scaleY(1);
}
.lang-dropdown a:hover {
  background: linear-gradient(90deg, #f0f2ff 0%, #f9fafb 100%);
  color: var(--primary);
  padding-left: 20px;
}
.lang-dropdown a:hover .flag-icon {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.lang-dropdown a:active {
  background: linear-gradient(90deg, #e8ebff 0%, #f0f2f5 100%);
}
/* ========== 移动端汉堡菜单｜从右向左划出 ========== */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}
/* 遮罩层 */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
          opacity 0.3s ease,
          visibility 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* 侧边菜单容器 - 右侧滑出，宽度50% */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  /*max-width: 400px;*/
  min-width: 280px;
  background: #fff;
  z-index: 9999;
  padding: 60px 20px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.active {
  transform: translateX(0);
}
.mobile-nav .nav-menu {
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.mobile-nav .nav-menu li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav .nav-menu > li > a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: var(--text-dark);
}
.mobile-nav .nav-menu a.active {
  color: var(--primary);
  font-weight: 500;
}
.mobile-nav .nav-dropdown {
  position: static;
  box-shadow: none;
  border: none;
  padding: 0 0 12px 5px;
  min-width: auto;
  display: none;
  background: #f9f9f9;
}
.mobile-nav .nav-dropdown.active {
  display: block;
}



/* 关闭按钮 */
.mobile-nav-close {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}
/* ========== 响应式断点 ========== */
/* 1024px */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-menu a {
    font-size: 16px;
  }
  .quote-btn {
    padding: 8px 14px;
  }
}
/* 996px */
@media (max-width: 996px) {
  .header-top__inner{
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .header-top__left {
    justify-content: center;
  }
  .nav-wrap {
    gap: 14px;
  }
}
/* 786px */
@media (max-width: 786px) {
  .nav-wrap {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-top__left {
    flex-wrap: wrap;
    gap: 12px;
  }
}
/* 480px */
@media (max-width: 480px) {
  .header-top__left {
    flex-direction: column;
    gap: 6px;
  }
  .header-top {
    padding: 8px 0;
  }
  .section-content{
    padding:0 3%;
  }
  .logo img {
    height: 36px;
  }
  .mobile-nav {
    min-width: 240px;
  }
}

/* ========== Mega Menu Styles (Products导航) ========== */
.nav-parent-mega:hover .nav-mega-menu {
  display: block;
}

.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 320px;
  max-width: 1200px;
  box-shadow: var(--shadow);
  padding: 30px 20px;
  display: none;
  border-top: 4px solid var(--primary);
  z-index: 1000;
}

.mega-menu-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
}

.mega-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-title a {
  color: var(--primary) !important;
  font-size: 16px !important;
  /*text-transform: uppercase !important;*/
  font-weight: 600 !important;
}

.mega-menu-title a:hover {
  color: var(--accent) !important;
}

.mega-menu-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-menu-section {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 给有子菜单的section添加padding-right，为子菜单弹出留空间 */
.mega-has-submenu {
  padding-right: 0;
}

.mega-section-title {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--text-dark) !important;
  padding: 8px 12px !important;
  text-transform: none !important;
  transition: all 0.2s ease;
  border-radius: 4px;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
}

.mega-section-title:hover {
  color: var(--primary) !important;
  background-color: #f7f8fa;
}

.mega-section-title i {
  font-size: 10px;
  color: #999;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.mega-section-title:hover i {
  color: var(--primary);
  transform: translateX(2px);
}

/* 子链接容器 - 从右侧弹出，使用伪元素填补间隙 */
.mega-section-links {
  position: absolute;
  left: calc(100% - 5px);
  top: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  background-color: #fff;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow);
  border-radius: 4px;
  padding: 12px 0;
  min-width: 350px;
  z-index: 1001;
}

/* 使用before伪元素创建透明的桥接区域 */
.mega-section-links::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  width: 15px;
  height: 100%;
  background: transparent;
}

/* 保持子菜单显示：当鼠标在父元素或子菜单上时 */
.mega-has-submenu:hover .mega-section-links,
.mega-section-links:hover {
  display: flex;
}

.mega-section-links a {
  font-size: 13px !important;
  color: #666 !important;
  padding: 8px 18px !important;
  text-transform: none !important;
  font-weight: 400 !important;
  line-height: 1.4;
  transition: all 0.2s ease;
  white-space: normal;
}

.mega-section-links a:hover {
  color: var(--primary) !important;
  background-color: #f7f8fa;
  padding-left: 22px !important;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .nav-mega-menu {
    min-width: 320px;
  }
  .mega-menu-container {
    gap: 30px;
  }
  .mega-section-links {
    min-width: 320px;
  }
}

@media (max-width: 1024px) {
  .nav-mega-menu {
    position: static;
    transform: none;
    min-width: auto;
    max-width: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: #f9f9f9;
  }

  .mega-menu-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .mega-menu-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  /* 移动端：子链接显示在下方而不是右侧 */
  .mega-section-links {
    position: static;
    display: none;
    margin-left: 0;
    margin-top: 8px;
    padding: 8px 0 8px 20px;
    box-shadow: none;
    border: none;
    background-color: #fafbfc;
  }

  .mega-section-links::before {
    display: none;
  }

  .mega-has-submenu:hover .mega-section-links {
    display: flex;
  }
}

/* ========== Cascade Dropdown Menu Styles (多级hover触发) ========== */
/* 级联导航容器 */
.nav-dropdown-cascade {
  min-width: 280px;
  max-width: 380px;
  padding: 8px 0;
}

.nav-parent-cascade:hover .nav-dropdown-cascade {
  display: block;
}

/* 二级导航项容器 */
.nav-cascade-item {
  position: relative;
}

/* 二级导航标题 */
.nav-cascade-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  font-size: 15px !important;
  padding: 10px 18px !important;
  text-transform: none !important;
  background-color: transparent !important;
  border: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.nav-cascade-title i {
  font-size: 12px;
  color: #999;
  transition: all 0.25s ease;
}

.nav-cascade-title:hover {
  background-color: #f7f8fa !important;
  color: var(--primary) !important;
}

.nav-cascade-title.active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.nav-cascade-title:hover i {
  color: var(--primary);
  transform: translateX(3px);
}

/* 三级子菜单容器 - 默认隐藏，hover二级标题时显示在右侧 */
.nav-cascade-sub {
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  min-width: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.nav-cascade-item:hover > .nav-cascade-sub {
  display: block;
}

/* 嵌套的 nav-cascade-item (支持无限级嵌套) */
.nav-cascade-sub .nav-cascade-item {
  position: relative;
}

.nav-cascade-sub .nav-cascade-item .nav-cascade-title {
  font-size: 14px !important;
  padding: 10px 18px !important;
  font-weight: 500 !important;
}

.nav-cascade-sub .nav-cascade-item .nav-cascade-sub {
  left: 100%;
  top: 0;
  min-width: 300px;
}

/* 三级子菜单链接 (不含 nav-cascade-item 的直接链接) */
.nav-cascade-sub > a:not(.nav-cascade-title) {
  display: block !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  color: #555 !important;
  font-weight: 400 !important;
  text-transform: none !important;
  transition: all 0.2s ease;
  white-space: normal;
  line-height: 1.4;
}

.nav-cascade-sub > a:not(.nav-cascade-title):hover {
  background-color: #f7f8fa;
  color: var(--primary) !important;
  padding-left: 22px !important;
}

.nav-cascade-sub > a:not(.nav-cascade-title).active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* 嵌套子菜单中的链接 */
.nav-cascade-sub .nav-cascade-sub a:not(.nav-cascade-title) {
  font-size: 13px !important;
  padding: 9px 18px !important;
}

/* 移动端 Section Styles */
.nav-dropdown-section-mobile {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.nav-dropdown-title-mobile {
  display: block !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  font-size: 15px !important;
  padding: 10px 8px !important;
  margin-bottom: 5px;
  text-transform: none !important;
  background-color: #eff3f8;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-dropdown-sub-mobile {
  display: block !important;
  font-size: 14px !important;
  padding: 8px 18px 8px 15px !important;
  color: #555 !important;
  font-weight: 400 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-dropdown-sub-mobile:hover {
  background-color: #f7f8fa;
  color: var(--primary) !important;
}

@media (max-width: 1024px) {
  .nav-dropdown-cascade {
    min-width: 400px;
  }
  .nav-cascade-sub {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    margin-top: 5px;
  }

  .nav-cascade-title i {
    display: none;
  }
}
/* Nav Cascade Group Styles */
.nav-cascade-group {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.nav-cascade-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nav-cascade-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 20px 8px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #f5f7fa;
  margin-bottom: 8px;
}
