
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #000046, #1cb5e0, #7d5fff);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
  margin: 1rem 0;
}

a {
  color: #ff9900;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffcc00;
}

code {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff9900;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

pre {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

th, td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem;
  text-align: center;
}

th {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 视差滚动效果 */
.parallax-layer {
  position: relative;
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

.layer-1 {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
}

.layer-2 {
  background-image: url('https://images.gptkong.com/demo/sample2.png');
}

/* 动画效果 */
.box {
  width: 100px;
  height: 100px;
  background-color: #ff9900;
  margin: 2rem auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.box:hover {
  transform: scale(1.2);
}

.glow-effect {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 2rem auto;
  width: 100px;
  height: 100px;
}

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

  p {
    font-size: 0.9rem;
  }

  pre {
    font-size: 0.8rem;
  }

  .parallax-layer {
    height: 50vh;
  }
}

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

  p {
    font-size: 0.8rem;
  }

  pre {
    font-size: 0.7rem;
  }

  .parallax-layer {
    height: 30vh;
  }
}

