/* ======================================================================
 * 51 · 乐理入门速查 —— 「琴房黑檀 · 象牙键」
 * 视觉：黑檀深底 + 象牙金；五线谱横线 hero、三张查询卡纵向排布；
 *       与本批其余 10 页不共用配色与构图。
 * ====================================================================== */

.nx.mt {
    --bg: #f4f1ea;
    --bg2: #ebe7dc;
    --card: #ffffff;
    --card2: #f6f3ec;
    --card3: #ede9dd;
    --ink: #211d18;
    --ink2: #4a443a;
    --muted: #84796a;
    --line: #dcd5c6;
    --line2: #e8e2d3;
    --accent: #8a6a2f;          /* 象牙金 */
    --accent-ink: #fffdf5;
    --accent-soft: #f0e6cd;
    --accent2: #35507a;         /* 琴房蓝 */
    --accent2-soft: #dfe7f3;
    --ok: #2f7a4f;
    --ok-bg: #e1f1e6;
    --warn: #8f6400;
    --warn-bg: #f8efd2;
    --bad: #a83a32;
    --bad-bg: #f9e5e1;
    --info: #1a6e84;
    --info-bg: #e0f0f5;
    --radius: 18px;
    --radius-sm: 11px;
    --font-head: Georgia, "Times New Roman", "PingFang SC", "Microsoft YaHei", serif;
    --head-weight: 700;
    --tracking: .005em;

    background:
        radial-gradient(circle at 90% -6%, rgba(138, 106, 47, .1), transparent 40%),
        var(--bg);
}
:root[data-theme="dark"] .nx.mt {
    --bg: #13110d;
    --bg2: #1a1712;
    --card: #201c15;
    --card2: #282319;
    --card3: #322c1f;
    --ink: #f0ebdf;
    --ink2: #c9c2af;
    --muted: #93886f;
    --line: #3d3625;
    --line2: #312b1c;
    --accent: #d3ad62;
    --accent-ink: #1c1403;
    --accent-soft: #3a2f12;
    --accent2: #8fb0dd;
    --accent2-soft: #1e2a3d;
    --ok: #6fbd8b;
    --ok-bg: #1c3526;
    --warn: #d6b05a;
    --warn-bg: #362c12;
    --bad: #e2877d;
    --bad-bg: #3d201b;
    --info: #63b8d2;
    --info-bg: #153039;
    background:
        radial-gradient(circle at 90% -6%, rgba(211, 173, 98, .09), transparent 40%),
        var(--bg);
}

/* ---------- 首屏：五线谱横线 + 三张查询卡 ---------- */
.mt-hero { margin: 22px 0 6px; position: relative; }
.mt-staff {
    position: relative;
    height: 58px;
    margin-bottom: 6px;
    overflow: hidden;
}
.mt-staff span {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
    opacity: .32;
}
.mt-staff span:nth-child(1) { top: 4px; }
.mt-staff span:nth-child(2) { top: 17px; }
.mt-staff span:nth-child(3) { top: 30px; }
.mt-staff span:nth-child(4) { top: 43px; }
.mt-staff span:nth-child(5) { top: 56px; }
.mt-staff i {
    position: absolute;
    font-style: normal;
    font-size: 30px;
    color: var(--accent2);
    opacity: .55;
}
.mt-staff .n1 { left: 22%; top: -2px; }
.mt-staff .n2 { left: 52%; top: 16px; font-size: 24px; }
.mt-staff .n3 { left: 78%; top: 6px; font-size: 26px; }

.mt-kicker {
    font: 700 11px var(--font-mono);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent2);
    margin: 0 0 8px;
}
.mt-hero h1 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 12px; }
.mt-lede { font-size: 14.8px; line-height: 1.95; color: var(--ink2); margin: 0 0 20px; max-width: 58em; }
.mt-lede b { color: var(--accent); border-bottom: 2px solid var(--accent-soft); }

.mt-tools { display: grid; gap: 14px; }
.mt-tool-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 18px 22px;
}
.mt-tool-hd {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.mt-tool-hd b { font-family: var(--font-head); font-size: 17px; color: var(--accent); }
.mt-tool-hd span { font-size: 12.5px; color: var(--muted); }
.mt-tool-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.mt-tool-grid--3 { grid-template-columns: 1fr 1fr auto; align-items: end; }

.mt-out { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--ink2); }
.mt-out:empty { margin: 0; }
.mt-note-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-note {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--card2);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--accent);
    border-radius: 9px;
    padding: 8px 13px 7px;
    min-width: 58px;
}
.mt-note b { font-family: var(--font-head); font-size: 16.5px; color: var(--ink); }
.mt-note small { font-size: 11px; color: var(--muted); }
.mt-step {
    font: 700 12px var(--font-mono);
    color: var(--accent2);
    letter-spacing: .1em;
}
.mt-err { color: var(--bad); font-weight: 600; font-size: 13.2px; }
.mt-chord-item {
    display: inline-flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card2);
    padding: 8px 13px;
    margin: 0 8px 8px 0;
}
.mt-chord-item b { font-family: var(--font-head); font-size: 16px; color: var(--accent); }
.mt-chord-item span { font-size: 12.5px; color: var(--ink2); }
.mt-chord-item small { font-size: 11.5px; color: var(--muted); }
.mt-int-verdict {
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14.5px;
}
.mt-int-verdict b { color: var(--accent); font-size: 16.5px; }

/* ---------- 调号表 ---------- */
.mt-keytable td b { font-family: var(--font-head); font-size: 15px; color: var(--accent); }
.mt-keytable td .acc { font-family: var(--font-mono); color: var(--accent2); }

/* ---------- 记号胶囊 ---------- */
.mt-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .mt-tool-grid, .mt-tool-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .mt-staff .n1 { left: 8%; }
    .mt-staff .n3 { left: 84%; }
}
