/* ===== 大屏设置弹窗样式（折叠分组） ===== */
.setting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.setting-row:last-child { margin-bottom: 4px; }
.setting-row label { min-width: 100px; font-size: 14px; color: #475569; font-weight: 500; }
.setting-row input[type="color"] {
  width: 52px; height: 38px; border: 1.5px solid #e2e8f0; border-radius: 10px; cursor: pointer; padding: 2px;
}
.setting-row input[type="range"] { width: 180px; accent-color: #6366f1; }
.setting-row .hint { font-size: 12px; color: #94a3b8; margin-left: 4px; }

/* 折叠分组 */
.settings-group {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.settings-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  background: #f8fafc;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.settings-group-header:hover { background: #eef2ff; }
.settings-arrow {
  font-size: 13px;
  color: #94a3b8;
  transition: transform 0.25s;
}
.settings-group.collapsed .settings-arrow { transform: rotate(-90deg); }
.settings-group-body {
  padding: 18px 18px 12px;
  border-top: 1px solid #f1f5f9;
}
.settings-group.collapsed .settings-group-body { display: none; }

/* ===== 快捷键捕捉框（点击进入监听，按键即设置） ===== */
.hk-capture {
  /* 按键捕获框样式（固定槽位与答题不全分值行共用） */
  min-width: 86px;
  padding: 8px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  user-select: none;
  transition: all 0.2s;
}
.hk-capture:hover { border-color: #a5b4fc; background: #eef2ff; }
/* 监听态：呼吸光圈提示"正在等待按键" */
.hk-capture.listening {
  border-color: #6366f1;
  background: #e0e7ff;
  color: #4f46e5;
  animation: hkPulse 1.1s ease-in-out infinite;
}
@keyframes hkPulse {
  50% { box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
}
.hk-clear {
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.hk-clear:hover { background: #fee2e2; color: #ef4444; transform: scale(1.1); }

/* ===== 答题不全分值按键：按分值配置多把快捷键 ===== */
.hk-partial-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.hk-partial-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hk-partial-row .hk-capture { min-width: 76px; padding: 6px 12px; }
.hk-partial-frag { font-size: 13px; color: #64748b; white-space: nowrap; }
.hk-partial-score {
  width: 64px;
  padding: 5px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #334155;
  font-family: inherit;
}
.hk-partial-score:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.hk-partial-del {
  border: none;
  background: #fef2f2;
  color: #dc2626;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}
.hk-partial-del:hover { background: #fecaca; }
.hk-partial-empty { font-size: 12.5px; color: #94a3b8; }
