/* 在线乐器调音器 */
.it-strings { margin: 12px 0; }
.it-string-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.it-string {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--c-border, #e3e8ef);
    background: var(--c-surface, #fff);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transition: background .15s, color .15s, border-color .15s;
}
.it-string b { font-size: 13px; color: var(--c-text, #1f2933); }
.it-string small { font-size: 10.5px; color: var(--c-text-muted, #9aa5b1); }
.it-string.is-active {
    background: #0096dc;
    border-color: #0096dc;
}
.it-string.is-active b,
.it-string.is-active small { color: #fff; }

.it-no-strings {
    font-size: 12.5px;
    color: var(--c-text-muted, #9aa5b1);
}

/* 显示区 */
.it-display {
    text-align: center;
    padding: 16px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--c-surface-soft, #f6f8fa);
    border: 1px solid var(--c-border, #e3e8ef);
}
.it-note {
    font-size: 46px;
    font-weight: 800;
    color: #0096dc;
    line-height: 1.1;
}
.it-cents {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text-sub, #5b6572);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.it-gauge { margin: 14px 0 10px; }
.it-gauge-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #eab308 38%, #22c55e 50%, #eab308 62%, #ef4444);
    opacity: .85;
}
.it-gauge-center {
    position: absolute;
    left: 50%;
    top: -4px;
    width: 2px;
    height: 18px;
    margin-left: -1px;
    background: var(--c-text, #1f2933);
    border-radius: 1px;
}
.it-gauge-needle {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 4px;
    height: 26px;
    margin-left: -2px;
    border-radius: 2px;
    background: #0096dc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
    transition: left .12s ease-out;
}
.it-gauge-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--c-text-muted, #9aa5b1);
}

.it-hint {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
}
.it-hint.is-ok { color: #15803d; }
.it-hint.is-low { color: #b45309; }
.it-hint.is-high { color: #b91c1c; }

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

.it-note-box {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 150, 220, .1);
    color: #0a7fc0;
    font-size: 12.5px;
    line-height: 1.7;
}

[data-theme="dark"] .it-string { background: var(--c-surface, #1b2028); }
[data-theme="dark"] .it-note-box { color: #58bdf0; }
[data-theme="dark"] .it-hint.is-ok { color: #4ade80; }
[data-theme="dark"] .it-hint.is-low { color: #fbbf24; }
[data-theme="dark"] .it-hint.is-high { color: #f87171; }

@media (max-width: 768px) {
    .it-note { font-size: 36px; }
}
