
/* 全局样式定义 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: #00ff99;
  margin-top: 1.5em;
}

p {
  font-size: 1rem;
  color: #dcdcdc;
  margin-bottom: 1em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.parallax-container {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1px;
}

.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background: url('https://images.gptkong.com/demo/sample1.png'), 
              url('https://images.gptkong.com/demo/sample2.png');
  background-size: cover;
  background-position: center;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
}

.content-section {
  position: relative;
  padding: 100px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0, 255, 153, 0.3);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.image-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

code {
  display: block;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  color: #00ff99;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .parallax-container {
    height: auto;
  }

  .parallax-background {
    transform: none;
    scale: 1;
  }

  .content-section {
    padding: 50px 10px;
  }

  code {
    font-size: 0.8em;
  }
}

.particle-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #ff9900;
  border-radius: 50%;
  animation: particle-animation 3s infinite;
}

@keyframes particle-animation {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-50px); opacity: 0; }
}

