/* 首页通知条 · 四个产品共用（tools/index.html 等页面引用 ../css/notice.css）
   结构与 js/notice-bar.js 一一对应，改这里要同步改脚本里的类名
   桌面：静态单行 + 左右翻页箭头（原样）
   手机：单条 = 字幕式左右无缝滚动；多条 = 自动上下轮播，每条文字同样横向滚完再切 */
.zc-notice-wrap { margin: 0 0 30px; }
.zc-notice-wrap[hidden] { display: none !important; }

.zc-notice {
  position: relative; z-index: 1; width: 100%; height: 44px;
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 0;
  background: #fffdf8; border: 1px solid rgba(12, 11, 10, .12);
  border-left: 2px solid #a8853a; overflow: hidden;
}
/* 舞台 = 固定高度的窗口；reel 里纵向排 N+1 行，手机多条时整体上移 */
.zc-notice__stage { flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.zc-notice__reel { height: 100%; }
.zc-notice__row { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; }
.zc-notice__tag {
  flex: 0 0 auto; align-self: stretch; display: inline-flex; align-items: center;
  padding: 0 15px; background: #f2ece0; color: #8c4a2f;
  font-size: 12px; letter-spacing: .12em; border-right: 1px solid rgba(12, 11, 10, .08);
}
.zc-notice__txt {
  flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.6; color: #3d382f;
  letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zc-notice__txt b { font-weight: 600; color: #0c0b0a; }
/* 桌面：track 是普通行内，第二份复制内容不显示（手机要拿它做无缝循环） */
.zc-notice__track { display: inline; }
.zc-notice__seg[aria-hidden="true"] { display: none; }
.zc-notice__link {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: #2b6cff; text-decoration: none; white-space: nowrap;
}
.zc-notice__link:hover { text-decoration: underline; }
.zc-notice__link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.zc-notice__pager {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(12, 11, 10, .10);
  color: #9a9082; font-size: 11.5px; letter-spacing: .06em;
}
.zc-notice__pager button {
  width: 18px; height: 22px; border: 0; background: transparent; cursor: pointer;
  color: #9a9082; font: 16px/1 Arial, sans-serif; padding: 0;
}
.zc-notice__pager button:hover { color: #a8853a; }

@media (max-width: 640px) {
  .zc-notice-wrap { margin-bottom: 24px; }
  .zc-notice { height: 42px; gap: 8px; padding-right: 8px; }
  .zc-notice__row { gap: 8px; }
  .zc-notice__tag { padding: 0 10px; font-size: 11px; letter-spacing: .06em; }
  .zc-notice__txt { font-size: 11.5px; text-overflow: clip; }
  .zc-notice__link { font-size: 0; gap: 0; }
  .zc-notice__link svg { width: 13px; height: 13px; }
  /* 手机改成自动播放，翻页箭头不再占宽度 */
  .zc-notice__pager { display: none; }

  /* 字幕轨道：两份相同内容拼接，滚 -50% 正好一份 → 首尾无缝 */
  .zc-notice__track {
    display: inline-flex; align-items: center; white-space: nowrap;
    will-change: transform; animation: zc-marquee var(--zc-dur, 12s) linear infinite;
  }
  .zc-notice__seg { flex: 0 0 auto; padding-right: 3em; }
  .zc-notice__seg[aria-hidden="true"] { display: block; }
  .zc-notice--reel .zc-notice__reel { transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
}
@keyframes zc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 系统开了「减少动态效果」时不滚，改回静态两行，内容仍能看全 */
@media (prefers-reduced-motion: reduce) {
  .zc-notice__track { animation: none !important; }
  .zc-notice--reel .zc-notice__reel { transition: none !important; }
  .zc-notice__seg[aria-hidden="true"] { display: none; }
  .zc-notice__txt { white-space: normal; line-height: 1.35; }
}
