/* AI 员工中心 — 对齐参考图的能力卡设计语言 */

#ai-employees-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 0;
}

#main-viewport.is-employees-view #secondary-page-mount,
#main-viewport.is-employees-view #image-workspace-mount,
#main-viewport.is-employees-view #video-workspace-mount,
#main-viewport.is-employees-view #chat-workspace-mount,
#main-viewport.is-employees-view #advisor-chat-mount {
  display: none;
}

.xh-employees-center {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: auto;
  color: #e8ecf8;
  background:
    radial-gradient(ellipse 48% 36% at 85% 8%, rgba(99, 102, 241, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 32% at 12% 90%, rgba(56, 189, 248, 0.08), transparent 55%),
    #0c101c;
}

.xh-employees-center.is-open,
#ai-employees-mount.is-open {
  display: block;
}

#ai-employees-mount[hidden] {
  display: none !important;
}

.xh-employees-center__inner {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.xh-employees-center__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.xh-employees-center__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f4f6fb;
}

.xh-employees-center__subtitle {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.88);
}

.xh-employees-center__search-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(260px, 100%);
  margin-top: 4px;
}

.xh-employees-center__search-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(148, 163, 184, 0.7);
  font-size: 15px;
  pointer-events: none;
}

.xh-employees-center__search {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(18, 24, 38, 0.85);
  color: #f4f6fb;
  font-size: 13px;
  outline: none;
}

.xh-employees-center__search:focus {
  border-color: rgba(129, 140, 248, 0.45);
}

.xh-employees-center__filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.xh-employees-center__source-tabs,
.xh-employees-center__group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xh-employees-chip {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(203, 213, 225, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.xh-employees-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.xh-employees-chip.is-active {
  background: #6d5cff;
  color: #fff;
  border-color: transparent;
}

.xh-employees-chip--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.xh-employees-chip--ghost.is-active {
  background: rgba(109, 92, 255, 0.22);
  border-color: rgba(167, 139, 250, 0.4);
  color: #e9e4ff;
}

.xh-employees-section {
  margin-bottom: 28px;
}

.xh-employees-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.xh-employees-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f3fa;
}

.xh-employees-section__blurb {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.82);
}

.xh-employees-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* 参考图能力卡：左人物场景 ~42%，右信息区，自然融合 */
.xh-employee-card {
  --xh-emp-accent: #6d5cff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 28, 44, 0.96), rgba(12, 16, 28, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.xh-employee-card:hover {
  border-color: color-mix(in srgb, var(--xh-emp-accent) 45%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.xh-employee-card__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 35% 70%, color-mix(in srgb, var(--xh-emp-accent) 18%, transparent), transparent 70%),
    rgba(10, 14, 24, 0.35);
}

.xh-employee-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 48%,
    rgba(14, 18, 30, 0.35) 72%,
    rgba(14, 18, 30, 0.92) 100%
  );
}

.xh-employee-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.08) translate(-2%, 6%);
}

.xh-employee-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 16px 10px;
}

.xh-employee-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.xh-employee-card__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--xh-emp-accent);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--xh-emp-accent) 35%, transparent);
}

.xh-employee-card__heading-text {
  min-width: 0;
  flex: 1 1 auto;
}

.xh-employee-card__title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f7f8fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xh-employee-card__tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--xh-emp-accent) 78%, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xh-employee-card__intro {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(160, 170, 196, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xh-employee-card__cta {
  appearance: none;
  align-self: flex-start;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--xh-emp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--xh-emp-accent) 28%, transparent);
}

.xh-employee-card__cta:hover {
  filter: brightness(1.08);
}

.xh-employees-empty {
  padding: 72px 20px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.xh-employees-empty--inline {
  padding: 28px 20px;
  margin-top: 4px;
}

.xh-employees-empty--inline .xh-employees-empty__desc {
  margin-bottom: 14px;
}

.xh-employees-empty__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.xh-employees-empty__desc {
  margin: 0 0 18px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.92rem;
}

.xh-employees-empty__cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #6d5cff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 960px) {
  .xh-employees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .xh-employees-center__inner {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .xh-employees-center__header {
    flex-direction: column;
  }

  .xh-employees-center__search-wrap {
    width: 100%;
  }

  .xh-employees-grid {
    grid-template-columns: 1fr;
  }

  .xh-employee-card {
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    min-height: 156px;
  }
}
