
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #0c0c2e, #1a1a40);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'PressStart2P', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

a {
  color: #00d1ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff4500;
  text-shadow: 0 0 10px #ff4500;
}

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

.header {
  background: linear-gradient(90deg, #2e2e80, #004480);
  position: relative;
  padding: 50px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a40;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-links a {
  color: #fff;
  margin: 0 15px;
  font-size: 1.2rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff4500;
  bottom: -5px;
  left: 50%;
  transition: all 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #2e2e2e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  position: relative;
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.parallax {
  background-image: url('https://images.gptkong.com/demo/sample1.png');
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: 50px 0;
}

.parallax::before {
  content: '这是一个网页样式设计参考';
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2rem;
}

.footer {
  background: #0c0c2e;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links a {
    margin: 10px 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  animation: fadeIn 0.8s ease-in-out;
}

