/**
 * Page 07 · 资讯目录 — Option A（Preserve 保守增量）
 * 不改 IA / 不藏 visual-grid / 不换色板。只修对齐、条数、图文节奏与噪声。
 */

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

/* —— P0 栅格对齐：头条区与信息流共用 1fr + 320，两列同高 —— */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature-layout,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-news-feed {
  grid-template-columns: minmax(0, 1fr) var(--hy-news-rail);
  gap: var(--hy-news-gap);
  align-items: stretch;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature-lead,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* 原「近期资讯」标题藏起，改画在侧栏卡片内顶，与左侧头条顶边齐平 */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-column > .hy-dir-section-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-news-sidebar {
  padding-left: 0;
  border-left: 0;
}

/* 侧栏近期：卡片顶对齐头条；行内顶对齐 */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 14px 8px;
  min-height: 0;
  box-sizing: border-box;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-list::before {
  content: "近期资讯";
  display: block;
  margin: 0 0 8px;
  padding: 0 2px;
  color: var(--hy-dir-ink, #111827);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

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

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-thumb {
  display: block;
  width: 52px;
  height: 52px;
  margin-top: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0ebff, #e8f0ff);
  flex-shrink: 0;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-thumb.is-empty {
  box-shadow: inset 0 0 0 1px #e8eaf4;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 0;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-list .hy-dir-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  margin: 0 0 1px;
  padding: 2px 7px;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--flash .hy-dir-pill {
  color: #3b6fbf;
  background: #edf3ff !important;
}
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--actor_update .hy-dir-pill {
  color: #9b3d72;
  background: #fbf0f5 !important;
}
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--cp_update .hy-dir-pill {
  color: #6b4fa0;
  background: #f4effc !important;
}
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--platform_update .hy-dir-pill {
  color: #2f7488;
  background: #eef7f9 !important;
}
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--news .hy-dir-pill,
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-side-story--official_announcement .hy-dir-pill {
  color: #6b3fd4;
  background: #f3edff !important;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-list strong {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-side-list small {
  color: #667085;
  font-size: 11px;
}

/* 有图头条：取消限高，随侧栏拉满同高，消除左下留白 */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature--has-image {
  flex: 1 1 auto;
  min-height: 360px;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature--has-image .hy-dir-media--feature {
  position: absolute;
  inset: 0;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature-copy strong {
  font-size: clamp(20px, 2.2vw, 28px);
}

/* —— P1 有图卡：保持冲击力，压到 ~16:10 + 最大高度 —— */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card .hy-dir-media--editorial,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card.hy-dir-news-card--actor_update .hy-dir-media--editorial,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card.hy-dir-news-card--flash .hy-dir-media--editorial,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card.hy-dir-news-card--cp_update .hy-dir-media--editorial,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card.hy-dir-news-card--platform_update .hy-dir-media--editorial {
  aspect-ratio: 16 / 10;
  max-height: 220px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card .hy-dir-media--editorial > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-copy {
  gap: 6px;
  padding: 14px 15px 15px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-copy strong {
  font-size: 17px;
  color: #111827;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-copy > span {
  color: #4b5565;
}

/* 列表有图：缩略图固定比例，禁止竖图撑高 */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--has-image:not(.hy-news-list-item--flash) .hy-news-list-item-link {
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: start;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--has-image:not(.hy-news-list-item--flash) .hy-dir-media--editorial {
  aspect-ratio: 16 / 10;
  max-height: 96px;
  border-radius: 10px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-list-copy strong {
  color: #111827;
  font-size: 17px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-list-summary {
  color: #4b5565;
}

/* —— P1 快讯 / 无图：紧凑横条，不抢有图卡 —— */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--flash .hy-dir-media,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--flash .hy-dir-media--editorial {
  display: none !important;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--flash .hy-news-list-item-link {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 12px 16px;
  border: 1px solid #e2e8f6;
  background: #f7f9ff;
  border-radius: 10px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--flash .hy-news-list-copy strong {
  font-size: 15px;
  font-weight: 750;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--flash .hy-news-list-summary {
  -webkit-line-clamp: 1;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--no-image:not(.hy-news-list-item--flash) .hy-news-list-item-link {
  grid-template-columns: 1fr;
  padding: 14px 16px;
}

/* —— P1 归档列表隐藏内部系统作者标签（详情页保留署名契约） —— */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-copy em,
.huanyuhub-directory-page.hy-news-delta-a .hy-dir-feature-author,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-list-author {
  display: none;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-dir-news-visual > small {
  opacity: 0.72;
  font-size: 10px;
  padding: 3px 7px;
}

/* —— P2 更多筛选默认收起；人物 chip 折叠 —— */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-filters:not([open]) .hy-news-filters-panel {
  display: none;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filter,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-clear-filters {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filter {
  box-sizing: border-box;
  max-width: 100%;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #d4c4fb;
  background: #f7f3ff;
  color: #6b3fd4;
  text-align: left;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filter > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-clear-filters {
  padding: 7px 10px;
  color: var(--hy-dir-muted, #667085);
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filter:hover,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-active-filter:focus-visible {
  border-color: var(--hy-dir-purple, #7d4ff5);
  background: #f1eaff;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-clear-filters:hover,
.huanyuhub-directory-page.hy-news-delta-a .hy-news-clear-filters:focus-visible {
  color: var(--hy-dir-purple, #7d4ff5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-filters-panel nav[aria-label="按人物筛选"] {
  position: relative;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-news-filters-panel nav[aria-label="按人物筛选"]:not(.is-expanded) {
  max-height: 42px;
  overflow: hidden;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-chip-fold-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--hy-dir-line, #e8eaf4);
  border-radius: 999px;
  background: #fff;
  color: var(--hy-dir-muted, #667085);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.huanyuhub-directory-page.hy-news-delta-a .hy-chip-fold-btn:hover,
.huanyuhub-directory-page.hy-news-delta-a .hy-chip-fold-btn:focus-visible {
  color: var(--hy-dir-purple, #7d4ff5);
  border-color: #d4c4fb;
}

/* 无图头条：别占太大竖向空间 */
.huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature--no-image {
  min-height: 168px;
  aspect-ratio: auto;
}

@media (max-width: 1023px) {
  .huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature-layout,
  .huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-news-feed {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }
}

@media (max-width: 767px) {
  .huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-dir-feature-layout,
  .huanyuhub-directory-page.hy-news-delta-a .hy-news-index .hy-news-feed {
    grid-template-columns: 1fr;
  }

  .huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card .hy-dir-media--editorial,
  .huanyuhub-directory-page.hy-news-delta-a .hy-news-visual-card.hy-dir-news-card--actor_update .hy-dir-media--editorial {
    max-height: 180px;
  }

  .huanyuhub-directory-page.hy-news-delta-a .hy-news-text-list .hy-news-list-item--has-image:not(.hy-news-list-item--flash) .hy-news-list-item-link {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
}
