/* ========================================
   内容相关样式（合并文件）
   合并来源：signal.css + market.css
   ======================================== */

/* ========================================
   Signal Page Styles - 信号页样式
   ======================================== */

/* X信号搜索横幅的AI按钮降调样式，避免与主探索混淆 */
#opinions-search-banner-btn {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.88);
  border-color: var(--border);
}

#opinions-search-banner-btn:hover {
  filter: brightness(1.02);
}

/* 关注项忙碌指示：头像右上角旋转小圈 */
.tge-item.busy .tge-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--accent-3);
  animation: spin 0.8s linear infinite;
  background: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  z-index: 2;
}

.tge-item .tge-icon {
  position: relative;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 重点关注（原 TGE 项目标记，仅样式类名保留） */
.tge-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min-content;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 12px;
  scroll-padding-right: 12px;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}

/* 让添加按钮不受 grid-auto-columns 影响 */
.tge-grid > .tge-add-btn {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  justify-self: start;
}

/* 当第一个元素是添加按钮时，使用 grid-template-columns 为第一个元素设置固定宽度，其他元素使用 auto */
.tge-grid:has(.tge-add-btn:first-child) {
  grid-template-columns: 26px;
  grid-auto-columns: min-content;
}

/* 兼容性方案：如果 :has() 不支持，直接为第一个添加按钮设置 */
.tge-grid > .tge-add-btn:first-child {
  grid-column: 1;
}

.tge-grid > .tge-item:first-child {
  margin-left: 0;
}

.tge-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  scroll-snap-align: start;
  overflow: hidden;
  min-width: 70px;
  width: fit-content;
}

.tge-item > * {
  min-width: 0;
}

/* 紧凑的添加关注按钮 - 只显示+图标 */
.tge-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  /* 覆盖 grid-auto-columns，让列宽自适应内容 */
  grid-column: span 1;
  justify-self: start;
}

.tge-add-btn:hover {
  background: rgba(255,255,255,0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,24,39,0.08);
}

.tge-add-btn::before,
.tge-add-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

.tge-add-btn::before {
  width: 12px;
  height: 1.5px;
}

.tge-add-btn::after {
  width: 1.5px;
  height: 12px;
}

.tge-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  box-shadow: 0 6px 16px rgba(52,211,153,0.35);
  position: relative;
}

.tge-icon.plus {
  background: rgba(255,255,255,0.65);
  box-shadow: 0 6px 12px rgba(17,24,39,0.08);
}

.tge-icon.plus::before,
.tge-icon.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
}

.tge-icon.plus::before {
  width: 18px;
  height: 2px;
}

.tge-icon.plus::after {
  width: 2px;
  height: 18px;
}

.tge-name {
  font-size: 12px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 横屏优化：提高可视数量与一致性 */
@media (orientation: landscape) {
  .tge-grid {
    gap: 6px;
    grid-auto-columns: min-content;
  }
  .tge-item {
    padding: 6px 10px;
    min-width: 65px;
  }
  .tge-icon {
    width: 32px;
    height: 32px;
  }
  .tge-name {
    font-size: 11px;
  }
}

/* 手机端优化：提高重点关注板块展示密度 */
@media (max-width: 767px) {
  .tge-grid {
    gap: 6px;
    grid-auto-columns: 85px;
    padding: 8px 10px;
    align-items: center;
  }
  .tge-item {
    padding: 6px 10px;
    min-width: 65px;
  }
  .tge-icon {
    width: 32px;
    height: 32px;
  }
  .tge-name {
    font-size: 11px;
  }
}

/* 观点事件 */
.opinions {
  padding: 8px;
  display: grid;
  gap: 8px;
  overflow-x: hidden;
}

.op-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  min-width: 0; /* 防止在 grid 中因 min-width:auto 导致文本不换行撑宽 */
}

.op-item[data-link] {
  cursor: pointer;
}

.op-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(17,24,39,0.12), inset 0 1px rgba(255,255,255,0.5);
}

.type-opinion {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.type-trading {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.type-news {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
}

.type-action {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.op-title {
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.op-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 将类型标签以内联形式放到作者与时间之后，尺寸与元信息一致 */
.op-meta .type-chip {
  padding: 0 5px;
  font-size: 10px;
  line-height: 1.2;
  margin-left: 6px;
  vertical-align: 1px;
  box-shadow: none;
}

/* X信号标题点样式 */
.signal-title-dot {
  background: var(--accent-2);
}

/* X信号标题区域布局：标题、搜索框 */
.section:has(#opinions-list) .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section:has(#opinions-list) .section-title > .micro-search {
  margin-left: auto;
}

/* 观点事件筛选：紧凑分段控件 */
.opinions-filter {
  --filter-h: 30px;
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.opinions-filter::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.segmented {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 1px rgba(255,255,255,0.70), 0 6px 16px var(--shadow);
  overflow: visible;
  height: var(--filter-h);
  box-sizing: border-box;
  min-width: max-content;
  flex-shrink: 0;
}

.segmented .tab {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--filter-h);
  white-space: nowrap;
  user-select: none;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.segmented .tab:hover {
  filter: brightness(1.02);
}

.segmented .tab .tab-label {
  display: inline-block;
}

.segmented .tab .tab-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0.6;
  transition: transform 200ms ease, opacity 200ms ease;
  line-height: 1;
}

.segmented .tab:hover .tab-switch-icon {
  opacity: 0.8;
  transform: rotate(90deg);
}

/* 隐藏的选项卡（用于循环切换功能） */
.segmented .tab.hidden-tab {
  display: none;
}

.segmented {
  --seg-index: 0;
}

.segmented[data-active="all"] {
  --seg-index: 0;
}

.segmented[data-active="opinion"] {
  --seg-index: 1;
}

.segmented[data-active="trading"] {
  --seg-index: 2;
}

.segmented[data-active="news"] {
  --seg-index: 3;
}

.segmented[data-active="action"] {
  --seg-index: 4;
}

.seg-indicator {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--seg-left, 0);
  width: var(--seg-width, 60px);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 4px 12px rgba(17,24,39,0.12), inset 0 1px rgba(255,255,255,0.55);
  transition: left 160ms cubic-bezier(.2,.8,.2,1), width 160ms cubic-bezier(.2,.8,.2,1);
}

.segmented .tab.active {
  color: #fff;
  font-weight: 600;
}

.segmented .tab .tab-count {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
  vertical-align: baseline;
}

.segmented .tab.active .tab-count {
  color: #fff;
  opacity: 0.95;
}

.micro-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  height: var(--filter-h);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  box-shadow: inset 0 1px rgba(255,255,255,0.70), 0 6px 16px var(--shadow);
  width: auto;
  max-width: 140px;
  box-sizing: border-box;
}

.micro-search .icon.search {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, var(--accent-2) 0 30%, transparent 31%),
    radial-gradient(circle at 80% 80%, var(--accent-2) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 1px 4px rgba(17,24,39,0.12);
}

.micro-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  padding: 0;
  line-height: 1;
}

/* 隐藏浏览器内置的搜索输入清除按钮，避免与自定义清除重复 */
.micro-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.micro-search input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

@media (max-width: 420px) {
  .micro-search {
    max-width: 100px;
    gap: 4px;
  }
  .micro-search input {
    font-size: 11px;
  }
}

.micro-search ::placeholder {
  color: var(--muted);
}

.micro-search .icon.clear {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  box-shadow: inset 0 1px rgba(255,255,255,0.70);
  position: relative;
  display: none;
  cursor: pointer;
}

.micro-search .icon.clear::before,
.micro-search .icon.clear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--muted);
  transform-origin: center;
  border-radius: 2px;
}

.micro-search .icon.clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.micro-search .icon.clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.micro-search .icon.clear.show {
  display: inline-flex;
}

/* 交互与触感 */
.news-item:active,
.tge-item:active,
.op-item:active,
.market-item:active {
  transform: translateY(1px);
  transition: transform 120ms ease;
}


.market-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  cursor: pointer;
  transition: all 160ms ease;
  min-width: 140px;
  width: 160px;
  flex-shrink: 0;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.market-item:hover {
  background: rgba(255,255,255,0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,24,39,0.08);
}

.market-item:active {
  transform: translateY(1px);
  transition: transform 120ms ease;
}
.market-row-top { display: flex; justify-content: space-between; align-items: center; line-height: 1; gap: 6px; }
.market-symbol { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.market-change { font-size: 10px; font-weight: 600; white-space: nowrap; }
.market-change.positive { color: #10b981; }
.market-change.negative { color: #ef4444; }
.market-change.neutral { color: var(--muted); }
.market-price-value { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 币种额外信息区域 */
.market-extra-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

/* 情绪和讨论人数行 */
.market-sentiment-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.market-sentiment {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.market-sentiment.sentiment-positive {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.market-sentiment.sentiment-negative {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.market-sentiment.sentiment-neutral {
  background: rgba(17, 24, 39, 0.1);
  color: var(--muted);
}

.market-discussion-count {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* 要点列表 */
.market-highlights {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-highlight-item {
  font-size: 10px;
  color: var(--text);
  line-height: 1.4;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 18px;
}

.market-highlight-item.market-highlight-empty {
  background: rgba(17, 24, 39, 0.02);
  opacity: 0.5;
}

#market-detail-modal .modal-panel { max-height: 80vh; display: flex; flex-direction: column; }
#market-detail-modal .modal-body { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 8px; }
#market-detail-modal #market-signals-list { overflow: visible !important; max-height: none !important; overflow-y: visible !important; overflow-x: hidden; }
#market-detail-modal .opinions { overflow: visible !important; max-height: none !important; }
#market-detail-modal #market-signals-filter { 
  min-height: 46px !important; 
  height: auto !important; 
  padding: 8px !important;
}

/* 弹窗内的segmented样式 - 横屏占满 */
#market-detail-modal #market-signals-filter .segmented {
  min-height: 30px !important;
  height: 30px !important;
  width: 100% !important;
  flex: 1 !important;
  display: flex !important;
  justify-content: space-between !important;
  position: relative !important;
}

#market-detail-modal #market-signals-filter .segmented .tab {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 0 8px !important;
}

/* 确保弹窗内的seg-indicator正常工作 */
#market-detail-modal #market-signals-filter .seg-indicator {
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  left: var(--seg-left, 0) !important;
  width: var(--seg-width, 60px) !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
  box-shadow: 0 4px 12px rgba(17,24,39,0.12), inset 0 1px rgba(255,255,255,0.55) !important;
  transition: left 160ms cubic-bezier(.2,.8,.2,1), width 160ms cubic-bezier(.2,.8,.2,1) !important;
}

.price-chart-container {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  position: relative;
  overflow: visible;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Key Points 列表样式 - 参考词云图 */
.keypoints-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 2px 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.2;
}

.keypoint-item {
  --heat-intensity: 0.5;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: transparent;
  font-weight: 500;
  transition: all 180ms ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  color: var(--accent-2);
  opacity: calc(0.5 + var(--heat-intensity) * 0.5);
}

.keypoint-item:hover {
  color: var(--accent-2);
  transform: scale(1.08);
  text-shadow: 0 0 8px rgba(34,211,153,0.3);
  opacity: 1 !important;
}

.keypoint-item:active {
  transform: scale(1.05);
}

.keypoint-item.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  opacity: 1 !important;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(167,139,250,0.3);
}

.keypoint-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.keypoints-loading,
.keypoints-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  width: 100%;
}

/* 选中帖子内容样式 - 使用op-item样式 */
#market-ai-analysis {
  display: none;
}

#market-ai-analysis.visible {
  display: block;
}
@media (min-width: 768px) {
  .price-chart-container { padding-left: 6px; padding-top: 6px; }
}
@media (max-width: 767px) {
  .price-chart-container { padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
}

#market-detail-modal .segmented .tab { 
  align-items: center;
}
#market-detail-modal .segmented .tab .tab-count { 
  margin-left: 4px; 
  line-height: 1.2;
  margin-top: 1px;
}

/* 趋势板块样式 */
.trending-section {
  gap: 6px;
  margin-top: 10px;
  margin-bottom: -16px;
}

.trending-container {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.trending-coin-list {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
  scroll-padding-right: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  align-items: flex-start;
  border-bottom: 1px solid rgba(17,24,39,0.08);
  background: transparent;
  min-height: 80px;
}

.trending-coin-list .market-item {
  scroll-snap-align: start;
}

.trending-tge-section {
  display: grid;
  gap: 0;
}

.trending-news-list {
  display: grid;
  gap: 5px;
  padding: 6px 10px;
  max-height: 71px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* TGE板块卡片通用样式 */
.trending-tge-card {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: all 180ms ease;
  cursor: pointer;
}

.trending-tge-card:hover {
  background: rgba(255,255,255,0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,24,39,0.08);
}

.trending-tge-card:active {
  transform: translateY(1px);
  transition: transform 120ms ease;
}

.trending-tge-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* 标题和内容同一行的布局 */
.trending-tge-card-header-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* 异动卡片中，让关键词占据剩余空间，日期靠右 */
.trending-anomaly-card .trending-tge-card-header-inline .trending-time {
  margin-left: auto;
}

.trending-tge-card-type {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.08);
  opacity: 0.75;
}

/* 叙事异动标签特殊颜色 */
.trending-anomaly-card .trending-tge-card-type {
  color: var(--accent-2);
  background: rgba(167, 139, 250, 0.15);
  opacity: 1;
}

/* 代币异动标签特殊颜色（偏红色） */
.trending-token-anomaly-card .trending-tge-card-type {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  opacity: 1;
}

.trending-tge-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 人物推荐卡片的 body 需要特殊处理 */
.trending-people-card .trending-tge-card-body {
  gap: 8px;
}

/* 通用页脚样式 */
.trending-tge-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  font-size: 11px;
  padding-top: 4px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.trending-discussion-count {
  color: var(--muted);
  font-weight: 500;
}

.trending-time {
  color: var(--muted);
  font-weight: 400;
  opacity: 0.8;
  font-size: 10px;
}

/* 异动趋势卡片样式 */
.trending-anomaly-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.trending-anomaly-symbol {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.trending-anomaly-fullname {
  font-size: 10px;
  color: var(--muted);
}

.trending-anomaly-change {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.trending-anomaly-change.positive {
  color: #10b981;
}

.trending-anomaly-change.negative {
  color: #ef4444;
}

.trending-anomaly-keyword {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.trending-anomaly-description {
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}

.trending-anomaly-heat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-heat-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(17, 24, 39, 0.1);
  overflow: hidden;
}

.trending-heat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.trending-heat-value {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* 有效行动信号卡片样式 */
.trending-signal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.trending-signal-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.trending-signal-target {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
}

.trending-signal-card.trending-signal-buy .trending-signal-type {
  color: #10b981;
}

.trending-signal-card.trending-signal-sell .trending-signal-type {
  color: #ef4444;
}

.trending-signal-card.trending-signal-watch .trending-signal-type {
  color: var(--accent-2);
}

.trending-signal-summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.trending-signal-reason {
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}

.trending-signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trending-signal-confidence {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-confidence-label {
  font-size: 10px;
  color: var(--muted);
}

.trending-confidence-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.trending-signal-time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* 人物推荐卡片样式 */
.trending-people-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.trending-people-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(167, 139, 250, 0.12);
  flex-shrink: 0;
}

/* 人物推荐紧凑布局中的头像 */
.trending-people-compact .trending-people-avatar {
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.trending-people-info {
  flex: 1;
  min-width: 0;
}

.trending-people-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trending-people-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* 人物推荐紧凑布局中的姓名 */
.trending-people-compact .trending-people-name {
  font-size: 13px;
}

.trending-people-verified {
  font-size: 9px;
  color: #10b981;
  font-weight: 700;
}

.trending-people-handle {
  font-size: 10px;
  color: var(--muted);
}

.trending-people-topic {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.trending-people-topic-label {
  color: var(--muted);
}

.trending-people-topic-value {
  color: var(--text);
  font-weight: 500;
}

.trending-people-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-people-time-badge {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-2);
  font-weight: 600;
}

.trending-people-time-value {
  font-size: 10px;
  color: var(--muted);
}

/* 人物推荐垂直布局样式 */
.trending-people-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 8px;
}

.trending-people-vertical .trending-people-avatar {
  width: 40px;
  height: 40px;
  font-size: 24px;
  margin-bottom: 2px;
}

.trending-people-vertical .trending-people-name-row {
  justify-content: center;
}

.trending-people-vertical .trending-people-name {
  font-size: 13px;
  font-weight: 600;
}

.trending-people-narrative {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  margin-top: 2px;
}

.trending-people-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(167, 139, 250, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 人物推荐紧凑样式（保留用于兼容） */
.trending-people-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.trending-people-info-compact {
  flex: 1;
  min-width: 0;
}

.trending-people-topic-compact {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.trending-people-handle-compact {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* 保留旧样式用于兼容 */
.trending-news-item {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: all 180ms ease;
  cursor: pointer;
}

.trending-news-item:hover {
  background: rgba(255,255,255,0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,24,39,0.08);
}

.trending-news-item:active {
  transform: translateY(1px);
  transition: transform 120ms ease;
}

.trending-news-content {
  display: grid;
  gap: 6px;
}

.trending-news-title {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.trending-news-time {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.trending-news-token {
  font-weight: 700;
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(167,139,250,0.1);
}

.trending-news-type {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(17,24,39,0.10);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trending-sentinel {
  height: 1px;
  width: 100%;
  visibility: hidden;
}

/* TGE详情弹窗样式 */
#tge-detail-modal .trending-news-content {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

#tge-detail-modal .trending-news-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 趋势板块空状态和加载状态 */
.trending-empty,
.trending-loading,
.trending-error {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.trending-error {
  color: #ef4444;
}

