/* ============================================================
   导航栏组件样式 - header.css（精简版）
   结构：基础布局 → 桌面端组件 → 移动端响应式
   ============================================================ */

/* ========== 1. 基础布局 ========== */
.nav-shadow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 1px 8px rgba(52, 52, 52, 0.08);
  transition: all 0.3s ease;
}

/* 滚动时的导航栏样式 - 专业透明效果 */
.nav-shadow.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-shadow .nav-header {
  width: 100%;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  /* 左右两端对齐 */
  height: 72px;
}

/* 左侧区域 — 自适应宽度 */
.nav-shadow .nav-header .nav-left {
  display: flex;
  align-items: center;
  height: 72px;
  flex: 1;
  min-width: 0;
}

/* 修复Logo图片变形问题，保持自适应时的原生比例 */
.nav-shadow .nav-header .nav-left .nav-icon img {
  max-height: 40px; /* 限制最大高度，防止过大 */
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain; /* 保证不被拉伸变形 */
  display: block;
}

/* 导航菜单包裹层 — 充当滑动容器 */
.nav-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 100%;
  margin-left: 20px;
}

/* 导航菜单项（桌面端） */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0 !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  /* 隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

/* 导航滑动指示箭头 */
.nav-menu-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  display: none; /* 默认隐藏，JS 动态控制 */
  align-items: center;
  cursor: pointer;
  z-index: 15;
  color: #666;
  transition: all 0.2s ease;
}

.nav-menu-arrow:hover {
  color: #1677FF;
}

.nav-menu-arrow-left {
  left: 0;
  background: linear-gradient(to right, #fff 60%, transparent);
  justify-content: flex-start;
  padding-left: 4px;
}

.nav-menu-arrow-right {
  right: 0;
  background: linear-gradient(to left, #fff 60%, transparent);
  justify-content: flex-end;
  padding-right: 4px;
}

.nav-menu-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

/* 导航项 — 仅在 .nav-menu 内生效，防止全局污染 */
.nav-menu .nav-item {
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

/* 为带有下拉框的导航项添加向下箭头 */
.nav-menu .nav-item[data-has-submenu="true"]::before {
  content: '';
  order: 2; /* 强制排在文字后面（右侧） */
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-image 0.2s;
  margin-top: 1px; /* 视觉微调对齐 */
}

/* 悬停高亮 + JS激活高亮（严格限定作用域） */
.nav-menu .nav-item:hover,
.nav-menu .nav-item.nav-item-active {
  color: #1677FF;
}

/* 悬停或激活时箭头变蓝并旋转 180 度 */
.nav-menu .nav-item-wrap:hover .nav-item[data-has-submenu="true"]::before,
.nav-menu .nav-item.nav-item-active[data-has-submenu="true"]::before {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 底部指示条（仅限导航菜单内的项） */
.nav-menu .nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #1677FF;
  border-radius: 2px;
  transition: left 0.2s, right 0.2s;
}

.nav-menu .nav-item:hover::after,
.nav-menu .nav-item.nav-item-active::after {
  left: 0;
  right: 0;
}

/* 关键修复：阻止 hover 状态穿透到兄弟元素 */
.nav-item-wrap,
.nav-item-direct {
  /* 将每个导航项包裹在独立的 BFC 中 */
  display: inline-block;
  position: relative;
}

/* 右侧区域（桌面端） — 自适应居右 */
.nav-shadow .nav-header .nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 72px;
}

/* ========== 2. 搜索框 ========== */
.nav-search-wrap {
  width: 200px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
}

.nav-link-doc,
.console-link {
  display: flex;
  align-items: center;
}

.nav-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 36px;
  border: 1px solid #E6EAED;
  border-radius: 18px;
  background: #F7F8FA;
  overflow: visible;
  transition: all 0.2s;
}

.nav-search-box:focus-within {
  border-color: #FF6739;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 103, 57, 0.12);
}

.nav-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  color: #aaa;
  padding-left: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-search-input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  padding: 0 10px 0 4px;
  font-size: 13px;
  min-width: 0;
}

/* 搜索建议 */
.nav-search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E6EAED;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  z-index: 10000;
  display: none;
}

.nav-search-suggest.active {
  display: block;
}

.nav-search-suggest-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.nav-search-suggest-item:hover {
  background: rgba(22, 119, 255, 0.06);
  color: #1677FF;
}

.suggest-icon {
  margin-right: 8px;
  color: #999;
  flex-shrink: 0;
}

/* ========== 3. 登录/注册按钮 ========== */
.no-login {
  display: inline-flex;
  align-items: center;
  height: 72px;
  gap: 8px;
  margin-left: 16px !important;
  flex-shrink: 0;
}

/* 分割线 */
.nav-divider {
  width: 1px;
  height: 14px;
  background: #E6EAED;
  margin: 0 16px;
  flex-shrink: 0;
}

.nav-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 16px;
  background: transparent;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-btn-login:hover {
  color: #1677FF;
}

.nav-btn-register-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  /* 撑满导航栏 */
  padding: 0 32px;
  background: #1677FF;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  gap: 8px;
  margin-left: 12px;
}

.nav-btn-register-full .icon-gift {
  transition: transform 0.3s ease;
}

.nav-btn-register-full:hover {
  background: #0056d2;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.nav-btn-register-full:hover .icon-gift {
  transform: scale(1.15) rotate(-10deg);
}

/* 移除右侧导航的 padding，让注册按钮能靠到最右侧边缘 */
.nav-shadow .nav-header {
  padding-right: 0 !important;
}

/* ========== 4. 下拉面板（Mega Menu）========== */
/* 注意：显示/隐藏由 JS 内联 style 控制，此处仅定义基础外观 */
.nav-cont {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  /* 纯实色白 */
  z-index: 10000;
  display: none;
  border: 1px solid #EAECEF;
  /* 锐利边框 */
  border-top: none;
}

/* 优化一二级分组下拉框布局，对齐左侧并防止无限拉伸 */
.nav-cont .section-content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
}

.nav-cont[style*="display: block"] {
  /* 阶梯式立体阴影，增加物理分量感 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  animation: navFadeInUp 0.25s ease-out both;
}

/* 导航项包裹器 — 用于 <a> 标签内的 .nav-item */
.nav-item-wrap {
  display: inline-block;
  text-decoration: none;
  height: 72px;
  line-height: 72px;
  position: relative;
}

/* 仅影响包裹器内的直接子元素 .nav-item */
.nav-item-wrap>.nav-item {
  color: #333;
  transition: color 0.2s;
}

.nav-item-wrap>.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #1677FF;
  border-radius: 2px;
  transition: left 0.2s, right 0.2s;
}

.nav-item-wrap:hover>.nav-item,
.nav-item-wrap>.nav-item.nav-item-active {
  color: #1677FF;
}

.nav-item-wrap:hover>.nav-item::after,
.nav-item-wrap>.nav-item.nav-item-active::after {
  left: 0;
  right: 0;
}

/* 直接导航项（无 <a> 包裹）— 与 nav-item-wrap 统一 BFC 隔离 */
.nav-item-direct {
  display: inline-block;
}

/* 面板项 — 默认隐藏，由 JS 通过 style.display 控制 */
.nav-cont-menu {
  padding: 24px 0 !important; /* 左右内边距由 section-content 统一承载，实现精准 40px 左对齐 */
  display: none;
  /* 默认隐藏，由 JS 控制显示 */
}

.nav-cont-menu[style*="display:block"] {
  animation: navFadeInUp 0.22s ease both;
}

@keyframes navFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-cont-menu.active {
  display: block !important;
}

.mega-layout {
  display: flex;
  gap: 32px;
}

.nav-item-first {
  flex: 0 0 250px !important;
  padding: 32px 24px 32px 40px !important; /* 左边距与 Logo 40px 对齐 */
  background: #F7F9FC !important; /* 经典浅灰底板 */
  border-right: 1px solid #EEF1F6 !important; /* 竖直精细分割线 */
  border-left: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important; /* 顶部对齐，非常大厂规范 */
  gap: 12px !important;
  min-height: 280px;
  position: relative;
  cursor: default;
}

.nav-item-first:hover {
  background: #F7F9FC !important;
  box-shadow: none;
}

.nav-item-first img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.nav-item-first .title {
  font-size: 22px;
  font-weight: 700;
  color: #1d2129;
  letter-spacing: -0.5px;
}

.nav-item-first .desc {
  font-size: 14px;
  color: #666666 !important; /* 精致中灰色描述文字 */
  line-height: 1.6;
}

.nav-grid {
  flex: 1 !important; /* 占满中间可用空间 */
  max-width: 840px !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px; /* 间距极其工整 */
  align-content: start;
  padding: 32px 0 !important; /* 上下内边距对齐左侧侧边栏 */
}

/* 复刻大厂精细无边框卡片样式 */
.nav-item-box {
  display: flex !important;
  flex-direction: column !important; /* 标题与描述垂直排列 */
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 12px 16px 12px 0 !important; /* 移除左侧 padding 实现左对齐 */
  background: transparent !important; /* 移除背景色 */
  border: none !important; /* 移除边框线 */
  box-shadow: none !important; /* 移除阴影 */
  transform: none !important; /* 移除浮动 */
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.nav-item-box:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav-item-box .title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1d2129 !important;
  transition: color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  width: 100%;
}

.nav-item-box:hover .title {
  color: #1677FF !important; /* 悬停时仅标题变蓝 */
}

/* 标签直角化 */
.item-badge {
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0;
  /* 强制直角 */
  text-transform: uppercase;
}

.badge-hot {
  background: #E2231A; /* 腾讯红 */
  color: #fff;
}

.badge-new {
  background: #00A870; /* 腾讯绿 */
  color: #fff;
}

/* ========== 5. 用户下拉菜单 ========== */
.nav-header .login-in {
  padding: 0 24px;
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 10px;
  cursor: pointer;
}

.head-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F4F6F8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #F0F2F5;
}

.nav-header .login-in .name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.login-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: -20px;
  width: 320px;
  padding-top: 8px;
  z-index: 10001;
}

.login-menu-inner {
  background: #fff;
  border: 1px solid #E6EAED;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  /* 确保内部圆角 */
}

.login-menu-inner::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 28px;
  width: 13px;
  height: 13px;
  background: #EBF3FF;
  border-left: 1px solid #E0EAFF;
  border-top: 1px solid #E0EAFF;
  transform: rotate(45deg);
}

.nav-header .login-in:hover .login-menu {
  display: block;
}

.lm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #F0F2F5;
}

.lm-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1677FF;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lm-username {
  font-size: 15px;
  font-weight: 600;
}

.lm-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  /* 直角风格 */
  font-size: 11px;
  font-weight: 600;
}

.lm-cert-no {
  background: #FFF7E6;
  color: #FAAD14;
  border: 1px solid #FFE58F;
}

.lm-cert-yes {
  background: #F6FFED;
  color: #52C41A;
  border: 1px solid #B7EB8F;
}

.lm-list {
  padding: 8px 0;
}

.lm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.lm-item:hover {
  background: #F5F8FF;
  color: #1677FF;
  transform: translateX(4px);
  /* 微小的右移感 */
}

.lm-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #F4F6F8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5E6D82;
}

.lm-item-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.lm-item-arrow svg {
  width: 14px;
  height: 14px;
  color: #C0C4CC;
}

.lm-footer {
  padding: 8px;
  border-top: 1px solid #F0F2F5;
  background: #FAFAFA;
}

.lm-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 13px;
  color: #86909C;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.lm-logout svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.lm-logout:hover {
  background: #FFF1F0;
  color: #F5222D;
}

/* ========== 6. 移动端组件 ========== */
.mobile-header-right {
  display: none;
  align-items: stretch;
  /* 允许子项撑满高度 */
  gap: 0;
  /* 移除间距以实现无缝贴合 */
  margin-left: auto;
  flex-shrink: 0;
  height: 56px;
  /* 与移动端导航栏高度一致 */
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #1677FF;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 !important;
  /* 强制直角 */
  white-space: nowrap;
  height: 100%;
  /* 撑满父容器高度 */
  transition: all 0.3s;
}

.mobile-btn-register:hover {
  background: #4096ff;
}

/* 移动端侧边栏抽屉 - 桌面端默认彻底隐藏 */
.mobile-menu-overlay,
.mobile-menu-drawer {
  display: none;
}

@media (max-width: 992px) {
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* 改为全宽铺满 */
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
}

.mobile-menu-drawer.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-title {
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  /* 移除背景圆圈 */
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close:hover {
  color: #1677FF;
}

.mobile-menu-body {
  flex: 1;
  overflow: hidden;
  /* 由内部容器处理滚动 */
  display: flex;
  padding: 0;
}

/* 左侧 Tab 区域 */
.mobile-menu-tabs {
  width: 35%;
  background: #f7f8fa;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* 垂直排列 */
  border-right: 1px solid #f0f0f0;
}

.mobile-tab-list {
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-footer {
  padding: 16px 12px;
  border-top: 1px solid #eee;
  background: #f2f3f5;
}

.mobile-tab-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  color: #1677FF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.mobile-tab-login-btn:active {
  background: #f0f7ff;
  transform: scale(0.98);
}

.mobile-tab-item {
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-tab-item.active {
  background: #fff;
  color: #1677FF;
  font-weight: 600;
}

.mobile-tab-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: #1677FF;
  border-radius: 0 4px 4px 0;
}

/* 右侧内容面板区域 */
.mobile-menu-panels {
  width: 65%;
  background: #fff;
  height: 100%;
  overflow-y: auto;
}

.mobile-panel {
  display: none;
  padding: 16px;
}

.mobile-panel.active {
  display: block;
}

/* 面板内容美化 */
.mobile-panel-header {
  margin-bottom: 20px;
}

.mobile-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.mobile-panel-desc {
  font-size: 12px;
  color: #86909c;
}

/* 二级菜单分类标签 */
.mobile-sub-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mobile-cat-tag {
  padding: 6px 16px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 20px;
  font-size: 13px;
  color: #4e5969;
}

.mobile-cat-tag.active {
  background: #1677FF;
  color: #fff;
  border-color: #1677FF;
}

/* 产品卡片设计 */
.mobile-product-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-product-card {
  display: block;
  padding: 16px;
  background: #f9fbff;
  border: 1px solid #eef3ff;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mobile-product-card .name {
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 4px;
  display: block;
}

.mobile-product-card .desc {
  font-size: 12px;
  color: #86909c;
  display: block;
}

.mobile-product-card.featured::after {
  content: '精选';
  position: absolute;
  top: 0;
  right: 0;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-bottom-left-radius: 8px;
}

.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

.mobile-footer-btn-login {
  display: block;
  text-align: center;
  padding: 12px;
  background: #f8f9fa;
  color: #1677FF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ========== 7. 移动端响应式（992px断点）========== */
@media (max-width: 992px) {

  /* 隐藏桌面端元素 — 使用ID选择器确保最高优先级 */
  #navMenu,
  .nav-shadow .nav-header .nav-right,
  .nav-shadow .nav-cont,
  .nav-shadow .nav-header .no-login,
  .nav-shadow .nav-header .login-in {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* 显示移动端按钮区 */
  .mobile-header-right {
    display: flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
  }

  /* 导航栏容器 */
  .nav-shadow .nav-header {
    height: 56px !important;
    padding: 0 0 0 16px !important;
    /* 移除右侧 padding，让注册按钮贴边 */
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 左侧：Logo紧凑布局 */
  .nav-shadow .nav-header>.nav-left {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: calc(100% - 110px) !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  /* Logo图片尺寸限制 */
  .nav-shadow .nav-header>.nav-left img {
    max-width: 130px !important;
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
  }

  /* 右侧：按钮区 */
  .nav-shadow .nav-header>.mobile-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  /* 毛玻璃效果 */
  .nav-shadow {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
  }
}

/* ==================== 顶部导航右侧大厂推荐卡片 ==================== */
.nav-promo-card {
  flex: 0 0 280px !important;
  height: 280px !important;
  background: linear-gradient(135deg, #F3F7FF 0%, #EBF2FF 100%) !important;
  border-radius: 8px !important;
  padding: 32px 24px !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border: 1px solid #E3ECFF !important;
  text-decoration: none !important;
  margin-top: 24px !important; /* 对齐网格的垂直对齐线 */
}

.nav-promo-card.promo-orange {
  background: linear-gradient(135deg, #FFF7F2 0%, #FFF0E5 100%) !important;
  border-color: #FFE6D5 !important;
}

.nav-promo-card.promo-purple {
  background: linear-gradient(135deg, #F9F5FF 0%, #F3E9FF 100%) !important;
  border-color: #ECD9FF !important;
}

.nav-promo-card .promo-content {
  position: relative !important;
  z-index: 5 !important;
}

.nav-promo-card .promo-tag {
  display: inline-block !important;
  padding: 2px 6px !important;
  background: rgba(22, 119, 255, 0.08) !important;
  color: #1677FF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  border-radius: 2px !important;
}

.nav-promo-card.promo-orange .promo-tag {
  background: rgba(255, 103, 57, 0.08) !important;
  color: #FF6739 !important;
}

.nav-promo-card.promo-purple .promo-tag {
  background: rgba(147, 51, 234, 0.08) !important;
  color: #9333EA !important;
}

.nav-promo-card .promo-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1d2129 !important;
  line-height: 1.4 !important;
  margin: 0 0 6px 0 !important;
}

.nav-promo-card .promo-desc {
  font-size: 12px !important;
  color: #86909c !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  max-width: 170px !important; /* 限制宽度以防止遮挡3D球体 */
}

.nav-promo-card .promo-btn {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1677FF !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.2s !important;
  margin-top: auto !important;
}

.nav-promo-card:hover .promo-btn {
  transform: translateX(4px) !important;
}

.nav-promo-card.promo-orange .promo-btn {
  color: #FF6739 !important;
}

.nav-promo-card.promo-purple .promo-btn {
  color: #9333EA !important;
}

/* 3D科技发光拟物化立体球体 */
.nav-promo-card .promo-sphere {
  position: absolute !important;
  bottom: -15px !important;
  right: -20px !important;
  width: 120px !important;
  height: 120px !important;
  background: radial-gradient(circle at 35% 35%, #EBF2FF 0%, #1677FF 60%, #003DA8 100%) !important;
  border-radius: 50% !important;
  box-shadow: 0 16px 32px rgba(22, 119, 255, 0.25), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
  opacity: 0.9 !important;
  z-index: 1 !important;
}

.nav-promo-card.promo-orange .promo-sphere {
  background: radial-gradient(circle at 35% 35%, #FFF0E5 0%, #FF6739 60%, #D4380D 100%) !important;
  box-shadow: 0 16px 32px rgba(255, 103, 57, 0.25), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
}

.nav-promo-card.promo-purple .promo-sphere {
  background: radial-gradient(circle at 35% 35%, #F3E9FF 0%, #9333EA 60%, #681DA8 100%) !important;
  box-shadow: 0 16px 32px rgba(147, 51, 234, 0.25), inset -10px -10px 20px rgba(0, 0, 0, 0.3) !important;
}

/* 重新复刻大厂精细超链接卡片的描述文字 */
.nav-item-box .desc {
  font-size: 13px !important;
  color: #86909c !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

/* 复刻大厂精细红色边框赞助标签 */
.nav-grid .item-badge,
.nav-item-box .item-badge {
  display: inline-block !important;
  padding: 1px 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 2px !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
  margin-left: 6px !important;
  border: 1px solid #ff4d4f !important;
  color: #ff4d4f !important;
  background: rgba(255, 77, 79, 0.05) !important;
  box-shadow: none !important;
}

/* 大厂统一关闭 X 按钮定位 */
.nav-cont .mega-close-btn {
  position: absolute !important;
  top: 24px !important;
  right: 40px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #86909c !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  border-radius: 50% !important;
  background: #f2f3f5 !important;
  z-index: 10010 !important;
}

.nav-cont .mega-close-btn:hover {
  color: #1d2129 !important;
  background: #e5e6eb !important;
  transform: rotate(90deg) !important;
}