story-summary: facts migration + recall enhancements

This commit is contained in:
2026-02-02 21:45:01 +08:00
parent d3f772073f
commit fb8ed8037c
8 changed files with 570 additions and 289 deletions

View File

@@ -6,6 +6,101 @@
box-sizing: border-box;
}
/* ═══════════════════════════════════════════════════════════════════════════
Facts (替换 World State)
═══════════════════════════════════════════════════════════════════════════ */
.facts {
flex: 0 0 auto;
}
.facts-list {
max-height: 200px;
overflow-y: auto;
padding-right: 4px;
}
.fact-group {
margin-bottom: 16px;
}
.fact-group:last-child {
margin-bottom: 0;
}
.fact-group-title {
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--txt3);
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 1px solid var(--bdr2);
}
.fact-item {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 10px;
margin-bottom: 6px;
background: var(--bg3);
border: 1px solid var(--bdr2);
border-radius: 6px;
font-size: 0.8125rem;
flex-wrap: wrap;
}
.fact-item:hover {
border-color: var(--bdr);
background: var(--bg2);
}
.fact-subject {
font-weight: 600;
color: var(--txt);
}
.fact-predicate {
color: var(--txt3);
font-size: 0.75rem;
}
.fact-predicate::before {
content: '→';
margin-right: 4px;
}
.fact-object {
color: var(--hl);
font-weight: 500;
}
.fact-trend {
font-size: 0.6875rem;
padding: 2px 8px;
border-radius: 10px;
white-space: nowrap;
}
.fact-since {
font-size: 0.625rem;
color: var(--txt3);
margin-left: auto;
}
@media (max-width: 768px) {
.facts-list {
max-height: 180px;
}
.fact-item {
padding: 6px 8px;
font-size: 0.75rem;
}
}
:root {
--bg: #fafafa;
--bg2: #fff;