/* 全局样式 */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f2a69f, #9f80b8);
  overflow: hidden;
}

/* 夜空背景样式及动画 */
.night-sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 5s infinite;
}

@keyframes twinkle {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0.2;
  }
  100% {
      opacity: 1;
  }
}

/* 流星样式及动画 */
.meteor {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: meteor-fall 3s linear infinite;
}

@keyframes meteor-fall {
  0% {
      transform: translate(0, 0);
      opacity: 1;
  }
  100% {
      transform: translate(300px, 300px);
      opacity: 0;
  }
}

/* 导航栏样式 */
nav {
  background-color: rgba(51, 51, 51, 0.8);
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #007BFF;
}

header {
  background: linear-gradient(to bottom, #f2a69f, #9f80b8);
  color: white;
  text-align: center;
  padding: 20px 0;
  animation: slideDown 1s ease;
  position: relative;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
      transform: translateY(-100%);
  }
  to {
      transform: translateY(0);
  }
}

header h1 {
  margin: 0;
  font-size: 28px;
}

header p {
  margin: 5px 0 0;
  font-size: 16px;
}

main {
  padding: 20px;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.image-container {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeInImg 1.5s ease;
}

@keyframes fadeInImg {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.image-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

section {
  margin-bottom: 20px;
}

section h2 {
  color: #007BFF;
  margin-bottom: 10px;
  font-size: 20px;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

strong {
  color: #555;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: rgba(244, 244, 244, 0.8);
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  animation: fadeIn 1s ease;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}    