/* ===== 蓝牙延迟与编解码匹配 ===== */
.btc-hero {
    background: linear-gradient(150deg, #fdf2f8 0%, #ede9fe 100%);
    border: 1px solid #d8b4fe;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(107, 33, 168, .10);
}
.btc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.btc-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #9333ea 0%, #e879f9 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(147, 51, 234, .3);
}
.btc-title { font-size: 20px; font-weight: 800; color: #6b21a8; }
.btc-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.btc-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.btc-form {
    background: rgba(255,255,255,.92); border: 1px solid #d8b4fe;
    border-radius: 16px; padding: 16px;
}
.btc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btc-field { display: flex; flex-direction: column; gap: 4px; }
.btc-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.btc-field select {
    border: 2px solid #f3e8ff; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.btc-field select:focus { border-color: #a855f7; }

.btc-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.btc-delay-view { display: flex; flex-direction: column; gap: 4px; }
.btc-delay-num { display: flex; align-items: baseline; gap: 8px; }
.btc-delay-num b { font-size: 26px; font-weight: 900; color: #6b21a8; font-variant-numeric: tabular-nums; }
.btc-delay-num span { font-size: 12px; color: #64748b; }
.btc-delay-bar {
    position: relative; height: 14px; border-radius: 999px; margin-top: 4px;
    background: linear-gradient(90deg, #22c55e 0 26%, #eab308 26% 55%, #ef4444 55% 100%);
}
.btc-delay-bar i {
    position: absolute; top: -4px; left: 0; width: 10px; height: 22px; border-radius: 4px;
    background: #6b21a8; transition: left .4s;
}
.btc-threshold {
    position: absolute; top: -4px; left: 26%; width: 3px; height: 22px; border-radius: 2px;
    background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.btc-delay-scale { display: flex; justify-content: space-between; font-size: 10px; color: #94a3b8; }
.btc-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.btc-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #faf5ff; border: 1px solid #f3e8ff; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #7e22ce;
}
.btc-break li b { color: #0f172a; font-variant-numeric: tabular-nums; }
.btc-break li.ok { border-color: #a855f7; background: #f3e8ff; color: #6b21a8; font-weight: 700; }
.btc-break li.ok.bad { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.btc-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

@media (max-width: 860px) {
    .btc-body { grid-template-columns: 1fr; }
    .btc-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .btc-hero {
    background: linear-gradient(150deg, #3b0764 0%, #0f172a 100%);
    border-color: rgba(216, 180, 254, .22);
}
[data-theme="dark"] .btc-title { color: #e9d5ff; }
[data-theme="dark"] .btc-form, [data-theme="dark"] .btc-result {
    background: rgba(255,255,255,.05); border-color: rgba(216, 180, 254, .18);
}
[data-theme="dark"] .btc-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(216,180,254,.25);
}
[data-theme="dark"] .btc-field > span { color: #94a3b8; }
[data-theme="dark"] .btc-delay-num b { color: #e9d5ff; }
[data-theme="dark"] .btc-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .btc-break li b { color: #e2e8f0; }
[data-theme="dark"] .btc-break li.ok { background: rgba(168,85,247,.18); border-color: rgba(192,132,252,.4); color: #e9d5ff; }
[data-theme="dark"] .btc-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
