/* ═══════════════════════════════════════════════
   AI Trend Radar · 分类页面公共样式
   models / agents / tools / emerging 共用
   ═══════════════════════════════════════════════ */

/* ── 分类页头部 Banner ── */
.cat-hero {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cat-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--hero-glow, rgba(79,142,247,0.1)) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero-icon {
  font-size: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px var(--hero-glow, rgba(79,142,247,0.4)));
  z-index: 1;
}
.cat-hero-text { flex: 1; z-index: 1; }
.cat-hero-text h2 {
  font-size: 26px; font-weight: 900;
  margin-bottom: 6px; line-height: 1.2;
}
.cat-hero-text p {
  font-size: 14px; color: var(--text2); line-height: 1.6;
}
.cat-hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}

/* ── 分类颜色主题 ── */
/* models: 蓝紫 */
.theme-models .cat-hero { background: linear-gradient(135deg, #0d1530 0%, #0a0e1a 100%); border: 1px solid rgba(79,142,247,0.25); --hero-glow: rgba(79,142,247,0.12); }
.theme-models .cat-accent { color: var(--accent); }
.theme-models .cat-border { border-color: rgba(79,142,247,0.3) !important; }
.theme-models .cat-bg { background: rgba(79,142,247,0.08) !important; }
.theme-models .progress-fill { background: linear-gradient(90deg, #4f8ef7, #7c6af7) !important; }

/* agents: 紫色 */
.theme-agents .cat-hero { background: linear-gradient(135deg, #120d28 0%, #0a0e1a 100%); border: 1px solid rgba(124,106,247,0.25); --hero-glow: rgba(124,106,247,0.12); }
.theme-agents .cat-accent { color: var(--accent2); }
.theme-agents .cat-border { border-color: rgba(124,106,247,0.3) !important; }
.theme-agents .cat-bg { background: rgba(124,106,247,0.08) !important; }
.theme-agents .progress-fill { background: linear-gradient(90deg, #7c6af7, #b06af7) !important; }

/* tools: 橙绿 */
.theme-tools .cat-hero { background: linear-gradient(135deg, #1a1200 0%, #0a0e1a 100%); border: 1px solid rgba(245,158,58,0.25); --hero-glow: rgba(245,158,58,0.12); }
.theme-tools .cat-accent { color: var(--orange); }
.theme-tools .cat-border { border-color: rgba(245,158,58,0.3) !important; }
.theme-tools .cat-bg { background: rgba(245,158,58,0.08) !important; }
.theme-tools .progress-fill { background: linear-gradient(90deg, #f59e3a, #3dd68c) !important; }

/* emerging: 绿青 */
.theme-emerging .cat-hero { background: linear-gradient(135deg, #001a12 0%, #0a0e1a 100%); border: 1px solid rgba(61,214,140,0.25); --hero-glow: rgba(61,214,140,0.12); }
.theme-emerging .cat-accent { color: var(--green); }
.theme-emerging .cat-border { border-color: rgba(61,214,140,0.3) !important; }
.theme-emerging .cat-bg { background: rgba(61,214,140,0.08) !important; }
.theme-emerging .progress-fill { background: linear-gradient(90deg, #3dd68c, #3ad6d6) !important; }

/* ── 主题词表格 ── */
.kw-watchlist {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0;
}
.kw-watch-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.kw-watch-chip:hover { transform: scale(1.06); }
.kw-watch-chip .chip-cnt {
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.2);
  padding: 0 5px; border-radius: 8px;
}

/* ── 热度排行卡（横向条形） ── */
.heat-rank-list { display: flex; flex-direction: column; gap: 10px; }
.heat-rank-item {
  display: flex; align-items: center; gap: 12px;
}
.hri-rank {
  font-size: 13px; font-weight: 800;
  width: 24px; text-align: center; flex-shrink: 0;
}
.hri-word {
  font-size: 13px; font-weight: 700;
  color: var(--text); width: 100px; flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hri-bar-wrap { flex: 1; }
.hri-bar {
  height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.hri-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.hri-count {
  font-size: 12px; font-weight: 700;
  width: 40px; text-align: right; flex-shrink: 0;
  color: var(--text2);
}

/* ── 分类条目列表 ── */
.cat-list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.18s ease;
  cursor: pointer;
  text-decoration: none; color: inherit;
  margin-bottom: 8px;
}
.cat-list-item:last-child { margin-bottom: 0; }
.cat-list-item:hover {
  border-color: var(--border2);
  background: var(--card-hover);
  transform: translateX(4px);
}
.cli-rank {
  font-size: 12px; font-weight: 800;
  width: 22px; text-align: center; flex-shrink: 0;
  padding-top: 2px;
}
.cli-body { flex: 1; min-width: 0; }
.cli-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cli-title mark {
  background: rgba(79,142,247,0.2);
  color: var(--accent); border-radius: 3px; padding: 0 2px;
}
.cli-desc {
  font-size: 12px; color: var(--text3);
  line-height: 1.45; margin-bottom: 6px;
}
.cli-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cli-stat {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--text3);
}
.cli-stat i { font-size: 10px; }
.cli-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 3px; flex-shrink: 0;
}
.cli-score { font-size: 20px; font-weight: 900; line-height: 1; }
.cli-score-label { font-size: 9px; color: var(--text3); }

/* ── 卡片式图表块 ── */
.chart-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.chart-block h4 {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 3px;
}
.chart-block .cb-desc {
  font-size: 11px; color: var(--text3); margin-bottom: 14px;
}
.chart-h-240 { height: 240px; }
.chart-h-260 { height: 260px; }
.chart-h-300 { height: 300px; }

/* ── 三栏布局 ── */
.cat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* 左宽右窄 */
.cat-grid-7-5 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
}
/* 2+1列 */
.cat-grid-2-1 {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 14px;
}

/* ── 对比卡片（模型对比 / 工具对比） ── */
.compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: all 0.18s ease;
}
.compare-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.cc-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.cc-logo {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cc-name { font-size: 14px; font-weight: 800; color: var(--text); }
.cc-maker { font-size: 11px; color: var(--text3); }
.cc-score-badge {
  margin-left: auto;
  font-size: 16px; font-weight: 900;
}
.cc-desc {
  font-size: 12px; color: var(--text2);
  line-height: 1.5; margin-bottom: 10px;
}
.cc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cc-bar-row { margin-bottom: 6px; }
.cc-bar-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text3); margin-bottom: 3px;
}
.cc-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cc-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.cc-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text3);
}
.cc-footer a { color: var(--accent); }

/* ── 信号卡（新兴概念页专用）── */
.signal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: all 0.18s ease;
  cursor: pointer;
}
.signal-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61,214,140,0.1);
}
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.sc-word { font-size: 18px; font-weight: 900; color: var(--text); }
.sc-phase {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
}
.sc-phase.early  { background: rgba(61,214,140,0.15);  color: var(--green);  border: 1px solid rgba(61,214,140,0.3); }
.sc-phase.rising { background: rgba(245,158,58,0.15);  color: var(--orange); border: 1px solid rgba(245,158,58,0.3); }
.sc-phase.hot    { background: rgba(240,83,106,0.15);  color: var(--red);    border: 1px solid rgba(240,83,106,0.3); }
.sc-desc { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.5; }
.sc-bars { margin-bottom: 8px; }
.sc-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sc-bar-label { font-size: 10px; color: var(--text3); width: 70px; flex-shrink: 0; }
.sc-bar-wrap { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.sc-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.sc-footer { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text3); }

/* ── 时间线（模型发布时间线）── */
.release-timeline { position: relative; padding-left: 26px; }
.release-timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--green));
  border-radius: 2px;
}
.rt-item { position: relative; margin-bottom: 22px; }
.rt-item:last-child { margin-bottom: 0; }
.rt-dot {
  position: absolute; left: -22px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800;
  border: 2px solid var(--bg);
  flex-shrink: 0;
}
.rt-date { font-size: 10px; font-weight: 700; color: var(--text3); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.rt-name { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.rt-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* ── 页面切换 Tabs ── */
.page-tabs {
  display: flex; gap: 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px;
  margin-bottom: 20px;
}
.page-tab {
  flex: 1; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; background: none;
  border: none; color: var(--text2); cursor: pointer;
  transition: all 0.18s ease; text-align: center;
}
.page-tab:hover { color: var(--text); }
.page-tab.active {
  background: var(--bg); color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ── 响应式 ── */
@media (max-width: 1050px) {
  .cat-grid-2-1 { grid-template-columns: 1fr 1fr; }
  .cat-grid-2-1 > *:last-child { grid-column: 1/-1; }
}
@media (max-width: 800px) {
  .cat-grid-3, .cat-grid-7-5, .cat-grid-2-1 { grid-template-columns: 1fr; }
  .cat-hero { flex-direction: column; padding: 20px; }
  .cat-hero-icon { font-size: 36px; }
  .cat-hero-text h2 { font-size: 20px; }
}
