
/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.header {
  background: #87ceeb;
  color: #fff;
  text-align: center;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 2rem;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #ffa500;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
.card-content {
  padding: 20px;
}
.card-title {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.card-tags span {
  background: #ffa500;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}
.card-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}
.footer {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: #f0f8ff;
  color: #666;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .header h1 {
    font-size: 1.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}
@media (min-width: 1200px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

