/* 公告滚动窗口（用户中心首页 / 购物车通用）
   横向无缝循环滚动，鼠标悬停暂停 */
.qcy-notice-marquee {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  margin: 0 0 16px;
  background: #fff;
  border: 1px solid #e9ecf3;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(31, 45, 61, 0.06);
  font-size: 13px;
  box-sizing: border-box;
}
.qcy-notice-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 18px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--theme-color-1, #0056ff), var(--theme-color-6, #0080ff));
}
.qcy-notice-head .qcy-notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: qcyNoticePulse 1.6s infinite;
}
.qcy-notice-head::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--theme-color-6, #0080ff);
}
.qcy-notice-viewport {
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}
.qcy-notice-viewport::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
}
.qcy-notice-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.qcy-notice-marquee.is-ready .qcy-notice-track {
  animation: qcyNoticeScroll linear infinite;
}
.qcy-notice-marquee:hover .qcy-notice-track {
  animation-play-state: paused;
}
.qcy-notice-group {
  display: inline-flex;
  align-items: center;
}
.qcy-notice-item {
  color: #4b5563;
  padding: 0 2px;
}
.qcy-notice-sep {
  color: var(--theme-color-1, #0056ff);
  opacity: 0.55;
  margin: 0 16px;
  font-size: 11px;
}
@keyframes qcyNoticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes qcyNoticePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .qcy-notice-marquee.is-ready .qcy-notice-track { animation: none; }
  .qcy-notice-head .qcy-notice-dot { animation: none; }
}
@media (max-width: 768px) {
  .qcy-notice-marquee { height: 38px; font-size: 12px; border-radius: 4px; }
  .qcy-notice-head { padding: 0 10px; letter-spacing: 0; }
  .qcy-notice-head::after { display: none; }
  .qcy-notice-item { font-size: 12px; }
  .qcy-notice-sep { margin: 0 10px; }
}
