    /* BBM 状态字母：D（送达） / R（已读） */
    .bbm-status {
      width: 15px;
      height: 15px;
      border-radius: 4px;
      font-size: 9px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .bbm-status.delivered {
      background: rgba(255, 255, 255, 0.12);
      color: #D8C9E8;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .bbm-status.read {
      background: rgba(92, 224, 168, 0.2);
      color: #6BF0B8;
      border: 1px solid rgba(107, 240, 184, 0.55);
      box-shadow: 0 0 8px rgba(107, 240, 184, 0.3);
      transform: scale(1.08);
    }

    .msg-bubble.sticker-bubble {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 2px 3px;
      font-size: 32px;
      line-height: 1.1;
      filter: drop-shadow(0 4px 10px rgba(244, 154, 193, 0.35));
    }
    .voice-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }
    .voice-waves {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      height: 12px;
    }
    .voice-waves span {
      width: 2px;
      background: currentColor;
      border-radius: 2px;
    }
    .msg-img {
      max-width: 156px;
      max-height: 120px;
      border-radius: 8px;
      display: block;
      object-fit: cover;
      border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .bb-drawer {
      position: absolute;
      left: 5px;
      right: 5px;
      bottom: 42px;
      background: rgba(18, 12, 34, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 162, 76, 0.45);
      border-radius: 10px;
      padding: 7px;
      z-index: 12;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
      display: none;
    }
    .bb-drawer.show {
      display: block;
      animation: drawerIn 0.18s ease-out;
    }
    @keyframes drawerIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    #voice-recording-banner {
      position: absolute;
      left: 6px;
      right: 6px;
      bottom: 43px;
      background: rgba(244, 154, 193, 0.95);
      color: #210A1A;
      border-radius: 9px;
      padding: 6px 9px;
      font-size: 11px;
      font-weight: 600;
      display: none;
      align-items: center;
      justify-content: space-between;
      z-index: 14;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }
    #voice-recording-banner.active {
      display: flex;
    }
    .rec-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #e11d48;
      animation: pulseRec 0.8s infinite;
    }
    @keyframes pulseRec {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.35; transform: scale(0.75); }
    }

    /* BBM 底部输入框（16px 字号避免移动端 Safari 聚焦时自动放大页面） */
    .bb-input-bar {
      height: 38px;
      padding: 4px 6px;
      display: flex;
      align-items: center;
      gap: 5px;
      background: rgba(12, 9, 24, 0.94);
      border-top: 1px solid rgba(212, 162, 76, 0.22);
      flex-shrink: 0;
    }
    #bb-chat-input {
      flex: 1;
      min-width: 0;
      height: 30px;
      background: rgba(34, 24, 58, 0.9);
      border: 1px solid rgba(244, 154, 193, 0.32);
      border-radius: 8px;
      padding: 0 9px;
      font-size: 16px;
      color: #FFF4FA;
      outline: none;
      user-select: text;
    }
    #bb-chat-input.kb-locked {
      cursor: pointer;
      caret-color: transparent;
      border-color: rgba(212, 162, 76, 0.36);
    }
    #bb-chat-input::placeholder {
      color: rgba(235, 206, 224, 0.48);
      font-size: 13px;
    }
    #bb-chat-input:focus {
      border-color: #F49AC1;
      box-shadow: 0 0 0 1.5px rgba(244, 154, 193, 0.25);
    }
    #bb-send-mini {
      height: 30px;
      padding: 0 10px;
      border-radius: 8px;
      border: none;
      background: linear-gradient(135deg, #F49AC1, #D4A24C);
      color: #1A0A14;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.12s ease;
    }
    #bb-send-mini:active {
      transform: scale(0.92);
    }

    /* 实体键盘展开时点击输入框浮出的轻提示气泡 */
    .kb-lock-toast {
      position: absolute;
      left: 50%;
      bottom: 48px;
      transform: translateX(-50%) translateY(8px) scale(0.92);
      z-index: 25;
      padding: 7px 13px;
      border-radius: 999px;
      background: rgba(22, 14, 42, 0.94);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 162, 76, 0.72);
      color: #FFF3F9;
      font-size: 12px;
      font-weight: 500;
      white-space: nowrap;
      letter-spacing: 0.02em;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(244, 154, 193, 0.28);
      pointer-events: none;
      opacity: 0;
      transition:
        opacity 0.22s ease,
        transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .kb-lock-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }

    /* =========================================================================
       BB10 标志性底部上划手势热区 + Torch 滑盖推拉交界条
       ========================================================================= */
    .bb10-gesture-chin {
      width: 100%;
      padding: 2px 10px 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
      cursor: ns-resize;
      touch-action: none;
      position: relative;
      user-select: none;
      flex-shrink: 0;
      overflow: hidden;
      transition: padding 0.24s ease, height 0.24s ease, opacity 0.2s ease;
    }
    /* 交界处左右两枚金属滑块微光，呼应机身两侧金属滑轨 */
    .bb10-gesture-chin::before,
    .bb10-gesture-chin::after {
      content: '';
      position: absolute;
      bottom: 1.5px;
      width: 14px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, #94A3B8, #F8FAFC, #94A3B8);
      opacity: 0.65;
      transition: opacity 0.2s ease, width 0.2s ease;
    }
    .bb10-gesture-chin::before { left: 8px; }
    .bb10-gesture-chin::after { right: 8px; }
    .bb-phone.is-sliding .bb10-gesture-chin::before,
    .bb-phone.is-sliding .bb10-gesture-chin::after {
      opacity: 1;
      width: 20px;
      box-shadow: 0 0 8px rgba(248, 250, 252, 0.85);
    }
    /* 系统键盘弹出时收起下巴留白，让聊天区+输入框零缝隙紧贴底部金边 */
    .bb-phone.sys-kb-open .bb10-gesture-chin {
      height: 0;
      padding: 0;
      opacity: 0;
      pointer-events: none;
    }
    .bb10-gesture-chin:active {
      cursor: grabbing;
    }
    .bb10-swipe-pill {
      width: 52px;
      height: 2.5px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(244, 154, 193, 0.45), rgba(255, 238, 195, 0.92), rgba(244, 154, 193, 0.45));
      box-shadow: 0 0 8px rgba(244, 154, 193, 0.45);
      transition: width 0.2s ease, transform 0.2s ease;
    }
    .bb10-gesture-chin:hover .bb10-swipe-pill {
      width: 66px;
    }
    .bb10-chin-label {
      font-size: 7.5px;
      line-height: 1.1;
      letter-spacing: 0.2em;
      font-weight: 600;
      color: rgba(226, 232, 240, 0.72);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
    }
    .bb-phone.theme-pink .bb10-chin-label {
      color: #FFF6DC;
      text-shadow: 0 1px 3px rgba(135, 45, 88, 0.65);
    }

    /* =========================================================================
       黑莓 Q10 经典实体全键盘（下层滑槽，随上层屏幕下滑收入机身内部）
       ========================================================================= */
    .bb-keyboard-wrap {
      position: absolute;
      left: 5px;
      right: 5px;
      bottom: 0;
      height: var(--kb-h, 188px);
      z-index: 2;
      overflow: hidden;
      transform-origin: center bottom;
      transform: translateY(calc(var(--slide-p, 0) * 18px)) scale(calc(1 - var(--slide-p, 0) * 0.032));
      filter: brightness(calc(1 - var(--slide-p, 0) * 0.48));
      will-change: transform, filter;
    }
    .bb-phone.kb-collapsed:not(.is-sliding) .bb-keyboard-wrap {
      pointer-events: none;
    }
    .bb-phone.sys-kb-open .bb-keyboard-wrap {
      opacity: 0;
      pointer-events: none;
    }

    /* 系统键盘弹出时隐藏下方额外槽位，输入框零缝隙紧贴底部金边 */
    .bb-sys-kb-slot {
      display: none;
      height: 0;
      opacity: 0;
      pointer-events: none;
    }

    .bb-keyboard {
      border-radius: 6px 6px 20px 20px;
      padding: 0 0 3px;
      background: #0B0912;
      border: 1px solid rgba(212, 162, 76, 0.35);
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow: hidden;
      box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85);
    }
    .bb-phone.theme-pink .bb-keyboard {
      background: rgba(156, 68, 108, 0.42);
      border-color: rgba(255, 228, 165, 0.58);
    }

    /* Q10 灵魂：贯穿左右边缘的拉丝亮银色金属细横条（琴格 Fret） */
    .bb-fret {
      width: 100%;
      height: 3px;
      margin: 0;
      position: relative;
      z-index: 2;
      background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #E2E8F0 35%,
        #94A3B8 72%,
        #475569 100%
      );
      box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.88),
        0 -1px 1px rgba(0, 0, 0, 0.65),
        inset 0 0 6px rgba(255, 255, 255, 0.45);
    }

    .bb-key-row {
      display: grid;
      gap: 2px;
      padding: 2px 2px;
    }
    .bb-key-row.row-10 {
      grid-template-columns: repeat(10, 1fr);
    }
    .bb-key-row.row-bottom {
      grid-template-columns: 1.25fr 1.25fr 3.3fr 1.25fr 1.45fr;
    }

    .bb-key {
      height: 40px;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 2px solid rgba(0, 0, 0, 0.92);
      background: linear-gradient(180deg, #2D273B 0%, #171421 58%, #0E0B15 100%);
      color: #F4EAF7;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      padding: 0;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(0, 0, 0, 0.72);
      transition: transform 0.07s ease, background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    }
    .bb-phone.theme-pink .bb-key {
      background: linear-gradient(180deg, #FFE4F0 0%, #F5B5D2 62%, #E28EB5 100%);
      color: #3D1229;
      border-color: rgba(255, 255, 255, 0.55);
      border-bottom: 2px solid rgba(153, 62, 104, 0.72);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(120, 38, 76, 0.35);
    }

    .bb-key .k-main {
      font-size: 11.5px;
      font-weight: 600;
      line-height: 1;
    }
    .bb-key .k-sub {
      font-size: 7px;
      opacity: 0.58;
      line-height: 1;
      margin-top: 3px;
    }

    /* 快捷键微金装饰 */
    .bb-key.shortcut-key {
      border-color: rgba(212, 162, 76, 0.52);
      background: linear-gradient(180deg, #3A2C4A 0%, #221830 70%, #171022 100%);
    }
    .bb-phone.theme-pink .bb-key.shortcut-key {
      background: linear-gradient(180deg, #FFF3FA 0%, #F9C5DF 65%, #E89EC2 100%);
      border-color: rgba(212, 162, 76, 0.85);
    }
    .bb-key.enter-key {
      background: linear-gradient(180deg, #E2B866 0%, #C28E36 100%);
      color: #1D1004;
      border-color: #FFF0C4;
    }
    .bb-key.enter-key .k-sub {
      opacity: 0.85;
      font-weight: 600;
    }

    /* 实体按键下陷 + 闪光反馈 */
    .bb-key.pressed {
      transform: translateY(2px) scale(0.92);
      border-bottom-width: 1px;
      background: linear-gradient(180deg, #F49AC1 0%, #D4A24C 100%) !important;
      color: #1A0814 !important;
      border-color: #FFF4D6 !important;
      box-shadow: 0 0 12px rgba(244, 154, 193, 0.9), inset 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    }

    /* =========================================================================
       黑莓 Q10 · 3D 立体机身（正面 / 背面 / 10mm 金色金属圆角侧边 + 按键与接口）
       ========================================================================= */
    .bb-phone-scaler {
      perspective: var(--bb-persp, 1300px);
      perspective-origin: 50% 50%;
      z-index: 1;
    }
    .bb-top-actions { position: relative; z-index: 5; }
    .bb-flipper {
      position: relative;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      transform-origin: 50% 50% 0;
      will-change: transform;
      cursor: grab;
    }
    .bb-flipper.dragging { cursor: grabbing; }
    .bb-body-3d {
      position: relative;
      width: 326px;
      height: 556px;
      transform-origin: top left;
      transform: scale3d(var(--bb-scale, 1), var(--bb-scale, 1), var(--bb-scale, 1));
      transform-style: preserve-3d;
    }
    .bb-body-3d .bb-phone {
      position: absolute;
      inset: 0;
      transform-origin: center;
      transform: translateZ(23px);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      cursor: auto;
    }
    .bb-flipper.show-back .bb-phone { pointer-events: none; }
    .bb-back-face {
      position: absolute;
      inset: 0;
      width: 326px;
      height: 556px;
      transform-origin: center;
      transform: rotateY(180deg) translateZ(23px);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      pointer-events: none;
    }
    .bb-flipper.show-back .bb-back-face { pointer-events: auto; }
    #bb-overlay.sys-kb-open .bb-flipper { transform: none !important; }
    #bb-overlay.sys-kb-open .bb-body-3d {
      width: 100%;
      height: 100%;
      transform: none !important;
      transform-style: flat;
    }
    #bb-overlay.sys-kb-open .bb-body-3d .bb-phone {
      position: relative;
      transform: none !important;
    }
    #bb-overlay.sys-kb-open .bb-back-face,
    #bb-overlay.sys-kb-open .bb-side-shell { display: none !important; }


    /* 牛奶白釉面：下巴字样与实体全键盘 */
    .bb-phone.theme-milk .bb10-chin-label {
      color: #6B563E;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    }
    .bb-phone.theme-milk .bb-keyboard {
      background: rgba(188, 174, 152, 0.45);
      border-color: rgba(212, 162, 76, 0.65);
      box-shadow: inset 0 2px 5px rgba(105, 88, 64, 0.32);
    }
    .bb-phone.theme-milk .bb-key {
      background: linear-gradient(180deg, #FFFFFF 0%, #F7F1E6 62%, #E5DAC6 100%);
      color: #3B2E22;
      border-color: rgba(255, 255, 255, 0.85);
      border-bottom: 2px solid rgba(154, 134, 108, 0.68);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(112, 94, 70, 0.28);
    }
    .bb-phone.theme-milk .bb-key.shortcut-key {
      background: linear-gradient(180deg, #FFFDF5 0%, #F8EED9 65%, #E7D6B5 100%);
      border-color: rgba(212, 162, 76, 0.85);
    }
