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

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

h1, h2, h3, h4 {
  font-family: 'Exo 2', sans-serif;
  color: #00eaff;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin: 20px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.75rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
  padding: 0 15px;
}

ul {
  margin-bottom: 15px;
  padding-left: 40px;
}

ul li {
  margin-bottom: 10px;
}

pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 15px;
}

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

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #00bcd4;
}

/* 主内容区 */
.container {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 20px;
}

.section {
  margin-bottom: 50px;
}

/* 视差滚动效果 */
.parallax {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

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

.parallax-content h1 {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #0097a7;
  transform: scale(1.05);
}

/* 栅格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.grid-item h3 {
  margin-bottom: 10px;
}

.grid-item p {
  font-size: 0.95rem;
}

/* 示例展示样式 */
.sample-article {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-top: 50px;
}

.sample-article h2 {
  text-align: center;
  margin-bottom: 20px;
}

.sample-article pre {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00eaff;
}

/* 动画效果 */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.light-point {
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: blink 2s infinite;
  position: absolute;
}

/* 粒子效果 */
.particle-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
  animation: blink 1.5s infinite;
}

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

  h2 {
    font-size: 1.8rem;
  }

  .navbar ul li a {
    font-size: 1rem;
  }
}

@media (max-width: 1200px) {
  .container {
    margin: 80px auto 40px;
  }

  .parallax-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .navbar ul {
    flex-direction: column;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .parallax-content h1 {
    font-size: 2rem;
  }
}

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

  h2 {
    font-size: 1.5rem;
  }

  .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .navbar ul {
    flex-direction: column;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

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

  h2 {
    font-size: 1.1rem;
  }

  .button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

