/* ============================================================
   Stating · 新增设计层 lg.css（在 style.css 之后加载）
   Part 1：新版登录页 #auth（lg- 隔离命名空间）+ 老认证屏隐藏
   ============================================================ */

/* ---------- 老认证相关容器永久隐藏（功能由 #auth 接管） ---------- */
#authScreen,
#adminKeyScreen,
#deviceCodeModal,
#passkeyModal,
#smsModal,
#wxModal,
#bioOnboardModal,
#recoverModal { display: none !important; }
/* #qrConfirmScreen / #secLogModal 保留（扫码确认 PC 登录、安全日志为登录后功能） */

/* ---------- #auth 元素一律 border-box（老 reset 未保证） ---------- */
#auth, #auth *, #lgSheetRoot, #lgSheetRoot * { box-sizing: border-box; }

/* ---------- #auth 设计 token（仅登录层，不污染老界面） ---------- */
#auth {
  --lg-ink: #15181f;
  --lg-ink-2: #3a404c;
  --lg-ink-3: #77808e;
  --lg-ink-4: #a6adba;
  --lg-primary: #0a84ff;
  --lg-primary-grad: linear-gradient(160deg, #5aa6ff 0%, #0a84ff 55%, #0a64e8 100%);
  --lg-face: rgba(255, 255, 255, .55);
  --lg-face-strong: rgba(255, 255, 255, .72);
  --lg-edge: rgba(255, 255, 255, .8);
  --lg-blur: blur(22px) saturate(170%);
  --lg-ease: cubic-bezier(.25, .85, .25, 1);
  color: var(--lg-ink);
}
body.dark #auth {
  --lg-ink: #f2f5fa;
  --lg-ink-2: #dde3ec;
  --lg-ink-3: #959eac;
  --lg-ink-4: #666e7c;
  --lg-primary: #2f92ff;
  --lg-primary-grad: linear-gradient(160deg, #3a93ff 0%, #147bf5 55%, #0a5fd0 100%);
  --lg-face: rgba(24, 27, 34, .56);
  --lg-face-strong: rgba(20, 23, 30, .72);
  --lg-edge: rgba(255, 255, 255, .14);
  --lg-blur: blur(22px) saturate(155%);
}

.lg-auth-wrap {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.lg-auth-card {
  position: relative;
  width: 100%; max-width: 420px;
  padding: 26px 24px 24px;
  border-radius: 30px;
  background: var(--lg-face-strong);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid transparent;
  box-shadow:
    0 18px 50px rgba(14,20,44,.18),
    0 4px 16px rgba(70,100,190,.16);
  isolation: isolate;
}
body.dark .lg-auth-card {
  box-shadow:
    0 20px 54px rgba(0,0,0,.55),
    0 4px 18px rgba(0,0,0,.4);
}

/* 登录卡接入 plus 版高光层（与 .glass 一致：::before 静态高光+环境光斑+棱镜色散，::after 动态镜面） */
.lg-auth-card::before,
.lg-auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.lg-auth-card::before {
  z-index: 2;
  background: var(--lg2-spec), var(--lg2-ambient);
}
.lg-auth-card::after {
  z-index: 3;
  background: var(--lg2-spec-live);
  opacity: .7;
  transition: opacity .32s var(--lg2-fuse);
}
.lg-auth-card:hover::after { opacity: 1; }

/* 品牌 */
.lg-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.lg-brand-mark {
  width: 64px; height: 64px; border-radius: 18px;
  display: block; object-fit: cover;
  box-shadow: 0 10px 26px rgba(10,110,235,.38);
}
.lg-brand-name {
  font-size: 28px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(120deg, #2f8bff, #5e7cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 分段控件 */
.lg-segment {
  position: relative; display: flex; padding: 4px; margin-bottom: 18px;
  border-radius: 999px; background: rgba(120,130,155,.14);
}
.lg-seg-item {
  position: relative; z-index: 2; flex: 1; height: 38px;
  border-radius: 999px; border: 0; background: none;
  font-size: 15px; font-weight: 600; color: var(--lg-ink-2);
  transition: color .2s;
}
.lg-seg-item.is-active { color: var(--lg-ink); }
.lg-seg-thumb {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .24s var(--lg-ease);
}
body.dark .lg-seg-thumb { background: #2a2e38; }
#lgTabRegister.is-active ~ .lg-seg-thumb { transform: translateX(100%); }

/* 表单 */
.lg-auth-form { display: flex; flex-direction: column; gap: 12px; }
.lg-field {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 -1px 2px rgba(20,30,60,.05);
  transition: box-shadow .16s;
}
body.dark .lg-field {
  background: linear-gradient(180deg, rgba(40,44,54,.6), rgba(32,36,44,.45));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.lg-field:focus-within { box-shadow: 0 0 0 4px rgba(10,132,255,.16), inset 0 0 0 1px var(--lg-primary); }
.lg-field-ic { width: 20px; height: 20px; display: inline-flex; color: var(--lg-ink-3); flex: none; }
.lg-field-ic svg { width: 20px; height: 20px; }
.lg-field input { flex: 1; min-width: 0; font-size: 16px; color: var(--lg-ink); background: none; border: 0; outline: 0; }
.lg-field input::placeholder { color: var(--lg-ink-4); }

/* 按钮 */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: .2px;
  transition: transform .12s cubic-bezier(.3,.8,.4,1), filter .12s, background .12s;
  user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.lg-btn:active { transform: scale(.95); }
.lg-btn-primary { background: var(--lg-primary-grad); color: #fff; box-shadow: 0 6px 18px rgba(10,110,235,.32), inset 0 1px 0 rgba(255,255,255,.5); }
.lg-btn-primary:active { filter: brightness(.96); }
.lg-btn-ghost {
  background: var(--lg-face); color: var(--lg-ink);
  box-shadow: inset 0 0 0 1px rgba(18,24,40,.08);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
}
.lg-btn-block { width: 100%; }
.lg-btn[disabled] { opacity: .6; pointer-events: none; }
.lg-btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.lg-btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: lg-spin .7s linear infinite;
}
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-btn-text {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: none; cursor: pointer;
  color: var(--lg-primary); font-weight: 600; font-size: 13.5px;
  padding: 6px 8px; border-radius: 10px; white-space: nowrap;
  transition: transform .12s, background .12s;
}
.lg-btn-text:active { transform: scale(.96); }
.lg-btn-text svg { width: 15px; height: 15px; }
.lg-auth-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.lg-auth-alt .lg-btn-text {
  min-height: 52px; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), inset 0 -1px 2px rgba(20,30,60,.05);
  color: var(--lg-ink); font-size: 16px; font-weight: 600;
  width: 100%; justify-content: flex-start;
}
.lg-auth-alt .lg-btn-text:active { transform: scale(.985); }
.lg-auth-alt .lg-btn-text svg { width: 20px; height: 20px; color: var(--lg-primary); }
.lg-form-hint { font-size: 12px; color: var(--lg-ink-3); text-align: center; line-height: 1.4; }

/* 头像选择 */
.lg-avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 4px; }
.lg-avatar-opt {
  width: 42px; height: 42px; border-radius: 50%; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px rgba(18,24,40,.08);
  transition: transform .12s, box-shadow .12s;
}
.lg-avatar-opt:active { transform: scale(.9); }
.lg-avatar-opt.is-active { box-shadow: 0 0 0 2.5px var(--lg-primary); }

/* ---------- Sheet / QR / Toast（#lgSheetRoot） ---------- */
#lgSheetRoot { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.lg-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: auto; }
.lg-scrim { position: absolute; inset: 0; background: rgba(10,14,24,.3); animation: lg-fade .2s ease both; }
.lg-sheet {
  position: relative; width: 100%; max-width: 420px;
  max-height: 86vh; max-height: 86dvh; overflow-y: auto;
  padding: 22px; border-radius: 30px;
  background: var(--lg-face-strong);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: 0 20px 54px rgba(14,20,44,.25);
  animation: lg-sheet-in .28s var(--lg-ease) both;
}
.lg-overlay.closing .lg-scrim { animation: lg-fade .18s ease reverse both; }
.lg-overlay.closing .lg-sheet { animation: lg-sheet-out .18s ease both; }
@keyframes lg-fade { from { opacity: 0; } }
@keyframes lg-sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes lg-sheet-out { to { opacity: 0; transform: translateY(14px) scale(.98); } }
.lg-grabber { width: 38px; height: 5px; border-radius: 999px; background: var(--lg-ink-4); opacity: .5; margin: -6px auto 14px; }
.lg-sheet-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.lg-sheet-body { display: flex; flex-direction: column; gap: 12px; }
.lg-sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.lg-sheet-actions .lg-btn { flex: 1; }
.lg-qr-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.lg-qr-box { background: #fff; padding: 14px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; }
.lg-qr-box svg, .lg-qr-box canvas { display: block; width: 200px; height: 200px; }
.lg-qr-status { font-size: 14px; color: var(--lg-ink-2); }
.lg-hint { font-size: 14px; color: var(--lg-ink-3); padding: 40px 10px; }

.lg-toast {
  align-self: center;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; margin-top: 8px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--lg-ink);
  background: var(--lg-face-strong);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: 0 10px 30px rgba(14,20,44,.18);
  animation: lg-toast-in .26s var(--lg-ease) both;
  transition: opacity .2s, transform .2s;
}
.lg-toast.success { color: #22a850; }
.lg-toast.error { color: #ff3b30; }
.lg-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes lg-toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 639px) {
  .lg-overlay { align-items: flex-end; padding: 0; }
  .lg-sheet { max-width: 100%; border-radius: 30px 30px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 460px) {
  .lg-auth-wrap { padding: 14px; }
  .lg-auth-card { padding: 22px 18px 20px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth *, #auth *::before, #auth *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Part 2：每次进入生物门禁 #bioGate
   ============================================================ */
.bio-gate {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(238, 242, 249, .72);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  transition: opacity .4s ease;
}
body.dark .bio-gate { background: rgba(10, 12, 18, .72); }
.bio-gate.bio-hide { opacity: 0; pointer-events: none; }
.bio-card {
  width: 100%; max-width: 360px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px 26px 28px;
  border-radius: 30px;
  background: var(--lg-face-strong, rgba(255,255,255,.72));
  box-shadow: 0 24px 60px rgba(14,20,44,.22);
  animation: lg-sheet-in .35s cubic-bezier(.25,.85,.25,1) both;
}
body.dark .bio-card {
  background: rgba(20,23,30,.72);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  color: #f2f5fa;
}
.bio-glyph {
  width: 76px; height: 76px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 6px;
  background: var(--lg-primary-grad, linear-gradient(160deg,#5aa6ff,#0a84ff));
  box-shadow: 0 12px 30px rgba(10,110,235,.4), inset 0 1px 0 rgba(255,255,255,.55);
}
.bio-glyph svg { width: 42px; height: 42px; }
#bioTitle { font-size: 21px; font-weight: 800; margin: 0; }
#bioSub { font-size: 13.5px; color: #77808e; margin: 0 0 8px; text-align: center; }
body.dark #bioSub { color: #959eac; }
.bio-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(10,132,255,.2); border-top-color: #0a84ff;
  animation: lg-spin .8s linear infinite;
  margin: 4px 0 10px;
}
#bioRetry, #bioSwitch { margin-top: 2px; }
.bio-foot { font-size: 12px; color: #ff3b30; margin: 6px 0 0; min-height: 14px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .bio-gate, .bio-card, .bio-spinner { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Part 3：七条提示词物理层（覆写老 token + 统一玻璃模型）
   REFRACT → SHADOW → TINT → LIGHT
   ============================================================ */
:root {
  --primary: #0a84ff;
  --primary-2: #0a64e8;
  --primary-grad: linear-gradient(160deg, #5aa6ff 0%, #0a84ff 55%, #0a64e8 100%);
  --primary-soft: rgba(10, 132, 255, .14);
  --success: #30d158;
  --warning: #ff9f0a;
  --danger: #ff3b30;
  /* Face 三分区 */
  --glass-bg: rgba(255, 255, 255, .50);
  --glass-bg-strong: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .82);
  --glass-border-soft: rgba(255, 255, 255, .42);
  /* SHADOW：接触 + bokeh + .5px 高光线 */
  --lg-contact: 0 1px 2px rgba(14, 22, 48, .06);
  --lg-bokeh: 0 10px 28px rgba(14, 22, 48, .10), 0 24px 60px rgba(60, 90, 170, .08);
  --lg-edge-line: inset 0 0 0 1px rgba(255, 255, 255, .62);
  --lg-inner-bevel: inset 0 1px 1px rgba(255, 255, 255, .75), inset 0 -1px 2px rgba(20, 35, 70, .05);
  --glass-shadow: var(--lg-contact), var(--lg-bokeh), var(--lg-edge-line), var(--lg-inner-bevel);
  --glass-shadow-deep: 0 2px 6px rgba(14, 22, 48, .08), 0 18px 50px rgba(14, 22, 48, .18), 0 40px 90px rgba(60, 90, 170, .12), var(--lg-edge-line), var(--lg-inner-bevel);
  /* 折射（CSS 降级档；plus 透镜由 lens-manager 注入真折射） */
  --lg-refract: blur(22px) saturate(170%);
  --lg-refract-strong: blur(26px) saturate(180%);
  --lg-ease-spring: cubic-bezier(.22, 1, .36, 1);
  --lg-ease-press: cubic-bezier(.3, .8, .4, 1);
}
body.dark {
  --glass-bg: rgba(22, 24, 32, .50);
  --glass-bg-strong: rgba(20, 22, 30, .70);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-border-soft: rgba(255, 255, 255, .08);
  --lg-contact: 0 1px 2px rgba(0, 0, 0, .4);
  --lg-bokeh: 0 10px 28px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .35);
  --lg-edge-line: inset 0 0 0 1px rgba(255, 255, 255, .12);
  --lg-inner-bevel: inset 0 1px 1px rgba(255, 255, 255, .10);
  --lg-refract: blur(22px) saturate(150%);
  --lg-refract-strong: blur(26px) saturate(160%);
}

/* ---------- 统一透镜基底（提示词 1/3/4/7） ---------- */
.glass,
.glass-pill,
.glass-field,
.sec-card,
.admin-panel,
.call-panel,
.confirm-card {
  -webkit-backdrop-filter: var(--lg-refract);
  backdrop-filter: var(--lg-refract);
  border-color: transparent;
}
.glass-strong,
.topbar,
.composer,
.sec-card,
.confirm-card {
  -webkit-backdrop-filter: var(--lg-refract-strong);
  backdrop-filter: var(--lg-refract-strong);
}
/* 注意：不显式覆写 .glass/.glass-pill 的 background——
   .home-hero 等内容卡自带品牌渐变，仅靠 :root 变量更新玻璃面取值 */

/* 提示词 2：squircle 连续曲率（Edge/Chrome 139+ 渐进增强，老浏览器自动退回圆角） */
.glass, .glass-strong, .sec-card, .admin-panel, .confirm-card,
.home-hero, .group-card, .setting-card, .feed-card {
  corner-shape: squircle;
}

/* ---------- 顶部导航 / 输入条：胶囊透镜 + Inner Rim 斜面光（4/5） ---------- */
.topbar,
.composer {
  background: var(--glass-bg-strong) !important;
  box-shadow: var(--glass-shadow-deep) !important;
  border: 1px solid transparent;
  isolation: isolate;
}
.topbar::after,
.composer::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 16% -8%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 46%),
    radial-gradient(120% 70% at 96% 108%, rgba(94, 160, 255, .22), rgba(94, 160, 255, 0) 52%);
  opacity: .9;
}
/* 边缘色散（5）：极克制，仅左右 .5-1px 彩边 */
.topbar::before,
.composer::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: .5px 1px;
  background: linear-gradient(90deg, rgba(255, 90, 110, .16), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(80, 150, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
body.dark .topbar::before,
body.dark .composer::before {
  background: linear-gradient(90deg, rgba(255, 90, 110, .22), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(90, 170, 255, .3));
}

/* 导航激活项 */
.nav-item { transition: transform .18s var(--lg-ease-press), color .2s, background .2s; }
.nav-item:active { transform: scale(.92); }

/* ---------- 卡片/弹层面板 ---------- */
.sec-card,
.admin-panel,
.confirm-card {
  background: var(--glass-bg-strong) !important;
  box-shadow: var(--glass-shadow-deep) !important;
  border: 1px solid transparent;
}
.glass-field,
.search-input,
input.glass, textarea.glass {
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}

/* ---------- 气泡：玻璃气泡边缘高光（仅玻璃款） ---------- */
.bubble-glass {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 6px 18px rgba(14, 22, 48, .12);
}

/* ---------- 可点控件交互（Apple：interactive 只给控件） ---------- */
.btn-primary, .btn-ghost, .btn-logout, .btn-sessions, .btn-delete-account,
.composer-btn, .call-btn, .icon-btn, .quick-btn, .group-menu-btn,
button.glass-pill, .qr-btn {
  transition: transform .16s var(--lg-ease-press), filter .16s, box-shadow .2s, background .2s, opacity .2s;
}
.btn-primary:active, .btn-ghost:active, .btn-logout:active, .btn-sessions:active,
.composer-btn:active, .call-btn:active, .icon-btn:active, .quick-btn:active,
.group-menu-btn:active, button.glass-pill:active, .qr-btn:active { transform: scale(.94); }
.btn-primary { box-shadow: 0 6px 18px rgba(10, 110, 235, .32), inset 0 1px 0 rgba(255, 255, 255, .45); }

/* 开关/分段在交互时强调（老类名复用） */
.dm-slider, .auth-tab, .auth-tabs { transition: transform .28s var(--lg-ease-spring), background .28s var(--lg-ease-spring), box-shadow .28s var(--lg-ease-spring), color .28s var(--lg-ease-spring); }

/* ---------- 性能：移动端降低降级档模糊 ---------- */
@media (max-width: 700px) {
  .glass, .glass-pill, .glass-field,
  .sec-card, .admin-panel, .call-panel, .confirm-card,
  .glass-strong, .topbar, .composer {
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .glass-pill, .glass-strong, .glass-field,
  .topbar, .composer, .sec-card, .admin-panel, .confirm-card { background: var(--glass-bg-strong); }
}

/* ============================================================
   Part 4：动效重构 —— 删环境循环，留功能反馈，统一弹性
   ============================================================ */
/* 去掉装饰性/循环动画（壁纸静态、光斑漂浮、扫光、闪烁） */
.blob, .b2, .b3, .b4,
.home-hero::after,
.call-overlay::after,
.call-bg-gradient,
.bt-title-icon,
.bt-chip::before,
.dc-code,
.auth-card,
.logo-badge, .logo-badge::after,
.btn-primary:hover::after,
.capsule-orb-inner, .yr-orb,
.te-particle,
.lg-float { animation: none !important; }
/* 弹幕滚动属于环境装饰，关闭循环（保留节点，不影响通话功能） */
.danmaku-item { animation: none !important; opacity: 0 !important; }
/* whisper 揭示统一为一次性淡入，不做特殊循环 */
.whisper-revealed { animation: lg-fade-reveal .35s var(--lg-ease-spring) both; }
@keyframes lg-fade-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 保留的功能性动画（不动）：spin/pulse/recPulse/callRingPulse/typingBounce/qrScanX/
   shake/msgIn/panelIn/menuIn/toastIn/secPop —— 均为状态反馈或一次性转场 */

/* 转场统一弹性曲线（玻璃物理形变，不跳变） */
.panel, .sec-card, .admin-panel, .confirm-card,
.msg-ctx-menu, .search-panel, .multi-menu, .group-menu,
.call-panel, .call-banner { transition-timing-function: var(--lg-ease-spring); }

/* 一次性入场（替换老页面可能存在的渐上浮循环观感） */
.view { animation: none; }

/* 全局 reduced-motion 兜底 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Fix: [hidden] 必须强制隐藏 ----------
   修复 .multi-menu / .emoji-panel / .composer-mode-bar / .ephemeral-picker /
   .capsule-picker / .loc-menu / .group-menu 等 [hidden] 元素被自身 display
   覆盖导致"没点击就浮出"的 bug */
[hidden] { display: none !important; }

/* ---------- 我的页面：把"登录设备管理/我的收藏/热力图/年度报告/生物房间/气泡皮肤/安全中心/签名工具/安全日志"
   等文字按钮改成与"退出登录"同尺寸的大药丸按钮 ---------- */
#profileView .btn-sessions,
#profileView .btn-wipe {
  margin-top: 10px;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 4px 14px rgba(14,20,44,.06);
  transition: transform .25s var(--lg-ease), background .25s var(--lg-ease), box-shadow .25s var(--lg-ease), color .25s var(--lg-ease);
}
#profileView .btn-sessions:hover,
#profileView .btn-wipe:hover { transform: translateY(-1px); }
#profileView .btn-sessions:active,
#profileView .btn-wipe:active { transform: scale(.97); transition-duration:.12s; }
#profileView .btn-sessions [data-icon],
#profileView .btn-wipe [data-icon] { font-size: 17px; }

/* ---------- 修复 .glass ::before/::after 小数 padding 导致圆角变形 ----------
   原值 padding:1.5px / 3px 在非 HiDPI 屏幕触发子像素抗锯齿，圆角边呈"挤压扭曲"。
   改为整数 2px，让圆角真正完好。 */
.glass::before { padding: 2px !important; }
.glass::after  { padding: 2px !important; }

/* ---------- 我的页面无圆角元素补圆角，收敛到 18px（就近取整统一，勿动 30px 登录卡 / 999px 胶囊） ---------- */
#profileView .profile-row,
#profileView .focus-time,
#profileView .focus-mode-row,
#profileView .dark-mode-row,
#profileView .focus-time-inputs {
  border-radius: 18px;
}
#profileView .pr-edit-btn { border-radius: 999px; }
#profileView .profile-row {
  padding: 12px 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(31,45,80,.04);
  margin: 6px 0;
  transition: background .2s var(--spring);
}
#profileView .profile-row:active { background: rgba(255,255,255,.72); }
body.dark #profileView .profile-row {
  background: rgba(40,44,54,.55);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ============================================================
   Part 5：果味 Liquid Glass plus 版统一玻璃（抖音视频 8 要素）
   分层 · 塑造形状 · 折射 · 划分区域 · 高光+高光色散 · 环境色 · 阴影 · 融合动画
   覆盖式实现：变量 token 明暗双模式 + 复用统一表面段，不改 style.css
   说明：严禁伪元素 padding 描边（曾致圆角变形），内缘一律用 inset box-shadow
   ============================================================ */

/* ---------- 1. 设计 token（明） ---------- */
:root {
  /* 要素1 分层：果味虹彩渐变面（暖/蓝紫/粉倾向，避免纯白无折射内容） */
  --lg2-face: linear-gradient(163deg, rgba(255,255,255,.68) 0%, rgba(240,242,255,.60) 40%, rgba(255,239,249,.54) 78%, rgba(238,247,255,.55) 100%);
  --lg2-blur: blur(20px) saturate(170%);
  /* 要素3 折射：1px 内缘白线（微调老 token） */
  --glass-border: rgba(255,255,255,.86);
  /* 要素5 高光：顶部高光带强度 0.72、下延至 24%；动态镜面高光 */
  --lg2-spec: linear-gradient(115deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.14) 24%, transparent 46%);
  --lg2-spec-live: radial-gradient(circle at var(--lg-shx, 50%) var(--lg-shy, 15%), rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 58%);
  /* 要素5 高光：仅顶部 1px 白高光内缘线（删彩色棱镜色散，清爽化） */
  --lg2-prism: inset 0 1px 0 rgba(255,255,255,.85);
  /* 要素6 环境色：极淡单一冷调（大幅削弱彩光斑） */
  --lg2-ambient: radial-gradient(120% 60% at 22% -8%, rgba(130,150,220,.08) 0%, rgba(130,150,220,0) 50%);
  /* 折射内光：内缘白线 + 极淡底缘 */
  --lg2-bevel:
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(20,35,70,.05);
  /* 要素7 阴影：单层柔和（去键光彩色大阴影） */
  --lg2-shot: 0 2px 8px rgba(15,20,45,.10);
  --lg2-shot-deep: 0 2px 10px rgba(15,20,45,.12);
  /* 要素8 融合动画曲线 */
  --lg2-fuse: cubic-bezier(.34,1.56,.64,1);
  /* 玻璃面取值带蓝紫倾向（提饱和、避免死白） */
  --glass-bg: rgba(248,248,255,.56);
  --glass-bg-strong: rgba(248,246,255,.66);
}
body.dark {
  /* 暗色面加微蓝紫倾向（避免死黑、保留果味折射） */
  --lg2-face: linear-gradient(163deg, rgba(32,36,52,.72) 0%, rgba(26,30,46,.64) 56%, rgba(24,32,52,.60) 100%);
  --lg2-blur: blur(20px) saturate(160%);
  --glass-border: rgba(255,255,255,.15);
  --lg2-spec: linear-gradient(115deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.09) 18%, transparent 42%);
  --lg2-spec-live: radial-gradient(circle at var(--lg-shx, 50%) var(--lg-shy, 15%), rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 58%);
  --lg2-prism: inset 0 1px 0 rgba(255,255,255,.25);
  --lg2-ambient: radial-gradient(120% 60% at 22% -8%, rgba(100,130,210,.10) 0%, rgba(100,130,210,0) 50%);
  --lg2-bevel:
    inset 0 1px 1px rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.4);
  --lg2-shot: 0 2px 10px rgba(0,0,0,.45);
  --lg2-shot-deep: 0 2px 12px rgba(0,0,0,.5);
  --glass-bg: rgba(24,27,40,.56);
  --glass-bg-strong: rgba(22,26,40,.70);
}

/* ---------- 1b. 浅色根背景果味环境光斑：由 z:0 固定伪层承载（只画一次、滚动零重绘，
   玻璃在下层折射着色；暗色不渲染该层） ---------- */
body:not(.dark)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72vw 72vh at 14% 6%, rgba(146,92,255,.40) 0%, rgba(146,92,255,0) 58%),
    radial-gradient(68vw 68vh at 88% 14%, rgba(92,148,255,.36) 0%, rgba(92,148,255,0) 58%),
    radial-gradient(70vw 70vh at 84% 86%, rgba(255,108,180,.32) 0%, rgba(255,108,180,0) 58%),
    radial-gradient(64vw 64vh at 8% 84%, rgba(110,215,255,.34) 0%, rgba(110,215,255,0) 58%),
    linear-gradient(160deg, rgba(246,244,255,.88) 0%, rgba(240,246,255,.88) 100%);
}

/* ---------- 2. 统一定毛玻璃强度（升级全部玻璃面） ---------- */
.glass, .glass-pill, .glass-field, .glass-strong,
.sec-card, .topbar, .composer,
.admin-panel, .call-panel, .confirm-card {
  -webkit-backdrop-filter: var(--lg2-blur);
  backdrop-filter: var(--lg2-blur);
}

/* ---------- 3. 阴影 + 内缘折射光（基层卡片 / 弹层用深档） ---------- */
.glass, .sec-card, .admin-panel, .call-panel, .confirm-card, .glass-strong {
  box-shadow: var(--lg2-shot-deep);
}
/* 胶囊 / 小控件用轻档，避免过度晕影；基层给果味渐变面（topbar/composer 由 !important 保留强面） */
.glass-pill {
  background: var(--lg2-face);
  box-shadow: 0 1px 2px rgba(20,36,80,.10), 0 6px 16px rgba(90,70,150,.12), var(--lg2-bevel);
}

/* ---------- 4. 高光层：静态高光带 + 环境色 + 高光色散（复用伪元素，无 padding 描边） ---------- */
.glass::before, .glass::after,
.glass-pill::before, .glass-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0 !important;
  -webkit-mask: none !important;
  mask: none !important;
  pointer-events: none;
}
.glass::before, .glass-pill::before {
  z-index: 2;
  background: var(--lg2-spec), var(--lg2-ambient);
  opacity: 1;
}
/* 交互胶囊保留单条内缘高光（按钮类允许） */
.glass-pill::before { box-shadow: var(--lg2-prism); }
/* 动态镜面高光（--lg-shx / --lg-shy 由 script.js 更新；普通 alpha 渐变，无混合层） */
.glass::after, .glass-pill::after {
  z-index: 3;
  background: var(--lg2-spec-live);
  opacity: .7;
  transition: opacity .32s var(--lg2-fuse);
}
.glass:hover::after, .glass-pill:hover::after { opacity: 1; }

/* ---------- 5. 划分区域：聊天气泡更亮更圆润（无 backdrop-filter，水晶感通透+高光） ---------- */
.bubble-glass {
  background: rgba(255,255,255,.5);
  border-radius: 18px;
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 4px 12px rgba(20,40,100,.10);
}
body.dark .bubble-glass {
  background: rgba(30,34,44,.55);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

/* ---------- 6. 融合动画：交互控件 spring 微放大 + 高光增强 ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature-card, .nav-item, .quick-btn, .icon-btn, .composer-btn, .qr-btn,
  .btn-primary, .btn-ghost, .auth-more-btn, .profile-scan-btn,
  .scanner-close, .scanner-album, .lg-btn {
    transition: transform .32s var(--lg2-fuse), filter .32s var(--lg2-fuse),
      box-shadow .32s var(--lg2-fuse), background .32s var(--lg2-fuse);
  }
  .feature-card:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.05); }
  .nav-item:hover { transform: scale(1.05); }
  .icon-btn:hover, .quick-btn:hover, .composer-btn:hover, .qr-btn:hover,
  .btn-primary:hover, .btn-ghost:hover, .lg-btn:hover { transform: scale(1.03); filter: brightness(1.06); }
}

/* ---------- 7. Sheet / 卡片入场：lg-fuse（透明度 + 缩放 + 模糊 一次性 spring） ---------- */
.lg-sheet, .sec-card, .sign-card {
  animation: lg-fuse .45s var(--lg2-fuse) both;
}
@keyframes lg-fuse {
  from { opacity: 0; transform: scale(.96) translateY(10px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- 8. 性能与回退 ---------- */
/* 移动端：模糊降至 18px（约束 16~20px） */
@media (max-width: 768px) {
  .glass, .glass-pill, .glass-field, .glass-strong,
  .sec-card, .topbar, .composer,
  .admin-panel, .call-panel, .confirm-card {
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
  }
}
/* 不支持 backdrop-filter：回退为更高不透明度背景 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .glass-pill, .glass-strong, .glass-field,
  .topbar, .composer, .sec-card, .admin-panel, .confirm-card {
    background: var(--glass-bg-strong);
  }
}

/* ---------- 6. 背景光斑已并入 body::before（见 1b），此处不再重复绘制，
   避免 .main-app/.lg-auth-wrap 各自铺一层 background 造成多次合成 ---------- */

/* ============================================================
   Part 7：审美冲刺补充——暗色冷金、安全区、触控延迟
   ============================================================ */

/* 5. 暗色模式 home 主题金黄 → 冷金（浅色保持原样） */
body.dark.theme-home {
  --primary: #d8c07a;
  --primary-2: #c2a968;
  --primary-grad: linear-gradient(135deg, #e8d7a6 0%, #d8c07a 55%, #bd9f5f 100%);
  --primary-soft: rgba(216,192,122,.16);
  --nav-grad: linear-gradient(135deg, rgba(232,215,166,.62) 0%, rgba(216,192,122,.62) 55%, rgba(189,159,95,.65) 100%);
  --nav-shadow: 0 6px 20px rgba(176,148,92,.42);
}

/* 6a. 安全区适配（calc 相加保留原 padding，零安全区时无副作用） */
.main-app {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.topbar-wrap {
  padding-top: calc(14px + env(safe-area-inset-top));
}
.lg-auth-wrap {
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
@media (max-width: 460px) {
  .lg-auth-wrap {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* 6c. 交互控件禁用双击缩放延迟（提升触控响应） */
.btn-primary, .btn-ghost, .btn-logout, .btn-sessions, .nav-item, .feature-card,
.icon-btn, .quick-btn, .composer-btn, .qr-btn, .lg-btn, .lg-seg-item,
.auth-more-btn, .scanner-close, .scanner-album, button.glass-pill, .bubble-option {
  touch-action: manipulation;
}

/* ============================================================
   Part 8：仿 exe 清爽化整改（去外环 / 主题光斑 / 统一按钮 / 菜单栏 / 输入框）
   ============================================================ */

/* A. 登录卡去描边外环，改真实 border 承担描边（内外不产生平行弧） */
.lg-auth-card { border: 1px solid rgba(255,255,255,.9); }
body.dark .lg-auth-card { border: 1px solid rgba(255,255,255,.16); }
.lg-sheet, .lg-toast, .bio-card { border: 1px solid rgba(255,255,255,.85); }
body.dark .lg-sheet, body.dark .lg-toast, body.dark .bio-card { border: 1px solid rgba(255,255,255,.15); }

/* B. 每页主题色光斑：body::before 按 theme-* 切换（浅色淡彩，暗色低明度深底） */
body:not(.dark).theme-feedback::before {
  background:
    radial-gradient(70vw 70vh at 16% 8%, rgba(255,231,168,.55) 0%, rgba(255,231,168,0) 60%),
    radial-gradient(60vw 60vh at 88% 72%, rgba(255,246,214,.5) 0%, rgba(255,246,214,0) 58%),
    linear-gradient(160deg, rgba(255,253,242,.9) 0%, rgba(255,248,225,.88) 100%);
}
body:not(.dark).theme-profile::before {
  background:
    radial-gradient(70vw 70vh at 14% 10%, rgba(228,214,255,.5) 0%, rgba(228,214,255,0) 60%),
    radial-gradient(60vw 60vh at 86% 78%, rgba(243,236,255,.5) 0%, rgba(243,236,255,0) 58%),
    linear-gradient(160deg, rgba(250,247,255,.9) 0%, rgba(244,238,255,.88) 100%);
}
body:not(.dark).theme-users::before {
  background:
    radial-gradient(70vw 70vh at 14% 8%, rgba(207,240,218,.5) 0%, rgba(207,240,218,0) 60%),
    radial-gradient(60vw 60vh at 86% 76%, rgba(233,248,236,.5) 0%, rgba(233,248,236,0) 58%),
    linear-gradient(160deg, rgba(246,252,247,.9) 0%, rgba(238,249,241,.88) 100%);
}
body:not(.dark).theme-chat::before {
  background:
    radial-gradient(70vw 70vh at 14% 8%, rgba(205,229,255,.5) 0%, rgba(205,229,255,0) 60%),
    radial-gradient(60vw 60vh at 86% 76%, rgba(233,242,255,.5) 0%, rgba(233,242,255,0) 58%),
    linear-gradient(160deg, rgba(246,250,255,.9) 0%, rgba(238,246,255,.88) 100%);
}
body:not(.dark).theme-home::before {
  background:
    radial-gradient(55vw 55vh at 12% 8%, rgba(255,231,168,.42) 0%, rgba(255,231,168,0) 56%),
    radial-gradient(50vw 50vh at 88% 14%, rgba(228,214,255,.4) 0%, rgba(228,214,255,0) 56%),
    radial-gradient(52vw 52vh at 86% 82%, rgba(207,240,218,.4) 0%, rgba(207,240,218,0) 56%),
    radial-gradient(50vw 50vh at 10% 82%, rgba(205,229,255,.42) 0%, rgba(205,229,255,0) 56%),
    linear-gradient(160deg, rgba(248,248,255,.9) 0%, rgba(244,244,252,.88) 100%);
}
/* 暗色主题深底光斑层 */
body.dark::before {
  background: linear-gradient(160deg, #0c0d12 0%, #0e1016 100%);
}
body.dark.theme-feedback::before { background: radial-gradient(70vw 70vh at 16% 8%, rgba(64,56,20,.6) 0%, rgba(64,56,20,0) 60%), #0c0d12; }
body.dark.theme-profile::before { background: radial-gradient(70vw 70vh at 14% 10%, rgba(44,36,68,.6) 0%, rgba(44,36,68,0) 60%), #0c0d12; }
body.dark.theme-users::before { background: radial-gradient(70vw 70vh at 14% 8%, rgba(20,52,32,.6) 0%, rgba(20,52,32,0) 60%), #0c0d12; }
body.dark.theme-chat::before { background: radial-gradient(70vw 70vh at 14% 8%, rgba(18,40,72,.6) 0%, rgba(18,40,72,0) 60%), #0c0d12; }

/* C. 我的页文字按钮统一为等宽大药丸 */
#profileView .btn-sessions, #profileView .btn-logout, #profileView .btn-delete-account {
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(120,130,155,.16);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
  transition: transform .2s var(--lg-ease), background .2s var(--lg-ease);
}
body.dark #profileView .btn-sessions, body.dark #profileView .btn-logout, body.dark #profileView .btn-delete-account {
  background: rgba(40,44,54,.5);
  border-color: rgba(255,255,255,.08);
  color: var(--ink);
}

/* D. 菜单栏 exe 化：导航按钮文字+线条图标，激活态浅灰胶囊，去阴影光晕/扫光 */
.nav-item {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  color: var(--ink-2);
  transition: background .18s var(--lg-ease), color .18s var(--lg-ease);
}
.nav-item:hover { background: rgba(125,135,155,.10) !important; box-shadow: none !important; transform: none !important; }
.nav-item.active { background: rgba(118,128,150,.16) !important; color: var(--ink) !important; box-shadow: none !important; }
.nav-item.active::before, .nav-item.active::after, .nav-item:hover::after { display: none !important; }
body.dark .nav-item.active { background: rgba(255,255,255,.12) !important; color: #fff !important; }
body.dark .nav-item:hover { background: rgba(255,255,255,.08) !important; }
/* 右上纯图标小按钮 */
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar-actions button {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink-2); cursor: pointer;
  transition: background .18s var(--lg-ease), color .18s var(--lg-ease);
}
.topbar-actions button:hover { background: rgba(125,135,155,.12); color: var(--ink); }
.topbar-actions button svg { width: 19px; height: 19px; }

/* F. 聊天输入框 iMessage 化：蓝实线框 + 纯白/近黑内容底，无重阴影光斑棱镜 */
.composer {
  background: #fff !important;
  border: 1.5px solid #0A84FF !important;
  border-radius: 24px;
  box-shadow: none !important;
}
body.dark .composer { background: #1b1d25 !important; border-color: #3d8dff !important; }
.composer::before, .composer::after { display: none !important; }
.composer input, .composer textarea { background: transparent; }

/* G c. 大型非交互容器不加 ::after 动态镜面层（省合成） */
.sec-card::after, .sign-card::after, .confirm-card::after, .admin-panel::after { display: none !important; }

/* ============================================================
   Part 9：纯白内容+细线包裹（静态面）/ 交互保留 glass / topbar 布局
   ============================================================ */

/* B. 静态容器纯白化：近不透明纯白底 + 1px hairline（顶边提亮）+ 单一轻影，无 blur/多阴影
      排除 .home-hero / .feature-card（品牌与交互玻璃）与 .glass-pill（交互胶囊） */
.glass:not(.home-hero):not(.feature-card):not(.glass-pill),
.sec-card, .confirm-card, .admin-panel, .sign-card, .lg-sheet, .lg-auth-card, .call-panel, .glass-strong {
  background: rgba(255,255,255,.97) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(20,45,90,.16) !important;
  border-top-color: rgba(30,60,120,.32) !important;
  box-shadow: 0 1px 4px rgba(15,20,45,.06) !important;
}
body.dark .glass:not(.home-hero):not(.feature-card):not(.glass-pill),
body.dark .sec-card, body.dark .confirm-card, body.dark .admin-panel,
body.dark .sign-card, body.dark .lg-sheet, body.dark .lg-auth-card,
body.dark .call-panel, body.dark .glass-strong {
  background: rgba(20,23,31,.97) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-top-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 1px 5px rgba(0,0,0,.35) !important;
}

/* 气泡删 inset 第二弧：只留 hairline border + 轻影 */
.bubble-glass { box-shadow: none !important; border: 1px solid rgba(20,45,90,.14); }
body.dark .bubble-glass { box-shadow: none !important; border: 1px solid rgba(255,255,255,.10); }

/* D. topbar 布局：左侧 logo + 深色切换，右侧导航靠右 */
.topbar { display: flex; align-items: center; }
.topbar .brand { order: 0; }
.topbar-actions { order: 1; margin-left: 6px; }
.nav-items { order: 2; margin-left: auto; }
