@import 'tailwindcss';

:root {
  --header-bg: #141325;
  --background: #14132d;
  --text-color: #fff;
  --text-color-1: rgba(174, 196, 223, 1);
}

@theme inline {
  --color-header-bg: var(--header-bg);
  --color-bg: var(--background);
  --color-text-color: var(--text-color);
  --color-text-color-1: var(--text-color-1);
}

body {
  color: var(--text-color);
  box-sizing: border-box;
  background-color: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* 我期望背景图默认是等比例缩放，铺满容器，居中显示，不重复 */
.cover-bg {
  background-size: cover;
  background-position: center;
}

/* iconfont 默认样式 */
.iconfont {
  /* 不设置 font-size，让它继承父元素的 font-size */
  font-style: normal;
  fill: currentColor;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 垂直水平剧中 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 19, 37, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(103, 103, 103, 0.8) 0%,
    rgba(103, 103, 103, 0.6) 100%
  );
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(174, 196, 223, 0.8) 0%,
    rgba(174, 196, 223, 0.6) 100%
  );
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    180deg,
    rgba(174, 196, 223, 1) 0%,
    rgba(174, 196, 223, 0.8) 100%
  );
}

/* Firefox 滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 103, 103, 0.6) rgba(20, 19, 37, 0.5);
}
