/* ===== 底部 Tab 栏 — 分段式玻璃胶囊（共享组件） ===== */
.tab-bar {
    position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    width: calc(100vw - 24px); max-width: 476px; z-index: 200;
    display: flex; gap: 6px; align-items: center;
}
.tab-segment {
    display: flex; align-items: center; justify-content: space-around;
    padding: 10px 6px;
    background: var(--bg-glass, rgba(10,10,10,0.85));
    backdrop-filter: blur(60px) saturate(1.8); -webkit-backdrop-filter: blur(60px) saturate(1.8);
    border-radius: var(--radius-xl, 20px);
    border: 1px solid var(--text-5, rgba(255,255,255,0.06));
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}
.tab-segment-main { gap: 4px; padding: 4px 8px; flex: 1; min-width: 0; }
.tab-segment-ai {
    padding: 0;
    flex-shrink: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    margin-top: -20px;
}
.tab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    flex: 1; height: 38px; border-radius: 12px;
    color: rgba(255,255,255,0.20); cursor: pointer;
    transition: all .2s;
}
.tab-item:active { transform: scale(0.9); }
.tab-item.active { color: var(--text-1, rgba(255,255,255,0.80)); background: rgba(255,255,255,0.06); }
.tab-item.tab-ai { color: var(--gold, #D6A461); width: auto; padding: 0; flex-direction: row; gap: 0; background: none !important; height: auto; }
.tab-mic-orb { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.tab-mic-core {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(145deg, var(--gold, #D6A461), var(--gold-dim, #C49A3C));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(214,164,97,0.35);
    position: relative; z-index: 2;
}
.tab-mic-ring {
    position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px solid rgba(214,164,97,0.18);
    animation: tabMicBreathe 3s ease-in-out infinite;
    z-index: 1;
}
@keyframes tabMicBreathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.10); opacity: 0.15; }
}
.tab-item svg { width: 22px; height: 22px; }
.tab-label { font-size: 10px; font-weight: 500; line-height: 1; }

/* ═══ 悬浮语音条 ═══ */
#voiceFloat {
    position: fixed; z-index: 9998;
    bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 32px); max-width: 468px;
    background: rgba(20,20,20,0.75);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl, 20px);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    animation: vfSlideUp 0.2s ease-out;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
@keyframes vfSlideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
/* 录音指示点 */
.vf-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: var(--gold, #D6A461);
    animation: vfPulse 1s ease-in-out infinite;
}
.vf-dot.idle { background: rgba(255,255,255,0.10); animation: none; }
@keyframes vfPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
/* 文字区 */
.vf-text {
    flex: 1; font-size: 14px; color: var(--text-2, rgba(255,255,255,0.55));
    line-height: 1.4; min-width: 0;
    background: none; border: none; outline: none;
    font-family: inherit;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}
.vf-text.has-text { color: var(--text-1, rgba(255,255,255,0.80)); }
.vf-text:not([readonly]) {
    border-bottom: 1px solid rgba(214,164,97,0.20);
    padding-bottom: 2px;
}
/* 按钮组 */
.vf-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.vf-send {
    width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--gold, #D6A461);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s;
}
.vf-send:active { transform: scale(0.9); }
.vf-close {
    width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.20);
}
.vf-close:active { background: rgba(255,255,255,0.10); }
