/* ═══════════════════════════════════════════════════════════════
   熊猫 · Liquid Glass 全局样式
   高级感玻璃液态风格：极光液态背景 + 磨砂玻璃表面 + 柔光阴影
   所有 class 与旧版完全兼容，JS 视图层无需改动
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* 品牌色 */
  --green: #0abf6b;
  --green-dark: #089d58;
  --green-grad: linear-gradient(135deg, #34d399 0%, #0abf6b 55%, #059d69 100%);
  --bubble-mine: var(--green-grad);
  /* 玻璃表面 */
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-weak: rgba(255, 255, 255, .38);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-line: rgba(15, 40, 30, .07);
  /* 文字 */
  --text: #14201a;
  --text-2: #64748b;
  --line: rgba(15, 40, 30, .08);
  /* 功能色 */
  --danger: #f43f5e;
  --badge: #f43f5e;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  /* 液态阴影 */
  --shadow-sm: 0 2px 10px rgba(13, 42, 33, .06);
  --shadow-md: 0 8px 28px rgba(13, 42, 33, .10), inset 0 1px 0 rgba(255, 255, 255, .55);
  --shadow-lg: 0 18px 50px rgba(13, 42, 33, .16), inset 0 1px 0 rgba(255, 255, 255, .6);
  --radius: 18px;
  --blur: 22px;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  font-size: 15px;
  overflow: hidden;
  background:
    radial-gradient(1100px 720px at 8% -12%, rgba(52, 211, 153, .30) 0%, transparent 58%),
    radial-gradient(950px 680px at 108% 6%, rgba(96, 165, 250, .26) 0%, transparent 55%),
    radial-gradient(900px 800px at 50% 118%, rgba(167, 139, 250, .24) 0%, transparent 60%),
    radial-gradient(700px 520px at 92% 88%, rgba(253, 164, 175, .20) 0%, transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, #e7edf4 100%);
  background-attachment: fixed;
}

body[data-fs="small"] { font-size: 13px; }
body[data-fs="middle"] { font-size: 15px; }
body[data-fs="large"] { font-size: 17px; }
body[data-fs="huge"] { font-size: 19px; }

/* ── 应用容器：悬浮玻璃 device ─────────────────────────────── */
#app {
  max-width: 480px; height: 100dvh; margin: 0 auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .22) 40%, rgba(255, 255, 255, .34) 100%);
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 24px 70px rgba(13, 42, 33, .18), 0 0 0 1px rgba(255, 255, 255, .55);
  overflow: hidden;
}
@media (min-width: 640px) {
  #app { height: calc(100dvh - 56px); margin: 28px auto; border-radius: 38px; }
}

/* #app 内部液态极光层（双重 blob 反向漂移） */
#app::before, #app::after {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
}
#app::before {
  background:
    radial-gradient(46% 34% at 22% 18%, rgba(52, 211, 153, .42) 0%, transparent 70%),
    radial-gradient(40% 30% at 82% 30%, rgba(96, 165, 250, .34) 0%, transparent 70%),
    radial-gradient(48% 36% at 55% 88%, rgba(167, 139, 250, .30) 0%, transparent 70%);
  animation: blobA 26s ease-in-out infinite alternate;
}
#app::after {
  background:
    radial-gradient(42% 30% at 78% 76%, rgba(253, 164, 175, .30) 0%, transparent 70%),
    radial-gradient(36% 26% at 16% 66%, rgba(252, 211, 77, .24) 0%, transparent 70%);
  animation: blobB 32s ease-in-out infinite alternate;
}
@keyframes blobA {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1); }
  50%  { transform: translate3d(5%, 4%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 6%, 0) scale(1.04); }
}
@keyframes blobB {
  0%   { transform: translate3d(4%, 5%, 0) scale(1.08) rotate(6deg); }
  100% { transform: translate3d(-5%, -4%, 0) scale(1) rotate(-4deg); }
}

.page { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; z-index: 1; }
.page-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; min-height: 0; }

/* 隐藏应用内滚动条（移动端质感） */
.page-body, .msg-area, .modal .m-body, .sheet, .emoji-grid, .member-pop, .export-text, .login-wrap::-webkit-scrollbar { scrollbar-width: none; }
.page-body::-webkit-scrollbar, .msg-area::-webkit-scrollbar, .modal .m-body::-webkit-scrollbar,
.sheet::-webkit-scrollbar, .emoji-grid::-webkit-scrollbar, .member-pop::-webkit-scrollbar,
.export-text::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ── 顶栏：sticky 玻璃 ─────────────────────────────────────── */
.header {
  height: calc(52px + env(safe-area-inset-top, 0px)); min-height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7);
  backdrop-filter: blur(var(--blur)) saturate(1.7);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 4px 18px rgba(13, 42, 33, .05);
  position: relative; z-index: 5;
}
.page-body > .header { position: sticky; top: 0; }
.header .h-title { flex: 1; text-align: center; font-weight: 700; font-size: 1.06em; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header .h-side { width: 84px; display: flex; justify-content: flex-end; gap: 4px; }
.header .h-side.left { justify-content: flex-start; }

.icon-btn {
  width: 38px; height: 38px; border: none; background: transparent; border-radius: 12px; cursor: pointer;
  font-size: 20px; color: var(--text); display: flex; align-items: center; justify-content: center; position: relative;
  transition: background .18s, transform .12s;
}
.icon-btn:active { background: rgba(255, 255, 255, .65); transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.back-btn { font-size: 22px; padding-right: 2px; }
.back-btn svg { width: 24px; height: 24px; }

/* ── 底部 Tab：悬浮玻璃舱 ──────────────────────────────────── */
.tabbar {
  height: calc(60px + env(safe-area-inset-bottom, 0px)); min-height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7);
  backdrop-filter: blur(var(--blur)) saturate(1.7);
  border-top: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 -6px 24px rgba(13, 42, 33, .07);
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; color: #7c8a94; position: relative; font-size: .72em; transition: color .2s; }
.tabbar .tab svg { width: 31px; height: 31px; fill: var(--tc, #9a9a9a); transition: opacity .15s, transform .2s; }
.tabbar .tab:not(.active) svg { opacity: .42; }
.tabbar .tab.active svg { opacity: 1; transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 3px 8px rgba(10, 191, 107, .35)); }
.tabbar .tab:nth-child(1) { --tc: #0abf6b; }
.tabbar .tab:nth-child(2) { --tc: #3b82f6; }
.tabbar .tab:nth-child(3) { --tc: #f59e0b; }
.tabbar .tab:nth-child(4) { --tc: #8b5cf6; }
.tabbar .tab.active { color: var(--tc); font-weight: 600; }
.tabbar .tab.active::before {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 30px; border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 16%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 8px color-mix(in srgb, var(--tc) 22%, transparent);
}
.tabbar .tab .tab-badge { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 16px; height: 16px; border-radius: 8px; background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; font-size: 11px; line-height: 16px; padding: 0 4px; text-align: center; box-shadow: 0 2px 8px rgba(225, 29, 72, .4); z-index: 2; }

/* ── 列表与单元格：悬浮玻璃卡片 ────────────────────────────── */
.list {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 10px 12px 0;
  overflow: hidden;
}
.cell { display: flex; align-items: center; padding: 12px 14px; background: transparent; cursor: pointer; gap: 12px; position: relative; transition: background .18s; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--glass-line); }
.cell:active { background: rgba(255, 255, 255, .55); }
.cell .c-main { flex: 1; min-width: 0; }
.cell .c-title { font-size: 1em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .c-sub { color: var(--text-2); font-size: .82em; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .c-right { color: var(--text-2); font-size: .78em; text-align: right; flex-shrink: 0; }
.cell .arrow { color: #b6c2cc; margin-left: 4px; }
.cell-center { text-align: center; color: var(--green); background: transparent; }
.group-label { padding: 16px 26px 6px; color: var(--text-2); font-size: .8em; font-weight: 600; letter-spacing: .04em; }

/* ── 头像：玻璃光泽 ────────────────────────────────────────── */
.avatar { position: relative; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; overflow: hidden; user-select: none; box-shadow: 0 4px 12px rgba(13, 42, 33, .18); }
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 默认头像：绿渐变底 + 熊猫脸 */
.avatar.avatar-default { background: var(--green-grad); }
.avatar.avatar-default svg { width: 72%; height: 72%; }
/* 输入弹窗 */
.prompt-input-row { padding: 0 20px 16px; }
.prompt-input-row input {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 13px;
  background: rgba(255, 255, 255, .6); font-size: 1em; outline: none; font-family: inherit;
  transition: border .2s, box-shadow .2s;
}
.prompt-input-row input:focus { border-color: rgba(10, 191, 107, .55); box-shadow: 0 0 0 4px rgba(10, 191, 107, .14); }
.av-40 { width: 40px; height: 40px; font-size: 16px; }
.av-44 { width: 44px; height: 44px; font-size: 17px; }
.av-36 { width: 36px; height: 36px; font-size: 14px; }
.av-30 { width: 30px; height: 30px; font-size: 12px; }
.av-24 { width: 24px; height: 24px; font-size: 10px; }
.av-60 { width: 60px; height: 60px; font-size: 24px; }
.av-80 { width: 80px; height: 80px; font-size: 32px; }
.av-group { background: linear-gradient(135deg, #35c759, #07c160); }

.red-dot { width: 9px; height: 9px; background: var(--danger); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(244, 63, 94, .18); }
.num-badge { min-width: 17px; height: 17px; padding: 0 5px; background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; border-radius: 9px; font-size: 11px; line-height: 17px; text-align: center; display: inline-block; box-shadow: 0 2px 6px rgba(225, 29, 72, .35); }
.pin-flag { color: var(--text-2); font-size: .75em; margin-left: 4px; }

/* ── 按钮：液态渐变 ────────────────────────────────────────── */
.btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 14px;
  background: var(--green-grad); color: #fff; font-size: 1em; font-weight: 600; letter-spacing: .04em; cursor: pointer; text-align: center;
  box-shadow: 0 8px 22px rgba(10, 191, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .14s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); filter: brightness(.94); box-shadow: 0 4px 12px rgba(10, 191, 107, .3); }
.btn.plain {
  background: rgba(255, 255, 255, .6); color: var(--text); border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn.danger {
  background: rgba(255, 241, 244, .72); color: var(--danger); border: 1px solid rgba(251, 113, 133, .35);
  box-shadow: 0 6px 18px rgba(244, 63, 94, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn.mini { width: auto; padding: 7px 16px; border-radius: 10px; font-size: .85em; display: inline-block; }
.btn:disabled { opacity: .5; }

.empty { padding: 70px 20px; text-align: center; color: #9aa8b4; font-size: .9em; }
.empty .empty-icon { font-size: 44px; margin-bottom: 12px; opacity: .8; }

/* 通用玻璃卡片（后台管理页等） */
.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6); backdrop-filter: blur(var(--blur)) saturate(1.6);
  box-shadow: var(--shadow-md);
}

/* ── Toast：暗色玻璃 ───────────────────────────────────────── */
#toast-wrap { position: fixed; top: 18%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 6000; pointer-events: none; }
.toast {
  background: rgba(20, 32, 26, .72); color: #fff; padding: 10px 18px; border-radius: 14px; font-size: .88em; max-width: 76%; text-align: center;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: fadein .18s;
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 弹窗：玻璃浮层 ────────────────────────────────────────── */
.modal-mask {
  position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 30, 24, .32);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  animation: fadein .15s;
}
.modal {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px;
  width: 80%; max-width: 320px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .26s cubic-bezier(.34, 1.5, .64, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(.88) translateY(10px); } to { opacity: 1; transform: none; } }
.modal .m-title { text-align: center; font-weight: 700; padding: 20px 20px 8px; }
.modal .m-body { padding: 4px 20px 20px; color: #4b5a66; font-size: .92em; line-height: 1.6; word-break: break-all; max-height: 50vh; overflow-y: auto; white-space: pre-wrap; }
.modal .m-btns { display: flex; border-top: 1px solid rgba(255, 255, 255, .6); position: relative; }
.modal .m-btns::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(15, 40, 30, .08); }
.modal .m-btns button { flex: 1; padding: 14px; border: none; background: transparent; font-size: 1em; cursor: pointer; transition: background .15s; }
.modal .m-btns button:active { background: rgba(255, 255, 255, .5); }
.modal .m-btns button + button { border-left: 1px solid rgba(15, 40, 30, .07); }
.modal .m-btns .primary { color: var(--green-dark); font-weight: 700; }
.modal .m-btns .danger-t { color: var(--danger); font-weight: 700; }

.sheet-mask {
  position: absolute; inset: 0; z-index: 1100; display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(18, 30, 24, .32);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
  animation: fadein .15s;
}
.sheet {
  background: rgba(250, 252, 251, .82);
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .75); border-bottom: none;
  border-radius: 24px 24px 0 0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  max-height: 72%; overflow-y: auto;
  box-shadow: 0 -18px 50px rgba(13, 42, 33, .18);
  animation: slideup .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes slideup { from { transform: translateY(60%); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet .s-item { padding: 15px; text-align: center; background: rgba(255, 255, 255, .66); cursor: pointer; font-size: .98em; border-radius: 14px; font-weight: 500; transition: background .15s; }
.sheet .s-item + .s-item { margin-top: 6px; }
.sheet .s-item:active { background: rgba(255, 255, 255, .95); }
.sheet .s-item.danger { color: var(--danger); }
.sheet .s-item.disabled { color: #b3bec8; pointer-events: none; }
.sheet .s-cancel { margin-top: 8px; background: rgba(255, 255, 255, .8); }
.sheet .s-title { text-align: center; color: var(--text-2); font-size: .8em; padding: 10px 0 8px; }

/* ── 表单 ──────────────────────────────────────────────────── */
.form-page { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.form-page input[type=text], .form-page input[type=password], .form-page input[type=tel], .form-page input[type=search], .form-page textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 14px;
  background: rgba(255, 255, 255, .58); font-size: 1em; outline: none; font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(13, 42, 33, .05), 0 1px 0 rgba(255, 255, 255, .5);
  transition: border .2s, box-shadow .2s, background .2s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form-page input:focus, .form-page textarea:focus {
  border-color: rgba(10, 191, 107, .55); background: rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 4px rgba(10, 191, 107, .14), inset 0 1px 3px rgba(13, 42, 33, .04);
}
.form-page textarea { min-height: 120px; resize: vertical; }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; }
.code-btn { white-space: nowrap; padding: 0 14px; border: none; border-radius: 12px; background: var(--green-grad); color: #fff; font-size: .88em; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(10, 191, 107, .3); transition: transform .14s; }
.code-btn:active { transform: scale(.96); }
.code-btn:disabled { opacity: .6; }

.search-box {
  margin: 10px 22px 2px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px; padding: 0 14px; height: 40px; gap: 8px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: .92em; font-family: inherit; }
.search-box .icon { color: #9aa8b4; }

/* ── 登录页 ────────────────────────────────────────────────── */
.login-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(48px + env(safe-area-inset-top, 0px)) 34px; overflow-y: auto; position: relative; z-index: 1; }
.logo {
  width: 88px; height: 88px; border-radius: 26px;
  background: var(--green-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 34px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 16px 40px rgba(10, 191, 107, .42), inset 0 2px 6px rgba(255, 255, 255, .45), inset 0 -6px 14px rgba(0, 0, 0, .12);
  margin-bottom: 12px; position: relative;
}
.logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, rgba(255, 255, 255, .5) 0%, transparent 48%); }
.logo svg { width: 76%; height: 76%; filter: drop-shadow(0 2px 4px rgba(9, 60, 40, .22)); }
.login-title { font-size: 1.45em; font-weight: 800; letter-spacing: .02em; margin-bottom: 4px; }
.login-sub { color: var(--text-2); font-size: .82em; margin-bottom: 28px; letter-spacing: .12em; }
.login-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
.login-tabs span { padding: 7px 22px; color: var(--text-2); cursor: pointer; border-radius: 999px; font-weight: 500; transition: all .2s; }
.login-tabs span.active { color: #fff; font-weight: 600; background: var(--green-grad); box-shadow: 0 4px 14px rgba(10, 191, 107, .35); }
.login-wrap .form-page { width: 100%; padding: 0; }
.login-tip { color: #93a1ad; font-size: .75em; margin-top: 16px; text-align: center; line-height: 1.7; }

/* 登录/注册页：客户端下载区 */
.login-apps { width: 100%; margin-top: 36px; }
.la-title { text-align: center; color: var(--text-2); font-size: .76em; letter-spacing: .14em; margin-bottom: 12px; }
.la-btns { display: flex; gap: 10px; }
.la-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 8px 11px;
  border-radius: 17px; border: 1px solid rgba(10, 191, 107, .32);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); cursor: pointer; color: var(--text);
  font-family: inherit; transition: transform .14s, box-shadow .2s, background .2s;
}
.la-btn:active { transform: scale(.96); background: rgba(255, 255, 255, .85); }
.la-btn svg { width: 23px; height: 23px; color: #047857; }
.la-btn span { font-size: .88em; font-weight: 600; }
.la-btn small { font-size: .68em; color: var(--text-2); }
.la-btn.ghost { border-color: rgba(148, 163, 184, .28); opacity: .85; }
.la-btn.ghost svg { color: #64748b; }
.la-btn.ghost span { color: #55666f; }

/* ── 公告横幅 ──────────────────────────────────────────────── */
.banner {
  display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 10px 12px;
  background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px; font-size: .88em; cursor: pointer; touch-action: pan-y;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.banner .b-badge { background: linear-gradient(135deg, rgba(254, 243, 199, .95), rgba(253, 230, 138, .8)); color: #b45309; font-size: .72em; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; font-weight: 600; }
.banner .b-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.banner .b-icon { color: var(--amber); }
.banner .b-close { color: #a8b4be; padding: 4px; flex-shrink: 0; }
.banner.version { background: linear-gradient(100deg, rgba(255, 248, 225, .85), rgba(255, 255, 255, .5) 70%); border-color: rgba(253, 230, 138, .6); }

/* ── 会话列表：玻璃卡片流 ──────────────────────────────────── */
#conv-list { padding: 10px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.conv-item {
  display: flex; align-items: center; position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6); backdrop-filter: blur(var(--blur)) saturate(1.6);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
}
.conv-item:active { transform: scale(.985); }
.conv-swipe { display: flex; align-items: stretch; position: relative; z-index: 2; width: calc(100% + 72px); transition: transform .18s ease; background: transparent; }
.conv-swipe .read-btn { width: 72px; flex-shrink: 0; border: none; background: rgba(148, 163, 184, .5); color: #fff; font-size: .85em; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.conv-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; cursor: pointer; }
.conv-main:active { background: rgba(255, 255, 255, .4); }
.conv-info { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: center; gap: 6px; }
.conv-name { flex: 1; font-size: 1em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { color: #a3b0ba; font-size: .72em; flex-shrink: 0; }
.conv-bottom { display: flex; align-items: center; margin-top: 3px; gap: 6px; }
.conv-preview { flex: 1; color: var(--text-2); font-size: .82em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-flags { flex-shrink: 0; display: flex; align-items: center; gap: 4px; }
.mute-icon { color: #a3b0ba; font-size: .8em; }

/* ── 聊天区 ────────────────────────────────────────────────── */
.msg-area { flex: 1; overflow-y: auto; padding: 12px 12px 6px; min-height: 0; position: relative; }
.msg-row { display: flex; margin-bottom: 14px; gap: 9px; align-items: flex-start; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-mid { max-width: 74%; display: flex; flex-direction: column; }
.msg-row.mine .msg-mid { align-items: flex-end; }
.msg-sender { color: #7c8a94; font-size: .72em; margin: 0 4px 4px; }
.bubble {
  padding: 9px 13px; border-radius: 16px; font-size: .95em; line-height: 1.55; word-break: break-word; white-space: pre-wrap; position: relative;
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 14px rgba(13, 42, 33, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
  border-top-left-radius: 5px;
  color: var(--text);
}
.msg-row.mine .bubble {
  background: var(--green-grad);
  border: none; border-top-right-radius: 5px;
  box-shadow: 0 6px 18px rgba(10, 191, 107, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff;
}
.bubble .mention { color: #2563eb; font-weight: 600; }
.msg-row.mine .bubble .mention { color: #d1fae5; }
.msg-meta { margin: 4px 4px 0; color: #9aa8b4; font-size: .7em; display: flex; gap: 6px; align-items: center; }
.msg-img { max-width: 180px; max-height: 220px; border-radius: 12px; display: block; cursor: pointer; }
.msg-video { max-width: 220px; border-radius: 12px; display: block; }
.voice-box { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 90px; }
.voice-play { width: 30px; height: 30px; border-radius: 50%; background: rgba(13, 42, 33, .08); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.voice-bar { flex: 1; height: 3px; background: rgba(13, 42, 33, .14); border-radius: 2px; overflow: hidden; min-width: 40px; }
.voice-bar i { display: block; height: 100%; background: var(--green); width: 0; border-radius: 2px; }
.msg-row.mine .voice-play { background: rgba(255, 255, 255, .28); color: #fff; }
.msg-row.mine .voice-bar { background: rgba(255, 255, 255, .35); }
.msg-row.mine .voice-bar i { background: #fff; }
.file-card { display: flex; align-items: center; gap: 10px; min-width: 170px; cursor: pointer; }
.file-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #60a5fa, #3b82f6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(59, 130, 246, .35); }
.loc-box { min-width: 160px; cursor: pointer; }
.loc-box .loc-ico { color: var(--danger); }
.loc-box .loc-geo { color: var(--text-2); font-size: .75em; margin-top: 2px; }
.msg-row.mine .loc-box .loc-geo { color: rgba(255, 255, 255, .85); }
.card-box { display: flex; align-items: center; gap: 10px; min-width: 170px; cursor: pointer; }
.red-box {
  min-width: 200px; background: linear-gradient(135deg, #fb9d7c, #ee6a4d 60%, #e35737); color: #7a3b1e; border-radius: 16px; padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 22px rgba(238, 106, 77, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.red-box .red-ico { width: 30px; height: 34px; background: rgba(255, 245, 238, .92); border-radius: 4px 4px 12px 12px; display: flex; align-items: center; justify-content: center; color: #e66a3c; font-size: 15px; font-weight: 700; }
.red-box .red-text { color: #fff; font-size: .95em; font-weight: 500; }
.red-box .red-sub { color: rgba(255, 255, 255, .85); font-size: .72em; margin-top: 2px; }
.burn-flag { color: #fb923c; font-size: .8em; margin-right: 4px; }
.burn-count { color: #fb923c; font-size: .72em; margin-top: 3px; }
.msg-row.mine .burn-flag, .msg-row.mine .burn-count { color: #ffedd5; }
.quote-block { background: rgba(13, 42, 33, .06); border-left: 3px solid var(--green); padding: 6px 8px; border-radius: 8px; margin-bottom: 6px; font-size: .82em; color: #55666f; }
.msg-row.mine .quote-block { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .8); color: rgba(255, 255, 255, .92); }
.quote-block .q-sender { color: #2563eb; font-weight: 600; }
.msg-row.mine .quote-block .q-sender { color: #fff; }
.sys-msg { text-align: center; margin: 10px 0; color: #8a97a3; font-size: .76em; }
.sys-msg .sys-bubble { display: inline-block; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .55); padding: 4px 12px; border-radius: 999px; max-width: 86%; word-break: break-all; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.msg-time-div { text-align: center; color: #8a97a3; font-size: .72em; margin: 16px 0 10px; }
.msg-time-div::after { content: ""; display: block; width: 36px; height: 2px; margin: 6px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .5), transparent); }
.read-tag { color: #9aa8b4; }
.msg-row.mine .read-tag { color: rgba(255, 255, 255, .8); }
.recall-tag { color: #2563eb; cursor: pointer; user-select: none; }
.recall-tag:active { opacity: .5; }
.burn-timer { color: #fb923c; }

/* ── 输入区 ────────────────────────────────────────────────── */
.input-bar {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7); backdrop-filter: blur(var(--blur)) saturate(1.7);
  border-top: 1px solid rgba(255, 255, 255, .55);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: flex-end; gap: 7px;
  box-shadow: 0 -6px 24px rgba(13, 42, 33, .05);
}
.input-bar .tool-btn { width: 36px; height: 36px; border: none; background: transparent; border-radius: 11px; font-size: 22px; color: #55666f; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, transform .12s; }
.input-bar .tool-btn:active { background: rgba(255, 255, 255, .7); transform: scale(.9); }
.chat-input {
  flex: 1; border: 1px solid rgba(255, 255, 255, .75); border-radius: 14px; min-height: 36px; max-height: 110px; padding: 8px 11px;
  font-size: .95em; outline: none; resize: none; font-family: inherit; line-height: 1.4;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 3px rgba(13, 42, 33, .05);
  transition: border .2s, box-shadow .2s;
}
.chat-input:focus { border-color: rgba(10, 191, 107, .5); box-shadow: 0 0 0 4px rgba(10, 191, 107, .12), inset 0 1px 3px rgba(13, 42, 33, .04); }
.send-btn { border: none; background: var(--green-grad); color: #fff; border-radius: 12px; padding: 8px 15px; font-size: .9em; font-weight: 600; cursor: pointer; flex-shrink: 0; box-shadow: 0 5px 16px rgba(10, 191, 107, .35); transition: transform .14s; }
.send-btn:active { transform: scale(.94); }
.send-btn:disabled { opacity: .5; }
.hold-btn { flex: 1; height: 36px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 12px; background: rgba(255, 255, 255, .68); color: #45565f; font-size: .9em; cursor: pointer; user-select: none; transition: all .2s; }
.hold-btn.recording { background: rgba(52, 211, 153, .35); border-color: rgba(10, 191, 107, .45); color: #046b43; font-weight: 600; box-shadow: 0 0 0 5px rgba(10, 191, 107, .12); }
.panel {
  background: rgba(252, 253, 252, .82);
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  border-top: 1px solid rgba(255, 255, 255, .6);
}
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 10px; max-height: 200px; overflow-y: auto; }
.emoji-grid span { font-size: 22px; text-align: center; padding: 4px; cursor: pointer; border-radius: 10px; transition: background .15s, transform .12s; }
.emoji-grid span:active { background: rgba(255, 255, 255, .8); transform: scale(1.15); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 16px 10px; }
.mg-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: .72em; color: #64748b; }
.mg-ico {
  width: 52px; height: 52px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8); border-radius: 17px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 6px 16px rgba(13, 42, 33, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .15s;
}
.mg-item:active .mg-ico { transform: scale(.9); }
.quote-bar { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .55); padding: 6px 12px; display: flex; align-items: center; gap: 8px; font-size: .8em; color: #55666f; }
.quote-bar .q-close { margin-left: auto; color: #8a97a3; cursor: pointer; padding: 2px 6px; }
.quote-bar .q-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-pop {
  position: absolute; bottom: 58px; left: 8px; right: 8px; max-height: 240px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .85); border-radius: 18px;
  -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 60;
}
.member-pop .mp-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; border-radius: 12px; transition: background .15s; }
.member-pop .mp-item:active { background: rgba(255, 255, 255, .7); }

/* ── 个人页 / 设置 ─────────────────────────────────────────── */
.info-head {
  margin: 10px 12px 0; padding: 20px 16px; display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6); backdrop-filter: blur(var(--blur)) saturate(1.6);
  box-shadow: var(--shadow-md);
}
.info-head .ih-main { flex: 1; }
.info-head .ih-name { font-size: 1.2em; font-weight: 700; }
.info-head .ih-sub { color: var(--text-2); font-size: .85em; margin-top: 4px; }
.menu-group { margin-top: 10px; }
.setting-row { display: flex; align-items: center; padding: 14px; background: transparent; cursor: pointer; gap: 10px; font-size: .95em; position: relative; transition: background .18s; }
.setting-row + .setting-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--glass-line); }
.setting-row:active { background: rgba(255, 255, 255, .55); }
.setting-row .sr-label { flex: 1; }
.setting-row .sr-value { color: var(--text-2); font-size: .88em; display: flex; align-items: center; gap: 6px; }
.switch { position: relative; width: 46px; height: 27px; background: rgba(13, 42, 33, .16); border-radius: 14px; transition: .25s; cursor: pointer; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: .25s cubic-bezier(.34, 1.4, .64, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.switch.on { background: var(--green-grad); box-shadow: 0 2px 10px rgba(10, 191, 107, .4); }
.switch.on::after { left: 21px; }
.member-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; padding: 14px; }
.member-grid .mg-u { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: .68em; color: #64748b; overflow: hidden; }
.member-grid .mg-u .u-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { font-size: .68em; padding: 1px 7px; border-radius: 999px; background: rgba(52, 211, 153, .16); color: #047857; margin-left: 6px; font-weight: 600; }
.role-tag.owner { background: rgba(254, 243, 199, .7); color: #b45309; }
.muted-tag { font-size: .68em; padding: 1px 7px; border-radius: 999px; background: rgba(251, 113, 133, .16); color: #be123c; margin-left: 6px; font-weight: 600; }
.ann-card {
  margin: 12px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; padding: 14px;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6); backdrop-filter: blur(var(--blur)) saturate(1.6);
  box-shadow: var(--shadow-md);
}
.ann-card .a-head { display: flex; align-items: center; gap: 8px; }
.ann-card .a-title { font-weight: 700; flex: 1; }
.ann-card .a-time { color: #9aa8b4; font-size: .75em; }
.ann-card .a-body { color: #55666f; font-size: .9em; line-height: 1.7; margin-top: 8px; white-space: pre-wrap; }
.ann-card.unread { border-left: 3px solid var(--green); box-shadow: var(--shadow-md), 0 0 0 3px rgba(10, 191, 107, .08); }
.font-preview {
  margin: 10px 12px 0; padding: 20px 16px;
  background: rgba(255, 255, 255, .5) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px;
}
.font-opt { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; background: transparent; cursor: pointer; position: relative; transition: background .15s; }
.font-opt + .font-opt::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--glass-line); }
.font-opt:active { background: rgba(255, 255, 255, .5); }
.font-opt .f-check { color: var(--green); font-weight: 700; visibility: hidden; }
.font-opt.active .f-check { visibility: visible; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.bg-item { height: 90px; border-radius: 14px; cursor: pointer; border: 3px solid rgba(255, 255, 255, .6); background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; color: #fff; font-size: .85em; padding-bottom: 6px; box-shadow: var(--shadow-sm); text-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s; }
.bg-item:active { transform: scale(.95); }
.bg-item.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10, 191, 107, .25), var(--shadow-md); }
.profile-hero { padding: 30px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.forward-list { padding: 0 0 70px; }
.fwd-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b6c2cc; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: all .18s; }
.fwd-check.checked { background: var(--green-grad); border-color: transparent; box-shadow: 0 3px 10px rgba(10, 191, 107, .4); }
.forward-bar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.7); backdrop-filter: blur(var(--blur)) saturate(1.7);
  border-top: 1px solid rgba(255, 255, 255, .55); display: flex; gap: 10px; z-index: 10;
}
.export-text {
  margin: 12px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px; padding: 14px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: .85em; line-height: 1.7; white-space: pre-wrap; word-break: break-all; height: 60vh; overflow-y: auto; font-family: Consolas, monospace;
  box-shadow: inset 0 1px 3px rgba(13, 42, 33, .04);
}
.img-preview-mask { position: absolute; inset: 0; background: rgba(8, 14, 12, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); z-index: 2000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-preview-mask img { max-width: 96%; max-height: 90%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.seg { display: flex; background: rgba(13, 42, 33, .08); border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 3px; margin: 12px 14px 0; }
.seg span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: .88em; cursor: pointer; color: #64748b; transition: all .2s; }
.seg span.active { background: rgba(255, 255, 255, .9); color: var(--text); font-weight: 600; box-shadow: 0 2px 8px rgba(13, 42, 33, .1); }

/* ── 通话界面：暗夜液态玻璃 ────────────────────────────────── */
.call-layer { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; z-index: 5000; display: flex; flex-direction: column; align-items: center; color: #fff; }
.call-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 55% at 18% 12%, rgba(16, 185, 129, .32) 0%, transparent 60%),
    radial-gradient(70% 50% at 88% 22%, rgba(99, 102, 241, .30) 0%, transparent 60%),
    radial-gradient(80% 55% at 50% 100%, rgba(14, 116, 144, .38) 0%, transparent 62%),
    linear-gradient(165deg, #101b23 0%, #16222e 55%, #0e161e 100%);
}
.call-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 42%, rgba(255, 255, 255, .06) 0%, transparent 70%); animation: callGlow 6s ease-in-out infinite alternate; }
@keyframes callGlow { from { opacity: .5; transform: scale(1); } to { opacity: 1; transform: scale(1.15); } }
.call-top { position: relative; margin-top: 12vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.call-name { font-size: 1.5em; font-weight: 700; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.call-status { color: rgba(255, 255, 255, .72); font-size: .95em; }
.call-timer { color: rgba(255, 255, 255, .92); font-size: 1.1em; font-variant-numeric: tabular-nums; }
.call-quality { font-size: .75em; color: #6ee7b7; display: flex; align-items: center; gap: 4px; }
.call-avatar-ring { width: 110px; height: 110px; border-radius: 50%; padding: 4px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); animation: pulse 1.6s infinite; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.call-avatar-ring.idle { animation: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .25); } 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.call-controls { position: relative; margin-top: auto; margin-bottom: 12vh; display: flex; gap: 40px; }
.call-ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .75em; color: rgba(255, 255, 255, .85); cursor: pointer; }
.call-ctrl .cc-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .14s, background .2s;
}
.call-ctrl .cc-btn:active { transform: scale(.9); }
.call-ctrl .cc-btn.active { background: rgba(255, 255, 255, .92); color: #14212b; border-color: transparent; }
.call-ctrl .cc-btn.danger { background: linear-gradient(135deg, #fb7185, #e11d48); border-color: transparent; box-shadow: 0 10px 28px rgba(225, 29, 72, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.call-ctrl .cc-btn.accept { background: var(--green-grad); border-color: transparent; box-shadow: 0 10px 28px rgba(10, 191, 107, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ann-modal .modal .m-title { padding-bottom: 2px; }
.ver-badge { display: inline-block; background: linear-gradient(135deg, rgba(254, 243, 199, .95), rgba(253, 230, 138, .8)); color: #b45309; font-size: .72em; padding: 2px 8px; border-radius: 999px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SVG 图标统一尺寸（图标使用 currentColor，不覆盖其自身 fill/stroke） ── */
.avatar svg { width: 54%; height: 54%; }
.cell .arrow svg { width: 16px; height: 16px; }
.cell .arrow { display: inline-flex; align-items: center; }
.setting-row .arrow svg { width: 16px; height: 16px; }
.empty-icon svg { width: 44px; height: 44px; color: #b6c2cc; }
.search-box .icon { display: inline-flex; align-items: center; color: #9aa8b4; }
.search-box .icon svg { width: 16px; height: 16px; }
.banner .b-icon { display: inline-flex; align-items: center; color: #f59e0b; }
.banner .b-icon svg { width: 17px; height: 17px; }
.pin-flag svg { width: 12px; height: 12px; color: #a3b0ba; vertical-align: -1px; }
.mute-icon svg { width: 14px; height: 14px; color: #a3b0ba; vertical-align: -2px; }
.input-bar .tool-btn svg { width: 32.4px; height: 32.4px; }
.input-bar .tool-btn { position: relative; }
.tool-btn .burn-badge { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fdba74, #f97316 60%, #ea580c); box-shadow: 0 0 6px rgba(249,115,22,.75); }

/* 拍照取景弹层 */
.cam-mask { position: fixed; inset: 0; z-index: 300; background: rgba(8, 12, 16, .92); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0 max(24px, env(safe-area-inset-bottom)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cam-mask .cam-video { flex: 1; width: min(94vw, 720px); max-height: 76vh; object-fit: cover; border-radius: 22px; background: #000; }
.cam-mask .cam-top { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px; }
.cam-mask .cam-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cam-mask .cam-actions { display: flex; align-items: center; justify-content: space-between; width: min(80vw, 420px); margin-top: 18px; }
.cam-mask .cam-shutter { width: 68px; height: 68px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); background: rgba(255,255,255,.25); cursor: pointer; transition: transform .12s; }
.cam-mask .cam-shutter:active { transform: scale(.88); background: rgba(255,255,255,.5); }
.cam-mask .cam-side { min-width: 64px; padding: 9px 14px; border-radius: 999px; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 14px; cursor: pointer; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.input-bar #i-burn { color: #fb923c; }
.input-bar #i-emoji { color: #f59e0b; }
.file-icon svg { width: 20px; height: 20px; }
.loc-ico { display: inline-flex; align-items: center; vertical-align: -3px; color: var(--danger); }
.loc-ico svg { width: 15px; height: 15px; }
.burn-flag { display: inline-flex; align-items: center; color: #fb923c; vertical-align: -2px; }
.burn-flag svg { width: 14px; height: 14px; }
.burn-count { display: flex; align-items: center; gap: 3px; color: #fb923c; font-size: .72em; margin-top: 3px; }
.burn-count svg { width: 13px; height: 13px; }
.voice-play svg { width: 14px; height: 14px; }
.voice-play { color: #55666f; }
.msg-meta span[title] { display: inline-flex; align-items: center; }
.msg-meta svg { width: 12px; height: 12px; color: #9aa8b4; }
.mg-ico svg { width: 26px; height: 26px; }
.btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }

/* 在线状态圆点 */
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin: 0 2px 0 1px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* 录音浮层 */
.rec-hint {
  position: fixed; left: 50%; bottom: 16%; transform: translateX(-50%);
  background: rgba(20, 32, 26, .78); color: #fff; border-radius: 20px; padding: 16px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 156px; z-index: 4000; pointer-events: none;
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  transition: background .15s;
}
.rec-hint.cancel { background: rgba(190, 40, 60, .85); }
.rec-hint .rh-wave { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.rec-hint .rh-wave i { width: 4px; height: 6px; border-radius: 2px; background: #5ee88a; animation: recwave .9s ease-in-out infinite; }
.rec-hint .rh-wave i:nth-child(2) { animation-delay: .12s; }
.rec-hint .rh-wave i:nth-child(3) { animation-delay: .24s; }
.rec-hint .rh-wave i:nth-child(4) { animation-delay: .36s; }
.rec-hint .rh-wave i:nth-child(5) { animation-delay: .48s; }
.rec-hint.cancel .rh-wave i { background: #ffd9d9; animation-play-state: paused; }
.rec-hint .rh-time { font-size: 1.08em; font-variant-numeric: tabular-nums; }
.rec-hint .rh-tip { font-size: .74em; color: rgba(255, 255, 255, .75); }
@keyframes recwave { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.rec-hint .rh-cancel { pointer-events: auto; margin-top: 2px; padding: 6px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .78em; cursor: pointer; }
.rec-hint .rh-cancel:hover { background: rgba(255, 255, 255, .3); }
.hold-btn { touch-action: none; }

/* 通话界面：头像填充脉冲环 */
.call-avatar-ring { overflow: hidden; }
.call-avatar-ring .avatar { width: 100%; height: 100%; border-radius: 50%; font-size: 28px; }
.call-ctrl .cc-btn svg { width: 26px; height: 26px; }

/* ── 通用细节 ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid rgba(10, 191, 107, .55); outline-offset: 2px; }
input, textarea, button { font-family: inherit; }
::selection { background: rgba(10, 191, 107, .25); }

/* 无 backdrop-filter 支持时的降级：提高表面不透明度 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass: rgba(255, 255, 255, .94); --glass-strong: rgba(255, 255, 255, .97); }
  .header, .tabbar, .input-bar { background: rgba(248, 250, 249, .97); }
  .bubble { background: #fff; }
  .msg-row.mine .bubble { background: linear-gradient(135deg, #2fd36b, #07b25c); }
  .modal, .sheet, .panel, .member-pop { background: rgba(252, 253, 252, .98); }
  .toast, .rec-hint { background: rgba(25, 35, 30, .92); }
}

/* 弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  #app::before, #app::after, .call-bg::after, .call-avatar-ring { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
