
/* 基础样式与布局 */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1E0066, #4B0082);
  color: #FFFFFF;
  height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.background {
  grid-column: 1 / 2;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
  background-size: cover;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.content {
  grid-column: 2 / 3;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 标题与字体设计 */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: 2.5rem;
  animation: fadeInText 2s ease-in-out;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

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

/* 动画效果 */
@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

button {
  background-color: #4B0082;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
  transform: scale(1.1);
  background-color: #FFD700;
  color: #1E0066;
}

/* 图片与装饰性元素 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* 响应式布局 */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }

  .background {
    grid-column: 1 / -1;
    height: 300px;
  }

  .content {
    grid-column: 1 / -1;
    padding: 15px;
  }
}

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

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 0.9rem;
  }

  button {
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.85rem;
  }
}

