:root {
  --primary: #2A7CD9;
  --secondary: #36cfc9;
  --text: #1d2129;
  --muted: #4e5969;
  --bg: #FFFFFF;
  --card: rgba(254, 254, 254, 0.9);
  --border: #e5e6eb;
  --shadow-nav: 0 0.4rem 2rem rgba(0, 0, 0, 0.05);
  --shadow-submenu: 0 0.8rem 3rem rgba(0, 0, 0, 0.12);
  --shadow-mobile: 0 0 3rem rgba(0, 0, 0, 0.15);
  --radius-lg: 1.6rem;
  --radius-md: 1.2rem;
  --radius-sm: 1rem;
}

.submenu-language .active {
  background-color: #2A7CD9;
  color: #fff;
}

.topNavContent {
  background: #292d31;
}

.header a {
  font-size: 1.6rem;
}

.header {
  position: relative;
  z-index: 50;
  background: #ffffff;
  width: 100%;
}

.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}

.header ul li {
  list-style: none;
}

.header-scrolled {
  box-shadow:
    0 0.1rem 0 rgba(16, 24, 40, 0.08),
    0 1rem 3.4rem rgba(16, 24, 40, 0.08);

}

.nav {
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-desktop {
  display: none;
}

.nav-mobile {
  display: flex;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-name {
  white-space: nowrap;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.menu {
  display: none;
  align-items: center;
  gap: 4px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  /* position: relative; */
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.menu-item-language {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--muted);
  padding: 10px 0;
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.menu-link:hover {
  color: var(--primary);
}

.menu-link.active {
  color: var(--primary);
}

.divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 10px;
}

.chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.chev.rotate {
  transform: rotate(180deg);
}

/* PC 子菜单：默认隐藏，JS 控制显示/隐藏 */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--card);
  /* border: 1px solid var(--border); */
  box-shadow: var(--shadow-submenu);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  /* 模糊强度，数值越大越糊 */
  -webkit-backdrop-filter: blur(10px);
  /* 苹果浏览器兼容 */
}

/* 消除一级导航与二级导航之间的鼠标经过空隙 */
.submenu::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  left: 0;
  right: 0;
  height: 1.2rem;
}

.submenu-language {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 20rem;
  background: var(--card);
  border: 0 !important;
  box-shadow: var(--shadow-submenu);
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  flex-direction: column;
  align-items: self-start;
}

.submenu-language a {

  min-width: 20rem;

}

.submenu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.6rem 4rem;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;

}

.submenu-language a:hover {
  background: #2A7CD9;
  color: #fff !important;
  border-radius: 0 !important;
  width: 100% !important;
}

.submenu a:hover {

  color: var(--primary);
}

.submenuli li {
  padding: 2.6rem 4rem;
}

.submenuli li a {
  border-right: 1px solid #D9D9D9;
  padding: 0;
  padding-right: 6rem;

}

.submenuli li:last-child a {
  border-right: none;
}

.submenu-ico {
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.75;
}

/* 搜索二级菜单 */
.menu-item-search .menu-link-search {
  padding: 1rem 0;
}

.submenu-search {
  flex-direction: column;
  padding: 4rem 2rem 5rem;
}

.search-panel {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  position: relative;
}

.search-panel-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-close-btn {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  border-radius: 0.4rem;
}

.search-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.search-close-btn svg {
  width: 2.4rem;
  height: 2.4rem;
  transition: stroke 0.2s ease;
}

.search-close-btn:hover svg {
  stroke: #333;
}

.search-panel-title {
  margin: 0;
  font-weight: 600;
  font-size: 3rem;
  color: #333333;
  line-height: 4.2rem;
  font-style: normal;
  text-transform: none;
}

.search-panel-form {
  width: 100%;
}

.search-panel-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  height: 6rem;
  background: rgba(250, 250, 250, 1);
  border-radius: 0;
  padding: 0 0.4rem 0 1.6rem;
  gap: 1.2rem;
}

.search-panel-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.search-panel-icon {
  width: 4.2rem;
  height: 4.2rem;
  flex-shrink: 0;
  object-fit: contain;
}

.search-panel-divider {
  width: 1px;
  height: 2.4rem;
  background: #e5e6eb;
  margin: 0 1.2rem;
  flex-shrink: 0;
}

.search-panel-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: #333333;
  outline: none;
  font-weight: 400;
  font-style: normal;
}

.search-panel-input::placeholder {
  color: #999999;
}

.search-panel-btn {
  flex-shrink: 0;
  width: 12rem;
  height: 5.2rem;
  background: #2a7cd9;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 2.2rem;
  text-align: center;
  font-style: normal;
  text-transform: none;
  transition: background 0.2s ease;
}

.search-panel-btn:hover {
  background: #1e6bc4;
}

.m-search-card {
  margin-top: 1rem;
}

.m-search-panel {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1279px) {
  /*.brandBox {*/
  /*  width: 36.1rem !important;*/
  /*}*/
}


@media (max-width: 979px) {
  .search-panel-title {
    font-size: 1.6rem;
    line-height: 3.4rem;
  }

  .search-panel-bar {
    height: 5.4rem;
    padding-left: 1.2rem;
    gap: 1rem;
  }

  .search-panel-icon {
    width: 3.6rem;
    height: 3.6rem;
  }

  .search-panel-divider {
    margin: 0 1rem;
    height: 2rem;
  }

  .search-panel-btn {
    width: 10rem;
    height: 4.6rem;
    font-size: 1.4rem;
    line-height: 2rem;
  }
}

@media (max-width: 540px) {
  .search-panel-bar {
    background-color: #ededed;
    align-items: stretch;
    height: auto;
    padding: 0;
    gap: 1.2rem;
  }

  .search-panel-field {
    height: 5rem;
  }

  .search-panel-btn {
    width: 20%;
    height: 4.8rem;
  }
}

/* 移动端按钮 */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.icon-btn:active {
  transform: scale(0.98);
}

.icon {
  width: 20px;
  height: 20px;
}

/* 移动端遮罩 + 侧滑 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  z-index: 40;
  display: none;
}

.overlay.show {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 85vw);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: -14px 14px 48px rgba(16, 24, 40, 0.1);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: none;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.drawer-body {
  padding: 10px 14px 18px;
}

.m-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.2s ease;
}

.m-link:hover {
  background: rgba(22, 93, 255, 0.06);
}

.m-muted {
  color: var(--muted);
  font-size: 12px;
  margin: 16px 4px 8px;
}

.collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.collapse-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapse-panel.open {
  max-height: 520px;
}

.collapse-panel a {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.collapse-panel a:hover {
  background: rgba(22, 93, 255, 0.06);
  color: var(--primary);
}

/* 移动端子菜单卡片（无边框，靠底色层次） */
.m-card {
  border-radius: 16px;

  overflow: hidden;
  margin-top: 10px;
}

.m-card .collapse-btn {
  background: transparent;
}

.m-card .collapse-panel {
  background: rgba(255, 255, 255, 0.7);
}

.lang-row {
  display: flex;
  gap: 8px;
  padding: 6px 4px 0;
}

.pill {
  border: none;
  background: rgba(2, 6, 23, 0.06);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.pill.primary {
  background: var(--primary);
  color: #fff;
}

.navIcon {
  max-width: 100%;
  height: auto;
}

/* 辅助：防止菜单打开时 body 滚动 */
.no-scroll {
  overflow: hidden;
}

.left_topText {
  font-weight: 400;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.topNavContent_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 0;
}

.nav_rightBox {
  display: flex;
  align-items: center;
}

.iconImgRight {
  margin-right: 0.6rem;
}

.iconImgRight:last-of-type {
  margin-left: 9rem;
}
.submenu-search1{
  height: 30rem;
}
.brandBox {
  max-width: 49.1rem;
}

@media (max-width: 1599px) {
  .submenu-search1{
  height: 24rem;
}
  .brandBox {
    max-width: 40.1rem;
  }

  .submenu {
    padding: 0;
  }

}

@media (max-width: 1366px) {
  .brandBox {
    width: 35.1rem;
  }

  .menu-item {
    padding: 0 10px;
  }

  .navIcon {
    max-width: 80%;
  }
}

/* 桌面端展示横向菜单，隐藏移动端按钮（>=768px） */
@media (min-width: 980px) {
  .menu {
    display: flex;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .topNavContent {
    display: none !important;
  }
}