/* ============================================================
   AI 团队展示区（全站共用）
   参考 zhix88.com 的智能体页：左侧「主管」大卡 + 右侧成员大头像网格
   ⚠️ 主题色取当前页面的强调色：优先 --acc（四个创作台页），
      退到 --teal（写真馆），再退到 --gold（后台金色）。
   ============================================================ */

.team-block {
  --ta: var(--acc, var(--teal, var(--gold, #c9a961)));
  --ta-glow: var(--acc-glow, var(--teal-glow, rgba(201, 169, 97, .25)));
  margin: 26px auto 6px;
  max-width: 1180px;
}

/* ── 标题行：为你效力的 AI XX 团队 + N 位成员在线 ── */
.team-block .team-head {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.team-block .team-title {
  font-family: var(--serif, 'Noto Serif SC', serif);
  font-size: 15.5px; letter-spacing: .06em; color: var(--soft, var(--text-soft));
}
.team-block .team-online {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; color: var(--text, #f4efe6);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
}
.team-block .team-online i {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: teamPulse 2.4s ease-in-out infinite;
}
@keyframes teamPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── 主体：左主管 + 右成员 ── */
.team-block .team-body {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}

/* 主管卡 */
.team-block .team-leader {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  flex: 0 1 344px; min-width: 300px;
}
.team-block .team-leader .tl-avatar {
  width: 84px; height: 84px; flex: none; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid var(--ta);
  box-shadow: 0 0 22px var(--ta-glow);
}
.team-block .tl-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif, 'Noto Serif SC', serif);
  font-size: 17px; font-weight: 600; color: var(--text, #f4efe6);
  margin-bottom: 6px;
}
.team-block .tl-badge {
  padding: 2px 9px; border-radius: 999px; font-family: var(--sans, sans-serif);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--ta); background: color-mix(in srgb, var(--ta) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ta) 40%, transparent);
}
.team-block .tl-desc {
  margin: 0; font-size: 12.5px; line-height: 1.7;
  color: var(--mute, var(--text-mute, #7c7367));
}

/* 成员网格 */
.team-block .team-members {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px 24px; flex: 1 1 560px; max-width: 620px; min-width: 0;
}
.team-block .tm {
  width: 96px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: default;
}
.team-block .tm img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .22s, box-shadow .22s;
}
.team-block .tm:hover img {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--ta);
  box-shadow: 0 0 20px var(--ta-glow);
}
.team-block .tm span {
  font-size: 12.5px; line-height: 1.4; text-align: center;
  color: var(--soft, var(--text-soft, #b5aa9b));
}
.team-block .tm:hover span { color: var(--text, #f4efe6); }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .team-block { margin-top: 20px; }
  .team-block .team-body { gap: 22px; }
  .team-block .team-leader { min-width: 0; width: 100%; max-width: none; }
  .team-block .team-members { gap: 18px 16px; max-width: none; }
  .team-block .tm { width: 76px; }
  .team-block .tm img { width: 62px; height: 62px; }
  .team-block .tm span { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-block .team-online i { animation: none; }
  .team-block .tm img { transition: none; }
}
