/* ============================================================
 * FS1 · 页头 / 页脚 / 右侧悬浮条（照 FF 本地站 DataFaceScene 一比一移植）
 * ------------------------------------------------------------
 * 结构由 static/js/site-config.js 的 renderChrome() 渲染到占位符：
 *   <div id="fs-header"></div>  <div id="fs-footer"></div>  <div id="fs-sidebar"></div>
 * 页头 .fs-nav / 页脚 .fs-footer；右侧悬浮条渲染为 FS 原站同构的 .float-toolbar（非 FF 的 .dfs-sidebar）。
 * ⚠️ 页头页脚类名带 fs- 前缀，与站点旧版 .site-header / .site-footer / .footer-col
 *    完全隔离，未迁移的页面（h5、登录注册等）不受影响。
 * ============================================================ */

/* ---------- 公共变量（FF :root --dfs-* 的本地副本） ---------- */
/* ⚠️ .fs-topbar 必须列入变量宿主：否则 var(--hf-ink) 取不到值 → 背景透明 + 白字 → 登录/注册「看不见」 */
.fs-topbar,
.fs-nav,
.fs-footer,
.float-toolbar {
  --hf-primary:#1677ff;
  --hf-primary-d:#0e5fd8;
  --hf-ink:#0b0f19;
  --hf-text:#1f2733;
  --hf-text-2:#5b6472;
  --hf-text-3:#98a1af;
  --hf-line:#e6eaf0;
  --hf-shadow:0 6px 20px rgba(11,15,25,.06);
}

/* ---------- 公共容器（FF 全局 .wrap 的本地副本：1500px 居中，与内容区对齐） ---------- */
.fs-topbar .wrap,
.fs-nav .wrap{max-width:1500px;margin:0 auto;padding:0 32px;box-sizing:border-box}

/* ---------- 顶部公告条（可选：后台「页头页脚 → 顶部标语」留空则不渲染，即与 FF 完全一致） ---------- */
.fs-topbar{background:var(--hf-ink);color:rgba(255,255,255,.72);font-size:12.5px}
.fs-topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:34px}
.fs-topbar a{color:rgba(255,255,255,.72)}
.fs-topbar a:hover{color:#fff}
.fs-topbar .fs-auth{display:flex;align-items:center;gap:8px}
.fs-topbar .fs-auth .sep{opacity:.45}

/* ---------- 用户区入口字体颜色（后台「页头设置 → 用户区入口」可配，留空=自动适配所在区域） ----------
 * 用法：容器 .fs-auth / .fs-nav-right 上挂 --hf-auth-color / --hf-auth-hover；
 *       单个 <a> 上再挂 --hf-auth-color 即覆盖该项（CSS 变量就近优先）。
 * 未配置时按所处区域回落：深色公告条 → 白字；白色导航条 → 深字。 */
.fs-topbar .fs-auth .usr-name,
.fs-topbar .fs-auth .fs-nav-login{color:var(--hf-auth-color,rgba(255,255,255,.72))}
.fs-topbar .fs-auth .usr-name{color:var(--hf-auth-color,#fff)}
.fs-topbar .fs-auth .fs-nav-login:hover{color:var(--hf-auth-hover,#fff)}
.fs-nav-right .fs-nav-login{color:var(--hf-auth-color,var(--hf-text))}
.fs-nav-right .fs-nav-login:hover{color:var(--hf-auth-hover,var(--hf-primary))}
.fs-nav-right .usr-name{color:var(--hf-auth-color,var(--hf-text))}
.fs-auth .usr-name,.fs-nav-right .usr-name{margin-right:4px}

/* ---------- 页头占位容器：预留导航 + 顶部标语高度，消除 JS 注入前的布局跳动（FOUC） ----------
   #fs-header 内容由 site-config.js 异步注入（先读 localStorage 同步渲染、再 fetch 服务端二次渲染）。
   本用户站点「顶部标语」已启用：header 实际高度 = 顶部标语条 .fs-topbar(.wrap 34px) + 导航 .fs-nav(.wrap 66px + 1px 底边线 = 67px) = 101px。
   若只预留 67px，标语条出现时把下方 Hero 整块下推 34px → 标题「真人人脸授权 · 企业合规使用」瞬间错位后归位。
   直接预留完整 101px 后，无论标语条何时注入、localStorage 首帧是否为空，布局一致、不再跳动。
   ⚠️ 通用部署若未启用顶部标语，101px 会在导航下留出 34px 空隙 —— 改回 `#fs-header{min-height:67px}` 并改用 `.fs-nav` 高度即可。 */
#fs-header{min-height:101px}
/* ---------- 页头导航（FF .dfs-nav 同构：sticky 白底 66px） ---------- */
.fs-nav{position:sticky;top:0;z-index:90;background:#fff;border-bottom:1px solid var(--hf-line);transition:box-shadow .2s}
.fs-nav.stuck{box-shadow:0 4px 16px rgba(11,15,25,.08)}
.fs-nav .wrap{display:flex;align-items:center;height:66px;gap:34px}

.fs-logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:20px;color:var(--hf-ink);flex:none}
/* 页头 Logo：默认与 FF 本地站一致（宽 180px ≈ 高 58px）；后台「页头设置 → Logo 宽/高」可覆盖 */
.fs-logo img{width:180px;height:auto;max-height:64px;object-fit:contain;display:block}
.fs-logo .fs-logo-text{font-size:18px;letter-spacing:.2px}

.fs-menu{display:flex;gap:6px;list-style:none;margin:0;padding:0;flex:1}
.fs-menu a{display:block;padding:9px 15px;border-radius:8px;color:var(--hf-text);font-size:15px;text-decoration:none}
.fs-menu a:hover{color:var(--hf-primary);background:#f0f6ff}
.fs-menu a.on{color:var(--hf-primary);font-weight:600;background:#f0f6ff}

.fs-nav-right{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}
.fs-nav-cta{display:inline-flex;align-items:center;padding:9px 18px;border-radius:8px;
  border:1px solid var(--hf-primary);color:var(--hf-primary);background:#fff;font-size:14.5px;font-weight:600;text-decoration:none}
.fs-nav-cta:hover{background:#f0f6ff}
.fs-nav-login{font-size:14.5px;color:var(--hf-text);text-decoration:none}
.fs-nav-login:hover{color:var(--hf-primary)}

.fs-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:8px}
.fs-hamburger span{width:22px;height:2px;background:var(--hf-ink);border-radius:2px}

@media (max-width:880px){
  .fs-nav .wrap{gap:14px}
  .fs-hamburger{display:flex}
  .fs-menu{display:none}
  .fs-menu.open{display:flex;position:absolute;top:66px;left:0;right:0;background:#fff;flex-direction:column;padding:12px 20px;border-bottom:1px solid var(--hf-line)}
  .fs-nav-right .fs-nav-cta{padding:7px 12px;font-size:13px}
}

/* ---------- 页脚（FF .site-footer 同构：深底 + 品牌列/链接列/热线列 + 底行） ---------- */
.fs-footer{background:rgba(8,11,18,.96);color:rgba(255,255,255,.6);padding:46px 0 22px;font-size:13px;border-top:1px solid rgba(255,255,255,.08)}
.fs-footer .footer-inner{max-width:1500px;margin:0 auto;padding:0 32px;display:flex;flex-wrap:wrap;align-items:flex-start;gap:34px 48px}
.fs-footer .footer-col{flex:1 1 150px;min-width:150px}
.fs-footer .footer-col.brand-col{flex:1.55 1 250px;min-width:250px}
.fs-footer .footer-col.hotline-col{flex:1.35 1 220px}
.fs-footer .footer-col h4{font-size:15px;font-weight:700;margin:0 0 16px;color:#fff}
.fs-footer .footer-col a,
.fs-footer .footer-col p{display:block;font-size:13px;color:rgba(255,255,255,.6);text-decoration:none;margin:0 0 10px;line-height:1.5}
.fs-footer .footer-col a:hover{color:var(--hf-primary)}
/* 页脚 Logo：与页头完全独立（fs_footer_cfg.logo / logo_width / logo_height / logo_show） */
.fs-footer .footer-logo{width:180px;height:auto;max-width:260px;object-fit:contain;margin:0 0 14px;display:block}
.fs-footer .footer-brief{font-size:13px;color:rgba(255,255,255,.6);margin-bottom:10px;line-height:1.6}
.fs-footer .footer-disc{font-size:12px;color:rgba(255,255,255,.35);line-height:1.7}
.fs-footer .footer-hotline{font-size:22px;font-weight:800;color:var(--hf-primary);margin:6px 0 10px}
.fs-footer .footer-qr{width:96px;height:96px;background:#fff;border-radius:6px;overflow:hidden;margin-top:8px}
.fs-footer .footer-qr img{width:100%;height:100%;object-fit:cover}
.fs-footer .footer-qr-cap{font-size:12px;color:rgba(255,255,255,.4);margin-top:6px;margin-bottom:0}
.fs-footer .footer-bottom{max-width:1500px;margin:30px auto 0;padding:18px 32px 0;border-top:1px solid rgba(255,255,255,.08);text-align:center;font-size:12px;color:rgba(255,255,255,.4)}
.fs-footer .footer-copy{color:rgba(255,255,255,.4)}
.fs-footer .footer-copy i.dot{margin:0 10px;font-style:normal}
.fs-footer .footer-copy a{color:inherit;text-decoration:none}
.fs-footer .footer-copy a:hover{color:#fff;text-decoration:underline}
/* 页脚协议中心（随后台「内容 → 协议文案」的 PC 前台开关自动显隐） */
.fs-footer .footer-ag{margin-bottom:10px;line-height:1.9}
.fs-footer .footer-ag a{color:rgba(255,255,255,.6);text-decoration:none}
.fs-footer .footer-ag a:hover{color:#fff;text-decoration:underline}
.fs-footer .footer-ag i.dot{margin:0 8px;font-style:normal;opacity:.4}
/* 公安备案（公网安备）：徽标 + 备案号，可关、可跳新窗口 */
.fs-footer .police-link{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;text-decoration:none;color:inherit;transition:color .15s}
.fs-footer a.police-link:hover{color:#fff;text-decoration:underline}
.fs-footer .police-badge{width:16px;height:16px;display:inline-block;vertical-align:-3px;flex:none}

@media (max-width:760px){
  .fs-footer .footer-inner{gap:28px 20px}
  .fs-footer .footer-col{flex:1 1 42%;min-width:130px}
  .fs-footer .footer-col.hotline-col{flex:1 1 100%;min-width:0}
}

/* ---------- 右侧悬浮工具条（与 FS 原站 .float-toolbar 一比一，非 FF 的 .dfs-sidebar） ----------
   结构：aside.float-toolbar > .toolbar-item[data-label] > (.tool-btn > img + span) + .toolbar-card
   由 static/js/site-config.js 的 renderFsSidebar() 动态渲染到 #fs-sidebar 占位符。 */
.float-toolbar {
  position: fixed;
  right: 1%;
  top: 25%;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  border: 1px solid #ededed;
  border-top: 0;
  background: #fff;
}
.toolbar-item {
  position: relative;
  width: 58px;
  height: 58px;
  background: #fff;
  border-top: 1px solid #ededed;
  cursor: pointer;
}
.toolbar-item .tool-btn {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toolbar-item .tool-btn img {
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: opacity 0.3s linear;
}
.toolbar-item .tool-btn svg {
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: opacity 0.3s linear;
}
.toolbar-item .tool-btn span {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 58px;
  height: 58px;
  padding: 0 2px;
  background: var(--hf-primary);
  line-height: 14px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  opacity: 0;
  box-sizing: border-box;
  transition: opacity 0.3s linear;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 2026-11-01：「AI客服」4 字在 58px 内不再折成两行（原 padding 14px 15px 会挤出换行） */
  white-space: nowrap;
}
.toolbar-item:hover .tool-btn img { opacity: 0; }
.toolbar-item:hover .tool-btn svg { opacity: 0; }
.toolbar-item:hover .tool-btn span { opacity: 1; }

/* 弹窗卡片 */
.toolbar-card {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  transform-origin: right center;
  width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  color: #333;
  text-align: center;
}
.toolbar-item:hover .toolbar-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.toolbar-card::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}
.toolbar-card .qq-avatar {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: #f0f2f5;
  display: grid; place-items: center; font-size: 28px;
}
/* 2026-11-01：AI客服卡片头像用图标本身（蓝底圆形图标），去掉灰底避免双层圆 */
.toolbar-card .qq-avatar.ai-avatar { background: transparent; }
.toolbar-card .qq-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.toolbar-card .contact-btn {
  display: inline-block; padding: 6px 18px; border: 1px solid var(--hf-primary); border-radius: 20px;
  color: var(--hf-primary); font-size: 13px; text-decoration: none; margin: 8px 0; transition: all 0.2s;
  /* 2026-11-01：AI客服入口用 <button>（替换原 QQ <a>），清掉浏览器默认按钮底色/字体，保持与链接一致 */
  background: transparent; font-family: inherit; cursor: pointer; line-height: normal;
}
.toolbar-card .contact-btn:hover { background: var(--hf-primary); color: #fff; }
.toolbar-card .contact-info { font-size: 13px; color: #666; line-height: 1.6; }
.toolbar-card .contact-info strong { display: block; font-size: 18px; color: var(--hf-primary); margin: 6px 0; }
.toolbar-card .qr-img { width: 150px; height: 150px; margin: 0 auto; background: #f5f5f5; border-radius: 4px; overflow: hidden; }
.toolbar-card .qr-img img { width: 100%; height: 100%; object-fit: cover; }
.toolbar-card .qr-tip { font-size: 12px; color: #888; margin-top: 10px; }

/* 返回顶部：顶部时不出现（display:none 不占位），滚动到下方才淡入 */
.backtop { display: none; }
.backtop.visible {
  display: block;
  animation: backtopIn 0.25s ease both;
}
@keyframes backtopIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .float-toolbar { display: none; }
}

/* ── 顶栏「消息」入口 + 未读角标（2026-10-14 张总令：消息中心移到右上角，
      未读以红色信封 + 条数提醒；角标由 site-config.js::loadMsgBadge() 异步填充） ── */
.fs-nav-login.us-nav-msg { display:inline-flex; align-items:center; gap:5px; }
.fs-nav-login.us-nav-msg .us-msg-ico { display:block; flex:none; }
.fs-nav-login.us-nav-msg .us-msg-badge {
  display:inline-block; min-width:17px; height:17px; line-height:17px; padding:0 5px;
  border-radius:9px; background:#e34d59; color:#fff; font-size:11px; font-weight:600;
  text-align:center; font-variant-numeric:tabular-nums;
}
.fs-nav-login.us-nav-msg .us-msg-badge[hidden] { display:none; }
@media (max-width: 900px) { .fs-nav-login.us-nav-msg span:not(.us-msg-badge) { display:none; } }

/* ── 顶栏「管理」下拉窗口（2026-10-17 张总令：管理入口改成下拉，不平铺；
      内含 进入后台 / 切换账号 / 返回管理，仅超管与管理员可见。
      配色取脸厂蓝 #1677ff，不引外部主题色） ── */
.us-adm { position:relative; display:inline-flex; align-items:center; }
.us-adm-tg { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
.us-adm-tg .us-adm-caret { display:block; flex:none; transition:transform .18s ease; }
.us-adm-tg[aria-expanded="true"] .us-adm-caret { transform:rotate(180deg); }
.us-adm-menu {
  position:absolute; top:calc(100% + 10px); right:0; z-index:9999;
  width:264px; padding:10px; background:#fff; border-radius:10px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 12px 32px rgba(16,24,40,.16);
  text-align:left; color:#1f2329;
}
/* [hidden] 必须压过上面的 display，否则下拉永远展开（历史踩点） */
.us-adm-menu[hidden] { display:none !important; }
.us-adm-menu::before {
  content:""; position:absolute; top:-6px; right:16px; width:10px; height:10px;
  background:#fff; border-left:1px solid rgba(0,0,0,.06); border-top:1px solid rgba(0,0,0,.06);
  transform:rotate(45deg);
}
.us-adm-item {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:9px 10px; border-radius:8px; color:#1f2329; font-size:14px; text-decoration:none;
}
.us-adm-item:hover { background:#f2f7ff; color:#1677ff; }
.us-adm-sub { font-size:12px; color:#86909c; }
.us-adm-sep { height:1px; margin:6px 4px; background:#eef0f3; }
.us-adm-switch { padding:4px 6px 2px; }
.us-adm-label { font-size:13px; font-weight:600; color:#1f2329; margin-bottom:7px; }
.us-adm-label span { display:block; font-weight:400; font-size:12px; color:#86909c; margin-top:2px; }
.us-adm-row { display:flex; gap:6px; }
.us-adm-row input {
  flex:1 1 auto; min-width:0; height:34px; padding:0 10px; font-size:13px;
  border:1px solid #dcdfe6; border-radius:7px; color:#1f2329; background:#fff; outline:none;
}
.us-adm-row input:focus { border-color:#1677ff; box-shadow:0 0 0 2px rgba(22,119,255,.12); }
.us-adm-row button {
  flex:none; height:34px; padding:0 14px; border:none; border-radius:7px; cursor:pointer;
  background:#1677ff; color:#fff; font-size:13px; font-weight:600;
}
.us-adm-row button:hover { background:#0958d9; }
.us-adm-row button:disabled { opacity:.6; cursor:default; }
.us-adm-msg { min-height:16px; margin-top:6px; font-size:12px; line-height:1.5; color:#86909c; }
.us-adm-msg.err { color:#e34d59; }
.us-adm-msg.ok { color:#00994d; }
@media (max-width: 900px) {
  .us-adm-menu { width:240px; right:-6px; }
  .us-adm-menu::before { display:none; }
}

/* ============================================================================
 * 右上角用户面板（2026-10-19 张总令：头像触发 + 悬浮面板）
 * 口径：脸厂蓝 #1677ff / 深蓝 #0958d9 / 浅底 #f2f7ff / 正文 #1f2329 / 次要 #86909c
 * 管理区只在管理员账号渲染；普通用户整块不存在（HTML 层面就不输出）
 * ========================================================================== */
.us-menu { position: relative; display: inline-flex; align-items: center; }
.us-menu-tg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 8px 3px 3px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
  transition: background .15s ease;
}
.us-menu-tg:hover { background: rgba(22,119,255,.08); }
.us-menu-tg:focus-visible { outline: 2px solid #1677ff; outline-offset: 2px; }
.us-menu-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1677ff; color: #fff; font-size: 13px; line-height: 1;
  overflow: hidden;
}
.us-menu-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-menu-nm { font-size: 14px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-menu-caret { display: block; flex: none; transition: transform .18s ease; }
.us-menu-tg[aria-expanded="true"] .us-menu-caret { transform: rotate(180deg); }

.us-menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 1000000;
  width: 320px; background: #fff; border: 1px solid #e5e6eb; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31,35,41,.14);
  overflow: hidden; text-align: left;
}
.us-menu-pop[hidden] { display: none !important; }

/* 身份区 */
.us-pop-hd { position: relative; padding: 0 16px 14px; background: #f2f7ff; text-align: center; }
.us-pop-hd::before {
  content: ""; display: block; height: 46px; margin: 0 -16px;
  background: #e8f1ff;
}
.us-pop-av {
  width: 56px; height: 56px; border-radius: 50%; margin: -28px auto 0;
  border: 3px solid #fff; background: #1677ff; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; overflow: hidden;
}
.us-pop-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-pop-nm { margin-top: 7px; font-size: 15px; font-weight: 500; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-pop-bd {
  display: inline-block; margin-top: 6px; padding: 1px 9px; border-radius: 999px;
  font-size: 11px; line-height: 18px; color: #0958d9;
  background: #fff; border: 1px solid #bcd7ff;
}

/* 管理区（仅管理员） */
.us-adm-box { padding: 10px 12px 4px; border-bottom: 1px solid #f2f3f5; }
.us-admi {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; margin-bottom: 6px; border: 1px solid #bcd7ff; border-radius: 8px;
  background: #f2f7ff; color: #0958d9; font: inherit; font-size: 13px;
  text-decoration: none; cursor: pointer; text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.us-admi:hover { background: #e6f0ff; border-color: #1677ff; }
.us-admi .us-ico { flex: none; }
.us-admi span { flex: 1; color: #1f2329; }
.us-admi em { font-style: normal; font-size: 11px; color: #86909c; flex: none; }
.us-admi.us-adm-back { color: #0958d9; }

/* 快捷宫格 */
.us-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; padding: 14px 12px 12px; }
.us-gi { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.us-gi-ico {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f2f7ff; color: #1677ff;
  transition: background .15s ease, transform .15s ease;
}
.us-gi:hover .us-gi-ico { background: #e6f0ff; transform: translateY(-1px); }
.us-gi-t { font-size: 11px; line-height: 1.2; color: #4e5969; text-align: center; }
.us-gi:hover .us-gi-t { color: #1677ff; }
.us-msg-badge {
  position: absolute; top: -3px; right: -4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: #f53f3f; color: #fff;
  font-size: 10px; line-height: 15px; text-align: center; font-style: normal;
}
.us-msg-badge[hidden] { display: none !important; }

/* 底部退出 */
.us-pop-ft { border-top: 1px solid #f2f3f5; padding: 8px 12px 10px; }
.us-pop-ft .usr-logout {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 0; border-radius: 8px; color: #86909c;
  font-size: 13px; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.us-pop-ft .usr-logout:hover { background: #fff1f0; color: #f53f3f; }

/* 切换账号弹层 */
.us-sw-mask {
  position: fixed; inset: 0; z-index: 1000002; background: rgba(31,35,41,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.us-sw-mask[hidden] { display: none !important; }
.us-sw-box {
  width: 100%; max-width: 380px; background: #fff; border-radius: 12px;
  padding: 22px 22px 16px; box-shadow: 0 16px 44px rgba(31,35,41,.2);
}
.us-sw-box h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: #1f2329; }
.us-sw-tip { margin: 0 0 14px; font-size: 12px; line-height: 1.6; color: #86909c; }
.us-sw-row { display: flex; gap: 8px; }
.us-sw-row input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid #e5e6eb; border-radius: 8px; font: inherit; font-size: 14px; color: #1f2329;
}
.us-sw-row input:focus { outline: none; border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.us-sw-row input[type=number]::-webkit-outer-spin-button,
.us-sw-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.us-sw-row input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.us-sw-row button {
  flex: none; height: 38px; padding: 0 20px; border: 0; border-radius: 8px;
  background: #1677ff; color: #fff; font: inherit; font-size: 14px; cursor: pointer;
}
.us-sw-row button:hover:not(:disabled) { background: #0958d9; }
.us-sw-row button:disabled { opacity: .6; cursor: not-allowed; }
.us-adm-msg { min-height: 18px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #86909c; }
.us-adm-msg.err { color: #f53f3f; }
.us-adm-msg.ok { color: #00b42a; }
.us-sw-act { margin-top: 8px; text-align: right; }
.us-sw-cancel {
  padding: 6px 16px; border: 1px solid #e5e6eb; border-radius: 8px;
  background: #fff; color: #4e5969; font: inherit; font-size: 13px; cursor: pointer;
}
.us-sw-cancel:hover { border-color: #c9cdd4; color: #1f2329; }

/* 窄屏：只留头像，名字收起 */
@media (max-width: 900px) {
  .us-menu-nm { display: none; }
  .us-menu-tg { padding: 3px; }
  .us-menu-pop { width: min(92vw, 320px); }
}
