:root {
  --font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  --font-size: 16px;
  --line-height: 24px;
  --font-weight: 400;
  --text-color-light: #ffffffde;
  --text-color-dark: #213547;
  --bg-color-light: #fff;
  --bg-color-dark: #242424;
  --button-bg-color-light: #f9f9f9;
  --button-text-color-light: #000;
  --button-bg-color-dark: #1a1a1a;
  --button-text-color-dark: #ffffff;
  --link-color: #646cff;
  --link-hover-color: #535bf2;
  --border-color-light: #ccc;
  --border-color-dark: #e2e2e2;
  --shadow-color: rgba(0, 0, 0, 0.15);
  --avatar-size: 100px;
}

:root {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  font-weight: var(--font-weight);
  color-scheme: light dark;
  color: var(--text-color-light);
  background-color: var(--bg-color-dark);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
  background: url("bg.webp") center/cover no-repeat;
  overflow-x: hidden;
}

a {
  font-weight: 500;
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--button-bg-color-dark);
  color: var(--button-text-color-dark);
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

button:hover {
  background-color: var(--button-bg-color-light);
  color: var(--button-text-color-light);
  box-shadow: 0 4px 8px var(--shadow-color);
  transform: scale(1.05);
}

button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

.card {
  padding: 2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.card img.loaded {
  opacity: 1;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.container .section-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.container .section-1 .avatar img {
  width: var(--avatar-size);
  border-radius: 50%;
  border: 0.5px solid var(--border-color-dark);
  box-shadow: 0 0 5px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container .section-1 .avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-color);
}

.container .section-1 .text {
  margin-top: 10px;
  text-align: center;
}

.container .section-1 .text .name {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1;
}

.container .section-1 .text .description {
  color: #999;
}

.container .section-2 {
  position: relative;
  padding-top: 17px;
}

.container .section-2::before {
  content: "";
  width: calc(100% + 30px);
  height: 0;
  left: -15px;
  top: 0;
  position: absolute;
  border-top: 1px solid var(--border-color-light);
}

.container .section-2 .links {
  display: flex;
  justify-content: center;
}

.container .section-2 .links a {
  text-decoration: none;
  width: 30px;
  text-align: center;
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.container .section-2 .links a:hover {
  opacity: 1;
}

.container .section-2 .links > :not(:last-child) {
  margin-right: 15px;
}

#danmu {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
}

@media (prefers-color-scheme: light) {
  :root {
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: var(--button-bg-color-light);
    color: var(--button-text-color-light);
  }
}
