/* 海纳 · 转行出路交互图谱（呼吸感版） */
.transfer-map-wrap {
  margin: 40px 0 24px;
  position: relative;
}

.transfer-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 8px;
}

.transfer-map-title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.transfer-map-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.transfer-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 32px;
  min-height: 460px;
  position: relative;
}

.transfer-map-svg-box {
  position: relative;
  min-height: 420px;
}

.transfer-map-svg-box svg {
  display: block;
  width: 100%;
  height: 440px;
}

/* 节点：纤细、通透 */
.tm-node {
  cursor: pointer;
}
.tm-node:focus {
  outline: none;
}

.tm-shape {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1;
  transition: stroke 300ms, fill 300ms, opacity 300ms, transform 300ms;
  transform-box: fill-box;
  transform-origin: center;
}

.tm-node:hover .tm-shape {
  transform: scale(1.15);
  stroke: #fff;
}

.tm-node[data-state="muted"] .tm-shape {
  opacity: 0.15;
}

.tm-node[data-state="active"] .tm-shape {
  fill: rgba(47, 212, 218, 0.15);
  stroke: #2FD4DA;
}

.tm-node[data-type="root"] .tm-shape {
  fill: rgba(47, 212, 218, 0.32);
  stroke: #2FD4DA;
  stroke-width: 1.4;
}

/* 连线：细但可见 + 虚线流动（能量从中心流向节点） */
.tm-link {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 0.9;
  stroke-dasharray: 5 5;
  fill: none;
  transition: stroke 300ms, opacity 300ms;
  animation: tmFadeIn 800ms ease-out forwards, tmLinkFlow 3.5s linear infinite;
}
@keyframes tmLinkFlow {
  to { stroke-dashoffset: -20; }
}

.tm-link[data-state="muted"] {
  opacity: 0.08;
}

/* 标签：轻、小、透气 */
.tm-label {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  user-select: none;
  transition: opacity 300ms, fill 300ms;
  letter-spacing: 0.01em;
}

.tm-node[data-state="muted"] .tm-label {
  opacity: 0.15;
}

.tm-node[data-state="active"] .tm-label {
  fill: #2FD4DA;
  font-weight: 500;
}

.tm-node[data-type="root"] .tm-label {
  fill: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.tm-num {
  font-size: 10px;
  fill: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  user-select: none;
}

/* 入场动画：节点逐个浮现 */
.tm-node {
  opacity: 0;
  animation: tmFadeIn 600ms ease-out forwards;
}

.tm-link {
  opacity: 0;
  animation: tmFadeIn 800ms ease-out forwards, tmLinkFlow 3.5s linear infinite;
}

@keyframes tmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 轻微浮动（呼吸，幅度加大可见） */
.tm-node[data-state="idle"] .tm-shape,
.tm-node[data-state="active"] .tm-shape {
  animation: tmBreathe 3.5s ease-in-out infinite;
}

@keyframes tmBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.07) translateY(-1.5px); }
}

/* 右侧详情面板：无框、极简 */
.transfer-map-detail {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 32px;
}

.tm-detail-empty {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

.tm-detail-empty .tm-empty-icon {
  font-size: 24px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.tm-detail-title {
  font-size: 17px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.tm-detail-sub {
  font-size: 11px;
  color: #2FD4DA;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-detail-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 18px;
}

.tm-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tm-detail-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.tm-detail-item .k {
  flex: 0 0 76px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.tm-detail-item .v {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.tm-detail-link {
  display: inline-block;
  margin-top: auto;
  color: #2FD4DA;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(47, 212, 218, 0.3);
  padding-bottom: 2px;
  transition: border-color 200ms;
}

.tm-detail-link:hover {
  border-bottom-color: #2FD4DA;
}

/* 响应式 */
@media (max-width: 900px) {
  .transfer-map-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .transfer-map-detail {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 0;
    padding-top: 20px;
    min-height: auto;
  }
  .transfer-map-svg-box svg {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .transfer-map-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .transfer-map-svg-box svg {
    height: 300px;
  }
  .tm-label {
    font-size: 10px;
  }
  .transfer-map-detail {
    padding-top: 16px;
  }
}
