
/* 基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: radial-gradient(circle at center, #0A66C2 0%, #8A2BE2 100%);
  background-size: 200% 200%;
  animation: gradient-flow 5s infinite alternate ease-in-out;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

h1, h2, h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: bold;
  color: #fff;
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin-top: 2rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #f0f0f0;
}

a {
  color: #FFA500;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #FF7F00;
}

/* 容器布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
button {
  background-color: #FFA500;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 5px;
}

button:hover {
  background-color: #FF7F00;
  transform: scale(1.1);
}

button:active {
  background-color: #FF4500;
}

/* 代码块样式 */
pre {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  color: #FFD700;
  font-family: 'Courier New', Courier, monospace;
}

/* 视差滚动效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  position: relative;
}

.parallax-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

/* SVG图标样式 */
svg.icon {
  fill: #ffffff;
  width: 2rem;
  height: 2rem;
  transition: transform 0.3s ease-in-out, fill 0.3s ease-in-out;
}

svg.icon:hover {
  transform: scale(1.2);
  fill: #FFA500;
}

/* 自适应设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.8rem;
  }
}

/* 提示样式 */
.tip {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 2rem;
}

