/**
 * Page 09 · 人物目录 — Preserve + 焦点区重设计
 * 取消无图侧栏；「热门人物」有图横条；网格人像节奏。
 */

.huanyuhub-directory-page.hy-person-delta-a {
  --hy-person-gap: 24px;
}

/* —— 热门人物横条（替换原 feature + 空侧栏） —— */
.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot {
  width: min(1220px, calc(100% - 48px));
  margin: 8px auto 8px;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-head p {
  margin: 0;
  color: #667085;
  font-size: 12px;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #efeafc, #e7eefb);
  box-shadow: inset 0 0 0 1px rgb(17 24 39 / 6%);
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 220ms ease;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:hover .hy-person-hot-media img,
.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:focus-visible .hy-person-hot-media img {
  transform: scale(1.04);
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 2px;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-copy small {
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:hover strong,
.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:focus-visible strong {
  color: #7d4ff5;
}

.huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:focus-visible {
  outline: 2px solid #7d4ff5;
  outline-offset: 3px;
  border-radius: 14px;
}

/* 人物网格：统一头像比例 */
.huanyuhub-directory-page.hy-person-delta-a .hy-dir-grid--people {
  gap: 22px 16px;
  align-items: start;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-media--person {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1fb;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-media--person > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-card-copy {
  gap: 4px;
  padding-top: 10px;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-card-copy strong,
.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-card-copy a {
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-card-copy small,
.huanyuhub-directory-page.hy-person-delta-a .hy-person-card .hy-dir-card-copy span {
  color: #667085;
  font-size: 12px;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card:hover .hy-dir-card-copy a,
.huanyuhub-directory-page.hy-person-delta-a .hy-person-card:hover .hy-dir-card-copy strong {
  color: #7d4ff5;
}

/* 无图卡：收成紧凑文本态，不抢有图卡 */
.huanyuhub-directory-page.hy-person-delta-a .hy-person-card.is-text-only {
  border: 1px solid #e8eaf4;
  border-radius: 14px;
  background: #fff;
}

.huanyuhub-directory-page.hy-person-delta-a .hy-person-card.is-text-only .hy-dir-card-copy {
  padding: 14px;
  min-height: 72px;
}

@media (max-width: 1023px) {
  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 767px) {
  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot {
    width: min(100% - 32px, 1220px);
  }

  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-card:nth-child(n + 4) {
    display: none;
  }

  .huanyuhub-directory-page.hy-person-hot-v1 .hy-person-hot-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
