/*!
 * home-notice.css —— 首页「平台公告」条（2026-09-16）
 * ---------------------------------------------------------------------------
 * 仅 index.html 引用（页面级隔离）；DOM 由 home-notice.js 注入到 hero 之后。
 * 设计：细长白条 —— 左「公告」红标 + 中间轮播标题（淡入淡出）+ 右「更多」。
 * 规矩：不写 padding-bottom；移动端窄屏只收字号。
 */
.hn-bar {
  max-width: 1240px;
  margin: 14px auto 0;
  padding: 0 20px;
}
.hn-in {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e3d9cf;
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: 0 2px 10px rgba(38, 33, 29, 0.04);
}
.hn-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d24233, #a63329);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
  padding: 5px 12px;
}
.hn-tag svg { display: block; }
/* 标题轮播区：固定高度防跳动 */
.hn-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}
.hn-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #26211d;
  text-decoration: none;
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.hn-title.on { opacity: 1; transform: none; pointer-events: auto; }
.hn-title .hn-date {
  flex: none;
  font-size: 12px;
  color: #b3a89d;
}
.hn-title b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hn-title:hover b { color: #c93628; }
/* 右侧「更多」 */
.hn-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #9a8f84;
  text-decoration: none;
}
.hn-more:hover { color: #c93628; }
/* 小圆点指示器 */
.hn-dots { flex: none; display: flex; gap: 5px; }
.hn-dots i {
  cursor: pointer;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3d9cf;
  transition: background 0.3s ease;
}
.hn-dots i.on { background: #c93628; }

@media (max-width: 640px) {
  .hn-bar { margin-top: 10px; padding: 0 12px; }
  .hn-in { padding: 9px 12px; gap: 10px; }
  .hn-tag { font-size: 11.5px; padding: 4px 9px; letter-spacing: 1px; }
  .hn-title { font-size: 13px; }
  .hn-title .hn-date { display: none; }
  .hn-dots { display: none; }
}
