/* ============================================================
   全站公告弹窗（页面加载即显示）
   使用：在页面 </body> 前引入本样式 + js/notice-modal.js
   ============================================================ */

.notice-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  background-color: rgba(0, 0, 0, .5);
  -webkit-tap-highlight-color: transparent;
}

.notice-dialog {
  width: 100%;
  max-width: 21.25rem;
  overflow: hidden;
  background-color: #fff;
  border-radius: .5rem;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .2);
  animation: noticeFadeIn .25s ease-out;
}

@keyframes noticeFadeIn {
  from { opacity: 0; transform: translateY(-1rem) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notice-dialog-header {
  padding: 1.125rem 1.25rem .625rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ac3227;
}

.notice-dialog-body {
  padding: 0 1.5rem 1.25rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: #606266;
  text-align: center;
}

.notice-dialog-footer {
  padding: 0 1.25rem 1.25rem;
}

.notice-dialog-btn {
  display: block;
  width: 100%;
  height: 2.5rem;
  border: none;
  border-radius: .25rem;
  background-color: #ac3227;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s;
}

.notice-dialog-btn:hover {
  opacity: .88;
}

.notice-dialog-btn:active {
  opacity: .75;
}
