/* ============================================
   nav.less - 顶部导航栏（深色吸顶）
   ============================================ */
/* ---------- 导航栏主容器 ---------- */
.dji-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: transparent;
  z-index: 300;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
/* ---------- 滚动后导航栏样式 ---------- */
.dji-header.is-scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a40;
  height: 56px;
}
/* ---------- 导航栏内层 ---------- */
.dji-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}
/* ---------- Logo ---------- */
.dji-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}
.dji-logo a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.dji-logo img {
  height: 32px;
  width: auto;
  transition: height 0.3s ease;
}
.dji-header.is-scrolled .dji-logo img {
  height: 28px;
}
.dji-logo-text, .dji-logo-img {
  font-size: 20px;
  font-weight: 700;
  color: #e8e8f0;
  letter-spacing: 0.05em;
  margin-left: 8px;
}
/* ---------- 主导航菜单 ---------- */
.dji-nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.dji-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.dji-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #e8e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
  position: relative;
  /* 底部激活指示条 */
}
.dji-nav-link:hover,
.dji-nav-link.is-active {
  color: #ffffff;
}
.dji-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.dji-nav-link:hover::after,
.dji-nav-link.is-active::after {
  transform: scaleX(1);
}
/* ---------- 下拉菜单箭头 ---------- */
.dji-nav-link .arrow {
  display: inline-block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
  vertical-align: middle;
}
.dji-nav-item:hover .dji-nav-link .arrow,
.dji-nav-item.is-open .dji-nav-link .arrow {
  transform: rotate(180deg);
}

/* ---------- 二级导航（对齐官网 explore-menu 纯文字下拉，无图片） ---------- */
.dji-nav-item.has-dropdown {
  position: relative;
}
.dji-dropdown {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 320;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.dji-header.is-scrolled .dji-dropdown {
  top: 56px;
}
.dji-nav-item:hover .dji-dropdown,
.dji-nav-item.is-open .dji-dropdown,
.dji-dropdown-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* 纯文字菜单列表 —— 对齐 style__dji-menu-list */
.dji-dropdown .dji-dropdown-list,
.dji-dropdown-sm .dji-dropdown-list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  min-width: 160px;
}
.dji-dropdown .dji-dropdown-list > li {
  margin: 0;
  padding: 0;
}
.dji-dropdown .dji-dropdown-list > li > a {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.02em;
}
.dji-dropdown .dji-dropdown-list > li > a:hover {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.85);
  text-decoration: none;
}

/* ---------- 导航右侧工具区 ---------- */
.dji-nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
/* ---------- 搜索按钮 ---------- */
.dji-nav-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #8888a0;
  transition: all 0.15s ease;
}
.dji-nav-tool-btn:hover {
  color: #e8e8f0;
  background-color: rgba(255, 255, 255, 0.05);
}
.dji-nav-tool-btn svg {
  width: 18px;
  height: 18px;
}
/* ---------- 导航栏搜索框（展开态） ---------- */
.dji-search-bar, .dji-search-form {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 15, 0.98);
  display: flex;
  align-items: center;
  padding: 0 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 300;
}
.dji-search-bar.is-open, .dji-search-form.is-open,
.dji-search-bar.dji-search-bar-active {
  opacity: 1;
  visibility: visible;
}
.dji-search-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.dji-search-input {
  flex: 1;
  height: 44px;
  padding: 0 24px;
  padding-right: 44px;
  font-size: 16px;
  color: #e8e8f0;
  background-color: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 9999px;
  transition: border-color 0.15s ease;
}
.dji-search-input::placeholder {
  color: #55556a;
}
.dji-search-input:focus {
  border-color: #2979ff;
}
.dji-search-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #8888a0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
}
.dji-search-close:hover {
  color: #e8e8f0;
  background-color: rgba(255, 255, 255, 0.1);
}
/* ---------- 用户/购物车按钮 ---------- */
.dji-nav-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #8888a0;
  transition: all 0.15s ease;
  position: relative;
  /* 徽标 */
}
.dji-nav-tool-btn:hover {
  color: #e8e8f0;
  background-color: rgba(255, 255, 255, 0.05);
}
.dji-nav-tool-btn svg {
  width: 18px;
  height: 18px;
}
.dji-nav-tool-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background-color: #ff5252;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* ---------- 购买按钮（CTA） ---------- */
.dji-nav-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: #2979ff;
  border-radius: 9999px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.dji-nav-cta-btn:hover {
  background-color: #005cf5;
  box-shadow: 0 0 20px rgba(41, 121, 255, 0.3);
  color: #ffffff;
}
/* ---------- 移动端汉堡按钮 ---------- */
.dji-mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.dji-mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.dji-hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #e8e8f0;
  transition: all 0.3s ease;
  border-radius: 1px;
}
.dji-hamburger + .dji-hamburger {
  margin-top: 5px;
}
/* 汉堡展开态（X形） */
.dji-header.is-open .dji-mobile-menu-btn .dji-hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.dji-header.is-open .dji-mobile-menu-btn .dji-hamburger:nth-child(2) {
  opacity: 0;
}
.dji-header.is-open .dji-mobile-menu-btn .dji-hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ---------- 移动端侧边菜单 ---------- */
.dji-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0f;
  z-index: 500;
  padding-top: 64px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.dji-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.dji-mobile-menu-inner {
  padding: 32px 24px;
}
.dji-mobile-item {
  border-bottom: 1px solid #1a1a2e;
}
.dji-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: #e8e8f0;
}
.dji-mobile-link:hover {
  color: #2979ff;
}
.dji-mobile-link.is-active {
  color: #2979ff;
}
.dji-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.dji-mobile-submenu.is-open {
  max-height: 500px;
}
.dji-mobile-sub-link {
  display: block;
  padding: 8px 0 8px 24px;
  font-size: 16px;
  color: #8888a0;
}
.dji-mobile-sub-link:hover {
  color: #2979ff;
}
