/* ============================================================
   wn100 数据查询系统 — 现代化 UI/动效(仅前端美化, 功能不变)
   ============================================================ */
:root {
  --bg: #eef2f8;
  --panel: #ffffff;
  --ink: #1e293b;
  --ink-2: #475569;
  --muted: #8a97ab;
  --line: #e8edf5;
  --line-2: #dde5f0;
  --primary: #4f6ef7;
  --primary-deep: #3b55d6;
  --primary-glow: rgba(79, 110, 247, .32);
  --violet: #7c5cff;
  --amber: #f59e0b;
  --red: #e5484d;
  --green: #22a06b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, .05);
  --shadow: 0 6px 24px -12px rgba(15, 30, 60, .18), 0 2px 6px -2px rgba(15, 30, 60, .05);
  --shadow-lg: 0 22px 48px -20px rgba(15, 30, 60, .3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(124, 92, 255, .14), transparent 62%),
    radial-gradient(760px 420px at -6% 12%, rgba(79, 110, 247, .12), transparent 60%),
    radial-gradient(700px 500px at 50% 118%, rgba(245, 158, 11, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-deep); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- 顶栏(毛玻璃吸附) ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(92deg, #101c38 0%, #16284d 55%, #1d2f68 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 28px -18px rgba(10, 20, 50, .65);
}
.top-in {
  display: flex; align-items: center; flex-wrap: wrap;
  min-height: 58px; gap: 10px 14px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .5px;
  text-shadow: 0 1px 12px rgba(120, 150, 255, .45);
}
.brand::before {
  content: ""; align-self: center; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #818cf8);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, .22), 0 0 12px rgba(129, 140, 248, .8);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(129, 140, 248, .2), 0 0 8px rgba(129, 140, 248, .55); }
  50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, .08), 0 0 16px rgba(129, 140, 248, .95); }
}
.brand .sub { font-size: 12px; color: #9db8ef; font-weight: 500; letter-spacing: 1px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  color: #cdd9ee; padding: 7px 13px; border-radius: 8px; font-size: 13px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; transform: translateY(-1px); }
.user { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uname { font-weight: 700; color: #fff; letter-spacing: .3px; }
.lvl {
  color: #b9c9e8; font-size: 12px; background: rgba(255, 255, 255, .08);
  padding: 2px 9px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1);
}
.btn-link {
  color: #d6e2f5; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px;
  padding: 5px 12px; font-size: 13px;
  transition: all .18s ease;
}
.btn-link:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); text-decoration: none; transform: translateY(-1px); }

/* ---------- 角色/等级徽章 ---------- */
.role {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff;
  box-shadow: 0 2px 6px -2px rgba(20, 30, 60, .35);
}
.role::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.role-admin { background: linear-gradient(135deg, #d6336c, #a61e4d); }
.role-collector { background: linear-gradient(135deg, #4f8ef7, #2f5fd0); }
.role-normal { background: linear-gradient(135deg, #8b9bb2, #64748b); }
.lv {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
  padding: 2px 10px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .4px;
}
.lv3 { background: linear-gradient(135deg, #6d93b8, #4e7297); box-shadow: 0 3px 8px -3px rgba(78, 114, 151, .55); }
.lv6 { background: linear-gradient(135deg, #ffb84d, #f0883a); box-shadow: 0 3px 8px -3px rgba(240, 136, 58, .6); }
.lv9 { background: linear-gradient(135deg, #f0556d, #d92646); box-shadow: 0 3px 10px -3px rgba(217, 38, 70, .7); }

.ok, .bad, .warn-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.ok { color: #157347; background: #e3f6ec; }
.ok::before, .bad::before, .warn-tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
}
.ok::before { background: #1db469; }
.bad { color: #b02a37; background: #fde7ea; }
.bad::before { background: #e5484d; }
.warn-tag { color: #9a6700; background: #fff4d6; }
.warn-tag::before { background: #f59e0b; }

/* ---------- 布局与卡片 ---------- */
main.wrap { padding: 24px 20px 56px; animation: rise .5s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); border-color: var(--line-2); }
.card.narrow { max-width: 470px; margin: 34px auto; }
.card h2 {
  font-size: 18px; margin-bottom: 12px; color: var(--ink); letter-spacing: .2px;
  display: flex; align-items: center; gap: 8px; font-weight: 800;
}
.card h2::before {
  content: ""; width: 4px; height: 17px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--violet));
  box-shadow: 0 2px 6px -1px var(--primary-glow);
}
.card h3 { font-size: 14px; margin: 22px 0 10px; color: #33445c; font-weight: 700; }
.center { text-align: center; }
.err-code {
  font-size: 56px; font-weight: 900; line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.muted { color: var(--muted); font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: #42536a; font-weight: 600; }
.field label em { color: var(--muted); font-weight: 400; font-style: normal; }
input[type=text], input[type=password], input[type=number], input[type=file], select {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 14px; background: #fbfcfe; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font);
}
input:focus, select:focus {
  outline: none; background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}
input::placeholder { color: #aab6c8; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 16px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; user-select: none; }
.ck input { width: auto; accent-color: var(--primary); transform: scale(1.1); cursor: pointer; }
.ck-danger { color: var(--red); font-size: 12.5px; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary), #6a5cff 120%);
  color: #fff; border: none; cursor: pointer;
  padding: 9px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  letter-spacing: .4px;
  box-shadow: 0 8px 18px -8px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 12px 24px -10px var(--primary-glow); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 7px; letter-spacing: 0; }
.btn-danger { background: linear-gradient(135deg, #f0515a, var(--red)); box-shadow: 0 8px 18px -8px rgba(229, 72, 77, .55); }
.btn-danger:hover { box-shadow: 0 12px 24px -10px rgba(229, 72, 77, .65); }
.btn-ghost {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
  box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { background: rgba(79, 110, 247, .07); box-shadow: none; color: var(--primary-deep); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; margin: 0; }

/* ---------- 提示/闪信 ---------- */
.flash { max-width: 640px; margin: 4px auto 0; }
.flash .msg {
  position: relative;
  background: linear-gradient(90deg, #eef4ff, #f7faff);
  border: 1px solid #cfdefc; border-left: 4px solid var(--primary);
  color: #25417f; padding: 11px 40px 11px 15px; border-radius: 10px;
  margin: 12px 0; font-size: 13.5px; word-break: break-word;
  box-shadow: 0 6px 16px -10px rgba(60, 90, 200, .4);
  animation: msgIn .38s cubic-bezier(.2, .9, .3, 1.2) both;
  cursor: pointer;
}
.flash .msg.hide { opacity: 0; transform: translateY(-8px); transition: all .45s ease; }
.msg-x {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; line-height: 20px; text-align: center;
  border-radius: 50%; color: #7d95cf; font-size: 15px; background: rgba(255, 255, 255, .65);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.msg-x:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.12); }
@keyframes msgIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.alert { padding: 11px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; position: relative; }
.alert.warn { background: #fff9e8; border: 1px solid #f7e2ad; color: #8a5a10; }
.alert.info { background: #eef4ff; border: 1px solid #cddefa; color: #25417f; }
.tip { color: #5f7089; font-size: 13px; margin-bottom: 14px; }
code { background: #eef2fa; padding: 1.5px 6px; border-radius: 5px; font-size: 12px; font-family: "SF Mono", Consolas, Menlo, monospace; }

/* ---------- 搜索条 ---------- */
.search-bar { display: flex; gap: 10px; margin: 14px 0 16px; flex-wrap: wrap; }
.search-input { flex: 1 1 300px; background: #fbfcfe; }
.search-select { width: auto; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 4px -4px; padding: 0 4px; border-radius: 10px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th {
  background: linear-gradient(180deg, #f6f8fd, #eef2fa);
  color: #46587a; text-align: left; padding: 10px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 12.5px; letter-spacing: .3px;
}
.tbl th:first-child { border-radius: 8px 0 0 0; }
.tbl th:last-child { border-radius: 0 8px 0 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #eef2f8; vertical-align: top; transition: background .15s ease; }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover td { background: #f6f8ff; }
.tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.tbl tbody tr:last-child td { border-bottom: none; }
.chip {
  display: inline-block; background: #f1f5fd; color: #3f5aa8; border: 1px solid #dfe8fb;
  border-radius: 6px; padding: 1px 8px; margin: 1px 3px 1px 0; font-size: 12px;
  white-space: nowrap; transition: background .18s ease, transform .18s ease;
}
.chip:hover { background: #e5edff; transform: translateY(-1px); }
.pinyin { color: #a9b6c8; font-size: 11px; font-family: "SF Mono", Consolas, monospace; }
.detail-cell { max-width: 380px; word-break: break-all; }
.ua-cell { max-width: 300px; word-break: break-all; color: #5b6b80; font-size: 12px; }
.empty {
  text-align: center; color: #9aa8bd; padding: 46px 0 40px; font-size: 14px;
  background:
    radial-gradient(240px 90px at 50% 62%, rgba(79, 110, 247, .05), transparent 75%);
}
.empty::before {
  content: "◌"; display: block; font-size: 30px; margin-bottom: 6px; opacity: .5;
}

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager .btn { box-shadow: none; border: 1px solid var(--line-2); background: #fff; color: #44597c; font-weight: 600; }
.pager .btn:hover { border-color: var(--primary); color: var(--primary); background: #f6f8ff; box-shadow: none; }

/* ---------- 认证/绑定 ---------- */
.card.narrow { animation: rise .55s cubic-bezier(.2, .8, .25, 1) .05s both; }
.card.narrow h2 { justify-content: center; font-size: 20px; margin: 6px 0 6px; }
.card.narrow h2::before { display: none; }
.qr-box { text-align: center; margin: 18px 0 10px; }
.qr-box img {
  width: 210px; height: 210px; border-radius: 14px; padding: 10px;
  border: 1px solid var(--line-2); background: #fff;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.qr-box img:hover { transform: scale(1.05) rotate(-1deg); box-shadow: var(--shadow-lg); }
.secret {
  font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 15px; letter-spacing: 1.5px;
  background: linear-gradient(180deg, #f4f7fd, #edf1fa); border: 1px dashed var(--line-2);
  padding: 10px; border-radius: 8px; text-align: center; word-break: break-all; margin: 6px 0;
}
.pending-item {
  border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fffdf6;
  transition: box-shadow .2s ease, transform .2s ease;
  animation: msgIn .3s ease both;
}
.pending-item:hover { box-shadow: var(--shadow); transform: translateX(2px); }
.rules {
  background: linear-gradient(180deg, #f8fafd, #f1f5fc); border: 1px dashed #c9d8ef;
  padding: 12px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px;
}
.rules ul { margin: 8px 0 2px 20px; }
.rules li { margin: 5px 0; color: #46587a; }
.rules li::marker { color: var(--primary); }

/* ---------- 页脚 ---------- */
footer.foot {
  text-align: center; color: #94a3bb; font-size: 12px; padding: 22px 16px 34px;
  border-top: 1px dashed var(--line-2); margin-top: 18px; letter-spacing: .3px;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c3cfdf; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #9fb0c8; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .row2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .top-in { gap: 6px 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 6px; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .brand .sub { display: none; }
  main.wrap { padding: 16px 12px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   v3 · 移动端液态玻璃主题 (Liquid Glass)
   触发: 屏幕 <= 860px 的手机/窄屏设备; 桌面(>860px)保持 v2 风格
   ============================================================ */
.burger, .drawer, .dock { display: none; }
.no-scroll { overflow: hidden; }

@media (max-width: 860px) {
  /* ---------- 液态动态背景(光斑缓慢流动) ---------- */
  body { background: #dfe7f6; }
  body::before {
    content: ""; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
    background:
      radial-gradient(44% 40% at 18% 22%, rgba(124, 92, 255, .30), transparent 62%),
      radial-gradient(40% 36% at 82% 16%, rgba(79, 110, 247, .28), transparent 62%),
      radial-gradient(48% 42% at 30% 96%, rgba(245, 158, 11, .20), transparent 62%),
      radial-gradient(36% 32% at 92% 82%, rgba(34, 160, 107, .16), transparent 62%);
    animation: liquidDrift 26s ease-in-out infinite alternate;
  }
  @keyframes liquidDrift {
    0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    50%  { transform: translate3d(2%, 1.5%, 0) scale(1.07); }
    100% { transform: translate3d(-1%, 2.2%, 0) scale(1.03); }
  }

  /* ---------- 顶栏: 液态玻璃条 ---------- */
  .top {
    background: linear-gradient(165deg, rgba(16, 28, 56, .66), rgba(34, 50, 100, .52));
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 10px 30px -18px rgba(10, 20, 55, .5);
  }
  .top-in { min-height: 56px; padding: 0 4px; }
  .brand { font-size: 16px; }
  .brand .sub { display: none; }
  .nav.pc-nav { display: none; }
  .top-role, .user .lvl { display: none; }
  .user .btn-link { padding: 4px 10px; font-size: 12.5px; }

  /* 汉堡按钮(三线动画) */
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4.5px;
    width: 38px; height: 38px; margin-left: auto;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px; cursor: pointer; padding: 0 9px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .2s ease, transform .15s ease;
  }
  .burger span {
    display: block; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #9ec5ff, #cfe0ff);
    transition: transform .25s ease, opacity .2s ease;
  }
  .burger:active { transform: scale(.94); }
  .top-in { display: flex; }
  .user { margin-left: 0; }

  /* ---------- 全屏玻璃抽屉 ---------- */
  .drawer { display: block; position: fixed; inset: 0; z-index: 120;
            visibility: hidden; pointer-events: none; }
  .drawer.open { visibility: visible; pointer-events: auto; }
  .drawer-mask {
    position: absolute; inset: 0; background: rgba(12, 20, 42, .38);
    -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    opacity: 0; transition: opacity .3s ease;
  }
  .drawer.open .drawer-mask { opacity: 1; }
  .drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 86vw);
    display: flex; flex-direction: column;
    background: linear-gradient(165deg, rgba(255, 255, 255, .82), rgba(240, 246, 255, .66));
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, .9);
    box-shadow: -24px 0 60px -28px rgba(10, 20, 55, .5);
    transform: translateX(104%); transition: transform .4s cubic-bezier(.22, .9, .28, 1);
    overflow-y: auto;
  }
  .drawer.open .drawer-panel { transform: none; }
  .drawer-head {
    display: flex; align-items: center; gap: 9px; padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(120, 140, 200, .18);
  }
  .drawer-head b { font-size: 16px; color: var(--ink); }
  .drawer-head .lvl { color: #5b6f92; background: rgba(79, 110, 247, .1); border: none; }
  .drawer-close {
    margin-left: auto; width: 32px; height: 32px; border: none; border-radius: 11px;
    background: rgba(79, 110, 247, .1); color: #4a5f8c; font-size: 22px; line-height: 1;
    cursor: pointer; transition: background .2s ease, transform .2s ease;
  }
  .drawer-close:active { transform: scale(.9); }
  .drawer-nav { padding: 10px 14px 16px; flex: 1; }
  .drawer-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; margin: 5px 0; border-radius: 14px;
    color: #33415a; font-size: 15px; font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45));
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 14px -8px rgba(30, 50, 100, .3), inset 0 1px 0 rgba(255, 255, 255, .95);
    transition: transform .16s ease, box-shadow .2s ease;
  }
  .drawer-nav a::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #4f6ef7);
    box-shadow: 0 0 8px rgba(124, 92, 255, .7);
  }
  .drawer-nav a:active { transform: scale(.97); }
  .drawer-foot { padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(120, 140, 200, .16); }
  .drawer-foot a {
    display: inline-flex; align-items: center; gap: 6px; color: var(--red);
    font-weight: 600; font-size: 13.5px; padding: 8px 2px;
  }

  /* ---------- 底部液态 Dock ---------- */
  .dock {
    display: flex; justify-content: center; gap: 4px;
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 110; padding: 7px 8px; border-radius: 26px;
    background: linear-gradient(160deg, rgba(18, 30, 62, .62), rgba(28, 44, 92, .5));
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 44px -18px rgba(8, 15, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .28);
    animation: dockIn .55s cubic-bezier(.2, .9, .3, 1.15) .1s both;
  }
  @keyframes dockIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
  .dock-item {
    flex: 1; max-width: 92px; display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 7px 2px 5px; border-radius: 18px; color: #dbe6f8;
    transition: background .2s ease, transform .16s ease, color .2s ease;
  }
  .dock-item .d-ic {
    width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #cfe2ff, #7c9cf8 70%);
    box-shadow: 0 0 6px rgba(150, 175, 255, .9), 0 0 16px rgba(120, 150, 255, .5);
  }
  .dock-item .d-lb { font-size: 11px; letter-spacing: .5px; }
  .dock-item:active { background: rgba(255, 255, 255, .16); transform: scale(.9); }
  .dock-item.is-home { background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .18); }

  /* ---------- 卡片: 液态玻璃 ---------- */
  .card {
    background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .52));
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 14px 44px -18px rgba(24, 42, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .98);
    border-radius: 20px; padding: 18px 16px;
  }
  .card:hover { transform: none; }
  main.wrap { padding: 16px 12px calc(112px + env(safe-area-inset-bottom)); animation: rise .5s ease both; }
  footer.foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); background: transparent; }

  /* 输入控件玻璃化 + iOS 16px 防缩放 */
  input[type=text], input[type=password], input[type=number], input[type=file], select {
    background: rgba(255, 255, 255, .72); border-color: rgba(190, 205, 235, .8);
    font-size: 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 12px;
  }
  .search-bar { gap: 8px; }
  .search-bar .btn { flex: 0 0 auto; }
  .search-input { flex: 1 1 100%; }
  .btn { border-radius: 12px; padding: 11px 18px; font-size: 15px; }

  /* ---------- 表格 -> 玻璃信息卡流 ---------- */
  .table-wrap { overflow: visible; background: transparent; box-shadow: none; margin: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; width: 100%; }
  .tbl tbody { display: flex; flex-direction: column; gap: 12px; }
  .tbl tr {
    display: block; margin: 0; padding: 6px 16px 10px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px -16px rgba(24, 42, 90, .3), inset 0 1px 0 rgba(255, 255, 255, .95);
  }
  .tbl td {
    display: block; width: 100%; padding: 6px 0; border: none;
    border-bottom: 1px dashed rgba(120, 140, 200, .16); vertical-align: top;
    word-break: break-all; white-space: normal !important;
  }
  .tbl td:last-child { border-bottom: none; }
  .tbl td::before {
    content: attr(data-label); display: block; margin-bottom: 1px;
    font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #8a9cba;
  }
  .tbl td:not([data-label])::before { content: none; }
  .tbl td .pinyin { display: none; }
  .tbl tbody tr:hover td, .tbl tbody tr:hover td:first-child { background: transparent; box-shadow: none; }
  .tbl tbody tr:hover td { background: rgba(255, 255, 255, .2); box-shadow: none; }
  .detail-cell, .ua-cell { max-width: none; }
  .chip { font-size: 12px; }

  /* 组件微调 */
  .flash .msg { font-size: 13px; }
  .pending-item { background: rgba(255, 252, 240, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .qr-box img { width: 190px; height: 190px; }
  .secret { background: rgba(244, 247, 253, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .row2 { gap: 0; }
  .ck-danger { display: inline-flex; flex-wrap: wrap; }
  .table-wrap + .pager { padding-bottom: 4px; }
}

/* 手机横屏/窄屏安全区兜底 */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 860px) { .top-in { padding-top: env(safe-area-inset-top); } }
}

/* ============================================================
   v4 · 全端液态玻璃 (Liquid Glass 全端统一)
   桌面端(>860px)升级为与移动端一致的液态玻璃质感;
   移动端专属布局(Dock/抽屉/表格卡片流)保持不变。
   ============================================================ */
@media (min-width: 861px) {
  /* 液态流动光斑背景 */
  body {
    background: linear-gradient(150deg, #e7edfb 0%, #eef1fa 45%, #e8eaf9 100%);
  }
  body::before {
    content: ""; position: fixed; inset: -12%; z-index: 0; pointer-events: none;
    background:
      radial-gradient(38% 34% at 16% 18%, rgba(124, 92, 255, .22), transparent 62%),
      radial-gradient(34% 30% at 84% 14%, rgba(79, 110, 247, .20), transparent 62%),
      radial-gradient(40% 36% at 88% 84%, rgba(245, 158, 11, .14), transparent 62%),
      radial-gradient(30% 26% at 12% 88%, rgba(34, 160, 107, .12), transparent 62%);
    animation: liquidDriftPc 34s ease-in-out infinite alternate;
  }
  @keyframes liquidDriftPc {
    0%   { transform: translate3d(-1%, -.8%, 0) scale(1); }
    50%  { transform: translate3d(1.4%, 1%, 0) scale(1.05); }
    100% { transform: translate3d(-.8%, 1.4%, 0) scale(1.02); }
  }

  /* 顶栏: 液态玻璃(内容滚动时产生透过效果) */
  .top {
    background: linear-gradient(160deg, rgba(16, 28, 56, .78), rgba(30, 46, 96, .66));
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    backdrop-filter: blur(22px) saturate(170%);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 36px -22px rgba(8, 15, 40, .55);
  }

  /* 卡片: 液态玻璃(半透明 + 磨砂 + 内高光) */
  .card {
    position: relative;
    background: linear-gradient(155deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .38));
    -webkit-backdrop-filter: blur(26px) saturate(175%);
    backdrop-filter: blur(26px) saturate(175%);
    border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px -24px rgba(24, 42, 90, .4), inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  .card::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95) 22%,
                rgba(160, 185, 255, .85) 50%, rgba(255, 255, 255, .95) 78%, transparent);
    pointer-events: none;
  }
  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 1);
  }

  /* 输入控件: 磨砂玻璃 */
  input[type=text], input[type=password], input[type=number], input[type=file], select {
    background: rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, .85);
  }
  input:focus, select:focus { background: rgba(255, 255, 255, .85); }

  /* 表格: 液态玻璃面板(桌面保留表格布局) */
  .table-wrap {
    background: linear-gradient(160deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, .18));
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px; padding: 4px 6px;
  }
  .tbl th {
    background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42));
    border-bottom: 1px solid rgba(255, 255, 255, .9);
  }
  .tbl td { border-bottom: 1px solid rgba(255, 255, 255, .45); }
  .tbl tbody tr:hover td {
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

  /* 细节玻璃化 */
  .flash .msg {
    background: linear-gradient(90deg, rgba(238, 244, 255, .9), rgba(247, 250, 255, .7));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .pending-item, .secret, .rules {
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .drawer, .dock { display: none !important; }
}

/* ============================================================
   v5 · 危险操作区(一键清除所有数据 · 阻断泄露)
   ============================================================ */
.danger-zone {
  margin-top: 18px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(229, 72, 77, .38);
  background: linear-gradient(160deg, rgba(255, 243, 244, .78), rgba(255, 236, 238, .5));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 30px -18px rgba(229, 72, 77, .45), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.dz-title { font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .4px; margin-bottom: 8px; }
.danger-zone p { font-size: 13px; color: #7a3d42; margin-bottom: 12px; }
.danger-zone form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.danger-zone .ck { margin: 0; }
@media (max-width: 860px) {
  .danger-zone { padding: 14px; }
  .danger-zone form { flex-direction: column; align-items: stretch; }
  .danger-zone .btn { width: 100%; }
}

/* ============================================================
   v6 · 公共查询入口(未登录初始页)
   ============================================================ */
.portal-card h2 { justify-content: center; }
.portal-badge {
  font-size: 12.5px; color: #3d5af1; font-weight: 600; white-space: nowrap;
  background: linear-gradient(135deg, rgba(79, 110, 247, .12), rgba(124, 92, 255, .12));
  border: 1px solid rgba(79, 110, 247, .25); border-radius: 20px; padding: 4px 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.search-code { flex: 0 0 160px; }
.chip-gate { background: #e8f7ee; color: #1d7f45; border-color: #bfe8d0; }
@media (max-width: 860px) {
  .search-code { flex: 1 1 100%; }
  .portal-badge { white-space: normal; }
}

/* ============================================================
   v7 · TOTP 管理页
   ============================================================ */
.totp-code {
  font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 17px; font-weight: 800;
  letter-spacing: 3px; color: #1d7f45;
}
.totp-code.off { color: #93a1b1; font-weight: 500; letter-spacing: 0; font-size: 13px; }
.totp-secret { font-size: 11px; display: block; margin-top: 5px; word-break: break-all; }
.tbl details summary { cursor: pointer; color: var(--primary); font-size: 12.5px; }
.tbl details[open] summary { color: var(--muted); }
