/* Figma 11:336 News Feed / Market Intelligence 专题样式 */

/* LIVE TERMINAL 徽章：绿点 + 小写胶囊 */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 12px 4.5px;
  background: var(--live-pill-bg);
  border: 1px solid rgba(0, 255, 163, 0.2);
  border-radius: var(--radius-lg);
}

.live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.live-badge__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-green);
}

/* ---------- 双栏网格：左快讯 / 右侧面板 ---------- */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 32px;
  align-items: start;
}

.column--feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-primary);
}

.section-head__title--compact {
  font-size: 18px;
}

.section-head__bolt {
  width: 10px;
  height: 14px;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
  border-radius: 1px;
}

.section-head__layers {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-cyan);
  border-radius: 3px;
  opacity: 0.9;
}

.section-head__calendar {
  width: 18px;
  height: 20px;
  border: 2px solid var(--accent-cyan);
  border-radius: 3px;
  position: relative;
}

.section-head__calendar::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 2px;
  background: var(--accent-cyan);
}

.section-head__ai {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, var(--accent-cyan), transparent 70%);
  border: 1px solid rgba(129, 236, 255, 0.5);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
}

.pill--ghost {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-chip);
  color: var(--text-muted);
}

.pill--ghost:hover {
  color: var(--text-primary);
}

/* 新闻卡片：毛玻璃 + 左上渐变（Breaking 卡额外渐变） */
.news-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-top-width: 1px;
  border-left-width: 1px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card--flash {
  background: linear-gradient(160deg, rgba(129, 236, 255, 0.15) 0%, rgba(129, 236, 255, 0) 100%),
    var(--bg-card);
}

.news-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.tag--breaking {
  background: var(--accent-magenta);
  color: var(--breaking-text);
}

.tag--earnings {
  background: #20262f;
  color: var(--accent-bright);
}

.tag--tech {
  background: #20262f;
  color: var(--text-muted);
}

.news-card__source {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-card__ext {
  color: var(--text-muted);
  font-size: 12px;
}

.news-card__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-primary);
}

.news-card__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.43;
  color: var(--text-muted);
}

.news-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.sentiment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sentiment-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 12px;
}

.sentiment-pill--bear .sentiment-pill__dot {
  background: var(--accent-red);
}

.sentiment-pill--bear {
  color: var(--accent-red);
}

.sentiment-pill--bull .sentiment-pill__dot {
  background: var(--accent-green);
}

.sentiment-pill--bull {
  color: var(--accent-green);
}

.sentiment-pill--neutral .sentiment-pill__dot {
  background: var(--accent-amber);
}

.sentiment-pill--neutral {
  color: var(--accent-amber);
}

.news-card__related {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ---------- 右栏面板 ---------- */
.column--aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel__body--glass {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel__body--flush {
  padding: 0;
  overflow: hidden;
}

/* 宏观日历 */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--live-pill-bg);
  border-bottom: 1px solid rgba(68, 72, 79, 0.1);
}

.cal-header__date {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.cal-header__link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-cyan);
}

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cal-list--loading {
  min-height: 304px;
}

.cal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 16px;
}

.cal-row--loading {
  min-height: 76px;
  grid-template-columns: 86px minmax(120px, 1fr) 92px;
  align-items: center;
  border-top: 1px solid rgba(68, 72, 79, 0.1);
}

.cal-row--loading:first-child {
  border-top: 0;
}

.cal-skeleton--date {
  width: 86px;
  min-height: 12px;
  flex: 0 0 86px;
}

.cal-skeleton--title {
  width: min(170px, 42%);
  min-height: 16px;
}

.cal-skeleton--value {
  width: 92px;
  min-height: 24px;
  margin-left: auto;
}

.cal-row--border {
  border-top: 1px solid rgba(68, 72, 79, 0.1);
}

.cal-row__main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.cal-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cal-row__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cal-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.cal-row__bars {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.cal-row__bars--short {
  opacity: 0.5;
}

.cal-row__nums {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 126px;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cal-row__nums--end {
  align-items: flex-end;
  justify-content: center;
}

.chip-vol {
  padding: 0.5px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: #00e3fd;
  background: rgba(129, 236, 255, 0.08);
  border: 1px solid rgba(129, 236, 255, 0.15);
}

/* AI 摘要区块：左侧青色强调边 + 渐变底 */
.panel--ai {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 236, 255, 0.25);
  border-left-width: 2px;
  background: linear-gradient(147deg, rgba(129, 236, 255, 0.15) 0%, rgba(129, 236, 255, 0) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel--ai .section-head__title {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.ai-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.625;
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
