
/* 全局样式定义 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #000046, #1cb5e0);
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 头部区域 */
header {
  position: relative;
  height: 100vh;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover, 
              linear-gradient(135deg, #000046, #1cb5e0);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

header h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8); }
  to { text-shadow: 0px 0px 20px rgba(255, 255, 255, 1); }
}

/* 粒子效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  animation: move-particles 5s infinite;
}

@keyframes move-particles {
  0% { transform: translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(-50px, 50px); opacity: 0; }
}

/* 内容区域 */
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 2rem;
  color: #ff7e5f;
  margin-bottom: 20px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* 按钮样式 */
button {
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(45deg, #feb47b, #ff7e5f);
}

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

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

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

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

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