/* AIHub 专题聚合 — 前台样式 */

/* ---------- 专题页 ---------- */
.aiht-topic-wrap { max-width: 1080px; margin: 0 auto; padding: 20px; }
.aiht-breadcrumb { font-size: 13px; color: #888; margin-bottom: 12px; }
.aiht-breadcrumb a { color: #6366f1; text-decoration: none; }
.aiht-breadcrumb a:hover { text-decoration: underline; }
.aiht-breadcrumb span { margin: 0 6px; }
.aiht-breadcrumb .current { color: #555; }

.aiht-topic-title { font-size: 26px; line-height: 1.4; margin: 8px 0 14px; font-weight: 700; }
.aiht-topic-intro {
  font-size: 15px; color: #555; line-height: 1.8;
  background: linear-gradient(135deg, #f5f3ff, #faf5ff);
  border-left: 4px solid #a855f7; padding: 12px 16px; border-radius: 6px; margin-bottom: 24px;
}
.aiht-topic-body { font-size: 15px; line-height: 1.9; color: #333; margin-bottom: 24px; }

.aiht-group { margin-bottom: 28px; }
.aiht-group-title {
  font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-left: 10px;
  border-left: 4px solid #6366f1;
}
.aiht-group-site .aiht-group-title { border-color: #ec4899; }
.aiht-group-tag .aiht-group-title  { border-color: #22d3ee; }

/* 卡片网格 */
.aiht-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px;
}
.aiht-card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 22px 18px; border: 1px solid #ececf3; border-radius: 14px;
  background: #fff; text-decoration: none; transition: all .18s ease; min-height: 168px;
}
.aiht-card:hover { border-color: #a855f7; box-shadow: 0 10px 26px rgba(168,85,247,.16); transform: translateY(-3px); }
.aiht-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.aiht-card-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #f3f4f6; flex: none; border: 1px solid #eee; }
.aiht-card-head .aiht-card-badge { margin-bottom: 0; }
.aiht-card-badge {
  align-self: flex-start; font-size: 12px; color: #fff; background: #6366f1;
  padding: 2px 10px; border-radius: 12px; margin-bottom: 12px;
}
.aiht-card-site .aiht-card-badge, .aiht-card-topic .aiht-card-badge { background: #ec4899; }
.aiht-card-news .aiht-card-badge,  .aiht-card-category .aiht-card-badge { background: #f59e0b; }
.aiht-card-tag .aiht-card-badge { background: #22d3ee; }
.aiht-card-title {
  font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aiht-card-desc {
  font-size: 14px; color: #6b7280; line-height: 1.75; margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.aiht-card-more { font-size: 13px; color: #a855f7; font-weight: 600; margin-top: auto; }
.aiht-card:hover .aiht-card-more { text-decoration: underline; }

.aiht-related { margin-top: 36px; padding-top: 20px; border-top: 1px dashed #ddd; }
.aiht-related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aiht-related-list a {
  font-size: 13px; color: #6366f1; text-decoration: none;
  background: #f5f3ff; padding: 6px 12px; border-radius: 20px;
}
.aiht-related-list a:hover { background: #ede9fe; }
.aiht-empty { color: #999; padding: 24px 0; text-align: center; }

/* ---------- 归档页 ---------- */
.aiht-archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aiht-archive-link { display: block; padding: 16px; border: 1px solid #eee; border-radius: 10px; text-decoration: none; background: #fff; transition: all .15s; }
.aiht-archive-link:hover { border-color: #a855f7; box-shadow: 0 4px 14px rgba(168,85,247,.1); }
.aiht-archive-q { display: block; font-size: 16px; font-weight: 700; color: #1f2937; }
.aiht-archive-blurb { display: block; font-size: 13px; color: #888; margin-top: 6px; }
.aiht-archive-meta { display: inline-block; font-size: 12px; color: #a855f7; margin-top: 8px; }
.aiht-pagination { margin-top: 20px; text-align: center; }
.aiht-pagination a, .aiht-pagination .current { display: inline-block; padding: 6px 12px; margin: 0 2px; border-radius: 6px; text-decoration: none; }
.aiht-pagination .current { background: #6366f1; color: #fff; }

/* ---------- 关键词云 ---------- */
.aiht-cloud-box { margin: 0 0 16px; }
.aiht-cloud-head h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.aiht-cloud { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; line-height: 2; }
.aiht-cloud-item {
  text-decoration: none; color: #4b5563; transition: color .15s;
  border-bottom: 1px dashed transparent;
}
.aiht-cloud-item:hover { color: #a855f7; border-bottom-color: #a855f7; }
/* 侧边栏内的云（OneNav 卡片容器） */
.sidebar .aiht-cloud-mount { padding: 16px; }

@media (max-width: 640px) {
  .aiht-topic-title { font-size: 22px; }
  .aiht-card-grid { grid-template-columns: 1fr; }
}
