/* 导航栏样式 - SEO友好的语义化导航 */
.site-header {
  height: 44px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  gap: 0;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 16px;
  text-decoration: none;
}

.site-header .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.site-header .brand-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 14px;
}

.site-header .brand-slogan {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.site-header .nav-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
  margin-right: 4px;
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.site-header .main-nav::-webkit-scrollbar {
  display: none;
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: #64748b;
  transition: color 0.2s, border-color 0.2s;
}

.site-header .nav-link:hover {
  color: #475569;
}

.site-header .nav-link.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.site-header .nav-link-hot {
  color: #f97316;
}

.site-header .nav-link-hot:hover {
  color: #ea580c;
}

/* Badge 样式 */
.nav-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.5;
}

.nav-badge-warn {
  background: #fef3c7;
  color: #d97706;
}

.nav-badge-info {
  background: #e0e7ff;
  color: #6366f1;
}

.nav-badge-hot {
  background: #f97316;
  color: white;
  padding: 1px 5px;
}

/* Breadcrumb 样式 */
.breadcrumb-nav {
  padding: 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
}

.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-nav li:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  color: #94a3b8;
}

.breadcrumb-nav a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: #6366f1;
}

.breadcrumb-nav li:last-child {
  color: #1e293b;
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .site-header {
    padding: 0 12px;
  }

  .site-header .brand {
    padding-right: 12px;
  }

  .site-header .nav-link {
    padding: 0 10px;
    font-size: 12px;
  }
}
