:root {
  --primary-hue: 203;
  --accent-hue: 180;
  --animation-duration: 12s;
  /* --theme-color: var(--theme-color); */
  /* --theme-color: #00b7ff; */
  --theme-color: #2196f3;
  --theme-text-color: #e0f2ff;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: #0a0a0a;
  background-image: url("/resource/home.jpg"),
    linear-gradient(
      135deg,
      #0a0a0a 0%,
      #1a1a2e 25%,
      #16213e 50%,
      #0d294d 75%,
      #0a0a0a 100%
    );
  background-size: cover, 400% 400%;
  background-repeat: no-repeat;
  background-position: center center;
  animation: gradientShift 60s linear infinite;
  color: var(--theme-color);
  font-family: "Orbitron", "Microsoft YaHei", "SimHei", "KaiTi", "Lubrifont SC",
    monospace, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  cursor: url(/resource/mouse/mouse1_1.png), default;
}
a {
  text-decoration: none;
}
a:link,
a:visited,
a:hover,
a:active {
  color: var(--theme-color);
}
button:hover,
a:hover {
  cursor: url(/resource/mouse/mouse1_2.png), pointer;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: #5e5f62;
  font-size: 0.9em;
  padding: 10px 0;
  /* background: rgba(0, 0, 0, 0.8); */
  backdrop-filter: blur(10px);
  z-index: 100;
  /* border-top: 1px solid rgba(94, 95, 98, 0.2); */
}
/* 通用彩虹下划线效果，用于链接等元素，实现悬停时的彩虹下划线效果 */
.rainbow-underline {
  padding-bottom: 4px;
  background: linear-gradient(135deg, #ff00cc, #ffcc00, #00ffcc, #ff0066) no-repeat right bottom;
  background-size: 0px 2px;
  transition: background-size 1s;
}

.rainbow-underline:hover {
  background-position-x: left;
  background-size: 100% 2px;
}
/* 通用彩虹下划线效果，用于链接等元素，实现悬停时的彩虹下划线效果 */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 白天主题（旧版类名，仅备份页面使用） */
body.light-theme {
  background: linear-gradient(135deg, #ffffff 0%, #c3cfe2 100%);
}

/* ========== 浅色主题统一背景（index.html / manage.html 共享，html[data-theme="light"] 时生效） ========== */
[data-theme="light"] body {
  background-color: #f3f6fb;
  background-image: linear-gradient(180deg, #fdfdfe 0%, #f8fafd 40%, #f3f6fb 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: none;
}

/* 浅色环境光晕层（视口固定、纯静态渐变；高亮度粉彩、低浓度，避免灰调蒙层；深色模式下透明无感，切换主题时淡入淡出） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background:
    radial-gradient(130% 65% at 50% -20%, rgba(191, 219, 254, 0.34), transparent 65%),
    radial-gradient(75% 55% at -12% 15%, rgba(186, 230, 253, 0.26), transparent 62%),
    radial-gradient(65% 50% at 110% 8%, rgba(221, 214, 254, 0.22), transparent 62%),
    radial-gradient(100% 60% at 50% 112%, rgba(191, 219, 254, 0.2), transparent 68%);
}
[data-theme="light"] body::before {
  opacity: 1;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(font/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nyGy6xpQ.woff) format("woff");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(font/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1ny_CmxpQ.woff) format("woff");
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(font/yMJMMIlzdpvBhQQL_SC3X9yhF25-T1nysimxpQ.woff) format("woff");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(font/NotoSansSC-Regular.woff2) format("woff2");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A700-2B73F,
    U+2B740-2B81F, U+2B820-2CEAF, U+F900-FAFF, U+2F800-2FA1F;
}

/* 让原生表单控件继承全局字体（修复按钮不继承问题） */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* @font-face {
  font-family: "Lubrifont SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(font/WDXLLubrifontSC-Regular.ttf) format("truetype");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A700-2B73F,
    U+2B740-2B81F, U+2B820-2CEAF, U+F900-FAFF, U+2F800-2FA1F;
} */
