/* 重置样式 */

@font-face {
  font-family: "arcanista";
  src: url("../fonts/arcanista.ttf");
}

@font-face {
  font-family: bbch;
  src: url("../fonts/bbch.ttf");
}

@font-face {
  font-family: SourceHanSansSC-VF;
  src: url("../fonts/SourceHanSansSC-VF.ttf");
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "arcanista";
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../image/background2.jpg);
  /* background-size: cover;  */
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.to-index {
  display: flex;
  text-align: center;
  align-items: center;
  
  position: fixed;
  top: 100px;
  left: 150px;
  width: 300px;
  text-decoration: none;
  height: 25px;
}

.to-index p {
  color: black;

  font-size: 3rem;
  font-family: "arcanista";
}

.container {
  position: absolute;
  text-align: center;
}

/* 
.section a:hover {
  color: #007BFF;
} */

/* 主要部分 */

.main {
  background-color: rgba(207, 207, 207, 0.329);
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vw;
  margin-top: 50px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.paper {
  display: flex;
  justify-content: center;
  position: absolute;
  background-color: #ffffff;
  width: 45vw;  
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.text {
  font-family: "STXihei", 华文细黑, STHeiti, MingLiu;
  /* display: flex; */
  flex-direction: column;
  /* align-items: center; */
  margin-top: 30px;
  width: 42vw;
  gap: 20px;
}

.text h1 {
  line-height: 2;
  font-size: 2rem;
}

.text h2 {
  line-height: 3;
  font-size: 1.3rem;
}

.text p {
  margin-top: 2rem;
  line-height: 2;
  text-align: left;
  font-size: 1.1rem;
}

.text em {
  font-style: italic;
}

footer p {
  color: #ffffff;
  font-size: large;
  margin-bottom: 40px;
  font-family: bbch;
}

@media (max-width: 600px) {
  body {
    background-image: url(../image/background3.jpg);
    text-align: center;
  }
  .to-index {
    display: none;;
  }
  .main {
    margin-top: 100px;
    width: 90vw;
  }
  .paper {
    opacity: 0.9;
    border-style: none;
    width: 85vw;  
  }
  .text {
    width: 75vw;
  }
  .text h1 {
    font-size: 1.8rem;
  }
  
  .text h2 {
    font-size: 1.1rem;
  }
  .text p {
    font-size: 0.8rem;
  }
}