:root {
  --bg: #f7f4ef;
  --card: #fffefb;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --accent: #e11d48;
  --accent-soft: #ffe4e6;
  --chip: #f5f5f4;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28,25,23,.06), 0 8px 24px rgba(28,25,23,.04);
  font-family: "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  line-height: 1.55; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.app {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,244,239,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 14px 20px;
}
header.app .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
header.app h1 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
header.app .meta { color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .9rem;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
main { max-width: 1100px; margin: 0 auto; padding: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  background: var(--card); font: inherit; min-width: 160px;
}
.toolbar input { flex: 1; min-width: 200px; }
.layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.list { max-height: calc(100vh - 180px); overflow: auto; }
.item {
  display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit;
}
.item:hover { background: #fafaf9; }
.item.active { background: var(--accent-soft); }
.item .t { font-weight: 600; margin-bottom: 4px; }
.item .s { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; background: var(--chip); border-radius: 999px;
  padding: 2px 8px; font-size: .75rem; color: #44403c;
}
.chip.t-数字游民 { background: #dbeafe; color: #1e40af; }
.chip.t-远程工作 { background: #dcfce7; color: #166534; }
.chip.t-AI信息差 { background: #fae8ff; color: #86198f; }
.chip.t-交叉 { background: #ffedd5; color: #9a3412; }
.detail { padding: 18px 20px; max-height: calc(100vh - 180px); overflow: auto; }
.detail h2 { margin: 0 0 8px; font-size: 1.2rem; }
.detail .sub { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.detail section { margin: 14px 0; }
.detail h3 { margin: 0 0 6px; font-size: .95rem; color: #44403c; }
.detail ul { margin: 0; padding-left: 1.2em; }
.detail li { margin: 3px 0; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.stat { background: var(--chip); border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.empty { color: var(--muted); padding: 28px; text-align: center; }
.md h1, .md h2, .md h3 { margin: 1em 0 .4em; }
.md h1 { font-size: 1.25rem; }
.md h2 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.md h3 { font-size: .95rem; }
.md p { margin: .5em 0; }
.md ul, .md ol { padding-left: 1.3em; }
.md blockquote {
  margin: .6em 0; padding: 6px 12px; border-left: 3px solid var(--accent);
  background: #fff7ed; color: #44403c;
}
.md code { background: #f5f5f4; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.md pre { background: #1c1917; color: #fafaf9; padding: 12px; border-radius: 8px; overflow: auto; }
.md pre code { background: transparent; color: inherit; padding: 0; }
table.runs { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.runs th, table.runs td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.runs th { background: #fafaf9; font-weight: 600; }
.badge { border-radius: 999px; padding: 2px 8px; font-size: .75rem; }
.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.error { background: #fee2e2; color: var(--err); }
.hidden { display: none !important; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px; }
