/* 系统公告跑马灯样式 */
.announcement-marquee {
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  border: 1px solid #e0e7ff;
  background: linear-gradient(to right, #e6f7ff, #f0f7ff);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  animation: marquee 20s linear infinite;
}

.announcement-item {
  display: inline-flex; /* 改为flex布局 */
  align-items: center; /* 垂直居中 */
  margin-right: 50px; /* 公告之间的间距 */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 50px)); /* 减去一个公告间距 */
  }
}

/* 鼠标悬停时暂停滚动 */
.announcement-marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* 优化移动设备显示 */
@media (max-width: 768px) {
  .announcement-marquee {
    height: 32px;
    line-height: 32px;
    font-size: 12px;
  }
  .marquee-content {
    animation-duration: 25s;
  }
  .announcement-item {
    margin-right: 30px;
  }
}