/* ==========================================================
   财富的深渊 — 调查助手面板样式
   ========================================================== */

.help-tabs { display: flex; gap: 3px; padding: 12px 14px 6px; flex-wrap: wrap; }
.help-tab {
  font-size: 12px; padding: 5px 12px;
  border-radius: 7px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: all .18s;
}
.help-tab:hover { color: var(--text); }
.help-tab.active { background: rgba(77, 208, 225, .14); color: var(--accent); border-color: var(--accent-dim); }
.help-body { flex: 1; overflow-y: auto; padding: 10px 18px 22px; }

/* ============ 任务页 ============ */
.help-task-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--amber);
  border-radius: 9px;
  padding: 13px 16px;
  margin-bottom: 10px;
}
.help-task-card .htc-title { font-size: 13.5px; font-weight: 700; color: var(--amber); letter-spacing: 1px; margin-bottom: 6px; }
.help-task-card .htc-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.8; }
.help-task-card .htc-done { color: var(--success); }
.help-task-card.done { border-left-color: var(--success); opacity: .65; }
.help-task-card.done .htc-title { color: var(--success); }

/* ============ 关系图 ============ */
.relation-graph {
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(77, 208, 225, .06), transparent 60%),
    var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}
.relation-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rel-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 74px; height: 74px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 11px;
  letter-spacing: .5px;
  z-index: 2;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  padding: 4px;
  line-height: 1.4;
}
.rel-node .rel-icon { font-size: 18px; margin-bottom: 2px; }
.rel-node:hover { border-color: var(--amber); transform: translate(-50%, -50%) scale(1.12); }
.rel-node.suspect { border-color: var(--danger); box-shadow: 0 0 14px rgba(214, 69, 69, .35); }
.rel-node.suspect::after {
  content: "嫌疑";
  position: absolute; top: -8px; right: -8px;
  font-size: 9px;
  background: var(--danger);
  color: #fff;
  border-radius: 8px;
  padding: 1px 6px;
  letter-spacing: 1px;
}
.rel-node.dead { border-color: #4a5a6e; opacity: .85; }
.rel-node.player { border-color: var(--accent); box-shadow: 0 0 14px rgba(77, 208, 225, .4); }
.relation-tip { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 8px; line-height: 1.7; }

/* ============ 证据链 ============ */
.chain-section { margin-bottom: 16px; }
.chain-section-title {
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.chain-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.chain-link {
  display: flex; align-items: stretch; gap: 8px;
  margin-bottom: 6px;
  animation: clueIn .35s ease;
}
.chain-link .chain-dot {
  width: 7px; flex-shrink: 0;
  border-radius: 4px;
  background: var(--accent-dim);
  margin-top: 2px;
}
.chain-link.locked { opacity: .4; }
.chain-link.locked .chain-dot { background: var(--border); }
.chain-link .chain-text {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.chain-link.unlocked .chain-text { color: var(--text); border-color: rgba(77, 208, 225, .3); }
.chain-link .chain-count { font-size: 10.5px; color: var(--amber); white-space: nowrap; align-self: center; }

/* ============ 真相进度 ============ */
.truth-page-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.truth-page-card .tp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.truth-page-card .tp-icon { font-size: 20px; }
.truth-page-card .tp-title { font-size: 14px; font-weight: 700; letter-spacing: 1px; flex: 1; }
.truth-page-card .tp-pct { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.truth-page-card .tp-bar { height: 6px; border-radius: 4px; background: #0d1420; overflow: hidden; margin-bottom: 8px; }
.truth-page-card .tp-bar i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .5s ease; }
.truth-page-card.suicide .tp-bar i { background: #7d8ca3; }
.truth-page-card.accident .tp-bar i { background: var(--amber); }
.truth-page-card.murder .tp-bar i { background: var(--danger); }
.truth-page-card .tp-desc { font-size: 12px; color: var(--text-faint); line-height: 1.7; }

/* ============ 搜索页 ============ */
.help-search-box { margin-bottom: 12px; }
.help-search-box input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13.5px;
  outline: none;
}
.help-search-box input:focus { border-color: var(--amber); }
.help-search-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.help-tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s;
}
.help-tag:hover { color: var(--amber); border-color: var(--amber-dim); }
.search-result {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--amber-dim);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}
.search-result .sr-q { color: var(--amber); font-weight: 700; }
.search-result.locked { opacity: .45; border-left-color: var(--border); }
.search-empty { color: var(--text-faint); text-align: center; padding: 26px 0; font-size: 12.5px; line-height: 2; }
.search-empty .se-sub { font-size: 11.5px; }

/* 无网络关系图时的说明 */
.relation-empty { padding: 40px 10px; text-align: center; color: var(--text-faint); font-size: 12.5px; line-height: 2; }
