/* ===== 官网公开页:深色主题 + 实时数据看板。叠加在 admin.css 之上,只覆盖营销页所需。 ===== */

body {
  background: #060e22;
  color: #e8eefc;
}

/* 产品应用区:浅色 → 深色 */
.product-applications {
  background: #0a1430;
}
.section-heading h2 {
  color: #eaf1ff;
}
.section-heading span {
  color: #36cfe0;
}
.section-copy {
  color: #aebfe0;
}
.application-grid article {
  border-color: rgba(120, 160, 230, 0.16);
  background: #0c1733;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
.application-grid small {
  color: #36cfe0;
}
.application-grid h3 {
  color: #eaf1ff;
}
.application-grid p {
  color: #aebfe0;
}

/* ===== 实时数据看板 ===== */
.live-board {
  margin: 0 calc(50% - 50vw);
  padding: 84px max(56px, calc((100vw - 1440px) / 2 + 28px));
  background: #060e22;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.board-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.board-title span {
  color: #36cfe0;
  font-size: 28px;
  font-weight: 600;
}

.board-title h2 {
  color: #eaf1ff;
  font-size: 30px;
  font-weight: 700;
}

.board-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(29, 158, 117, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(29, 158, 117, 0.12);
  color: #7fe3c0;
  font-size: 13px;
  font-style: normal;
}

.board-status em {
  font-style: normal;
}

.board-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dcaa5;
}

.board-status.is-error {
  border-color: rgba(216, 90, 48, 0.3);
  background: rgba(216, 90, 48, 0.12);
  color: #f0b79b;
}

.board-status.is-error .board-dot {
  background: #f0997b;
}

.board-sub {
  margin: 0 0 26px;
  color: #6f86b6;
  font-size: 14px;
}

.board-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.kpi {
  border: 1px solid rgba(120, 160, 230, 0.16);
  border-radius: 14px;
  background: #0c1733;
  padding: 18px 20px;
}

.kpi-label {
  color: #7b91bd;
  font-size: 13px;
}

.kpi-value {
  margin-top: 10px;
  color: #eaf1ff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.kpi-value.accent {
  color: #36cfe0;
}

.kpi-sub {
  margin-top: 6px;
  min-height: 16px;
  color: #5f76a6;
  font-size: 12px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.board-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.board-card {
  border: 1px solid rgba(120, 160, 230, 0.16);
  border-radius: 14px;
  background: #0c1733;
  padding: 18px 20px;
}

.board-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.board-card-head h3 {
  color: #dce6fb;
  font-size: 15px;
  font-weight: 600;
}

.board-card-head small {
  color: #5f76a6;
  font-size: 12px;
}

.board-empty {
  padding: 18px 0;
  color: #5f76a6;
  font-size: 13px;
  text-align: center;
}

/* 概念热榜 */
.hot-list {
  display: grid;
  gap: 12px;
}

.hot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.hot-rank {
  width: 18px;
  color: #36cfe0;
  font-weight: 600;
}

.hot-name {
  width: 96px;
  color: #dce6fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-bar {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: #16223f;
  overflow: hidden;
}

.hot-bar > i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #3b82f6;
}

.hot-mentions {
  width: 54px;
  color: #7b91bd;
  font-size: 12px;
  text-align: right;
}

/* 情绪分布 */
.sentiment-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #16223f;
}

.sentiment-bar > i {
  display: block;
  height: 14px;
}

.sentiment-legend {
  display: flex;
  justify-content: space-between;
  color: #8aa0cc;
  font-size: 12px;
}

.sentiment-legend b {
  color: #cdd9f2;
  font-weight: 500;
}

/* 趋势 */
.trend-wrap svg {
  width: 100%;
  height: 64px;
  display: block;
}

.trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #5f76a6;
  font-size: 11px;
}

/* 情报流 */
.feed-list {
  display: grid;
  gap: 11px;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c4d2ee;
}

.feed-time {
  flex: none;
  width: 44px;
  color: #5f76a6;
  font-size: 12px;
}

.feed-platform {
  flex: none;
  border-radius: 5px;
  background: #13233f;
  color: #8aa0cc;
  padding: 2px 8px;
  font-size: 12px;
}

.feed-stance {
  flex: none;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
}

.feed-stance[data-stance="bullish"] {
  background: #102b22;
  color: #7fe3c0;
}

.feed-stance[data-stance="bearish"] {
  background: #2b1812;
  color: #f0b79b;
}

.feed-stance[data-stance="neutral"] {
  background: #1a2540;
  color: #9fb3dd;
}

.feed-line {
  color: #aebfe0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 160, 230, 0.12);
  color: #36cfe0;
  font-size: 13px;
  text-decoration: none;
}

/* 加载态 */
.live-board.is-loading .board-card,
.live-board.is-loading .board-kpis {
  opacity: 0.6;
}

/* CTA + 页脚 */
.site-cta {
  margin: 0 calc(50% - 50vw);
  padding: 64px max(56px, calc((100vw - 1440px) / 2 + 28px));
  background: #0a1430;
  text-align: center;
}

.site-cta h2 {
  color: #eaf1ff;
  font-size: 30px;
  font-weight: 700;
}

.site-cta p {
  margin: 14px auto 0;
  max-width: 660px;
  color: #aebfe0;
  font-size: 16px;
  line-height: 1.8;
}

.site-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.site-cta-actions a {
  min-width: 168px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-cta-actions .primary {
  background: linear-gradient(135deg, #3b6fd6, #6f8bec);
  color: #fff;
}

.site-cta-actions .ghost {
  border: 1px solid rgba(188, 216, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eefc;
}

.site-footer {
  margin: 0 calc(50% - 50vw);
  padding: 30px max(56px, calc((100vw - 1440px) / 2 + 28px));
  border-top: 1px solid rgba(120, 160, 230, 0.12);
  background: #060e22;
  color: #5f76a6;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #8aa0cc;
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 1120px) {
  .board-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .live-board,
  .site-cta,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .board-head {
    flex-wrap: wrap;
  }
}
