/* 站点迁移公告 & 投稿关闭提示（全站共用） */

.amllmig-overlay,
.amllmig-overlay *,
.amllmig-overlay *::before,
.amllmig-overlay *::after {
  box-sizing: border-box;
}

.amllmig-overlay {
  --mig-card: #ffffff;
  --mig-fg: #0f172a;
  --mig-muted: #5b6779;
  --mig-soft: #f4f7fb;
  --mig-border: #e2e8f0;
  --mig-note-bg: #fff7ed;
  --mig-note-border: #fdba74;
  --mig-note-title: #b45309;
  --mig-note-text: #7c2d12;
  --mig-primary: #0284c7;
  --mig-primary-2: #4f46e5;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(9, 15, 28, 0.55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--mig-fg);
}

.amllmig-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.amllmig-card {
  position: relative;
  width: min(544px, 100%);
  margin: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--mig-card);
  color: var(--mig-fg);
  border: 1px solid var(--mig-border);
  border-radius: 20px;
  box-shadow:
    0 30px 80px rgba(2, 8, 23, 0.35),
    0 4px 14px rgba(2, 8, 23, 0.12);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.amllmig-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #0ea5e9, #6366f1 55%, #8b5cf6);
}

.amllmig-overlay.is-open .amllmig-card {
  transform: none;
}

.amllmig-inner {
  padding: 28px 28px 0;
}

.amllmig-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.amllmig-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.amllmig-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.amllmig-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.amllmig-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  white-space: nowrap;
}

.amllmig-chip-warn {
  color: var(--mig-note-title);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.amllmig-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mig-fg);
}

.amllmig-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mig-muted);
}

.amllmig-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--mig-note-border);
  border-left-width: 3px;
  border-radius: 12px;
  background: var(--mig-note-bg);
}

.amllmig-note-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mig-note-title);
}

.amllmig-note-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.amllmig-note p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mig-note-text);
}

.amllmig-note.is-highlight {
  animation: amllmigPulse 1.2s ease 2;
}

.amllmig-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mig-muted);
  opacity: 0.9;
}

.amllmig-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 11.5px;
  color: var(--mig-fg);
  word-break: break-all;
}

.amllmig-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--mig-border);
  background: linear-gradient(
    180deg,
    rgba(148, 163, 184, 0.04),
    rgba(148, 163, 184, 0.09)
  );
  border-radius: 0 0 20px 20px;
}

.amllmig-btn {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease;
}

.amllmig-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.amllmig-btn-ghost {
  color: var(--mig-fg);
  background: var(--mig-soft);
  border-color: var(--mig-border);
}

.amllmig-btn-ghost:hover {
  background: var(--mig-card);
  border-color: #c7d2e0;
}

.amllmig-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--mig-primary), var(--mig-primary-2));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.amllmig-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
}

.amllmig-btn:active {
  transform: translateY(0) scale(0.99);
}

.amllmig-btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.45);
  outline-offset: 2px;
}

body.amllmig-locked {
  overflow: hidden !important;
}

/* 投稿入口关闭态（创作中心） */
.amllmig-entry-closed {
  opacity: 0.55;
  cursor: not-allowed !important;
}

@keyframes amllmigPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .amllmig-overlay {
    --mig-card: #151b24;
    --mig-fg: #e8eef7;
    --mig-muted: #9aa8ba;
    --mig-soft: #1c2430;
    --mig-border: #2b3747;
    --mig-note-bg: rgba(245, 158, 11, 0.1);
    --mig-note-border: #b45309;
    --mig-note-title: #fbbf24;
    --mig-note-text: #f3d9a4;
    --mig-primary: #0284c7;
    --mig-primary-2: #4f46e5;
  }
}

:root[data-theme="dark"] .amllmig-overlay {
  --mig-card: #151b24;
  --mig-fg: #e8eef7;
  --mig-muted: #9aa8ba;
  --mig-soft: #1c2430;
  --mig-border: #2b3747;
  --mig-note-bg: rgba(245, 158, 11, 0.1);
  --mig-note-border: #b45309;
  --mig-note-title: #fbbf24;
  --mig-note-text: #f3d9a4;
  --mig-primary: #0284c7;
  --mig-primary-2: #4f46e5;
}

:root[data-theme="dark"] .amllmig-btn-ghost:hover {
  border-color: #3b4a5e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .amllmig-chip:not(.amllmig-chip-warn) {
    color: #7dd3fc;
  }
}

:root[data-theme="dark"] .amllmig-chip:not(.amllmig-chip-warn) {
  color: #7dd3fc;
}

@media (max-width: 520px) {
  .amllmig-overlay {
    align-items: center;
    padding: 12px;
  }

  .amllmig-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 20px;
    transform: translateY(28px);
  }

  .amllmig-inner {
    padding: 24px 20px 0;
  }

  .amllmig-top {
    margin-bottom: 14px;
  }

  .amllmig-title {
    font-size: 19px;
  }

  .amllmig-lead {
    font-size: 14px;
  }

  .amllmig-actions {
    flex-direction: column;
    padding: 16px 20px 18px;
  }

  .amllmig-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amllmig-overlay,
  .amllmig-card,
  .amllmig-btn {
    transition: none !important;
  }

  .amllmig-note.is-highlight {
    animation: none !important;
  }
}
