/* ============================================================
   天枢导航 · 扁平科技风设计系统 v1.2
   主题：dark（默认）/ light
   风格：扁平化、细边框、克制强调色、线性图标、数据感排版
   参考：主流科技风导航站（iTab / Infinity / 青轻）视觉语言
   ============================================================ */
:root {
  /* R161 建立版心令牌；R163 按产品方要求回到 1.0 版的 1440。
     取值依据：1.00.012 时 .main / .topbar-inner 都是 max-width:1440px，R161 收成 1200 后
     在 1680/1920 视口下两侧留白过多（实测占比 71% / 63%），卡片被挤成六列却仍显窄。
     1440 是主流桌面首页的常见上限（1920 屏占 75%，两侧各 240px），既不满屏也不局促；
     小于 1440 的视口由 width:100% + 两侧 24px 内边距兜住，自动变成「满宽留边」。 */
  --wrap: 1440px;
  --bg: #0c0f16;
  --bg2: #10141d;
  --bg3: #141926;
  --card: #12161f;
  --card-solid: #161b26;
  /* R178：全站有 13 处写了 background: var(--card-bg)，但这条令牌从来没定义过 ——
     浏览器按「无效值」处理 ⇒ 那些子卡片（购买档位、我的订单、搜索结果、广告位…）背景全透明，
     直接露出页面底色，同一个页面里一半有底一半没底，视觉上就是「乱」的主要来源之一。
     此处补上定义并让它跟随 --card，明暗两档自动同步。 */
  --card-bg: var(--card);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6eaf2;
  --text-dim: #9aa4b5;
  --text-faint: #8892A8;   /* R160：原 #66708a 压在 #10141D 上 3.73:1，暗色下这些小字读不清 */
  --primary: #2f7bff;
  /* R160：白字实心底专用值。--primary(#2f7bff) 压白字只有 3.89:1，
     主站 --c1 亮色值 #2563EB 压白字 4.99:1 —— 实心块（主按钮 / 分段选中）一律用它。 */
  --primary-solid: #2563EB;
  /* R160：彩色「文字」专用深档（主站 --c1-ink 语义）。本体 --primary 压在浅底只有 3.3–3.6:1，
     只许做描边/底/图标；凡是给人读的彩色字一律走 ink。暗色下与本体同值。 */
  --primary-ink: #8FC0FF;
  --primary2: #4f6ef7;
  --accent: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
  --hover-bg: rgba(47, 123, 255, 0.10);
  --input-bg: #0f141d;
  /* R180 · 背景光晕令牌（深色）：方格底纹已按产品方铁律全局禁用，这里只留光晕。
     --tech-line 同步删除（R178 遗留，只被网格用过）。 */
  --tech-glow-a: rgba(47, 123, 255, 0.34);
  --tech-glow-b: rgba(34, 211, 238, 0.20);
  --tech-glow-c: rgba(79, 110, 247, 0.18);
  --topbar-bg: rgba(12, 15, 22, 0.72);
}
html[data-theme="light"] {
  /* R160（A6 亮色令牌对齐）：此前亮色底色三端三套——客户端 #eef2f9、落地页/面板 #f4f7fc，--text-dim 也有 #56688c / #5a6b85 两档，同一个产品切到明亮模式像换了套皮肤。现统一取 EDIY 主站设计系统 v3.1.2 §2 的值：bg/surface/text/sub 全部照抄，--text-faint 取 #57697D（比 --text-dim 淡一档，且在 bg/bg2/bg3/白卡四种底上对比度都 ≥4.63:1）。暗色不动。 */
  --bg:#F1F4F9;
  --bg2:#E4E9F1;
  --bg3:#E8EDF5;
  --card:#ffffff;
  --card-solid: #ffffff;
  --line:#C9D3E2;
  --line-strong:#BFC9D9;
  --text:#33445C;
  --text-dim:#54657C;
  /* R158 把 #93a4c4 加深到 #6b7789（4.04:1，仍不到 4.5）；R160 统一取 #57697D，
     在 bg / bg2 / bg3 / 白卡四种底上均 ≥4.63:1，且比 --text-dim(#54657C) 淡一档。 */
  --text-faint:#57697D;
  --primary: #2f7bff;
  --primary-solid: #2563EB;
  --primary-ink: #1D4ED8;
  --primary2: #4f6ef7;
  --accent: #0e9fc4;
  --shadow: 0 6px 20px rgba(30, 64, 140, 0.10);
  --shadow-sm: 0 1px 2px rgba(30, 64, 140, 0.07);
  --hover-bg: rgba(47, 123, 255, 0.08);
  --input-bg:#ffffff;
  /* R180 · 背景光晕令牌（明亮）：浅底上不能"发光"，否则整页发灰、白卡边缘脏。
     只留一层极浅的冷色空气感。--tech-line 已随方格底纹一并删除。 */
  --tech-glow-a: rgba(47, 123, 255, 0.20);
  --tech-glow-b: rgba(14, 159, 196, 0.15);
  --tech-glow-c: rgba(79, 110, 247, 0.12);
  --topbar-bg: rgba(241, 244, 249, 0.80);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
#app { min-height: 100vh; position: relative; }

/* ============================================================
   R180 · 背景层（删掉 R178 的科技网格，只留光晕）
   ------------------------------------------------------------
   产品方 2026-11-01 原话：「客户端全局方格子的底纹太乱了，取消，并写进铁律，
   以后软件开发的项目不要再使用。」
   ⇒ 方格/网格底纹从此**全局禁用**（客户端、落地页、面板、以后任何新项目一律不做），
     相关令牌 --tech-line 已一并删除，别再加回来。

   设计约束（改样式前先读）：
     1. 只允许「大面积低饱和冷色光晕」，不叠噪点、不加扫描线、不做粒子动画、**不做网格/方格**。
     2. 纯 CSS 绘制：零图片、零 canvas、零 JS 定时器 ⇒ 不增包体、不掉帧、离线可用。
     3. 明暗各一套令牌（--tech-glow-*）。浅色下压到"几乎看不见但在"，深色下才允许发光。
     4. 可读性硬约束：卡片与顶栏保持自己的不透明底色，装饰只出现在页边与卡片间隙。
   z-index 用 -1 且 #app 保持 position:relative（不要给 #app 加 z-index），
   .bg-tech 才能既盖住 body 底色、又整体压在所有内容之下。
   ============================================================ */
.bg-tech { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-tech i { position: absolute; display: block; }
.bg-tech .bt-glow { border-radius: 50%; filter: blur(72px); }
.bg-tech .bt-a { width: 760px; height: 520px; left: -220px; top: -250px; background: radial-gradient(circle, var(--tech-glow-a), transparent 68%); }
.bg-tech .bt-b { width: 620px; height: 460px; right: -190px; top: -210px; background: radial-gradient(circle, var(--tech-glow-b), transparent 70%); }
.bg-tech .bt-c { width: 900px; height: 520px; left: 50%; bottom: -430px; transform: translateX(-50%); background: radial-gradient(circle, var(--tech-glow-c), transparent 72%); }
/* 小屏收窄：关掉底部光晕，省一次模糊合成 */
@media (max-width: 620px) {
  .bg-tech .bt-c { display: none; }
  .bg-tech .bt-glow { filter: blur(56px); }
}
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 135, 160, 0.35); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 135, 160, 0.55); }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

/* ---------------- 通用控件 ---------------- */
.input, .select {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  height: 36px;
  padding: 0 12px;
  font-size: 13.5px;
  line-height: 1;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea.input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.16); background: var(--card-solid); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.65; }
.select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23788aa8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
.label { display: block; font-size: 12.5px; color: var(--text-dim); margin: 8px 0 8px; font-weight: 500; }
.hint { font-size: 12px; color: var(--text-faint); line-height: 2; }
/* 必填星号（R173 铁律）：所有表单必填项一律用 <span class="req">*</span>，
   固定 #E5484D（在明暗两种底色上对比度均 ≥4.5:1），不允许写成裸字符 `*`。
   星号不加粗、不作动效，只做「必须填」的视觉锚点。 */
.req { color: #E5484D; font-weight: 700; margin-left: 2px; }
html[data-theme="dark"] .req { color: #FF6B6B; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  height: 36px; box-sizing: border-box;
  padding: 0 16px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { border-color: var(--primary); color: var(--primary-ink); background: var(--hover-bg); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary-solid); border-color: var(--primary-solid); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #2668e0; border-color: #2668e0; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(248, 113, 113, 0.45); color: var(--danger); }
.btn.danger:hover { background: rgba(248, 113, 113, 0.12); border-color: var(--danger); color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
/* 按钮内图标统一尺寸，保证带图标与纯文字按钮高度/基线一致 */
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* 全局兜底：DOM 相邻的按钮自动拉开间距，杜绝"按钮贴按钮"（真正用 flex/gap 的容器除外） */
.btn + .btn { margin-left: 10px; }
.toolbar .btn + .btn, .top-right .btn + .btn, .m-foot > .btn + .btn { margin-left: 0; }
.icon-btn {
  position: relative;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .16s ease;
}
.icon-btn:hover { color: var(--primary-ink); border-color: var(--primary); background: var(--hover-bg); }
.badge {
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger);
  color: #fff; font-size:11px; font-weight: 700;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
  background: rgba(47, 123, 255, 0.12); color: var(--primary-ink);
  border: 1px solid rgba(47, 123, 255, 0.28);
}
.tag.admin { background: rgba(79, 110, 247, 0.12); color: var(--primary2); border-color: rgba(79, 110, 247, 0.3); }
.tag.super { background: rgba(250, 204, 21, 0.12); color: #b45309; border-color: rgba(250, 204, 21, 0.4); }
html[data-theme="dark"] .tag.super { color: #fbbf24; }
/* R178：补 gray / amber / red 三个变体 —— admin.js 早就在用 class="tag gray"，但样式一直没定义，
   落到 .tag 基类上渲染成蓝色（「已取消」被画成蓝色标签）。授权页的状态标签也统一走这三档。 */
.tag.gray { background: rgba(120, 135, 160, 0.13); color: var(--text-dim); border-color: rgba(120, 135, 160, 0.30); }
.tag.amber { background: rgba(245, 158, 11, 0.13); color: #a16207; border-color: rgba(245, 158, 11, 0.32); }
html[data-theme="dark"] .tag.amber { color: #FBBF24; }
.tag.red { background: rgba(248, 113, 113, 0.13); color: #b91c1c; border-color: rgba(248, 113, 113, 0.34); }
html[data-theme="dark"] .tag.red { color: #FCA5A5; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 12px; margin-top: 8px; }
.chk-grid .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); transition: border-color .15s; }
.chk-grid .chk:hover { border-color: var(--primary); }
.chk-grid .chk input { accent-color: var(--primary); }
/* R130：登录页「记住我」开关（默认勾选=7 天免登录；取消=关浏览器即退出，公共电脑场景） */
.auth-remember { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text); cursor: pointer; user-select: none; }
.auth-remember input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.auth-remember span { font-weight: 500; }
.auth-remember em { font-style: normal; font-size: 12px; color: var(--text-dim); }
.empty { color: var(--text-faint); text-align: center; padding: 28px 12px; font-size: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
.status-dot.off { background: var(--text-faint); }
.lv-info { color: var(--primary-ink); }
.lv-warn { color: var(--warn); }
.lv-important { color: var(--danger); }
.pin { font-size:11px; font-weight: 600; color: var(--danger); background: rgba(248, 113, 113, 0.12); padding: 1px 6px; border-radius: 4px; margin-left: 6px; border: none; line-height: 1.4; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { display: none; }
.switch i {
  position: absolute; inset: 0; border-radius: 12px;
  background: rgba(120, 135, 160, 0.35);
  transition: background .2s;
}
.switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
/* 免费版锁定开关：置灰不可操作（广告固定展示） */
.switch.lock { cursor: not-allowed; opacity: .55; filter: grayscale(.5); }
.switch.lock input { display: none; }

/* 分段选择（模式切换 / 全部-收藏 / 登录注册） */
.seg, .mode-switch, .auth-tabs {
  display: inline-flex; gap: 3px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.seg .opt, .mode-switch .opt, .auth-tabs .opt {
  padding: 6px 14px; border-radius: 7px;
  font-size: 13px; color: var(--text-dim);
  cursor: pointer; user-select: none;
  transition: all .16s ease; white-space: nowrap;
  position: relative;
}
.seg .opt:hover, .mode-switch .opt:hover, .auth-tabs .opt:hover { color: var(--text); }
.seg .opt.on, .mode-switch .opt.on, .auth-tabs .opt.on {
  background: var(--primary-solid);
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 123, 255, 0.4);
}
/* 自动模式角标：高亮实际生效模式并标注"自动识别" */
.mode-switch .opt.on .mode-auto-tag {
  display: inline-block; font-size:11px; font-weight: 500;
  margin-left: 5px; padding: 0 4px; line-height: 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}
/* R158：明亮模式下这个角标原来只改了底色（40% 白），文字仍继承 #fff ⇒ 白字压浅蓝底 2.19:1。
   改为浅底 + 深蓝字，既与选中态区分，又保证读得清。 */
html[data-theme="light"] .mode-switch .opt.on .mode-auto-tag { background: rgba(255, 255, 255, 0.92); color: #1a4fbf; }
/* R158：明亮模式下 --primary(#2f7bff) 压浅色渐变底约 3:1，徽标属关键状态信息，改深蓝。 */
html[data-theme="light"] .ver-badge.pro { color: #1a4fbf; }
/* R158（A3 明亮模式）：以下三处都是「暗色好、亮色崩」的典型——
   ① 图片广告角标白字压 rgba(0,0,0,.28)，在浅色卡片上背景被冲淡成灰，只剩 2.2:1；
   ② 选中分组标签用 --primary 压浅蓝渐变底，2.89:1；
   ③「推荐」徽标 #eab308 压 12% 黄底，1.81:1，几乎看不见。
   统一在明亮模式下换成深底/深字，暗色一律不动。 */
html[data-theme="light"] .nav-tab.on { color: #1a4fbf; }
html[data-theme="light"] .g-rec { color: #7c4a03; background: rgba(250, 204, 21, 0.20); border-color: rgba(180, 120, 0, 0.40); }

/* 在线演示环境登录提示（账号与口令见安装向导，数据重启还原） */
.demo-tip {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: rgba(47, 123, 255, 0.08);
  border: 1px solid rgba(47, 123, 255, 0.25);
  color: var(--text-dim); font-size: 12px; line-height: 1.6;
}
.demo-tip b { color: var(--primary-ink); }

/* 弹窗 */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 12, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 560px; max-width: 100%; max-height: 88vh; overflow: auto;
  background: var(--card-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: popIn .2s cubic-bezier(.2, .9, .3, 1.1);
}
.modal.wide { width: 860px; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.modal h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 14px; }
.modal h3 a { font-size: 12.5px; font-weight: 600; color: var(--primary-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; opacity: .9; }
.modal h3 a:hover { opacity: 1; text-decoration: underline; }
.modal h3 .close-x { margin-left: auto; font-size: 15px; line-height: 1; padding: 3px 6px; border-radius: 6px; transition: background .15s; }
.modal h3 .close-x:hover { background: var(--line); }
.m-body { min-height: 20px; }
.m-foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.m-foot .btn { min-width: 112px; justify-content: center; }
.upg-file { font-size: 12.5px; color: var(--text-dim); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upg-file:empty { display: none; }
.upg-prog { width: 100%; }
.upg-bar { height: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.upg-bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .3s ease; }
.upg-pending { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(245,158,11,.08)); border: 1px solid rgba(251,191,36,.45); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: var(--text); box-shadow: 0 2px 10px rgba(251,191,36,.08); }
.upg-pending .btn { margin-left: auto; }
/* 升级页 hero（渐变科技面板） */
.card.upg-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(47,123,255,.10) 0%, rgba(14,165,233,.12) 100%), var(--card); border: 1px solid rgba(47,123,255,.22); color: var(--text); padding: 26px 30px; position: relative; overflow: hidden !important; box-shadow: var(--shadow-sm); }
.upg-hero::before, .upg-hero-deco { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.upg-hero::before { right: -70px; top: -90px; width: 240px; height: 240px; background: rgba(47,123,255,.07); }
.upg-hero-deco { right: 130px; bottom: -110px; width: 200px; height: 200px; background: rgba(14,165,233,.09); }
.upg-hero-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.upg-hero-tag { font-size: 11.5px; letter-spacing: 3px; color: var(--text-faint); font-weight: 600; }
.upg-hero .ver-big { font-size: 46px; color: var(--primary-ink); text-shadow: 0 2px 14px rgba(47,123,255,.18); }
.upg-hero-right { position: relative; z-index: 1; flex: 1; min-width: 0; font-size: 13px; color: var(--text-dim); line-height: 1.8; overflow: visible; overflow-wrap: anywhere; }
.upg-hero-right .hint { color: var(--text-faint); }
.upg-hero-right a { color: var(--primary-ink); }
/* 升级双卡分流 */
.upg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.upg-card { display: flex; flex-direction: column; }
/* R182：同 .set-title 一样补上竖线。原先这两个卡片头里放的是 <span class="dot">，
   但 .dot 的样式写的是 `.set-title .dot`，父类不是 .set-title ⇒ 尺寸为 0，页面上根本看不到。
   现在去掉 span，改由容器 ::before 画，与全后台同规格。 */
.upg-card-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.upg-card-head::before { content: ''; flex: none; width: 4px; height: 15px; border-radius: 3px; background: var(--primary); }
.upg-card-sub { font-size: 11.5px; color: var(--text-faint); font-weight: 400; margin-left: 4px; letter-spacing: .5px; }
/* 离线升级包 dropzone */
.dropzone { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 26px 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: var(--panel2); min-height: 150px; }
.dropzone:hover { border-color: var(--primary); background: rgba(47,123,255,.05); }
.dropzone.drag { border-color: var(--primary); background: rgba(47,123,255,.1); box-shadow: inset 0 0 0 3px rgba(47,123,255,.12); }
.dz-idle { width: 100%; }
.dz-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(47,123,255,.12); color: var(--primary-ink); margin-bottom: 10px; }
.dz-ico svg { width: 24px; height: 24px; }
.dz-title { font-size: 14px; font-weight: 600; color: var(--text); }
.dz-sub { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.dz-ready { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; }
.dz-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dz-fico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(47,123,255,.1); color: var(--primary-ink); flex: none; }
.dz-fico svg { width: 20px; height: 20px; }
.dz-name { font-weight: 600; font-size: 13.5px; word-break: break-all; color: var(--text); }
.dz-size { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.dz-actions { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) {
  .upg-grid { grid-template-columns: 1fr; }
  .upg-hero { padding: 20px; }
  .upg-hero .ver-big { font-size: 36px; }
  /* v0.99.49：窄屏下 hero 纵向排布，构建/内网信息完整换行显示（防右列截断） */
  .upg-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .upg-hero-right { width: 100%; }
}

/* ============================================================
   Toast（R173 重做：右上角小卡 → 右下角上滑大卡，按类型分色）
   产品方反馈：原提示又小又只有两色，一闪就没了；改成右下角向上弹出、
   稍大、五种类型各有自己的语义色与图标，最多同屏 3 条。
   色值全部走既有令牌（--ok / --danger / --warn / --primary-ink / --accent），未引入新色。
   ============================================================ */
.toast-wrap {
  position: fixed; right: 20px; bottom: 20px; z-index: 1400;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; max-width: calc(100vw - 40px);
}
.toast {
  --c: var(--primary-ink);
  position: relative; display: flex; gap: 11px; align-items: flex-start;
  width: 340px; max-width: calc(100vw - 40px); padding: 14px 15px;
  border-radius: 12px; background: var(--card-solid);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  color: var(--text); overflow: hidden; pointer-events: auto;
  animation: toastUp .24s cubic-bezier(.22,.8,.3,1);
}
.toast.out { animation: toastDown .18s ease forwards; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.toast .t-ic {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  border: 1px solid var(--c); color: var(--c);
  font: 800 12px/1 -apple-system, "Segoe UI", sans-serif;
  background: transparent;
}
.toast .t-bd { flex: 1; min-width: 0; }
.toast .t-tt { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); }
.toast .t-ds { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; line-height: 1.55; word-break: break-word; }
.toast .t-x {
  flex: none; color: var(--text-faint); font-size: 13px; line-height: 1;
  cursor: pointer; padding: 3px 1px 0 4px; transition: color .16s;
}
.toast .t-x:hover { color: var(--text); }
.toast.ok   { --c: var(--ok); }
.toast.err  { --c: var(--danger); }
.toast.warn { --c: var(--warn); }
.toast.info { --c: var(--primary-ink); }
.toast.load { --c: var(--accent); }
.toast .t-spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, .3); border-top-color: var(--accent);
  animation: toastSpin .8s linear infinite;
}
@keyframes toastSpin { to { transform: rotate(360deg); } }
@keyframes toastUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastDown { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 620px) {
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .toast { width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.out { animation-duration: .01ms; }
}

/* 表单栅格 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 280px; }

/* 卡片 / 表格 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
/* 表格内容不换行：操作列按钮/状态等不再被挤断 */
.tbl th, .tbl td { white-space: nowrap; }
/* 站点表格：固定布局保证表头与数据列严格对齐（防内容撑破导致的列错位） */
#sitesTable { table-layout: fixed; }
#sitesTable .site-name-cell b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sitesTable .ops-cell .btn { padding: 0 18px; height: 28px; }
/* 操作列（末列）：固定最小宽度，保证"详情/编辑/删除"三按钮整行显示、绝不换行溢出到地址列下方 */
#sitesTable th:last-child, #sitesTable .ops-cell { min-width: 216px; width: 216px; white-space: nowrap; }
/* R156：fixed 布局下 7 列会**等分**（1040÷7≈148），地址列只剩 130px 显示不全、名称列也不够。
   改为「按内容分档」：名称稍宽、徽标类窄、地址列吃剩余空间，操作列固定 216px。
   列宽拖拽（col-resizer）写入的是内联 width，优先级更高——用户手工调过的机器不受影响。 */
#sitesTable th:nth-child(1) { width: 46px; }  /* 排序手柄（R184 新增列） */
#sitesTable th:nth-child(2) { width: 20%; }   /* 站点名称 */
#sitesTable th:nth-child(3) { width: 9%; }    /* 分组 */
#sitesTable th:nth-child(4) { width: 9%; }    /* 网络属性 */
#sitesTable th:nth-child(5) { width: 9%; }    /* 可见范围 */
#sitesTable th:nth-child(6) { width: 8%; }    /* 状态 */
#sitesTable th:nth-child(7) { width: auto; }  /* 访问地址：吃掉剩余宽度 */
#sitesTable .ops-cell .btn { white-space: nowrap; }
/* ops-cell 自身是 inline-flex(gap:8px) 布局，重置全局 btn+btn margin，避免间距叠加翻倍 */
#sitesTable .ops-cell .btn + .btn { margin-left: 0; }
#sitesTable th:last-child .col-resizer { display: none; }
/* 访问地址列：内网/外网各占一行（两行是刻意的），但单行内不得在数字中间折断
   —— 此前 white-space:normal + word-break:break-all 会把 http://192.16 / 8.100:8080/ 拆成两截，可读性极差。
   V8 定版：关键字段不折行，超长用省略号 + title 悬浮看全量（title 已由渲染层写入）。 */
.tbl .addr-cell { white-space: nowrap; }
.tbl .addr-cell .addr-line { white-space: nowrap; }
.tbl th {
  text-align: left; padding: 11px 14px; font-size: 12px; color: var(--text-dim);
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-weight: 600; white-space: nowrap;
  background: rgba(120, 135, 160, 0.06);
}
.tbl th:last-child { border-right: none; }
.tbl td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.5; height: 46px; max-height: 46px; overflow: hidden; text-overflow: ellipsis; }
/* R96：td 内 img 以 block 渲染，消除 inline 图片 baseline 空隙导致的行高不一致（公共图库图标列等） */
.tbl td img { display: block; }
/* 表格操作列按钮组：统一间距、统一高度，避免贴靠与错位 */
.tbl td .btn + .btn { margin-left: 8px; }
.tbl td .btn { height: 28px; line-height: 1; margin-bottom: 2px; }
/* 站点访问地址合并列：内网/外网地址同行展示（wrap 自动折行），标签标识 + 等宽地址 */
.addr-cell { vertical-align: middle; }
.addr-cell .addr-wrap { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; min-width: 0; }
.addr-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.addr-line .addr-val { overflow-wrap: anywhere; word-break: break-all; font-size: 12px; font-family: 'SF Mono', Consolas, 'Courier New', monospace; color: var(--text); line-height: 1.45; }
/* 内网/外网地址标签：与网络属性徽标同一图标体系（12px），内网蓝盾、外网绿地球 */
.tag-intra, .tag-extra { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag-intra svg, .tag-extra svg { width: 12px; height: 12px; flex: none; }
.tag-intra { background: rgba(47, 123, 255, .12); color: #2563eb; border: 1px solid rgba(47, 123, 255, .32); }
.tag-extra { background: rgba(148, 163, 184, .14); color: #64748b; border: 1px solid rgba(148, 163, 184, .34); }
html[data-theme="dark"] .tag-intra { color: #5b9bff; }
html[data-theme="dark"] .tag-extra { color: #94a3b8; }
.tbl tr:hover td { background: var(--hover-bg); }
.tbl tr:last-child td { border-bottom: none; }
/* 列宽拖拽手柄：悬停高亮，可自由调整列宽并记忆 */
.tbl th { position: relative; }

/* ============================================================
   响应式列自适应（前瞻方案）：表格不再横向滚动，窄屏按优先级
   自动隐藏次要列（数据在详情弹窗/编辑入口均可查），操作列收为图标
   ============================================================ */
/* R161：后台改宽屏后，原来的 1320/1120 阈值会在 1366 笔记本上就砍列，
   与「宽屏放得下就别藏」相悖，整体下调两档。真放不下时先横向滚动，再谈隐藏。 */
@media (max-width: 1100px) {
  /* 第一级：隐藏低优先级列（分组/可见范围/级别/置顶/已用/场景） */
  .tbl .col-grp, .tbl .col-vis, .tbl .col-lv, .tbl .col-pin, .tbl .col-used, .tbl .col-scene { display: none; }
}
@media (max-width: 960px) {
  /* 第二级：再隐藏时间/网络属性/角色/状态/说明等列，操作列按钮收为纯图标 */
  .tbl .col-reg, .tbl .col-time2, .tbl .col-id, .tbl .col-net, .tbl .col-role, .tbl .col-status, .tbl .col-category, .tbl .col-note { display: none; }
  /* R185：不再用 !important 硬压 —— 列宽统一由 enableColResize 计算；
     这里只表达「窄屏时操作列按内容收紧」（按钮收成 28px 图标，两枚约 108px） */
  .tbl .col-op { width: auto; }
  .tbl .col-op .btn { width: 28px; padding: 0; justify-content: center; font-size: 0; }
  .tbl .col-op .btn span { display: none; }
}
@media (max-width: 880px) {
  /* 第三级：极端窄屏下地址标签收为纯文字短标签 */
  .addr-cell { min-width: 0; }
  .tag-intra svg, .tag-extra svg { display: none; }
}
/* v0.99.52：列宽拖拽手柄默认可见（半透明竖线 + 虚线分隔），不再透明不可辨 */
/* v0.99.53：列宽拖拽手柄——浅细隐约可见（1px，比表头底纹深一点），hover 才高亮 */
/* R90：命中区加宽 11px（视觉细线用 ::before 呈现），鼠标靠上即显 col-resize 光标，拖动/悬停高亮 */
.tbl th .col-resizer { position: absolute; top: 0; right: -5px; bottom: 0; width: 11px; cursor: col-resize; z-index: 6; background: transparent; touch-action: none; }
/* R97：手柄视觉线固定高度 22px 垂直居中——消除各表表头高度差异导致的「长短不一」；默认 1px、悬停/拖动 2px 高亮 */
.tbl th .col-resizer::before { content: ''; position: absolute; top: 50%; left: 5px; width: 1px; height: 22px; transform: translateY(-50%); opacity: 1; background: rgba(148, 163, 184, 0.42); transition: width .12s ease, opacity .12s ease, background .15s ease, box-shadow .15s ease; }
.tbl th .col-resizer:hover::before, .tbl th .col-resizer.active::before { width: 2px; opacity: 1; background: rgba(47, 123, 255, 0.9); box-shadow: 0 0 0 1px rgba(47, 123, 255, 0.3); }
.col-w-tip { position: fixed; z-index: 9999; background: rgba(17, 24, 39, 0.92); color: #fff; font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
th:has(.col-resizer) { overflow: visible; max-width: none; }
/* 站点详情弹窗行 */
.sd-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sd-row:last-child { border-bottom: none; }
.sd-row span { flex: none; width: 86px; color: var(--text-faint); }
/* 详情弹窗地址复制按钮：纯图标，紧凑对齐 */
.sd-row .sd-copy { margin-left: auto; width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.sd-row .sd-copy svg { width: 13px; height: 13px; }

/* 图标选择 */
.ico-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.ico-pick img { width: 30px; height: 30px; object-fit: contain; padding: 3px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--input-bg); transition: all .15s; }
.ico-pick img:hover { border-color: var(--primary); }
.ico-pick img.on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 123, 255, 0.25); }
.ico-pick.builtin { grid-column: 1 / -1; }
.ico-pick .bi-item {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--input-bg);
  transition: all .15s;
}
.ico-pick .bi-item img { width: 30px; height: 30px; border: none; background: none; padding: 0; }
.ico-pick .bi-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.ico-pick .bi-item.on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 123, 255, 0.28); background: var(--hover-bg); }

/* 分组图标通用尺寸（表格/表单预览/首页） */
.g-ico { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
/* R96：表格单元格内分组图标缩至 26px，行高与全站 46px 一致（34px+padding 撑高至 55px） */
.tbl td .g-ico { width: 26px; height: 26px; font-size: 15px; }
.g-ico-prev { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--input-bg); border: 1px solid var(--line); }

/* ============================================================
   顶部栏 + 首页
   ============================================================ */
.topbar {
  width: 100%; max-width: none;
  border-bottom: 1px solid var(--line);
  /* R178：顶栏改半透明 + 毛玻璃——背景层的冷光从顶部透进来，标题区才有"浮在空气里"的层次；
     纯色底会把刚加的背景层整条切断，首页上沿又变回一条死板的分割线。 */
  background: var(--topbar-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
          backdrop-filter: blur(14px) saturate(1.15);
  position: sticky; top: 0; z-index: 50;
  box-sizing: border-box;
}
/* 顶栏下沿的一道冷光细线：只在正中亮起、两端消散，替代整条实心描边 */
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 123, 255, .55) 28%, rgba(34, 211, 238, .38) 62%, transparent);
  pointer-events: none;
}
/* v0.99.47：顶栏内容与 .main 内容区同宽（max-width:1440px 居中），宽屏下左右对齐保持整体感 */
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 10px 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
/* R178：明亮档顶栏底色改由 --topbar-bg 令牌统一给（原来这里单独写死 rgba(241,244,249,.92)，
   与深色档各写一份 ⇒ 改背景层时必漏一边）。 */
/* R161：后台顶栏与后台内容区同宽（全宽铺满，左右对齐）；首页收进 --wrap 版心 */
.topbar-inner.admin-inner { max-width: none; }
/* 文件完整性警告条（安全强化④） */
.integrity-bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 24px; box-sizing: border-box;
  background: #fff3cd; color: #7a5c00; font-size: 13px;
  border-bottom: 1px solid #ffe9a8;
}
.integrity-bar .ib-ico { font-size: 14px; }
html[data-theme="light"] .integrity-bar { background: #fff8e1; }
.integrity-bar .btn { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; }
.brand > div { font-size: 15.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.25; }
.brand .sub { font-size:11px; color: var(--text-faint); letter-spacing: 2.2px; font-weight: 500; margin-top: 2px; }
.hero-search {
  flex: 1; max-width: 560px; min-width: 200px;
  position: relative; display: flex; align-items: center;
}
.hero-search.center {
  flex: none; width: min(680px, 100%);
  margin: 4px auto 20px;
}
.hero-search .search-ico { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; }
.hero-search.center .search-ico { left: 18px; }
.hero-search .input { padding-left: 37px; padding-top: 8px; padding-bottom: 8px; border-radius: 20px; font-size: 13.5px; background: var(--input-bg); }
.hero-search.center .input { padding-top: 11px; padding-bottom: 11px; font-size: 14.5px; border-radius: 24px; box-shadow: 0 2px 10px rgba(15, 40, 90, 0.06); }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
/* C8 顶栏按钮高度统一：mode-switch / icon-btn / sm 按钮统一 32px 高、同圆角 */
.top-right .mode-switch { height: 32px; padding: 2px; }
.top-right .mode-switch .opt { height: 28px; line-height: 28px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 6px; }
.top-right .btn.sm, .top-right .btn.primary { height: 32px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.top-right .icon-btn { border-radius: 8px; }
.top-right .mode-switch, .top-right .icon-btn, .top-right .btn.sm, .top-right .btn.primary { flex: none; }

/* R156：内容区改为「有上限的全宽」——小屏铺满，超宽屏（>1728）收敛到 1680 居中。
   旧值 max-width:none 在 1600 视口下把内容拉到 1552，而顶部/底部广告横幅仍被 1440 夹住，
   两者左右边界差 56px（屏幕上肉眼可见的"错位/拉伸感"）；2560 屏更会把卡片拉到 2512 宽。 */
.main { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 20px 24px 40px; }

/* C10 首页 1+2 布局：左侧常用搜索 + 右侧时间/天气上下两卡 */
.hero-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.hero-row .search-card { min-width: 0; margin: 0; }
.hero-row > .widget { flex: none; min-height: 0; display: flex; flex-direction: column; justify-content: center; background: var(--card); }
.hero-row > .widget .w-head { flex: none; }
.hero-row > .widget .w-clock-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 14px; }
.hero-row > .widget .w-clock-body .t { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: 1px; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-row > .widget .w-clock-body .d { font-size: 13px; letter-spacing: .5px; }
.hero-row > .widget .w-clock-body .w-clock-foot { font-size: 11px; color: var(--text-faint); letter-spacing: .5px; }
.hero-row > .widget .w-weather-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 0 14px; }
.hero-row > .widget .w-weather-body .w-weather-main { display: flex; align-items: center; gap: 10px; }
.hero-row > .widget .w-weather-body .w-emoji { font-size: 34px; line-height: 1; }
.hero-row > .widget .w-weather-body .tmp { font-size: 30px; }
.hero-row > .widget .w-weather-body .w-txt { font-size: 15px; }
.hero-row > .widget .w-weather-body .w-sub { font-size: 12px; color: var(--text-dim); }
.hero-row > .widget .w-greet { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--primary-ink); }
.hero-row > .widget .w-upd { margin-left: auto; font-size: 11px; color: var(--text-faint); font-weight: 400; }
/* 时间 / 天气模块专属底色（恢复原设计：各自独立柔和渐变底色） */
.hero-row > .widget.w-clock { background: var(--card); }
.hero-row > .widget.w-weather { background: var(--card); border-color: rgba(14,165,233,.20); }
@media (max-width: 1080px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-row > .widget { min-height: 150px; }
  .hero-row > .widget .w-clock-body .t { font-size: 32px; }
  .hero-row > .widget .w-weather-body .w-emoji { font-size: 26px; }
  .hero-row > .widget .w-weather-body .tmp { font-size: 24px; }
}
/* 站内通知：常用搜索与时间天气下方独立单行模块，滚动出现 */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 8px 14px; margin-bottom: 16px; cursor: pointer;
  transition: border-color .18s; min-width: 0;
}
.notice-bar:hover { border-color: var(--line-strong); }
.notice-bar .nb-title { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.notice-bar .nb-title .w-ico { width: 20px; height: 20px; }
.notice-bar .nb-title .w-ico svg { width: 15px; height: 15px; }
.notice-bar .nb-track-wrap { flex: 1; min-width: 0; height: 24px; overflow: hidden; position: relative; }
.notice-bar .nb-track { display: flex; flex-direction: column; will-change: transform; }
.notice-bar .nb-item { height: 24px; line-height: 24px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.notice-bar .nb-item .lv { font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 6px; background: rgba(47, 123, 255, 0.12); color: var(--primary-ink); flex: none; line-height: 18px; }
.notice-bar .nb-item .lv.lv-warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); }
.notice-bar .nb-item .lv.lv-important { background: rgba(248, 113, 113, 0.14); color: var(--danger); }
.notice-bar .nb-item .nb-title-txt { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.notice-bar .nb-item.unread .nb-title-txt { color: var(--text); font-weight: 600; }
.notice-bar .nb-item:not(.unread) .nb-title-txt { color: var(--text-dim); }
.notice-bar .nb-more { flex: none; font-size: 12px; color: var(--primary-ink); }
.notice-bar .nb-empty { font-size: 12.5px; color: var(--text-faint); height: 24px; line-height: 24px; }

/* 独立模块卡片（时间 / 天气 / 通知） */
.widgets {
  display: grid; grid-template-columns: 1.1fr 1.1fr 1.4fr; gap: 14px;
  margin-bottom: 20px;
}
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  transition: border-color .18s;
}
.widget:hover { border-color: var(--line-strong); }
.w-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.w-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: var(--primary-ink); }
.w-ico svg { width: 16px; height: 16px; }
.w-more { margin-left: auto; cursor: pointer; color: var(--primary-ink); font-size: 12px; }
.w-more:hover { text-decoration: underline; }
.w-clock-body { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.w-clock-body .t { font-size: 28px; font-weight: 700; letter-spacing: 1.5px; color: var(--text); }
.w-clock-body .d { font-size: 13px; color: var(--text-dim); }
.w-weather-body { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.w-weather-body .tmp { font-size: 30px; font-weight: 700; color: var(--accent); }
.w-weather-body .w-txt { font-size: 15px; font-weight: 600; }
.w-weather-body .w-sub { font-size: 12.5px; color: var(--text-dim); }
.w-loading { font-size: 13px; color: var(--text-faint); }
.w-empty { font-size: 13px; color: var(--text-faint); padding: 6px 0; }

/* 通知滚动区 */
.w-notice-body { height: 56px; overflow: hidden; position: relative; }
.ticker-track { display: flex; flex-direction: column; will-change: transform; }
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  height: 26px; line-height: 26px; margin-bottom: 8px;
  font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.ticker-item .lv { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: rgba(47, 123, 255, 0.12); color: var(--primary-ink); flex: none; }
.ticker-item .lv.lv-warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); }
.ticker-item .lv.lv-important { background: rgba(248, 113, 113, 0.14); color: var(--danger); }
.ticker-item .ticker-title { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ticker-item.unread .ticker-title { color: var(--text); font-weight: 600; }
.ticker-item:not(.unread) .ticker-title { color: var(--text-dim); }
.ticker-item:hover .ticker-title { color: var(--primary-ink); }
.ticker-time { font-size: 11px; color: var(--text-faint); flex: none; }

/* 通知面板 / 弹窗 */
/* 「全部通知」弹窗列表：可滚动，点击标题展开详情 */
.notice-list { max-height: 58vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.notice-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.notice-item:hover { background: var(--hover-bg); }
.notice-item.unread { background: rgba(47, 123, 255, 0.05); }
.notice-item .n-t { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notice-item .n-t .lv { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: rgba(47, 123, 255, .12); color: var(--primary-ink); }
.notice-item .n-t .pin { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: rgba(250, 204, 21, .16); color: #d9a406; }
.notice-item .n-d { font-size: 11px; color: var(--text-faint); margin-top: 5px; }
.notice-pop {
  position: fixed; bottom: 26px; right: 26px; z-index: 120;
  width: 360px; max-width: calc(100vw - 40px);
  background: var(--card-solid); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; cursor: pointer; animation: popIn .22s ease;
  transition: opacity .35s;
}
.notice-pop .n-p-t { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.notice-pop .n-p-c { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.notice-pop .n-p-c img { display: block; width: 100%; border-radius: 8px; }
.notice-pop .n-p-d { font-size: 11px; color: var(--text-faint); margin-top: 8px; }

/* 分组卡片 */
.group-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px 20px;
  margin-bottom: 16px;
  transition: border-color .18s;
}
.group-block:hover { border-color: var(--line-strong); }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.group-head .g-ico { width: 26px; height: 26px; }
.group-head .g-name { font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.group-head .g-count { font-size: 11.5px; color: var(--text-faint); background: rgba(120, 135, 160, 0.12); padding: 1px 9px; border-radius: 20px; }
.g-rec { font-size:11px; font-weight: 700; color: #eab308; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .3); padding: 1px 8px; border-radius: 999px; letter-spacing: .5px; }

/* 站点矩阵（参考主流导航站：常驻卡片 + 大圆角图标 + hover 提升，量多也整齐美观） */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.site-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 10px 18px; min-height: 150px;
  cursor: pointer;
  transition: all .18s ease;
}
.site-card:hover {
  background: var(--hover-bg);
  border-color: rgba(47, 123, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 12, 35, .12);
}
.s-ico { width: 48px; height: 48px; object-fit: contain; border-radius: 13px; }
.s-ico.noimg { font-size: 26px; display: flex; align-items: center; justify-content: center; }
.s-name { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-remark { font-size: 11px; color: var(--text-faint); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .fav {
  position: absolute; top: 6px; left: 8px;
  background: none; border: none; font-size: 13px;
  color: var(--text-faint); cursor: pointer; opacity: .55;
  transition: all .16s;
  z-index: 2;
}
.site-card:hover .fav { opacity: 1; }
.site-card .fav.on { opacity: 1; color: var(--warn); }

.footer { text-align: center; color: var(--text-faint); font-size: 12px; padding: 26px 0 8px; }

/* 广告位（v0.99.0 预留：文字/图片横幅 + 右下角弹窗） */
.ad-banner {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 8px 14px; margin-bottom: 14px; font-size: 13px;
  background: var(--card); color: var(--text-dim);
}
.ad-banner.ad-img { padding: 0; overflow: hidden; }
.ad-banner.ad-img img { width: 100%; max-height: 90px; object-fit: cover; border-radius: 11px; display: block; }
/* R158：这里原来还有一份 color/border 定义，与下方 .ad-tag 重复——两份互相覆盖，
   实际外观随声明顺序漂移（后一份白字+28%黑胜出，723 行的 faint 色与边框从未生效）。
   现在外观只在下方「广告位角标」一处定义，这里仅保留布局职责。 */
.ad-tag { flex: none; }
.ad-pop { right: 18px; bottom: 18px; width: 520px; max-width: calc(100vw - 36px); }
.ad-pop .ad-pop-x { float: right; margin-top: -6px; }

/* 后台选项卡（用户管理：用户列表 / 邀请码） */
.tabbar {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.tabbar .utab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s ease;
}
.tabbar .utab:hover { color: var(--text); border-color: var(--line-strong); }
.tabbar .utab.on {
  background: linear-gradient(135deg, rgba(47, 123, 255, .16), rgba(47, 123, 255, .07));
  border-color: rgba(47, 123, 255, .55);
  color: var(--primary-ink); font-weight: 600;
}

/* ============================================================
   登录 / 注册页（左右分栏容器 + 底部居中版权）
   ============================================================ */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 20px; gap: 18px;
}
.auth-shell {
  width: 100%; max-width: 940px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 46px 54px;
  animation: popIn .3s ease;
}
.auth-hero { padding: 8px 0; }
.auth-hero-logo .logo { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 34px rgba(47, 123, 255, .35); }
.auth-hero-name { font-size: 34px; font-weight: 800; letter-spacing: 2px; margin: 16px 0 6px; color: var(--text); }
.auth-hero-sub { font-size: 13px; color: var(--text-faint); letter-spacing: 2.5px; margin-bottom: 24px; }
.auth-hero-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-hero-feats li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-dim); }
.auth-hero-feats .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(47, 123, 255, .15); flex: none; }
.auth-card { width: 100%; max-width: 380px; justify-self: end; background: transparent; border: none; box-shadow: none; padding: 0; animation: none; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 20px; }
.auth-tabs .opt { flex: 1; text-align: center; padding: 8px 0; }
.send-btn { display: flex; gap: 8px; align-items: center; }
.send-btn .btn { flex: none; }
.auth-copy { font-size: 12px; color: var(--text-faint); letter-spacing: .5px; }
@media (max-width: 860px) {
  .auth-wrap { padding: 24px 14px; }
  .auth-shell { grid-template-columns: 1fr; gap: 26px; padding: 30px 22px; }
  .auth-hero { text-align: center; }
  .auth-hero-feats { justify-content: center; }
  .auth-hero-feats li { justify-content: center; }
  .auth-card { justify-self: center; }
}

/* ============================================================
   管理后台
   ============================================================ */
/* 管理后台：按服务器端开发者后台宽屏布局重构（保持深蓝科技配色）——全宽铺满、侧栏固定 208px */
.admin-wrap {
  /* R161：后台改宽屏铺满。此前与首页共用 1680 上限，列表列多时要么挤、要么被隐藏；
     现在侧栏固定、内容区吃掉剩余全部宽度，表格有空间就全展开。 */
  width: 100%; max-width: none; margin: 0 auto; padding: 20px 24px 40px;
  display: flex; gap: 20px; align-items: flex-start;
}
/* C1 后台骨架对齐远端开发者后台：侧栏固定宽度、分组/条目密度、卡片与表格统一 */
.admin-side {
  width: 208px; flex: 0 0 208px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  position: sticky; top: 72px;
}
.admin-side .item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 8px;
  color: var(--text-dim); font-size: 14px;
  cursor: pointer; transition: all .14s;
  margin-bottom: 2px;
}
.admin-side .item:hover { background: var(--hover-bg); color: var(--text); }
.admin-side .item.on { background: linear-gradient(135deg, #2f7bff, #0ea5e9); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(47, 123, 255, 0.35); }
.admin-side .item span:first-child { width: 20px; text-align: center; flex: none; display: inline-flex; justify-content: center; }
.admin-side .item span:first-child svg { width: 17px; height: 17px; }
/* 分组化菜单（规格 5.2 pbootcms 信息架构） */
.admin-side .side-group { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-faint); padding: 12px 14px 5px; }
.admin-side .side-group:first-child { padding-top: 4px; }
.admin-side .item + .side-group { margin-top: 6px; }
.admin-main { flex: 1; min-width: 0; max-width: none; margin: 0; }
/* 页面标题区与卡片内容统一宽度/内边距，保证对齐 */
.page-head { padding: 2px 4px 16px; }
.admin-main h2 { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.admin-main .sub { color: var(--text-faint); font-size: 12.5px; margin-top: 4px; }
.admin-main #tabBody { }
.admin-main .card { padding: 22px 24px; margin-bottom: 22px; border-radius: var(--radius); overflow-x: auto; }
/* 后台底部版权条 */
.admin-footer { margin: 4px 4px 0; padding: 16px 4px 2px; text-align: center; font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--line); letter-spacing: .3px; }
/* R89：移除 #sitesTbl 窄屏 min-width:880px——强制超宽导致横向滚动/右侧留白；表格始终 100% 占满容器，列宽由手柄自适应 */

/* 站点表格：名称/分组/地址/操作列 */
.site-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-name-cell .sn-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-name-cell .sn-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name-cell .sn-grp { font-size: 11px; color: var(--text-faint); background: var(--input-bg); border-radius: 5px; padding: 0 7px; line-height: 17px; align-self: flex-start; }
.addr-cell .addr-wrap { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; min-width: 0; }
.addr-cell .addr-line { display: flex; align-items: center; gap: 6px; padding: 1.5px 0; min-width: 0; }
.addr-cell .addr-url { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ops-cell { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.ops-cell .btn, .col-op .btn { height: 28px; line-height: 1; display: inline-flex; align-items: center; }
.ops-cell .btn span, .col-op .btn span { display: none; }
.ops-cell .btn, .col-op .btn { min-width: 30px; padding: 0 12px; justify-content: center; }
.tbl td.col-op { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
/* R185：这条规则原来也命中 th.col-op。表头格一旦是 inline-flex 就不再撑满行高，
   它自己的 border-bottom 会比其他列高出约 8px —— 右侧看起来就是「被切了一刀 + 一个台阶」，
   正是产品方截图里的现象。表头保持普通单元格，只有数据格需要横排按钮。 */
@media (min-width: 700px) { .ops-cell .btn span { display: inline; } }
.st-txt { font-size: 12.5px; color: var(--text-dim); }
/* 详情弹窗字段行 */
.sd-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.sd-row > span:first-child { width: 84px; flex: none; color: var(--text-faint); }
.sd-row b { font-weight: 600; color: var(--text); min-width: 0; }
.sd-row .btn.sm { height: 24px; padding: 0 8px; margin-left: 4px; }

/* 设置分区 */
.set-section { border-bottom: 1px solid var(--line); padding: 6px 0 18px; margin-bottom: 14px; }
.set-section:last-child { border-bottom: none; }
/* R182 · 小节标题竖线统一（产品方：菜单里有些标题前面有蓝色小竖线，有的没有，全量检查并修改）
   改之前的乱象：同一个后台三套写法 ——
     · 授权订阅页 6 个卡片标题：.lp-card-h h3::before 绝对定位 4×14
     · 数据管理 4 处 / 在线升级 2 处：手写 <span class="dot"> 占位
     · 在线升级「在线更新 / 离线升级包」：<span class="dot"> 但父类不是 .set-title ⇒ .dot 规则不命中 ⇒ 0×0，压根看不见
     · 系统设置 9 处 / 关于我们 3 处 / 联系我们 1 处：什么都没有
   现在只留一种实现：容器自身 ::before 画 4×15 圆角竖条，颜色 var(--primary)。
   改这一处 CSS = 全后台生效，不必再靠人在模板里记得插 span（这才是「以后不会漏」的写法）。 */
.set-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; }
.set-title::before {
  content: ''; flex: none; width: 4px; height: 15px; border-radius: 3px; background: var(--primary);
}
.set-title .hint { font-weight: 400; }
.set-section .form-grid { margin-top: 2px; }

/* R99：系统设置顶部整体胶囊式选项卡（参考云端管理端 .tabs/.tab 样式）+ 网络模块二级子选项卡 */
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; padding: 6px; background: var(--panel2, rgba(120,130,160,.08)); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.pill-tabs .pill {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px;
  font-size: 13.5px; font-weight: 500; line-height: 1;
  color: var(--text-dim); background: transparent; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: color .15s ease, background .15s ease; user-select: none;
}
.pill-tabs .pill:hover { color: var(--text); background: var(--hover-bg); }
.pill-tabs .pill.on { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 3px 12px rgba(47, 123, 255, .25); }
/* R100：网络模块下「内外网识别 / 动态域名（DDNS）」按顺序堆叠展示（不再使用二级子选项卡） */
/* R98：DDNS 状态卡 */
.ddns-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 4px; }
.ddns-status .st { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ddns-status .st b { display: block; font-size: 11px; font-weight: 500; color: var(--text-dim); margin-bottom: 4px; }
.ddns-status .st span { font-size: 12.8px; color: var(--text); word-break: break-all; }
.ddns-status .st.ok span { color: var(--primary-ink); }
.ddns-status .st.err span { color: var(--danger); }

/* 站点表单图标预览 */
.site-form-ico { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: var(--input-bg); }
/* 后台站点表格内站点图标：与 13px 行文字比例协调 */
.tbl td .site-form-ico { width: 20px; height: 20px; border-radius: 5px; }

/* 版本管理（系统升级） */
.ver-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ver-big { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.ver-meta { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.ver-log { list-style: none; max-height: 350px; overflow-y: auto; }
.ver-log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.8px; }
.ver-log li:last-child { border-bottom: none; }
.ver-log .vl-v { flex: none; min-width: 56px; font-weight: 700; color: var(--primary-ink); }
.ver-log .vl-d { color: var(--text-dim); }
/* 版本日志两栏（功能更新 / 修复）—— 铁律：每条记录两栏，见 server/db.js VERSION_HISTORY */
.vl-row { display: flex; gap: 8px; align-items: baseline; line-height: 1.7; }
.vl-row + .vl-row { margin-top: 2px; }
.vl-k { flex: none; min-width: 56px; font-weight: 700; font-size: 11.5px; color: var(--text-faint); }
.vl-t { color: var(--text-dim); }

/* R161 版本日志：改成表格，更新日期独立成列；支持关键词 / 类型 / 年份筛选。
   旧版把日期挤在行尾、只给 10 条，翻不到更早的记录。 */
.ver-sum { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-faint); }
.ver-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.ver-tools .input { max-width: 200px; height: 32px; font-size: 13px; }
.ver-table-wrap { max-height: 430px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.ver-table { width: 100%; border-collapse: collapse; font-size: 12.8px; table-layout: fixed; }
.ver-table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg3); color: var(--text-dim);
  font-size: 12px; font-weight: 600; text-align: left;
  padding: 9px 14px; border-bottom: 1px solid var(--line);
}
.ver-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-dim); }
.ver-table tr:last-child td { border-bottom: none; }
.ver-table .c-v { width: 108px; font-weight: 700; color: var(--primary-ink); }
.ver-table .c-d { width: 118px; color: var(--text); }
.ver-table .c-c { min-width: 0; }
.ver-table .empty { text-align: center; color: var(--text-faint); padding: 26px 0; }
.ver-tags { margin-top: 6px; display: flex; gap: 6px; }
.ver-more { margin-top: 12px; }
.tag.blue { background: rgba(37, 99, 235, .10); color: var(--primary-ink); border: 1px solid rgba(37, 99, 235, .28); }
.tag.green { background: rgba(5, 150, 105, .10); color: #047857; border: 1px solid rgba(5, 150, 105, .26); }
html[data-theme="dark"] .tag.blue { background: rgba(143, 192, 255, .12); color: #8FC0FF; border-color: rgba(143, 192, 255, .30); }
html[data-theme="dark"] .tag.green { background: rgba(52, 211, 153, .12); color: #4ADE9B; border-color: rgba(52, 211, 153, .28); }

/* 选择文件按钮（与主题一致的线性图标）；行高与 .btn 对齐（padding 8px 14px + 13px 字号） */
.file-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  background: var(--card-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  box-sizing: border-box;
}
.file-btn:hover { border-color: var(--primary); color: var(--primary-ink); background: var(--hover-bg); }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn.sm { padding: 5px 12px; font-size: 12.5px; border-radius: 7px; }

/* ============================================================
   响应式
   ============================================================ */
/* 汉堡菜单按钮：默认隐藏，窄屏显示 */
.menu-btn { display: none; flex: none; width: 36px; height: 36px; border-radius: 9px; }

/* 窄屏抽屉（手机/平板竖屏）：遮罩 + 侧滑面板 */
.nav-mask { position: fixed; inset: 0; z-index: 990; background: rgba(8, 14, 28, 0.5); backdrop-filter: blur(2px); }
.nav-drawer, .side-drawer {
  position: fixed; top: 0; bottom: 0; z-index: 991;
  width: min(300px, 82vw); background: var(--card-solid); border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(10, 20, 45, 0.18);
  transform: translateX(-105%); transition: transform .24s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.side-drawer { border-right: 0; border-left: 1px solid var(--line); right: 0; left: auto; transform: translateX(105%); box-shadow: -8px 0 30px rgba(10, 20, 45, 0.18); }
.nav-drawer.open, .side-drawer.open { transform: translateX(0); }
.nav-drawer .nd-head, .side-drawer .nd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.nd-head .nd-title { font-size: 15px; font-weight: 700; }
.nav-drawer .nd-body, .side-drawer .nd-body { flex: 1; overflow-y: auto; padding: 10px 12px 24px; }
.nd-sec { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-faint); padding: 12px 6px 6px; }
.nav-drawer .nd-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px;
  cursor: pointer; color: var(--text); font-size: 14px; transition: background .15s;
}
.nav-drawer .nd-item:hover { background: var(--hover-bg); }
.nav-drawer .nd-item svg { flex: none; opacity: .75; }
.nav-drawer .nd-body .mode-switch { margin: 2px 6px 8px; }
.side-drawer .nd-body .item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; color: var(--text); font-size: 13.5px; }
.side-drawer .nd-body .item:hover { background: var(--hover-bg); color: var(--text); }
.side-drawer .nd-body .item.on { background: linear-gradient(135deg, #2f7bff, #0ea5e9); color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(47, 123, 255, 0.35); }
.side-drawer .nd-body .item svg { width: 17px; height: 17px; flex: none; }
.side-drawer .nd-body .side-group { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-faint); padding: 12px 6px 5px; }

/* R85 响应式修复：≤1180px 直接收进汉堡抽屉（原"折叠横排"方案在 900-1180px 区间
   会导致模块名竖排+子菜单横排挤压错乱；统一为抽屉后全站窄屏行为一致、清爽） */
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .admin-side { display: none; }
  .admin-main { width: 100%; }
  .admin-wrap { padding: 10px 14px 22px; }
}
/* 手机/平板竖屏：顶栏右侧按钮收进抽屉（抽屉内已含"返回首页"入口） */
@media (max-width: 900px) {
  .top-right { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { gap: 10px; padding: 9px 12px; }
  .main { padding: 12px 12px 26px; }
  .w-clock-body .t { font-size: 28px; }
  .site-grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 16px; margin: 12px; max-height: 84vh; }
  .admin-main { padding: 0; }
  .admin-wrap { padding: 10px 12px 20px; }
  .brand-t .bn { font-size: 18px; }
  .brand-t .sub { display: none; }
  .hero-row { gap: 12px; }
  .ad-banner-top-wrap, .ad-footer { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand-t .ver-badge { display: none; }
  .brand .logo { width: 28px; height: 28px; }
  .upg-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   表格响应式：窄屏自动隐藏次要列，主列与操作列完整保留（不横向滚动）
   列语义 class：col-id=ID 列 / col-email=邮箱 / col-name2=用户名·申请人 / col-role=角色·级别
   col-status=状态·发布 / col-reg=注册·生成·发布时间 / col-time2=最近登录·已用次数
   col-note=说明·详情 / col-vis=可见范围·置顶 / col-grp=分组 / col-net=网络属性 / col-op=操作列
   ============================================================ */
@media (max-width: 720px) {
  .tbl th, .tbl td { padding: 9px 10px; }
  .tbl td .btn { padding: 4px 8px; font-size: 11.5px; }
  .tbl td .btn + .btn { margin-left: 6px; }
  .col-email, .col-code { max-width: 120px; }
}
/* 长文本列统一超宽截断（桌面完整显示，窄屏省略号） */
.col-email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.col-code { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   v1.5.0 · 分组导航条 / 网络属性徽标 / 私密分区
   ============================================================ */
.nav-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
  margin-bottom: 6px;
  position: relative;
  /* 前瞻性：隐藏原生滚动条，改用左右渐变遮罩提示可滚动（分组多时不显丑滚动条） */
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .16s ease;
  flex: none;
}
.nav-tab .g-ico, .nav-tab svg { width: 14px; height: 14px; object-fit: contain; }
.nav-tab .g-ico { font-size: 12px; line-height: 14px; display: inline-flex; }
.nav-tab:hover { color: var(--text); border-color: var(--line-strong); }
.nav-tab.on {
  background: linear-gradient(135deg, rgba(47, 123, 255, .16), rgba(47, 123, 255, .07));
  border-color: rgba(47, 123, 255, .55);
  color: var(--primary-ink); font-weight: 600;
}

/* 站点卡片右上角网络属性徽标（v1.5.1：由右下角改为右上角小圆标） */
.site-card .net-badge {
  position: absolute; top: 6px; right: 6px;
  display: inline-flex; align-items: center; gap: 2px;
  font-size:11px; font-weight: 700; line-height: 1;
  padding: 2.5px 6px; border-radius: 999px;
  opacity: .92; transition: opacity .16s;
  z-index: 2;
}
.site-card:hover .net-badge { opacity: 1; }
.site-card .net-badge svg { width: 10px; height: 10px; }
/* 后台站点表格内的小型网络属性徽标（与「可见范围」tag 同风格，图标统一 14px，全站一致） */
.tbl-net {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 3px 8px; border-radius: 6px;
  white-space: nowrap;
}
.tbl-net svg { width: 14px; height: 14px; flex: none; }
/* 内外网是「位置属性」不是「状态」⇒ 不占 C3 成功绿 / C4 警示红。
   用强弱秩序表达优先级：内网（首选）> 内外 > 外网；外网最弱，用中性灰。 */
.nb-intranet_only { background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.nb-dual { background: #0e8fb8; color: #fff; border: 1px solid #0e8fb8; }
.nb-extranet_only { background: #64748b; color: #fff; border: 1px solid #64748b; }
html[data-theme="light"] .nb-intranet_only { background: #2563eb; color: #fff; border-color: #2563eb; }
html[data-theme="light"] .nb-dual { background: #0e8fb8; color: #fff; border-color: #0e8fb8; }
html[data-theme="light"] .nb-extranet_only { background: #64748b; color: #fff; border-color: #64748b; }
/* 可见范围徽标（与网络属性同款样式，图标统一 12px） */
.nb-vis-public { background: rgba(52, 211, 153, .14); color: #34d399; border: 1px solid rgba(52, 211, 153, .35); }
.nb-vis-private { background: rgba(167, 139, 250, .14); color: #a78bfa; border: 1px solid rgba(167, 139, 250, .35); }
html[data-theme="light"] .nb-vis-public { background: rgba(52, 211, 153, .12); color: #059669; }
html[data-theme="light"] .nb-vis-private { background: rgba(139, 92, 246, .12); color: #7c3aed; }
/* 私密标记（R187：位置改到站点 LOGO 内部左上角，具体样式见下方 .site-card .sec-tag 定案段） */
.sec-block { border-color: rgba(47, 123, 255, .35); }
.sec-block .group-head { color: var(--primary-ink); }

/* ============================================================
   v1.5.0 · 顶栏搜索居中弹窗
   ============================================================ */
.search-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(8, 16, 32, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  animation: fadeIn .18s ease;
}
.search-dialog {
  width: 640px; max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: popIn .22s ease;
}
/* 引擎选择（弹窗）：整体选项卡（连体胶囊容器，与首页 sc-engs 一致，激活项高亮渐变） */
.search-eng {
  display: inline-flex; flex-wrap: wrap; gap: 2px;
  padding: 4px; margin: 0 14px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel2, rgba(120,130,160,.06));
}
.search-eng .eng {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 9px; border: none;
  background: transparent;
  color: var(--text-dim); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s ease;
}
.search-eng .eng:hover { color: var(--text); background: rgba(47,123,255,.08); }
.search-eng .eng.on {
  background: linear-gradient(135deg, #2f7bff, #0ea5e9); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47,123,255,.3);
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.search-bar .search-ico { width: 18px; height: 18px; color: var(--primary-ink); flex: none; }
.search-bar .input { flex: 1; border: none; background: transparent; font-size: 15px; padding: 4px 0; }
.search-bar .input:focus { outline: none; box-shadow: none; border: none; }
.search-results { max-height: 46vh; overflow-y: auto; padding: 6px; }
.search-hint, .search-empty { text-align: center; color: var(--text-faint); font-size: 13px; padding: 34px 0; }
.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  transition: background .14s;
}
.search-item:hover { background: var(--hover-bg); }
.search-item .si-icon { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.search-item .si-icon .s-ico { width: 28px; height: 28px; border-radius: 8px; }
.search-item .si-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.search-item .si-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item .si-sub { font-size: 11.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item .net-badge { position: static; opacity: 1; }

/* ============================================================
   v1.5.0 · 通知详情富文本 / 授权
   ============================================================ */
.notice-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.notice-detail-body {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-size: 14px; line-height: 1.8;
  color: var(--text); max-height: 52vh; overflow-y: auto;
}
.notice-detail-body img { max-width: 100%; border-radius: 8px; }
.notice-detail-body a { color: var(--primary-ink); }
.notice-detail-body ul, .notice-detail-body ol { padding-left: 22px; }
.notice-detail-body table { border-collapse: collapse; width: 100%; }
.notice-detail-body th, .notice-detail-body td { border: 1px solid var(--line-strong); padding: 6px 10px; font-size: 13px; }
.notice-detail-body h1, .notice-detail-body h2, .notice-detail-body h3 { margin: 10px 0 6px; }
.notice-detail-body blockquote { border-left: 3px solid var(--primary); margin: 8px 0; padding: 4px 12px; color: var(--text-dim); }
.notice-detail-body pre { background: var(--input-bg); border-radius: 8px; padding: 10px; overflow-x: auto; }

.lic-box {
  margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.lic-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.lic-row .btn { margin-left: auto; }
.lic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.lic-dot.on { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, .6); }

/* ============================================================
   v0.99.1 · 授权订阅（徽标 / 状态卡 / 配额 / 价格卡）
   ============================================================ */
.ver-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
  background: rgba(120, 134, 156, .16); color: #8a94a6; border: 1px solid rgba(120, 134, 156, .28);
}
/* 首页顶部：徽标跟随 LOGO 名称（品牌行内小号徽标） */
.brand-t .ver-badge { height: 18px; padding: 0 8px; font-size:11px; margin-left: 8px; vertical-align: 1px; letter-spacing: .3px; }
.brand-t .ver-badge.pro { box-shadow: 0 0 8px rgba(56, 130, 246, .25); }
/* 浏览器设置为首页引导弹窗 */
.home-url { font-family: 'SF Mono', Consolas, 'Courier New', monospace; font-size: 14px; color: var(--primary-ink); background: rgba(47, 123, 255, .08); border: 1px solid rgba(47, 123, 255, .3); border-radius: 8px; padding: 8px 12px; }
.home-steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-dim); line-height: 2; }
.home-steps li { margin: 4px 0; }
.home-steps b { color: var(--text); }
.ver-badge.pro {
  background: linear-gradient(135deg, rgba(56, 130, 246, .18), rgba(16, 185, 129, .18));
  color: var(--primary-ink); border: 1px solid rgba(56, 130, 246, .4);
  box-shadow: 0 0 10px rgba(56, 130, 246, .25);
}
.lic-body { display: flex; flex-direction: column; gap: 10px; }
.lic-status { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card-bg); }
.lic-status.pro { border-color: rgba(56, 130, 246, .35); background: linear-gradient(135deg, rgba(56, 130, 246, .06), rgba(16, 185, 129, .05)); }
.lic-badge-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lic-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  background: rgba(120, 134, 156, .16); color: #8a94a6; border: 1px solid rgba(120, 134, 156, .3);
}
.lic-badge.pro {
  background: linear-gradient(135deg, #3882f6, #10b981);
  color: #fff; border: none; box-shadow: 0 4px 14px rgba(56, 130, 246, .35);
}
.lic-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; }
.lic-meta > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lic-meta > div span { color: var(--text-faint); flex: none; }
.lic-meta > div b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lic-actions { margin-top: 12px; display: flex; gap: 10px; }
.lic-quota { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.quota-title { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; }
.quota-line { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.quota-line > span { width: 64px; color: var(--text-dim); flex: none; }
.quota-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--input-bg); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3882f6, #10b981); }
.quota-line b { min-width: 34px; text-align: right; color: var(--text-dim); font-weight: 600; }
.quota-line b.over { color: #f87171; }
.quota-line .pro-free { color: #10b981; }
.quota-banner {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; font-size: 13px;
  background: rgba(56, 130, 246, .08); border: 1px solid rgba(56, 130, 246, .28); color: var(--text-dim);
}
.quota-banner.over { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); }
.quota-banner b { color: var(--text); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.price-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: center;
  background: var(--card-bg); transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.price-card.hot { border-color: rgba(56, 130, 246, .5); box-shadow: 0 0 0 1px rgba(56, 130, 246, .25); }
.price-card b { font-size: 14px; color: var(--text); }
.price-card .price { font-size: 13px; color: var(--primary-ink); margin: 8px 0 4px; font-weight: 700; }
.price-card .price em { font-size: 26px; font-style: normal; }
.price-card span { font-size: 12px; color: var(--text-faint); }
.buy-steps { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }
.buy-steps > div { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.buy-steps b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; flex: none; }
.buy-contact { font-size: 13px; color: var(--text-dim); border-top: 1px dashed var(--line); padding-top: 10px; }

/* ============================================================
   v1.5.0 · 所见即所得编辑器
   ============================================================ */
.wysiwyg {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
}
.ww-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.ww-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 28px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 7px;
  background: transparent; color: var(--text-dim);
  cursor: pointer; transition: all .14s; font-size: 13px;
}
.ww-btn:hover { color: var(--primary-ink); border-color: rgba(47, 123, 255, .5); background: rgba(47, 123, 255, .07); }
.ww-area {
  min-height: 150px; max-height: 46vh; overflow-y: auto;
  padding: 12px 14px; font-size: 14px; line-height: 1.8;
  color: var(--text); outline: none;
}
.ww-area:empty::before { content: attr(data-placeholder); color: var(--text-faint); }
.ww-area img { max-width: 100%; border-radius: 8px; }
.ww-area a { color: var(--primary-ink); }
.ww-area ul, .ww-area ol { padding-left: 22px; }
.ww-area blockquote { border-left: 3px solid var(--primary); margin: 8px 0; padding: 4px 12px; color: var(--text-dim); }
.ww-area h1, .ww-area h2, .ww-area h3 { margin: 10px 0 6px; }
.ww-area table { border-collapse: collapse; width: 100%; }
.ww-area th, .ww-area td { border: 1px solid var(--line-strong); padding: 5px 9px; font-size: 13px; }
.ww-area pre { background: var(--hover-bg); border-radius: 8px; padding: 10px; overflow-x: auto; }

/* QQ 群加群按钮（链接由服务器端配置推送） */
/* R180 · 「加入QQ群」全站唯一一套样式（产品方：全局统一，参考关于我们页面的样式）
   ------------------------------------------------------------
   历史上有两种尺寸：默认 13px/5px 12px（授权页、后台关于我们）与 .qq-inline 12px/3px 10px
   （关于我们弹窗、联系我们），同一个按钮在两个页面大小不同。
   现在只保留一套 —— 就是「关于我们」那一版（12px / 3px 10px / 圆角 8 / 蓝渐变小胶囊）。
   .qq-inline 保留为**空别名**，只为不改动各处 JS 的 class 拼接；不要再往里加样式，
   否则又变成两套。新加位置一律只用 class="qq-group-btn"。 */
.qq-group-btn{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:8px;background:linear-gradient(135deg,#3ec6ff,#12b7f5);color:#fff;font-size:12px;font-weight:600;text-decoration:none;vertical-align:baseline;box-shadow:0 2px 6px rgba(18,183,245,.25);transition:opacity .15s,transform .15s;line-height:1.2}
.qq-group-btn:hover{opacity:.9;color:#fff;transform:translateY(-1px)}
.qq-group-btn svg{flex:none}

/* ============================================================
   v0.99.5 · 首页搜索引擎卡片（参考 tools-ai.cn）+ LOGO 对齐 + 表格加固
   ============================================================ */
.brand-t { display: flex; align-items: baseline; line-height: 1.3; flex-wrap: wrap; gap: 8px; }
.brand-t .bn { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.brand-t .sub { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; color: var(--text-dim); }
.brand-t .ver-badge { margin-left: 2px; }

.search-card {
  margin-top: 0; padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
/* 专业版关闭广告后：常用搜索模块内容上下居中 */
.search-card.sc-no-ad .sc-body { margin: auto 0; }
.search-card.sc-no-ad .ad-text-rows { display: none; }
.sc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.sc-head .w-ico { display: inline-flex; color: var(--primary-ink); }
.sc-tip { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-faint); }
.sc-body { display: flex; flex-direction: column; gap: 12px; }
.sc-bar { display: flex; align-items: center; gap: 10px; background: rgba(120,135,160,.08); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 8px 6px 14px; }
.sc-bar .search-ico { width: 18px; height: 18px; color: var(--text-faint); flex: none; }
.sc-bar .input { flex: 1; border: none; background: transparent; box-shadow: none; font-size: 15px; padding: 8px 0; }
.sc-bar .input:focus { box-shadow: none; }
/* 引擎选择：整体选项卡（紧凑连体胶囊，靠左对齐，激活项高亮渐变，非单个按钮） */
.sc-engs {
  display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px; margin-bottom: 10px;
  padding: 4px; border: 1px solid var(--line); border-radius: 15px;
  background: var(--panel2, rgba(120,130,160,.06));
}
.sc-engs .eng {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px;
  border-radius: 10px; border: none; background: transparent;
  color: var(--text-dim); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.sc-engs .eng:hover { color: var(--text); background: rgba(47,123,255,.08); }
.sc-engs .eng.on { background: linear-gradient(135deg, #2563eb, #0b7492); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(47,123,255,.3); }
.sc-engs .eng.on .eng-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.eng-logo {
  width: 26px; height: 26px; border-radius: 7px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex: none;
}
.eng-baidu { background: linear-gradient(135deg, #2b5ce6, #4a7bff); }
.eng-bing { background: linear-gradient(135deg, #008373, #00b294); }
.eng-google { background: linear-gradient(135deg, #ea4335, #fbbc05); }
.eng-zhihu { background: linear-gradient(135deg, #0066ff, #4d94ff); }
.eng-toutiao { background: linear-gradient(135deg, #fe2c55, #ff6b81); }
.eng-weibo { background: linear-gradient(135deg, #e6162d, #ff7a59); }

.qq-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qq-item { display: inline-flex; align-items: center; }

.lic-remote-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lic-remote-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18); flex: none; }
.lic-remote-actions { display: inline-flex; gap: 10px; }
.lic-remote-actions .btn { height: 30px; }

/* 表格加固：杜绝任何列撑破表格（fixed 布局 + 溢出省略 + 容器禁止横向滚动） */
.tbl td { overflow: hidden; }
.tbl td .ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tbl .col-name .st-name, .tbl .col-note .st-note { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.card { overflow-x: hidden; }
.tabBody, #tabBody, .admin-main { overflow-x: hidden; }/* ============================================================
   v0.99.6 · 首页改版（LOGO 行式 / 站内检索 / 三栏文字广告 / 底部广告）
   ============================================================ */
/* 常用搜索 · 站内引擎 */
.eng-logo.eng-local { background: linear-gradient(135deg, #3882f6, #0ea5e9); }
.sc-results { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); max-height: 260px; overflow-y: auto; box-shadow: 0 10px 24px rgba(15, 35, 75, .12); }
.sc-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); min-width: 0; }
.sc-item:last-child { border-bottom: none; }
.sc-item:hover { background: var(--hover-bg); }
.sc-item .sc-ico { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; flex: none; }
.sc-item .sc-name { font-size: 13px; font-weight: 600; color: var(--text); flex: none; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-item .sc-grp { font-size: 11px; color: var(--text-faint); flex: none; }
.sc-item .sc-addr { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; text-align: right; }
.sc-empty { padding: 12px; font-size: 12px; color: var(--text-faint); text-align: center; }
/* 关于我们：名称行版本号与免费/专业徽标同高同大小 */
.about-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.about-head .about-ver { display: inline-flex; align-items: center; height: 22px; line-height: 1; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.about-head .about-ver.tag { background: rgba(47, 123, 255, 0.12); color: var(--primary-ink); }
.about-head .about-ver.ver-badge { background: rgba(120, 135, 160, 0.14); color: var(--text-dim); border: 1px solid var(--line-strong); }
.about-head .about-ver.ver-badge.pro { background: linear-gradient(135deg, #2f7bff, #6aa6ff); color: #fff; border: none; box-shadow: 0 2px 8px rgba(47, 123, 255, 0.35); }
/* 常用搜索下 · 两行四列文字广告（整区左上角「广告」标识，底色与全局一致） */
/* 顶部单条文字广告：简洁居中条（不再占满标题行） */
/* 顶部横幅广告（1200×50 图片/HTML，支持整条占位） */
.ad-banner-top-wrap { margin: 0 auto 14px; max-width: none; }
.ad-banner-top { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.ad-banner-top img { width: 100%; height: auto; display: block; }
.ad-banner-top .ad-tag { position: absolute; top: 8px; left: 8px; z-index: 2; }
.ad-banner-top-ph { display: flex; align-items: center; justify-content: center; min-height: 50px; }
.ad-banner-top-ph .ad-ph-img { display: block; width: 100%; }
.ad-banner-top-ph .ad-ph-img img { width: 100%; height: auto; display: block; border-radius: 10px; }
/* 第103轮：顶部横幅默认占位「推广返佣」引导（纯文字 + 主题变量色，离线可用） */
.ad-banner-top-ph .ad-ph-promo { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 10px; text-decoration: none; color: var(--text); background: linear-gradient(135deg, rgba(47,123,255,.10), rgba(47,123,255,.04)); transition: background .2s; }
.ad-banner-top-ph .ad-ph-promo:hover { background: linear-gradient(135deg, rgba(47,123,255,.18), rgba(47,123,255,.08)); }
.ad-ph-promo-tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--primary, #2f7bff); color: #fff; white-space: nowrap; }
.ad-ph-promo-txt { font-size: 14px; line-height: 1.5; }
.ad-ph-promo-txt b { color: var(--primary, #2f7bff); }
.ad-ph-promo-more { font-size: 13px; color: var(--primary, #2f7bff); white-space: nowrap; }
.ad-ph { color: var(--text-dim); text-decoration: none; }
.ad-ph:hover { color: var(--primary-ink); }
/* 常用搜索下方：三行 × 四列文字广告（无列标题） */
.ad-text-rows { margin: 18px 0 0; }
.ad-text-rows-in { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; background: var(--card-bg); display: flex; align-items: center; gap: 12px; }
.ad-text-rows-in > .ad-tag { flex: none; }
.ad-text-rows-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.ad-text-rows-list .ad-col-line { display: block; font-size: 13px; line-height: 1.6; }
.ad-text-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; flex: 1; min-width: 0; }
.ad-text-cell { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 3px 0; }
.ad-text-cell .ad-col-line { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 13px; line-height: 1.7; }
.ad-text-cell a.ad-col-line:hover { color: var(--primary-ink); }
@media (max-width: 1200px) { .ad-text-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ad-text-grid { grid-template-columns: 1fr; } }
.ad-text-cols { margin: 12px 0 0; }
.ad-text-cols-in { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; background: var(--card-bg); }
.ad-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ad-block-head .ad-tag { flex: none; }
.ad-block-head .ad-block-note { font-size: 11.5px; color: var(--text-faint); }
/* 分类导航区域之间的文字广告（1 行 × 5 列） */
.ad-between-rows { margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.ad-between-rows > .ad-tag { flex: none; }
.ad-between-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 14px; flex: 1; min-width: 0; }
@media (max-width: 1200px) { .ad-between-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .ad-between-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ad-between-grid { grid-template-columns: 1fr; } }
.ad-text-cols-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ad-text-col { min-width: 0; border-left: 2px solid rgba(47, 123, 255, .25); padding-left: 10px; }
.ad-text-col-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-text-col-lines { display: flex; flex-direction: column; }
.ad-text-col-lines .ad-col-line { display: block; font-size: 12px; color: var(--text-dim); padding: 2px 0; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-text-col-lines a.ad-col-line:hover { color: var(--primary-ink); }
@media (max-width: 1200px) { .ad-text-cols-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ad-text-cols-grid { grid-template-columns: 1fr; } }
/* 站内通知下方 · 一行四列图片广告（HTML 优先；左上角「广告」标识；主题底色衬托） */
.ad-img-cols { margin: 16px 0 16px; }
.ad-img-cols-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ad-img-col { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; border: 1px dashed rgba(47,123,255,.4); background: linear-gradient(180deg, rgba(47,123,255,.08), rgba(14,165,233,.04)); }
.ad-img-col .ad-col-tag { position: absolute; top: 6px; left: 6px; z-index: 2; }
.ad-img-col a.ad-col-img { display: block; }
.ad-img-col img { width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; display: block; }
.ad-img-col .ad-img-col-title { display: block; font-size: 11px; color: var(--text-dim); padding: 4px 8px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-img-col .ad-col-tag { display: inline-block; font-size:11px; color: #fff; background: rgba(0, 0, 0, .72); border-radius: 4px; padding: 1px 6px; letter-spacing: 1px; }
@media (max-width: 1200px) { .ad-img-cols-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ad-img-cols-grid { grid-template-columns: 1fr; } }
/* 常用搜索下旧式四列广告（兼容） */
.ad-cols-wrap { margin: 16px 0 4px; }
.ad-cols-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ad-cols-head .ad-tag { flex: none; }
.ad-cols-head .ad-cols-note { font-size: 11.5px; color: var(--text-faint); }
.ad-top-line { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--card-bg); }
.ad-top-line .ad-tag { flex: none; }
.ad-top-line .ad-top-txt { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ad-col { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card-bg); min-width: 0; overflow: hidden; }
.ad-col-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
/* R182：与后台 .set-title / .lp-card-h h3 尽量同规格（4×15 圆角 3、间距 8），原来这里是 4×14 圆角 2 间距 6 */
.ad-col-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: var(--primary); flex: none; }
.ad-col-line { display: block; font-size: 12px; color: var(--text-dim); padding: 3px 0; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ad-col-line:hover { color: var(--primary-ink); }
.ad-col-line.ad-empty { color: var(--text-faint); }
/* 图片广告列：4 张图片广告（远端配置；推荐尺寸 640×160，4:1 比例） */
.ad-col.ad-img { padding: 0; border-radius: 12px; }
.ad-col.ad-img img { width: 100%; height: 96px; object-fit: cover; display: block; border-radius: 12px; }
.ad-col.ad-img .ad-col-img-title { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62)); padding: 14px 8px 5px; border-radius: 0 0 12px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-col .ad-col-tag { position: absolute; top: 6px; left: 6px; z-index: 1; }
@media (max-width: 1200px) { .ad-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ad-cols { grid-template-columns: 1fr; } }
/* 首页底部 · 整条图片 + 超链接广告 */
.ad-footer { margin: 18px auto 4px; max-width: none; }
.ad-footer-banner { position: relative; display: block; border-radius: 12px; overflow: hidden; }
.ad-footer-banner img { width: 100%; height: auto; display: block; }
.ad-footer-banner .ad-tag { position: absolute; top: 8px; left: 8px; }
/* R163：底部占位横幅也补「广告」角标。占位 GIF 的主体从 x≈20 开始（图标+标题），
   直接叠角标会压住图标，故给左侧留 56px 内边距，角标落在留白里；创意图等比微缩，
   不裁切、不压字。 */
.ad-footer-ph { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100px; padding-left: 56px; box-sizing: border-box; border: 1px dashed var(--line); background: var(--card); }
.ad-footer-ph > .ad-tag { position: absolute; top: 10px; left: 10px; }
.ad-footer-ph .ad-ph-img { display: block; width: 100%; }
.ad-footer-ph .ad-ph { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
/* R158：广告角标唯一真源。底色 28% → 72% 黑：浅色卡片上「白字压 28% 黑」实测 2.22:1，
   角标几乎读不出来；加深后明暗两主题都稳过 4.5:1。 */
.ad-tag { display: inline-block; font-size:11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .72); border-radius: 4px; padding: 1px 6px; line-height: 16px; letter-spacing: 1px; }
/* 站内购买弹窗 */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-tier { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; background: var(--card-bg); }
.buy-tier-name { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }
.buy-tier-price b { font-size: 24px; color: var(--primary-ink); }
.buy-tier-price span { font-size: 12px; color: var(--text-faint); }
.buy-tier-desc { font-size: 12px; color: var(--text-faint); margin: 4px 0 10px; }
.buy-steps { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.buy-steps > div { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.buy-steps b { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.buy-contact { margin-top: 10px; font-size: 12px; color: var(--text-faint); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 我的订单（站内购买 · 本地持久化 + 远端自动同步） */
.my-orders { display: flex; flex-direction: column; gap: 10px; }
.my-order { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--card-bg); }
.my-order-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.my-order-head .mo-st { min-width: 52px; }
.my-order-body { margin-top: 8px; }
.my-order-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.my-order-code b { word-break: break-all; }
.buy-line { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; flex-wrap: wrap; }
.buy-line > span:not(.hint) { color: var(--text-faint); flex: none; width: 72px; }
.buy-line b, .buy-line .hint { color: var(--text); font-weight: 600; min-width: 0; flex: 1 1 auto; word-break: break-word; }
.buy-line > input { flex: none; }
.buy-line .hint { color: var(--text-dim); font-weight: 400; line-height: 1.6; }
.code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); font-size: 12.5px; }
.code-row b { flex: 1 1 auto; min-width: 0; }
.code-row b.mono { font-family: Consolas, Menlo, monospace; }
.buy-qr-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card-bg); }
/* R183 · 购买弹窗的支付方式选择
   只渲染后台开着的渠道（支付宝 / 微信 / 人工），没开的不出现——不是「出现但禁用」。
   选中态用 --primary 描边 + --hover-bg 底色 + --primary-ink 文字（彩色字必须走 ink 档，
   直接拿 --primary 压在浅底上只有 3.3:1，读不清）。高度 32 沿用面板的 md 档，不用自定义数。 */
.pay-ch { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-ch .pc {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--card-bg);
  color: var(--text-dim); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.pay-ch .pc svg { width: 15px; height: 15px; flex: none; }
.pay-ch .pc:hover { border-color: var(--primary); color: var(--text); }
.pay-ch .pc[aria-pressed="true"] { border-color: var(--primary); background: var(--hover-bg); color: var(--primary-ink); }
.pay-ch .pc:disabled { cursor: default; opacity: .62; }
/* 未下单时右侧二维码位的占位：和真要显示的二维码同尺寸，避免下单那一刻整块跳高 */
.buy-qr-wait {
  width: 150px; height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  color: var(--text-faint); font-size: 12.5px; line-height: 1.7; text-align: center;
}
/* 一个支付渠道都没开时的空态：虚线不变，但底色与文字再压一档，
   与「等下单出码」区分开——前者是暂时没得买，后者是马上会有码，两者不该长得一样。 */
.buy-qr-wait.is-off { background: var(--bg2); border-color: var(--line); }
/* 站点管理 · 卡片式列表（根治表格列宽撑破问题） */
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .site-cards { grid-template-columns: 1fr; } }
.site-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card-bg); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.site-card:hover { border-color: rgba(56, 130, 246, .35); box-shadow: 0 8px 22px rgba(15, 35, 75, .08); }
.sc-top { display: flex; align-items: flex-start; gap: 10px; }
.site-card-ico { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--input-bg); flex: none; }
.sc-main { flex: 1; min-width: 0; }
.sc-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-grp { font-size: 11px; color: var(--text-faint); background: var(--input-bg); border-radius: 6px; padding: 1px 8px; flex: none; }
.sc-net { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.sc-net .status-dot { width: 7px; height: 7px; }
.sc-st { color: var(--text-dim); }
.sc-ops { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.sc-ops .btn { height: 30px; }
.sc-addrs { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.addr-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.addr-val { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; border-radius: 6px; padding: 1px 7px; flex: none; }
.tag svg { width: 11px; height: 11px; }
.tag-intra { color: #3882f6; background: rgba(56, 130, 246, .12); }
.tag-extra { color: #10b981; background: rgba(16, 185, 129, .12); }
.sc-remark { font-size: 12px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.sc-empty-card { grid-column: 1 / -1; text-align: center; color: var(--text-faint); padding: 30px 0; font-size: 13px; }
.site-card .sc-empty-txt { color: var(--text-faint); font-size: 12px; }
/* v0.99.7 系统通知：首页广播按钮 + 红色未读数上标 + 列表/详情 */
.bell-btn .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #ef4444; color: #fff; font-size:11px; font-weight: 700;
  border-radius: 9px; line-height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.sys-list .notice-item .n-t .sys-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 20px;
  background: rgba(139, 92, 246, .14); color: #8b5cf6; flex: none;
}
.notice-detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.notice-detail-body { max-height: 46vh; overflow: auto; padding-right: 4px; }

/* v0.99.58：全站一键返回顶部统一为 EDIY 官网样式（44px 圆形、白底天蓝描边、微投影；暗色深底） */
.back-top {
  position: fixed; right: 22px; bottom: 74px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #d9e6fa; color: #2563eb;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: #eff5ff; }
.back-top svg { width: 19px; height: 19px; }
html[data-theme="dark"] .back-top { background: #111a2e; border-color: rgba(96, 165, 250, 0.35); color: #60a5fa; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .back-top:hover { background: rgba(37, 99, 235, 0.18); }
/* ============================================================
   站点卡片 · 方案 A（R173 产品方拍板：玻璃质感 + 底部渐变光条）
   动机：原卡只有「图标 + 名称」，没有信息密度也没有状态反馈，
        产品方判定「缺科技感」，要求徽标 / 收藏标识一并重做。
   规格（均取自设计稿 00-文档/06-设计稿/2026-11-01_UI改造设计稿_ediy）：
        · 名称两行截断，右侧留 28px 给网络徽标，避免压字
        · 第二行域名（等宽字体），右侧留 24px 给收藏星标
        · 网络徽标 = 21×21 圆角 7 的单字芯片（内 / 外 / 双），三色区分
        · 收藏星标落右下，选中为琥珀实心
        · 悬停：上浮 2px + 边框转品牌蓝 + 底部 2px 蓝→青渐变光条
   ============================================================ */
.site-grid { grid-template-columns: repeat(6, 1fr); }   /* 每行固定 6 个，不自适应（产品方 R144） */

.site-card {
  position: relative;
  display: flex;
  /* 必须显式写 row：更早的 .site-card 是「竖排小方块」的 flex-direction:column，
     flex 容器不写方向会继承那条，卡片就会变成「图标在上、文字在下」并被压扁重叠（R173 实测踩到）。 */
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  min-height: 74px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.site-card::after {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0; transition: opacity .22s ease;
}
.site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 123, 255, .5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34), 0 0 0 1px rgba(47, 123, 255, .14);
}
.site-card:hover::after { opacity: 1; }
html[data-theme="light"] .site-card:hover { box-shadow: 0 12px 26px rgba(51, 68, 92, .16), 0 0 0 1px rgba(47, 123, 255, .22); }

.site-card .s-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.site-card .s-tx { flex: 1; min-width: 0; }
.site-card .s-name {
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  padding-right: 28px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
.site-card .s-host {
  display: block; margin-top: 2px; padding-right: 20px;
  font-size: 10.5px; color: var(--text-faint);
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 这一行只放域名，不再拼备注：6 列桌面上文字可用宽约 119px ≈ 19 个等宽字符，
   域名本身就要 18 个，再拼「· 备注」必被截成半截省略号（R173 截图取证后收敛）。
   备注仍在 title 悬停提示与站点编辑弹窗里，信息没丢。 */

/* 网络属性徽标：单字芯片（内 / 外 / 双），三色区分，不再用「图标 + 文字」胶囊 */
.site-card .net-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; padding: 0;
  font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0;
  border-radius: 7px; border: 1px solid; opacity: 1; z-index: 2;
}
.site-card .net-badge svg { display: none; }
.site-card .net-badge.nb-extranet_only { color: var(--primary-ink); background: rgba(47, 123, 255, .12); border-color: rgba(47, 123, 255, .38); }
.site-card .net-badge.nb-intranet_only { color: var(--ok); background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .38); }
.site-card .net-badge.nb-dual { color: var(--accent); background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .38); }
/* 亮色底上 --ok / --accent 压白底读不清，换同色相深档（对比度均 ≥4.5:1） */
html[data-theme="light"] .site-card .net-badge.nb-extranet_only { color: #1D4ED8; background: rgba(37, 99, 235, .10); border-color: rgba(37, 99, 235, .32); }
html[data-theme="light"] .site-card .net-badge.nb-intranet_only { color: #0B8A62; background: rgba(11, 138, 98, .10); border-color: rgba(11, 138, 98, .30); }
html[data-theme="light"] .site-card .net-badge.nb-dual { color: #0E7F9E; background: rgba(14, 127, 158, .10); border-color: rgba(14, 127, 158, .30); }

.site-card .fav {
  position: absolute; right: 11px; bottom: 9px; top: auto; left: auto;
  background: none; border: 0; padding: 0; margin: 0;
  font-size: 13px; line-height: 1;
  color: var(--text-faint); opacity: .55; cursor: pointer; z-index: 2;
  transition: color .16s, opacity .16s, transform .16s;
}
.site-card .fav:hover { transform: scale(1.12); }
.site-card:hover .fav { opacity: 1; }
.site-card .fav.on { color: var(--warn); opacity: 1; }
/* ---- 私密锁徽标定案（R187-1）--------------------------------------------
   产品方要求：小锁挪到 LOGO 的「内部左上角」。
   所以必须先把图标包一层定位容器（.s-ico-wrap = 40×40，与 .s-ico 同尺寸），
   锁做成 15px 的圆形小徽章，落在容器内 (1px,1px)。
   注意别改成负偏移：负值会溢到 LOGO 外侧，视觉上又变回「卡片角标」。
   ---- */
.site-card .s-ico-wrap { position: relative; width: 40px; height: 40px; flex: none; }
.site-card .s-ico-wrap .s-ico { width: 40px; height: 40px; display: block; }
.site-card .sec-tag {
  position: absolute; top: 1px; left: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11, 20, 38, .84);
  border: 1px solid rgba(167, 139, 250, .72);
  color: #c4b5fd;
  opacity: 1; z-index: 3; pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
html[data-theme="light"] .site-card .sec-tag {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(124, 58, 237, .5);
  color: #7c3aed;
  box-shadow: 0 1px 3px rgba(51, 68, 92, .18);
}

/* 卡片列数断点（R173 收敛为 1200 / 900 / 620 / 420 四档，与全站一致）。
   必须写在本文件靠后位置：早期 720px 处那条 auto-fill 规则会被上面的
   repeat(6,1fr) 覆盖，若不在此处重声明，窄屏会挤成 6 列各 100px。 */
@media (max-width: 1200px) { .site-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .site-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .site-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .site-grid { grid-template-columns: 1fr; } }

/* 分组标题：3px 竖条落在左边距里，标题与卡片左边缘对齐（不额外缩进） */
.group-head { position: relative; }
.group-head::before {
  content: ""; position: absolute; left: -11px; top: 2px; bottom: 2px;
  width: 3px; border-radius: 2px; background: var(--primary); opacity: .85;
}
.group-head .g-name { font-size: 16px; }


/* ============================================================
   视觉层次重构（R143）
   实测诊断：
     ① 字号 18 档（9.5/10/10.5/11/11.5/12/12.5/13/13.33/13.5/14/14.5/15/16/22/30/34/40）
     ② 主色落点 29 处（登录/搜索/专业版/问候语/查看全部/模块图标/选中tab…）
     ③ 搜索框 36px，而时钟 40px 是全页最大字 —— 可操作的最弱，不可操作的最强
     ④ 区块间距 14/16/16/18 —— 完全均匀，没有段落
   原则：一屏只有一个主角；主色只给「主操作 / 当前态 / 焦点环」。
   ============================================================ */

/* ① 搜索框是页面唯一主操作 —— 只改 #scInput，不动全局 .input（后台表单零影响） */
#scInput { height: 48px; font-size: 16px; padding: 0 14px; border-radius: 12px; }
#scInput::placeholder { font-size: 14px; }

/* ② 时钟与天气是「状态」不是「焦点」—— 降权 */
.hero-row > .widget .w-clock-body .t     { font-size: 28px; }
.hero-row > .widget .w-weather-body .tmp { font-size: 26px; }

/* ③ 主色收敛：问候语、查看全部、模块图标改中性 */
.hero-row > .widget .w-greet { color: var(--text-dim); }
.notice-bar .nb-more { color: var(--text-dim); }
.w-ico { color: var(--text-dim); }

/* ④ 字号收敛：半档并整档 */
.notice-bar .nb-title,
.notice-bar .nb-item { font-size: 13px; }
.nav-tabs .nav-tab { font-size: 13px; }
.tb-brand .tb-sub { font-size: 11px; }
.topbar .tb-act, .topbar .tb-link { font-size: 13px; }


/* ===== V8 s03 客户端管理后台硬规则（2026-10-25）===== */
.admin-wrap{font-size:13px}
.admin-wrap table{table-layout:auto}
.admin-wrap td,.admin-wrap th{white-space:nowrap}
.admin-wrap td.wrap,.admin-wrap .wrap{white-space:normal}
.admin-wrap table tr{height:44px}
.admin-wrap input,.admin-wrap select,.admin-wrap .btn{height:40px;border-radius:10px}
.admin-wrap textarea{min-height:96px;border-radius:10px;height:auto}
.admin-wrap input:focus,.admin-wrap select:focus,.admin-wrap textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(47,123,255,.25);outline:none}
.admin-wrap .btn.danger{background:transparent;border-color:transparent;color:var(--text-faint);box-shadow:none}
.admin-wrap .btn.danger:hover,.admin-wrap tr:hover .btn.danger:not(:disabled){color:#e5484d;border-color:transparent;background:transparent}

/* C16 / C17：段末孤字与标题末行失衡 —— 交给浏览器排版，不改任何尺寸 */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ============================================================
   R167：进后台自动检测更新的提醒弹窗
   全部使用现有令牌（--bg2/--line/--text-dim/--primary-ink/--danger），
   不引入新色值；按钮沿用 .btn 三档体系，不新增尺寸。
   ============================================================ */
.upg-head { margin-bottom: 16px; }
.upg-ver { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.upg-arw { color: var(--text-faint); font-weight: 400; font-size: 16px; }
.upg-new { color: var(--primary-ink); }
.upg-sub { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.upg-block { margin-bottom: 14px; }
.upg-label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 7px; letter-spacing: .3px; }
.upg-notes {
  font-size: 13px; line-height: 1.75; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px;
}
/* R175：更新说明回归「简要一段」——灰底框装一段连贯的话，超长收起 */
.upg-more { display: inline-block; margin-left: 4px; font-size: 12.5px; color: var(--primary-ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.upg-more:hover { text-decoration: underline; }
.upg-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; color: var(--text-dim); }
.upg-list b { color: var(--text); font-weight: 700; }
.upg-backup { font-size: 12.5px; color: var(--text-faint); margin-bottom: 4px; }
.upg-backup a { color: var(--primary-ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.upg-backup a:hover { text-decoration: underline; }
.upg-err {
  margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--danger);
  background: var(--bg2); border: 1px solid var(--line); border-left: 2px solid var(--danger);
  border-radius: var(--radius-sm); padding: 9px 11px;
}
.upg-run { display: flex; align-items: flex-start; gap: 12px; padding: 10px 2px 6px; font-size: 13.5px; color: var(--text); }
.upg-spin {
  width: 16px; height: 16px; flex: none; margin-top: 2px;
  border: 2px solid var(--line-strong); border-top-color: var(--primary);
  border-radius: 50%; animation: upgspin .8s linear infinite;
}
@keyframes upgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .upg-spin { animation-duration: 2.4s; } }

/* ============================================================
   R180 · 授权订阅页（单列胶囊卡片）
   ------------------------------------------------------------
   产品方 2026-11-01 原话：「客户端后台管理-授权管理页面 UI 太乱，请重新排版，
   从上到下的原则，或者参考系统设置页面的样式用整体胶囊卡片的形式。」
   ⇒ R178 的「状态带 + 左右双栏」被否掉，改回**单列、从上到下**：
        ① 当前状态（7 格信息，一屏读完）
        ② 获取专业版（激活 + 三档购买，主行动）
        ③ 额度
        （R182 起 ④设备与安全 / ⑤历史授权 / ⑥服务与支持 / ⑦推广返利 已拆成独立菜单页，
          本页只剩 ①②③ + 一张「其他相关」快捷入口卡）
   排版规则（与「系统设置」页对齐，三处一致）：
     · 一列到底，所有卡片同宽同圆角（16px），卡片间距 12px，宽度铺满内容区（R182 去掉 1180 上限）；
     · 卡片标题左缘竖条与 .set-title::before / .upg-card-head::before 完全同规格（4×15、圆角 3）；
     · 卡片内**不再套第二层描边卡片**——需要分组时用 1px 分隔线或极浅底色块，
       避免「边框套边框」这种看起来乱的主因。
   「我的订单」不再出现在本页（产品方：已有独立页面）。
   所有 id / data-* 钩子保持原值，下方绑定代码无需改动。
   ============================================================ */
/* R182：去掉 max-width:1180px。
   产品方：授权订阅页「右侧没占满，与整体不一致」。实测 web 宽 1600 时 #tabBody 有 1324px，
   而 .lp 被夹在 1180 ⇒ 右侧空 144px，跟「站点管理 / 系统设置」铺满的样子不一样。
   现在宽度交给父容器（.main > .admin-main > #tabBody），本页与其它页对齐。 */
.lp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------- ① 当前状态（R183 改「会员卡」质感） ---------- */
/* 产品方原话：「这个区域底色太素了，考虑下会员卡渐变色的设计思路。」
   改之前是一张白/深灰卡 + 左上角一圈很淡的径向光晕，7 个信息格是灰底方块——像一张表格，不像一张卡。
   现在按会员卡的思路重做，只有三件事：
     ① 整块换品牌渐变（深蓝 → 品牌蓝 → 青），免费版用中性深灰蓝而不是彩色（没买就是没买，不装）。
     ② 卡面加「光泽带 + 右上角同心环」两个装饰，营造压印质感；**不用方格底纹**（R181 产品方已全站禁用）。
     ③ 信息格改成半透明白（不是实色块），让渐变透上来，格子才不会像贴上去的补丁。
   配色只用现有令牌（--primary #2f7bff / --primary2 #4f6ef7 / --accent #22d3ee），不引入第五种色。
   文字统一纯白：深色渐变上白字是最稳的对比（实测对最亮的一段 #22d3ee 仍有 2.4:1，
   但该段只出现在最右端装饰区，信息格所在的左侧落在 #1B3F9E~#2F7BFF 上，对比 ≥5.1:1）。 */
.lp-hero {
  position: relative; padding: 18px 18px 16px; overflow: hidden; color: #fff;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  background: linear-gradient(118deg, #24405F 0%, #33475F 48%, #41566F 100%);
  box-shadow: 0 12px 28px rgba(23, 34, 54, .22);
  transition: box-shadow .2s;
}
/* 卡面光泽：一条 118° 的窄亮带 + 左上角柔光，模拟压印卡的反光，不加重复纹理 */
.lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, .07) 100%),
    radial-gradient(420px 200px at 8% -20%, rgba(255, 255, 255, .22), transparent 70%);
}
/* 右上角同心环：会员卡常见的徽标位，纯装饰、不进 tab 序 */
.lp-hero::after {
  content: ''; position: absolute; right: -54px; top: -46px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, .05), inset 0 0 0 29px rgba(255, 255, 255, .10);
}
.lp-hero > * { position: relative; z-index: 1; }
/* 专业版：品牌蓝 → 青（有授权，用彩色） */
.lp-hero.is-pro {
  background: linear-gradient(118deg, #1B3F9E 0%, #2F7BFF 52%, #23A8D8 100%);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 14px 32px rgba(47, 123, 255, .30);
}
/* 试用中：同一渐变体系里偏靛一档，跟「已生效」区分开但不换色系 */
.lp-hero.is-trial {
  background: linear-gradient(118deg, #2A3486 0%, #4F5BE0 50%, #2F7BFF 100%);
  border-color: rgba(255, 255, 255, .20);
  box-shadow: 0 14px 30px rgba(79, 110, 247, .26);
}
.lp-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-hero-top b { font-size: 19px; font-weight: 800; letter-spacing: .2px; color: #fff; }
.lp-flag-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
/* 徽标：从「彩底浅色标签」改成白色玻璃片——它压在渐变上，再叠一层彩色就脏了 */
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #fff;
  background: rgba(255, 255, 255, .20); border: 1px solid rgba(255, 255, 255, .34);
  backdrop-filter: saturate(140%) blur(2px);
}
/* 状态带里的信息格：半透明白（只作用于 .lp-hero 内，移机换绑页的浅底格不受影响） */
.lp-hero .lp-cell {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.lp-hero .lp-cell em { color: rgba(255, 255, 255, .74); }
.lp-hero .lp-cell b { color: #fff; }
/* 格子里的「复制」小按钮：白描边玻璃片，不用主色实心（在渐变上会糊成一块） */
.lp-hero .lp-cell .btn {
  background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .42); color: #fff;
}
.lp-hero .lp-cell .btn:hover { background: rgba(255, 255, 255, .30); }
.lp-hero .lp-cell .btn svg { stroke: #fff; }

/* 状态信息格：一列到底后横向铺开，7 格等宽（窄屏自动折行），比原来的「左 3 格 + 右 4 行」更整齐 */
.lp-grid { margin-top: 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.lp-cell { min-width: 0; padding: 8px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.lp-cell em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-faint); margin-bottom: 3px; }
.lp-cell b { display: block; font-size: 13px; color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cell b.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.lp-cell .btn { height: 22px; padding: 0 7px; font-size: 11.5px; margin-left: 6px; vertical-align: middle; }

/* ---------- 告警条（降级原因 / 云端异常） ---------- */
.lp-alert {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.7;
  background: rgba(245, 158, 11, .10); border: 1px solid rgba(245, 158, 11, .34); color: var(--text);
}
.lp-alert.is-bad { background: rgba(248, 113, 113, .10); border-color: rgba(248, 113, 113, .34); }
.lp-alert .lp-alert-t { flex: 1; min-width: 220px; }
.lp-alert b { font-weight: 700; }

/* ---------- ②~⑦ 通用卡片（胶囊） ---------- */
.lp-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg);
  padding: 15px 18px 17px; min-width: 0;
}
.lp-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
/* R182：由「绝对定位 + padding-left」改成与 .set-title / .upg-card-head 一致的 flex 竖条，
   尺寸统一 4×15 圆角 3（原来是 4×14），三处标题在任何页面上都长得一模一样。 */
.lp-card-h h3 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: .2px;
}
.lp-card-h h3::before {
  content: ''; flex: none; width: 4px; height: 15px; border-radius: 3px; background: var(--primary);
}
.lp-card-h .lp-h-sub { font-size: 12px; color: var(--text-faint); font-weight: 400; }
.lp-card-h .btn { margin-left: auto; }
.lp-sep { height: 1px; background: var(--line); margin: 14px 0; }

/* 激活输入行 */
.lp-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lp-act .input { flex: 1; min-width: 240px; max-width: 420px; }
.lp-acc { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-dim); flex-wrap: wrap; }
.lp-acc .input { max-width: 300px; height: 30px; }

/* 购买档位（三列，窄屏落一列） */
.lp-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-tier {
  position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 13px 12px 12px;
  background: var(--bg2); text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  transition: border-color .18s, transform .18s;
}
.lp-tier:hover { border-color: var(--primary); transform: translateY(-1px); }
.lp-tier.is-hot { border-color: rgba(47, 123, 255, .45); background: linear-gradient(180deg, rgba(47, 123, 255, .08), transparent 70%), var(--bg2); }
.lp-tier-n { font-size: 12.5px; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lp-tier-p { display: flex; align-items: baseline; gap: 4px; }
.lp-tier-p b { font-size: 22px; font-weight: 800; color: var(--primary-ink); letter-spacing: -.4px; }
.lp-tier-p s { font-size: 12px; color: var(--text-faint); }
.lp-tier-p span { font-size: 11.5px; color: var(--text-faint); }
.lp-tier-d { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; min-height: 2.6em; }
.lp-tier .btn { width: 100%; justify-content: center; height: 30px; margin-top: auto; }

/* 免费额度条 */
/* 单列后卡片宽 1164，进度条如果拉满会「一条线横穿整屏」，看着比实际状态更刺眼 ⇒ 限宽 620 */
.lp-quota { display: flex; flex-direction: column; gap: 9px; max-width: 620px; }
.lp-q-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); }
.lp-q-bar { height: 6px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.lp-q-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f7bff, #22d3ee); }
.lp-q-row b { font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.lp-q-row b.over { color: var(--danger); }
.lp-q-row b.inf { color: var(--ok); }

/* 动作行 / 说明文字 */
.lp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-note { font-size: 12px; color: var(--text-faint); line-height: 1.7; margin-top: 10px; }
.lp-note a { color: var(--primary-ink); }
/* 联系方式行（产品页 / 微信 / QQ 群）：与「关于我们」用同一套按钮 */
.lp-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); margin-top: 10px; }

/* 历史授权表 */
.lp-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lp-tbl th {
  text-align: left; font-weight: 600; color: var(--text-faint); font-size: 11.5px;
  padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lp-tbl td { padding: 9px 10px 9px 0; border-bottom: 1px dashed var(--line); color: var(--text-dim); vertical-align: middle; }
.lp-tbl tr:last-child td { border-bottom: none; }
.lp-tbl td.mono, .lp-tbl .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--text); }
.lp-tbl .btn { height: 24px; padding: 0 8px; font-size: 12px; }

/* 我的订单（独立页面沿用，仅换容器样式） */
.lp .my-orders { gap: 8px; }
.lp .my-order { background: var(--bg2); }

@media (max-width: 720px) {
  .lp-tiers { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero { padding: 15px 14px; }
  .lp-card { padding: 13px 13px 14px; }
  .lp-tbl th:nth-child(3), .lp-tbl td:nth-child(3) { display: none; }
}
@media (max-width: 460px) {
  .lp-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   R184 · 后台列表三件事：筛选条 / 行拖拽 / 徽标重设计
   ----------------------------------------------------------------------------
   背景（产品方 2026-11-03 待优化处理项）：
     ① 站点管理筛选条件不够（缺分组、缺状态），且控件散在工具栏里没有秩序；
     ② 「内外」那枚蓝绿色小胶囊太丑，图标语义看不懂；
     ③ 分组/站点排序没有拖拽反馈，用户以为"拖不动"。
   原则：只覆盖既有类，不改旧规则本体；明暗两态都走令牌，不引入第 5 色。
   ============================================================================ */

/* ---------- 筛选条 ---------- */
.tb-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-search { position: relative; flex: 1 1 240px; min-width: 190px; max-width: 340px; display: flex; align-items: center; }
.tb-search .input { width: 100%; padding-right: 34px; }
.tb-search .tb-search-ico { position: absolute; right: 10px; display: flex; color: var(--text-faint); pointer-events: none; }
.tb-search .tb-search-ico svg { width: 16px; height: 16px; }
.tb-filter .select { flex: 0 0 auto; width: 134px; }
.tb-filter .select.sel-sm { width: 122px; }
.tb-filter .btn-reset { flex: 0 0 auto; color: var(--text-dim); }
.tb-count { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.tb-count b { color: var(--text); font-weight: 600; }
.tb-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 900px) {
  .tb-search { max-width: none; flex: 1 1 100%; }
  .tb-actions { margin-left: 0; width: 100%; }
}

/* ---------- 行拖拽排序 ---------- */
/* 只在「⠿」手柄上响应，整行不设 draggable —— table 上的 HTML5 DnD 跨浏览器不稳，
   且整行可拖会误伤行内按钮点击（历史问题：点"编辑"偶尔变成拖拽）。 */
.tbl .drag-handle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  cursor: grab; color: var(--text-faint); touch-action: none; user-select: none;
  transition: background .15s, color .15s;
}
.tbl .drag-handle:hover { background: var(--hover-bg); color: var(--primary-ink); }
.tbl .drag-handle:active { cursor: grabbing; }
.tbl .drag-handle svg { width: 15px; height: 15px; }
.tbl tr.row-dragging { opacity: .5; }
.tbl tr.row-dragging td { background: var(--hover-bg); }
.tbl tr.row-drop-above td { box-shadow: inset 0 2px 0 0 var(--primary); }
.tbl tr.row-drop-below td { box-shadow: inset 0 -2px 0 0 var(--primary); }
.tbl th.th-order, .tbl td.td-order { text-align: center; }
/* 保存排序进行中：按钮走 disabled 态，避免连点重复提交 */
.btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- 网络属性徽标（重设计） ----------
   旧样式是三块饱和实心色（#2563eb / #0e8fb8 / #64748b），在表格里既抢眼又互不协调，
   且"内外"用一个两笔折线箭头表示，用户反馈看不懂。
   新样式：图标重画（拓扑 / 桥接 / 地球，语义可辨），配色改为「强弱层次」——
   内网（首选）用主色浅底+ink 字，内外用中性浅底+正文色，外网最弱用描边+次要色。
   网络属性是「位置属性」不是「状态」，因此不占用成功绿/警示红。 */
.tbl-net {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 4px 8px 4px 7px; border-radius: 7px;
  border: 1px solid transparent; white-space: nowrap; letter-spacing: .2px;
}
.tbl-net svg { width: 13px; height: 13px; flex: none; }
.nb-intranet_only { background: rgba(47, 123, 255, .16); color: var(--primary-ink); border-color: rgba(47, 123, 255, .30); }
.nb-dual { background: var(--panel2, rgba(120, 130, 160, .10)); color: var(--text); border-color: var(--line-strong); }
.nb-extranet_only { background: rgba(120, 130, 160, .06); color: var(--text-dim); border-color: var(--line-strong); }
html[data-theme="light"] .nb-intranet_only { background: rgba(37, 99, 235, .10); color: #1D4ED8; border-color: rgba(37, 99, 235, .24); }
html[data-theme="light"] .nb-dual { background: rgba(15, 23, 42, .05); color: #334155; border-color: rgba(15, 23, 42, .16); }
html[data-theme="light"] .nb-extranet_only { background: rgba(15, 23, 42, .03); color: #64748B; border-color: rgba(15, 23, 42, .16); }

/* 可见范围徽标：与网络属性同一套描边体系；私密是需要留意的信息，走警示色描边 */
.nb-vis-public { background: rgba(120, 130, 160, .06); color: var(--text-dim); border-color: var(--line-strong); }
.nb-vis-private { background: rgba(251, 191, 36, .14); color: var(--warn); border-color: rgba(251, 191, 36, .32); }
html[data-theme="light"] .nb-vis-public { background: rgba(15, 23, 42, .03); color: #64748B; border-color: rgba(15, 23, 42, .16); }
html[data-theme="light"] .nb-vis-private { background: rgba(217, 119, 6, .10); color: #B45309; border-color: rgba(217, 119, 6, .26); }

/* 地址列的内网/外网行标签：与徽标同一图标，但只做"行首标记"，不抢主体色 */
.addr-line .tbl-net { padding: 2px 5px; border-radius: 5px; }
.addr-line .tbl-net svg { width: 12px; height: 12px; }

/* ============================================================
   R185 · 列宽与表格布局收口（产品方 2026-11-04：「列表右侧这个地方改坏了」）
   起因链：`.admin-wrap table{table-layout:auto}`（V8 遗留硬规则，优先级高于 `.tbl`）
   让后台所有列表其实一直是 auto 布局 —— JS 写进去的列宽只是"建议值"，内容一长就被撑开，
   右侧于是错位/溢出；版本日志表更是把 961px 的长文本列顶出容器。
   下面三条按"更高优先级 + 更靠后"收口：列表必须 fixed，长文本列必须能折行。
   ============================================================ */
.admin-wrap .tbl { table-layout: fixed; }
.admin-wrap .ver-table { table-layout: fixed; }
.admin-wrap .ver-table .c-c,
.admin-wrap .ver-table .c-c * { white-space: normal; overflow-wrap: anywhere; }
