/* ===== TAG聚合页样式 tags.css ===== */
/* G1标签云+列表 - AF石榴红系列 */

.tags-section { padding: 40px 0 80px; }
.tags-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 标签云 */
.tag-cloud {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
  border: 1px solid var(--border-light);
}
.tag-cloud h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-weight: 600;
  text-align: center;
}
.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag-cloud-list a {
  padding: 10px 22px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.tag-cloud-list a:hover, .tag-cloud-list a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.tag-cloud-list a .count {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-left: 4px;
}

/* TAG文章列表 */
.tag-result h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
  font-weight: 600;
}
.tag-result h2 span {
  color: var(--primary);
}
.tag-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tag-article-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.tag-article-card:hover {
  border-color: rgba(230,74,25,0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.tag-article-card .num {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.tag-article-card h3 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.5;
}
.tag-article-card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.tag-article-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 热门TAG */
.hot-tags {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}
.hot-tags h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
  font-weight: 600;
}
.hot-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hot-tag-list a {
  padding: 8px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary);
  transition: all 0.3s ease;
}
.hot-tag-list a:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 768px) {
  .tag-cloud { padding: 24px; }
  .tag-articles { grid-template-columns: 1fr; }
  .tag-article-card { flex-direction: column; }
}
