/* ========== 主题令牌 ========== */
:root {
  --bg: #fff; --card: #fff; --border: #e5e7eb;
  --fg: #111; --fg-muted: #666;
  --brand: #2563eb; --accent: #10b981;
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --card: #0b1220; --border: #1f2937;
  --fg: #e5e7eb; --fg-muted: #94a3b8;
  --brand: #60a5fa; --accent: #34d399;
}

body { background: var(--bg); color: var(--fg); margin:0; font-family: sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin:0 auto; padding:0 16px; }
.card { background: var(--card); }
.border { border: 1px solid var(--border); }
.rounded { border-radius: 12px; }
.muted { color: var(--fg-muted); }
.btn { padding:6px 12px; border:1px solid var(--border); border-radius:10px; background:var(--card); cursor:pointer; }
.btn:hover { background: var(--bg); }

header.site, footer.site { background: var(--card); border-color: var(--border); }
.nav-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; }
.brand { font-weight:700; color:var(--brand); }
.ver { font-size:12px; margin-left:8px; }
.actions { display:flex; gap:8px; }

/* grid */
.grid { display:grid; gap:16px; }
.grid-4 { grid-template-columns: repeat(1,1fr); }
@media(min-width:768px){ .grid-4{ grid-template-columns:repeat(4,1fr);} }
.feed-grid { display:grid; gap:16px; grid-template-columns:1fr; }
@media(min-width:1024px){ .feed-grid{ grid-template-columns:repeat(2,1fr);} }
@media(min-width:1280px){ .feed-grid{ grid-template-columns:repeat(3,1fr);} }

.stat { padding:16px; }
.stat .label { font-size:12px; color:var(--fg-muted); }
.stat .value { font-size:24px; font-weight:700; }

.news .inner { padding:16px; display:flex; flex-direction:column; gap:8px; }
.news .title { font-weight:700; }
.news .meta { font-size:12px; color:var(--fg-muted); }
.news .summary { font-size:14px; line-height:1.5; }
.news .foot { display:flex; justify-content:space-between; align-items:center; }
.pill { border:1px solid var(--border); border-radius:999px; padding:2px 8px; font-size:12px; }

.center { text-align:center; padding:24px; }
.hidden { display:none; }
.load-more-wrap { text-align:center; padding:24px 0; }

.filter-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.filter-bar input, .filter-bar select { padding:8px; border:1px solid var(--border); border-radius:8px; }

.line-clamp-3 {
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* 轻量标签（来源） */
.badge {
  display:inline-block;
  padding:2px 8px;
  font-size:12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--fg-muted);
  background:transparent;
}

/* 正文内容区域（摘要渲染） */
.prose {
  color:var(--fg);
  line-height:1.7;
  font-size:14px;
}
.prose a { color: var(--brand); }
.prose p { margin: 0 0 0.6em 0; }
