@charset "UTF-8";
/* ===========================
   Layer 1: 通用基础样式
   重置 / 变量 / 字体 / 光标 / 链接 / 文字 / 滚动条 / 加载屏
   =========================== */


/* 模块: 全局基础设置 */
html {
  line-height: 1.2;
}

body {
  position: relative;
  cursor: url(../assets/items/cursor.png), auto;
  /* 修复: 允许纵向滚动，防止页面无法下滑 */
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "MS PGothic", "Unifont", sans-serif;
  background: navajowhite url(../assets/backgrounds/checker.gif);
  background-attachment: fixed;
  background-size: 200px;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
}

/* 布局变量: 统一左栏宽度与间距，方便全局对齐 */
:root {
  --sidebar-width: 270px;
  --layout-gap: 14px;
  --nav-offset: 50px;
}


/* 模块: 链接与交互 */
a {
  cursor: url(../assets/items/select.png), pointer;
  color: #2453d4;
}

/* ========== Tooltip ========== */
#s-m-t-tooltip {
  z-index: 9999;
  font-family: "Times New Roman";
  background-color: rgba(250, 250, 255, 0.75);
  border-bottom: 2px solid #223388;
  border-right: 2px solid #223388;
  border-radius: 5px;
  backdrop-filter: blur(1px);
  color: white;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  max-width: 250px;
  margin: 20px;
  padding: 7px;
  transition: 0.1s;
  text-align: center;
}

/* ========== Text Styling ========== */
p {
  font-size: max(0.875em, 12px);
}

.inner > p {
  position: sticky;
  padding-inline: 5px;
  top: 0;
  background: #fff;
  width: 100%;
  z-index: 1;
  border-bottom: 1px solid gray;
  font-size: 12px;
}

.inner > p b {
  font-weight: 400 !important;
}

::selection {
  color: #b4dffb;
  background: #ffffe0;
  backdrop-filter: blur(2px);
}

/* ========== Custom Fonts ========== */
@font-face {
  font-family: spirit;
  src: url(../assets/fonts/Spirit.ttf);
}

@font-face {
  font-family: PC98;
  src: url(../assets/fonts/unifont-15.0.04.ttf);
}

@font-face {
  font-family: "Unifont";
  src: url("../assets/fonts/unifont-15.0.04.ttf") format("truetype");
  font-display: swap;
}

/* ========== Heading Styling ========== */
.heading h4 {
  padding-inline: 7px;
  padding-top: 2px !important;
  font-size: 0;
  text-transform: uppercase;
  font-weight: 400;
  display: inline-block !important;
  margin-bottom: -1px;
  margin-right: 10px;
  transform: translateY(0) !important;
}

:is(.heading h4):hover {
  font-size: inherit !important;
  padding-inline: 7px;
  margin: 0;
  text-align: left;
}

:is(.heading h4):hover:after {
  font-size: 0 !important;
}


/* ========== Custom Scrollbar (Windows 98 Style) ========== */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar:horizontal {
  height: 17px;
}

::-webkit-scrollbar-corner {
  background: #dfdfdf;
}

::-webkit-scrollbar-track {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='2' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 0H0v1h1v1h1V1H1V0z' fill='silver'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0H1v1H0v1h1V1h1V0z' fill='%23fff'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-thumb {
  background-color: #dfdfdf;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey,
    inset 2px 2px #dfdfdf;
}

::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
  display: block;
}

::-webkit-scrollbar-button:vertical:start {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 6H7v1H6v1H5v1H4v1h7V9h-1V8H9V7H8V6z' fill='%23000'/%3E%3C/svg%3E");
  height: 17px;
}

::-webkit-scrollbar-button:vertical:end {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4v1h1v1h1v1h1v1h1V9h1V8h1V7h1V6z' fill='%23000'/%3E%3C/svg%3E");
  height: 17px;
}

::-webkit-scrollbar-button:horizontal:start {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 4H8v1H7v1H6v1H5v1h1v1h1v1h1v1h1V4z' fill='%23000'/%3E%3C/svg%3E");
  width: 16px;
}

::-webkit-scrollbar-button:horizontal:end {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='silver' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 4H6v7h1v-1h1V9h1V8h1V7H9V6H8V5H7V4z' fill='%23000'/%3E%3C/svg%3E");
  width: 16px;
}

body::-webkit-scrollbar-corner {
  margin-top: 60px;
}


/* ========== Loading Screen ========== */
body:before {
  content: " ";
  height: 100%;
  width: 100%;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-image: url("../assets/gifs/load-screen.gif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: loadingFade 1s ease 0s 1 normal forwards;
  pointer-events: none;
}

@keyframes loadingFade {
  0% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
