.team { position: relative; z-index: 3; max-width: 1340px; margin: 0 auto; padding: clamp(10px, 3vh, 28px) clamp(16px, 4vw, 48px) 100px; }
.team-title { font-family: "Sora", sans-serif; font-weight: 600; text-align: center; font-size: clamp(28px, 5vw, 46px); background: linear-gradient(100deg, #fff, #bcd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team-sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: 15px; }

.team-tree { display: flex; flex-direction: column; align-items: center; margin-top: 48px; overflow-x: hidden; padding-bottom: 10px; }
.team-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; transform-origin: top center; }
.team-empty { color: var(--muted); text-align: center; padding: 60px; }

.team-node { --c: #8048f4; display: flex; flex-direction: column; align-items: center; }

.team-rolehead {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(14px, 1.8vw, 18px); cursor: default; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 26%, rgba(10, 14, 30, 0.9)), rgba(10, 14, 30, 0.9));
  border: 1px solid color-mix(in srgb, var(--c) 65%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--c) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.team-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.team-role-name { color: color-mix(in srgb, var(--c) 70%, #ffffff); letter-spacing: 0.02em; }
.team-count { font-family: "Inter", sans-serif; font-weight: 600; font-size: 12px; color: #cfe0ff; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); padding: 1px 9px; border-radius: 999px; }
.team-info { font-size: 15px; color: #9fb0d0; }

.team-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: 300px; padding: 11px 15px; border-radius: 12px; font-family: "Inter", sans-serif; font-weight: 400;
  font-size: 13px; line-height: 1.5; color: #dfe7ff; background: rgba(9, 13, 30, 0.98); border: 1px solid rgba(123, 150, 230, 0.3);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.16s ease, transform 0.16s ease; z-index: 20; white-space: normal; text-align: center;
}
.team-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(9, 13, 30, 0.98); }
.team-rolehead:hover .team-tip, .team-rolehead:focus .team-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.team-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 760px; margin-top: 16px; }
.team-member {
  display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100px; padding: 15px 8px 12px; border-radius: 18px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: inherit; text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.team-member:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, 0.03)); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.team-member img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.team-member:hover img { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.team-member-name { font-size: 12.5px; color: #dfe7ff; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-none { color: #6b76a8; font-size: 13px; font-style: italic; }

.team-children { --gap: clamp(16px, 3vw, 40px); display: flex; justify-content: center; align-items: flex-start; gap: var(--gap); margin-top: 40px; position: relative; }
.team-children > .team-node { position: relative; }
.team-connect { position: absolute; pointer-events: none; z-index: 0; }
.team-connect > i { position: absolute; background: rgba(123, 150, 230, 0.5); border-radius: 1px; }

@media (max-width: 640px) {
  .team-tree { margin-top: 30px; align-items: stretch; }
  .team-children { flex-direction: column; align-items: center; gap: 26px; margin-top: 26px; }
  .team-children::before { content: ""; position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 2px; height: 14px; background: rgba(123, 150, 230, 0.5); }
  .team-children > .team-node { padding-top: 14px; }
  .team-children > .team-node::before { content: ""; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 2px; height: 14px; background: rgba(123, 150, 230, 0.5); }
  .team-connect { display: none; }
  .team-members { gap: 11px; margin-top: 12px; }
  .team-member { width: calc(33.333% - 8px); padding: 12px 6px 10px; }
  .team-member img { width: 50px; height: 50px; }
  .team-tip { max-width: 220px; }
}
@media (max-width: 400px) {
  .team-member { width: calc(50% - 8px); }
}
