/* 首页公告弹窗 — 与站点粉玫主题（nav2 / style72293）一致 */

.site-notice-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  background: rgba(36, 10, 22, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.site-notice-overlay[hidden] {
  display: none !important;
}

.site-notice-overlay.is-visible {
  animation: site-notice-fade-in 0.22s ease-out;
}

.site-notice-overlay.is-visible .site-notice-dialog {
  animation: site-notice-pop-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes site-notice-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-notice-pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-notice-dialog {
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(232, 62, 122, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(232, 62, 122, 0.12);
}

.site-notice-header {
  flex-shrink: 0;
  padding: 16px 18px 14px;
  text-align: center;
  background: linear-gradient(
    to left,
    #e83e7a,
    #f1538b,
    #f46698,
    #f775a3,
    #f46698,
    #f1538b,
    #e83e7a
  );
  position: relative;
}

.site-notice-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.site-notice-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.02em;
}

.site-notice-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px 18px 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  word-break: break-word;
  background: #fff;
}

.site-notice-footer {
  flex-shrink: 0;
  padding: 12px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  border-top: 1px solid #fce4ec;
}

.site-notice-btn {
  display: inline-block;
  min-width: 140px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #f1538b 0%, #e83e7a 55%, #da183b 100%);
  box-shadow: 0 4px 14px rgba(232, 62, 122, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-notice-btn:hover,
.site-notice-btn:focus {
  background: linear-gradient(135deg, #f46698 0%, #e83e7a 40%, #c91235 100%);
  box-shadow: 0 6px 18px rgba(232, 62, 122, 0.42);
  transform: translateY(-1px);
  outline: none;
}

.site-notice-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 62, 122, 0.3);
}

@media screen and (min-width: 800px) {
  .site-notice-dialog {
    max-width: 420px;
  }

  .site-notice-title {
    font-size: 19px;
  }
}
