    /* 机身左右侧面拉丝金属滑轨（滑动时清晰显露金属光泽） */
    .bb-slide-rail {
      position: absolute;
      top: 12px;
      bottom: 8px;
      width: 4.5px;
      z-index: 3;
      border-radius: 999px;
      background:
        repeating-linear-gradient(
          180deg,
          rgba(255, 255, 255, 0.25) 0px,
          rgba(255, 255, 255, 0.25) 2px,
          rgba(15, 23, 42, 0.35) 2px,
          rgba(15, 23, 42, 0.35) 5px
        ),
        linear-gradient(90deg, #475569 0%, #F8FAFC 45%, #CBD5E1 75%, #334155 100%);
      box-shadow:
        inset 0 0 2px rgba(255, 255, 255, 0.7),
        0 0 4px rgba(0, 0, 0, 0.75);
      opacity: 0.58;
      pointer-events: none;
      transition: opacity 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
    }
    .bb-slide-rail-left { left: 0.5px; }
    .bb-slide-rail-right { right: 0.5px; }
    .bb-phone.is-sliding .bb-slide-rail {
      opacity: 1;
      width: 5.5px;
      box-shadow:
        inset 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 10px rgba(226, 232, 240, 0.65);
    }
    .bb-phone.sys-kb-open .bb-slide-rail {
      opacity: 0;
    }

    /* 上层滑盖（屏幕 + 交界条）：随 --slide-p 从 0→1 顺滑向下盖住实体键盘并拉长屏幕 */
    .bb-upper-deck {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 5;
      height: calc(100% - var(--kb-h, 188px) * (1 - var(--slide-p, 0)));
      transform: translateY(var(--slide-bounce, 0px));
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #171321 0%, #100D18 100%);
      border-radius: 13px 13px 10px 10px;
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.78);
      will-change: height, transform;
    }
    .bb-phone.is-sliding .bb-upper-deck {
      left: 3.5px;
      right: 3.5px;
      box-shadow: 0 14px 28px rgba(0, 0, 0, 0.88);
    }
    .bb-phone.theme-pink .bb-upper-deck {
      background: linear-gradient(180deg, #F6A2C7 0%, #DF7EA9 100%);
      box-shadow: 0 10px 22px rgba(96, 26, 60, 0.55);
    }
    .bb-phone.sys-kb-open .bb-upper-deck {
      position: relative;
      height: 100%;
      left: 0;
      right: 0;
      transform: none;
      box-shadow: none;
      border-radius: 13px 13px 0 0;
    }

    /* Q10 屏幕区 */
    .bb-screen-bezel {
      flex: 1;
      min-height: 0;
      width: 100%;
      border-radius: 13px;
      padding: 4px 6px;
      background: linear-gradient(180deg, #0E0B18 0%, #07060D 100%);
      border: 1.5px solid rgba(212, 162, 76, 0.8);
      box-shadow: inset 0 1px 4px rgba(0,0,0,0.9), 0 4px 12px rgba(0,0,0,0.35);
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: padding 0.26s ease, border-radius 0.26s ease;
    }
    .bb-phone.sys-kb-open .bb-screen-bezel {
      padding: 2px 3px 0 3px;
      border-radius: 12px 12px 0 0;
      border-bottom: none;
      box-shadow: inset 0 1px 4px rgba(0,0,0,0.9);
    }
    .bb-phone.theme-pink .bb-screen-bezel {
      background: linear-gradient(180deg, #1E1324 0%, #120B17 100%);
      border-color: rgba(255, 232, 175, 0.88);
    }
    .bb-screen {
      --bbm-font-size: 16px;
      --bbm-line-height: 1.48;
      width: 100%;
      flex: 1;
      min-height: 0;
      border-radius: 7px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      background: radial-gradient(circle at 50% 18%, #2B194D 0%, #140D27 58%, #090714 100%);
      color: #F8EEF4;
      touch-action: none;
    }
    .bb-phone.sys-kb-open .bb-screen {
      border-radius: 7px 7px 0 0;
    }

    /* 顶部细状态栏 */
    .bb-statusbar {
      height: 19px;
      padding: 0 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 9.5px;
      font-weight: 500;
      color: rgba(252, 232, 243, 0.9);
      background: rgba(8, 6, 18, 0.72);
      border-bottom: 1px solid rgba(212, 162, 76, 0.16);
      flex-shrink: 0;
      z-index: 20;
    }
    .signal-bars {
      display: inline-flex;
      align-items: flex-end;
      gap: 1.5px;
      height: 8px;
    }
    .signal-bars span {
      width: 2px;
      background: #E8C06C;
      border-radius: 1px;
    }
    .battery-icon {
      display: inline-flex;
      align-items: center;
      gap: 1px;
    }
    .battery-body {
      width: 15px;
      height: 7.5px;
      border: 1px solid rgba(252, 232, 243, 0.75);
      border-radius: 2px;
      padding: 1px;
      display: flex;
    }
    .battery-fill {
      width: 84%;
      height: 100%;
      background: linear-gradient(90deg, #F49AC1, #E8C06C);
      border-radius: 1px;
    }
    .battery-tip {
      width: 1.5px;
      height: 3.5px;
      background: rgba(252, 232, 243, 0.75);
      border-radius: 0 1px 1px 0;
    }

    /* 应用未读小红点（BBM 收到言回复时） */
    .bb10-badge {
      position: absolute;
      top: -3px;
      right: -3px;
      min-width: 14px;
      height: 14px;
      padding: 0 3px;
      border-radius: 999px;
      background: linear-gradient(135deg, #FF3860, #E11D48);
      color: #fff;
      font-size: 8px;
      font-weight: 700;
      display: none;
      align-items: center;
      justify-content: center;
      border: 1.5px solid #160D28;
      box-shadow: 0 2px 6px rgba(255, 56, 96, 0.65);
    }
    .bb10-badge.show {
      display: inline-flex;
      animation: badgePop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes badgePop {
      from { transform: scale(0.3); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    /* 日历图标实时日期排版 */
    .cal-icon-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      border-radius: inherit;
      overflow: hidden;
    }
    .cal-icon-month {
      width: 100%;
      text-align: center;
      font-size: 6px;
      font-weight: 700;
      background: rgba(225, 29, 72, 0.88);
      color: #fff;
      padding: 1px 0;
      line-height: 1.1;
    }
    .bb-phone.kb-collapsed .cal-icon-month {
      font-size: 7.5px;
      padding: 1.5px 0;
    }
    .cal-icon-day {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      color: #1F1233;
      background: #FFF6FA;
      width: 100%;
      line-height: 1;
    }
    .bb-phone.kb-collapsed .cal-icon-day {
      font-size: 17px;
    }

    /* 最底部：半透明常驻栏（BBM、图片、金色小爱心） */
    .bb10-bottom-dock {
      flex-shrink: 0;
      height: 36px;
      margin: 2px 7px 5px;
      padding: 0 18px;
      border-radius: 12px;
      background: rgba(255, 245, 252, 0.08);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(212, 162, 76, 0.32);
      box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
      display: flex;
      align-items: center;
      justify-content: space-around;
      transition: height 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
    }
    .bb-phone.kb-collapsed .bb10-bottom-dock {
      height: 54px;
      margin: 4px 10px 8px;
      border-radius: 16px;
    }

    .bb10-dock-btn {
      background: none;
      border: none;
      padding: 2px 8px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      position: relative;
      transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .bb10-dock-btn:hover {
      transform: translateY(-2px);
    }
    .bb10-dock-btn:active {
      transform: scale(0.9);
    }
    .dock-icon-pill {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.35);
      transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, font-size 0.3s ease;
    }
    .bb-phone.kb-collapsed .dock-icon-pill {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      font-size: 18px;
    }
    .dock-icon-heart {
      background: linear-gradient(145deg, #F6D379 0%, #D4A24C 55%, #A67524 100%);
      border-color: rgba(255, 244, 200, 0.68);
      box-shadow:
        0 4px 12px rgba(212, 162, 76, 0.48),
        inset 0 1px 2px rgba(255, 255, 255, 0.72);
    }

    /* =========================================================================
       打开的应用全屏视口层（支持从底部上划实时跟手缩小回主页！）
       ========================================================================= */
    .bb10-app-layer {
      position: absolute;
      inset: 0;
      z-index: 15;
      display: flex;
      flex-direction: column;
      background: radial-gradient(circle at 50% 20%, #23163D 0%, #130E24 62%, #0B0917 100%);
      transform-origin: center center;
      opacity: 0;
      pointer-events: none;
      transform: scale(0.74) translateY(22px);
      border-radius: 10px;
      transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease,
        border-radius 0.25s ease;
      overflow: hidden;
    }
    .bb10-app-layer.open {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1) translateY(0);
      border-radius: 0;
    }
    .bb10-app-layer.dragging {
      transition: none !important;
    }
    .bb10-app-layer.minimizing {
      transform: scale(0.46) translateY(-28px) !important;
      opacity: 0 !important;
      border-radius: 18px !important;
      transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.24s ease,
        border-radius 0.24s ease !important;
    }

    .app-view {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      position: relative;
    }
    .app-view.active {
      display: flex;
    }

    /* 其余 7 款应用“敬请期待”页面 */
    .coming-soon-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px 14px;
      text-align: center;
      gap: 8px;
      background:
        radial-gradient(circle at 50% 34%, rgba(244, 154, 193, 0.16) 0%, transparent 62%),
        linear-gradient(180deg, rgba(24, 15, 43, 0.92) 0%, rgba(11, 8, 22, 0.98) 100%);
    }
    .coming-soon-emblem {
      width: 54px;
      height: 54px;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      border: 1px solid rgba(255, 255, 255, 0.24);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    }

    /* 设置应用（字号调节：小 / 中 / 大 + 实时预览） */
    .settings-body {
      flex: 1;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      padding: 10px 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background:
        radial-gradient(circle at 80% 10%, rgba(244, 154, 193, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, rgba(22, 14, 38, 0.94) 0%, rgba(10, 8, 20, 0.98) 100%);
    }
    .settings-body::-webkit-scrollbar {
      width: 2.5px;
    }
    .settings-body::-webkit-scrollbar-thumb {
      background: rgba(244, 154, 193, 0.32);
      border-radius: 99px;
    }
    .settings-card {
      background: rgba(34, 24, 58, 0.62);
      border: 1px solid rgba(212, 162, 76, 0.26);
      border-radius: 11px;
      padding: 9px 10px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .font-size-seg {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      background: rgba(12, 8, 24, 0.65);
      padding: 3px;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .font-seg-btn {
      border: 1px solid transparent;
      background: transparent;
      color: rgba(246, 224, 238, 0.72);
      border-radius: 7px;
      padding: 6px 4px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1px;
      transition: all 0.18s ease;
    }
    .font-seg-btn.active {
      background: linear-gradient(135deg, rgba(244, 154, 193, 0.92), rgba(212, 162, 76, 0.9));
      color: #1A0814;
      font-weight: 700;
      box-shadow: 0 3px 10px rgba(244, 154, 193, 0.35);
    }
    .settings-preview-box {
      background: rgba(11, 8, 22, 0.68);
      border-radius: 9px;
      padding: 8px;
      border: 1px dashed rgba(244, 154, 193, 0.25);
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .settings-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .settings-mini-btn {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(244, 154, 193, 0.45);
      background: rgba(244, 154, 193, 0.16);
      color: #FFEBF5;
      font-size: 10.5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.16s ease;
    }
    .settings-mini-btn:active {
      transform: scale(0.94);
    }

    /* =========================================================================
       BBM 聊天界面样式（正文默认 16px，随设置中的 小/中/大 实时缩放）
       ========================================================================= */
    .bb-chat-header {
      height: 25px;
      padding: 0 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(26, 17, 46, 0.86);
      border-bottom: 1px solid rgba(244, 154, 193, 0.18);
      flex-shrink: 0;
    }
    .yan-avatar {
      width: 19px;
      height: 19px;
      border-radius: 50%;
      background: linear-gradient(135deg, #D4A24C 0%, #6D4BA8 100%);
      border: 1px solid rgba(255, 234, 185, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9.5px;
      font-weight: 600;
      color: #fff;
    }

    .bb-messages {
      flex: 1;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      padding: 8px 8px 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      scroll-behavior: smooth;
      user-select: text;
      touch-action: pan-y;
    }
    .bb-messages::-webkit-scrollbar {
      width: 2.5px;
    }
    .bb-messages::-webkit-scrollbar-thumb {
      background: rgba(244, 154, 193, 0.3);
      border-radius: 99px;
    }

    .msg-row {
      display: flex;
      align-items: flex-end;
      gap: 5px;
      max-width: 100%;
      animation: msgPop 0.24s cubic-bezier(0.25, 1.25, 0.45, 1);
    }
    @keyframes msgPop {
      from { opacity: 0; transform: translateY(6px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .msg-row.her { justify-content: flex-end; }
    .msg-row.yan { justify-content: flex-start; }

    .msg-bubble {
      max-width: 82%;
      padding: 7px 11px;
      font-size: var(--bbm-font-size, 16px);
      line-height: var(--bbm-line-height, 1.48);
      word-break: break-word;
      position: relative;
      transition: font-size 0.2s ease;
    }
    .msg-row.her .msg-bubble {
      background: linear-gradient(135deg, #F49AC1 0%, #D97BB4 100%);
      color: #1F0B1A;
      font-weight: 500;
      border-radius: 13px 13px 3px 13px;
      box-shadow: 0 3px 10px rgba(244, 154, 193, 0.22);
    }
    .msg-row.yan .msg-bubble {
      background: rgba(42, 30, 68, 0.94);
      color: #F7ECF5;
      border: 1px solid rgba(212, 162, 76, 0.34);
      border-radius: 13px 13px 13px 3px;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
    }


    /* 牛奶白釉面：滑盖上层与屏幕边框 */
    .bb-phone.theme-milk .bb-upper-deck {
      background: linear-gradient(180deg, #FCF8F0 0%, #EAE0CE 100%);
      box-shadow: 0 10px 22px rgba(82, 66, 46, 0.42);
    }
    .bb-phone.theme-milk .bb-screen-bezel {
      background: linear-gradient(180deg, #1B1822 0%, #100E16 100%);
      border-color: rgba(212, 162, 76, 0.92);
    }
