/* 公告栏 · 绘图 / 短剧 / 衣橱 三端共用 2026-09-14 */
.ann-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #1c1a17;
  border-bottom: 1px solid rgba(255,255,255,.06);
  max-height: 38vh;
  overflow-y: auto;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.ann-bar[hidden] { display: none; }
.ann-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #efeae1;
  background: linear-gradient(90deg, rgba(217,116,63,.14), rgba(28,26,23,0));
}
.ann-item.ann-prio-high { background: linear-gradient(90deg, rgba(220,53,53,.20), rgba(28,26,23,0)); }
.ann-dot { width: 7px; height: 7px; border-radius: 50%; background: #d9743f; margin-top: 5px; flex: 0 0 auto; }
.ann-prio-high .ann-dot { background: #ff5a5a; }
.ann-body { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.ann-source { font-size: 11px; color: #8fd5e5; font-weight: 700; margin-right: 8px; white-space: nowrap; }
.ann-scope { font-size: 11px; color: #d4dce6; margin-right: 8px; }
.ann-time { font-size: 11px; color: #a9b4c4; margin-right: 10px; }
.ann-title { font-weight: 700; }
.ann-content { color: rgba(239,234,225,.72); margin-left: 8px; }
.ann-link { color: #e9a874; margin-left: 8px; text-decoration: none; white-space: nowrap; }
.ann-item .ann-close { width: 30px; height: 30px; line-height: 30px; }
.ann-item :focus-visible { outline: 2px solid #8fd5e5; outline-offset: 2px; }
@media (max-width: 640px) {
  .ann-item { padding: 8px 12px; }
  .ann-source, .ann-scope, .ann-time { display: inline-block; }
  .ann-content { display: block; margin-left: 0; max-height: 2.8em; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ann-item * { transition: none !important; } }
.ann-link:hover { text-decoration: underline; }
.ann-close {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #cfc7b8; font-size: 15px; line-height: 22px; cursor: pointer;
}
.ann-close:hover { background: rgba(255,255,255,.18); color: #fff; }
