:root {
  --main-color: #20a162;
  --second-color: #0095ff;
  --main-bg-color: rgba(127, 163, 255, 0.16);
  --title-background: linear-gradient(120deg, #0095ff 30%, #42d392);
  --primary-button-bg: linear-gradient(275deg, #0077ff 3%, #00aaff 97%);
  --second-text-color: rgba(235, 235, 235, 0.56);
  --bg-color: #000;
  --border-color: rgba(84, 84, 84, 0.48);
  --default-button-bg-color: #3a3a3a;
  --default-hover-button-bg-color: #484848;
  --button-bg-color: #3a3a3a;
  --quote-bg-color: rgba(255, 255, 255, 0.1);
  --quote-border-color: #373737;
  --pre-header-color: #2d2d2d;
  --pre-bg-color: #242424;
  --text-color: #ffffffde;
  --light-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.1),
    0 0 2px 4px rgba(255, 255, 255, 0.1), 0 0 3px 6px rgba(255, 255, 255, 0.1);
  --dark-shadow: 0 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 3px 6px rgba(0, 0, 0, 0.1);
  --text-dark-shadow: 0 0 2px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1),
    0 0 6px rgba(0, 0, 0, 0.1);
}

/** 样式初始化 */
body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
select {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  box-shadow: inset 0 0 5px rgb(140, 159, 161);
  background: rgb(140, 159, 161);
}

*::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #f0f5f360;
  background: #f0f5f360;
}

body {
  -webkit-text-size-adjust: 100%;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.flex {
  display: flex;
}

h1 {
  margin: 1em 0;
}

h2 {
  margin: 0.5em 0;
}

.page-content {
  width: calc(100% - 16px);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px;
}

footer {
  text-align: center;
  padding: 20px 40px;
}

a.avatar {
  position: fixed;
  top: 16px;
  left: 16px;
  --width: 80px;
  width: var(--width);
  height: var(--width);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--main-color);
  box-shadow: var(--light-shadow);
  z-index: 999;
  opacity: 0.6;
  transition: all 0.3s ease-in-out;
}

a.avatar img {
  width: calc(var(--width) * 0.8);
}

a.avatar:hover {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.start-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
