/* ==================== 导航下拉框 - 特斯拉极简风格 ==================== */

/* 导航项：带下拉框 */
.has-dropdown {
  position: relative;
}

/* 下拉框触发器 */
.dropdown-trigger {
  position: relative;
  cursor: pointer;
}

.dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0.6;
}

/* 下拉框容器 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
  padding-top: 10px;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 下拉框内部 */
.dropdown-inner {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 220px;
}

/* 项目项 */
.dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* 项目名称 */
.di-name {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 400;
}

/* 项目标签 */
.di-tag {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 16px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .has-dropdown:hover .nav-dropdown {
    display: none;
  }
}
