/* =========================================================
   断点 UDID · 液态玻璃主题（Liquid Glass）
   令牌逐值取自 sign.mangoios.com：#e8f4ff 底 + 粉/蓝/紫/绿 mesh + iOS 蓝 #0a84ff
   —— 与 theme-glass.css 的类名完全一致，可直接互换
   ========================================================= */
:root {
  /* 底色与光斑（wallpaper） */
  --bg: #e8f4ff;
  --bg-2: #d4f0ff;
  --mesh-1: #ff6b9d;
  --mesh-2: #4facfe;
  --mesh-3: #a18cd1;
  --mesh-4: #43e97b;
  --mesh-opacity: .42;

  /* 文字 */
  --text: rgba(0, 0, 0, .86);
  --text-sub: rgba(0, 0, 0, .62);
  --text-dim: rgba(0, 0, 0, .52);
  --text-faint: rgba(0, 0, 0, .36);

  /* 强调色 */
  --accent: #0a84ff;
  --accent-press: #0062cc;
  --accent-2: #5ac8fa;
  --accent-soft: rgba(10, 132, 255, .12);
  --purple: #af52de;
  --pink: #ff2d55;
  --green: #34c759;
  --warn: #ff9f0a;
  --danger: #ff3b30;

  /* 玻璃 */
  --lg-fill: rgba(255, 255, 255, .26);
  --lg-fill-2: rgba(255, 255, 255, .34);
  --lg-fill-3: rgba(255, 255, 255, .48);
  --lg-blur: blur(34px) saturate(190%) brightness(1.06);
  --lg-blur-strong: blur(44px) saturate(220%) brightness(1.1);
  --lg-rim: rgba(255, 255, 255, .62);
  --lg-rim-bright: rgba(255, 255, 255, .88);
  --line: rgba(255, 255, 255, .42);
  --line-soft: rgba(255, 255, 255, .3);

  --sh-out: 0 0 0 .5px rgba(255,255,255,.35) inset, 0 1px 0 rgba(255,255,255,.75) inset,
            0 2px 4px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.07), 0 24px 48px rgba(0,0,0,.05);
  --sh-out-sm: 0 0 0 .5px rgba(255,255,255,.4) inset, 0 1px 0 rgba(255,255,255,.7) inset,
              0 2px 6px rgba(0,0,0,.05), 0 8px 20px rgba(0,0,0,.06);
  --sh-float: 0 0 0 .5px rgba(255,255,255,.45) inset, 0 1.5px 0 rgba(255,255,255,.9) inset,
              0 4px 8px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.1), 0 32px 64px rgba(0,0,0,.06);
  --sh-in: inset 0 1px 3px rgba(0,0,0,.06), inset 0 0 0 .5px rgba(255,255,255,.35);

  --radius: 26px;
  --radius-sm: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "SF Mono", monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }

/* ------------------------------ 背景 ------------------------------- */
.liquid-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,120,180,.32) 0%, transparent 50%),
    linear-gradient(225deg, rgba(80,160,255,.34) 0%, transparent 55%),
    linear-gradient(45deg, rgba(120,255,200,.24) 0%, transparent 45%),
    linear-gradient(160deg, #e8f4ff 0%, #f5e6ff 35%, #ffe8f0 65%, #d4f0ff 100%);
}
.blob { position: absolute; border-radius: 50%; opacity: var(--mesh-opacity); will-change: transform; }
.blob-1 { top: -10%; left: -8%; width: min(50vw, 640px); height: min(50vw, 640px);
          background: radial-gradient(circle, var(--mesh-1) 0%, rgba(255,107,157,0) 80%); animation: drift1 24s ease-in-out infinite alternate; }
.blob-2 { top: 20%; right: -10%; width: min(45vw, 580px); height: min(45vw, 580px);
          background: radial-gradient(circle, var(--mesh-2) 0%, rgba(79,172,254,0) 80%); animation: drift2 28s ease-in-out infinite alternate; }
.blob-3 { bottom: -5%; left: 25%; width: 40vw; height: 40vw; max-width: 420px; max-height: 420px;
          background: radial-gradient(circle, var(--mesh-3) 0%, rgba(161,140,209,0) 80%); animation: drift3 22s ease-in-out infinite alternate; }
.blob-4 { bottom: 20%; right: 15%; width: 35vw; height: 35vw; max-width: 380px; max-height: 380px;
          background: radial-gradient(circle, var(--mesh-4) 0%, rgba(67,233,123,0) 80%); animation: drift1 30s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(34px,44px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.04); } to { transform: translate(-38px,-28px) scale(.95); } }
@keyframes drift3 { from { transform: translate(0,0) scale(.96); } to { transform: translate(-24px,32px) scale(1.1); } }
.noise { display: none; }
@media (prefers-reduced-motion: reduce) { .blob { animation: none !important; } }

/* ------------------------------ 布局 ------------------------------- */
.shell { width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px 132px; }
.shell.wide { max-width: 1180px; }

.page { display: none; }
.page.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { transform: translateY(8px); } to { transform: none; } }
.view { display: none; }
.view.active { display: block; animation: fadeUp .3s ease; }

/* ------------------------------ 卡片 ------------------------------- */
.card {
  background: var(--lg-fill);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-rim);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh-out);
  position: relative;
  overflow: hidden;
}
.card::after { display: none; }
.card.tight { padding: 15px; border-radius: 20px; }
.card.plain { background: var(--lg-fill-2);
  backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur);
  box-shadow: var(--sh-out-sm); }
.card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.card-sub { color: var(--text-dim); font-size: 13px; margin: -6px 0 14px; }
.card + .card { margin-top: 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 16px -20px; }

/* ---------------------------- 头部信息 ----------------------------- */
.app-header { text-align: center; padding: 6px 4px 24px; }
.app-icon {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  background: var(--lg-fill-3);
  border: 1px solid var(--lg-rim);
  box-shadow: var(--sh-out), inset 0 1px 0 rgba(255,255,255,.9);
}
.app-icon.sm { width: 62px; height: 62px; font-size: 27px; border-radius: 20px; }
.app-name { font-size: 25px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.app-meta { font-size: 12px; color: var(--text-faint); margin-top: 6px; font-family: var(--mono); }
.app-desc { color: var(--text-dim); font-size: 13.5px; margin-top: 10px; padding: 0 12px; }

/* ------------------------------ 按钮 ------------------------------- */
.btn {
  display: block; width: 100%; border: 0; cursor: pointer;
  padding: 15px 18px; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700; font-family: var(--font);
  color: var(--text-sub);
  background: var(--lg-fill-3);
  box-shadow: var(--sh-out-sm);
  border: 1px solid var(--lg-rim);
  transition: transform .14s ease, box-shadow .22s ease, filter .2s ease;
  position: relative; overflow: hidden;
  -webkit-appearance: none;
}
.btn:active { transform: scale(.985); box-shadow: var(--sh-in); }
.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: var(--sh-out-sm); }
.btn-primary {
  color: #fff; border: 0;
  background: linear-gradient(135deg, #3fa2ff 0%, var(--accent) 60%, #0f6fff 100%);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.4) inset, 0 1px 0 rgba(255,255,255,.45) inset, 0 8px 22px rgba(10,132,255,.35);
  text-shadow: 0 1px 2px rgba(60, 40, 140, .28);
}
.btn-primary:active { box-shadow: inset 3px 3px 10px rgba(60,40,140,.28), inset -3px -3px 10px rgba(255,255,255,.25); }
.btn-primary::after { display: none; }
.btn-ghost {
  background: var(--lg-fill-3);
  font-weight: 650; font-size: 14px; padding: 13px; color: var(--text-sub);
}
.btn-outline { background: transparent; border: 1px solid var(--line); font-weight: 650; font-size: 14px; padding: 12px; color: var(--text-sub); box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: 13px; width: auto; border-radius: 13px; }
.btn-danger {
  background: rgba(255, 214, 210, .55);
  border: 1px solid rgba(244, 96, 77, .3); color: #d8513c; font-size: 14px; font-weight: 700; padding: 12px;
}
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { margin: 0; }

/* 独立 CTA 栏：一栏玻璃框，只放按钮 */
.cta-card {
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
}
.cta-card .btn { margin: 0; }

/* 拟态玻璃按钮：半透明玻璃 + 白 rim + 蓝字 */
.btn-primary.btn-glass,
.btn-glass {
  color: var(--accent);
  background:
    linear-gradient(160deg, rgba(255,255,255,.72) 0%, rgba(226,240,255,.5) 55%, rgba(255,255,255,.42) 100%);
  backdrop-filter: blur(26px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow:
    0 0 0 .5px rgba(255,255,255,.55) inset,
    0 1px 0 rgba(255,255,255,.9) inset,
    0 -1px 0 rgba(255,255,255,.35) inset,
    0 6px 18px rgba(10,132,255,.18),
    0 2px 6px rgba(0,0,0,.06);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  font-weight: 800;
  letter-spacing: .3px;
}
.btn-primary.btn-glass:active,
.btn-glass:active {
  box-shadow: inset 0 2px 6px rgba(10,132,255,.16), inset 0 0 0 .5px rgba(255,255,255,.5);
  transform: scale(.985);
}

/* 步骤 */
.steps { display: grid; gap: 12px; margin: 2px 0 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-no {
  flex: none; width: 26px; height: 26px; border-radius: 10px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: var(--accent);
  background: var(--lg-fill-2);
  box-shadow: var(--sh-out-sm);
}
.step-text { font-size: 13.5px; color: var(--text-sub); }

/* ------------------------------ 提示条 ------------------------------ */
.tip {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; color: var(--text-dim);
  background: rgba(255,255,255,.38);
  box-shadow: var(--sh-in);
  border: 0; border-radius: 15px; padding: 12px 14px; margin-top: 14px;
}
.tip.warn { color: #b57f10; background: rgba(255, 214, 153, .45); box-shadow: var(--sh-in); }
.tip.ok { color: #1f9c6e; background: rgba(160, 240, 200, .45); box-shadow: var(--sh-in); }

.notice {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 15px; border-radius: 18px; margin-bottom: 16px;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(124, 107, 255, .18);
  box-shadow: var(--sh-out-sm);
  font-size: 12.8px; color: #5f54b8;
}
.notice .nt-title { font-weight: 700; color: var(--accent); flex: none; }

/* ------------------------------ 信息行 ------------------------------ */
.kv { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv-k { flex: none; width: 78px; color: var(--text-dim); font-size: 13px; }
.kv-v { flex: 1; min-width: 0; font-size: 13.5px; word-break: break-all; color: var(--text); }
.kv-v.mono { font-family: var(--mono); letter-spacing: .2px; }
.kv-v.big { font-size: 15px; font-weight: 700; }

/* UDID 大字展示 */
.udid-box {
  background: rgba(255,255,255,.48);
  box-shadow: var(--sh-in);
  border: 0; border-radius: var(--radius-sm); padding: 15px; margin: 4px 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.udid-text {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 14px;
  letter-spacing: .6px; word-break: break-all; line-height: 1.5; color: #4a4568;
}
.copy-btn {
  flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.48); color: var(--accent); font-size: 17px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--sh-out-sm);
}
.copy-btn:active { box-shadow: var(--sh-in); transform: scale(.96); }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--accent-soft); color: #6a5ae0; border: 1px solid rgba(124,107,255,.2);
}
.badge.ok { background: rgba(47,191,135,.14); color: #1f9c6e; border-color: rgba(47,191,135,.24); }
.badge.warn { background: rgba(247,168,30,.16); color: #b57f10; border-color: rgba(247,168,30,.26); }
.badge.err { background: rgba(244,96,77,.14); color: #d8513c; border-color: rgba(244,96,77,.24); }

/* ------------------------------ 表单 -------------------------------- */
.label { display: block; font-size: 12.5px; color: var(--text-dim); margin: 0 0 8px; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.48);
  border: 0; box-shadow: var(--sh-in);
  color: var(--text); font-size: 15px; font-family: var(--font);
  outline: none; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { box-shadow: var(--sh-in), 0 0 0 3px rgba(124,107,255,.16); }
.textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 86px; }
.input-group .in-btn {
  position: absolute; right: 7px; padding: 9px 13px; border-radius: 12px;
  font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer;
  background: var(--lg-fill-3); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--sh-out-sm);
}
.input-group .in-btn:active { box-shadow: var(--sh-in); }
.form-group { margin-bottom: 15px; }
.form-grid { display: grid; gap: 13px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

/* 开关 */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.switch:last-child { border-bottom: 0; }
.switch .sw-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.switch .sw-desc { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.sw {
  flex: none; width: 50px; height: 29px; border-radius: 999px; position: relative; cursor: pointer;
  background: rgba(255,255,255,.55);
  box-shadow: var(--sh-in);
  transition: background .24s;
}
.sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 .5px rgba(255,255,255,.8) inset;
  transition: transform .24s cubic-bezier(.34,1.3,.5,1);
}
.sw.on { background: linear-gradient(135deg, #3fa2ff, var(--accent)); box-shadow: 0 2px 8px rgba(10,132,255,.4); }
.sw.on::after { transform: translateX(21px); }
.sw-hint {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px; font-size: 12px; line-height: 1.65;
  color: #5f54b8; background: rgba(255,255,255,.42);
  border: 1px solid rgba(124,107,255,.16);
}

/* --------------------------- 底部气囊（胶囊导航） --------------------- */
.nav-container {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 92%; max-width: 430px; z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav {
  position: relative; display: flex; align-items: center;
  background: var(--lg-fill-3);
  border: 1px solid var(--lg-rim-bright);
  border-radius: 999px; padding: 7px;
  backdrop-filter: var(--lg-blur-strong); -webkit-backdrop-filter: var(--lg-blur-strong);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.45) inset, 0 1.5px 0 rgba(255,255,255,.9) inset,
              0 4px 8px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.1);
}
.nav-indicator {
  position: absolute; top: 7px; bottom: 7px; left: 7px;
  width: calc((100% - 14px) / 4);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(232,242,255,.78));
  box-shadow: 0 0 0 .5px rgba(255,255,255,.9) inset, 0 2px 10px rgba(10,132,255,.14);
  transition: transform .36s cubic-bezier(.34, 1.35, .5, 1);
}
.nav-item {
  flex: 1; text-align: center; padding: 10px 0; font-size: 12.5px; font-weight: 650;
  color: var(--text-dim); cursor: pointer; position: relative; z-index: 1;
  transition: color .2s; white-space: nowrap;
}
.nav-item.active { color: var(--accent); }
.nav-item .ni-ico { display: block; font-size: 15px; line-height: 1.1; margin-bottom: 1px; }

/* ---------------------------- Toast / 弹窗 --------------------------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 999; width: 90%; max-width: 400px; display: grid; gap: 9px; }
.toast {
  display: flex; gap: 9px; align-items: center;
  padding: 13px 16px; border-radius: 18px; font-size: 13.5px; color: var(--text);
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  backdrop-filter: var(--lg-blur-strong); -webkit-backdrop-filter: var(--lg-blur-strong);
  border: 1px solid var(--lg-rim-bright);
  backdrop-filter: var(--lg-blur-strong); -webkit-backdrop-filter: var(--lg-blur-strong);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.5) inset, 0 2px 8px rgba(0,0,0,.06), 0 14px 34px rgba(0,0,0,.14);
  animation: toastIn .26s ease;
}
.toast.success { border-color: rgba(47,191,135,.35); }
.toast.error { border-color: rgba(244,96,77,.35); }
@keyframes toastIn { from { transform: translateY(-10px) scale(.97); } to { transform: none; } }
.toast.out { animation: toastOut .24s ease forwards; }
@keyframes toastOut { to { transform: translateY(-8px) scale(.97); } }

.modal-mask {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  background: rgba(120, 148, 186, .55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: 22px;
}
.modal {
  width: 100%; max-width: 390px; border-radius: 26px; padding: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  backdrop-filter: var(--lg-blur-strong); -webkit-backdrop-filter: var(--lg-blur-strong);
  border: 1px solid var(--lg-rim-bright);
  box-shadow: 14px 16px 40px rgba(163,177,198,.6), -8px -8px 24px rgba(255,255,255,.95);
  animation: pop .26s cubic-bezier(.34,1.35,.5,1);
}
@keyframes pop { from { transform: scale(.93) translateY(6px); } to { transform: none; } }
.modal h3 { margin: 0 0 8px; font-size: 17px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.modal p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; }

.spinner {
  width: 17px; height: 17px; border-radius: 50%; display: inline-block; vertical-align: -3px;
  border: 2px solid rgba(124, 107, 255, .25); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------- 列表 / 表格 --------------------------- */
.list { display: grid; gap: 11px; }
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 18px;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--lg-rim);
  box-shadow: var(--sh-out-sm);
  cursor: pointer; transition: box-shadow .2s, transform .14s;
}
.item:active { transform: scale(.99); box-shadow: var(--sh-in); }
.item-ico {
  flex: none; width: 42px; height: 42px; border-radius: 14px; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lg-fill-2);
  box-shadow: var(--sh-out-sm);
}
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.item-sub { font-size: 12px; color: var(--text-faint); font-family: var(--mono); margin-top: 2px;
  word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-arrow { color: var(--text-faint); font-size: 15px; flex: none; }

.empty { text-align: center; padding: 32px 10px; color: var(--text-faint); font-size: 13.5px; }
.empty .em-ico { font-size: 34px; opacity: .8; display: block; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: 18px;
  background: rgba(255,255,255,.4); box-shadow: var(--sh-in); border: 0; padding: 4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
table.data th, table.data td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; color: var(--text); }
table.data th { color: var(--text-dim); font-weight: 700; font-size: 12px; background: transparent; position: sticky; top: 0; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(124, 107, 255, .05); }
table.data td.mono { font-family: var(--mono); }
table.data td.fs12 { font-size: 11.5px; }
table.data .t-udid { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.udid-cell { font-family: var(--mono); font-size: 12px; }
td .mini {
  padding: 6px 9px; font-size: 11.5px; font-weight: 650; border-radius: 10px; border: 1px solid rgba(255,255,255,.9);
  background: var(--lg-fill-3); color: var(--accent); cursor: pointer; margin-right: 5px;
  box-shadow: 2px 2px 5px rgba(163,177,198,.5); white-space: nowrap;
}
td .mini:last-child { margin-right: 0; }
td .mini.danger { color: #d8513c; background: rgba(255, 214, 210, .6); border-color: rgba(244,96,77,.22); }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 17px; border-radius: 20px; position: relative; overflow: hidden;
  background: var(--lg-fill-2);
  border: 1px solid var(--lg-rim);
  box-shadow: var(--sh-out);
}
.stat::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), #5ac8fa); opacity: .9; }
.stat .s-num { font-size: 25px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.stat .s-lab { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.stat .s-sub { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* 迷你柱状图 */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 10px 2px 0; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar {
  width: 100%; max-width: 34px; border-radius: 10px; min-height: 6px;
  background: linear-gradient(180deg, #5ac8fa, var(--accent));
  box-shadow: 0 6px 16px rgba(10,132,255,.35), inset 0 1px 0 rgba(255,255,255,.5);
  transition: height .5s cubic-bezier(.34,1.2,.5,1);
}
.chart .bar-lab { font-size: 10.5px; color: var(--text-faint); }
.chart .bar-val { font-size: 10.5px; color: var(--text-dim); }

/* 标签页 */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 18px;
        background: rgba(255,255,255,.5); box-shadow: var(--sh-in); overflow-x: auto; }
.tab { flex: none; padding: 10px 16px; border-radius: 13px; font-size: 13px; font-weight: 650;
       color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.tab.active {
  color: var(--accent);
  background: rgba(255,255,255,.48);
  box-shadow: 3px 3px 8px rgba(163,177,198,.55), -3px -3px 8px rgba(255,255,255,.95);
}

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; font-size: 12.5px; color: var(--text-dim); flex-wrap: wrap; }
.pager button {
  padding: 9px 14px; border-radius: 13px; white-space: nowrap; cursor: pointer;
  background: var(--lg-fill-2); border: 1px solid rgba(255,255,255,.9);
  color: var(--text-sub); font-size: 12.5px; font-weight: 650; box-shadow: var(--sh-out-sm);
}
.pager button:active { box-shadow: var(--sh-in); }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------- 后台：侧栏 / 顶栏 / 登录 ------------------------- */
.admin-layout { display: block; }
.admin-layout > * { min-width: 0; }
.admin-main { min-width: 0; }
.admin-nav-wrap { position: sticky; top: 12px; z-index: 60; margin-bottom: 16px; }
.admin-side .nav { overflow-x: auto; scrollbar-width: none; }
.admin-side .nav::-webkit-scrollbar { display: none; }
@media (max-width: 999px) {
  /* 手机端：导航沉到底部做成胶囊（气囊），顶部只留 logo 与标题 */
  .admin-nav-wrap {
    position: fixed; top: auto; bottom: 22px; left: 50%; transform: translateX(-50%);
    width: 92%; max-width: 440px; height: auto; margin: 0; z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .admin-main { padding-bottom: 118px; }
  .admin-side .nav { justify-content: space-between; border-radius: 999px; padding: 7px; gap: 0; overflow: visible; }
  .admin-side .nav-indicator { display: none; }
  .admin-side .nav-item { flex: 1 1 0; min-width: 0; position: relative; padding: 10px 2px 14px; font-size: 12px; background: none !important; }
  .admin-side .nav-item .ni-ico { display: block; font-size: 15px; line-height: 1.15; margin: 0 0 2px; }
  .admin-side .nav-item.active { color: var(--accent); }
  .admin-side .nav-item.active::after {
    content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
    width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #5ac8fa);
    box-shadow: 0 2px 6px rgba(124,107,255,.5);
  }
}
@media (min-width: 1000px) {
  .admin-layout { display: grid; grid-template-columns: 196px 1fr; gap: 16px; align-items: start; }
  .admin-side { position: sticky; top: 20px; }
  .admin-side .nav { position: static; flex-direction: column; border-radius: 24px; padding: 10px; gap: 6px; transform: none; }
  .admin-side .nav-indicator { display: none; }
  .admin-side .nav-item { text-align: left; padding: 12px 15px; border-radius: 16px; font-size: 13.5px; }
  .admin-side .nav-item.active {
    color: var(--accent);
    background: rgba(255,255,255,.6);
    box-shadow: var(--sh-out-sm);
  }
  .admin-side .nav-item .ni-ico { display: inline; margin-right: 9px; }
  .bottom-nav-only { display: none; }
}

.topbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  padding: 15px 17px; border-radius: 24px;
  background: var(--lg-fill-2);
  border: 1px solid var(--lg-rim);
  box-shadow: var(--sh-out);
}
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 390px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.sec-head h3 { margin: 0; font-size: 15px; color: var(--text); }

/* 手机端记录卡片 */
@media (max-width: 719px) { .desk-only { display: none !important; } }
@media (min-width: 720px) { #rec-cards { display: none !important; } }
.r-card { align-items: flex-start; }
.r-card .item-sub { font-family: var(--font); }
.r-acts { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.r-acts button {
  padding: 7px 12px; font-size: 12px; font-weight: 650; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.9); background: var(--lg-fill-3);
  color: var(--accent); cursor: pointer; box-shadow: 2px 2px 6px rgba(163,177,198,.5);
}
.r-acts button.danger { color: #d8513c; background: rgba(255, 214, 210, .6); border-color: rgba(244,96,77,.22); }

/* --------------------------- 结果页专用 ---------------------------- */
.hero-result { text-align: center; padding: 6px 0 6px; }
.hero-ring {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 32px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--lg-rim-bright);
  box-shadow: var(--sh-out), inset 0 1px 0 rgba(255,255,255,.9);
  animation: ringIn .45s cubic-bezier(.34,1.35,.5,1);
}
@keyframes ringIn { from { transform: scale(.84); } to { transform: none; } }
.hero-title { font-size: 21px; font-weight: 800; color: var(--text); }
.hero-sub { color: var(--text-dim); font-size: 13px; margin-top: 5px; }
.big-udid {
  font-family: var(--mono); font-size: 15.5px; letter-spacing: .8px; line-height: 1.75;
  word-break: break-all; text-align: center; color: #4a4568;
  user-select: text; -webkit-user-select: text;
}
.confetti { display: none; }

/* 代码块 */
pre.code {
  background: rgba(255,255,255,.5); box-shadow: var(--sh-in);
  border: 0; border-radius: 16px; padding: 14px; overflow: auto;
  font-family: var(--mono); font-size: 11.5px; color: #4a4568; max-height: 300px; line-height: 1.55; margin: 0;
}

/* ------------------------------ 小工具 ------------------------------ */
.mt0 { margin-top: 0 !important; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0 !important; } .mb12 { margin-bottom: 12px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.dim { color: var(--text-dim); } .faint { color: var(--text-faint); }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.fw7 { font-weight: 700; }
.fs13 { font-size: 13px; } .fs12 { font-size: 12px; }
.footer-note { text-align: center; color: var(--text-faint); font-size: 11.5px; padding: 8px 10px 0; line-height: 1.7; }

/* 动画安全：任何情况下内容都必须可见 */
@media (prefers-reduced-motion: reduce) {
  .page.active, .view.active, .toast, .modal, .modal-mask, .hero-ring { animation: none !important; opacity: 1 !important; }
}


/* =========================================================
   新组件：顶部导航 / 滚动公告 / 底部选择面板
   三套主题共用（用变量回退，深浅都能用）
   ========================================================= */
.app-bar {
  position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 100;
  max-width: 480px; margin: 10px auto 6px; padding: 0 18px;
}
.app-bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px 9px 13px; border-radius: 999px;
  background: var(--lg-fill-3, var(--glass-2, rgba(255,255,255,.22)));
  backdrop-filter: var(--lg-blur-strong, blur(30px) saturate(180%));
  -webkit-backdrop-filter: var(--lg-blur-strong, blur(30px) saturate(180%));
  border: 1px solid var(--lg-rim, var(--border-2, rgba(255,255,255,.45)));
  box-shadow: var(--sh-out-sm, 0 6px 20px rgba(0,0,0,.14));
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand__logo {
  flex: none; width: 34px; height: 34px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--lg-fill-3, var(--glass-2, rgba(255,255,255,.35)));
  box-shadow: var(--sh-out-sm, none);
}
.brand__name {
  font-weight: 800; font-size: 16px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-bar__acts { display: flex; gap: 8px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 13px; padding: 0;
  border: 1px solid var(--lg-rim, var(--border-2, rgba(255,255,255,.45)));
  background: var(--lg-fill-2, var(--glass-2, rgba(255,255,255,.3)));
  color: var(--text); font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--sh-out-sm, none); transition: transform .14s ease;
}
.icon-btn:active { transform: scale(.94); }

/* 滚动公告栏 */
.notice-scroll {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  padding: 11px 14px; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.2)));
  backdrop-filter: var(--lg-blur, blur(22px) saturate(170%));
  -webkit-backdrop-filter: var(--lg-blur, blur(22px) saturate(170%));
  border: 1px solid var(--lg-rim, var(--border, rgba(255,255,255,.35)));
  box-shadow: var(--sh-out-sm, 0 4px 14px rgba(0,0,0,.1));
}
.ns-ico { flex: none; font-size: 14px; }
.ns-view { flex: 1; min-width: 0; overflow: hidden; }
.ns-track {
  display: inline-flex; gap: 64px; white-space: nowrap;
  animation: nsMarquee 24s linear infinite; will-change: transform;
}
.ns-item { color: var(--text-sub, var(--text-dim, var(--text))); font-size: 12.8px; }
@keyframes nsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice-scroll:active .ns-track { animation-play-state: paused; }

/* 底部选择面板 */
.modal.sheet { max-width: 420px; }
.sheet-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 12px;
  border-radius: 16px; cursor: pointer; transition: background .18s;
}
.sheet-row.on, .sheet-row:active { background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.16))); }
.sheet-dot {
  flex: none; width: 32px; height: 32px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--lg-fill-2, var(--glass-2, rgba(255,255,255,.25)));
  box-shadow: var(--sh-out-sm, none);
}
.sheet-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sheet-desc { font-size: 11.5px; color: var(--text-dim, var(--text-sub)); margin-top: 2px; }
.sheet-check { flex: none; color: var(--accent, var(--primary, #0a84ff)); font-weight: 800; }

.brand__logo img, .item-ico img, .app-icon img, .login-card .app-icon img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block;
}
.brand__logo { overflow: hidden; }

/* ===== 微信/QQ 内置浏览器提示：透明磨砂玻璃 ===== */
.wt-mask {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 26px; background: rgba(16, 18, 24, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wt-card {
  width: 100%; max-width: 320px; padding: 30px 22px 22px; border-radius: 30px; text-align: center;
  background: rgba(74, 80, 92, .84);
  backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(34px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.22) inset, 0 1px 0 rgba(255,255,255,.35) inset,
              0 18px 48px rgba(0, 0, 0, .34);
  animation: wtPop .3s cubic-bezier(.34, 1.4, .5, 1);
}
@keyframes wtPop { from { transform: scale(.9); } to { transform: none; } }
.wt-ico {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px rgba(0,0,0,.16);
}
.wt-t1 { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.wt-t2 { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.94); margin-top: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.wt-card { padding: 34px 22px 30px; }
.wt-app { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 10px; }
.wt-btn {
  margin-top: 20px; width: 100%; padding: 13px; border-radius: 18px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset;
}
.wt-btn:active { background: rgba(255, 255, 255, .13); }
@media (prefers-reduced-motion: reduce) { .wt-card { animation: none !important; } }

/* ===== 证书检测（上传区 + 结果）===== */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 26px 16px; border-radius: 20px; cursor: pointer; text-align: center;
  background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.22)));
  backdrop-filter: var(--lg-blur, blur(20px) saturate(170%));
  -webkit-backdrop-filter: var(--lg-blur, blur(20px) saturate(170%));
  border: 1.5px dashed var(--lg-rim, var(--border-2, rgba(255,255,255,.5)));
  transition: background .2s, transform .15s;
}
.dropzone:active { transform: scale(.99); }
.dropzone.has-file { border-style: solid; border-color: var(--accent, var(--primary, #0a84ff)); }
.dz-ico { font-size: 30px; }
.dz-t1 { font-size: 14px; font-weight: 700; color: var(--text); word-break: break-all; }
.dz-t2 { font-size: 11.5px; color: var(--text-dim, var(--text-sub)); }
.cert-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft, var(--border)); }
.cert-sec:first-child { margin-top: 12px; }
.cert-h { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); }
.dev-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dev-item {
  font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 8px;
  background: var(--lg-fill-2, var(--glass-2, rgba(255,255,255,.3))); color: var(--text-sub, var(--text));
  border: 1px solid var(--lg-rim, var(--border, rgba(255,255,255,.3)));
}
.dev-more { font-size: 11px; color: var(--text-faint, var(--text-dim)); align-self: center; }
.perm { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft, var(--border)); }
.perm:last-child { border-bottom: 0; }
.perm-k { color: var(--text-sub, var(--text)); }
.perm-v { flex: none; font-weight: 700; }
.perm.on .perm-v { color: #1f9c6e; }
.perm.off { opacity: .55; }
.perm.off .perm-v { color: var(--text-faint, var(--text-dim)); }

/* ===== P12 检测：第二界面 + 权限绿卡 ===== */
.row-head { display: flex; align-items: center; margin-bottom: 4px; }
.back-btn {
  border: 1px solid var(--lg-rim, var(--border-2, rgba(255,255,255,.5)));
  background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.28)));
  color: var(--text); font-size: 13.5px; font-weight: 650; font-family: var(--font);
  padding: 9px 15px; border-radius: 14px; cursor: pointer;
  backdrop-filter: var(--lg-blur, blur(18px)); -webkit-backdrop-filter: var(--lg-blur, blur(18px));
  box-shadow: var(--sh-out-sm, none);
}
.back-btn:active { transform: scale(.97); }
.perm-card {
  margin-top: 10px; padding: 13px 15px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(160, 240, 200, .42), rgba(255,255,255,.42));
  border: 1px solid rgba(47, 191, 135, .28);
}
.perm-card .pc-name { font-size: 14px; font-weight: 800; color: #147a52; }
.perm-card .pc-desc { font-size: 11.5px; color: rgba(0,0,0,.52); margin-top: 3px; }
.perm-card .pc-key { font-family: var(--mono); font-size: 10.5px; color: rgba(0,0,0,.38); margin-top: 4px; word-break: break-all; }
.perm-card.off { background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.28))); border-color: var(--line-soft, rgba(0,0,0,.08)); opacity: .7; }
.perm-card.off .pc-name { color: var(--text-dim, rgba(0,0,0,.5)); font-weight: 650; }
#cert-entry .btn { margin-bottom: 4px; }

.up-label { font-size: 12.5px; font-weight: 700; color: var(--text-dim, var(--text-sub)); margin: 0 0 8px; }

/* ===== 检测进度条 + 结果弹窗 ===== */
#cert-card { padding-bottom: 16px; }
.box-up { padding: 16px 18px; }
.progress { height: 8px; border-radius: 99px; overflow: hidden; margin-top: 14px;
  background: var(--lg-fill-2, var(--glass, rgba(120,120,128,.18))); box-shadow: var(--sh-in, none); }
.progress-bar { height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #5ac8fa, var(--accent, var(--primary, #0a84ff)));
  box-shadow: 0 0 12px rgba(10,132,255,.45); }
.progress-text { margin-top: 8px; font-size: 12.5px; color: var(--text-dim, var(--text-sub)); text-align: center; }
.modal.tall { max-height: 82vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cert-modal .cert-sec { margin-top: 12px; }
.cert-modal .btn-row { padding-top: 12px; margin-top: 6px; }
.cert-modal .kv { border-bottom: 1px solid rgba(0,0,0,.06); }
.cert-modal .kv-k { width: 86px; color: rgba(0,0,0,.5); }
.cert-modal .kv-v { color: rgba(0,0,0,.88); }

/* ===== 玩机工具：列表与各工具页 ===== */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 13px 22px; border-radius: 22px; cursor: pointer;
  background: var(--lg-fill-2, var(--glass, rgba(255,255,255,.3)));
  backdrop-filter: var(--lg-blur, blur(22px) saturate(180%));
  -webkit-backdrop-filter: var(--lg-blur, blur(22px) saturate(180%));
  border: 1px solid var(--lg-rim, var(--border-2, rgba(255,255,255,.5)));
  box-shadow: var(--sh-out-sm, 0 4px 14px rgba(0,0,0,.1));
  transition: transform .15s ease, box-shadow .2s ease;
}
.tool-card:active { transform: scale(.96); }
.tool-card .tc-ico {
  width: 54px; height: 54px; min-width: 54px; border-radius: 50%; color: #fff; margin-bottom: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tool-card .tc-ico svg { width: 27px; height: 27px; display: block; }
.tool-card .tc-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.tool-card .tc-desc { font-size: 12px; color: var(--text-sub, var(--text-dim)); margin-top: 7px; line-height: 1.55; max-width: 13.5em; }

.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-item { text-align: center; }
.logo-item img {
  width: 100%; max-width: 84px; aspect-ratio: 1; border-radius: 20px; display: block; margin: 0 auto;
  background: var(--lg-fill-2, rgba(255,255,255,.35));
  box-shadow: var(--sh-out-sm, 0 3px 10px rgba(0,0,0,.12));
}
.logo-item .li-name { font-size: 10.5px; color: var(--text); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-item .li-sub { font-size: 9.5px; color: var(--text-faint, var(--text-dim)); }
.logo-item .mini { margin-top: 5px; padding: 4px 8px; font-size: 10px; border-radius: 9px; }
.assist-qr { text-align: center; margin-bottom: 14px; }
.assist-qr img, .assist-qr canvas { width: 200px; height: 200px; border-radius: 18px; background: #fff; padding: 8px;
  box-shadow: var(--sh-out-sm, 0 4px 14px rgba(0,0,0,.12)); }

/* ===== 二维码展示框 ===== */
.qr-box { text-align: center; margin-bottom: 14px; }
.qr-box canvas { max-width: 260px; width: 100%; height: auto; border-radius: 18px;
  box-shadow: var(--sh-out-sm, 0 4px 16px rgba(0,0,0,.14)); background: #fff; padding: 8px; }
input[type=color] { -webkit-appearance: none; appearance: none; border: none; }

/* ===== 证书检测结果弹窗：液态玻璃拟态（与站点整体风格一致） ===== */
.cert-modal {
  background: linear-gradient(158deg, rgba(255,255,255,.92) 0%, rgba(240,247,255,.86) 55%, rgba(246,242,255,.90) 100%);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 28px 70px -20px rgba(28,48,90,.45), inset 0 1px 0 rgba(255,255,255,.95);
}
.cert-modal .cert-sec {
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px; padding: 14px 14px 6px;
  box-shadow: 0 8px 22px -16px rgba(31,52,90,.45), inset 0 1px 0 rgba(255,255,255,.8);
}
.cert-modal .cert-sec:first-of-type { margin-top: 14px; }
.cert-modal .cert-h { font-size: 14.5px; letter-spacing: .2px; }
.cert-modal .kv { border-bottom: 1px solid rgba(120,142,180,.16); }
.cert-modal .kv:last-child { border-bottom: 0; }
.cert-modal .kv-k { color: var(--text-sub); }
.cert-modal .kv-v { color: var(--text); }
.cert-modal .mini {
  background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.85);
  color: var(--text-sub); border-radius: 999px; padding: 6px 14px;
}
.cert-modal .btn-row {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(120,142,180,.18);
  background: none;
}
.cert-modal .btn-outline {
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ===== 证书检测页：图标 / 字号 / 上传成功态 ===== */
.dz-ico {
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%; margin: 0 auto 12px; flex: 0 0 auto;
}
.dz-ico svg { width: 27px; height: 27px; display: block; }
.cert-head { text-align: center; padding: 6px 0 18px; }
.cert-head .dz-ico { margin-bottom: 14px; }
.cert-head-t { font-size: 23px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.cert-head-d { font-size: 14.5px; color: var(--text-sub, var(--text-dim)); margin-top: 8px; line-height: 1.6; padding: 0 10px; }
.cert-card-t { font-size: 17.5px; }
.cert-card-d { font-size: 14.5px; line-height: 1.65; }
#page-cert .up-label { font-size: 16px; font-weight: 800; margin-bottom: 12px; letter-spacing: .2px; }
#page-cert .dropzone .dz-t1 { font-size: 16px; font-weight: 700; }
#page-cert .dropzone .dz-t2 { font-size: 13px; margin-top: 6px; min-height: 16px; }
#page-cert .dropzone .dz-t2.ok { color: #18a957; font-weight: 700; }
#page-cert .dropzone.has-file { border-color: rgba(24,169,87,.55); background: rgba(24,169,87,.07); }
#page-cert .pw-ico { margin: 0 0 10px; }
#page-cert .card-sub, #page-cert #cert-pass { font-size: 15px; }

/* ===== 检测结果弹窗：浮雕效果 · 无遮罩 · 固定显示 ===== */
.modal-mask.mask-clear { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.cert-modal, .cert-modal * { animation: none !important; }
body.cert-open { overflow: hidden; }
.cert-modal {
  position: relative;
  border-radius: 28px; padding: 24px;
  background: linear-gradient(150deg, #ffffff 0%, #e9eff8 100%);
  border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 15px 15px 32px rgba(146,166,196,.55), -12px -12px 28px rgba(255,255,255,.96), inset 0 1px 0 rgba(255,255,255,.9);
}
.cert-modal .cert-sec {
  background: linear-gradient(150deg, #e9eff8 0%, #ffffff 100%);
  border: 0; border-radius: 18px; padding: 14px 14px 6px;
  box-shadow: inset 3px 3px 9px rgba(146,166,196,.32), inset -3px -3px 9px rgba(255,255,255,.98);
}
.cert-modal .cert-sec:first-of-type { margin-top: 14px; }
.cert-modal .kv { border-bottom: 1px solid rgba(146,166,196,.22); }
.cert-modal .kv:last-child { border-bottom: 0; }
.cert-modal .mini {
  background: linear-gradient(150deg,#f6faff,#e4ecf7); border: 0;
  color: var(--text-sub); border-radius: 999px; padding: 7px 16px;
  box-shadow: 3px 3px 8px rgba(146,166,196,.36), -3px -3px 8px rgba(255,255,255,.95);
}
.cert-modal .btn-row { margin-top: 16px; padding-top: 14px; border-top: 0; background: none; }
.cert-modal .btn-outline {
  background: linear-gradient(150deg,#f7faff,#e5edf8); border: 0;
  box-shadow: 4px 4px 12px rgba(146,166,196,.4), -4px -4px 12px rgba(255,255,255,.95);
}
.cert-modal .btn-primary { box-shadow: 5px 6px 16px rgba(10,132,255,.38), -3px -3px 10px rgba(255,255,255,.6); border: 0; }

/* ===== 检测结果：去掉外层大面板，各分区改为「凸出」拟态 ===== */
.cert-modal {
  background: none !important; box-shadow: none !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 4px 2px 10px !important; border-radius: 0 !important;
  animation: none !important;
}
.cert-modal > .flex-between:first-child {
  padding: 0 6px 12px; margin-bottom: 2px;
}
.cert-modal .cert-sec {
  background: linear-gradient(148deg, #ffffff 0%, #e7eef9 100%);
  border: 0; border-radius: 20px; padding: 16px 15px 8px; margin: 0 0 15px;
  box-shadow: 10px 10px 24px rgba(146,166,196,.48), -8px -8px 20px rgba(255,255,255,.98);
}
.cert-modal .cert-sec .cert-sec { margin-top: 12px; }
.cert-modal .cert-h { font-size: 15px; }
.cert-modal .kv { border-bottom: 1px solid rgba(146,166,196,.20); }
.cert-modal .kv:last-child { border-bottom: 0; }
.cert-modal .mini {
  background: linear-gradient(148deg,#ffffff,#e6eef9); border: 0; color: var(--text-sub);
  border-radius: 999px; padding: 8px 18px;
  box-shadow: 4px 4px 10px rgba(146,166,196,.45), -3px -3px 9px rgba(255,255,255,.98);
}
.cert-modal .btn-row { margin: 0 0 4px; padding: 0; border: 0; background: none; }
.cert-modal .btn-outline {
  background: linear-gradient(148deg,#fdfeff,#e5edf9); border: 0;
  box-shadow: 6px 6px 14px rgba(146,166,196,.45), -5px -5px 13px rgba(255,255,255,.98);
}
.cert-modal .btn-primary {
  border: 0; box-shadow: 6px 7px 18px rgba(10,132,255,.42), -4px -4px 12px rgba(255,255,255,.7);
}

/* ===== 弹窗固定显示：禁止左右拖动 / 橡皮筋回弹 ===== */
html, body { overflow-x: hidden; }
.modal-mask { touch-action: pan-y; overscroll-behavior: none; }
.modal.tall, .cert-modal {
  overflow-x: hidden !important;      /* 关键：overflow-y:auto 会让 x 也变 auto ⇒ 能左右拖 */
  overscroll-behavior: contain;       /* 滚到头不传递给背景 */
  touch-action: pan-y;
}
.modal.tall { -webkit-overflow-scrolling: touch; }
body.cert-open {
  position: fixed; left: 0; right: 0; width: 100%; overflow: hidden;
}
.cert-modal .kv, .cert-modal .kv-v { min-width: 0; }
.cert-modal .kv-v { overflow-wrap: anywhere; word-break: break-word; }
.cert-modal .kv { display: flex; align-items: flex-start; }
.cert-modal .kv-v { flex: 1; }

/* ===== App 图标网格：列宽对齐（原来被内容撑爆导致不对称）===== */
.logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (min-width: 560px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.logo-item { min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.logo-item img { width: 100% !important; max-width: 84px !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
.logo-item .li-name { max-width: 100%; }
.logo-item .mini { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 工具子页页头：圆形彩色图标 ===== */
.tool-head .tc-ico {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
}
.tool-head .tc-ico svg { width: 30px; height: 30px; display: block; }
