/* ============================================================
   案件线索墙 — SVG Connector Styles
   红色毛线连线效果
   ============================================================ */

/* ── 连线基础 ── */
.connector-line {
  stroke: var(--yarn);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  cursor: pointer;
  pointer-events: stroke;
  transition: stroke-width var(--duration-fast) var(--ease-out);

  /* 毛线质感 — 轻微波动 */
  filter: drop-shadow(1px 1px 1px var(--yarn-shadow));
}

.connector-line:hover {
  stroke-width: 4;
  filter: drop-shadow(2px 2px 3px var(--yarn-shadow));
}

/* ── 箭头标记 ── */
.arrow-marker {
  fill: var(--yarn);
}

/* ── 起点圆点 ── */
.connector-dot {
  fill: var(--yarn);
  stroke: #fff;
  stroke-width: 1.5;
  r: 4;
  pointer-events: none;
}

/* ── 连线绘制动画 ── */
.connector-line.drawing {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 0.6s var(--ease-out) forwards;
}

/* ── 连线状态 ── */
.connector-line.correct {
  animation: lineCorrect 1s ease-in-out infinite;
}

.connector-line.wrong {
  animation: lineWrong 0.5s ease-in-out;
}

/* ── 删除提示 ── */
.connector-line:hover + .connector-label,
.connector-line:hover ~ .connector-delete {
  opacity: 1;
}

.connector-delete {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: 10;
}

/* ── 连线标签 ── */
.connector-label {
  position: absolute;
  background: var(--paper-strong);
  border: 1px solid rgba(139, 90, 43, 0.3);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--text-soft);
  font-family: var(--font-typewriter);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: 10;
}
