/* 钥小盒 - 全局样式（响应式：PC / 移动端） */
:root {
  /* 主色与语义色 */
  --primary: #2f54eb;
  --primary-dark: #1d39c4;
  --primary-light: #f1f4ff;
  --primary-bg: #f1f4ff;
  --danger: #e5484d;
  --success: #18a058;

  /* 中性色 */
  --bg: #f5f7ff;
  --bg-page: #f5f7ff;
  --card: #ffffff;
  --text: #151a26;
  --text-1: #151a26;
  --text-2: #6b7280;
  --text-3: #9ba1af;
  --text-white: #ffffff;
  --border: #e8eaf2;

  /* 圆角与阴影 */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 30px -18px rgba(48, 72, 150, 0.22);
  --shadow-lift: 0 2px 6px rgba(16, 24, 40, 0.05), 0 18px 40px -22px rgba(48, 72, 150, 0.28);

  --nav-h: 64px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'HarmonyOS Sans SC', 'MiSans', 'PingFang SC',
    'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(120, 168, 255, .16), transparent 68%),
    radial-gradient(780px 520px at 96% 6%, rgba(163, 137, 255, .14), transparent 68%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { min-height: 100%; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(47, 84, 235, 0.16); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d7dae5; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c2c7d6; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 启动画面 ============ */
.bootSplash {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--text-2); font-size: 14px;
}
.bootLogo { font-size: 44px; filter: saturate(0.9); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(16px);
  background: rgba(21, 26, 38, 0.92); color: #fff; padding: 11px 20px;
  border-radius: 999px; font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; z-index: 1000;
  max-width: 86vw; text-align: center; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 通用控件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--primary); color: #fff;
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 8px 18px -10px rgba(47, 84, 235, .8); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost {
  background: #fff; color: var(--primary);
  border: 1px solid #d9dffa;
}
.btn.ghost:hover { background: var(--primary-light); border-color: #c3cdf7; box-shadow: none; }
.btn.text { background: transparent; color: var(--primary); height: auto; padding: 4px 8px; }
.btn.text:hover { background: var(--primary-light); box-shadow: none; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #cc353a; box-shadow: 0 8px 18px -10px rgba(229, 72, 77, .8); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; outline: none; font-size: 14.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, 0.10);
}
.field .hint { font-size: 12px; color: var(--text-2); margin-top: 7px; }
.field .hint.err { color: var(--danger); }

/* Emoji 图标选择：预览块 + 输入框 + 选择按钮 + 分组面板 */
.emojiPicker { display: flex; align-items: center; gap: 10px; }
.emojiPreview {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
  border-radius: 14px; border: 1px solid #dbe3ff;
  background: linear-gradient(145deg, #f2f5ff, #e3e9ff);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(47, 84, 235, .08);
  transition: transform .2s ease;
}
.emojiPicker input { flex: 1; min-width: 0; height: 48px !important; }
.emojiTrigger {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: all .2s ease;
}
.emojiTriggerIco { font-size: 15px; line-height: 1; }
.emojiTrigger:hover { border-color: #c3cdf7; color: var(--primary); background: var(--primary-light); }
.emojiTrigger.open { border-color: var(--primary); color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(47, 84, 235, .08); }

.emojiPanel {
  margin-top: 12px; padding: 14px 14px 8px;
  border: 1px solid #e5e9f5; border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff, #f4f7fe);
  box-shadow: 0 12px 30px rgba(24, 39, 75, .09), inset 0 1px 0 #fff;
  max-height: 252px; overflow-y: auto;
  animation: emojiIn .18s ease;
}
@keyframes emojiIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.emojiPanel::-webkit-scrollbar { width: 6px; }
.emojiPanel::-webkit-scrollbar-thumb { background: #d7ddeb; border-radius: 3px; }
.emojiPanel::-webkit-scrollbar-thumb:hover { background: #c3cbdd; }
.emojiPanelHead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px dashed #e3e8f4;
}
.emojiPanelTitle { font-size: 12.5px; font-weight: 600; color: var(--text-1); letter-spacing: .3px; }
.emojiCurrent { font-size: 12px; color: var(--text-3); }
.emojiCurrent b { font-size: 17px; vertical-align: -3px; margin-left: 2px; }
.emojiGroupTitle { font-size: 11px; color: var(--text-3); letter-spacing: .6px; margin: 12px 0 6px 2px; }
.emojiGroup:first-child .emojiGroupTitle { margin-top: 0; }
.emojiGrid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.emojiBtn {
  height: 36px; width: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.emojiBtn:hover {
  background: #fff; border-color: #dbe3ff; transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(47, 84, 235, .12);
}
.emojiBtn:active { transform: scale(.94); }
.emojiBtn.active {
  background: linear-gradient(145deg, #eef2ff, #dfe6ff);
  border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 84, 235, .14);
}
@media (max-width: 430px) {
  .emojiPreview { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
  .emojiPicker input { height: 44px !important; }
  .emojiTrigger { height: 42px; padding: 0 12px; }
  .emojiGrid { grid-template-columns: repeat(6, 1fr); }
}

/* 字段标题行：左侧标签 + 右侧「多行」开关 */
.fieldHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.fieldHead label { margin-bottom: 0; }
.fieldHead .cfLabel { font-size: 12px; color: var(--text-2); }
.areaToggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.switch.sm { width: 34px; height: 18px; }
.switch.sm i::before { height: 12px; width: 12px; left: 3px; top: 3px; }
.switch.sm input:checked + i::before { transform: translateX(16px); }

.inputWrap { position: relative; }
.inputWrap input { padding-right: 44px; }
.inputWrap .eyeBtn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-2); font-size: 16px; transition: background .15s;
}
.inputWrap .eyeBtn:hover { background: #f2f4f9; color: var(--primary); }

/* ============ 添加 / 编辑条目表单 ============ */
.formSec {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  letter-spacing: 0.08em; margin: 22px 0 12px;
}
.formSec::after { content: ''; flex: 1; height: 1px; background: #eef0f6; }
.formSec:first-of-type { margin-top: 2px; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 430px) { .formGrid { grid-template-columns: 1fr; gap: 0; } }
.fieldOps { display: flex; justify-content: flex-end; gap: 2px; margin-top: 2px; }

.cfItem {
  background: #fafbfe; border: 1px solid #eef0f6; border-radius: 12px;
  padding: 11px 13px 9px; margin-bottom: 10px;
  transition: border-color .18s ease, background .18s ease;
}
.cfItem:focus-within { background: #fff; border-color: #d5dcf7; }
.cfItemHead { display: flex; align-items: center; gap: 6px; }
.cfNameInput {
  flex: 1; min-width: 0; height: 38px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff;
  font-size: 13.5px; font-weight: 500; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cfNameInput:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .09); }
.cfActs { display: flex; align-items: center; gap: 1px; flex-shrink: 0; }
.iconBtn.danger:hover { background: #fdf0ef; color: var(--danger); }
.cfBody { margin-top: 9px; }
.cfBody input, .cfBody textarea {
  width: 100%; height: 40px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff;
  font-size: 13.5px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cfBody textarea { height: auto; min-height: 82px; padding: 9px 11px; line-height: 1.7; resize: vertical; }
.cfBody input:focus, .cfBody textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .09);
}
.cfMoves { display: flex; gap: 4px; margin-top: 8px; }
.cfMv {
  width: 26px; height: 24px; border-radius: 7px; font-size: 12px; line-height: 1;
  color: var(--text-2); background: #fff; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cfMv:hover { color: var(--primary); border-color: #c3cdf7; background: var(--primary-light); }
.cfMv.dim { opacity: .32; pointer-events: none; }
.cfChildren { margin-top: 10px; padding-left: 12px; border-left: 2px solid #e7ebf7; }
.cfChildren .cfItem { background: #fff; margin-bottom: 8px; }
.cfChildren .cfItem:last-child { margin-bottom: 0; }
.cfEmpty { font-size: 13px; color: var(--text-3); padding: 14px 0 6px; }
.cfAddBtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; margin-top: 2px;
  border: 1px dashed #cfd6ea; border-radius: 10px;
  color: var(--primary); background: #fff; font-size: 13.5px; font-weight: 500;
  transition: border-color .18s ease, background .18s ease;
}
.cfAddBtn:hover { border-color: var(--primary); background: var(--primary-light); }

/* ============ 安全性强调 ============ */
/* 保管箱顶部安全条 */
.secBar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; margin-bottom: 16px;
  background: linear-gradient(97deg, #f4f7ff 0%, #f6f9ff 55%, #fbfcff 100%);
  border: 1px solid #e4ebfb; border-radius: 13px;
}
.secBarIco {
  width: 34px; height: 34px; flex-shrink: 0; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(47, 84, 235, .1);
}
.secBarTxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.secBarTxt b { font-size: 13.5px; font-weight: 600; color: #2b3a63; letter-spacing: -0.1px; }
.secBarTxt span { font-size: 12px; color: #64739a; line-height: 1.5; }
.secBarMore {
  flex-shrink: 0; border: none; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--primary); padding: 4px 2px;
  transition: opacity .18s ease;
}
.secBarMore:hover { opacity: .7; }
@media (max-width: 430px) {
  .secBar { padding: 11px 13px; gap: 10px; }
  .secBarTxt span { display: none; }
}

/* 登录页信任标签 */
.authTrust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.authTrust span {
  font-size: 11.5px; color: #5c6b8f; padding: 4px 11px;
  background: #f5f8ff; border: 1px solid #e6ecfa; border-radius: 999px;
}

/* 我的页安全卡片 */
.secTip {
  margin: 16px 0; padding: 16px; border-radius: 13px;
  background: #f8faff; border: 1px solid #e9effb;
}
.secTipTitle { font-size: 13px; font-weight: 600; color: #2b3a63; margin-bottom: 10px; }
.secTipList { margin: 0; padding: 0; list-style: none; }
.secTipList li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: 12.5px; color: #64739a; line-height: 1.65;
}
.secTipList li:last-child { margin-bottom: 0; }
.secTipList li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  font-size: 11px; font-weight: 700; color: var(--success);
}
.secTipBtn {
  margin-top: 12px; border: none; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--primary);
}
.secTipBtn:hover { opacity: .75; }

/* 安全说明弹窗 */
.secLead { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 0 0 16px; }
.secList { margin: 0; padding: 0; list-style: none; }
.secList li {
  display: flex; gap: 12px; padding: 13px 0;
  border-top: 1px solid #f0f2f7;
}
.secList li:first-child { border-top: none; padding-top: 2px; }
.secIco {
  width: 30px; height: 30px; flex-shrink: 0; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f8ff; border-radius: 9px;
}
.secList b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.secList p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* ============ 认证页（登录/注册） ============ */
.authPage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(900px 500px at 50% -10%, #e7ecff 0%, rgba(231, 236, 255, 0) 70%),
    linear-gradient(180deg, #f7f8fc 0%, #f4f5fa 100%);
}
.authCard {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid rgba(232, 234, 242, .9);
  border-radius: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 30px 60px -32px rgba(16, 24, 40, .28);
  padding: 40px 32px 30px;
}
.authCard .brand { text-align: center; margin-bottom: 26px; }
.authCard .brand .logo { font-size: 40px; display: block; }
.authCard .brand h1 { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; margin-top: 12px; }
.authCard .brand p { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.authTabs { display: flex; background: #f3f4f9; border-radius: 11px; padding: 4px; margin-bottom: 24px; }
.authTabs button {
  flex: 1; height: 38px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-2); transition: all .18s ease;
}
.authTabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.authFoot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 20px; line-height: 1.9; }

/* ============ 主框架 ============ */
.shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .logo { font-size: 19px; line-height: 1; }
.topbar .title { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; flex: 1; }

/* PC 端顶部导航（移动端隐藏，使用底部导航） */
.topNav { display: none; gap: 2px; margin-right: 4px; }
.topNav button {
  border-radius: 9px; color: var(--text-2); font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; transition: background .18s, color .18s;
}
/* 导航图标：扁平线性，尺寸与文字垂直居中 */
.topNav .navIco { width: 16px; height: 16px; display: inline-flex; flex: 0 0 auto; }
.topNav .navIco svg { width: 100%; height: 100%; display: block; }
.topNav button:hover { background: #f4f6fb; color: var(--text); }
.topNav button.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }

.main {
  flex: 1; width: 100%; max-width: var(--container);
  margin: 0 auto;
  padding: 26px 20px calc(var(--nav-h) + 32px);
}

/* 统计卡 */
.statRow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.statCard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .18s, box-shadow .18s;
}
.statCard:hover { box-shadow: var(--shadow-sm); }
.statCard .num {
  font-size: 26px; font-weight: 600; color: var(--text);
  letter-spacing: -0.6px; font-variant-numeric: tabular-nums; line-height: 1.25;
}
.statCard .lbl { font-size: 12.5px; color: var(--text-2); margin-top: 4px; letter-spacing: 0.02em; }
.statCard.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .08); }
.statCard.active .num { color: var(--primary); }

/* 工具行：搜索 + 筛选 */
.toolRow { display: flex; gap: 10px; margin-bottom: 14px; }
.toolRow .searchBox {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 11px; padding: 0 14px; height: 44px;
  color: var(--text-3); transition: border-color .18s, box-shadow .18s;
}
.toolRow .searchBox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .1); }
/* 搜索图标：扁平线性放大镜（单色，随聚焦变主色） */
.toolRow .searchBox .searchIco {
  flex: 0 0 auto; width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa4bb; transition: color .18s ease;
}
.toolRow .searchBox .searchIco svg { width: 100%; height: 100%; display: block; }
.toolRow .searchBox:focus-within .searchIco { color: var(--primary); }
.toolRow .searchBox input {
  flex: 1; border: none; outline: none; background: transparent; height: 100%;
  font-size: 14.5px; color: var(--text);
}
.toolRow .searchBox input::placeholder { color: var(--text-3); }
.toolRow select {
  height: 44px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--card); padding: 0 12px; outline: none; font-size: 14px; color: var(--text-2);
}
.toolRow select:focus { border-color: var(--primary); }

/* 类型筛选 chips */
.chipRow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--border); color: var(--text-2);
  transition: all .16s ease;
}
.chip:hover { border-color: #cfd5ea; color: var(--text); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px -8px rgba(47, 84, 235, .9); }
.chip em { font-style: normal; opacity: 0.65; margin-left: 3px; font-size: 12px; }
.chip.active em { opacity: 0.85; }

/* 条目列表 */
.itemList { display: flex; flex-direction: column; gap: 10px; }
.itemCard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px 32px;
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.itemCard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #dfe3f0; }
.itemIcon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: var(--primary-light);
}
.itemBody { flex: 1; min-width: 0; }
.itemBody .name {
  font-size: 15px; font-weight: 550; letter-spacing: -0.1px;
  display: flex; align-items: center; gap: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.itemBody .name .fav { color: #f7b500; font-size: 13px; }
.itemBody .sub {
  font-size: 13px; color: var(--text-2); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.itemCard .chev { color: #c8ccd8; font-size: 18px; flex-shrink: 0; }

.emptyBox { text-align: center; padding: 76px 20px; color: var(--text-3); font-size: 14px; }
.emptyBox .ico { font-size: 52px; margin-bottom: 14px; opacity: .9; }

/* 悬浮添加按钮（移动端） */
.fab {
  position: fixed; right: 20px; bottom: calc(var(--nav-h) + 20px); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #4a6bf5, var(--primary));
  color: #fff; font-size: 26px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(47, 84, 235, .65);
  transition: transform .18s ease, box-shadow .18s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(47, 84, 235, .7); }

/* 底部导航（移动端） */
.bottomNav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: var(--nav-h);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.bottomNav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--text-2); transition: color .18s;
}
.bottomNav button .ico {
  width: 21px; height: 21px; display: inline-flex;
  align-items: center; justify-content: center;
}
.bottomNav button .ico svg { width: 100%; height: 100%; display: block; }
.bottomNav button.active { color: var(--primary); font-weight: 500; }

/* ============ 弹窗 ============ */
.modalMask {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 19, 32, 0.45);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: fadeIn .2s ease; backdrop-filter: blur(2px);
}
.modal {
  background: var(--card); width: 100%; max-height: 92vh;
  /* 纵向弹性布局：标题栏固定，只有内容区滚动 */
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  padding: 0;
  animation: slideUp .26s cubic-bezier(.22, .8, .36, 1);
}
.modal .mHead {
  display: flex; align-items: center;
  flex: 0 0 auto;
  position: relative; z-index: 50;
  margin: 0;
  padding: 22px 22px 14px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
/* 内容区独立滚动：滚动条从标题栏下方开始，不越过标题栏 */
.modal .mBody {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 22px 20px;
}
.modal.noFoot .mBody { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.modal .mBody::-webkit-scrollbar { width: 6px; }
.modal .mBody::-webkit-scrollbar-thumb {
  background: rgba(47, 84, 235, .20); border-radius: 999px;
}
.modal .mBody::-webkit-scrollbar-thumb:hover { background: rgba(47, 84, 235, .34); }
.modal .mBody::-webkit-scrollbar-track { background: transparent; }
.modal .mHead h3 { flex: 1; font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
/* 关闭按钮：与登录 / 注册对话框的白色圆形悬浮小钮保持一致 */
.modal .mHead .closeBtn {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  margin: -8px -8px 0 8px;
  background: #fff linear-gradient(145deg, rgba(255, 255, 255, 0), rgba(233, 241, 255, .75));
  color: #5b6687; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  /* 白色标题栏里也能看清圆形轮廓：细描边 + 柔和投影，保持悬浮小钮的观感 */
  box-shadow: 0 0 0 1px rgba(47, 84, 235, .18),
              0 6px 16px -6px rgba(20, 30, 60, .45),
              0 2px 6px -2px rgba(20, 30, 60, .16);
  transition: color .18s, transform .18s, box-shadow .18s;
}
.modal .mHead .closeBtn:hover {
  color: var(--primary); transform: scale(1.08);
  box-shadow: 0 0 0 1px rgba(47, 84, 235, .32),
              0 8px 20px -6px rgba(47, 84, 235, .55);
}
.modal .mHead .closeBtn:focus-visible { outline: 2px solid #3d83ff; outline-offset: 2px; }
.modal .mFoot {
  flex: 0 0 auto;
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0;
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.modal .mFoot .btn { flex: 1 0 auto; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: .7; } }

/* 详情行 */
.detailRow { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f3f8; }
.detailRow:last-of-type { border-bottom: none; }
.detailRow .k { width: 76px; flex-shrink: 0; font-size: 13px; color: var(--text-2); }
.detailRow .v {
  flex: 1; min-width: 0; font-size: 14.5px; word-break: break-all;
  user-select: text; white-space: pre-wrap; letter-spacing: 0.01em;
}
.detailRow .v.masked { letter-spacing: 2.5px; color: var(--text-2); }
.detailRow .ops { display: flex; gap: 2px; flex-shrink: 0; }
.iconBtn {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--text-2); font-size: 14px;
  transition: background .15s, color .15s;
}
.iconBtn:hover { background: #f2f4f9; color: var(--primary); }

/* 附件区（详情弹窗） */
.detailSection { margin-top: 6px; padding-top: 14px; border-top: 1px dashed #e9ecf3; }
.detailSection .secHead {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-2); margin-bottom: 4px;
}
.detailSection .secHead em { font-style: normal; color: var(--text-3); margin-left: 4px; }
.muted { color: var(--text-2); font-size: 13px; margin: 8px 0; }

/* 历史版本 */
.verItem { background: #f8f9fc; border: 1px solid #eef0f6; border-radius: 11px; padding: 12px 14px; margin-bottom: 8px; }
.verHead { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.verNo {
  font-size: 11.5px; font-weight: 600; color: #fff; background: var(--primary);
  padding: 1px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.verName { font-size: 13px; font-weight: 600; color: var(--text); }
.verTime { font-size: 11px; color: var(--text-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.verFields { display: flex; flex-direction: column; gap: 5px; }
.verField { display: flex; gap: 8px; font-size: 12.5px; }
.verK { color: var(--text-2); flex-shrink: 0; min-width: 62px; }
.verV { color: var(--text); word-break: break-all; white-space: pre-wrap; line-height: 1.6; }
.fileRow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f3f8; }
.fileRow:last-child { border-bottom: none; }
.fileIco { flex-shrink: 0; font-size: 15px; }
.fileInfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fileName { font-size: 13.5px; word-break: break-all; }
.fileSize { font-size: 11.5px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fileEmpty { font-size: 12.5px; color: var(--text-3); padding: 10px 0; }
.fileTag { font-size: 11px; color: var(--text-3); margin-left: 6px; font-weight: 400; }

/* 密码生成器 */
.genResult {
  display: flex; align-items: center; gap: 8px;
  background: #f8f9fc; border: 1px dashed #dfe3ee;
  border-radius: 11px; padding: 14px; margin-bottom: 18px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 15px; word-break: break-all;
}
.genResult .pwd { flex: 1; }
.genRow { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f1f3f8; }
.genRow .lbl { font-size: 14px; }
.genRow input[type="range"] { width: 150px; accent-color: var(--primary); }
.genRow input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.strengthBar { height: 6px; border-radius: 3px; background: #eef0f6; overflow: hidden; margin-top: 9px; }
.strengthBar i { display: block; height: 100%; border-radius: 3px; transition: width .3s, background .3s; }
.strengthTip { font-size: 12px; color: var(--text-2); margin-top: 7px; }

/* 我的页 */
.mineCard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
.mineCard h4 { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 10px; letter-spacing: 0.02em; }
.mineRow { display: flex; align-items: center; padding: 13px 0; border-bottom: 1px solid #f1f3f8; font-size: 14.5px; }
.mineRow:last-child { border-bottom: none; }
.mineRow .k { flex: 1; }
.mineRow .v { color: var(--text-2); font-size: 13px; }
.mineRow .ops { display: flex; gap: 2px; flex-shrink: 0; }

/* 个人中心 · 列表式分组布局 */
.mineUser { display: flex; align-items: center; gap: 15px; padding: 8px 6px 20px; }
.mineAvatar {
  width: 54px; height: 54px; border-radius: 17px;
  background: linear-gradient(135deg, #4a6bf5, var(--primary));
  display: flex; align-items: center; justify-content: center; font-size: 25px; flex-shrink: 0;
  box-shadow: 0 10px 22px -12px rgba(47, 84, 235, .8);
}
.mineUserName { font-size: 19px; font-weight: 600; letter-spacing: -0.2px; }
.mineGroupTitle {
  font-size: 12px; color: var(--text-3); font-weight: 500;
  letter-spacing: 0.08em; margin: 20px 6px 9px;
}
.mineList {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2px 18px;
}
.mineList .mineRow { padding: 14px 0; }
.mineAction { color: var(--primary); cursor: pointer; }
.mineHint { margin: 8px 6px 0; font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* 个人中心 · 数据总览卡片 */
.statGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.statCard {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.statCard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: #dbe3ff; }
.statIco {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 15px; background: var(--primary-light);
}
.statMeta { display: flex; flex-direction: column; min-width: 0; }
.statMeta b { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.statMeta span { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.typeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.typeCard {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .18s ease;
}
.typeCard:hover { border-color: #dbe3ff; background: #fbfcff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.typeIco { font-size: 17px; line-height: 1; flex-shrink: 0; }
.typeName { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typeNum { font-size: 15px; font-weight: 600; color: var(--text-1); }

/* 个人中心 · 类别管理卡片 */
.catGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.catCard {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px;
  font-family: inherit; font-size: inherit; color: inherit; text-align: left;
  transition: all .18s ease;
}
.catCard:hover { border-color: #dbe3ff; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.catIco {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 15px;
  background: linear-gradient(145deg, #f2f5ff, #e6ebff);
  border: 1px solid #e3e9ff;
}
.catMeta { flex: 1; min-width: 0; }
.catName { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catCount { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.catOps { display: flex; gap: 2px; flex-shrink: 0; opacity: .55; transition: opacity .18s ease; }
.catCard:hover .catOps { opacity: 1; }
.catCard.add {
  justify-content: center; gap: 8px; cursor: pointer;
  border-style: dashed; background: transparent; color: var(--primary);
}
.catCard.add:hover { background: var(--primary-light); border-color: var(--primary); }
.catAddIco { font-size: 17px; font-weight: 600; }
.catAddTxt { font-size: 13.5px; }
@media (max-width: 720px) {
  .statGrid { grid-template-columns: 1fr 1fr; }
  .catOps { opacity: 1; }
}
@media (max-width: 430px) {
  .statGrid { gap: 10px; }
  .statCard { padding: 13px 14px; }
  .statMeta b { font-size: 20px; }
  .catGrid { grid-template-columns: 1fr; }
}

/* 条目列表分页 */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 0 14px;
}
.pagerInfo {
  width: 100%; text-align: center;
  color: var(--text-3); font-size: 12.5px; margin-bottom: 2px;
}
.pagerInfo.only { padding: 18px 0 8px; }
.pagerBtn {
  min-width: 34px; height: 34px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .18s ease;
}
.pagerBtn:hover:not(:disabled) { border-color: #c3cdf7; color: var(--primary); background: var(--primary-light); }
.pagerBtn.active { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }
.pagerBtn:disabled { opacity: .45; cursor: default; }
.pagerEllipsis { color: var(--text-3); font-size: 13px; padding: 0 2px; user-select: none; }

/* 历史版本字段差异标签 */
.diffTag {
  font-style: normal; font-size: 11px; border-radius: 5px;
  padding: 1px 6px; margin-right: 6px; font-weight: 500;
}
.diffTag.add { color: #00a02a; background: rgba(0, 180, 42, .1); }
.diffTag.mod { color: #d97706; background: rgba(255, 125, 0, .12); }
.diffTag.del { color: #dc2626; background: rgba(245, 63, 63, .1); }

.secTip {
  font-size: 12.5px; color: var(--text-2); line-height: 1.9;
  background: #f8f9fc; border: 1px solid #eef0f6;
  border-radius: 11px; padding: 14px 16px;
}

/* 操作验证码设置块 */
.pinBox {
  margin: 12px 0 4px; padding: 16px 16px 14px;
  background: #f8f9fc; border: 1px solid #eef0f6; border-radius: 13px;
}
.pinBoxHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pinBoxTitle { font-size: 14px; font-weight: 550; color: var(--text); letter-spacing: -0.1px; }
.pinBoxTip {
  flex-shrink: 0; font-size: 11px; line-height: 1.6; padding: 1px 9px;
  border-radius: 999px; color: var(--text-3);
  background: #fff; border: 1px solid var(--border);
}
.pinBoxTip.on { color: var(--success); background: rgba(24, 160, 88, .08); border-color: rgba(24, 160, 88, .28); }
.pinRow { display: flex; align-items: center; gap: 8px; }
.pinInput {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: 6px;
  font-variant-numeric: tabular-nums; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pinInput::placeholder { font-size: 15px; letter-spacing: 6px; color: #c8ccd8; font-weight: 400; }
.pinInput:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .1); }
.pinBoxHint { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.7; }

/* 操作验证码设置 */
.pinSettingRow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid #f1f3f8; font-size: 14.5px;
}
.pinSettingRow:last-child { border-bottom: none; }
.pinSettingRow .k { flex: 1; }
.pinHint { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.7; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; cursor: pointer; inset: 0; background: #d7dae5; border-radius: 24px; transition: .22s; }
.switch i::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .22s; box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::before { transform: translateX(20px); }

/* 类别字段编辑器 */
.catFieldRow { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; flex-wrap: wrap; }
.catFieldRow input[data-cfn] { flex: 1; min-width: 110px; }
.catFieldOpt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.catFieldOpt input { width: auto; margin: 0; accent-color: var(--primary); }

/* ============ 多选与导出 ============ */
.itemCard .checkDot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #c8ccd8; color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.itemCard.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, .1); }
.itemCard.selected .checkDot { background: var(--primary); border-color: var(--primary); }

.selectBar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 65; display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px; box-shadow: 0 -8px 24px -18px rgba(16, 24, 40, .4);
}
.selectBar .cnt { flex: 1; font-size: 14px; color: var(--text-2); }
.selectBar .cnt b { color: var(--primary); font-variant-numeric: tabular-nums; }

.fmtList { display: flex; flex-direction: column; gap: 10px; }
.fmtItem {
  display: flex; align-items: center; gap: 13px; text-align: left;
  border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px;
  transition: border-color .16s, background .16s;
}
.fmtItem:hover { border-color: #c3cdf7; background: var(--primary-light); }
.fmtIco { font-size: 22px; }
.fmtBody { display: flex; flex-direction: column; }
.fmtBody b { font-size: 14.5px; font-weight: 500; }
.fmtBody i { font-style: normal; font-size: 12px; color: var(--text-2); margin-top: 3px; }

.exportWarn {
  margin-top: 16px; font-size: 12px; color: #b0281e;
  background: #fdf0ef; border: 1px solid #fae0de;
  border-radius: 11px; padding: 12px 14px; line-height: 1.7;
}

/* ============ 分享二维码 ============ */
.shareTip {
  font-size: 13px; color: var(--text-2); line-height: 1.75;
  background: #f8f9fc; border: 1px solid #eef0f6;
  border-radius: 11px; padding: 12px 14px; margin-bottom: 14px;
}
.shareTip b { color: var(--text); }
.shareList { max-height: 46vh; overflow-y: auto; border-top: 1px solid #f1f3f8; }
.shareRow {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 2px;
  border-bottom: 1px solid #f1f3f8; cursor: pointer;
}
.shareRow:last-child { border-bottom: none; }
.shareRow input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.shareRowBody { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.shareLabel { font-size: 14px; }
.shareValue { font-size: 12px; color: var(--text-2); word-break: break-all; margin-top: 3px; }
.qrBox {
  display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--border);
}
.qrBox svg, .qrBox img { width: min(260px, 68vw); height: auto; display: block; }
/* 保持系统长按菜单，手机端可直接「保存图片」到相册 */
.qrImg { -webkit-touch-callout: default; user-select: auto; }
.qrActions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-top: 12px;
}
.qrActions .btn { min-width: 128px; }
.qrSaveTip { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.shareExpire { text-align: center; font-size: 12px; color: var(--text-3); margin: 12px 0; }
.shareLinkWrap input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 12px; color: var(--text-2); background: #fafbfe;
}
.shareQrFail { padding: 22px; color: var(--text-2); font-size: 13px; }

/* ============ 分享查看页 ============ */
.sharePage {
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 18px calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 500px at 50% -10%, #e7ecff 0%, rgba(231, 236, 255, 0) 70%),
    linear-gradient(180deg, #f7f8fc 0%, #f4f5fa 100%);
}
.shareCard {
  width: 100%; max-width: 580px; background: var(--card);
  border: 1px solid rgba(232, 234, 242, .9);
  border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 26px 54px -30px rgba(16, 24, 40, .26);
  padding: 26px 22px;
}
.shareState { text-align: center; padding: 44px 8px; }
.shareStateIcon { font-size: 40px; }
.shareState h1 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.shareState p { font-size: 13px; color: var(--text-2); line-height: 1.75; }
.shareHead { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px dashed #e9ecf3; }
.shareHeadIcon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.shareHeadMeta { min-width: 0; }
.shareHeadMeta h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; word-break: break-all; }
.shareHeadMeta p { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.shareFields { padding: 6px 0; }
.shareField { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f1f3f8; }
.shareField:last-child { border-bottom: none; }
.shareFieldKey { width: 90px; flex-shrink: 0; font-size: 13px; color: var(--text-2); word-break: break-all; }
.shareFieldVal { flex: 1; min-width: 0; font-size: 14.5px; word-break: break-all; user-select: text; }
.shareEmpty { padding: 28px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.shareFoot {
  margin-top: 10px; padding-top: 14px; border-top: 1px dashed #e9ecf3;
  font-size: 12px; color: var(--text-3); line-height: 1.9;
}
.shareFoot b { color: var(--text); }

/* ============ 条目卡片类型角标 ============ */
.itemCard { position: relative; overflow: hidden; }
.itemCard.invalid { background: #fafbfd; }
.itemCard.invalid .itemIcon { background: #eef0f4; }
.itemCard.invalid .name { color: var(--text-2); }
.itemCard.invalid .sub { color: var(--text-3); }

.statusTag {
  display: inline-block; font-size: 11.5px; font-weight: 500;
  padding: 1px 8px; border-radius: 999px;
  vertical-align: middle; margin-left: 6px;
}
.statusTag.inactive { background: #eef0f4; color: #8a8f99; }
.typeBadge {
  position: absolute; bottom: 9px; left: 16px; z-index: 1;
  font-size: 11px; font-weight: 500; color: var(--primary);
  background: var(--primary-light); border-radius: 999px;
  padding: 2px 9px; line-height: 1.45; white-space: nowrap;
  max-width: 58%; overflow: hidden; text-overflow: ellipsis;
}
/* 收藏角标：卡片右上角金色小标签 */
.itemCard .favBadge {
  position: absolute; top: 9px; right: 10px; z-index: 2;
  font-size: 10.5px; font-weight: 600; line-height: 1.5;
  color: #9a6a05; background: linear-gradient(135deg, #fff6dc, #ffe4a3);
  border: 1px solid rgba(206, 148, 12, .30); border-radius: 7px;
  padding: 1px 7px; white-space: nowrap;
  box-shadow: 0 3px 8px -6px rgba(170, 120, 10, .85);
}
/* 名称行给角标让位，长名称以省略号截断，不压到角标下面 */
.itemCard.hasFav .itemBody .name { padding-right: 52px; }
.itemBody .name .nameTxt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itemBody .name .fileTag { flex-shrink: 0; }
/* 卡片上的有效性切换 */
.statusToggle {
  position: absolute; bottom: 9px; right: 16px; z-index: 2;
  font-size: 11px; font-weight: 500; line-height: 1.45; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid #c3cdf7; color: var(--primary); background: var(--primary-light);
  transition: opacity .15s, background .15s;
}
.statusToggle:hover { opacity: .82; }
.statusToggle.inactive { border-color: #dcdfe8; color: #8a8f99; background: #f3f4f8; }

/* ============ 文件夹切换行 ============ */
.folderRow { margin-bottom: 4px; }
.folderChipWrap { position: relative; display: inline-flex; align-items: center; margin-right: 8px; margin-bottom: 8px; }
.folderChipWrap .folderChip { margin: 0; padding-right: 26px; }
.folderEditBtn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-2); background: rgba(255, 255, 255, 0.75);
  opacity: 0; transition: opacity .15s;
}
.folderChipWrap:hover .folderEditBtn { opacity: 1; }
.folderEditBtn:hover { background: #fff; color: var(--primary); }
.chip.folderChip.add { border-style: dashed; opacity: .8; }
.chip.folderChip.add:hover { opacity: 1; }

/* ============ 详情弹窗：所在文件夹选择条 ============ */
.folderRowBar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding: 9px 13px;
  background: #f8f9fc; border: 1px solid #eef0f6; border-radius: 11px;
}
.folderRowBar label { font-size: 13px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.folderRowBar select {
  flex: 1; min-width: 0; height: 38px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; font-size: 14px;
}

/* 危险幽灵按钮 */
.btn.danger.ghost { background: transparent; color: var(--danger); border: 1px solid #f2c9cb; }
.btn.danger.ghost:hover { background: rgba(229, 72, 77, 0.06); border-color: var(--danger); }

/* ============ PC 端适配 ============ */
@media (min-width: 768px) {
  .topbar { padding: 0 max(28px, calc((100vw - var(--container)) / 2)); }
  .topNav { display: flex; }
  .main { padding: 30px 28px 56px; }
  .bottomNav { display: none; }
  .fab { bottom: 36px; right: 36px; }
  .modalMask { align-items: center; padding: 28px; }
  .modal { max-width: 620px; border-radius: 20px; animation: fadeIn .2s ease; }
  .selectBar {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 26px;
    width: 500px; border-radius: 15px; border: 1px solid var(--border);
  }
  .statRow { gap: 16px; }
  .itemList { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .statCard { padding: 18px 20px; }
  .statCard .num { font-size: 28px; }
}
@media (min-width: 1024px) {
  /* 宽屏一行 4 个：卡片同步收紧内边距与字号，避免列宽过窄导致文字挤压 */
  .itemList { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .itemCard { padding: 15px 16px 32px; gap: 11px; }
  .itemIcon { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
  .itemBody .name { font-size: 14.5px; }
  .itemBody .sub { font-size: 12.5px; }
  .itemCard .chev { font-size: 16px; }
  .main { padding: 32px 32px 64px; }
}

/* ============ 未登录首屏：官网落地页 ============ */
.lp {
  min-height: 100vh; padding: 22px;
  display: flex; justify-content: center; align-items: flex-start;
  background:
    radial-gradient(700px 420px at 8% 4%, rgba(150, 195, 255, .35), transparent 70%),
    radial-gradient(680px 420px at 94% 8%, rgba(180, 160, 255, .32), transparent 70%),
    #f4f7ff;
}
.lpFrame {
  width: 100%; max-width: 1220px; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(620px 380px at 8% 8%, rgba(255, 255, 255, .38), transparent 70%),
    radial-gradient(520px 360px at 92% 22%, rgba(255, 255, 255, .16), transparent 72%),
    linear-gradient(112deg, #9ecbff 0%, #bbd0ff 38%, #c3b4f8 72%, #b79ef2 100%);
  box-shadow: 0 24px 70px -34px rgba(63, 88, 170, .55), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.lpNav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 40px 10px; }
.lpBrand { display: flex; align-items: center; gap: 11px; color: #1c2740; font-size: 17px; }
.lpBrandIcon { width: 30px; height: 30px; display: block; filter: drop-shadow(0 3px 6px rgba(47, 107, 255, .35)); }
.lpBrandIcon svg { width: 100%; height: 100%; display: block; }
.lpNavLinks { display: flex; align-items: center; gap: 26px; }
.lpNavLinks button { font-size: 14px; color: #2a3550; font-weight: 500; padding: 8px 2px; transition: opacity .18s, transform .18s, box-shadow .18s; }
.lpNavLinks button:hover { opacity: .65; transform: translateY(-1px); }
.lpNavLinks .lpNavCta {
  padding: 10px 22px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  box-shadow: 0 8px 18px -8px rgba(47, 84, 235, .75);
}
.lpNavLinks .lpNavCta:hover { opacity: 1; box-shadow: 0 10px 22px -8px rgba(47, 84, 235, .92); }

.lpHero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 30px; align-items: center; padding: 36px 48px 52px; }
.lpHeroCopy { animation: lpRise .6s ease both; }
.lpHeroCopy h1 {
  font-size: clamp(32px, 3.5vw, 46px); line-height: 1.32;
  letter-spacing: -1.6px; font-weight: 700; color: #151d33;
}
.lpHeroSub { margin-top: 18px; font-size: 15px; color: #3a4763; letter-spacing: .02em; }
.lpHeroBtns { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.lpBtn {
  height: 44px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.lpBtn:hover { transform: translateY(-2px); }
.lpBtn.solid {
  color: #fff; background: linear-gradient(135deg, #3d83ff, #2f54eb);
  box-shadow: 0 10px 22px -10px rgba(47, 84, 235, .9);
}
.lpBtn.solid:hover { box-shadow: 0 14px 28px -10px rgba(47, 84, 235, .95); }
.lpBtn.light { color: #2a3550; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px -12px rgba(60, 80, 150, .5); }
.lpBtn.light:hover { background: #fff; }

.lpShowcase { animation: lpFloat .7s ease both; }
.lpWindow {
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px; padding: 10px;
  box-shadow: 0 22px 50px -26px rgba(53, 80, 170, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}
.lpWinBar { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 10px; }
.lpDots { display: flex; gap: 6px; }
.lpDots i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.lpDots i:nth-child(2) { background: #ffc857; }
.lpDots i:nth-child(3) { background: #4bd07a; }
.lpWinTools { color: #8c98b3; font-size: 12px; letter-spacing: 2px; }
.lpWinBody { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.lpWinList { background: #f7faff; border: 1px solid #e8eeff; border-radius: 14px; padding: 10px; }
.lpWinHead {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
  border-radius: 10px; color: #fff; font-size: 13px;
  background: linear-gradient(120deg, #3d83ff, #2f54eb);
  box-shadow: 0 6px 14px -8px rgba(47, 84, 235, .8);
}
.lpWinAvatar {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.lpWinHead b { flex: 1; font-weight: 600; }
.lpWinMore { opacity: .85; letter-spacing: 1px; }
.lpWinRows { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.lpRow {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  background: #fff; border: 1px solid #edf1fb; border-radius: 10px;
  box-shadow: 0 2px 6px -4px rgba(50, 70, 130, .35); font-size: 11.5px;
}
.lpRowIco {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.lpRowIco.c1 { background: #e07ac0; }
.lpRowIco.c2 { background: #f0a640; }
.lpRowIco.c3 { background: #4a90f0; }
.lpRowIco.c4 { background: #e9bb3c; }
.lpRowIco.c5 { background: #5aa8f5; }
.lpRowName { color: #2b3550; font-weight: 600; flex: 1; white-space: nowrap; }
.lpRowNum { color: #9aa5bd; letter-spacing: .04em; }
.lpRowChev { color: #b7c1d8; font-size: 15px; }
.lpWinSide { display: flex; flex-direction: column; gap: 10px; }
.lpMini {
  background: #fff; border: 1px solid #edf1fb; border-radius: 14px; padding: 12px;
  box-shadow: 0 8px 18px -14px rgba(60, 85, 160, .55);
}
.lpMiniIcons { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.lpMiniChev { margin-left: auto; color: #c2cbdd; }
.lpMiniBar { margin-top: 14px; height: 5px; border-radius: 99px; background: #e9eefb; overflow: hidden; }
.lpMiniBar i { display: block; width: 46%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4bd07a, #7ad9a0); }
.lpMiniMeta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: #a3adc2; }
.lpBotCard {
  flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f2f7ff, #e4edff);
  border: 1px solid #e6eeff; border-radius: 14px; overflow: hidden;
}
.lpBot { width: 78%; max-width: 170px; height: auto; filter: drop-shadow(0 10px 12px rgba(70, 110, 210, .18)); }

.lpFeatures {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 40px 30px;
  background: rgba(255, 255, 255, .38); border-top: 1px solid rgba(255, 255, 255, .55);
}
.lpFeature {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px -14px rgba(60, 85, 160, .55);
}
.lpFeatureIco { width: 26px; height: 26px; flex-shrink: 0; color: #3a63d8; }
.lpFeatureIco svg { width: 100%; height: 100%; display: block; }
.lpFeatureText { font-size: 14px; font-weight: 600; color: #26314c; flex: 1; white-space: nowrap; }
.lpFeatureChev { color: #b9c3d8; font-size: 17px; }

.lpCta {
  margin: 0 40px 40px; padding: 34px 20px 40px; border-radius: 20px; text-align: center;
  background: linear-gradient(105deg, #8ec5ff, #aac2ff 52%, #b79cf5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.lpCta h2 { font-size: 23px; font-weight: 700; color: #1a2340; letter-spacing: -.4px; }
.lpCta .lpBtn { margin-top: 18px; }

/* 登录 / 注册遮罩：内部仍是最初的 authCard，交互逻辑完全不变 */
.lpAuthMask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(19, 29, 55, .42); backdrop-filter: blur(6px);
}
.lpAuthMask.open { display: flex; animation: lpFade .2s ease; }
.lpAuthDialog { position: relative; width: 100%; max-width: 420px; animation: lpPop .24s cubic-bezier(.22, .8, .36, 1); }
.lpAuthDialog .authCard { max-width: none; }
.lpAuthClose {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  color: #5b6687; font-size: 15px; box-shadow: 0 6px 16px -8px rgba(20, 30, 60, .6);
}
.lpAuthClose:hover { color: var(--primary); }

@keyframes lpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lpFloat { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lpPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .lpHero { grid-template-columns: 1fr; gap: 28px; padding: 30px 34px 40px; }
  .lpShowcase { max-width: 560px; width: 100%; margin: 0 auto; }
  .lpFeatures { grid-template-columns: repeat(2, 1fr); }
  .lpNav { padding: 20px 28px 8px; }
}
@media (max-width: 640px) {
  .lp { padding: 12px; }
  .lpFrame { border-radius: 20px; }
  .lpNav { padding: 16px 18px 6px; }
  .lpNavLinks { gap: 14px; }
  .lpNavLinks button[data-lp-anchor], .lpNavLinks button[data-lp-open] { display: none; }
  .lpNavLinks .lpNavCta { padding: 9px 16px; }
  .lpHero { padding: 26px 20px 34px; }
  .lpHeroCopy h1 { font-size: 30px; letter-spacing: -1px; }
  .lpHeroSub { font-size: 13.5px; }
  .lpBtn { height: 42px; padding: 0 20px; }
  .lpWinBody { grid-template-columns: 1fr; }
  .lpBotCard { min-height: 130px; }
  .lpFeatures { grid-template-columns: 1fr; padding: 20px; gap: 10px; }
  .lpCta { margin: 0 20px 24px; padding: 26px 16px 30px; }
  .lpCta h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpHeroCopy, .lpShowcase, .lpAuthMask.open, .lpAuthDialog { animation: none; }
}

/* 品牌图标：落地页 / 登录卡片 / 登录后顶栏统一使用 icons/icon.png */
.lpBrandIcon img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.authCard .brand .logo img { width: 56px; height: 56px; display: block; margin: 0 auto; }
.topbar .logo { display: flex; align-items: center; }
.topbar .logo img { width: 26px; height: 26px; display: block; }

/* ============ 内页视觉统一：沿用官网落地页的蓝紫渐变语言 ============ */
/* 只覆盖外观属性（配色 / 渐变 / 圆角 / 阴影），不改 DOM、布局尺寸与交互逻辑 */

/* 页面底：与 .lp 一致的蓝紫光晕，白色卡片浮在其上 */
.shell {
  background:
    radial-gradient(900px 460px at 4% -2%, rgba(150, 195, 255, .34), transparent 70%),
    radial-gradient(820px 440px at 98% 6%, rgba(180, 160, 255, .30), transparent 72%),
    #f4f7ff;
  background-attachment: fixed;
}

/* 顶栏：呼应 .lpFrame 的蓝紫渐变 + 玻璃质感 */
.topbar {
  background: linear-gradient(112deg, rgba(158, 203, 255, .92) 0%, rgba(187, 208, 255, .90) 38%,
    rgba(195, 180, 248, .90) 72%, rgba(183, 158, 242, .92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 14px 34px -24px rgba(63, 88, 170, .7), inset 0 -1px 0 rgba(255, 255, 255, .4);
}
.topbar .title { color: #1c2740; font-weight: 700; letter-spacing: -.3px; }
.topNav button { color: #2a3550; border-radius: 999px; }
.topNav button:hover { background: rgba(255, 255, 255, .55); color: #1c2740; }
.topNav button.active {
  background: rgba(255, 255, 255, .92); color: #2f54eb; font-weight: 600;
  box-shadow: 0 6px 16px -10px rgba(47, 84, 235, .7);
}

/* 主内容区：淡色玻璃大圆角面板，对应落地页的 .lpFrame */
.main {
  margin: 18px auto 0;
  background: linear-gradient(165deg, rgba(158, 203, 255, .30), rgba(195, 180, 248, .22) 52%, rgba(255, 255, 255, .72));
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  box-shadow: 0 24px 60px -40px rgba(63, 88, 170, .5), inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 顶部安全条：渐变小横幅 */
.secBar {
  background: linear-gradient(105deg, rgba(158, 203, 255, .34), rgba(183, 158, 242, .28) 78%, rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  box-shadow: 0 10px 24px -18px rgba(60, 85, 160, .6);
}
.secBarIco {
  background: rgba(255, 255, 255, .94); border-radius: 12px;
  box-shadow: 0 6px 14px -10px rgba(47, 84, 235, .55);
}

/* 通用按钮：与首页 .lpBtn.solid 同款渐变 */
.btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  box-shadow: 0 10px 22px -12px rgba(47, 84, 235, .9);
  font-weight: 600;
}
.btn:hover {
  background: linear-gradient(135deg, #4b8dff, #3560f0);
  box-shadow: 0 12px 24px -10px rgba(47, 84, 235, .95);
}
.btn.ghost {
  background: rgba(255, 255, 255, .92); color: var(--primary);
  border-color: rgba(47, 84, 235, .22);
  box-shadow: 0 6px 16px -12px rgba(60, 85, 160, .5);
}
.btn.ghost:hover {
  background: #fff; border-color: rgba(47, 84, 235, .45);
  box-shadow: 0 8px 18px -12px rgba(47, 84, 235, .6);
}
.btn.text { background: transparent; box-shadow: none; }
.btn.text:hover { background: rgba(47, 84, 235, .08); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #f0666a, #e5484d); }
.btn.danger:hover { background: linear-gradient(135deg, #ef5559, #d83c41); }
.btn.sm { border-radius: 9px; }

/* 输入控件：柔和圆角与蓝紫聚焦环 */
.field input, .field select, .field textarea {
  border-radius: 12px; border-color: rgba(47, 84, 235, .14);
  background: rgba(255, 255, 255, .92);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #3d83ff; box-shadow: 0 0 0 3px rgba(61, 131, 255, .14);
}
.toolRow .searchBox, .toolRow select {
  border-radius: 14px; background: rgba(255, 255, 255, .90);
  border-color: rgba(47, 84, 235, .14);
  box-shadow: 0 6px 16px -14px rgba(60, 85, 160, .5);
}
.toolRow .searchBox:focus-within {
  border-color: #3d83ff; box-shadow: 0 0 0 3px rgba(61, 131, 255, .14);
}

/* 筛选 chips：选中态用主色渐变 */
.chip {
  background: rgba(255, 255, 255, .88); border-color: rgba(47, 84, 235, .14);
  box-shadow: 0 4px 12px -10px rgba(60, 85, 160, .5);
}
.chip:hover { border-color: rgba(47, 84, 235, .40); background: #fff; }
.chip.active {
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(47, 84, 235, .9);
}

/* 统计卡 / 数据总览 */
.statCard {
  background: linear-gradient(150deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 20px;
  box-shadow: 0 10px 24px -16px rgba(60, 85, 160, .6);
}
.statCard:hover {
  box-shadow: 0 16px 30px -18px rgba(60, 85, 160, .7);
  border-color: rgba(47, 84, 235, .28);
}
.statCard.active {
  border-color: rgba(47, 84, 235, .55);
  box-shadow: 0 0 0 3px rgba(61, 131, 255, .16), 0 10px 24px -16px rgba(60, 85, 160, .6);
}
.statCard .num, .statMeta b { color: #1c2740; }
.statIco {
  background: linear-gradient(145deg, #e8f1ff, #dfe6ff);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 14px -10px rgba(47, 84, 235, .55);
}

/* 条目卡 / 类型卡 / 类别卡 / 我的页卡片：统一白玻璃质感 */
.itemCard, .typeCard, .catCard, .mineCard, .mineList {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 20px;
  box-shadow: 0 10px 24px -18px rgba(60, 85, 160, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.itemCard:hover, .typeCard:hover, .catCard:hover {
  border-color: rgba(47, 84, 235, .30);
  box-shadow: 0 18px 34px -20px rgba(60, 85, 160, .75);
}
.itemCard.selected {
  border-color: rgba(47, 84, 235, .60);
  box-shadow: 0 0 0 3px rgba(61, 131, 255, .16), 0 10px 24px -18px rgba(60, 85, 160, .6);
}
.itemIcon {
  background: linear-gradient(145deg, #e8f1ff, #e4e2ff);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px;
  box-shadow: 0 6px 14px -10px rgba(47, 84, 235, .5);
}
.catCard.add { background: rgba(255, 255, 255, .45); border-color: rgba(47, 84, 235, .35); }
.catCard.add:hover { background: rgba(241, 244, 255, .9); border-color: rgba(47, 84, 235, .55); }
.catIco { background: linear-gradient(145deg, #e8f1ff, #e6e2ff); border-color: rgba(255, 255, 255, .9); }

/* 悬浮添加 / 底部导航 */
.fab {
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  box-shadow: 0 12px 26px -10px rgba(47, 84, 235, .8);
}
.fab:hover { box-shadow: 0 16px 32px -10px rgba(47, 84, 235, .9); }
.bottomNav {
  background: rgba(255, 255, 255, .90);
  border-top: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 -10px 30px -22px rgba(60, 85, 160, .7);
}
.bottomNav button.active { color: #2f54eb; }

/* 分页 / 开关 / 验证码输入 */
.pagerBtn { border-radius: 10px; background: rgba(255, 255, 255, .9); border-color: rgba(47, 84, 235, .14); }
.pagerBtn:hover:not(:disabled) { background: #fff; border-color: rgba(47, 84, 235, .4); }
.pagerBtn.active {
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(47, 84, 235, .9);
}
.switch input:checked + i { background: linear-gradient(135deg, #3d83ff, #2f54eb); }
.pinInput { border-radius: 12px; background: rgba(255, 255, 255, .92); }
.pinInput:focus { border-color: #3d83ff; box-shadow: 0 0 0 3px rgba(61, 131, 255, .14); }

/* 弹窗：白玻璃大圆角 + 与登录遮罩一致的蓝紫蒙层 */
.modalMask { background: rgba(19, 29, 55, .42); backdrop-filter: blur(6px); }
.modal {
  border-radius: 24px 24px 0 0;
  background: linear-gradient(170deg, #ffffff, #f7faff);
  box-shadow: 0 -18px 50px -28px rgba(60, 85, 160, .8);
}
.modal .mHead { background: rgba(255, 255, 255, .90); border-bottom-color: rgba(47, 84, 235, .10); }
.modal .mFoot { background: rgba(255, 255, 255, .92); border-top-color: rgba(47, 84, 235, .10); }
.modal .mHead h3 { color: #1c2740; }
/* 关闭按钮沿用上方「与登录/注册一致」的白色圆形悬浮样式，此处不再覆盖 */

/* 详情区 / 版本卡 / 表单分组：统一分割线与圆角 */
.detailRow, .fileRow, .genRow { border-bottom-color: rgba(47, 84, 235, .09); }
.verItem { background: rgba(241, 245, 255, .7); border-color: rgba(47, 84, 235, .10); border-radius: 14px; }
.formSec::after { background: rgba(47, 84, 235, .12); }
.cfItem { border-radius: 14px; }
.cfChildren { border-left-color: rgba(47, 84, 235, .20); }
.genResult { border-radius: 14px; }

/* 分享查看页：同样的渐变底 + 白玻璃大卡 */
.sharePage {
  background:
    radial-gradient(700px 420px at 8% 4%, rgba(150, 195, 255, .35), transparent 70%),
    radial-gradient(680px 420px at 94% 8%, rgba(180, 160, 255, .32), transparent 70%),
    #f4f7ff;
}
.shareCard {
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px -34px rgba(63, 88, 170, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.shareHeadIcon { background: linear-gradient(145deg, #e8f1ff, #e4e2ff); border-radius: 16px; }

/* 宽屏下 .itemList 是 2/4 列网格，空状态需横跨整行才能保持居中 */
.itemList > .emptyBox { grid-column: 1 / -1; }

/* 小屏收紧面板边距，避免横向溢出 */
@media (max-width: 640px) {
  .main { margin-top: 12px; border-radius: 18px; padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
}

/* ============ 首页「功能」说明弹窗 ============ */
/* 特性卡带 chevron，做成可点击入口并保留键盘可访问性 */
.lpFeature[data-lp-open] {
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lpFeature[data-lp-open]:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 131, 255, .35);
  box-shadow: 0 14px 26px -14px rgba(60, 85, 160, .75);
}
.lpFeature[data-lp-open]:focus-visible { outline: 2px solid #3d83ff; outline-offset: 2px; }

.featGroupTitle {
  display: flex; align-items: center; gap: 8px;
  margin: 22px 0 4px; font-size: 13px; font-weight: 700;
  color: #2f54eb; letter-spacing: .2px;
}
.secLead + .featGroupTitle { margin-top: 6px; }
.featList li { padding: 10px 0; }
.featList .secIco { background: linear-gradient(145deg, #e8f1ff, #e9e5ff); border-radius: 10px; }
.featList b { color: #1c2740; }
.featList p { color: #5d6883; }

/* 宽屏居中卡片，小屏维持原来的底部抽屉 */
@media (min-width: 720px) {
  .featModalMask { align-items: center; padding: 24px; }
  .featModal {
    max-width: 640px; max-height: 82vh; border-radius: 24px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .featModal .mHead { border-radius: 24px 24px 0 0; }
  .featModal .mFoot { border-radius: 0 0 24px 24px; }
}

/* ================================================================
   小盒视觉系统（登录后的保管箱 / 我的页）
   品牌呼应「钥小盒」：盒盖色带 + 一格一格的小盒；分类按格收纳，
   只做外观与结构分组，不改任何 id / data 属性 / 事件绑定。
   ================================================================ */

/* 顶栏：立体盒盖徽章 + 品牌副标 */
.topbar { gap: 12px; border-bottom-color: rgba(255, 255, 255, .92); }
.topbar .logo {
  position: relative; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 11px; background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .98);
  box-shadow: 0 8px 16px -10px rgba(47, 84, 235, .7), inset 0 1px 0 #fff;
  display: flex; align-items: center; justify-content: center;
}
.topbar .logo::before {
  content: ''; position: absolute; left: 5px; right: 5px; top: -4px; height: 7px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, #7fb0ff, #b39af2);
  box-shadow: 0 2px 5px -2px rgba(47, 84, 235, .65);
}
.topbar .logo img { width: 23px; height: 23px; border-radius: 6px; }
.topbar .title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -.3px;
}
.topbar .title small {
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  color: rgba(28, 39, 64, .60);
}

/* 大盒：白色收纳盒 + 顶部盒盖色带 */
.main {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(168deg, rgba(255, 255, 255, .93), rgba(248, 251, 255, .88) 52%, rgba(238, 243, 255, .84));
  border: 1px solid rgba(255, 255, 255, .96);
  box-shadow: 0 26px 60px -42px rgba(63, 88, 170, .6), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, #8fbcff, #a9b7ff 45%, #c0a6f5 78%, #b79ef2);
}

/* 页头：品牌徽章 + 标题，安全提示收成右侧小胶囊 */
.vaultHead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 2px 0 18px;
}
.vaultHeadId { display: flex; align-items: center; gap: 12px; }
.boxBadge {
  position: relative; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 14px; border: 1px solid #fff;
  background: linear-gradient(145deg, #e8f1ff, #e9e5ff);
  box-shadow: 0 10px 22px -14px rgba(47, 84, 235, .8), inset 0 1px 0 #fff;
  display: flex; align-items: center; justify-content: center;
}
.boxBadge::before {
  content: ''; position: absolute; left: 7px; right: 7px; top: -4px; height: 8px;
  border-radius: 5px; background: linear-gradient(90deg, #8fbcff, #b79ef2);
  box-shadow: 0 2px 6px -2px rgba(47, 84, 235, .6);
}
.boxBadge img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.vaultHeadTxt h2 { font-size: 19px; font-weight: 700; color: #1c2740; line-height: 1.35; letter-spacing: -.3px; }
.vaultHeadTxt p { font-size: 12px; color: #7b87a3; line-height: 1.5; margin-top: 1px; }
.secBar {
  flex: 0 1 420px; margin: 0; padding: 9px 12px; border-radius: 14px;
  background: linear-gradient(105deg, #f1f7ff, #f7f4ff);
  border: 1px solid rgba(47, 84, 235, .10); box-shadow: none;
}
.secBarIco { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
.secBarTxt b { font-size: 12.5px; }
.secBarTxt span {
  font-size: 11px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.secBarMore { font-size: 11.5px; }

/* 工具行：搜索与按钮等高 */
.toolRow { gap: 10px; margin-bottom: 14px; }
.toolRow .searchBox { height: 42px; border-radius: 13px; }
.toolRow .btn.sm { height: 42px; padding: 0 16px; border-radius: 13px; }

/* 分类收纳盒：两组分组标签 + 等宽小盒格子 */
.filterPanel {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 18px; padding: 10px 14px; margin-bottom: 18px;
  box-shadow: 0 12px 28px -22px rgba(60, 85, 160, .8), inset 0 1px 0 #fff;
}
.filterGroup { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.filterGroup + .filterGroup {
  border-top: 1px dashed rgba(47, 84, 235, .16);
  margin-top: 2px; padding-top: 12px;
}
.filterLabel {
  width: 82px; flex-shrink: 0; padding-top: 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #5d6883; white-space: nowrap;
}
.filterLabel span {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 7px;
  background: linear-gradient(145deg, #e8f1ff, #e9e5ff);
  border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.chipRow {
  flex: 1; min-width: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px;
}
.chip {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; height: 34px; padding: 0 9px;
  border-radius: 10px; font-size: 12.5px; font-weight: 500;
  background: #fff; border: 1px solid rgba(47, 84, 235, .13); color: #5d6883;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 9px -8px rgba(60, 85, 160, .9);
  transition: background .16s, border-color .16s, box-shadow .16s, transform .16s;
}
/* 名称被截断时，悬浮显示完整名称（桌面） */
.chip[data-full]::after {
  content: attr(data-full);
  position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(2px);
  z-index: 40; width: max-content; max-width: min(240px, 44vw);
  padding: 5px 10px; border-radius: 8px;
  background: rgba(28, 39, 64, .95); color: #fff;
  font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0;
  white-space: normal; word-break: break-word; text-align: center;
  box-shadow: 0 10px 22px -12px rgba(15, 25, 50, .9);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.chip[data-full]:hover::after,
.chip[data-full]:focus-visible::after {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.chipText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipIco { font-style: normal; margin-right: 4px; }
.chip em {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 4px; margin: 0;
  border-radius: 6px; background: #f1f4ff; color: #7b87a3;
  font-size: 11px; font-style: normal; opacity: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.chip:hover { background: #fbfcff; border-color: rgba(47, 84, 235, .38); color: #1c2740; transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(135deg, #3d83ff, #2f54eb);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 16px -10px rgba(47, 84, 235, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.chip.active em { background: rgba(255, 255, 255, .22); color: #fff; opacity: 1; }
.chip.folderChip.add {
  border-style: dashed; justify-content: center; opacity: 1;
  background: rgba(255, 255, 255, .55);
}
.folderRow { margin: 0; }
.folderChipWrap { position: relative; display: flex; min-width: 0; margin: 0; }
.folderChipWrap .folderChip { width: 100%; margin: 0; padding-right: 26px; }
.folderEditBtn {
  right: 5px; width: 17px; height: 17px; font-size: 10px;
  opacity: .55; background: rgba(255, 255, 255, .9);
}
@media (hover: hover) {
  .folderChipWrap .folderEditBtn { opacity: 0; }
  .folderChipWrap:hover .folderEditBtn { opacity: 1; }
}

/* 分区标题 */
.sectionTitle { display: flex; align-items: center; gap: 9px; margin: 2px 0 12px; }
.sectionTitleBar {
  width: 4px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #3d83ff, #b79ef2);
}
.sectionTitle b { font-size: 14px; font-weight: 700; color: #1c2740; }
.sectionTitle em {
  font-style: normal; font-size: 12px; color: #7b87a3;
  background: #fff; border: 1px solid rgba(47, 84, 235, .12);
  border-radius: 999px; padding: 1px 9px; line-height: 1.6;
}
/* 排序切换：最近更新优先 / 收藏优先 */
.sectionTitle .sortSeg {
  margin-left: auto; display: inline-flex; gap: 2px; padding: 2px;
  background: #f2f5fd; border: 1px solid rgba(47, 84, 235, .10); border-radius: 9px;
}
.sectionTitle .sortBtn {
  font-size: 11px; line-height: 1.5; padding: 3px 9px; border-radius: 7px;
  color: #7b87a3; background: transparent; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.sectionTitle .sortBtn:hover { color: #2f54eb; }
.sectionTitle .sortBtn.active {
  color: #2f54eb; font-weight: 600; background: #fff;
  box-shadow: 0 2px 6px -3px rgba(47, 84, 235, .55), inset 0 0 0 1px rgba(47, 84, 235, .14);
}

/* 条目小盒：盒盖色带 + 方形图标格 + 等高卡片 */
.itemList { gap: 12px; }
.itemCard {
  min-height: 96px; border-radius: 16px; padding: 15px 14px 34px; gap: 12px;
  background: #fff; border: 1px solid rgba(47, 84, 235, .11);
  box-shadow: 0 10px 22px -18px rgba(60, 85, 160, .9), inset 0 1px 0 #fff;
}
.itemCard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #8fbcff, #b6a8f5); opacity: .85;
}
.itemCard:hover {
  border-color: rgba(47, 84, 235, .30);
  box-shadow: 0 18px 32px -22px rgba(60, 85, 160, .95);
}
.itemCard.invalid { background: #fafbfe; }
.itemIcon {
  width: 40px; height: 40px; border-radius: 12px; font-size: 19px;
  background: linear-gradient(145deg, #e8f1ff, #e9e5ff);
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px -9px rgba(47, 84, 235, .75);
}
.itemBody .name { font-size: 14.5px; font-weight: 650; }
.itemBody .sub { font-size: 12.5px; }
.itemBody .itemTime {
  margin-top: 3px; font-size: 11px; color: #9aa4bd; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.itemBody .itemTime i { font-style: normal; font-size: 10px; color: #b6c0d6; margin-right: 2px; }
.itemCard .chev { color: #b9c2d8; font-size: 17px; }
.typeBadge {
  bottom: 10px; left: 14px; border-radius: 7px; padding: 2px 8px;
  background: #f1f4ff; color: #2f54eb;
}
.statusToggle { bottom: 9px; right: 12px; border-radius: 8px; background: #f1f4ff; }
.statusToggle.inactive { background: #f3f4f8; }
.emptyBox {
  padding: 56px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  border: 1px dashed rgba(47, 84, 235, .24);
}
.emptyBox .ico { font-size: 46px; }

/* 分页 / 悬浮添加：统一的方盒语气 */
.pager { padding: 20px 0 10px; }
.pagerBtn { border-radius: 9px; }
.fab { border-radius: 18px; }

/* 我的页：同样的分区标题与盒形卡片 */
.mineGroupTitle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #1c2740;
  letter-spacing: 0; margin: 22px 2px 10px;
}
.mineGroupTitle::before {
  content: ''; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, #3d83ff, #b79ef2);
}
.mineAvatar {
  border-radius: 16px; border: 1px solid #fff;
  background: linear-gradient(145deg, #e8f1ff, #e9e5ff);
  color: #2f54eb;
  box-shadow: 0 10px 22px -14px rgba(47, 84, 235, .8), inset 0 1px 0 #fff;
}
.statCard, .typeCard, .catCard, .mineList {
  border-radius: 16px; background: #fff;
  border: 1px solid rgba(47, 84, 235, .11);
  box-shadow: 0 10px 22px -18px rgba(60, 85, 160, .8);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.statCard, .typeCard, .catCard { position: relative; overflow: hidden; }
.statCard::before, .typeCard::before, .catCard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #8fbcff, #b6a8f5); opacity: .8;
}
.catCard.add { background: rgba(255, 255, 255, .55); border-style: dashed; }

/* 小屏：分组标签独占一行，格子保持三列对齐 */
@media (max-width: 640px) {
  .topbar .title small { display: none; }
  .main { border-radius: 20px; }
  .main::before { border-radius: 20px 20px 0 0; }
  .vaultHead { gap: 12px; margin-bottom: 14px; }
  .vaultHeadTxt h2 { font-size: 17px; }
  .secBar { flex: 1 1 100%; }
  .filterPanel { padding: 8px 10px; border-radius: 16px; margin-bottom: 14px; }
  .filterGroup { flex-direction: column; gap: 7px; padding: 8px 0; }
  .filterGroup + .filterGroup { padding-top: 10px; }
  .filterLabel { width: auto; padding-top: 0; }
  .chipRow { width: 100%; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 7px; }
  .chip { height: 32px; padding: 0 8px; font-size: 12px; }
  .chipIco { display: none; } /* 小屏优先显示完整分类名 */
  .itemCard { min-height: 92px; }
}

/* ==================== 五项新功能：密码健康 / 回收站 / CSV 导入 / 图片缩略图 / 自动锁定 ==================== */

/* 我的页：可点击行（回收站 / 导入入口） */
.mineRow.linkRow {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  font: inherit; text-align: left; padding: 11px 4px;
}
.mineRow.linkRow:hover { background: rgba(47, 84, 235, .05); border-radius: 10px; }
.mineRow.linkRow .rowVal { margin-left: auto; color: var(--text-3); font-size: 12px; white-space: nowrap; }

/* 我的页：行内下拉（自动锁定） */
.inlineSelect {
  border: 1px solid #dfe6f5; border-radius: 9px; background: #fff;
  padding: 6px 10px; font-size: 12.5px; color: var(--text);
  outline: none; cursor: pointer;
}
.inlineSelect:focus { border-color: var(--primary); }

/* 密码健康卡 */
.healthCard {
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(47, 84, 235, .10);
  border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 24px -18px rgba(50, 70, 130, .5);
  backdrop-filter: blur(8px);
}
.healthTop { display: flex; align-items: center; gap: 12px; }
.healthScore {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.healthScore b { font-size: 20px; line-height: 1; }
.healthScore span { font-size: 10px; opacity: .85; margin-top: 3px; }
.healthScore.good, .healthLevel.good, .healthBar i.good { background: #2f9e6e; }
.healthScore.fair, .healthLevel.fair, .healthBar i.fair { background: var(--primary, #2f54eb); }
.healthScore.warn, .healthLevel.warn, .healthBar i.warn { background: #ef9f27; }
.healthScore.bad, .healthLevel.bad, .healthBar i.bad { background: #e5484d; }
.healthMeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.healthLevel {
  align-self: flex-start; color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
}
.healthLevel.good { background: #2f9e6e; }
.healthLevel.fair { background: var(--primary, #2f54eb); }
.healthLevel.warn { background: #ef9f27; }
.healthLevel.bad { background: #e5484d; }
.healthMeta > span { color: var(--text-3); font-size: 11.5px; }
.healthBar { height: 6px; border-radius: 999px; background: #e8edfa; margin: 11px 0 10px; overflow: hidden; }
.healthBar i { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.healthTags { display: flex; flex-wrap: wrap; gap: 7px; }
.healthTag {
  font-size: 11px; color: var(--text-2); background: #f1f4fc;
  border: 1px solid #e3e9f8; border-radius: 999px; padding: 3px 10px;
}
.healthTag.bad { color: #b93238; background: #fdecec; border-color: #f6cfd1; }
.healthTag.warn { color: #a3660a; background: #fdf3e0; border-color: #f3e0b6; }
.healthEmpty { color: var(--text-3); font-size: 13px; text-align: center; padding: 8px 0; }

/* 密码健康详情弹窗 */
.healthModalBody { max-height: 56vh; overflow-y: auto; padding: 4px 2px; }
.healthGroupTitle {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin: 14px 2px 7px; display: flex; align-items: center; gap: 6px;
}
.healthGroupTitle:first-child { margin-top: 0; }
.healthRow {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: #fff; border: 1px solid #edf1fb; border-radius: 12px; margin-bottom: 7px;
}
.healthRowIco {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; font-size: 15px;
  background: #f1f4fc; display: flex; align-items: center; justify-content: center;
}
.healthRowMeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.healthRowMeta b { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.healthRowMeta span { font-size: 11px; color: var(--text-3); }
.healthRowTags { flex-shrink: 0; }
.ht { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.ht.bad { color: #b93238; background: #fdecec; }
.ht.warn { color: #a3660a; background: #fdf3e0; }

/* 回收站 */
.trashTip { font-size: 12px; color: var(--text-3); padding: 10px 18px 4px; line-height: 1.6; }
.trashList { padding: 8px 18px 6px; max-height: 56vh; overflow-y: auto; }
.trashRow {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: #fff; border: 1px solid #edf1fb; border-radius: 12px; margin-bottom: 8px;
}
.trashIco {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; font-size: 16px;
  background: #f4f5f9; display: flex; align-items: center; justify-content: center;
}
.trashMeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trashMeta b { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trashMeta span { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.trashRow .ops { display: flex; gap: 6px; flex-shrink: 0; }

/* CSV 导入 */
.mapGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 7px; padding: 2px 0 4px; }
.mapRow { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #edf1fb; border-radius: 10px; padding: 7px 10px; }
.mapCol { flex: 1; min-width: 0; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.importPrev { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.importPrev th, .importPrev td {
  border: 1px solid #e8edfa; padding: 6px 9px; font-size: 12px; text-align: left;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.importPrev th { background: #f4f7ff; color: var(--text-2); font-weight: 500; }
#importBody { padding: 6px 18px 14px; }

/* 附件图片缩略图 */
.fileThumb {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: #f1f4fc;
  display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer;
  overflow: hidden;
}
.fileThumbImg { width: 100%; height: 100%; object-fit: cover; display: block; }
.fileThumb:hover { box-shadow: 0 0 0 2px rgba(47, 84, 235, .25); }

/* ===== 对外开放 API ===== */
.apiLoading { padding: 40px 10px; text-align: center; color: var(--text-3); font-size: 13px; }
.apiPage { display: flex; flex-direction: column; gap: 16px; }

.apiHero {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(120deg, #f1f4ff, #f7f9ff);
  border: 1px solid #e2e9ff; border-radius: var(--radius); padding: 20px;
}
.apiHeroIco {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  background: var(--primary); color: #fff; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.apiHeroBody h2 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.apiHeroBody p { font-size: 13px; line-height: 1.7; color: var(--text-2); }
.apiHeroTags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.apiHeroTags span {
  font-size: 11.5px; color: var(--primary); background: #fff;
  border: 1px solid #dbe3ff; border-radius: 999px; padding: 3px 10px;
}

.apiSection {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.apiSecHead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.apiSecHead h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.apiSecHead p { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.apiSecHead code { background: var(--primary-light); color: var(--primary); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.apiSecHead .btn { flex: 0 0 auto; }
.apiEmpty { padding: 22px 10px; text-align: center; color: var(--text-3); font-size: 12.5px; border: 1px dashed var(--border); border-radius: 12px; }

.apiKeyList, .apiTokenList { display: flex; flex-direction: column; gap: 8px; }
.apiKeyRow {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #edf1fb; border-radius: 12px; padding: 12px 14px;
}
.apiKeyRow.revoked { opacity: .6; }
.apiKeyMain { flex: 1; min-width: 0; }
.apiKeyTop { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.apiKeyName { font-size: 13.5px; font-weight: 600; color: var(--text); }
.apiBadge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.apiBadge.on { background: #e8f7ef; color: var(--success); }
.apiBadge.off { background: #f2f3f6; color: var(--text-3); }
.apiKeyMeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--text-3); }
.apiKeyMeta code { color: var(--text-2); background: #f4f6fc; padding: 1px 6px; border-radius: 5px; }
.apiKeyMeta code.apiKeyPrefix { cursor: pointer; }
.apiKeyMeta code.apiKeyPrefix:hover { color: var(--primary); background: var(--primary-light); }
.apiCopyPrefix { flex: 0 0 auto; }
.apiRevokeBtn { flex: 0 0 auto; color: var(--danger); }

.apiEndpoint { border-top: 1px solid #eef1f8; padding-top: 14px; margin-top: 14px; }
.apiEndpoint:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.apiEpHead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.apiMethod { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.apiMethod.get { background: #e8f7ef; color: #12805a; }
.apiMethod.put { background: #fff4e5; color: #b26a00; }
.apiEpHead code { font-size: 12px; color: var(--text); background: #f4f6fc; padding: 3px 8px; border-radius: 6px; }
.apiEpTitle { font-size: 12px; color: var(--text-2); margin-left: auto; }
.apiEpDesc { font-size: 12px; color: var(--text-2); line-height: 1.7; margin: 5px 0; }
.apiEpDesc code { background: var(--primary-light); color: var(--primary); padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }
.apiCode {
  background: #1e2433; color: #d7e0f5; border-radius: 10px; padding: 12px 14px;
  font-size: 11.5px; line-height: 1.65; overflow-x: auto; white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; margin: 8px 0;
}
.apiResp { margin-top: 6px; }
.apiResp b { font-size: 11.5px; color: var(--text-2); }
.apiTip { margin-top: 16px; background: #fffaf0; border: 1px solid #f4e6c4; border-radius: 10px; padding: 12px 14px; }
.apiTip b { font-size: 12.5px; color: #8a6212; }
.apiTip p { font-size: 12px; color: #7a6a3f; line-height: 1.7; margin-top: 4px; }
.apiTip code { background: #fff; padding: 1px 5px; border-radius: 5px; font-size: 11.5px; }

.apiTokenRow {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #edf1fb; border-radius: 11px; padding: 10px 13px;
}
.apiTokenName { flex: 0 1 34%; min-width: 0; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apiTokenIco { font-size: 13px; }
.apiTokenOps { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.apiTokenOps code {
  flex: 1; min-width: 0; text-align: right; font-size: 11.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.apiFormHint { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-top: 8px; }
.apiFormWarn { font-size: 12.5px; color: #b26a00; background: #fffaf0; border: 1px solid #f4e6c4; border-radius: 9px; padding: 9px 12px; line-height: 1.6; }
.apiFormHint code { background: var(--primary-light); color: var(--primary); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.apiKeyReveal { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.apiKeyReveal code {
  flex: 1; min-width: 0; background: #f4f6fc; border: 1px solid #e2e9ff; border-radius: 9px;
  padding: 10px 12px; font-size: 12px; color: var(--text); word-break: break-all;
}
.apiKeyReveal .btn { flex: 0 0 auto; }

/* 移动端适配 */
@media (max-width: 719px) {
  .healthRow, .trashRow { flex-wrap: wrap; }
  .healthRowTags { width: 100%; order: 3; }
  .healthRow .btn.sm, .trashRow .ops { margin-left: auto; }
  .mapGrid { grid-template-columns: 1fr; }
  .trashRow .ops { width: 100%; justify-content: flex-end; }
  .importPrev th, .importPrev td { max-width: 90px; }
  .apiHero { padding: 16px; }
  .apiSection { padding: 16px; }
  .apiSecHead { flex-direction: column; }
  .apiSecHead .btn { align-self: stretch; }
  .apiKeyMeta { flex-direction: column; gap: 3px; }
  .apiEpTitle { width: 100%; margin-left: 0; }
  .apiTokenName { flex: 0 0 32%; }
  .apiKeyReveal { flex-direction: column; align-items: stretch; }
}
