/**
 * Page 11 · 活动目录 — Preserve 保守增量
 * 对齐 feature + 侧栏；editorial 栅格图文节奏；筛选折叠。
 */

.huanyuhub-directory-page.hy-events-delta-a {
  --hy-events-rail: 320px;
  --hy-events-gap: 24px;
}

/* —— 重点活动：与侧栏同高对齐 —— */
.huanyuhub-directory-page.hy-events-delta-a .hy-dir-feature-layout {
  grid-template-columns: minmax(0, 1fr) var(--hy-events-rail);
  gap: var(--hy-events-gap);
  align-items: stretch;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto 28px;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-feature {
  min-height: 360px;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-media--feature > img {
  object-position: center 30%;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 14px 8px;
  border: 1px solid var(--hy-dir-line, #e8eaf4);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list::before {
  content: "更多活动";
  display: block;
  margin: 0 0 8px;
  padding: 0 2px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list > a {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  padding: 10px 0;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list .hy-dir-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 2px;
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list strong {
  font-size: 13.5px;
  line-height: 1.35;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-side-list small {
  font-size: 11px;
}

/* —— 筛选：次要行默认折叠 —— */
.huanyuhub-directory-page.hy-events-delta-a .hy-events-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 6px 12px;
  border: 1px solid #e8eaf4;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font: 12px/1.4 "PingFang SC", "Noto Sans SC", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-events-filter-toggle:hover,
.huanyuhub-directory-page.hy-events-delta-a .hy-events-filter-toggle:focus-visible {
  border-color: #cdb8ff;
  color: #7d4ff5;
  outline: none;
}

.huanyuhub-directory-page.hy-events-delta-a.hy-events-filters-open .hy-events-filter-toggle {
  color: #7d4ff5;
  border-color: #cdb8ff;
  background: #faf7ff;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-intro .hy-dir-chips.hy-events-filter-extra {
  display: none;
  margin-top: 8px;
}

.huanyuhub-directory-page.hy-events-delta-a.hy-events-filters-open .hy-dir-intro .hy-dir-chips.hy-events-filter-extra {
  display: flex;
}

/* —— Editorial 栅格 —— */
.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial {
  gap: 20px 16px;
  align-items: start;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-media--editorial {
  aspect-ratio: 16 / 10;
  max-height: 180px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: linear-gradient(160deg, #efeafc, #e7eefb);
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-media--editorial > img {
  object-position: center 28%;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card-copy {
  gap: 4px;
  padding: 12px 14px 14px;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card-copy small {
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card-copy strong {
  min-height: 0;
  font-size: 14px;
  font-weight: 800;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card-copy span {
  font-size: 12px;
  line-height: 1.4;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card:hover .hy-dir-card-copy strong,
.huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-card:focus-within .hy-dir-card-copy strong {
  color: #7d4ff5;
}

/* 无图卡：紧凑文本态 */
.huanyuhub-directory-page.hy-events-delta-a .hy-dir-card.is-text-only .hy-dir-media--editorial {
  display: none;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-card.is-text-only .hy-dir-card-copy {
  padding-top: 16px;
  min-height: 120px;
}

.huanyuhub-directory-page.hy-events-delta-a .hy-dir-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8f9fc;
}

@media (max-width: 1023px) {
  .huanyuhub-directory-page.hy-events-delta-a .hy-dir-feature-layout {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1220px);
  }

  .huanyuhub-directory-page.hy-events-delta-a .hy-dir-feature {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .huanyuhub-directory-page.hy-events-delta-a .hy-dir-grid--editorial .hy-dir-media--editorial {
    max-height: 120px;
  }
}
