:root {
  --primary: #F57730;
  --secondary: #36cfc9;
  --text: #1d2129;
  --muted: #fff;
  --bg: #FFFFFF;
  --card: rgba(14, 23, 45, 0.5);
  --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;
}

.header a {
  font-size: 1.8rem;
}
/* 只改这里：更明显毛玻璃质感（无blur） */
.submenu {
  
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(14, 23, 45, 0.5); /* 更深、更透 */
  box-shadow: 0 8px 30px rgba(0,0,0,0.25); /* 更强阴影 */
  border: 1px solid rgba(255,255,255,0.15); /* 细白边 */
  padding: 10px;
  /* 动画初始：收起 */
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;

}

/* 只改这里：更明显毛玻璃质感（无blur） */
.header {
  position: fixed;
  z-index: 20!important;
  background: rgba(14, 23, 45, 0.5); /* 更深、更透 */
  box-shadow: 0 4px 20px rgba(0,0,0,0.18); /* 强阴影 */
  /* backdrop-filter: blur(10px); */
  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: 1.4rem;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}
.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--muted);
  padding: 10px 0;
  transition: color 0.25s ease;
}
.menu-link:hover,
.menu-link.active {
  color: var(--primary);
}
.divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 10px;
}
.chev {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.chev.rotate {
  transform: rotate(180deg);
}


.menu-item:hover > .submenu {
  /* 动画展开：从上往下 */
  opacity: 1;
  visibility: visible;
  max-height: 500px;
}

/* 三级菜单样式 */
.submenu-level-3 {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  background: rgba(14, 23, 45, 0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 二级菜单项悬停时显示三级菜单 */
.submenu > li:hover > .submenu-level-3 {
  opacity: 1;
  visibility: visible;
  max-height: 500px;
}

/* 右箭头样式 */
.chev-right {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

/* 二级菜单项定位 */
.submenu > li {
  position: relative;
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.submenu a:hover,
.submenu a.active {
  color: var(--primary);
}
.submenu-ico {
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.75;
}
/* 移动端按钮 */
.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;
}
.brandText {
  font-weight: 400;
  font-size: 1.8rem;
  color: #FFFFFF;
  font-style: normal;
  text-transform: none;
}
.brandBox_sz {
  width: 0.1rem;
  height: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
/* 移动端遮罩 + 侧滑 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  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: 0 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,
.m-link.active {
  color: var(--primary);
}
.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;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.collapse-panel a:hover,
.collapse-panel a.active {
  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);
  padding-left: 20px;
}
.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;
}
.brandBox {
  width: 14.4rem;
}
@media (max-width: 1460px) {
  .menu-item {
    padding: 0 1rem;
  }
  .header a {
    font-size: 1.6rem;
  }
  .menu-link{
    gap:0;
  }
}
@media (max-width: 1199px) {
 
  .header a {
    font-size: 1.4rem !important;
  }
 
}
/* 桌面端展示横向菜单，隐藏移动端按钮（>=980px） */
@media (min-width: 980px) {
  .collapse-panel a {
    color: #1d2129 !important;
  }
  .menu {
    display: flex;
  }
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
  .mobile-only {
    display: none !important;
  }
}
/* 平板端导航优化 */
@media (max-width: 1199px) and (min-width: 980px) {
  .menu-item {
    padding: 0 1rem;
  }
  .brandBox {
    width: 11rem;
  }
  .brandText {
    font-size: 1.4rem;
  }
}
@media (max-width: 900px) {
  .m-card .collapse-btn {
    font-size: 1.6rem;
  }
  color: var(--primary);
}
.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;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.collapse-panel a:hover,
.collapse-panel a.active {
  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;
}
.brandBox {
  width: 14.4rem;
}
@media (max-width: 1460px) {
  .menu-item {
    padding: 0 1rem;
  }
  .header a {
    font-size: 1.6rem;
  }
}
/* 桌面端展示横向菜单，隐藏移动端按钮（>=980px） */
@media (min-width: 980px) {
  .collapse-panel a {
    color: #1d2129 !important;
  }
  .menu {
    display: flex;
  }
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
  .mobile-only {
    display: none !important;
  }
}
/* 平板端导航优化 */
@media (max-width: 1199px) and (min-width: 980px) {
  .menu-item {
    padding: 0 1rem;
  }
  .brandBox {
    width: 11rem;
  }
  .brandText {
    font-size: 1.4rem;
  }
}
@media (max-width: 900px) {
  .m-card .collapse-btn {
    font-size: 1.6rem;
  }
  .m-link {
    font-size: 1.6rem !important;
  }
  .m-card .collapse-panel a {
    color: #333333;
    font-size: 1.6rem;
  }
  .header .navIcon{
    max-width: 50% !important;
  }
}
/* 手机端导航优化 */
@media (max-width: 767px) {
.nav {
  height: 6rem;

}
  .brandBox {
    width: 10rem;
  }
  .drawer {
    width: min(320px, 85vw);
  }
}
@media (max-width: 480px) {

  .brandBox {
    width: 8rem;
  }
  .icon-btn {
    width: 30px;
    height: 30px;
  }
  .icon {
    width: 16px;
    height: 16px;
  }
  .drawer {
    width: 85vw;
  }
}