    /* 手机顶部外部快捷工具栏：与缩放后的黑莓机身同宽对齐 */
    .bb-top-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 5px 6px;
      width: var(--bb-actions-w, 326px);
      max-width: calc(var(--vv-w, 100vw) - 12px);
      margin-bottom: 8px;
      padding: 0 2px;
      flex-shrink: 0;
      transition: width 0.24s ease, margin-bottom 0.24s ease;
    }
    #bb-overlay.sys-kb-open .bb-top-actions {
      width: calc(var(--vv-w, 100vw) - 12px);
      margin-bottom: 4px;
    }
    .bb-pill-btn {
      background: rgba(20, 14, 36, 0.8);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 162, 76, 0.48);
      color: #FCE6F1;
      font-size: 11px;
      padding: 5.5px 9px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
      transition: all 0.2s ease;
    }
    .bb-pill-btn:hover {
      border-color: rgba(244, 154, 193, 0.88);
      background: rgba(34, 22, 56, 0.92);
      transform: translateY(-1px);
    }
    .bb-pill-btn:active {
      transform: scale(0.95);
    }
    .bb-pill-btn.active-pill {
      border-color: rgba(244, 154, 193, 0.85);
      background: rgba(244, 154, 193, 0.22);
      color: #FFF4FA;
    }
    .bb-pill-btn.attention-pulse {
      animation: kbBtnPulse 0.65s ease-in-out 2;
      border-color: #FFE08A;
      box-shadow: 0 0 16px rgba(244, 154, 193, 0.75);
    }
    @keyframes kbBtnPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.08); }
    }

    /* 等比例缩放包裹层：占位宽高与缩放后黑莓完全一致，保持原长宽比不变形 */
    .bb-phone-scaler {
      width: var(--bb-scaled-w, 326px);
      height: var(--bb-scaled-h, 556px);
      position: relative;
      flex-shrink: 0;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
    }
    #bb-overlay.sys-kb-open .bb-phone-scaler {
      width: var(--vv-w, 100vw);
      height: var(--bb-sys-phone-h, 300px);
    }

    /* 黑莓 Q10 机身外壳：固定 326×556 基准比例并按 --bb-scale 等比缩放 */
    .bb-phone {
      width: 326px;
      height: 556px;
      transform-origin: top left;
      transform: scale(var(--bb-scale, 1));
      border-radius: 30px;
      padding: 8px 10px 10px;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: linear-gradient(155deg, #272233 0%, #15121D 48%, #0C0A12 100%);
      border: 2.5px solid #D4A24C;
      box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(255, 232, 180, 0.35),
        0 0 36px rgba(244, 154, 193, 0.18),
        inset 0 2px 3px rgba(255, 240, 200, 0.25),
        inset 0 -3px 8px rgba(0, 0, 0, 0.7);
      transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
    }
    /* 系统键盘弹出时：统一铺满屏宽，聊天区与输入框紧贴底部金边不留空隙 */
    .bb-phone.sys-kb-open {
      width: 100%;
      height: 100%;
      transform: none;
      padding: 4px 4px 0 4px;
      border-radius: 22px 22px 0 0;
      border-bottom: 2.5px solid #D4A24C;
    }
    .bb-phone.theme-pink {
      background: linear-gradient(155deg, #F9B2D1 0%, #F49AC1 48%, #DE7EA9 100%);
      box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 235, 185, 0.55),
        0 0 38px rgba(244, 154, 193, 0.34),
        inset 0 2px 6px rgba(255, 255, 255, 0.65),
        inset 0 -4px 10px rgba(155, 58, 102, 0.45);
    }
    .bb-phone.theme-milk {
      background: linear-gradient(155deg, #FFFDF9 0%, #F7F1E5 48%, #E7DCC8 100%);
      box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 244, 214, 0.72),
        0 0 38px rgba(255, 245, 224, 0.28),
        inset 0 2px 6px rgba(255, 255, 255, 0.92),
        inset 0 -4px 10px rgba(148, 126, 98, 0.34);
    }
    .bb-phone::before {
      content: '';
      position: absolute;
      inset: 3px;
      border-radius: 27px;
      border: 1px solid rgba(255, 232, 178, 0.2);
      pointer-events: none;
      z-index: 6;
    }
    .bb-phone.sys-kb-open::before {
      inset: 2px 2px 0 2px;
      border-radius: 19px 19px 0 0;
      border-bottom: none;
      border-color: rgba(255, 232, 178, 0.34);
    }

    /* 听筒 + 镜头 + 右上角红光指示灯 */
    .bb-earpiece-row {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      height: 12px;
      margin-bottom: 3px;
      flex-shrink: 0;
      transition: height 0.24s ease, margin-bottom 0.24s ease;
    }
    .bb-phone.sys-kb-open .bb-earpiece-row {
      height: 10px;
      margin-bottom: 1px;
    }
    .bb-front-cam {
      position: absolute;
      left: 24px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #5b6b99 0%, #141624 65%, #05050a 100%);
      border: 1px solid rgba(212, 162, 76, 0.55);
    }
    /* 正面听筒正下方居中：黑莓七点标志 + BlackBerry 字样 */
    .bb-front-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 3.5px;
      height: 13px;
      margin-bottom: 4px;
      flex-shrink: 0;
      line-height: 1;
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
      color: #D8DFE8;
      text-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.78);
      transition: color 0.35s ease, text-shadow 0.35s ease, height 0.24s ease, margin-bottom 0.24s ease, transform 0.24s ease;
    }
    .bb-front-brand-dots {
      width: 14.5px;
      height: 9.8px;
      display: block;
      flex-shrink: 0;
      filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.75));
      transition: filter 0.35s ease;
    }
    .bb-front-brand-text {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.25px;
    }
    .bb-phone.sys-kb-open .bb-front-brand {
      height: 10px;
      margin-bottom: 2px;
      transform: scale(0.86);
      transform-origin: center center;
    }
    .bb-phone.theme-pink .bb-front-brand {
      color: #A45368;
      text-shadow: 0 0.5px 0 rgba(255, 232, 240, 0.72), 0 1px 1.2px rgba(102, 34, 58, 0.26);
    }
    .bb-phone.theme-pink .bb-front-brand-dots {
      filter: drop-shadow(0 0.5px 0 rgba(255, 232, 240, 0.65)) drop-shadow(0 1px 1px rgba(102, 34, 58, 0.22));
    }
    .bb-phone.theme-milk .bb-front-brand {
      color: #A88B59;
      text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.85), 0 1px 1.2px rgba(96, 74, 42, 0.24);
    }
    .bb-phone.theme-milk .bb-front-brand-dots {
      filter: drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.8)) drop-shadow(0 1px 1px rgba(96, 74, 42, 0.22));
    }
    .bb-speaker {
      width: 56px;
      height: 4.5px;
      border-radius: 999px;
      background: linear-gradient(90deg, #1b1724, #332c42, #1b1724);
      border: 1px solid rgba(212, 162, 76, 0.5);
      box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
    }
    .bb-phone.theme-pink .bb-speaker {
      background: linear-gradient(90deg, #c2658e, #9c476d, #c2658e);
    }

    /* 右上角 BBM 红色小指示灯 */
    .bb-led {
      position: absolute;
      right: 18px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #42121a;
      border: 1px solid rgba(212, 162, 76, 0.45);
      box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
      transition: background 0.15s ease, box-shadow 0.15s ease;
    }
    .bb-led.blinking {
      animation: bbLedBlink 0.62s ease-in-out infinite;
    }
    @keyframes bbLedBlink {
      0%, 100% {
        background: #4d121c;
        box-shadow: 0 0 2px rgba(255, 45, 75, 0.25);
      }
      45% {
        background: #ff2e4c;
        box-shadow: 0 0 8px #ff2e4c, 0 0 16px rgba(255, 46, 76, 0.85);
      }
    }

    /* =========================================================================
       BB10 OS 核心视口容器（横向三页：左 Hub | 中 活动卡片 | 右 双时钟+图标 + 常驻栏）
       ========================================================================= */
    .bb10-viewport {
      flex: 1;
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    .bb10-home-wrapper {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background:
        radial-gradient(circle at 82% 14%, rgba(244, 154, 193, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 18% 76%, rgba(164, 118, 255, 0.2) 0%, transparent 48%),
        linear-gradient(165deg, #21133A 0%, #120B22 55%, #090714 100%);
    }


    .bb-phone.theme-milk .bb-speaker {
      background: linear-gradient(90deg, #B9AD9B, #8E8170, #B9AD9B);
      box-shadow: inset 0 1px 2px rgba(64, 52, 38, 0.55);
    }
