/* AI Safety HOT · dashboard
   dark, dense, card-based intelligence board */

:root {
  --bg: #080b12;
  --bg-2: #0d121c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #e8ecf4;
  --fg-dim: #98a3b8;
  --fg-mute: #64708a;
  --accent: #7c8cff;
  --accent-2: #35d6c4;
  --hot: #ff7a59;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

[v-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(124, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 88% 0%, rgba(53, 214, 196, 0.10), transparent 55%),
    var(--bg);
  color: var(--fg);
  font: 15px/1.6 "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- header ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 28px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(124, 140, 255, 0.45);
}
.logo span {
  width: 12px; height: 12px; border-radius: 50%;
  background: #080b12;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9);
}

.brand-text h1 {
  margin: 0; font-size: 16px; letter-spacing: .4px;
  font-weight: 650;
}
.brand-text p {
  margin: 0; font-size: 11.5px; color: var(--fg-mute); letter-spacing: .5px;
}

.search-wrap {
  position: relative; flex: 1; max-width: 620px;
}
.search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--fg-mute); font-size: 16px; pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: 10px 38px 10px 36px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; color: var(--fg); font-size: 13.5px;
  outline: none; transition: border-color .15s, background .15s;
}
.search-wrap input::placeholder { color: var(--fg-mute); }
.search-wrap input:focus {
  border-color: rgba(124, 140, 255, .55);
  background: rgba(124, 140, 255, .07);
}
.clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--fg-mute);
  font-size: 18px; cursor: pointer; padding: 0 6px; line-height: 1;
}
.clear:hover { color: var(--fg); }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.segmented {
  display: flex; padding: 3px; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.segmented button {
  border: 0; background: transparent; color: var(--fg-dim);
  font-size: 12.5px; padding: 6px 12px; border-radius: 7px;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.segmented button:hover { color: var(--fg); }
.segmented button.on {
  background: rgba(124, 140, 255, .18); color: #cfd6ff;
  box-shadow: inset 0 0 0 1px rgba(124, 140, 255, .35);
}
.segmented.small button { padding: 5px 9px; font-size: 11.5px; }

/* Hacker News engagement (points / comments) */
.engage {
  font: 600 11px/1 ui-monospace, monospace;
  color: #f3c877;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(240, 178, 62, .12);
  white-space: nowrap;
}

.refresh {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg-dim); font-size: 16px; cursor: pointer;
  transition: all .15s;
}
.refresh:hover { color: var(--fg); border-color: var(--line-strong); }
.refresh.spin { animation: spin 1s linear infinite; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- tabs ---------------- */
.tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 0 28px; border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, .5);
}
.tabs > button {
  position: relative;
  border: 0; background: transparent; color: var(--fg-dim);
  font-size: 14px; padding: 13px 14px; cursor: pointer;
  transition: color .15s;
}
.tabs > button:hover { color: var(--fg); }
.tabs > button.on { color: var(--fg); font-weight: 600; }
.tabs > button.on::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.tabs .count {
  margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 20px;
  background: rgba(124, 140, 255, .2); color: #c3caff;
}
.tabs-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fg-mute); box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.dot.ok { background: #35d6a0; box-shadow: 0 0 8px rgba(53, 214, 160, .7); }
.dot.busy { background: #f0b23e; box-shadow: 0 0 8px rgba(240, 178, 62, .7); }
.dot.bad { background: #ff5c5c; box-shadow: 0 0 8px rgba(255, 92, 92, .7); }
.dot.stale { background: #f0b23e; box-shadow: 0 0 8px rgba(240, 178, 62, .9); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.status-text { font-size: 11.5px; color: var(--fg-mute); }
.data-time {
  font-size: 11px; color: var(--fg-mute);
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}
.mini-refresh {
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg-dim); border-radius: 6px;
  width: 24px; height: 24px; font-size: 12px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: all .15s;
}
.mini-refresh:hover { color: var(--fg); border-color: var(--line-strong); }
.mini-refresh.spin { animation: spin 1s linear infinite; color: var(--accent); }

/* ---------------- filters ---------------- */
.filters {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 28px 6px;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg-dim); font-size: 12.5px;
  padding: 5px 11px; border-radius: 20px; cursor: pointer;
  transition: all .14s;
}
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip.on {
  background: rgba(124, 140, 255, .16);
  border-color: rgba(124, 140, 255, .5);
  color: #d3d9ff;
}
.chip-count {
  margin-left: 5px; font-size: 10px; opacity: .55;
  font-variant-numeric: tabular-nums;
}
.ghost {
  border: 1px solid var(--line); background: var(--panel);
  color: var(--fg-dim); font-size: 12px;
  padding: 5px 11px; border-radius: 9px; cursor: pointer;
  transition: all .14s;
}
.ghost:hover { color: var(--fg); border-color: var(--line-strong); }

/* 行业资讯分类色 */
.n-tech     { background: rgba(96, 165, 250, .14); color: #9cc7ff; }
.n-finance  { background: rgba(240, 178, 62, .16); color: #f3c877; }
.n-politics { background: rgba(255, 92, 92, .14);  color: #ff9b9b; }
.n-world    { background: rgba(124, 140, 255, .16);color: #b3bcff; }
.n-society  { background: rgba(53, 214, 190, .13); color: #7fe6d8; }
.n-consumer { background: rgba(255, 122, 89, .16); color: #ffa78c; }
.n-sports   { background: rgba(53, 214, 160, .14); color: #6ee7bd; }
.n-culture  { background: rgba(167, 139, 250, .16);color: #cbb6ff; }
.n-edu      { background: rgba(148, 163, 184, .16);color: #c7d2e0; }

.filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.filter-right select {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--fg-dim); border-radius: 9px; padding: 7px 10px;
  font-size: 12.5px; outline: none; max-width: 220px;
}
.filter-right select:focus { border-color: rgba(124, 140, 255, .5); }
.result-meta { font-size: 12px; color: var(--fg-mute); white-space: nowrap; }
.result-meta.warn { color: #f3c877; cursor: help; }

/* ---------------- layout ---------------- */
main { padding: 12px 28px 40px; }

.grid, .hot-grid, .skeleton-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.board-note {
  margin: 0 0 12px; font-size: 12px; color: var(--fg-mute);
  padding: 8px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}
.board-note b { color: var(--fg-dim); font-weight: 600; }
.board-note .hl-new { color: #6ee7bd; font-weight: 700; }
.board-note .note-sep { margin: 0 6px; color: rgba(255, 255, 255, .18); }

/* 行业资讯：按天分组 */
.group-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 -2px;
  font-size: 12px; color: var(--fg-mute);
}
.group-head .gh-label { font-weight: 650; color: var(--fg-dim); letter-spacing: .3px; }
.group-head .gh-line { flex: 1 1 auto; height: 1px; background: var(--line); }
.group-head .gh-count { font-size: 11px; font-variant-numeric: tabular-nums; }
.news-card .summary { -webkit-line-clamp: 3; }
.foot-sep { margin: 0 8px; color: rgba(255, 255, 255, .14); }

/* “只看新增” 开关 */
.switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-dim);
  cursor: pointer; user-select: none; white-space: nowrap;
  padding: 5px 9px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  transition: all .14s;
}
.switch:hover { color: var(--fg); border-color: var(--line-strong); }
.switch input { accent-color: #35d6a0; margin: 0; cursor: pointer; }

/* ---------------- cards ---------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 17px;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
  min-width: 0;
}
.card:hover {
  background: var(--panel-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 600;
  color: var(--fg);
}
.card h3.clickable { cursor: pointer; }
.card h3.clickable:hover { color: #b9c2ff; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.time { font-size: 11.5px; color: var(--fg-mute); white-space: nowrap; }

.tag {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); color: var(--fg-dim);
  white-space: nowrap;
}

.orig {
  margin: 0; font-size: 12px; color: var(--fg-mute);
  font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.summary {
  margin: 0; font-size: 13px; color: var(--fg-dim); line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.055);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.source {
  font-size: 11.5px; color: var(--fg-dim);
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.links { display: flex; gap: 12px; font-size: 11.5px; }

/* category colors */
.c-attack    { background: rgba(255, 92, 92, .14);  color: #ff9b9b; }
.c-defense   { background: rgba(53, 214, 160, .14); color: #6ee7bd; }
.c-alignment { background: rgba(124, 140, 255, .16);color: #b3bcff; }
.c-eval      { background: rgba(240, 178, 62, .14); color: #f3c877; }
.c-incident  { background: rgba(255, 122, 89, .16); color: #ffa78c; }
.c-industry  { background: rgba(96, 165, 250, .14); color: #9cc7ff; }
.c-tip       { background: rgba(167, 139, 250, .16);color: #cbb6ff; }
.c-opinion   { background: rgba(148, 163, 184, .16);color: #c7d2e0; }
.c-ai_news   { background: rgba(45, 212, 191, .13); color: #7fe6d8; }

/* ---------------- hot board ---------------- */
.hot-card {
  flex-direction: row; align-items: flex-start; gap: 14px;
  cursor: default;
}
.hot-card.clickable { cursor: pointer; }
.rank {
  font: 700 26px/1 "Segoe UI", system-ui, sans-serif;
  min-width: 34px; text-align: center;
  background: linear-gradient(180deg, #fff, #8b95b5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 2px;
}
.hot-card:nth-child(1) .rank { background: linear-gradient(180deg, #ffd479, #ff7a59); -webkit-background-clip: text; background-clip: text; }
.hot-card:nth-child(2) .rank { background: linear-gradient(180deg, #e6ecff, #8b95b5); -webkit-background-clip: text; background-clip: text; }
.hot-card:nth-child(3) .rank { background: linear-gradient(180deg, #ffc9a3, #c8794a); -webkit-background-clip: text; background-clip: text; }
.hot-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hot-body h3 { font-size: 15px; }

/* diff badges (NEW / rank movement) */
.badge-new, .badge-delta {
  display: inline-block; vertical-align: 1px;
  font: 700 9.5px/1 ui-monospace, monospace;
  padding: 3px 5px; border-radius: 4px;
  margin-right: 5px;
  letter-spacing: .3px;
}
.badge-new {
  background: rgba(53, 214, 160, .18);
  color: #6ee7bd;
  border: 1px solid rgba(53, 214, 160, .35);
}
.badge-delta.up {
  background: rgba(53, 214, 160, .12); color: #6ee7bd;
  border: 1px solid rgba(53, 214, 160, .25);
}
.badge-delta.down {
  background: rgba(255, 92, 92, .12); color: #ff9b9b;
  border: 1px solid rgba(255, 92, 92, .25);
}
.hot-card.fresh {
  border-color: rgba(53, 214, 160, .3);
  box-shadow: inset 2px 0 0 rgba(53, 214, 160, .55);
}
.srcs {
  margin: 0; font-size: 11.5px; color: var(--fg-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.metrics {
  display: flex; gap: 14px; font-size: 11.5px; color: var(--fg-dim);
  flex-wrap: wrap;
}
.metrics b { color: var(--fg); font-weight: 650; }
.metrics .ago { margin-left: auto; color: var(--fg-mute); }

/* ---------------- daily ---------------- */
.daily { max-width: 1040px; margin: 0 auto; }
.daily-head {
  padding: 18px 20px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,140,255,.12), rgba(53,214,196,.06));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.daily-head h2 { margin: 0 0 6px; font-size: 19px; }
.daily-head p {
  margin: 0; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-mute);
}
.daily-lead {
  font-size: 14px; color: var(--fg-dim); line-height: 1.75;
  padding: 0 4px 8px; margin: 0 0 8px;
}
.daily-section { margin-bottom: 22px; }
.daily-section h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.daily-section .idx {
  font: 600 11px/1 ui-monospace, monospace;
  color: var(--accent); background: rgba(124,140,255,.14);
  padding: 4px 7px; border-radius: 6px;
}
.section-summary { margin: 0 0 10px; font-size: 13px; color: var(--fg-dim); }
.daily-section ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.daily-section li {
  padding: 12px 14px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px;
}
.li-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.li-title { font-size: 14px; font-weight: 550; }
.li-title.clickable { cursor: pointer; }
.li-title.clickable:hover { color: #b9c2ff; }
.li-src { font-size: 11.5px; color: var(--fg-mute); white-space: nowrap; flex-shrink: 0; }
.li-sum {
  margin: 6px 0 0; font-size: 12.5px; color: var(--fg-dim); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------- states ---------------- */
.state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--fg-dim);
}
.state h2 { font-size: 17px; margin: 0 0 8px; color: var(--fg); }
.state p { margin: 0 0 16px; font-size: 13px; }
.state.error h2 { color: #ff9b9b; }

.btn {
  border: 1px solid rgba(124,140,255,.4); background: rgba(124,140,255,.14);
  color: #c9d0ff; padding: 9px 18px; border-radius: 9px;
  font-size: 13px; cursor: pointer; transition: all .15s;
}
.btn:hover { background: rgba(124,140,255,.24); }
.btn:disabled { opacity: .5; cursor: default; }
.more { display: flex; justify-content: center; margin-top: 22px; }

.sk-card {
  height: 168px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border: 1px solid var(--line);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- modal ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 11, .72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 28px;
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative;
  width: min(820px, 100%); max-height: 86vh; overflow-y: auto;
  background: #0e1320; border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 30px 80px -20px #000;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  border: 0; background: transparent; color: var(--fg-mute);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--fg); }
.modal-loading { padding: 40px; text-align: center; color: var(--fg-dim); }
.modal-head h2 { margin: 10px 0 10px; font-size: 20px; line-height: 1.45; }
.modal-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fg-mute); margin: 0 0 16px; }
.modal-latest {
  font-size: 13.5px; line-height: 1.75; color: var(--fg-dim);
  background: var(--panel); border-left: 2px solid var(--accent);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 20px;
}
.modal h4 { font-size: 13px; color: var(--fg-mute); margin: 0 0 10px; font-weight: 600; letter-spacing: .5px; }
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.report-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
}
.report-list a { color: var(--fg); }
.report-list a:hover { color: #b9c2ff; text-decoration: none; }
.r-meta { font-size: 11.5px; color: var(--fg-mute); white-space: nowrap; flex-shrink: 0; }
.modal-link {
  display: inline-block; margin-top: 18px; font-size: 13px;
  padding: 9px 16px; border-radius: 9px;
  background: rgba(124,140,255,.14); border: 1px solid rgba(124,140,255,.35);
}
.modal-link:hover { text-decoration: none; background: rgba(124,140,255,.24); }

/* ---------------- footer ---------------- */
footer {
  padding: 22px 28px 30px; border-top: 1px solid var(--line);
  text-align: center;
}
footer p { margin: 0 0 6px; font-size: 11.5px; color: var(--fg-mute); }
footer .warn { color: #8d7a5a; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .tabs, .filters { padding-left: 16px; padding-right: 16px; }
  main { padding: 10px 16px 32px; }
  .grid, .hot-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .filter-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .tabs { overflow-x: auto; }
  .tabs > button { flex: 0 0 auto; }
  .tabs::-webkit-scrollbar { display: none; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .filter-right select { max-width: 150px; }
}

/* ================= 舆情 ================= */
.opinion { max-width: 1440px; margin: 0 auto; }

.op-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.op-toolbar select {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--fg-dim); border-radius: 9px; padding: 6px 10px;
  font-size: 12.5px; outline: none;
}
.op-scope { margin-left: auto; font-size: 12px; color: var(--fg-mute); }
.op-scope b { color: var(--fg); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.kpi-label { font-size: 11.5px; color: var(--fg-mute); }
.kpi-value { font: 700 26px/1.15 "Segoe UI", system-ui, sans-serif; letter-spacing: .5px; }
.kpi-value.pos { color: #4ade9f; }
.kpi-value.neg { color: #ff7a7a; }
.kpi-value.neu { color: #c7d2e0; }
.kpi-sub { font-size: 11.5px; color: var(--fg-mute); }

.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.op-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; min-width: 0;
}
.op-card.wide { grid-column: span 2; }
.op-card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--fg); }
.op-card h3 .muted { font-weight: 400; font-size: 11px; margin-left: 6px; }

.donut-wrap { position: relative; width: 150px; margin: 4px auto 12px; }
.donut { width: 100%; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.donut-seg { fill: none; stroke-width: 5; transition: stroke-dasharray .45s ease; }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-center b { font-size: 21px; letter-spacing: .5px; }
.donut-center b.pos { color: #4ade9f; }
.donut-center b.neg { color: #ff7a7a; }
.donut-center b.neu { color: #c7d2e0; }
.donut-center span { font-size: 10.5px; color: var(--fg-mute); }
.legend {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 14px;
  font-size: 11.5px; color: var(--fg-dim);
}
.legend i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 5px; vertical-align: 1px;
}

.trend { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 4px; }
.trend-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 118px; width: 100%; }
.bars i { width: 6px; min-height: 1px; border-radius: 2px 2px 0 0; display: block; }
.bars .pos { background: linear-gradient(180deg, #35d6a0, #18805f); }
.bars .neg { background: linear-gradient(180deg, #ff5c5c, #8f2b2b); }
.tick { font-size: 9.5px; color: var(--fg-mute); white-space: nowrap; }

.cat-list, .src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cat-list li { display: grid; grid-template-columns: 52px 1fr 44px 46px; align-items: center; gap: 8px; font-size: 12px; }
.cat-name { color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .055); overflow: hidden; }
.cat-bar i { display: block; height: 100%; border-radius: 4px; }
.cat-bar i.pos { background: #35d6a0; }
.cat-bar i.neg { background: #ff5c5c; }
.cat-bar i.neu { background: #6b7a99; }
.cat-idx { font: 600 11px/1 ui-monospace, monospace; text-align: right; }
.cat-idx.pos { color: #6ee7bd; }
.cat-idx.neg { color: #ff9b9b; }
.cat-idx.neu { color: var(--fg-mute); }
.cat-n { font-size: 10.5px; color: var(--fg-mute); text-align: right; }

.src-list li { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.src-name { color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .055); overflow: hidden; }
.src-bar i { display: block; height: 100%; border-radius: 4px; }
.src-bar i.pos { background: rgba(53, 214, 160, .85); }
.src-bar i.neg { background: rgba(255, 92, 92, .85); }
.src-bar i.neu { background: rgba(107, 122, 153, .85); }
.src-n { font: 600 10.5px/1 ui-monospace, monospace; color: var(--fg-mute); text-align: right; }

.cloud { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; line-height: 1.25; }
.cloud-word { font-weight: 600; color: #b6c2d9; transition: color .15s; cursor: default; }
.cloud-word.pos { color: #6ee7bd; }
.cloud-word.neg { color: #ff9b9b; }
.cloud-word.neu { color: #97a4bd; }
.cloud-word:hover { color: #fff; }

.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.alert-list li { display: flex; gap: 10px; align-items: flex-start; }
.alert-score {
  font: 700 11px/1.7 ui-monospace, monospace; color: #ff9b9b;
  background: rgba(255, 92, 92, .12); padding: 0 6px; border-radius: 5px;
  flex: 0 0 auto;
}
.alert-body { min-width: 0; }
.alert-body a { color: var(--fg); font-size: 13px; line-height: 1.45; }
.alert-body a:hover { color: #b9c2ff; }
.alert-body p {
  margin: 3px 0 2px; font-size: 11.5px; color: var(--fg-mute); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alert-meta { font-size: 10.5px; color: var(--fg-mute); }

.op-note { margin: 14px 2px 0; font-size: 11px; color: var(--fg-mute); line-height: 1.6; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .op-grid { grid-template-columns: 1fr; }
  .op-card.wide { grid-column: span 1; }
}

/* 舆情补充：图表基线 / 说明 / 正面列表 */
.chart-note { margin: 6px 0 0; font-size: 10.5px; color: var(--fg-mute); }
.bars { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 1px; }
.pos-list .alert-score.pos {
  color: #6ee7bd; background: rgba(53, 214, 160, .12);
}
.op-card h3 + .alert-list { margin-top: 2px; }
.op-card .alert-list li { padding-bottom: 2px; }

/* ================= 信号流 ================= */
.signal-card h3 { font-size: 14px; line-height: 1.45; }
.signal-card h3 a { color: var(--fg); }
.signal-card h3 a:hover { color: #b9c2ff; text-decoration: none; }
.signal-card .summary { -webkit-line-clamp: 3; }
.sig-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.sig-tag {
  font-size: 10px; color: #a9b6d0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 4px; padding: 1px 6px;
}
