/* 首页特定样式 */

/* Banner区域 */
.banner-area {
  padding: 30px 0;
  background-color: var(--surface);
  text-align: center;
  margin-bottom: 30px;
}

.banner-container {
  max-width: 800px;
  margin: 0 auto;
}

.banner-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 350px;
  object-fit: cover;
}

.category-links {
  margin-top: 20px;
  display: inline-block;
  background-color: var(--background);
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.category-links a {
  color: var(--text-dark);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.2s;
}

.category-links a:hover {
  color: var(--primary);
}

/* 文章网格布局 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* 文章卡片 */
.article-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.article-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.article-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 1;
}

.article-link {
  align-self: flex-start;
}

/* 卡片样式 */
.card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  height: 100%;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1rem;
} 