/* ============================================================
   新题型模块（七选五 / 语段排序 / 小标题匹配）
   复用 rc-* 基础组件；本文件只定义 NT 专属：空位胶囊 / 选项池 / 判分态
   ============================================================ */

/* ---- 做题区容器 ---- */
.nt-test { max-width: 860px; margin: 0 auto; }
.nt-toolbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.nt-back {
    border: 1px solid #d8cdb8; background: #fffdf7; color: #6b5d45;
    border-radius: 10px; padding: 7px 14px; font-size: 13px; cursor: pointer;
    transition: all .18s ease;
}
.nt-back:hover { background: #f7efe0; border-color: #c4b593; }
.nt-type-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #e8f0e4, #f4f7f1);
    border: 1px solid #c9d8c2; color: #4a6741; border-radius: 999px;
    padding: 6px 14px; font-size: 13px; font-weight: 600;
}

/* ---- 篇章区（七选五：inline 空位） ---- */
.nt-passage {
    background: #fffdf7; border: 1px solid #e5dcc8; border-radius: 14px;
    padding: 22px 26px; line-height: 2.05; font-size: 15.5px; color: #3d3629;
    box-shadow: 0 1px 3px rgba(90, 74, 42, .06);
}
.nt-passage p { margin: 0 0 14px; }
.nt-passage p:last-child { margin-bottom: 0; }
.nt-passage .nt-given-tag {
    display: inline-block; font-size: 11px; color: #8a7b5e; border: 1px dashed #c9bb99;
    border-radius: 6px; padding: 1px 7px; margin-right: 8px; vertical-align: 1px;
}

/* ---- inline 空位胶囊 ---- */
.nt-slot {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 30px; padding: 0 10px; margin: 0 3px;
    border: 1.5px dashed #b8a780; border-radius: 999px; background: #faf5e9;
    color: #8a7b5e; font-size: 13px; font-weight: 600; cursor: pointer;
    vertical-align: middle; transition: all .16s ease; user-select: none;
}
.nt-slot:hover { border-color: #96804f; background: #f5ecd7; }
.nt-slot.filled { border-style: solid; border-color: #a8946a; background: #f2ead6; color: #5d4f33; }
.nt-slot.sel { border-color: #d29a3c; background: #fdf3dd; box-shadow: 0 0 0 3px rgba(210, 154, 60, .18); }
.nt-slot.ok { border-color: #7fb069; background: #edf6e8; color: #3f6d2e; }
.nt-slot.bad { border-color: #d4736a; background: #fbeeec; color: #a34237; }
.nt-slot:disabled { cursor: default; }

/* ---- 排序题：block 级段落空槽 ---- */
.nt-sort-wrap { display: flex; flex-direction: column; gap: 10px; }
.nt-sort-slot {
    min-height: 64px; border: 1.5px dashed #c3b28a; border-radius: 12px;
    background: #fbf7ec; padding: 10px 14px; cursor: pointer; transition: all .16s ease;
    display: flex; gap: 10px; align-items: flex-start;
}
.nt-sort-slot:hover { border-color: #96804f; }
.nt-sort-slot.sel { border-color: #d29a3c; background: #fdf3dd; box-shadow: 0 0 0 3px rgba(210, 154, 60, .18); }
.nt-sort-slot.ok { border-color: #7fb069; background: #edf6e8; }
.nt-sort-slot.bad { border-color: #d4736a; background: #fbeeec; }
.nt-sort-num {
    flex: none; width: 34px; height: 26px; border-radius: 8px; background: #efe6d2;
    color: #6b5d45; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nt-sort-body { font-size: 14.5px; line-height: 1.9; color: #4a4335; }
.nt-sort-body .nt-hint { color: #a5967a; font-size: 13px; }
.nt-sort-ok-label { font-size: 12px; font-weight: 700; margin-left: 6px; }

/* ---- 小标题段落行 ---- */
.nt-heads-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.nt-heads-row .nt-slot { flex: none; margin: 4px 0 0; }
.nt-heads-text { flex: 1; }

/* ---- 选项池 ---- */
.nt-opts { margin-top: 20px; }
.nt-opts-h {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.nt-opts-title { font-size: 14px; font-weight: 700; color: #5d4f33; }
.nt-opts-tip { font-size: 12.5px; color: #a5967a; }
.nt-opt {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fffdf7; border: 1px solid #e2d8c2; border-radius: 12px;
    padding: 12px 16px; margin-bottom: 9px; cursor: pointer;
    transition: all .16s ease;
}
.nt-opt:hover { border-color: #bda875; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(90, 74, 42, .08); }
.nt-opt.sel { border-color: #d29a3c; background: #fdf6e6; box-shadow: 0 0 0 2px rgba(210, 154, 60, .22); }
.nt-opt.used { opacity: .38; pointer-events: none; }
.nt-opt-key {
    flex: none; width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, #efe6d2, #e6d9be); color: #6b5d45;
    font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.nt-opt-text { font-size: 14.5px; line-height: 1.85; color: #4a4335; }

/* ---- 提交条 ---- */
.nt-submit-bar {
    display: flex; align-items: center; gap: 14px; margin: 20px 0 8px; flex-wrap: wrap;
}
.nt-submit {
    border: none; border-radius: 12px; padding: 11px 34px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, #c9a25e, #b08948); color: #fff;
    cursor: pointer; transition: all .18s ease; box-shadow: 0 3px 10px rgba(176, 137, 72, .28);
}
.nt-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(176, 137, 72, .35); }
.nt-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.nt-progress-hint { font-size: 13px; color: #a5967a; }
.nt-score {
    font-size: 15px; font-weight: 800; border-radius: 10px; padding: 8px 18px;
}
.nt-score.ok { background: #edf6e8; color: #3f6d2e; }
.nt-score.mid { background: #fdf3dd; color: #9a6b16; }
.nt-score.bad { background: #fbeeec; color: #a34237; }

/* ---- 解析区 ---- */
.nt-explain {
    margin-top: 18px; border: 1px solid #ddd2b8; border-radius: 14px;
    background: linear-gradient(180deg, #fbf8f0, #f7f1e3); padding: 18px 20px;
}
.nt-explain h4 { margin: 0 0 12px; font-size: 14.5px; color: #5d4f33; }
.nt-ex-row {
    display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; margin-bottom: 7px;
    font-size: 13.5px; line-height: 1.8; background: rgba(255, 253, 247, .75);
}
.nt-ex-row.ok { border-left: 3px solid #7fb069; }
.nt-ex-row.bad { border-left: 3px solid #d4736a; }
.nt-ex-num { flex: none; font-weight: 800; color: #8a7b5e; min-width: 30px; }
.nt-ex-main { color: #4a4335; flex: 1; }
.nt-ex-clue { display: block; color: #8a7b5e; font-size: 12.5px; margin-top: 2px; }
.nt-again {
    margin-top: 10px; border: 1px solid #d8cdb8; background: #fffdf7; color: #6b5d45;
    border-radius: 10px; padding: 8px 18px; font-size: 13.5px; cursor: pointer;
}
.nt-again:hover { background: #f7efe0; }

/* ---- 错因选择（错空提交后） ---- */
.nt-cause { margin-top: 14px; }
.nt-cause-h { font-size: 13px; font-weight: 700; color: #5d4f33; margin-bottom 8px; }
.nt-cause-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.nt-cause-btn {
    border: 1px solid #d8cdb8; background: #fffdf7; color: #6b5d45;
    border-radius: 999px; padding: 4px 13px; font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.nt-cause-btn:hover { background: #f7efe0; border-color: #bda875; }

/* ---- 列表卡片补充（复用 rc-card，加题型角标） ---- */
.nt-card-type {
    display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 7px;
    padding: 2px 8px; margin-right: 6px;
}
.nt-card-type.t7x5 { background: #e8f0e4; color: #4a6741; }
.nt-card-type.tsort { background: #e4edf0; color: #3e5f6d; }
.nt-card-type.theads { background: #f0e9e4; color: #6d5844; }

@media (max-width: 640px) {
    .nt-passage { padding: 16px 15px; font-size: 14.5px; line-height: 1.95; }
    .nt-opt { padding: 10px 12px; }
    .nt-heads-row { flex-direction: column; }
    .nt-submit { width: 100%; }
}
