body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden; 
    font-family: sans-serif;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 2s ease-in-out;
}

.bg1 {
    background-image: url("bg1.jpg");
    opacity: 1; 
}

.bg2 {
    background-image: url("bg2.jpg");
    opacity: 0; 
}

.bg-container.show-bg2 .bg1 {
    opacity: 0;
}
.bg-container.show-bg2 .bg2 {
    opacity: 1;
}

.content {
    position: relative;
    z-index: 1;
}

h1 {
    color: rgba(13, 141, 24, 0.832);
    text-align: center;
    font-size: 67px;
    font-family: "仿宋", FangSong, serif;
}

h2 {
    color: rgb(185, 105, 6);
    margin-left: 1200px;
    font-size: 32px;
    font-family: "仿宋", FangSong, serif;
}

p {
    color: blueviolet;
    margin-left: 0px;
    font-size: 50px;
    font-family: "楷体", KaiTi, serif;
}

#toggleBtn {
  position: absolute;
  top: 400px;              
  left: 647px;              
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgb(55, 9, 239); 
  background-color: transparent;
  color: rgb(55, 9, 239);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#toggleBtn:hover {
    border-color: rgb(255, 100, 100);
    color: rgb(255, 100, 100);
}

#toggleBtn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgb(55, 9, 239);
  margin-left: 5px; 
}

#toggleBtn.playing::after {
  width: 12px;
  height: 18px;
  border: none;
  border-left: 4px solid rgb(55, 9, 239);
  border-right: 4px solid rgb(55, 9, 239);
  margin-left: 0;
  background-color: transparent;
}

