Files
2026Technology-Competition/src/genesis/server/static/chat.css
T

493 lines
26 KiB
CSS

/* src/genesis/server/static/chat.css
v1 深色重塑 - 深色指挥中心 + 文档工作台混合风格
spec: docs/superpowers/specs/2026-08-30-frontend-beautify-design.md §一 / §二
plan: docs/superpowers/plans/2026-08-30-frontend-beautify.md Task 2
*/
:root {
/* === 颜色 (spec §一) === */
--bg-base: #0B0F17;
--bg-surface: #141A24;
--bg-elevated: #1B2330;
--bg-input: #0F141C;
--border-subtle: rgba(255, 255, 255, 0.08);
--border-strong: rgba(255, 255, 255, 0.14);
--text-primary: #E5EAF0;
--text-secondary: #8B95A7;
--text-muted: #5C6677;
--accent: #5EEAD4;
--accent-soft: rgba(94, 234, 212, 0.15);
--success: #34D399;
--warning: #FBBF24;
--danger: #F87171;
--info: #60A5FA;
/* === 字体 (系统字体栈,spec §一 Q2 决策) === */
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
"Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
"Liberation Mono", monospace;
/* === 间距 (spec §一) === */
--sp-1: 4px; --sp-2: 8px; --sp-3: 12px;
--sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
/* === 圆角 (spec §一) === */
--r-sm: 6px; --r-md: 10px; --r-lg: 14px;
/* === 动效 (spec §一) === */
--ease: cubic-bezier(.2, 0, 0, 1);
--dur: .18s;
/* 输入区几何(单一来源,供消息区对齐) */
--send-size: 40px;
--composer-gap: 10px;
--composer-gutter: calc(var(--send-size) + var(--composer-gap));
}
/* === 全局 === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
font-family: var(--font-ui);
margin: 0; height: 100vh; display: flex; flex-direction: row;
background: var(--bg-base); color: var(--text-primary);
-webkit-font-smoothing: antialiased;
font-size: 14px;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }
/* === 侧边栏 (spec §2.1) === */
#sidebar {
width: 264px; background: var(--bg-surface); color: var(--text-primary);
display: flex; flex-direction: column; flex-shrink: 0;
border-right: 1px solid var(--border-subtle);
transition: width .25s var(--ease);
position: relative;
}
#sidebar.collapsed { width: 56px; }
#sidebar.collapsed #sidebar-toggle { /* 折叠态位置不再切换,按钮统一在侧边栏内下边 */ }
.brand {
display: flex; align-items: center; gap: 12px;
padding: 16px 12px 12px 16px; margin: 0 8px 8px;
border-bottom: 1px solid var(--border-subtle);
min-height: 64px;
}
#sidebar.collapsed .brand { padding: 16px 8px; justify-content: center; gap: 0; }
.brand-logo {
width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
color: var(--bg-base); font-size: 17px; font-weight: 900;
background: var(--accent);
transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.1); box-shadow: 0 0 24px var(--accent-soft); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text-primary); }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 2px; letter-spacing: 0; }
#sidebar.collapsed .brand-name { display: none; }
#sidebar-toggle {
position: absolute; top: auto; bottom: 14px; left: 14px; z-index: 5;
width: 28px; height: 28px; border-radius: 50%;
background: var(--bg-elevated); border: 1px solid var(--border-strong);
color: var(--text-secondary); cursor: pointer; font-size: 14px; line-height: 1;
display: flex; align-items: center; justify-content: center;
transition: all var(--dur) var(--ease);
}
#sidebar-toggle:hover { color: var(--accent); border-color: var(--accent); }
#new-chat {
margin: var(--sp-2) var(--sp-4) var(--sp-3); background: var(--accent); color: var(--bg-base);
border: none; padding: 10px 14px; border-radius: var(--r-md);
cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .01em;
transition: all var(--dur) var(--ease);
display: flex; align-items: center; justify-content: center; gap: 6px;
}
#new-chat:hover { box-shadow: 0 0 24px var(--accent-soft); transform: translateY(-1px); }
#new-chat:active { transform: translateY(0); }
#sidebar.collapsed #new-chat { margin: var(--sp-2) 10px var(--sp-3); padding: 10px 0; }
#new-chat .ic-plus { display: inline-block; font-weight: 900; }
#sidebar.collapsed #new-chat .nc-text { display: none; }
/* 侧边栏分区(项目 / 其他会话) */
.side-section { display: flex; flex-direction: column; min-height: 0; }
#sidebar.collapsed .side-section { display: none; }
.side-head {
display: flex; align-items: center; justify-content: space-between;
margin: var(--sp-3) var(--sp-4) var(--sp-2);
}
.side-title {
font-family: var(--font-mono); font-size: 11px; font-weight: 500;
letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.side-add {
background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
color: var(--text-secondary); cursor: pointer; width: 22px; height: 22px; line-height: 1;
font-size: 15px; display: flex; align-items: center; justify-content: center;
transition: all var(--dur) var(--ease);
}
.side-add:hover { border-color: var(--accent); color: var(--accent); }
#project-tree, #other-session-list { padding: 0 8px 8px; overflow-y: auto; }
#project-tree { flex: 0 1 auto; }
#sec-others { flex: 1; min-height: 0; }
/* 项目分组 */
.proj-group { margin: 2px 0; }
.proj-row {
display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: var(--r-md);
cursor: pointer; transition: all var(--dur) var(--ease); border: 1px solid transparent;
}
.proj-row:hover { background: var(--bg-elevated); }
.proj-group.current .proj-row { background: var(--bg-elevated); border-color: var(--accent); }
.proj-group.has-active .proj-row .proj-name { color: var(--accent); font-weight: 700; }
.proj-caret { font-size: 10px; color: var(--text-muted); width: 12px; flex-shrink: 0; }
.proj-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 13px; color: var(--text-primary); }
.proj-config {
flex-shrink: 0; opacity: 0; transition: opacity .15s ease; background: transparent;
border: none; color: var(--text-muted); cursor: pointer; width: 22px; height: 22px; border-radius: 6px;
font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.proj-row:hover .proj-config { opacity: .8; }
.proj-config:hover { opacity: 1 !important; background: var(--bg-base); color: var(--accent); }
.proj-sessions { padding-left: 14px; }
.sess {
padding: 9px 12px; border-radius: var(--r-md); margin: 2px 0;
cursor: pointer; position: relative; border: 1px solid transparent;
transition: all var(--dur) var(--ease);
display: flex; align-items: center; gap: 6px;
}
.sess:hover { background: var(--bg-elevated); }
.sess:hover::before {
content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
background: var(--accent); border-radius: 0 2px 2px 0;
}
.sess.active { background: var(--bg-elevated); }
.sess.active::before {
content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
background: var(--accent); border-radius: 0 2px 2px 0;
}
.sess .info { flex: 1; min-width: 0; overflow: hidden; }
.sess .name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.sess.active .name { font-weight: 700; }
.sess .meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); }
.sess .del {
flex-shrink: 0; opacity: 0; transition: opacity .15s ease;
background: transparent; border: none; color: var(--text-muted); cursor: pointer;
width: 24px; height: 24px; border-radius: 6px; font-size: 16px; line-height: 1;
display: flex; align-items: center; justify-content: center;
}
.sess:hover .del { opacity: .7; }
.sess .del:hover { opacity: 1 !important; background: var(--danger); color: var(--bg-base); }
.sess .avatar { display: none; }
/* === 主区 + 顶栏 (spec §2.2) === */
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg-base); }
header {
height: 48px; position: sticky; top: 0; z-index: 10;
padding: 0 var(--sp-4); display: flex; align-items: center; gap: 14px;
background: rgba(20, 26, 36, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-subtle);
}
header h1 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--text-primary); }
.proj-switcher { position: relative; }
.ps-current {
display: flex; align-items: center; gap: 8px;
background: transparent; border: 1px solid var(--border-strong);
border-radius: var(--r-md); padding: 7px 12px; cursor: pointer;
font-size: 13px; font-weight: 500; color: var(--text-primary);
transition: all var(--dur) var(--ease);
}
.ps-current:hover { border-color: var(--accent); }
.ps-current .ps-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ps-current .ps-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-current .ps-caret { font-size: 10px; color: var(--text-muted); }
.ps-menu {
position: absolute; bottom: calc(100% + 6px); top: auto; left: 0; min-width: 240px;
background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
box-shadow: 0 8px 32px rgba(0,0,0,.4); padding: 6px; z-index: 20;
display: none;
}
.ps-menu.open { display: block; animation: zoomIn .2s var(--ease); }
.ps-item {
padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; color: var(--text-secondary);
display: flex; align-items: center; gap: 8px; transition: background .15s var(--ease);
}
.ps-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.ps-item.active { background: var(--bg-elevated); color: var(--accent); font-weight: 700; }
.ps-item .ps-check { margin-left: auto; color: var(--accent); font-weight: 900; opacity: 0; }
.ps-item.active .ps-check { opacity: 1; }
.ps-sep { height: 1px; background: var(--border-subtle); margin: 4px 6px; }
.ps-manage { color: var(--accent); font-weight: 600; }
#sid-badge {
margin-left: auto;
background: var(--bg-elevated); color: var(--text-primary);
border: 1px solid var(--border-subtle);
border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 500;
max-width: 32%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
font-family: var(--font-mono);
}
/* === RAG 控制条 (spec §2.2) === */
#rag-bar {
display: flex; align-items: center; gap: 8px;
background: transparent; border: 1px solid var(--border-subtle);
border-radius: 999px; padding: 3px 10px;
font-size: 12px; color: var(--text-secondary);
font-family: var(--font-mono);
}
#rag-bar label.rag-switch {
display: inline-flex; align-items: center; gap: 6px;
cursor: pointer; user-select: none;
}
#rag-bar input[type=checkbox] {
width: 14px; height: 14px; accent-color: var(--accent);
margin: 0;
}
#rag-bar input[type=checkbox]:disabled + span { color: var(--text-muted); cursor: not-allowed; }
#rag-bar .rag-stats { color: var(--text-muted); }
#rag-bar .rag-stats.ready { color: var(--accent); font-weight: 600; }
#rag-bar .rag-stats.zero { color: var(--text-muted); }
#rag-bar button {
background: var(--accent); color: var(--bg-base); border: none;
border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700;
cursor: pointer; transition: all var(--dur) var(--ease);
}
#rag-bar button:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; }
#rag-bar button:hover:not(:disabled) { box-shadow: 0 0 16px var(--accent-soft); }
/* === 聊天区 (spec §2.3) === */
#chat { flex: 1; overflow-y: auto; padding: var(--sp-6) var(--sp-4); max-width: none; width: 100%; margin: 0; }
.msg { display: flex; margin: var(--sp-3) 0; padding-right: var(--composer-gutter); animation: zoomIn .25s var(--ease); position: relative; }
.msg .bubble {
max-width: 100%; padding: 11px 16px; border-radius: var(--r-lg);
white-space: pre-wrap; line-height: 1.65; font-size: 14px; letter-spacing: .01em;
}
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
background: var(--bg-surface);
color: var(--text-primary);
border-bottom-right-radius: 6px;
border-left: 2px solid var(--accent);
padding-left: 18px; /* 抵消左边框占用的空间,避免文字偏移 */
}
.msg.assistant { align-items: flex-start; }
.msg.assistant .bubble {
background: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-bottom-left-radius: 6px;
color: var(--text-primary);
}
.msg.progress .bubble {
background: var(--bg-input); border: 1px dashed var(--accent-soft);
font-size: 13px; color: var(--text-secondary);
font-family: var(--font-mono);
}
.msg.error .bubble {
background: rgba(248, 113, 113, 0.12); border: 1px solid var(--danger); color: var(--danger);
}
.progress-item { display: block; }
.progress-item.ok::before { content: "✔ "; color: var(--success); font-weight: 700; }
.progress-item.warn::before { content: "⚠ "; color: var(--warning); font-weight: 700; }
.actions { margin-top: 8px; }
.actions a {
display: inline-block; margin: 4px 6px 0 0; background: var(--accent); color: var(--bg-base);
padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700;
transition: all var(--dur) var(--ease);
}
.actions a:hover { box-shadow: 0 0 16px var(--accent-soft); transform: translateY(-1px); }
.typing { color: var(--text-muted); font-size: 13px; animation: auraPulse 1.4s ease-in-out infinite; font-family: var(--font-mono); }
/* === 上传条 (spec §2.4) === */
#upload-bar { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: var(--sp-3) var(--sp-6); font-size: 13px; }
#upload-bar-inner { max-width: 880px; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#upload-bar select {
font-size: 13px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
background: var(--bg-input); color: var(--text-primary); cursor: pointer; outline: none;
transition: all var(--dur) var(--ease);
font-family: var(--font-ui);
}
#upload-bar select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.file-pick {
display: inline-block; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
background: var(--bg-input); color: var(--text-secondary); font-size: 13px; font-weight: 500;
cursor: pointer; transition: all var(--dur) var(--ease);
}
.file-pick:hover { border-color: var(--accent); color: var(--accent); }
#upload-btn {
background: transparent; border: 1px solid var(--border-strong); color: var(--text-primary);
border-radius: var(--r-md); padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 600;
transition: all var(--dur) var(--ease);
}
#upload-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-base); }
#upload-status { color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
#proj-hint {
color: var(--warning); font-size: 12px; background: rgba(251,191,36,.1); border: 1px solid var(--warning);
border-left-width: 4px; border-radius: var(--r-sm); padding: 4px 10px;
}
label.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* === 输入区 (spec §2.5) === */
#composer { border-top: none; background: transparent; padding: var(--sp-3) var(--sp-4) var(--sp-4); }
#composer-inner { max-width: none; margin: 0; display: flex; gap: var(--composer-gap); align-items: flex-end; }
#input {
flex: 1; border: 1px solid var(--border-strong); border-radius: var(--r-md);
padding: 11px 14px; font-size: 14px; outline: none; background: var(--bg-input);
transition: all var(--dur) var(--ease); color: var(--text-primary);
font-family: var(--font-ui);
resize: none; min-height: 42px; max-height: 160px; line-height: 1.5; overflow-y: auto;
}
#input:focus { border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 2px var(--accent-soft); }
#input::placeholder { color: var(--text-muted); }
#send {
background: var(--accent); color: var(--bg-base); border: none; border-radius: 50%;
width: var(--send-size); height: var(--send-size); padding: 0; cursor: pointer; flex-shrink: 0;
display: flex; align-items: center; justify-content: center;
transition: all var(--dur) var(--ease);
}
#send svg { display: block; }
#send:hover:not(:disabled) { box-shadow: 0 0 24px var(--accent-soft); transform: translateY(-1px); }
#send:active:not(:disabled) { transform: translateY(0); }
#send:disabled { opacity: .3; cursor: not-allowed; }
/* === 项目抽屉 (spec §2.6) === */
#proj-drawer {
position: fixed; top: 0; right: 0; height: 100vh; width: 460px;
background: var(--bg-surface); border-left: 1px solid var(--border-subtle);
box-shadow: -8px 0 32px rgba(0,0,0,.5);
transform: translateX(100%); transition: transform .3s var(--ease);
z-index: 100; display: flex; flex-direction: column;
}
#proj-drawer.open { transform: translateX(0); }
.drawer-head {
height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 12px;
border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface);
flex-shrink: 0;
}
.drawer-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--text-primary); flex: 1; }
.drawer-close {
background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary);
width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
transition: all var(--dur) var(--ease);
}
.drawer-close:hover { background: var(--danger); border-color: var(--danger); color: var(--bg-base); }
.drawer-body { flex: 1; display: flex; min-height: 0; }
.drawer-list {
width: 38%; border-right: 1px solid var(--border-subtle); overflow-y: auto;
padding: 10px 8px; background: var(--bg-base);
display: flex; flex-direction: column; gap: 2px;
}
.drawer-item {
padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 13px;
color: var(--text-secondary); border: 1px solid transparent;
transition: all var(--dur) var(--ease);
display: flex; align-items: center; gap: 8px; position: relative;
}
.drawer-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.drawer-item.active {
background: var(--bg-elevated); color: var(--text-primary); font-weight: 700;
}
.drawer-item.active::before {
content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
background: var(--accent); border-radius: 0 2px 2px 0;
}
.drawer-item .di-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-item .di-new { color: var(--accent); }
.drawer-item.di-create {
border: 1px dashed var(--border-strong); background: transparent;
color: var(--accent); font-weight: 700; justify-content: center; gap: 4px;
}
.drawer-item.di-create:hover { background: var(--accent-soft); border-color: var(--accent); }
.drawer-form { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 10px; }
.drawer-form label {
font-family: var(--font-mono);
font-size: 11px; font-weight: 500; color: var(--text-muted);
text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; display: block;
}
.drawer-form input {
width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
font-size: 13px; color: var(--text-primary); background: var(--bg-input);
transition: all var(--dur) var(--ease);
font-family: var(--font-ui);
}
.drawer-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.drawer-form input:read-only { background: var(--bg-base); color: var(--text-muted); }
.drawer-form .field { display: flex; flex-direction: column; }
.drawer-form .drawer-hint { margin: 0 0 6px; }
.drawer-form details.advanced { border: 1px solid var(--border-subtle); border-radius: var(--r-sm); padding: 8px 12px; }
.drawer-form details.advanced > summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: .02em; }
.drawer-form details.advanced[open] { padding-bottom: 10px; }
.drawer-form details.advanced .field { margin-top: 8px; }
.drawer-form input.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px rgba(248,113,113,.25) !important; }
.drawer-actions { display: flex; gap: 8px; margin-top: 8px; }
.drawer-actions button { flex: 1; padding: 10px; border: none; border-radius: var(--r-sm); cursor: pointer; font-size: 13px; font-weight: 600; transition: all var(--dur) var(--ease); }
.btn-save { background: var(--accent); color: var(--bg-base); }
.btn-save:hover { box-shadow: 0 0 16px var(--accent-soft); }
.btn-delete { background: transparent; color: var(--danger); border: 1px solid var(--danger) !important; }
.btn-delete:hover { background: var(--danger); color: var(--bg-base); }
.drawer-hint { font-size: 11px; color: var(--text-muted); line-height: 1.5; padding: 8px 0; }
/* === 动效 + 响应式 === */
@keyframes auraPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 860px) {
#sidebar { width: 220px; }
#sidebar.collapsed { width: 48px; }
#sid-badge { max-width: 24%; }
#proj-drawer { width: 100vw; }
}
/* === 顶栏会话名 === */
#session-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--text-primary);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* === 聊天区改为纵向 flex(空态垂直居中) === */
#chat { display: flex; flex-direction: column; }
/* === 空态(豆包式) === */
.empty-state { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
justify-content: center; text-align: center; padding: 32px 16px; gap: 10px; min-height: 0; }
.empty-state .es-logo { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center;
justify-content: center; font-size: 26px; font-weight: 900; color: var(--bg-base);
background: var(--accent); box-shadow: 0 0 32px var(--accent-soft); }
.empty-state .es-title { font-size: 24px; font-weight: 700; margin: 6px 0 0; letter-spacing: -.02em; }
.empty-state .es-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; max-width: 560px; }
.empty-state .suggests { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px;
margin-top: 16px; width: 100%; max-width: 620px; }
.suggest-card { text-align: left; padding: 12px 16px; border-radius: var(--r-md);
background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--text-primary);
font-size: 13px; font-family: var(--font-ui); cursor: pointer; transition: all var(--dur) var(--ease); }
.suggest-card:hover { border-color: var(--accent); background: var(--bg-elevated); transform: translateY(-1px); }
.suggest-card::before { content: "\2192 "; color: var(--accent); font-weight: 700; }
/* === 底部工具栏 === */
#composer-toolbar { max-width: none; margin: 10px 0 0; display: flex; align-items: center;
gap: 8px; flex-wrap: wrap; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-md);
color: var(--text-secondary); font-size: 13px; font-weight: 500; font-family: var(--font-ui);
cursor: pointer; transition: all var(--dur) var(--ease); }
.tb-btn:hover { border-color: var(--accent); color: var(--accent); }
.tb-btn .tb-ic { font-size: 14px; line-height: 1; }
.tb-btn .tb-caret { font-size: 10px; color: var(--text-muted); }
.proj-switcher { position: relative; }
#upload-panel { max-width: none; margin: 10px 0 0; }
/* === 会话项「⋯」与重命名菜单 === */
.sess .kebab { flex-shrink: 0; opacity: 0; transition: opacity .15s ease; background: transparent;
border: none; color: var(--text-muted); cursor: pointer; width: 24px; height: 24px; border-radius: 6px;
font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.sess:hover .kebab { opacity: .7; }
.sess .kebab:hover { opacity: 1 !important; background: var(--bg-base); color: var(--accent); }
.rename-input { flex: 1; min-width: 0; background: var(--bg-input); border: 1px solid var(--accent);
border-radius: var(--r-sm); color: var(--text-primary); font-size: 13px; padding: 3px 6px;
font-family: var(--font-ui); outline: none; }
.sess-menu { position: fixed; z-index: 120; background: var(--bg-surface); border: 1px solid var(--border-strong);
border-radius: var(--r-md); box-shadow: 0 8px 32px rgba(0,0,0,.5); padding: 4px; min-width: 140px; }
.sess-menu .sm-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px;
background: transparent; border: none; border-radius: var(--r-sm); color: var(--text-secondary);
font-size: 13px; font-family: var(--font-ui); cursor: pointer; text-align: left; }
.sess-menu .sm-item:hover { background: var(--bg-elevated); color: var(--accent); }
.sess-menu .sm-ic { color: var(--accent); }
@media (max-width: 640px) { .empty-state .suggests { grid-template-columns: 1fr; } }