/* ============================================================
   css/panels/panels-ipa.css — 音标（第 11 窗口第四批）
   前缀一律 ip-（长期规则 #213：分区前缀不许与别的分区撞名）。
   令牌只用 --ec-*（不许新增变量，长期规则：全模块唯一一份令牌在 panels-learning.css）。
   横向留白与别的分区一致（24px；窄屏 360 用 16px）—— 贴边那条是量尺会量的。
   ============================================================ */

.ip-page { padding-bottom: 28px; }
.ip-langs { display: flex; gap: 8px; padding: 14px 24px 0; }
.ip-lang {
    flex: 1; min-height: 44px; border: 1px solid var(--ec-line-soft); border-radius: 12px;
    background: var(--ec-surface); color: var(--ec-sub); padding: 8px 6px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 13px; line-height: 1.3; transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.ip-lang em { font-family: var(--font-display); font-style: italic; font-size: 10.5px; color: var(--ec-gold-ink); opacity: 0.85; margin-top: 2px; }
.ip-lang.is-on { border-color: var(--ec-gold); color: var(--ec-ink); }
.ip-lead { padding: 14px var(--ec-gutter, 24px) 0; font-size: 12.5px; line-height: 1.8; color: var(--ec-sub); }

.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; padding-top: 12px; }
.ip-cell {
    border: 1px solid var(--ec-line-soft); border-radius: 12px; background: var(--ec-surface);
    min-height: 58px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ip-cell:active { transform: scale(0.97); }
.ip-sym { font-family: var(--font-display); font-size: 18px; color: var(--ec-ink); line-height: 1.1; }
.ip-word { font-size: 10.5px; color: var(--ec-sub); }

.ip-sheet { padding: 4px 2px 0; }
.ip-sheet-sym { font-family: var(--font-display); font-size: 40px; line-height: 1.1; color: var(--ec-ink); text-align: center; }
.ip-sheet-word { text-align: center; font-size: 13px; color: var(--ec-sub); margin-top: 6px; }
.ip-sheet-row { display: flex; gap: 10px; margin-top: 16px; }
.ip-sheet-k { flex: 0 0 62px; font-size: 12px; color: var(--ec-sub); }
.ip-sheet-v { flex: 1; font-size: 12.5px; line-height: 1.8; color: var(--ec-ink); }
.ip-sheet-actions { display: flex; gap: 10px; margin-top: 18px; }

.ip-pairs { padding: 12px 24px 0; }
.ip-pair { border-bottom: 1px solid var(--ec-line-soft); padding: 12px 0; }
.ip-pair:last-child { border-bottom: 0; }
.ip-pair-head { display: flex; align-items: center; gap: 8px; }
.ip-pair-word {
    flex: 1; min-height: 40px; border: 1px solid var(--ec-line-soft); border-radius: 10px;
    background: var(--ec-surface); color: var(--ec-ink); font-size: 14px; cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ip-pair-word:active { transform: scale(0.98); }
.ip-pair-toggle {
    flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
    background: none; color: var(--ec-gold-ink); font-size: 12px; cursor: pointer;
}
.ip-pair-body { padding-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ec-sub); }
.ip-pair-body em { font-style: normal; color: var(--ec-ink); }

.ip-q { padding: 16px var(--ec-gutter, 24px) 0; }
.ip-q-ask { font-size: 13.5px; line-height: 1.7; color: var(--ec-ink); }
.ip-q-word { padding-top: 8px; }
.ip-q-say {
    min-height: 36px; padding: 0 14px; border: 1px solid var(--ec-line-soft); border-radius: 999px;
    background: var(--ec-surface); color: var(--ec-sub); font-size: 12px; cursor: pointer;
}
.ip-q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.ip-q-opt {
    min-height: 44px; border: 1px solid var(--ec-line-soft); border-radius: 10px;
    background: var(--ec-surface); color: var(--ec-ink); font-size: 15px; cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.ip-q-opt.is-pick { border-color: var(--ec-gold); background: var(--ec-surface-solid); }

.ip-wrong { padding: 12px 0; border-bottom: 1px solid var(--ec-line-soft); }
.ip-wrong:last-child { border-bottom: 0; }
.ip-wrong-k { font-size: 13.5px; font-weight: 600; color: var(--ec-ink); }
.ip-wrong-v { font-size: 12.5px; line-height: 1.8; color: var(--ec-sub); margin-top: 4px; }

@media (max-width: 369px) {
    .ip-langs, .ip-lead, .ip-pairs, .ip-q { padding-left: 16px; padding-right: 16px; }
    .ip-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .ip-cell, .ip-pair-word, .ip-lang, .ip-q-opt { transition: none; }
    .ip-cell:active, .ip-pair-word:active { transform: none; }
}
