    /* =========================================================================
       3D 立体层级修正：
       1. 外层 #bb-overlay / #bb-stage 保持 flat，避免与透视容器产生双层 3D 冲突
       2. .bb-phone-scaler 作为唯一透视视口（perspective + isolation），不设 preserve-3d
       3. .bb-flipper 居中并合并 scale3d + rotateX + rotateY 为唯一 3D 变换层，
          消除嵌套 scale3d 导致 Safari/移动端在 60°–120° / 240°–300° 整机消失的问题
       ========================================================================= */
    #bb-overlay.open {
      overflow: visible;
      transform-style: flat;
      -webkit-transform-style: flat;
    }
    #bb-overlay.sys-kb-open {
      overflow: hidden;
      transform-style: flat;
    }
    #bb-overlay.open #bb-backdrop {
      transform: none;
    }
    #bb-overlay.open #bb-stage {
      overflow: visible;
      transform-style: flat;
      -webkit-transform-style: flat;
      will-change: auto;
    }
    .bb-phone-scaler {
      perspective: var(--bb-persp, 1300px);
      -webkit-perspective: var(--bb-persp, 1300px);
      perspective-origin: 50% 50%;
      -webkit-perspective-origin: 50% 50%;
      transform-style: flat;
      -webkit-transform-style: flat;
      overflow: visible;
      isolation: isolate;
      filter: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    .bb-flipper {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 326px;
      height: 556px;
      margin-left: -163px;
      margin-top: -278px;
      transform-origin: 50% 50% 0;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      overflow: visible;
      will-change: auto;
      filter: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    .bb-body-3d {
      --bb-depth: 46px;
      --bb-half-depth: 23px;
      position: relative;
      width: 326px;
      height: 556px;
      transform: none;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      overflow: visible;
      filter: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    #bb-overlay.sys-kb-open .bb-flipper {
      position: relative;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      transform: none !important;
      transform-style: flat;
    }
    .bb-body-3d .bb-phone {
      transform: translateZ(var(--bb-half-depth, 23px));
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    .bb-body-3d .bb-back-face {
      transform: rotateY(180deg) translateZ(var(--bb-half-depth, 23px));
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    /* 3D 金色金属侧边壳体（46px 厚度 ≈ 10mm 比例，与魔法盒玫瑰金同源光照） */
    .bb-side-shell {
      position: absolute;
      inset: 0;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      overflow: visible;
      pointer-events: auto;
    }
    .bb-edge-face {
      position: absolute;
      left: 0;
      top: 0;
      transform-origin: center;
      transform-style: preserve-3d;
      -webkit-transform-style: preserve-3d;
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
      background-color: #C79238;
      background-image: linear-gradient(
        var(--g-dir, 180deg),
        #8E611B 0%,
        #F7DC94 9%,
        #C79238 22%,
        #E4B85E 48%,
        #B58029 77%,
        #F2D284 91%,
        #875B18 100%
      );
      box-shadow: inset 0 0 0 0.5px rgba(255, 240, 200, 0.2);
    }
    .bb-edge-face::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
      background:
        linear-gradient(
          var(--g-dir, 180deg),
          rgba(255, 245, 218, var(--l-spec, 0)) 0%,
          rgba(255, 241, 220, var(--l-warm, 0)) 50%,
          rgba(181, 150, 255, var(--l-rim, 0)) 100%
        ),
        rgba(16, 8, 26, var(--l-dark, 0));
    }
    .bb-edge-v { --g-dir: 90deg; }
    .bb-edge-h { --g-dir: 180deg; }
    .bb-antenna-seam {
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, #3E280A 0%, #6E4A16 50%, #3E280A 100%);
      opacity: 0.72;
      pointer-events: none;
    }

    /* 3D 凸起侧边金属按键（音量键 + 静音键 + 电源键，多层圆角叠片立体凸起 4px，可按压且配色跟随机身） */
    .bb-hw-btn {
      position: absolute;
      transform-style: preserve-3d;
      pointer-events: auto;
      cursor: pointer;
      touch-action: none;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }
    .bb-hw-btn > i {
      position: absolute;
      inset: 0;
      border-radius: 999px;
      display: block;
      pointer-events: none;
      transition: transform 0.07s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.07s ease;
    }
    .bb-hw-btn .b-slot {
      inset: -1.5px;
      background: rgba(24, 16, 8, 0.82);
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.78);
      transform: translateZ(0.3px);
    }
    /* 默认：暗夜黑曜石机身按键 */
    .bb-hw-btn .b-s1 { background: #16121F; transform: translateZ(1.2px); }
    .bb-hw-btn .b-s2 { background: #262034; transform: translateZ(2.2px); }
    .bb-hw-btn .b-s3 { background: #3A324D; transform: translateZ(3.1px); }
    .bb-hw-btn .b-cap {
      background: linear-gradient(155deg, #473E5C 0%, #262034 52%, #14111D 100%);
      border: 0.8px solid rgba(226, 184, 102, 0.58);
      box-shadow: inset 0 1px 1px rgba(255, 245, 224, 0.32);
      transform: translateZ(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 8px;
      font-weight: 700;
      line-height: 1;
      color: rgba(247, 224, 172, 0.88);
      text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.7);
    }

    /* 糖果粉机身按键 */
    #bb-phone.theme-pink ~ .bb-side-shell .bb-hw-btn .b-slot { background: rgba(98, 28, 62, 0.72); }
    #bb-phone.theme-pink ~ .bb-side-shell .bb-hw-btn .b-s1 { background: #9C3E69; }
    #bb-phone.theme-pink ~ .bb-side-shell .bb-hw-btn .b-s2 { background: #C75D8D; }
    #bb-phone.theme-pink ~ .bb-side-shell .bb-hw-btn .b-s3 { background: #E784B0; }
    #bb-phone.theme-pink ~ .bb-side-shell .bb-hw-btn .b-cap {
      background: linear-gradient(155deg, #FFD8EB 0%, #F49AC1 52%, #D46C9B 100%);
      border-color: rgba(255, 240, 248, 0.82);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78);
      color: rgba(102, 26, 62, 0.88);
      text-shadow: 0 0.5px 0 rgba(255, 240, 248, 0.65);
    }

    /* 牛奶白机身按键 */
    #bb-phone.theme-milk ~ .bb-side-shell .bb-hw-btn .b-slot { background: rgba(96, 78, 56, 0.58); }
    #bb-phone.theme-milk ~ .bb-side-shell .bb-hw-btn .b-s1 { background: #A5947D; }
    #bb-phone.theme-milk ~ .bb-side-shell .bb-hw-btn .b-s2 { background: #C7B8A2; }
    #bb-phone.theme-milk ~ .bb-side-shell .bb-hw-btn .b-s3 { background: #E4D9C7; }
    #bb-phone.theme-milk ~ .bb-side-shell .bb-hw-btn .b-cap {
      background: linear-gradient(155deg, #FFFFFF 0%, #F7F1E5 52%, #E1D5C1 100%);
      border-color: rgba(255, 250, 238, 0.92);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95);
      color: rgba(104, 84, 60, 0.86);
      text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.85);
    }

    /* 实体侧边键按压下陷反馈 */
    .bb-hw-btn.hw-pressed .b-s1 { transform: translateZ(0.6px); }
    .bb-hw-btn.hw-pressed .b-s2 { transform: translateZ(1.0px); }
    .bb-hw-btn.hw-pressed .b-s3 { transform: translateZ(1.4px); }
    .bb-hw-btn.hw-pressed .b-cap {
      transform: translateZ(1.7px);
      filter: brightness(0.92);
    }

    /* 电源键黑屏覆盖层 + BB10 开机七点亮起小动画 */
    .bb-power-overlay {
      position: absolute;
      inset: 0;
      z-index: 95;
      background: radial-gradient(circle at 50% 48%, #0E1118 0%, #030407 72%, #000000 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.36s ease;
    }
    .bb-power-overlay.is-off {
      opacity: 1;
      pointer-events: auto;
    }
    .bb-power-overlay.is-booting {
      opacity: 1;
      pointer-events: auto;
    }
    .bb-power-overlay.is-boot-fade {
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.45s ease;
    }
    .bb-boot-logo {
      width: 68px;
      opacity: 0;
      transform: scale(0.86);
      filter: drop-shadow(0 0 12px rgba(96, 195, 255, 0.55));
      transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .bb-power-overlay.is-booting .bb-boot-logo {
      opacity: 1;
      transform: scale(1);
    }
    .bb-power-overlay.is-boot-fade .bb-boot-logo {
      opacity: 0;
      transform: scale(1.06);
    }
    .bb-boot-ring {
      width: 24px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, #60C8FF, #E6F7FF, #60C8FF, transparent);
      opacity: 0;
      transform: scaleX(0.3);
      transition: opacity 0.3s ease, transform 0.6s ease;
    }
    .bb-power-overlay.is-booting .bb-boot-ring {
      opacity: 0.9;
      transform: scaleX(1.35);
    }

    /* 音量条 & 静音铃铛半透明浮层 HUD */
    .bb-hw-hud {
      position: absolute;
      top: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(-6px) scale(0.96);
      z-index: 90;
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 11px;
      border-radius: 999px;
      background: rgba(12, 10, 22, 0.72);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 232, 185, 0.32);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
      color: #FFF7EC;
      font-size: 10px;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.22s ease;
    }
    .bb-hw-hud.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0) scale(1);
    }
    .bb-hw-hud-icon {
      width: 14px;
      height: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #F6D88C;
    }
    .bb-hw-hud-bar {
      width: 78px;
      height: 4px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
      overflow: hidden;
    }
    .bb-hw-hud-fill {
      height: 100%;
      width: 70%;
      border-radius: 999px;
      background: linear-gradient(90deg, #F49AC1, #F6D88C);
      transition: width 0.14s ease;
    }
    .bb-hw-hud-val {
      min-width: 26px;
      text-align: right;
      font-size: 9.5px;
      color: rgba(255, 245, 232, 0.88);
    }
    .bb-hw-hud.mode-mute .bb-hw-hud-bar {
      display: none;
    }
    .bb-hw-hud.mode-mute .bb-hw-hud-val {
      min-width: auto;
      text-align: left;
    }

    /* 顶部降噪麦克风孔 */
    .bb-hw-mic {
      position: absolute;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #09060E;
      border: 1px solid rgba(255, 232, 178, 0.55);
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.95);
      transform: translateZ(0.4px);
    }

    /* 底部 3.5mm 耳机孔 */
    .bb-hw-jack {
      position: absolute;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: radial-gradient(circle at 42% 38%, #251E30 0%, #09060E 48%, #040308 100%);
      border: 2px solid #F5D78A;
      box-shadow:
        0 0 0 1.2px rgba(96, 62, 16, 0.85),
        inset 0 0 0 2px #523A1C,
        inset 0 2px 5px rgba(0, 0, 0, 0.95);
      transform: translateZ(0.4px);
    }

    /* 底部 USB 接口（金属倒角框 + 深腔 + 金色触点舌片） */
    .bb-hw-usb {
      position: absolute;
      width: 38px;
      height: 14px;
      border-radius: 5px 5px 7px 7px;
      background: linear-gradient(180deg, #06040A 0%, #14101D 100%);
      border: 1.6px solid #F3D383;
      box-shadow:
        0 0 0 1.2px rgba(92, 58, 14, 0.88),
        inset 0 2px 4px rgba(0, 0, 0, 0.95);
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateZ(0.4px);
    }
    .bb-hw-usb::after {
      content: '';
      width: 24px;
      height: 3.5px;
      border-radius: 1.5px;
      background: repeating-linear-gradient(
        90deg,
        #221B2D 0 2px,
        #E6BC63 2px 3.6px,
        #221B2D 3.6px 5px
      );
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
    }

    /* 底部扬声器开孔 */
    .bb-hw-spk {
      position: absolute;
      display: flex;
      align-items: center;
      gap: 4px;
      transform: translateZ(0.4px);
    }
    .bb-hw-spk i {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #0A0710;
      box-shadow: 0 0 0 0.7px rgba(255, 232, 178, 0.45), inset 0 1px 1px rgba(0, 0, 0, 0.95);
    }

