/* 总览页样式（对应 page-overview.js）
 */

/* ── 页头 ── */
.ov-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.ov-head h2 { font-size: 22px; font-weight: 680; letter-spacing: -.2px; color: var(--ov-ink); }
.ov-head p { color: var(--ov-ink-3); font-size: 13.5px; margin-top: 4px; }
.ov-head-actions { display: flex; gap: 10px; align-items: center; }
.ov-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550; cursor: pointer;
  border: 1px solid var(--ov-line); background: #fff; color: var(--ov-ink-2);
  box-shadow: var(--ov-shadow-sm); font-family: inherit;
  transition: box-shadow .15s, transform .1s, border-color .15s;
}
.ov-btn:hover { box-shadow: var(--ov-shadow-md); }
.ov-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ov-btn.primary {
  background: var(--ov-brand); border-color: var(--ov-brand-600); color: #fff;
  box-shadow: 0 1px 2px rgba(29,78,216,.35), 0 4px 12px -4px rgba(37,99,235,.45);
}
.ov-btn.primary:hover { background: var(--ov-brand-600); }

/* chip */
.ov-chip {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: #F1F5F9; color: var(--ov-ink-3);
}
.ov-chip svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ov-chip.up { background: var(--ov-green-bg); color: var(--ov-green); }
.ov-chip.down { background: #FEF2F2; color: var(--ov-red); }

/* ── Card 通用 ── */
.ov-card {
  background: #fff; border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
  box-shadow: var(--ov-shadow-sm);
}
.ov-card-h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; gap: 16px;
}
.ov-card-t { font-size: 14.5px; font-weight: 620; color: var(--ov-ink); }
.ov-card-s { font-size: 12px; color: var(--ov-ink-4); margin-top: 2px; font-weight: 450; }

/* segmented */
.ov-seg {
  display: flex; background: #F1F5F9; border-radius: 8px; padding: 2px; font-size: 12px;
}
.ov-seg button {
  border: none; background: transparent; font-family: inherit;
  padding: 4px 10px; border-radius: 6px; color: var(--ov-ink-3); cursor: pointer; font-weight: 520;
}
.ov-seg button:hover { color: var(--ov-ink); }
.ov-seg button.on {
  background: #fff; color: var(--ov-ink); font-weight: 580;
  box-shadow: var(--ov-shadow-sm);
}

/* 图例 + 图表 */
.ov-legend { display: flex; gap: 16px; padding: 0 20px 8px; font-size: 12px; color: var(--ov-ink-3); }
.ov-legend i {
  width: 9px; height: 9px; border-radius: 3px; display: inline-block;
  margin-right: 5px; vertical-align: -1px;
}
.ov-chart { padding: 0 8px 16px; }
.ov-chart svg { width: 100%; height: 220px; display: block; }
.ov-trend-svg { display: block; }

/* ── 两栏布局 ── */
.ov-grid2 {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px;
}

/* ── 最近动态（feed） ── */
.ov-feed { padding: 2px 20px 14px; }
.ov-feed-item {
  display: flex; gap: 12px; position: relative; padding: 10px 0;
}
.ov-feed-item:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: -4px;
  width: 1px; background: var(--ov-line-soft);
}
.ov-feed-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 600;
}
.ov-feed-ico.b { background: var(--ov-brand-50); color: var(--ov-brand); }
.ov-feed-ico.g { background: var(--ov-green-bg); color: var(--ov-green); }
.ov-feed-ico.a { background: var(--ov-amber-bg); color: var(--ov-amber); }
.ov-feed-txt { font-size: 13px; color: var(--ov-ink-2); line-height: 1.55; }
.ov-feed-txt b { font-weight: 580; color: var(--ov-ink); }
.ov-feed-time { font-size: 11.5px; color: var(--ov-ink-4); margin-top: 2px; }
