/* ===== tags.css - TAG聚合页样式 (G2分类卡片) ===== */

/* ---- Tags Hero ---- */
.tags-hero {
  position: relative;
  height: 300px;
  background-color: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tags-hero-content {
  text-align: center;
}

.tags-hero-content h1 {
  font-size: 30px;
  color: #FFFFFF;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.tags-hero-content .hero-line {
  width: 50px;
  height: 3px;
  background-color: #C8A96B;
  margin: 0 auto;
}

/* ---- G2 分类卡片布局 ---- */
.tags-section {
  padding: 60px 0;
  background-color: #FAFAFA;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.tag-card {
  background-color: #FFFFFF;
  border: 1px solid #F0F0F0;
  padding: 35px 30px;
  transition: all 0.3s ease;
}

.tag-card:hover {
  border-color: #C8A96B;
  box-shadow: 0 6px 20px rgba(200,169,107,0.1);
  transform: translateY(-4px);
}

.tag-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #F7E7CE;
}

.tag-icon {
  width: 45px;
  height: 45px;
  background-color: #F7E7CE;
  color: #8B6914;
  font-size: 18px;
  font-weight: 700;
  line-height: 45px;
  text-align: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.tag-card-header h2 {
  font-size: 20px;
  color: #1C1C1C;
  letter-spacing: 1px;
}

.tag-card-header .tag-count {
  margin-left: auto;
  padding: 4px 12px;
  background-color: #C8A96B;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

.tag-articles {
  list-style: none;
}

.tag-articles li {
  padding: 12px 0;
  border-bottom: 1px solid #F5F5F5;
}

.tag-articles li:last-child {
  border-bottom: none;
}

.tag-articles a {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-articles a:hover {
  color: #C8A96B;
}

.tag-articles .article-date {
  font-size: 12px;
  color: #AAAAAA;
  flex-shrink: 0;
  margin-left: 10px;
}

.tag-viewall {
  display: inline-block;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 600;
  color: #C8A96B;
}

.tag-viewall:hover {
  color: #1C1C1C;
}

/* ---- Tag Cloud ---- */
.tag-cloud {
  padding: 50px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.tag-cloud h2 {
  font-size: 22px;
  color: #1C1C1C;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.tag-cloud-item {
  display: inline-block;
  padding: 8px 20px;
  background-color: #FAFAFA;
  border: 1px solid #F0F0F0;
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-cloud-item:hover {
  background-color: #C8A96B;
  color: #FFFFFF;
  border-color: #C8A96B;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tags-hero {
    height: 220px;
  }
  .tags-hero-content h1 {
    font-size: 24px;
  }
  .tags-grid {
    grid-template-columns: 1fr;
  }
  .tag-card {
    padding: 25px 20px;
  }
}
