/* ===== 全站统一顶栏 site-bar (1127e 用户拍板) =====
   所有页面同一套: Logo + 锦鲤标讯 + 副标题 | 栏目导航(当前页栏目不显示) | 登录/开通按钮(各页自己的, 放在 .sbar-auth 槽里)
   规则: 只用 .sbar* 类名, 不用 nav/header 标签 —— 各页旧样式里有 nav{} / .nav{} 这类针对标签和旧类的规则, 不能被它们误伤
   颜色全部写死(不引用各页 CSS 变量): 各页变量取值不同, 引用会导致同一顶栏在不同页变色
   栏目顺序/名称的唯一事实来源 = 各页 <!--SBAR--> 标记块(以 intro.html 为准, tests/site_bar_test.py 断言全站一致) */
:root{--sbar-h:60px}   /* 由 assets/site-bar.js 按实测高度回写, 供页面内吸顶二级条用 */
.sbar{position:sticky;top:0;z-index:80;background:rgba(13,17,23,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #26324a;color:#e9eef6;font-family:-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;line-height:1.4;text-align:left}
.sbar,.sbar *{box-sizing:border-box}
.sbar-in{max-width:1120px;margin:0 auto;padding:0 22px;height:60px;display:flex;align-items:center;gap:26px}
.sbar-brand{display:inline-flex;align-items:center;min-height:40px;font-size:18px;font-weight:800;color:#fff;letter-spacing:.08em;text-decoration:none;margin-right:auto;white-space:nowrap}
.sbar-brand img{width:36px;height:36px;margin:0 9px 0 0;padding:0;border:0;border-radius:50%;flex:none;display:block}
.sbar-brand .wm{display:inline-flex;align-items:center;gap:7px;color:#fff;font-style:normal}
.sbar-brand .nm{white-space:nowrap;color:#fff}
.sbar-brand .nm>span{color:#e0c084}
.sbar-brand em{font-style:normal;font-size:12px;font-weight:500;letter-spacing:.04em;color:#c9d4e0;line-height:1.2;white-space:nowrap;padding:0 0 0 8px;border:0;border-left:1px solid rgba(255,255,255,.22);margin:0}
.sbar-nav{display:flex;align-items:center;gap:22px;margin:0;padding:0}
.sbar-nav a{color:#98a6bd;font-size:14px;font-weight:600;line-height:1.4;padding:8px 0;margin:0;min-height:40px;display:inline-flex;align-items:center;white-space:nowrap;text-decoration:none;background:none;border:0;border-radius:0;cursor:pointer;transition:color .15s}
.sbar-nav a:hover,.sbar-nav a:focus-visible{color:#fff;text-decoration:none}
.sbar-auth{display:flex;align-items:center;gap:10px;flex:none;margin:0}
/* 登录按钮统一外观: 各页原来各写各的(方的/圆的/蓝的/金的), 在顶栏里一律金胶囊 */
.sbar-auth a,.sbar-auth button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;min-height:40px;margin:0;padding:0 16px;font-size:13.5px;font-weight:700;line-height:1.2;letter-spacing:0;border:1px solid transparent;border-radius:999px;cursor:pointer;text-decoration:none;background:linear-gradient(135deg,#d9b983,#a9823f);color:#1a1206;box-shadow:none;transition:box-shadow .2s}
.sbar-auth a:hover,.sbar-auth button:hover{color:#1a1206;text-decoration:none;box-shadow:0 6px 20px rgba(184,145,92,.35)}
.sbar-auth .up,.sbar-auth .btn-ghost,.sbar-auth .jl-ghost{background:transparent;color:#e9eef6;border-color:#3a4a6b;box-shadow:none}
.sbar-auth .up:hover,.sbar-auth .btn-ghost:hover,.sbar-auth .jl-ghost:hover{color:#e0c084;border-color:#b8915c;box-shadow:none}
.sbar-auth .jl-userbox{color:#e9eef6;font-size:13px;white-space:nowrap}
.sbar-auth .jl-userbox b{color:#e0c084}
.sbar-auth [hidden],.sbar-auth[hidden]{display:none!important}
/* 手机/平板: 顶栏右侧一律只留「登录 / 注册」。两个介绍页自带的金色开通按钮(#btnJoin)在此收起 —— 首屏正文里就有开通入口, 留在顶栏会把副标题挤成三行 */
/* #btnLogin 这里不能加 !important: 登录后页面脚本会给它写内联 display:none, 必须让内联生效, 否则已登录的人在手机上还看到「登录」 */
@media(max-width:1023px){.sbar-auth #btnJoin{display:none!important}.sbar-auth #btnLogin{display:inline-flex}}
/* 手机/平板: 登录后的账号块只留「👤 手机号」(带会员类型有 168px, 会把副标题挤成 7 行、顶栏撑到 158px); 下拉菜单不变 */
@media(max-width:1023px){.sbar-auth .jl-userbox b,.sbar-auth .jl-sep{display:none}}

/* 详情页在顶栏下方的一行返回入口(原在旧顶栏里) */
.sbar-sub{max-width:1120px;margin:0 auto;padding:6px 22px;font-size:13px;font-family:-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif}
.sbar-sub a{display:inline-flex;align-items:center;min-height:40px;color:inherit;text-decoration:none;font-weight:600}
.sbar-sub a:hover{text-decoration:underline}
@media(max-width:1023px){.sbar-sub{padding:2px 16px 6px}}
/* 手机/平板(<=1023): 顶栏折成两行, 第二行是栏目条(窄屏可横向滑动) —— 栏目导航任何宽度都不隐藏 */
@media(max-width:1023px){
  .sbar-in{height:auto;flex-wrap:wrap;padding:4px 16px;row-gap:0}
  .sbar-brand{flex:1 1 0;min-width:0}          /* 只占剩余空间: 换行容器里 flex 项不会自动收缩, 否则副标题两行时把按钮挤到下一行 */
  .sbar-brand .wm{gap:6px;min-width:0}
  .sbar-brand em{white-space:normal;letter-spacing:0;padding-left:7px;text-wrap:balance;flex:1;min-width:0}
  .sbar-nav{order:9;flex:0 0 100%;gap:4px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}   /* 放不下时右缘渐隐提示可滑动 */
  .sbar-nav::-webkit-scrollbar{display:none}
  .sbar-nav a{font-size:14px;min-height:40px;padding:0 10px;flex:none}
  .sbar-auth a,.sbar-auth button{padding:0 12px;font-size:13px}
}
/* 单行断点(1127e 实测): 内容区最宽 1120(内边距 44 -> 可用 1076)。6 个栏目 + 品牌区 + 按钮:
   gap14 需窗口 >=1163; 1024-1162 用 gap8 + 副标题两行 */
@media(min-width:1024px){.sbar-in{gap:14px}.sbar-nav{gap:14px}}
@media(min-width:1024px) and (max-width:1162px){.sbar-in{gap:8px}.sbar-nav{gap:8px}.sbar-brand .wm{gap:6px}.sbar-brand em{white-space:normal;line-height:1.3;padding-left:7px;text-wrap:balance;max-width:8.6em}}
@media(max-width:340px){.sbar-brand em{display:none}}   /* 320 窄屏只留 logo+名称 */
