/* 在线听力测试 */
.ht-warn {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(220, 120, 0, .1);
    color: #b45309;
    font-size: 13.5px;
    line-height: 1.8;
}

.ht-now {
    text-align: center;
    padding: 18px 12px;
    margin: 12px 0 16px;
    border-radius: 12px;
    background: var(--c-surface-soft, #f6f8fa);
    border: 1px solid var(--c-border, #e3e8ef);
}
.ht-now-label {
    font-size: 12.5px;
    color: var(--c-text-muted, #9aa5b1);
}
.ht-now-freq {
    margin: 4px 0 2px;
    font-size: 32px;
    font-weight: 800;
    color: #0096dc;
    font-variant-numeric: tabular-nums;
}
.ht-now-sub {
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
}

/* 发声动画 */
.ht-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 34px;
    margin-top: 10px;
}
.ht-wave span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--c-border, #cfd6de);
    transition: height .12s, background .12s;
}
.ht-wave.is-on span {
    background: #0096dc;
    animation: ht-bounce .6s ease-in-out infinite;
}
.ht-wave.is-on span:nth-child(2) { animation-delay: .1s; }
.ht-wave.is-on span:nth-child(3) { animation-delay: .2s; }
.ht-wave.is-on span:nth-child(4) { animation-delay: .3s; }
.ht-wave.is-on span:nth-child(5) { animation-delay: .4s; }

@keyframes ht-bounce {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}

.ht-answer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.ht-progress {
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    overflow: hidden;
}
.ht-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0096dc, #22c55e);
    transition: width .25s;
}

.ht-chart-wrap {
    margin: 14px 0;
    overflow-x: auto;
}
.ht-chart-wrap canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
}

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

[data-theme="dark"] .ht-warn { color: #fbbf24; }
[data-theme="dark"] .ht-note.is-ok { color: #4ade80; }
[data-theme="dark"] .ht-note.is-err { color: #f87171; }

@media (max-width: 768px) {
    .ht-now-freq { font-size: 26px; }
}
