/* 公告浮窗：可关闭的公告列表与首次进入的强制查看；FAB 用「图标 + 文字」药丸 */
.announce-widget {
  position: fixed;
  right: 14px;
  bottom: calc(74px + env(safe-area-inset-bottom));
  z-index: 6;
  height: 40px;
  display: inline-block;
}
.announce-fab {
  height: 40px;
  min-width: 76px;
  padding: 0 14px 0 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff9b6b, #ff626e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(255, 110, 110, 0.32);
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  letter-spacing: .02em;
}
.announce-fab .fab-icon { font-size: 18px; line-height: 1; }
.announce-fab .fab-label { display: inline-block; }
.announce-fab:active { transform: scale(0.92); }
.announce-fab .announce-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b3b;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
/* 启动公告模态：全屏遮罩，仅显示未在 localStorage「已知晓」的公告 */
.announce-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 18, 32, 0.62);
}
.announce-modal-card {
  width: min(480px, 100%);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.announce-modal-head {
  padding: 18px 18px 12px;
  background: linear-gradient(135deg, #ffe8d9, #ffe3e7);
}
.announce-modal-head p.eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #ff5b5b;
  font-weight: 800;
}
.announce-modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.announce-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}
.announce-modal-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}
.announce-modal-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.announce-modal-list .am-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fbfbfc;
}
.announce-modal-list .am-item h4 {
  margin: 0 0 6px;
  font-size: 13px;
}
.announce-modal-list .am-item .am-content {
  font-size: 13px;
  line-height: 1.75;
  color: #4d4b5b;
  max-height: min(52vh, 380px);
  overflow-y: auto;
}
.announce-modal-foot {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.announce-modal-foot button {
  width: 100%;
  padding: 12px 0;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 0;
}
.announce-modal-foot .am-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.announce-modal-foot .am-secondary {
  background: #f5f4f7;
  color: var(--muted);
}
/* 公告按钮固定位置：桌面端排在最下方（客服 72px、返回 120px 之下） */
@media (min-width: 700px) {
  .announce-widget {
    bottom: 24px;
  }
}