:root {
  --admin-bg-image: url("/assets/admin-bg.png");
  --admin-bg-overlay: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"],
html[data-theme="forest"] {
  --admin-bg-overlay: rgba(15, 23, 42, 0.52);
}

html[data-theme="contrast"] {
  --admin-bg-overlay: rgba(0, 0, 0, 0.72);
}

html[data-theme="warm"] {
  --admin-bg-overlay: rgba(245, 240, 232, 0.12);
}

html[data-theme="ocean"] {
  --admin-bg-overlay: rgba(232, 244, 252, 0.18);
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(var(--admin-bg-overlay), var(--admin-bg-overlay)), var(--admin-bg-image);
  background-position: center top, center top;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, scroll;
  min-height: 100vh;
  min-height: 100dvh;
}

/* iOS Safari：fixed 背景会导致页面宽度/滚动异常 */
@media (hover: hover) and (pointer: fine) {
  body {
    background-attachment: fixed, fixed;
  }
}
