@keyframes fadeInbady {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: "Roboto", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  display: flex;
  animation: fadeInbady 3s ease-in-out;
  background: #ffffff;
  color: black;
}

/* 句子样式 */
.sentence {
  font-family: "LXGW WenKai", serif;
  background-color: WhiteSmoke;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  width: 90%;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.sentence.fade-out {
  animation: fadeOut 0.5s forwards;
}
.sentence.fade-in {
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.next,
.list {
  border: none;
  background: none;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 20px;
  z-index: 1000;
  font-weight: bold;
}
.next {
  right: 20px;
}
.list {
  left: 20px;
  color: rgba(220, 220, 220, 0.116);
}

.list-container {
  position: fixed;
  top: 0;
  left: -80%;
  width: 45%;
  height: 98%;
  background-color: #fffefe;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 5px;
  border-radius: 0px 15px 15px 0px;
  margin-top: 0.5%;
}
.list-container.open {
  left: 0;
}

.list-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  color: #333;
}
.list-item.active {
  font-weight: bold;
}
.list-item,
.list-item img {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.PC {
  display: none;
}
.PC i {
  opacity: 0;
  animation: fadeIn 3s forwards;
  font-size: 24px;
  color: #333;
  text-align: center;
  display: block;
  margin: 20px auto;
}
.PC i.show {
  animation: fadeIn 3s forwards;
}
.PC i.hide {
  animation: fadeOut 3s forwards;
}

@media (min-width: 768px) {
  body > * {
    display: none;
  }
  .PC {
    display: block;
    font-size: 180%;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #1e1e1e;
    color: #f4f4f9;
  }
  .sentence {
    background-color: #23272a;
    color: #f4f4f9;
  }
  .list-container {
    background-color: #23272a;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  }
  .list-item {
    color: #f4f4f9;
    border-bottom: 1px solid #555;
  }
  .PC i {
    color: #f4f4f9;
  }
  .next {
    color: #f4f4f9;
  }
  .list {
    color: rgba(35, 35, 35, 0.655);
  }
}
