/* 公告跑马灯样式 */
.announcement-bar {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-bottom: 1px solid #fee;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}

.announcement-content {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 100%;
}

.announcement-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 15px;
  border-right: 1px solid #fdd;
  margin-right: 15px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.announcement-icon svg {
  width: 16px;
  height: 16px;
}

.announcement-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.announcement-text {
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  color: #666;
  font-size: 13px;
  display: flex;
  gap: 60px;
}

.announcement-text:hover,
.announcement-text#announcementScroll:hover {
  animation-play-state: paused !important;
}

.announcement-text a {
  color: #333;
  transition: color 0.3s;
}

.announcement-text a:hover {
  color: var(--primary);
}

.announcement-more {
  flex-shrink: 0;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #fdd;
}

.announcement-more a {
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.announcement-more a:hover {
  opacity: 0.8;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .announcement-bar {
    padding: 0 15px;
  }

  .announcement-icon {
    padding-right: 10px;
    margin-right: 10px;
    font-size: 12px;
  }

  .announcement-icon span {
    display: none;
  }

  .announcement-more {
    margin-left: 10px;
    padding-left: 10px;
  }

  .announcement-more a {
    font-size: 12px;
  }
}
