/* rjtt.top 品牌皮肤 —— 注入于应用样式之后，仅做温和覆盖 */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(79, 70, 229, 0.09), transparent 55%),
    radial-gradient(900px 480px at 96% -4%, rgba(34, 211, 238, 0.10), transparent 50%),
    var(--background);
  background-attachment: fixed;
}

.dark body {
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(99, 102, 241, 0.15), transparent 55%),
    radial-gradient(900px 500px at 96% -4%, rgba(34, 211, 238, 0.09), transparent 50%),
    var(--background);
}

::selection {
  background: rgba(79, 70, 229, 0.22);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(120, 122, 145, 0.32);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 122, 145, 0.52);
  background-clip: content-box;
}

a,
button {
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

/* 焦点环统一品牌色 */
:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

/* 图片类资源抗锯齿 */
img,
svg {
  -webkit-user-drag: none;
}

/* 隐藏页脚默认的 New API 版权块，只保留品牌页脚 */
footer div[class*="justify-end"]:has(a[href*="QuantumNous/new-api"]) {
  display: none !important;
}
