/* PP论坛 · 全站顶部导航统一皮肤
   由 template/yudi_kanchai/common/header.htm 在 head 末尾引入，所有 PC 页面生效，
   使门户首页 / 门户文章 / 个人空间 / 导读 / 群组等页面的导航栏
   与 https://www.slfhcy.com/forum.php 完全一致。
   规则取自 static/css/pp_research.css 的「顶部导航：去掉青绿」段，
   只带导航相关样式，不带入研究范的正文 / 页面背景改动。
   2026-11-13 */

:root {
  --pp-ink: #1f2a30;
  --pp-cin: #8c2f28;
  --pp-sans: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ---------- 顶部导航：去掉青绿（与 forum.php 同步） ---------- */
#nvc { background: var(--pp-ink) !important; }
.nav li, .nav li.a { background: transparent !important; }
.nav li a {
  background: transparent !important;
  color: rgba(253,252,249,.70) !important;
  font-family: var(--pp-sans) !important;
  font-size: 13px !important;
}
.nav li a:hover { color: #fdfcf9 !important; background: rgba(255,255,255,.06) !important; }
.nav li.a a {
  background: transparent !important;
  color: #fdfcf9 !important;
  box-shadow: inset 0 -2px 0 var(--pp-cin);
}
.nav li a span { display: none !important; }
#header_user a {
  background: transparent !important;
  border: 1px solid rgba(253,252,249,.45) !important;
  color: #fdfcf9 !important;
  font-family: var(--pp-sans) !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}
#header_user a:hover { background: var(--pp-cin) !important; border-color: var(--pp-cin) !important; }
#um .avt img { border-radius: 2px !important; }

/* 顶部搜索按钮：对应 pp_research.css 的「系统按钮」段，只作用于头部 */
#nvc #scbar_btn {
  background: var(--pp-ink) !important;
  background-image: none !important;
  border: 1px solid var(--pp-ink) !important;
  color: #fdfcf9 !important;
  border-radius: 0 !important;
  font-family: var(--pp-sans) !important;
}
#nvc #scbar_btn:hover { background: var(--pp-cin) !important; border-color: var(--pp-cin) !important; }

/* 门户 / 空间 / 导读 / 群组等页面没有当前导航项（.nav li.a），
   菜单首项「论坛」的 title/别名就是「首页」，让这些页面也与 forum.php 一样
   显示白字 + 朱砂下划线，做到视觉完全一致；有当前项的页面不受影响 */
.nav:not(:has(li.a)) li#mn_forum a {
  color: #fdfcf9 !important;
  box-shadow: inset 0 -2px 0 var(--pp-cin);
}
