/* 手机水平仪 */
.bl-gate-list {
    margin: 12px 0 16px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--c-text-sub, #5b6572);
}
.bl-gate-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.bl-err { color: #b91c1c; }

/* 圆形气泡盘 */
.bl-bull {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 6px auto 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, var(--c-surface, #fff), var(--c-surface-soft, #eef1f5));
    border: 2px solid var(--c-border, #d5dbe3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .08);
    overflow: hidden;
}
.bl-ring,
.bl-ring-in {
    position: absolute;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.bl-ring {
    width: 108px;
    height: 108px;
    border: 2px dashed rgba(0, 150, 220, .45);
}
.bl-ring-in {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 150, 220, .8);
    background: rgba(0, 150, 220, .06);
}
.bl-cross-v,
.bl-cross-h {
    position: absolute;
    background: rgba(120, 130, 145, .25);
}
.bl-cross-v { left: 50%; top: 8px; bottom: 8px; width: 1px; }
.bl-cross-h { top: 50%; left: 8px; right: 8px; height: 1px; }

.bl-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #7fd4f5, #0096dc 62%, #0071a8);
    box-shadow: 0 2px 6px rgba(0, 90, 140, .35), inset 0 -2px 4px rgba(0, 0, 0, .18);
    transition: transform .08s linear;
}
.bl-bull-cap {
    text-align: center;
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
    margin-bottom: 14px;
}

/* 管状气泡 */
.bl-tube-wrap { margin-bottom: 14px; }
.bl-tube-label {
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
    margin-bottom: 6px;
}
.bl-tube-label span {
    font-weight: 700;
    color: var(--c-text, #222);
    font-variant-numeric: tabular-nums;
}
.bl-tube {
    position: relative;
    height: 26px;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    border: 1px solid var(--c-border, #d5dbe3);
    overflow: hidden;
}
.bl-tube-mid {
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    margin-left: -1px;
    background: rgba(0, 150, 220, .55);
}
.bl-tube-bubble {
    position: absolute;
    top: 3px;
    width: 34px;
    height: 20px;
    margin-left: -17px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7fd4f5, #0096dc);
    box-shadow: inset 0 -1px 3px rgba(0, 0, 0, .2);
    transition: left .08s linear;
}

/* 状态块 */
.bl-state {
    text-align: center;
    padding: 16px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--c-surface-soft, #f6f8fa);
    transition: background .2s, color .2s;
}
.bl-state-emoji { font-size: 30px; line-height: 1.2; }
.bl-state-txt {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text-sub, #5b6572);
}
.bl-state.is-level { background: rgba(22, 163, 74, .14); }
.bl-state.is-level .bl-state-txt { color: #15803d; }
.bl-state.is-near { background: rgba(245, 158, 11, .14); }
.bl-state.is-near .bl-state-txt { color: #b45309; }
.bl-state.is-tilt { background: rgba(239, 68, 68, .12); }
.bl-state.is-tilt .bl-state-txt { color: #b91c1c; }

/* 选项与按钮 */
.bl-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
}
.bl-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-text-sub, #5b6572);
    cursor: pointer;
}
.bl-check input { width: 15px; height: 15px; }

.bl-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.bl-btns .btn { flex: 1 1 30%; min-width: 108px; }

.bl-hold {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--c-border, #d5dbe3);
}
.bl-hold-k {
    font-size: 12px;
    color: var(--c-text-sub, #5b6572);
}
.bl-hold-v {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0096dc;
    font-variant-numeric: tabular-nums;
}

.bl-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.bl-note.is-info { background: rgba(0, 150, 220, .1); color: #0a7fc0; }
.bl-note.is-ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.bl-note.is-err { background: rgba(220, 38, 38, .1); color: #b91c1c; }

[data-theme="dark"] .bl-bull {
    background: radial-gradient(circle at 50% 42%, #222833, #171c24);
}
[data-theme="dark"] .bl-cross-v,
[data-theme="dark"] .bl-cross-h { background: rgba(160, 175, 195, .28); }
[data-theme="dark"] .bl-note.is-info { color: #58bdf0; }
[data-theme="dark"] .bl-note.is-ok { color: #4ade80; }
[data-theme="dark"] .bl-note.is-err { color: #f87171; }
[data-theme="dark"] .bl-state.is-level .bl-state-txt { color: #4ade80; }
[data-theme="dark"] .bl-state.is-near .bl-state-txt { color: #fbbf24; }
[data-theme="dark"] .bl-state.is-tilt .bl-state-txt { color: #f87171; }
[data-theme="dark"] .bl-err { color: #f87171; }

@media (max-width: 768px) {
    .bl-bull { width: 156px; height: 156px; }
    .bl-btns .btn { flex: 1 1 100%; }
}
