/* ═══════════════════════════════════════════════
   公告弹窗组件样式 —— 朱砂金暗色浮层
   由 js/announce.js 动态注入 DOM；视觉呼应「五行玄智阁」暗红金调性
   ═══════════════════════════════════════════════ */

.ann-card,
.ann-modal,
.ann-overlay,
.ann-banner {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── 轻态：右下角祝福卡（非阻断） ─────────────── */
.ann-low {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #241212;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 20px 20px 16px;
  color: #F5EBDD;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: annSlideIn 0.4s ease;
  transition: opacity 0.4s, transform 0.4s;
  cursor: pointer;
}
.ann-low.ann-hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
@keyframes annSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.ann-tag {
  font-size: 12px;
  color: #D4AF37;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ann-main {
  font-size: 19px;
  font-weight: 700;
  color: #F5EBDD;
  margin-bottom: 10px;
}
.ann-rank { color: #E6C35C; }
.ann-bless {
  font-size: 14px;
  color: #F5EBDD;
  line-height: 1.6;
  white-space: pre-line;
}
.ann-hint {
  font-size: 11px;
  color: #B8A98F;
  margin-top: 12px;
}

/* ─── 关闭按钮（命中区 ≥44px） ─────────────────── */
.ann-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #B8A98F;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.ann-close:hover { color: #F5EBDD; }

/* ─── 重态：居中迁移 modal + 遮罩 ──────────────── */
.ann-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: annFade 0.25s ease;
}
@keyframes annFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ann-modal {
  position: relative;
  width: 400px;
  max-width: 100%;
  background: #241212;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 16px;
  padding: 24px;
  color: #F5EBDD;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: annPop 0.3s ease;
}
@keyframes annPop {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: none; }
}

.ann-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #E6C35C;
  margin-bottom: 14px;
  padding-right: 40px;
}
.ann-modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: #F5EBDD;
  white-space: pre-line;
}
.ann-modal-url {
  font-size: 14px;
  font-weight: 700;
  color: #D4AF37;
  margin-top: 12px;
  word-break: break-all;
}
.ann-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #B8A98F;
  cursor: pointer;
}
.ann-check input {
  width: 16px;
  height: 16px;
  accent-color: #D4AF37;
}
.ann-btns {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.ann-btn-secondary,
.ann-btn-primary {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.ann-btn-secondary {
  background: #331C1C;
  color: #F5EBDD;
}
.ann-btn-secondary:hover { background: #3d2222; }
.ann-btn-primary {
  background: #D4AF37;
  color: #1A0E0E;
  font-weight: 700;
}
.ann-btn-primary:hover { background: #e0bd4a; }
.ann-modal .ann-close { color: #B8A98F; }

/* ─── 顶部常驻 banner（迁移兜底） ─────────────── */
.ann-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #1A0E0E;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  color: #F5EBDD;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
}
.ann-banner a {
  color: #E6C35C;
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}
.ann-banner a:hover { text-decoration: underline; }

/* ─── 移动端：bottom sheet 适配 ───────────────── */
@media (max-width: 600px) {
  .ann-low {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .ann-modal { width: 100%; }
}
