@charset "UTF-8";
/* WeKnora 品牌定制 · 野心电器知识库
 * 由 index.html 注入，作用于容器内已编译的 SPA，无需重新构建 ui 镜像。
 * 选择器来自 Login.vue / UserMenu.vue，并已在容器 assets/*.js 中核对存在。
 */

/* 1) 首页/登录页右上角：隐藏「官方网站」与「GitHub」两个外链按钮。
 *    语言切换是 .language-switch 内的 <button class="header-link">，
 *    不是 .header-links 的直接 <a> 子元素，因此会被保留。 */
.header-links > a.header-link {
  display: none !important;
}

/* 2) 登录后左侧用户菜单里的 GitHub ★ 项。
 *    :has() 命中该项独有的 star icon；属性选择器兼容 title 文案含 GitHub 的情况。
 *    brand.js 另有一层 MutationObserver 兜底，兼容不支持 :has() 的内核。 */
.menu-item:has(.menu-github-star-icon),
.menu-item[title*="GitHub"],
.menu-item[title*="github"] {
  display: none !important;
}

/* 3) 首页左上角：在原有 WeKnora logo 右侧追加站点标题。
 *    .header-logo 本身是 position:fixed(top:32px/left:50px)，改 inline-flex 不影响定位。 */
.header-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.header-logo::after {
  content: "野心电器知识库";
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* 窄屏时缩小标题，避免与保留的语言切换按钮挤在一起 */
@media (max-width: 768px) {
  .header-logo { gap: 8px; }
  .header-logo::after { font-size: 14px; }
}
