/* 全局样式 */
:root {
  --primary-color: #1e88e5;
  --secondary-color: #64b5f6;
  --text-color: #2c3e50;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --tag-bg: #e3f2fd;
  --date-color: #78909c;
}

/* 主要内容区域 */
.main-content {
  position: relative;
  min-height: 400px;
  background: url('../images/sky-bg.svg') no-repeat center top;
  background-size: cover;
  padding: 20px 0;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.breadcrumb a {
  color: #1e88e5;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #1565c0;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #adb5bd;
}

.breadcrumb .current {
  color: #495057;
  font-weight: 500;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.tab-item {
  color: #495057;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.tab-item:hover {
  color: #1e88e5;
  background-color: #e3f2fd;
}

.tab-item.active {
  color: #1e88e5;
  background-color: #e3f2fd;
  font-weight: 500;
  position: relative;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1e88e5;
}

/* 文章列表 */
.article-list {
  background-color: transparent;
}

.article-item {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-color: #1e88e5;
}

.article-meta {
  min-width: 100px;
  text-align: center;
}

.article-date {
  color: #6c757d;
  font-size: 0.875rem;
  white-space: nowrap;
}

.article-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  flex: 1;
}

.article-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.article-title a:hover {
  color: #1e88e5;
}

.article-category {
  margin: 0;
  min-width: 120px;
  text-align: center;
}

.category-name {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e3f2fd;
  color: #1e88e5;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-name:hover {
  background-color: #1e88e5;
  color: white;
}

/* 分页导航 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination .page-link:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination .page-link.active {
  background: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.pagination .page-ellipsis {
  color: #666;
}

.pagination .page-info {
  margin-left: 16px;
  color: #666;
  font-size: 14px;
}

.no-data {
  text-align: center;
  padding: 40px 0;
  color: #666;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
  }
  
  .tab-item {
    white-space: nowrap;
  }
  
  .article-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .article-meta {
    min-width: auto;
    text-align: left;
  }
  
  .article-category {
    min-width: auto;
    text-align: left;
  }
  
  .article-title {
    font-size: 1.125rem;
  }
}

/* 搜索提示 */
.search-hint {
    margin: 20px 0;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #1e5bb0;
}

.search-hint p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.search-hint span {
    color: #1e5bb0;
    font-weight: 500;
} 