.update-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(16px, 4vw, 44px);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 12%, rgba(156, 115, 62, 0.18), transparent 42%),
    rgba(6, 7, 5, 0.9);
  backdrop-filter: blur(10px);
  animation: update-notice-fade 180ms ease-out both;
}

.update-notice-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 54px);
  color: #eee5d1;
  border: 1px solid rgba(211, 165, 95, 0.45);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(39, 34, 25, 0.96), rgba(16, 18, 14, 0.985)),
    #12140f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64), inset 0 0 0 1px rgba(255, 244, 216, 0.04);
  animation: update-notice-rise 240ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.update-notice-dialog::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(211, 165, 95, 0.12);
}

.update-notice-creator {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: -6px 36px 24px 0;
  padding: 11px 13px;
  border: 1px solid rgba(211, 165, 95, 0.28);
  background: linear-gradient(90deg, rgba(211, 165, 95, 0.12), rgba(255, 248, 225, 0.018));
}

.update-notice-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #19150e;
  border: 1px solid #e1b467;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0cf91, #b87f38);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
  font: 700 1.1rem/1 "Songti SC", serif;
}

.update-notice-creator-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.update-notice-creator-copy strong {
  color: #f3e8d3;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
}

.update-notice-creator-copy small {
  color: #9f9788;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.update-notice-pinned {
  padding: 6px 9px;
  color: #e8bd72;
  border: 1px solid rgba(211, 165, 95, 0.46);
  background: rgba(211, 165, 95, 0.1);
  font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}

.update-notice-close,
.update-notice-confirm,
.update-notice-entry {
  min-width: 48px;
  min-height: 48px;
  touch-action: manipulation;
}

.update-notice-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #d8cdb7;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font: 300 30px/1 Georgia, serif;
  cursor: pointer;
}

.update-notice-close:hover {
  color: #f3c878;
  border-color: rgba(211, 165, 95, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.update-notice-header {
  padding-right: 40px;
  border-bottom: 1px solid rgba(211, 165, 95, 0.24);
}

.update-notice-version,
.update-notice-release-id {
  margin: 0 0 12px;
  color: #d4a75f;
  font: 600 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.update-notice-title {
  margin: 0;
  color: #f5e8ca;
  font: 600 clamp(2rem, 6vw, 3.5rem)/1.08 Georgia, "Songti SC", serif;
  letter-spacing: 0.06em;
}

.update-notice-summary {
  max-width: 38rem;
  margin: 18px 0 26px;
  color: #c8beaa;
  font-size: 1rem;
  line-height: 1.8;
}

.update-notice-highlights,
.update-notice-support {
  margin-top: 28px;
}

.update-notice-section-title {
  margin: 0 0 14px;
  color: #e4d8c0;
  font: 600 1rem/1.4 "Songti SC", serif;
  letter-spacing: 0.12em;
}

.update-notice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-notice-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(211, 165, 95, 0.16);
  background: rgba(255, 248, 225, 0.025);
}

.update-notice-item strong,
.update-notice-item span {
  display: block;
}

.update-notice-item strong {
  margin-bottom: 7px;
  color: #efc477;
  font-size: 0.96rem;
}

.update-notice-item span,
.update-notice-support p {
  color: #bdb4a3;
  font-size: 0.9rem;
  line-height: 1.7;
}

.update-notice-message {
  display: grid;
  gap: 7px;
  margin: 24px 0 0;
  padding: 17px 20px;
  color: #d8cdb8;
  border-top: 1px solid rgba(211, 165, 95, 0.19);
  border-bottom: 1px solid rgba(211, 165, 95, 0.19);
  background: rgba(255, 248, 225, 0.018);
  font: 400 0.94rem/1.8 "Songti SC", serif;
}

.update-notice-message span {
  color: #d4a75f;
  font: 600 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}

.update-notice-message strong {
  font-weight: 400;
}

.update-notice-entry[data-pinned="true"]::before {
  content: "置顶 · ";
  color: #d4a75f;
}

.update-notice-support {
  padding: 18px 20px;
  border-left: 2px solid rgba(211, 165, 95, 0.48);
  background: rgba(0, 0, 0, 0.13);
}

.update-notice-support p {
  margin: 8px 0 0;
}

.update-notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.update-notice-release-id {
  margin: 0;
  color: #8f887b;
}

.update-notice-confirm {
  min-width: 150px;
  padding: 12px 24px;
  color: #17150f;
  border: 1px solid #e1b467;
  border-radius: 2px;
  background: linear-gradient(180deg, #efca85, #c69549);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font: 700 0.95rem/1.2 inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.update-notice-confirm:hover {
  filter: brightness(1.08);
}

.update-notice-close:focus-visible,
.update-notice-confirm:focus-visible,
.update-notice-entry:focus-visible {
  outline: 3px solid #f2ca7d;
  outline-offset: 3px;
}

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

@keyframes update-notice-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .update-notice-overlay {
    align-items: start;
    padding: 10px;
  }

  .update-notice-dialog {
    max-height: none;
    min-height: calc(100dvh - 20px);
    padding: 38px 22px 24px;
  }

  .update-notice-list {
    grid-template-columns: 1fr;
  }

  .update-notice-creator {
    grid-template-columns: 48px minmax(0, 1fr);
    margin-right: 34px;
  }

  .update-notice-pinned {
    grid-column: 2;
    justify-self: start;
  }

  .update-notice-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .update-notice-confirm {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-notice-overlay,
  .update-notice-dialog {
    animation: none;
  }
}
