/* 论坛实时动态条 — 折叠型，适配移动端 */
.ac-live-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: linear-gradient(90deg, #f0f6ff 0%, #fff 100%);
  min-height: 40px;
  overflow: hidden;
}

.ac-live-ticker.is-collapsed {
  padding: 6px 10px;
}

.ac-live-ticker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  color: #0052d9;
  font-size: 12px;
  font-weight: 650;
}

.ac-live-ticker-toggle:hover {
  background: rgba(0, 82, 217, 0.08);
}

.ac-live-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: ac-live-pulse 1.8s ease infinite;
}

@keyframes ac-live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.ac-live-ticker-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ac-live-ticker.is-collapsed .ac-live-ticker-chevron {
  transform: rotate(-90deg);
}

.ac-live-ticker-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-live-ticker-body a {
  color: inherit;
  text-decoration: none;
}

.ac-live-ticker-body a:hover {
  color: #0052d9;
}

@media (max-width: 640px) {
  .ac-live-ticker {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .ac-live-ticker-body {
    flex: 1 1 100%;
    white-space: normal;
    line-height: 1.45;
    font-size: 12px;
  }

  .ac-live-ticker.is-collapsed .ac-live-ticker-body {
    display: none;
  }
}
