/* ═══════════════════════════════════════════════════════════
   三角洲护航指挥中心 - iOS 风格视觉增强层
   引入方式：在 style.css 后面加
   <link rel="stylesheet" href="css/enhance.css" />
═══════════════════════════════════════════════════════════ */

/* ─── 全局平滑渲染 ─── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════
   1. 全局景深 & 立体基础
══════════════════════════════════════════════════════════ */

/* body 添加径向光晕，营造空间感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,  rgba(0,212,160,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,166,35,0.04) 0%, transparent 60%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,  rgba(0,122,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,149,0,0.04) 0%, transparent 60%);
}


/* ══════════════════════════════════════════════════════════
   2. 顶部导航 — 玻璃拟态 + 立体感
══════════════════════════════════════════════════════════ */

.top-nav {
  background: rgba(19, 27, 34, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(0,212,160,0.15),
    0 4px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  border-bottom: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .top-nav {
  background: rgba(255,255,255,0.8) !important;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.08),
    0 4px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 导航品牌 logo 发光 */
.nav-logo {
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
  transition: filter 0.3s ease;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 16px rgba(245,166,35,0.8));
}

/* 导航按钮立体感 */
.nav-btn {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 0 0 1px var(--accent),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-btn:active {
  transform: scale(0.93) translateY(0);
  transition-duration: 0.08s;
}

[data-theme="light"] .nav-btn {
  background: rgba(0,0,0,0.03) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .nav-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), 0 0 0 1px var(--accent), inset 0 1px 0 #fff;
}


/* ══════════════════════════════════════════════════════════
   3. 侧边栏 — 深度层次
══════════════════════════════════════════════════════════ */

.sidebar {
  background: rgba(15, 20, 25, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 2px 0 24px rgba(0,0,0,0.4), inset -1px 0 0 rgba(0,212,160,0.08);
  border-right: none !important;
}

[data-theme="light"] .sidebar {
  background: rgba(248,248,252,0.92) !important;
  box-shadow: 2px 0 16px rgba(0,0,0,0.06), inset -1px 0 0 rgba(0,0,0,0.05);
}

/* 侧边栏 Tab 按钮 */
.sidebar-tab {
  border-radius: 0;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.sidebar-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,212,160,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-tab.active::after { opacity: 1; }
.sidebar-tab:active { transform: scale(0.96); }

/* 频道列表项悬浮波纹 */
.channel-item,
.private-item,
.online-list .user-item {
  transition: background 0.18s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease;
  border-radius: 8px;
  margin: 1px 6px;
  padding-left: 7px !important;
  padding-right: 7px !important;
}
.channel-item:hover,
.private-item:hover,
.online-list .user-item:hover {
  transform: translateX(3px);
  box-shadow: inset 2px 0 0 var(--accent), 2px 0 8px rgba(0,212,160,0.08);
}
.channel-item.active {
  box-shadow: inset 2px 0 0 var(--accent), 0 2px 8px rgba(0,212,160,0.12);
}
.channel-item:active,
.private-item:active { transform: scale(0.97) translateX(2px); }

/* 搜索框 */
.search-input {
  border-radius: 10px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.2);
}
.search-input:focus {
  background: rgba(0,212,160,0.05) !important;
  border-color: var(--accent) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.15), 0 0 0 3px rgba(0,212,160,0.1) !important;
}
[data-theme="light"] .search-input {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}


/* ══════════════════════════════════════════════════════════
   4. 聊天主区 — 质感提升
══════════════════════════════════════════════════════════ */

.chat-header {
  background: rgba(19,27,34,0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,212,160,0.1), 0 4px 16px rgba(0,0,0,0.2);
  border-bottom: none !important;
}
[data-theme="light"] .chat-header {
  background: rgba(255,255,255,0.85) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* 消息气泡 — 立体玻璃感 */
.msg-bubble {
  border-radius: 14px !important;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(4px);
}
.msg-bubble:hover {
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.message-item.own .msg-bubble {
  border-radius: 14px 4px 14px 14px !important;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.2),
    0 0 0 1px rgba(0,212,160,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.message-item:not(.own) .msg-bubble {
  border-radius: 4px 14px 14px 14px !important;
}

[data-theme="light"] .msg-bubble {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .message-item.own .msg-bubble {
  box-shadow: 0 1px 4px rgba(0,122,255,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* 消息头像悬浮 */
.msg-avatar {
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.msg-avatar:hover {
  transform: scale(1.12) translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* 新消息进入动画 */
.message-item {
  animation: msgSlideIn 0.25s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 系统消息 */
.system-message {
  background: rgba(0,212,160,0.04) !important;
  border-top: 1px solid rgba(0,212,160,0.08) !important;
  border-bottom: 1px solid rgba(0,212,160,0.08) !important;
  border-radius: 6px;
  margin: 8px 16px;
}


/* ══════════════════════════════════════════════════════════
   5. 输入区 — iOS 质感
══════════════════════════════════════════════════════════ */

.chat-input-area {
  background: rgba(19,27,34,0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,212,160,0.1) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
[data-theme="light"] .chat-input-area {
  background: rgba(255,255,255,0.9) !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.07) !important;
}

.message-input {
  border-radius: 18px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  line-height: 1.5 !important;
}
.message-input:focus {
  background: rgba(0,212,160,0.05) !important;
  border-color: rgba(0,212,160,0.5) !important;
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.1), 0 0 0 3px rgba(0,212,160,0.1) !important;
}
[data-theme="light"] .message-input {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06);
}

/* 发送按钮 — iOS 风格弹性 */
.send-btn {
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  box-shadow:
    0 3px 12px rgba(0,212,160,0.4),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.send-btn:hover {
  transform: scale(1.1) translateY(-1px) !important;
  box-shadow:
    0 6px 20px rgba(0,212,160,0.5),
    0 2px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.send-btn:active {
  transform: scale(0.9) !important;
  transition-duration: 0.08s !important;
  box-shadow: 0 1px 4px rgba(0,212,160,0.3) !important;
}
[data-theme="light"] .send-btn {
  box-shadow: 0 3px 12px rgba(0,122,255,0.35), 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 工具栏按钮 */
.toolbar-btn {
  border-radius: 10px !important;
  transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.toolbar-btn:hover {
  transform: scale(1.15) translateY(-1px);
  background: rgba(0,212,160,0.12) !important;
}
.toolbar-btn:active { transform: scale(0.9); transition-duration: 0.08s !important; }


/* ══════════════════════════════════════════════════════════
   6. 主按钮 — 立体 + 弹性
══════════════════════════════════════════════════════════ */

.btn-primary {
  border-radius: 12px !important;
  box-shadow:
    0 0 0 1px rgba(0,212,160,0.3),
    0 4px 16px rgba(0,212,160,0.2),
    0 1px 3px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1) !important;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0,212,160,0.5),
    0 8px 24px rgba(0,212,160,0.35),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
.btn-primary:active {
  transform: scale(0.96) !important;
  transition-duration: 0.08s !important;
  box-shadow:
    0 0 0 1px rgba(0,212,160,0.3),
    0 2px 8px rgba(0,212,160,0.15),
    inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

[data-theme="light"] .btn-primary {
  box-shadow: 0 0 0 1px rgba(0,122,255,0.3), 0 4px 16px rgba(0,122,255,0.2), 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* 危险按钮 */
.btn-danger-outline {
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.btn-danger-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(231,76,60,0.25), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.btn-danger-outline:active {
  transform: scale(0.96);
  transition-duration: 0.08s !important;
}


/* ══════════════════════════════════════════════════════════
   7. 模态框 — 玻璃 + 弹入
══════════════════════════════════════════════════════════ */

.modal-overlay {
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  background: rgba(0,0,0,0.6) !important;
}

.modal {
  background: rgba(19,27,34,0.92) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  border-radius: 20px !important;
  animation: modalSpring 0.35s cubic-bezier(0.34,1.56,0.64,1) !important;
}
@keyframes modalSpring {
  from { opacity:0; transform: scale(0.88) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

[data-theme="light"] .modal {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

.close-btn {
  border-radius: 50% !important;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.close-btn:hover {
  background: rgba(231,76,60,0.15) !important;
  border-color: rgba(231,76,60,0.3) !important;
  transform: scale(1.12) rotate(90deg);
  color: var(--red) !important;
}
.close-btn:active { transform: scale(0.88); transition-duration: 0.08s !important; }

[data-theme="light"] .close-btn {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.08) !important;
}


/* ══════════════════════════════════════════════════════════
   8. 底部导航 — 毛玻璃 + 弹跳
══════════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  background: rgba(19,27,34,0.82) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: none !important;
  box-shadow:
    0 -1px 0 rgba(0,212,160,0.12),
    0 -4px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255,255,255,0.88) !important;
  box-shadow:
    0 -1px 0 rgba(0,0,0,0.07),
    0 -4px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.bottom-nav-item {
  border-radius: 12px;
  margin: 4px 2px;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) scaleX(0);
}
.bottom-nav-item.active::before {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.bottom-nav-item.active {
  background: rgba(0,212,160,0.08);
}
.bottom-nav-item:active {
  transform: scale(0.88);
  transition-duration: 0.1s;
}
.bottom-nav-item i {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.bottom-nav-item.active i {
  transform: scale(1.15) translateY(-1px);
}


/* ══════════════════════════════════════════════════════════
   9. 输入框全局增强
══════════════════════════════════════════════════════════ */

.form-input {
  border-radius: 12px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1.5px solid rgba(255,255,255,0.09) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.15);
  transition: all 0.2s ease !important;
}
.form-input:focus {
  background: rgba(0,212,160,0.04) !important;
  border-color: rgba(0,212,160,0.45) !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.1), 0 0 0 3px rgba(0,212,160,0.1) !important;
}
[data-theme="light"] .form-input {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="light"] .form-input:focus {
  background: rgba(0,122,255,0.04) !important;
  border-color: rgba(0,122,255,0.4) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04), 0 0 0 3px rgba(0,122,255,0.1) !important;
}


/* ══════════════════════════════════════════════════════════
   10. 头像 — 立体 + 发光
══════════════════════════════════════════════════════════ */

.user-avatar-sm {
  box-shadow:
    0 0 0 2px var(--bg-panel),
    0 0 0 3px var(--accent),
    0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.user-avatar-sm:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 2px var(--bg-panel),
    0 0 0 3px var(--accent),
    0 0 16px var(--accent-glow),
    0 6px 16px rgba(0,0,0,0.4);
}

.private-avatar,
.online-avatar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
}
.private-item:hover .private-avatar,
.online-list .user-item:hover .online-avatar {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}


/* ══════════════════════════════════════════════════════════
   11. 滚动条优化
══════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,212,160,0.25);
  border-radius: 2px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,160,0.5); }

[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }


/* ══════════════════════════════════════════════════════════
   12. Toast 通知 — 弹入增强
══════════════════════════════════════════════════════════ */

.toast {
  border-radius: 14px !important;
  background: rgba(19,27,34,0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.4),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  animation: toastSpring 0.38s cubic-bezier(0.34,1.56,0.64,1) !important;
}
@keyframes toastSpring {
  from { opacity:0; transform: translateX(110%); }
  to   { opacity:1; transform: translateX(0); }
}
[data-theme="light"] .toast {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.07), inset 0 1px 0 #fff !important;
}


/* ══════════════════════════════════════════════════════════
   13. 个人中心 Profile 组件
══════════════════════════════════════════════════════════ */

.sp-hero-card {
  background: linear-gradient(135deg,
    rgba(0,212,160,0.08) 0%,
    rgba(19,27,34,0.6) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,212,160,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="light"] .sp-hero-card {
  background: linear-gradient(135deg, rgba(0,122,255,0.06) 0%, rgba(248,248,252,0.8) 100%) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.sp-avatar {
  box-shadow:
    0 0 0 3px rgba(0,212,160,0.3),
    0 0 0 5px rgba(0,212,160,0.1),
    0 6px 20px rgba(0,0,0,0.35),
    0 0 24px rgba(0,212,160,0.2) !important;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.sp-avatar-wrap:hover .sp-avatar {
  box-shadow:
    0 0 0 3px rgba(0,212,160,0.5),
    0 0 0 6px rgba(0,212,160,0.15),
    0 8px 28px rgba(0,0,0,0.4),
    0 0 32px rgba(0,212,160,0.3) !important;
  transform: scale(1.04);
}

.sp-menu-item {
  transition: all 0.18s ease;
  border-radius: 10px;
  margin: 0 6px;
}
.sp-menu-item:hover {
  transform: translateX(4px);
}
.sp-menu-item:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.sp-menu-arrow {
  transition: transform 0.2s ease;
}
.sp-menu-item:hover .sp-menu-arrow {
  transform: translateX(3px);
}

.sp-stat-card {
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 10px;
  margin: 4px;
}
.sp-stat-card:hover {
  background: var(--bg-hover) !important;
  transform: scale(1.04);
}
.sp-stat-card:active { transform: scale(0.96); transition-duration: 0.08s; }

.sp-action-item {
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.sp-action-item:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2) !important;
}
.sp-action-item:active {
  transform: scale(0.92) !important;
  transition-duration: 0.1s !important;
}

.sp-edit-btn {
  border-radius: 10px !important;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.sp-edit-btn:hover { transform: scale(1.12) rotate(5deg) !important; }
.sp-edit-btn:active { transform: scale(0.9) !important; transition-duration: 0.08s !important; }


/* ══════════════════════════════════════════════════════════
   14. 认证页面 — 登录卡片增强
══════════════════════════════════════════════════════════ */

.auth-panel {
  background: rgba(19,27,34,0.88) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  border-radius: 20px !important;
  animation: authPanelIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.1s;
}
@keyframes authPanelIn {
  from { opacity:0; transform: translateY(32px) scale(0.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
[data-theme="light"] .auth-panel {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.07), inset 0 1px 0 #fff !important;
}

.auth-brand {
  animation: brandIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes brandIn {
  from { opacity:0; transform: translateY(-20px); }
  to   { opacity:1; transform: translateY(0); }
}

.tab-btn {
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover { background: rgba(0,212,160,0.05); }
.tab-btn:active { transform: scale(0.97); }

/* 面板角装饰增强 */
.panel-corner {
  width: 14px; height: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.auth-panel:hover .panel-corner { opacity: 1; }


/* ══════════════════════════════════════════════════════════
   15. 欢迎页面 — 空态增强
══════════════════════════════════════════════════════════ */

.welcome-hex {
  text-shadow: 0 0 60px rgba(245,166,35,0.3);
  animation: hexFloat 4s ease-in-out infinite;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

.tip-item {
  border-radius: 14px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  animation: tipCardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.tip-item:nth-child(1) { animation-delay: 0.1s; }
.tip-item:nth-child(2) { animation-delay: 0.2s; }
.tip-item:nth-child(3) { animation-delay: 0.3s; }
@keyframes tipCardIn {
  from { opacity:0; transform: translateY(16px) scale(0.95); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.tip-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0,212,160,0.2) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,212,160,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="light"] .tip-item {
  background: rgba(255,255,255,0.8) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 #fff;
}


/* ══════════════════════════════════════════════════════════
   16. 状态标签 & 徽章 — 立体感
══════════════════════════════════════════════════════════ */

.user-role-badge,
.my-role-badge {
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.channel-badge {
  box-shadow: 0 2px 6px rgba(231,76,60,0.4);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(231,76,60,0.4); }
  50%       { box-shadow: 0 2px 12px rgba(231,76,60,0.7); }
}

.online-dot {
  box-shadow: 0 0 0 0 rgba(0,212,160,0.4);
  animation: onlinePing 2s ease-out infinite;
}
@keyframes onlinePing {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,160,0.5); }
  70%  { box-shadow: 0 0 0 5px rgba(0,212,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,160,0); }
}


/* ══════════════════════════════════════════════════════════
   17. 右键菜单 — 玻璃拟态
══════════════════════════════════════════════════════════ */

.context-menu {
  background: rgba(24,35,46,0.92) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  animation: ctxIn 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
  overflow: hidden;
}
@keyframes ctxIn {
  from { opacity:0; transform: scale(0.9); }
  to   { opacity:1; transform: scale(1); }
}
.ctx-item {
  border-radius: 8px;
  margin: 2px 4px;
  transition: all 0.15s ease;
}
.ctx-item:hover { transform: translateX(2px); }
.ctx-item:active { transform: scale(0.96); }

[data-theme="light"] .context-menu {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.07), inset 0 1px 0 #fff !important;
}


/* ══════════════════════════════════════════════════════════
   18. 频道进入 / 聊天页面切换动画
══════════════════════════════════════════════════════════ */

.chat-view.active {
  animation: chatViewIn 0.3s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes chatViewIn {
  from { opacity:0; transform: translateX(12px); }
  to   { opacity:1; transform: translateX(0); }
}

/* 成员面板滑入 */
.member-panel {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
}

/* 加载骨架闪光优化 */
.loading-shimmer {
  border-radius: 10px !important;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.03) 80%
  ) !important;
  background-size: 300% 100% !important;
  animation: shimmerSmooth 1.8s ease-in-out infinite !important;
}
@keyframes shimmerSmooth {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* 空状态图标 */
.empty-icon {
  display: block;
  opacity: 0.4;
  animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}


/* ══════════════════════════════════════════════════════════
   19. 滚动到底部按钮
══════════════════════════════════════════════════════════ */

.scroll-bottom-btn {
  border-radius: 50% !important;
  background: rgba(19,27,34,0.88) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,160,0.25) !important;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,212,160,0.1),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.scroll-bottom-btn:hover {
  transform: scale(1.15) translateY(-2px) !important;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.4),
    0 0 12px rgba(0,212,160,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.scroll-bottom-btn:active { transform: scale(0.9) !important; transition-duration: 0.08s !important; }


/* ══════════════════════════════════════════════════════════
   20. 打字动画 & 状态指示器
══════════════════════════════════════════════════════════ */

.status-dot {
  box-shadow: 0 0 6px rgba(0,212,160,0.5);
}

.nav-status {
  background: rgba(0,212,160,0.06) !important;
  border: 1px solid rgba(0,212,160,0.15) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 0 12px rgba(0,212,160,0.06);
  transition: all 0.3s ease;
}
.nav-status:hover {
  background: rgba(0,212,160,0.1) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 16px rgba(0,212,160,0.12);
}

/* 时钟区域 */
.nav-time {
  text-shadow: 0 0 20px rgba(245,166,35,0.4);
  transition: text-shadow 0.3s ease;
}
.nav-center:hover .nav-time {
  text-shadow: 0 0 30px rgba(245,166,35,0.6);
}



/* ══════════════════════════════════════════════════════════
   21. 手机端专属增强 (≤ 640px)
══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* ── 侧边栏全屏毛玻璃 ── */
  .sidebar {
    background: rgba(12, 17, 22, 0.96) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
  }
  [data-theme="light"] .sidebar {
    background: rgba(245, 246, 250, 0.97) !important;
  }

  /* ── 聊天主区滑入时更强的毛玻璃底色 ── */
  .chat-layout.chat-active .chat-main {
    background: var(--bg-void);
  }

  /* ── 顶部导航加深玻璃感 ── */
  .top-nav {
    background: rgba(13, 19, 26, 0.88) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow:
      0 1px 0 rgba(0,212,160,0.18),
      0 2px 16px rgba(0,0,0,0.45),
      inset 0 1px 0 rgba(255,255,255,0.05) !important;
  }
  [data-theme="light"] .top-nav {
    background: rgba(255,255,255,0.9) !important;
  }

  /* ── 底部导航更强质感 ── */
  .mobile-bottom-nav {
    background: rgba(13, 19, 26, 0.9) !important;
    backdrop-filter: blur(32px) saturate(220%);
    -webkit-backdrop-filter: blur(32px) saturate(220%);
    box-shadow:
      0 -1px 0 rgba(0,212,160,0.18),
      0 -6px 32px rgba(0,0,0,0.45),
      inset 0 1px 0 rgba(255,255,255,0.05) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone 刘海适配 */
  }
  [data-theme="light"] .mobile-bottom-nav {
    background: rgba(255,255,255,0.94) !important;
    box-shadow:
      0 -1px 0 rgba(0,0,0,0.08),
      0 -6px 24px rgba(0,0,0,0.07),
      inset 0 1px 0 #fff !important;
  }

  /* 底部 tab 点击水波纹效果 */
  .bottom-nav-item {
    -webkit-tap-highlight-color: transparent;
    margin: 3px 1px;
  }
  .bottom-nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(0,212,160,0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .bottom-nav-item:active::after { opacity: 1; }
  .bottom-nav-item:active {
    transform: scale(0.84);
    transition-duration: 0.08s;
  }

  /* ── 消息气泡手机端尺寸优化 ── */
  .msg-bubble {
    border-radius: 16px !important;
    font-size: 0.9rem;
    padding: 9px 13px;
    box-shadow:
      0 2px 8px rgba(0,0,0,0.28),
      inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }
  .message-item.own .msg-bubble {
    border-radius: 16px 5px 16px 16px !important;
    box-shadow:
      0 2px 8px rgba(0,0,0,0.22),
      0 0 0 1px rgba(0,212,160,0.22),
      inset 0 1px 0 rgba(255,255,255,0.12) !important;
  }
  .message-item:not(.own) .msg-bubble {
    border-radius: 5px 16px 16px 16px !important;
  }
  [data-theme="light"] .msg-bubble {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  }

  /* 消息动画手机端更流畅 */
  .message-item {
    animation: msgSlideInMobile 0.22s cubic-bezier(0.25,0.46,0.45,0.94) both;
  }
  @keyframes msgSlideInMobile {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ── 输入区手机端增强 ── */
  .chat-input-area {
    background: rgba(14, 20, 28, 0.94) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    box-shadow: 0 -3px 20px rgba(0,0,0,0.35), 0 -1px 0 rgba(0,212,160,0.12) !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  [data-theme="light"] .chat-input-area {
    background: rgba(255,255,255,0.96) !important;
  }

  .message-input {
    border-radius: 20px !important;
    font-size: 1rem !important;
    padding: 10px 14px !important;
  }

  /* 发送按钮手机端更大 */
  .send-btn {
    width: 44px !important;
    height: 44px !important;
    box-shadow:
      0 4px 16px rgba(0,212,160,0.45),
      0 2px 4px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.25) !important;
  }
  .send-btn:active {
    transform: scale(0.86) !important;
    transition-duration: 0.06s !important;
  }

  /* 工具栏按钮手机端更易点击 */
  .toolbar-btn {
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
  }
  .toolbar-btn:active {
    transform: scale(0.84) !important;
    background: rgba(0,212,160,0.15) !important;
    transition-duration: 0.06s !important;
  }

  /* ── 聊天头部手机端增强 ── */
  .chat-header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,212,160,0.12), 0 2px 12px rgba(0,0,0,0.25) !important;
  }

  /* 返回按钮更大点击区域 */
  .back-btn {
    padding: 10px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    -webkit-tap-highlight-color: transparent;
  }
  .back-btn:active {
    background: rgba(0,212,160,0.12) !important;
    transform: scale(0.9);
    transition-duration: 0.08s;
  }

  /* header 按钮手机端更大 */
  .header-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    -webkit-tap-highlight-color: transparent;
  }
  .header-btn:active {
    transform: scale(0.88);
    transition-duration: 0.08s;
  }

  /* ── 列表项手机端点击优化 ── */
  .channel-item,
  .private-item,
  .online-list .user-item {
    padding: 10px 7px !important;
    border-radius: 10px !important;
    margin: 1px 5px !important;
    -webkit-tap-highlight-color: transparent;
  }
  .channel-item:active,
  .private-item:active,
  .online-list .user-item:active {
    transform: scale(0.96) !important;
    background: var(--bg-hover) !important;
    transition-duration: 0.08s !important;
  }

  /* ── 个人中心手机端增强 ── */
  .sp-hero-card {
    padding: 20px 14px 16px !important;
    background: linear-gradient(145deg,
      rgba(0,212,160,0.1) 0%,
      rgba(13,19,26,0.7) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  [data-theme="light"] .sp-hero-card {
    background: linear-gradient(145deg,
      rgba(0,122,255,0.08) 0%,
      rgba(248,248,252,0.9) 100%) !important;
  }

  .sp-avatar {
    width: 64px !important;
    height: 64px !important;
    box-shadow:
      0 0 0 3px rgba(0,212,160,0.35),
      0 0 0 6px rgba(0,212,160,0.1),
      0 8px 24px rgba(0,0,0,0.4),
      0 0 30px rgba(0,212,160,0.25) !important;
  }

  .sp-menu-item {
    padding: 16px 14px !important;
    -webkit-tap-highlight-color: transparent;
    margin: 0 4px !important;
  }
  .sp-menu-item:active {
    transform: scale(0.97) !important;
    background: var(--bg-hover) !important;
    transition-duration: 0.08s !important;
  }

  /* ── 模态框手机端底部弹出增强 ── */
  .modal {
    border-radius: 24px 24px 0 0 !important;
    animation: modalSheetIn 0.38s cubic-bezier(0.34,1.2,0.64,1) both !important;
    box-shadow:
      0 -8px 40px rgba(0,0,0,0.6),
      0 -2px 12px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }
  @keyframes modalSheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  [data-theme="light"] .modal {
    box-shadow:
      0 -8px 40px rgba(0,0,0,0.15),
      0 -2px 12px rgba(0,0,0,0.08),
      inset 0 1px 0 #fff !important;
  }

  /* 模态框顶部拖拽指示条 */
  .modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    margin: 10px auto -4px;
    flex-shrink: 0;
  }
  [data-theme="light"] .modal::before {
    background: rgba(0,0,0,0.15);
  }

  /* ── Toast 手机端底部弹入 ── */
  .toast-container {
    left: 12px !important;
    right: 12px !important;
  }
  .toast {
    border-radius: 16px !important;
    box-shadow:
      0 8px 28px rgba(0,0,0,0.45),
      0 2px 8px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.07) !important;
    animation: toastMobileIn 0.36s cubic-bezier(0.34,1.4,0.64,1) both !important;
  }
  @keyframes toastMobileIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ── 搜索框手机端 ── */
  .search-input {
    border-radius: 12px !important;
    font-size: 1rem !important;
    padding: 9px 10px 9px 32px !important;
  }

  /* ── 欢迎页面提示卡片 ── */
  .tip-item {
    border-radius: 16px !important;
    box-shadow:
      0 4px 20px rgba(0,0,0,0.25),
      inset 0 1px 0 rgba(255,255,255,0.05) !important;
  }
  .tip-item:active {
    transform: scale(0.96) !important;
    transition-duration: 0.08s !important;
  }

  /* ── 主按钮手机端 ── */
  .btn-primary {
    border-radius: 14px !important;
    min-height: 50px !important;
    font-size: 0.88rem !important;
  }
  .btn-primary:active {
    transform: scale(0.94) !important;
    transition-duration: 0.07s !important;
  }

  .btn-danger-outline {
    border-radius: 14px !important;
    min-height: 48px !important;
  }
  .btn-danger-outline:active {
    transform: scale(0.94) !important;
    transition-duration: 0.07s !important;
  }

  /* ── 全局禁止系统高亮 ── */
  button, a, [onclick] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* ── 滚动到底部按钮手机端 ── */
  .scroll-bottom-btn {
    width: 38px !important;
    height: 38px !important;
    bottom: 16px !important;
    right: 16px !important;
    box-shadow:
      0 4px 18px rgba(0,0,0,0.45),
      0 0 12px rgba(0,212,160,0.2),
      inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }
  .scroll-bottom-btn:active {
    transform: scale(0.84) !important;
    transition-duration: 0.06s !important;
  }

  /* ── 右键菜单手机端底部弹入 ── */
  .context-menu {
    border-radius: 18px !important;
    animation: ctxMobileIn 0.28s cubic-bezier(0.34,1.4,0.64,1) !important;
    box-shadow:
      0 12px 40px rgba(0,0,0,0.55),
      0 4px 16px rgba(0,0,0,0.3),
      inset 0 1px 0 rgba(255,255,255,0.07) !important;
    min-width: 180px;
  }
  @keyframes ctxMobileIn {
    from { opacity: 0; transform: scale(0.85) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  .ctx-item {
    padding: 13px 16px !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
    margin: 2px 5px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }
  .ctx-item:active {
    transform: scale(0.96) !important;
    transition-duration: 0.07s !important;
  }

  /* ── 表情选择器手机端 ── */
  .emoji-picker {
    border-radius: 18px !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }
  .emoji-btn {
    border-radius: 10px !important;
    min-height: 36px !important;
    -webkit-tap-highlight-color: transparent;
  }
  .emoji-btn:active {
    transform: scale(0.82) !important;
    background: rgba(0,212,160,0.15) !important;
    transition-duration: 0.06s !important;
  }
  
  .bottom-nav-item::before{
      top: auto;
      bottom: 4px;
  }
}

/* ── 超小屏幕 ≤ 380px 额外适配 ── */
@media (max-width: 380px) {
  .msg-bubble { font-size: 0.86rem !important; padding: 8px 11px !important; }
  .send-btn { width: 40px !important; height: 40px !important; }
  .sp-avatar { width: 56px !important; height: 56px !important; }
  .bottom-nav-item { font-size: 0.58rem !important; }
  .bottom-nav-item i { font-size: 1rem !important; }
}