/* 首页公告滚动条 & 搜索框热搜词（跟随主题夜间 / 白天 / 简约护眼变量） */
.wpnav-home-hotwords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 10px;
}
.wpnav-home-hotwords-label {
  font-size: 12px;
  color: var(--wpnav-text-faint, #8a8f98);
  margin-right: 2px;
  user-select: none;
}
.wpnav-home-hotword-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--wpnav-border, rgba(255, 255, 255, .12));
  background: var(--wpnav-surface, rgba(255, 255, 255, .05));
  color: var(--wpnav-text-dim, #c4c7d0);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
}
.wpnav-home-hotword-chip:hover {
  border-color: var(--wpnav-accent-a, #7c5cff);
  color: var(--wpnav-text, #fff);
  background: var(--wpnav-surface-hover, rgba(255, 255, 255, .1));
  transform: translateY(-1px);
}

.wpnav-bulletin-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: var(--wpnav-radius-md, 14px);
  border: 1px solid var(--wpnav-border, rgba(255, 255, 255, .1));
  background: var(--wpnav-glass-bg, rgba(255, 255, 255, .05));
  backdrop-filter: var(--wpnav-glass-blur, blur(14px));
  -webkit-backdrop-filter: var(--wpnav-glass-blur, blur(14px));
  color: var(--wpnav-text, #e8e9f0);
}
.wpnav-bulletin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wpnav-accent-a, #7c5cff) 18%, transparent);
  color: var(--wpnav-accent-a, #7c5cff);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.wpnav-bulletin-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}
.wpnav-bulletin-track {
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.wpnav-bulletin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--wpnav-text, #e8e9f0);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.wpnav-bulletin-item:hover .wpnav-bulletin-title {
  color: var(--wpnav-accent-a, #7c5cff);
}
.wpnav-bulletin-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .16s ease;
}
.wpnav-bulletin-date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--wpnav-text-faint, #8a8f98);
}
.wpnav-bulletin-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wpnav-bulletin-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--wpnav-border, rgba(255, 255, 255, .12));
  border-radius: 6px;
  background: transparent;
  color: var(--wpnav-text-dim, #9296ab);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.wpnav-bulletin-nav:hover {
  color: var(--wpnav-text, #fff);
  border-color: var(--wpnav-accent-a, #7c5cff);
}

/* 公告详情弹窗 */
.wpnav-bulletin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wpnav-bulletin-modal[hidden] { display: none; }
.wpnav-bulletin-dialog {
  width: min(560px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--wpnav-radius-lg, 18px);
  border: 1px solid var(--wpnav-border, rgba(255, 255, 255, .14));
  background: var(--wpnav-bg-elevated, #151822);
  color: var(--wpnav-text, #e8e9f0);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.wpnav-bulletin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wpnav-border, rgba(255, 255, 255, .1));
}
.wpnav-bulletin-dialog-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.wpnav-bulletin-dialog-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--wpnav-border, rgba(255, 255, 255, .14));
  background: transparent;
  color: var(--wpnav-text-dim, #9296ab);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.wpnav-bulletin-dialog-close:hover { color: var(--wpnav-text, #fff); }
.wpnav-bulletin-dialog-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.75;
}
.wpnav-bulletin-dialog-body img { max-width: 100%; height: auto; border-radius: 8px; }
.wpnav-bulletin-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--wpnav-border, rgba(255, 255, 255, .08));
  font-size: 12px;
  color: var(--wpnav-text-faint, #8a8f98);
}
.wpnav-bulletin-dialog-foot a {
  color: var(--wpnav-accent-a, #7c5cff);
  text-decoration: none;
}

@media (max-width: 640px) {
  .wpnav-bulletin-bar { padding: 9px 12px; gap: 8px; }
  .wpnav-bulletin-date { display: none; }
}
