
/* 定义全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.1), transparent);
}

h1, h2, h3 {
  font-weight: bold;
  color: #0074D9;
}

p {
  font-size: 1rem;
  line-height: 1.8;
}

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

/* 全屏渐变背景 */
.full-screen {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #0074D9, #2ECC40);
}

/* 响应式网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

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

.card:hover {
  transform: translateY(-10px);
}

/* 动态背景效果 */
@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.dynamic-bg {
  background: linear-gradient(270deg, #0074D9, #2ECC40, #FFDC00);
  background-size: 600% 600%;
  animation: aurora-move 15s ease infinite;
  height: 300px;
  border-radius: 20px;
}

/* 按钮样式 */
.button {
  background-color: #FFDC00;
  color: #0074D9;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* 文章样式 */
.article {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.article pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
}

/* 图片样式 */
.image-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.image-container img {
  width: calc(33.33% - 10px);
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
}

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

/* 自适应样式 */
@media (max-width: 768px) {
  .image-container img {
    width: calc(50% - 10px);
  }

  .full-screen {
    height: auto;
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .image-container img {
    width: 100%;
  }
}

