/**
 * Expert Directory block — 专家目录 (数据源: expert.superlabsuisse.com API)
 * 视觉对齐 expert 站目录: chips / 卡片网格 / 标签
 */
.gt-expert-directory {
  font-family: inherit;
  /* 2026-08-16 宽度对齐其他 block: var(--distance) 左右留白 */
  padding: 4vh var(--distance);
  padding-bottom: 30em;
  padding-top: 15em;
}

.gt-expert-directory__error {
  color: #5D6C72;
  font-size: 1.6rem;
}

/* ---- 过滤 chips ---- */
.gt-expert-filters {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 4rem;
}

.gt-expert-filter {
  display: flex;
  /* 2026-08-16 顶部对齐: 多行 chips 时 label 与第一行对齐 (原 center 会垂直居中) */
  align-items: flex-start;
  gap: 1.6rem;
}

.gt-expert-filter__label {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #B3B8BF;
  min-width: 10rem;
  padding-top: 0.7rem;
}

.gt-expert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.gt-expert-chip {
  border: 1px solid #E6E6E2;
  border-radius: 999px;
  background: #fff;
  font-size: 1.4rem;
  color: #15171D;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gt-expert-chip:hover {
  border-color: #001A71;
  color: #001A71;
}

.gt-expert-chip.is-active {
  background: #152869;
  border-color: #152869;
  color: #fff;
}

/* ---- 结果区 ---- */
.gt-expert-directory__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 5rem;
  margin-top: 15rem;
}

.gt-expert-directory__actions {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.gt-expert-action {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gt-expert-action--primary {
  background: #001A71;
  color: #fff;
  border: 1px solid #001A71;
}

.gt-expert-action--primary:hover {
  background: #152869;
}

.gt-expert-action--outline {
  background: #fff;
  color: #001A71;
  border: 1px solid #001A71;
}

.gt-expert-action--outline:hover {
  background: #001A71;
  color: #fff;
}

.gt-expert-directory__title {
  font-size: 3.2rem;
  font-weight: 600;
  color: #0A0A0A;
  margin: 0;
}

.gt-expert-directory__count {
  font-size: 1.5rem;
  color: #B3B8BF;
}

.gt-expert-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
}

.gt-expert-card {
  display: flex;
  flex-direction: column;
  /* 2026-08-16 图片贴边无边距: 卡片 padding 移到文字区, overflow 裁切圆角 */
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gt-expert-card:hover {
  box-shadow: 0 8px 24px rgba(0, 26, 113, 0.08);
  transform: translateY(-2px);
}

.gt-expert-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 2026-08-16 方形头像 (原 border-radius: 50% 圆形) */
  /* border-radius: 50%; */
  overflow: hidden;
  background: #F5F5F5;
}

.gt-expert-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gt-expert-card__name {
  font-size: 1.9rem;
  font-weight: 600;
  color: #001A71;
  margin: 1.6rem 2rem 0;
}

.gt-expert-card__title {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #5D6C72;
  margin: 0.6rem 2rem 0;
}

.gt-expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 2rem 2rem;
}

.gt-expert-tag {
  font-size: 1.2rem;
  color: #001A71;
  background: #F0F4FF;
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.gt-expert-directory__empty {
  font-size: 1.6rem;
  color: #B3B8BF;
  grid-column: 1 / -1;
}

@media all and (max-width: 1000px) {
  .gt-expert-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 600px) {
  .gt-expert-cards {
    grid-template-columns: 1fr;
  }

  .gt-expert-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}
