/* ═══════════════════════════════════════════════════════════
   威视界 - 热点资讯模块样式
   ═══════════════════════════════════════════════════════════ */

/* ─── 工作台 Tab 导航 ───────────────────────── */
.workspace-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.workspace-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.workspace-tab:hover {
  color: var(--text-primary);
}
.workspace-tab.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-500);
}
.workspace-tab .tab-count {
  font-size: 0.7rem;
  background: var(--brand-100);
  color: var(--brand-600);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}

/* ─── 筛选栏 ────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-bar .filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-bar select,
.filter-bar input[type="date"] {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration-fast);
}
.filter-bar select:focus,
.filter-bar input[type="date"]:focus {
  border-color: var(--brand-400);
}
.filter-bar input[type="text"] {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-page);
  outline: none;
  transition: border-color var(--duration-fast);
}
.filter-bar input[type="text"]:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.filter-bar .filter-spacer {
  flex: 1;
}

.filter-bar .filter-info {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ─── 热点资讯表格 ──────────────────────────── */
.hot-articles-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.hot-table {
  width: 100%;
  border-collapse: collapse;
}

.hot-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.hot-table tbody td {
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.hot-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}
.hot-table tbody tr:hover {
  background: var(--brand-50);
}
.hot-table tbody tr:last-child td {
  border-bottom: none;
}

/* 排名列 */
.hot-table .col-rank {
  width: 50px;
  text-align: center;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.rank-number.top-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
.rank-number.top-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: white; }
.rank-number.top-3 { background: linear-gradient(135deg, #d6a574, #b87333); color: white; }

/* 标题列 */
.hot-table .col-title {
  min-width: 300px;
}

.article-title {
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 分类标签 */
.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.category-tag.tech { background: #eff6ff; color: #1d4ed8; }
.category-tag.entertainment { background: #fdf2f8; color: #be185d; }
.category-tag.society { background: #fef3c7; color: #b45309; }
.category-tag.finance { background: #ecfdf5; color: #047857; }
.category-tag.sports { background: #f0fdf4; color: #15803d; }
.category-tag.general { background: var(--gray-100); color: var(--gray-600); }

/* 来源标签 */
.source-tag {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* 摘要 */
.article-summary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 热度列 */
.hot-table .col-heat {
  width: 90px;
  text-align: center;
}

.heat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.heat-trend {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.heat-trend.rising { color: #ea580c; }
.heat-trend.hot { color: #dc2626; }
.heat-trend.stable { color: var(--text-tertiary); }
.heat-trend.cooling { color: #2563eb; }

/* 操作列 */
.hot-table .col-actions {
  width: 80px;
  text-align: center;
}

.btn-rewrite-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-page);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.btn-rewrite-disabled:hover {
  border-color: var(--brand-300);
  color: var(--brand-400);
}

/* ─── 空状态 ────────────────────────────────── */
.hot-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.hot-empty .hot-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.hot-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.hot-empty p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* ─── 数据更新时间 ──────────────────────────── */
.data-freshness {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
}

.data-freshness .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success-400);
}

/* ─── 响应式 ────────────────────────────────── */
@media (max-width: 768px) {
  .workspace-tabs { overflow-x: auto; }
  .workspace-tab { padding: 0.6rem 1rem; font-size: 0.8125rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input[type="text"] { max-width: none; }
  .hot-table .col-heat { display: none; }
  .hot-table .col-rank { width: 36px; }
}
