/* 拼音声调标注练习 /tool/tone-quiz 样式（依赖 calc-common.css 全局变量） */

/* 关卡进度 */
.tq-level-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tq-level-name { font-size: 14px; font-weight: 800; color: var(--c-text); margin: 0; }
.tq-level-progress { font-size: 12px; color: var(--c-text-muted); margin: 0; }
.tq-progress-track {
    height: 8px;
    border-radius: 99px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    overflow: hidden;
    margin-bottom: 8px;
}
.tq-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    transition: width .3s ease;
}
.tq-level-rule { font-size: 12px; color: var(--c-text-muted); margin: 0; line-height: 1.6; }

/* 题目区 */
.tq-question-box {
    padding: 16px;
    border-radius: 12px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
}
.tq-word-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.tq-hanzi {
    font-size: 52px;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.1;
}
.tq-plain {
    font-size: 26px;
    font-weight: 700;
    color: var(--c-text-muted);
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--c-surface);
    border: 1px dashed var(--c-border);
}
.tq-q-text { font-size: 12.5px; color: var(--c-text-muted); text-align: center; margin-bottom: 10px; }

.tq-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.tq-opt {
    height: 52px;
    border-radius: 12px;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    font-family: inherit;
    font-size: 21px;
    font-weight: 800;
    color: var(--c-text);
    cursor: pointer;
    transition: all .15s ease;
}
.tq-opt:hover:not(:disabled) { border-color: var(--c-primary); transform: translateY(-1px); }
.tq-opt.is-ok { border-color: #16a34a; background: rgba(22,163,74,.12); color: #16a34a; }
.tq-opt.is-err { border-color: #dc2626; background: rgba(220,38,38,.1); color: #dc2626; }
.tq-opt:disabled { cursor: default; }

.tq-feedback {
    font-size: 12.5px;
    line-height: 1.8;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.tq-feedback.is-ok { background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.3); color: var(--c-text-sub); }
.tq-feedback.is-err { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: var(--c-text-sub); }
.tq-acts { display: flex; gap: 8px; justify-content: center; }
.tq-acts .btn { height: 34px; padding: 0 16px; border-radius: 10px; font-size: 12.5px; }

.tq-score { font-size: 12.5px; color: var(--c-text-muted); margin-top: 10px; }
.tq-score b { color: var(--c-text); }

/* 解析卡（右侧） */
.tq-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tq-detail-tag {
    flex: none;
    padding: 3px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    color: #8b5cf6;
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(139,92,246,.3);
}
.tq-detail-sub { font-size: 13px; font-weight: 700; color: var(--c-text-sub); }

.tq-big-pinyin {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: var(--c-text);
    padding: 20px 10px;
    border-radius: 14px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.tq-note-line {
    font-size: 13px;
    line-height: 1.8;
    color: var(--c-text-sub);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: var(--c-surface-soft);
    border: 1px solid var(--c-border);
}
.tq-note-line .lbl {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(0,0,0,.06);
    color: var(--c-text-sub);
}

/* 拼音表速览 */
.tq-sheets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tq-sheet {
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--c-surface-soft);
}
.tq-sheet h3 { font-size: 13.5px; font-weight: 800; color: var(--c-text); margin: 0 0 10px; }
.tq-sheet-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tq-sheet-chip {
    min-width: 34px;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    text-align: center;
}
.tq-rules { display: flex; flex-direction: column; gap: 8px; }
.tq-rule-chip {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(139,92,246,.3);
    background: rgba(139,92,246,.08);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text-sub);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 640px) {
    .tq-options { grid-template-columns: repeat(2, 1fr); }
    .tq-opt { height: 48px; font-size: 19px; }
    .tq-hanzi { font-size: 42px; }
    .tq-plain { font-size: 21px; }
    .tq-big-pinyin { font-size: 44px; }
    .tq-sheets { grid-template-columns: 1fr; }
}

/* 黑夜模式微调 */
[data-theme="dark"] .tq-note-line .lbl { background: rgba(255,255,255,.08); }
