/* ===== 只隐藏原生顶部 header（保留侧边栏） ===== */
.semi-layout-header,
header.sticky,
header[class*="sticky"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ===== 自定义导航栏 ===== */
.custom-nav {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #f1f5f9;
  height: 52px;
  display: flex; align-items: center;
  padding: 0 24px;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  gap: 4px;
}
.custom-nav .cn-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: #0a0a0a;
  text-decoration: none; margin-right: 16px;
  flex-shrink: 0;
}
.custom-nav .cn-logo .mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
}
.custom-nav .cn-links {
  display: flex; gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.custom-nav .cn-links::-webkit-scrollbar { display: none; }
.custom-nav .cn-links a {
  padding: 5px 10px; color: #475569;
  font-size: 13px; font-weight: 500;
  border-radius: 6px; text-decoration: none;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.custom-nav .cn-links a:hover { color: #0a0a0a; background: #f8fafc; }
.custom-nav .cn-links a.active { color: #0a0a0a; background: #f1f5f9; }
.custom-nav .cn-links svg { width: 14px; height: 14px; opacity: .7; flex-shrink: 0; }
.custom-nav .cn-links a.active svg { opacity: 1; }
.custom-nav .cn-spacer { flex: 1; min-width: 16px; }
.custom-nav .cn-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.custom-nav .cn-btn-ghost {
  padding: 5px 14px; color: #475569;
  font-size: 13px; font-weight: 500;
  border-radius: 6px; text-decoration: none;
  transition: all .15s;
}
.custom-nav .cn-btn-ghost:hover { color: #0a0a0a; background: #f8fafc; }
.custom-nav .cn-btn-primary {
  padding: 5px 16px; background: #0a0a0a; color: #fff;
  font-size: 13px; font-weight: 500;
  border-radius: 6px; text-decoration: none;
  transition: all .15s;
}
.custom-nav .cn-btn-primary:hover { opacity: .85; }
.custom-nav .cn-user-link {
  padding: 5px 12px; color: #475569;
  font-size: 13px; font-weight: 500;
  border-radius: 6px; text-decoration: none;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.custom-nav .cn-user-link:hover { color: #0a0a0a; background: #f8fafc; }
.custom-nav .cn-ext-link { opacity: .85; }
