/* 实时热点条：首页与各模块搜索框共用。高度从首屏就占住，避免标题到达后把搜索框顶下去。 */
.portal-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  min-height: 40px;
  overflow: hidden;
  visibility: visible;
}
.portal-search-bar .portal-ticker {
  max-width: 1072px;
  margin: 0 auto 10px;
}
.search-well .portal-ticker {
  max-width: calc(var(--page, 1180px) - 48px);
  margin: 0 auto 10px;
}
.gh-hot-search .portal-ticker {
  max-width: none;
  margin: 0 0 10px;
}
/* 帮助页：与求资源卡片同宽，高度从首屏占住。滚动时贴在顶栏下沿。 */
body.feedback-page .feedback-main > .portal-ticker {
  position: sticky;
  top: var(--header-h, calc(var(--bar-h) + env(safe-area-inset-top, 0px)));
  z-index: 34;
  max-width: 640px;
  margin: 0 auto 10px;
  background: var(--bg);
}
.portal-ticker-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e23b2f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.portal-ticker-badge:hover { background: #c43228; color: #fff; }
.portal-ticker-view { flex: 1; min-width: 0; overflow: hidden; }
.portal-ticker-track {
  display: flex;
  width: max-content;
  animation: portal-ticker-marq var(--dur, 48s) linear infinite;
}
.portal-ticker:hover .portal-ticker-track { animation-play-state: paused; }
@keyframes portal-ticker-marq { to { transform: translateX(-50%); } }
.portal-ticker-group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.portal-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.portal-ticker-item:hover { color: #e23b2f; }
.portal-ticker-item i {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--pc, #e23b2f);
}
.portal-ticker-item i img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .portal-ticker-track { animation: none; }
  .portal-ticker-view { overflow-x: auto; }
}
@media (max-width: 720px) {
  .search-well .portal-ticker,
  .portal-search-bar .portal-ticker { max-width: none; }
}
