/*
 * NB 三站顶栏切换器「NB 牛榜｜NB 统计｜NB 合伙人」（11/29 Nathan「三者的相互无缝融合 自然引流引导 要做好互通」）。
 * 一份样式三站共用：https://fx.nb.market/brand/nb-switch.css。结构和用法见 内容/品牌/NB品牌基准.md 第 8 节。
 * 宽屏：页头牌子右边一排三个胶囊，当前站墨底白字。手机（<768px）：牌子右边一个小「▾」，点开下拉三站，不多占一行。
 * 深色只认 <html data-theme="dark">（跟 fx 一样，不跟系统走）。
 */
.nbsw { position: relative; display: inline-flex; align-items: center; flex: none; font: 500 12.5px/1 Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.nbsw .nbsw-d { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(17, 18, 20, 0.05); border: 1px solid rgba(17, 18, 20, 0.08); }
.nbsw .nbsw-a { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: #4a4c52; text-decoration: none; white-space: nowrap; }
.nbsw .nbsw-a:hover { background: rgba(17, 18, 20, 0.07); color: #111214; text-decoration: none; }
.nbsw .nbsw-a[aria-current="page"] { background: #111214; color: #fff; }
.nbsw .nbsw-m { display: none; }
.nbsw .nbsw-m > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; cursor: pointer; color: #4a4c52; border: 1px solid rgba(17, 18, 20, 0.12); background: rgba(255, 255, 255, 0.6); font-size: 11px; }
.nbsw .nbsw-m > summary::-webkit-details-marker { display: none; }
.nbsw .nbsw-m[open] > summary { background: #111214; color: #fff; border-color: #111214; }
.nbsw .nbsw-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 90; display: flex; flex-direction: column; gap: 2px; min-width: 148px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid rgba(17, 18, 20, 0.1); box-shadow: 0 18px 40px -18px rgba(17, 18, 20, 0.45); }
.nbsw .nbsw-pop .nbsw-a { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.nbsw .nbsw-pop small { display: block; padding: 6px 12px 2px; color: #8a8372; font-size: 11px; }
/* 窄的地方（合伙人后台侧栏）用小号 */
.nbsw.nbsw-sm { font-size: 11.5px; }
.nbsw.nbsw-sm .nbsw-a { min-height: 24px; padding: 0 7px; }
@media (max-width: 767.98px) {
  .nbsw:not(.nbsw-always) .nbsw-d { display: none; }
  .nbsw:not(.nbsw-always) .nbsw-m { display: block; }
}
:root[data-theme="dark"] .nbsw .nbsw-d { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
:root[data-theme="dark"] .nbsw .nbsw-a { color: #c9cbd1; }
:root[data-theme="dark"] .nbsw .nbsw-a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
:root[data-theme="dark"] .nbsw .nbsw-a[aria-current="page"] { background: #F9F3E7; color: #111214; }
:root[data-theme="dark"] .nbsw .nbsw-m > summary { color: #c9cbd1; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .nbsw .nbsw-pop { background: #1b1d22; border-color: rgba(255, 255, 255, 0.12); }

/*
 * 主品牌小字「NB.market 牛逼市场」（11/30 Nathan「都挂上nb.market的主品牌在核心logo旁」）。基准第 9 节。
 * 放在标志＋站名的下面一行，左边对齐站名（缩进 = 标志宽 + 间距，用 --nbmk-indent 调）。点了去 nb.market，带 from=<本站>。
 * 用法：<div class="nbmk-brand"><a href="/">标志＋站名</a><a class="nbmk" href="https://nb.market/?from=xxx">NB.market 牛逼市场</a></div>
 */
.nbmk-brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; flex: none; }
.nbmk-brand > .nbmk { padding-left: var(--nbmk-indent, 36px); }
.nbmk { display: inline-block; font: 500 10.5px/1.2 Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.01em; color: #86600A; text-decoration: none; white-space: nowrap; }
.nbmk:hover { text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .nbmk { color: #E4BC61; }
/* 11/30 Nathan「可以引号说明“牛逼市场”中文理解」：主体是 NB.market，引号里的「牛逼市场」小一号、浅一档、不加粗 */
.nbmk-zh { font-size: 0.88em; font-weight: 400; opacity: 0.72; }
