/* ===== 首页弹窗 ===== */
.ann-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.ann-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.ann-modal {
  width: min(520px, 92vw);
  max-height: 80vh;
  background: var(--background-color);
  border: 0.5px solid white;
  border-radius: 20px;
  box-shadow: 0px 25px 15px 10px var(--shadow-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.ann-modal-overlay.active .ann-modal {
  transform: translateY(0) scale(1);
}
.ann-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.ann-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-color-a);
}
.ann-modal-title .pin-icon {
  width: 18px;
  height: 18px;
  color: var(--status-err);
  flex-shrink: 0;
}
.ann-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--text-color-b);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.ann-modal-close:hover {
  background: rgba(237,63,81,0.12);
  color: var(--status-err);
}
.ann-modal-close:active {
  transform: scale(0.92);
}
.ann-modal-body {
  padding: 16px 22px 20px;
  overflow-y: auto;
  color: var(--text-color-a);
  line-height: 1.7;
  font-size: 0.95rem;
}
.ann-modal-footer {
  padding: 14px 22px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ann-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.1s, filter 0.2s;
}
.ann-btn:active {
  transform: scale(0.96);
}
.ann-btn-primary {
  background: var(--button-background);
  color: white;
  box-shadow: var(--button-shadow);
}
.ann-btn-primary:hover {
  filter: brightness(1.15);
}
.ann-btn-ghost {
  background: transparent;
  color: var(--text-color-b);
  border: 0.5px solid rgba(0,0,0,0.15);
}
.ann-btn-ghost:hover {
  background: rgba(0,0,0,0.04);
}

@media (max-width: 640px) {
  .ann-modal { border-radius: 16px; }
  .ann-modal-header { padding: 14px 16px 8px; }
  .ann-modal-body { padding: 12px 16px 16px; font-size: 0.9rem; }
  .ann-modal-footer { padding: 10px 16px 14px; flex-direction: column; }
  .ann-btn { text-align: center; }
}