#main {
  width: 70%;
  height: 366px;
  position: absolute;
  top: 2%;
  left: 15%;

  background-color: white;
}

#divSecond {
  position: absolute;
  top: 44%;
  left: 15%;
  width: 340px;
  height: 375px;
  display: flex;
  margin-top: 25px;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 0, 0, 0.05);
  overflow: hidden;
}

#divThird {
  position: absolute;
  margin-top: 25px;
  top: 44%;
  left: 40%;
  width: 45%;
  height: auto;
  background-color: white;
}

.verticalSpan {
  font-weight: bold;
  display: block;
  text-orientation: upright;
  writing-mode: vertical-rl;
  font-size: 19px;
  font-family: fantasy;
}

/* 左上波源 */
#divSecond::before,
    /* 右上波源 */
    #divSecond::after,
    /* 左下波源 */
    #divSecond span::before,
    /* 右下波源 */
    #divSecond span::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--ripple-color, rgba(255, 0, 0, 0.4));
  border-radius: 50%;
  animation: ripple 5s infinite ease-out;
}

/* 左上 */
#divSecond::before {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

/* 右上 */
#divSecond::after {
  top: 0;
  right: 0;
  animation-delay: 2.5s;
}

/* 左下 */
#divSecond span::before {
  bottom: 0;
  left: 0;
  animation-delay: 3.9s;
}

/* 右下 */
#divSecond span::after {
  bottom: 0;
  right: 0;
  animation-delay: 4.9s;
}

@keyframes ripple {
  0% {
    transform: scale(0.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1000);
    opacity: 0;
  }
}

.publicP {
  margin-left: 10px;
  font-size: 15px;
}

#changeSpan {
  display: block;
  font-size: 50px;
  margin-top: 145px;
}

#lunarSpan {
  margin-right: 12px;
  margin-top: 145px;
}

#weekSpan {
  margin-left: 12px;
  margin-top: 152px;
}

@media (min-width: 769px) {
  canvas {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
  }

  #body canvas,
  canvas[style*="position"] {
    /* 或者更通用保险写法 */
    pointer-events: none !important;
  }

  canvas.live2d,
  html body canvas.live2d,
  canvas.live2d[style*="position"] {
    pointer-events: auto !important;
  }
}

@media (max-width: 768px) {
  #main {
    position: static;
    width: 95%;
    height: 300px !important;
    margin: 10px auto;
  }

  /* 左下状态块 */
  #divSecond {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    height: 300px;
    margin: 10px auto;
  }

  /* 公告 */
  #divThird {
    position: static;
    width: 100%;
    height: auto;
    margin: 10px auto 40px auto;
    border-radius: 5px;
  }

  /* 内部文字稍微小一点 */
  .verticalSpan {
    font-size: 16px;
  }

  #changeSpan {
    display: block;
    font-size: 50px;
    margin-top: 130px;
  }

  #lunarSpan {
    margin-right: 12px;
    margin-top: 135px;
  }

  #weekSpan {
    margin-left: 12px;
    margin-top: 142px;
  }
  canvas {
    pointer-events: auto !important;
    position: fixed;
    z-index: 1000;
  }
  canvas.live2d {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 350px;
    height: 400px;
    z-index: 999999; /* 提升层级 */
    pointer-events: none;
  }
  #body canvas,
  canvas[style*="position"] {
    /* 或者更通用保险写法 */
    pointer-events: none !important;
  }

  canvas.live2d,
  html body canvas.live2d,
  canvas.live2d[style*="position"] {
    pointer-events: auto !important;
  }
}
