/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 整体样式 */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #2d3436;
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 标签样式 */
.tags-section {
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tag-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: #f0f4f8;
  border-radius: 25px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.tag-item:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* 文章表格 */
.articles-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.article-table thead {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.article-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
}

.article-table td {
  padding: 1rem;
  border-bottom: 1px solid #edf2f7;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background-color: #f8fafc;
}

.article-title {
  color: #2d3436;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.article-title:hover {
  color: #0984e3;
  text-decoration: underline;
}

.date {
  color: #718096;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* 标题样式 */
h2 {
  font-size: 1.5rem;
  color: #2d3436;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
      padding: 1rem;
  }
  
  .tags-section,
  .articles-section {
      padding: 1.5rem;
  }
  
  .tag-item {
      padding: 0.5rem 1rem;
  }
}