/* =========================================================
   白字杯 · 站点公告弹窗
   ========================================================= */

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 7, 0.74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: noticeFade 0.18s ease;
}

@keyframes noticeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notice-dialog {
  position: relative;
  width: min(580px, 100%);
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--surface, #111317);
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.95);
  animation: noticeRise 0.28s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.notice-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--seal);
}

.notice-dialog[data-level="important"] {
  border-color: rgba(224, 54, 43, 0.55);
}

@keyframes noticeRise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.notice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.notice-close:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.notice-head {
  padding: 28px 30px 0;
}

.notice-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 46px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--seal);
  flex: none;
}

.notice-eyebrow .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.notice-title {
  margin: 14px 46px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.notice-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(224, 54, 43, 0.55);
  background: rgba(224, 54, 43, 0.12);
  color: #f08c83;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  vertical-align: middle;
  transform: translateY(-3px);
}

.notice-body {
  padding: 18px 30px 6px;
  overflow-y: auto;
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.85;
  overscroll-behavior: contain;
}

.notice-body p {
  margin: 0 0 12px;
}

.notice-body ul,
.notice-body ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.notice-body li {
  margin-bottom: 6px;
}

.notice-body blockquote {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-left: 2px solid var(--seal);
  background: rgba(224, 54, 43, 0.06);
  color: var(--paper-dim);
}

.notice-body strong {
  color: var(--paper);
}

.notice-body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(215, 181, 109, 0.4);
  word-break: break-all;
}

.notice-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 5px;
  background: rgba(242, 239, 232, 0.07);
  color: var(--paper);
}

.notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 16px 30px 24px;
  border-top: 1px solid var(--line);
}

.notice-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* 左下角常驻入口：关掉弹窗后仍可重新打开 */
.notice-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: rgba(17, 19, 23, 0.94);
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.notice-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal);
}

.notice-pill:hover {
  color: var(--paper);
  border-color: var(--paper);
}

@media (max-width: 640px) {
  .notice-overlay {
    padding: 14px;
  }

  .notice-head {
    padding: 22px 20px 0;
  }

  .notice-title {
    font-size: 21px;
    margin-right: 40px;
  }

  .notice-body {
    padding: 14px 20px 4px;
    font-size: 14px;
  }

  .notice-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
  }

  .notice-meta {
    text-align: center;
  }

  .notice-pill {
    left: 12px;
    bottom: 12px;
  }
}
