/* ===================== 灵敏度调试助手 =====================
 * 配色与版式对齐「苟分点位图」：暗绿底 + 琥珀金主色。
 * 复用 style.css 中的 :root 变量（--bg / --panel / --panel-2 / --line
 * / --text / --muted / --accent / --accent-dim / --radius）。
 */

.sens-body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

/* ---------- topbar（对齐点位图 .topbar） ---------- */
.sens-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 17, 13, 0.9);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.sens-topbar h1 { font-size: 19px; margin: 0; letter-spacing: 1px; flex: 1; }
.sens-back {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  transition: all .15s;
}
.sens-back:hover { color: var(--text); border-color: #3a4d3f; }
.sens-tag {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 12px;
  color: #0b0f0c;
  background: var(--accent);
  padding: 6px 10px;
  border-radius: 6px;
  transform: skewX(-6deg);
}

/* ---------- steps（对齐点位图 .chip） ---------- */
.steps {
  display: flex;
  gap: 10px;
  padding: 16px 24px 4px;
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 7px 15px;
  white-space: nowrap;
  transition: all .15s;
}
.step.is-active { color: #0b0f0c; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.step.is-done { color: var(--text); border-color: var(--accent); background: var(--panel-2); }

/* ---------- panels（对齐点位图 .card / .guide-block） ---------- */
.sens-main { max-width: 1120px; margin: 0 auto; padding: 16px 24px 60px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: .5px; }
.panel-note { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 16px; }
.sub-title {
  font-size: 15px;
  color: var(--text);
  letter-spacing: 1px;
  margin: 26px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--accent);
  line-height: 1.2;
}
.setup-tips { margin: 18px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.dpi-field { max-width: 260px; margin-bottom: 18px; }
.dpi-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  outline: none;
}
.dpi-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.15); }

/* 按钮沿用 style.css 的 .btn-primary / .btn-ghost，这里不重定义配色 */

/* ---------- test head ---------- */
.test-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hud-timer {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- arena ---------- */
.arena {
  position: relative;
  height: 480px;
  margin: 6px 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 179, 1, 0.06), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 40px),
    #0d1410;
  overflow: hidden;
  cursor: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.arena.is-hitting { box-shadow: inset 0 0 0 2px rgba(239, 71, 111, 0.5); }

.crosshair {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  pointer-events: none;
  z-index: 5;
  display: none;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(245, 179, 1, 0.8);
}
.crosshair::before { left: 14px; top: 0; width: 2px; height: 30px; }
.crosshair::after { top: 14px; left: 0; height: 2px; width: 30px; }
.crosshair.is-hit::before,
.crosshair.is-hit::after { background: #ef476f; box-shadow: 0 0 8px #ef476f; }

.arena-hint {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.target {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.target-track {
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(144, 190, 109, 0.35), rgba(144, 190, 109, 0.12));
  border: 2px solid #90be6d;
  box-shadow: 0 0 18px rgba(144, 190, 109, 0.35);
}
.target-flick {
  width: 46px; height: 46px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.45), rgba(255, 183, 3, 0.15));
  border: 2px solid #ffb703;
  box-shadow: 0 0 18px rgba(255, 183, 3, 0.4);
}
.target.is-hidden { display: none; }

.test-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.test-foot b {
  display: inline-block;
  margin-left: 6px;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
}

/* ---------- result ---------- */
.profile {
  background: rgba(245, 179, 1, 0.07);
  border: 1px solid rgba(245, 179, 1, 0.28);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0 0 18px;
}
.metrics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.metric {
  flex: 1 1 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel-2);
}
.metric span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.metric b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 20px;
  color: var(--accent);
}

/* ---------- 分类表（每个分类一张卡） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}
.cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(245, 179, 1, 0.06);
  border-bottom: 1px solid var(--line);
}
.cat-head h3 { margin: 0; font-size: 13.5px; color: var(--text); }
.cat-range {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  white-space: nowrap;
}
.sens-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sens-table th, .sens-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.sens-table tbody tr:last-child th,
.sens-table tbody tr:last-child td { border-bottom: 0; }
.sens-table tbody th {
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 400;
}
.sens-table td {
  text-align: right;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  width: 1%;
  white-space: nowrap;
}

.advice { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.95; }
.advice li::marker { color: var(--accent); }

.calib-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.calib-btn {
  flex: 1 1 180px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
}
.calib-btn:hover { border-color: var(--accent); color: var(--accent); }
.calib-btn.is-on { border-color: var(--accent); color: var(--accent); background: rgba(245, 179, 1, 0.1); font-weight: 700; }
.calib-note { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }

.result-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .sens-topbar { padding: 12px 14px; gap: 10px; }
  .sens-topbar h1 { font-size: 16px; letter-spacing: .5px; }
  .sens-tag { display: none; }
  .steps { padding: 12px 14px 2px; gap: 8px; }
  .step { font-size: 12px; padding: 7px 12px; }
  .sens-main { padding: 12px 12px 48px; }
  .panel { padding: 16px; }
  .arena { height: 360px; }
  .hud-timer { font-size: 22px; }
  .result-actions { flex-direction: column-reverse; }
  .result-actions .btn-primary,
  .result-actions .btn-ghost { width: 100%; }
  .cat-grid { grid-template-columns: 1fr; }
  .sens-table { font-size: 12.5px; }
  .sens-table th, .sens-table td { padding: 8px 12px; }
  .cat-head h3 { font-size: 13px; }
}
