/* css/relationships.css */
#relationships {
  background: var(--gradient-dark);
  min-height: 100vh;
  padding: 80px 0;
}

.relationship-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.relationship-modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  max-width: 800px;
  max-height: 80vh;
  overflow: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.relationship-network {
  width: 100%;
  height: 500px;
}

.network-node {
  cursor: pointer;
  transition: all 0.3s;
}

.network-node:hover {
  filter: brightness(1.3);
}

.network-link {
  stroke-opacity: 0.6;
}

.link-师徒 { stroke: #ffd700; }
.link-恋人 { stroke: #ff69b4; }
.link-伴侣 { stroke: #ff69b4; }
.link-对手 { stroke: #ff4444; }
.link-朋友 { stroke: #4444ff; }

.character-info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.character-info-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.character-info-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.relationship-trigger {
  display: inline-block;
  margin-left: 0.5rem;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}