
/* 禁用所有元素的点击高亮效果 */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 禁用按钮的焦点效果 */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
a:focus,
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus {
  outline: none;
  box-shadow: none;
}

/* 禁用链接和按钮的默认点击效果 */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-decoration: none;
  color: inherit;
}

/* 禁用选中时的背景色 */
::selection {
  background-color: transparent;
}
::-moz-selection {
  background-color: transparent;
}

/* 禁用移动端特定元素的点击效果 */
.nav-tab,
.mobile-menu-icon,
.search-icon,
.btn,
.btn-view,
.btn-delete,
.btn-edit,
.btn-secondary,
.tag,
.post-link,
.sidebar-overlay,
.stat-item {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 禁用按钮和链接的焦点样式 */
.btn:focus,
.btn-view:focus,
.btn-delete:focus,
.btn-edit:focus,
.btn-secondary:focus,
.nav-tab:focus,
.tag:focus,
.post-link:focus,
.mobile-menu-icon:focus,
.search-icon:focus {
  outline: none;
  box-shadow: none;
}

/* 禁用系统默认的滚动条 */
::-webkit-scrollbar {
  width: 0 !important;
  display: none;
}

/* 禁用Firefox滚动条 */
html {
  scrollbar-width: none;
}

/* 禁用IE和Edge滚动条 */
body {
  -ms-overflow-style: none;
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.3s ease-out;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.page-loader svg {
  width: 3.25em;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
}

.page-loader circle {
  fill: none;
  stroke: #5274FF;
  stroke-width: 2;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dashoffset: -125px;
  }
}
