/* ============================================================
 * 公告样式优化（覆盖编译产物中的默认样式）
 * 作用于：用户端顶部公告条 (Layout) + 后台公告管理卡片 (Admin)
 * 选择器以 html 前缀提升优先级，确保覆盖后加载的 scoped 样式
 * ============================================================ */

/* ---------- 入场动画 ---------- */
@keyframes ann-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * 一、用户端顶部公告条
 * ============================================================ */

html .ann-bar[data-v-0890cccc] {
  position: relative;
  font-size: 13px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(79, 110, 247, .12);
  box-shadow: 0 2px 10px rgba(30, 41, 59, .05);
  animation: ann-slide-in .28s ease-out;
}

html .ann-bar.type-info[data-v-0890cccc] {
  background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 55%, #eef2ff 100%);
  color: #3730a3;
  border-bottom-color: rgba(79, 110, 247, .18);
}
html .ann-bar.type-success[data-v-0890cccc] {
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 55%, #ecfdf5 100%);
  color: #065f46;
  border-bottom-color: rgba(16, 185, 129, .22);
}
html .ann-bar.type-warning[data-v-0890cccc] {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 55%, #fffbeb 100%);
  color: #92400e;
  border-bottom-color: rgba(245, 158, 11, .25);
}
html .ann-bar.type-danger[data-v-0890cccc] {
  background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 55%, #fef2f2 100%);
  color: #991b1b;
  border-bottom-color: rgba(239, 68, 68, .22);
}

html .ann-bar-inner[data-v-0890cccc] {
  max-width: 1000px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* 图标：白色圆角底座 + 柔和投影 */
html .ann-bar-icon[data-v-0890cccc] {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 3px rgba(30, 41, 59, .10);
}
html .ann-bar.type-info[data-v-0890cccc]    .ann-bar-icon[data-v-0890cccc] { color: #4f6ef7; }
html .ann-bar.type-success[data-v-0890cccc] .ann-bar-icon[data-v-0890cccc] { color: #059669; }
html .ann-bar.type-warning[data-v-0890cccc] .ann-bar-icon[data-v-0890cccc] { color: #d97706; }
html .ann-bar.type-danger[data-v-0890cccc]  .ann-bar-icon[data-v-0890cccc] { color: #dc2626; }

html .ann-bar-content[data-v-0890cccc] { flex: 1; min-width: 0; }

html .ann-bar-title[data-v-0890cccc] {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 2px;
}
html .ann-bar-text[data-v-0890cccc] {
  font-size: 12.5px;
  opacity: .92;
  word-break: break-word;
  white-space: pre-wrap;
}

/* 「知道了」按钮：实心强调色胶囊 */
html .ann-bar-read[data-v-0890cccc] {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 5px 14px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(30, 41, 59, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
html .ann-bar-read[data-v-0890cccc]:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(30, 41, 59, .22);
}
html .ann-bar-read[data-v-0890cccc]:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(30, 41, 59, .18); }

html .ann-bar.type-info[data-v-0890cccc]    .ann-bar-read[data-v-0890cccc] { background: #4f6ef7; }
html .ann-bar.type-info[data-v-0890cccc]    .ann-bar-read[data-v-0890cccc]:hover { background: #3b55d8; }
html .ann-bar.type-success[data-v-0890cccc] .ann-bar-read[data-v-0890cccc] { background: #059669; }
html .ann-bar.type-success[data-v-0890cccc] .ann-bar-read[data-v-0890cccc]:hover { background: #047857; }
html .ann-bar.type-warning[data-v-0890cccc] .ann-bar-read[data-v-0890cccc] { background: #d97706; }
html .ann-bar.type-warning[data-v-0890cccc] .ann-bar-read[data-v-0890cccc]:hover { background: #b45309; }
html .ann-bar.type-danger[data-v-0890cccc]  .ann-bar-read[data-v-0890cccc] { background: #dc2626; }
html .ann-bar.type-danger[data-v-0890cccc]  .ann-bar-read[data-v-0890cccc]:hover { background: #b91c1c; }

/* 关闭按钮 */
html .ann-bar-close[data-v-0890cccc] {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
  border-radius: 8px;
  transition: opacity .15s ease, background .15s ease, transform .15s ease;
}
html .ann-bar-close[data-v-0890cccc]:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .7);
  transform: scale(1.05);
}

/* 移动端 */
@media (max-width: 640px) {
  html .ann-bar-inner[data-v-0890cccc] { padding: 9px 12px; gap: 9px; }
  html .ann-bar-icon[data-v-0890cccc] { width: 22px; height: 22px; border-radius: 7px; }
  html .ann-bar-icon svg { width: 13px; height: 13px; }
  html .ann-bar-title[data-v-0890cccc] { font-size: 13px; }
  html .ann-bar-text[data-v-0890cccc] { font-size: 12px; }
  html .ann-bar-read[data-v-0890cccc] { padding: 4px 11px; font-size: 11px; }
}

/* ============================================================
 * 二、后台公告管理卡片
 * ============================================================ */

html .ann-list[data-v-6fcf55f8] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html .ann-item[data-v-6fcf55f8] {
  position: relative;
  border: 1px solid #e6e9f2;
  border-left: 4px solid #4f6ef7;
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
html .ann-item[data-v-6fcf55f8]:hover {
  transform: translateY(-1px);
  border-color: #d7ddf0;
  box-shadow: 0 6px 20px rgba(79, 110, 247, .12);
}

html .ann-item.type-success[data-v-6fcf55f8] { border-left-color: #10b981; }
html .ann-item.type-warning[data-v-6fcf55f8] { border-left-color: #f59e0b; }
html .ann-item.type-danger[data-v-6fcf55f8]  { border-left-color: #ef4444; background: linear-gradient(180deg, #ffffff 0%, #fef6f6 100%); }
html .ann-item.disabled[data-v-6fcf55f8] {
  border-style: dashed;
  opacity: .6;
  background: #f9fafb;
  filter: grayscale(.35);
}
html .ann-item.disabled[data-v-6fcf55f8]:hover { transform: none; box-shadow: 0 1px 3px rgba(16, 24, 40, .05); }

html .ann-item-head[data-v-6fcf55f8] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* 类型标签：圆角药丸 */
html .ann-tag[data-v-6fcf55f8] {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  background: #eef1ff;
  color: #4f6ef7;
}
html .ann-tag.type-info[data-v-6fcf55f8]    { background: #eef1ff; color: #4f6ef7; }
html .ann-tag.type-success[data-v-6fcf55f8] { background: #d1fae5; color: #047857; }
html .ann-tag.type-warning[data-v-6fcf55f8] { background: #fef3c7; color: #b45309; }
html .ann-tag.type-danger[data-v-6fcf55f8]  { background: #fee2e2; color: #b91c1c; }

html .ann-title[data-v-6fcf55f8] {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* 启用状态标签 */
html .ann-status[data-v-6fcf55f8] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
html .ann-status[data-v-6fcf55f8]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
html .ann-status.on[data-v-6fcf55f8]  { background: #d1fae5; color: #047857; }
html .ann-status.off[data-v-6fcf55f8] { background: #f3f4f6; color: #6b7280; }

html .ann-reads[data-v-6fcf55f8] { font-size: 12px; color: #8a94a6; }

html .ann-content[data-v-6fcf55f8] {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 2px 0 12px;
}

html .ann-foot[data-v-6fcf55f8] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
}
html .ann-time[data-v-6fcf55f8] { font-size: 12px; color: #8a94a6; }
html .ann-ops[data-v-6fcf55f8] { display: flex; gap: 6px; flex-wrap: wrap; }

/* 编辑表单：类型选择器 */
html .ann-type-row[data-v-6fcf55f8] { display: flex; gap: 8px; flex-wrap: wrap; }
html .ann-type-opt[data-v-6fcf55f8] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid #e6e9f2;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  transition: all .15s ease;
}
html .ann-type-opt[data-v-6fcf55f8]:hover { border-color: #c7d2fe; background: #fafbff; }
html .ann-type-opt.active.type-info[data-v-6fcf55f8]    { background: #eef1ff; border-color: #4f6ef7; color: #4f6ef7; font-weight: 600; box-shadow: 0 0 0 3px rgba(79, 110, 247, .12); }
html .ann-type-opt.active.type-success[data-v-6fcf55f8] { background: #d1fae5; border-color: #10b981; color: #047857; font-weight: 600; box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
html .ann-type-opt.active.type-warning[data-v-6fcf55f8] { background: #fef3c7; border-color: #f59e0b; color: #b45309; font-weight: 600; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
html .ann-type-opt.active.type-danger[data-v-6fcf55f8]  { background: #fee2e2; border-color: #ef4444; color: #b91c1c; font-weight: 600; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
html .ann-type-opt input[data-v-6fcf55f8] { display: none; }
html .ann-enable-row[data-v-6fcf55f8] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  cursor: pointer;
}
