112 lines
5.0 KiB
HTML
112 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
:root {
|
|
--bg-body: #F3F4F6;
|
|
--bg-sidebar: #FFFFFF;
|
|
--bg-card: #FFFFFF;
|
|
--border-color: #E5E7EB;
|
|
--text-primary: #111827;
|
|
--text-secondary: #6B7280;
|
|
--accent: #2563EB; /* 商务蓝 */
|
|
--accent-bg: #EFF6FF;
|
|
}
|
|
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-body); color: var(--text-primary); display: flex; height: 100vh; overflow: hidden; }
|
|
|
|
/* Sidebar */
|
|
.sidebar { width: 280px; background: var(--bg-sidebar); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 20px; }
|
|
.logo { font-weight: 700; font-size: 18px; color: var(--text-primary); margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
|
|
.logo span { background: var(--accent); color: white; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
|
|
.nav-item { padding: 10px 12px; margin-bottom: 4px; border-radius: 6px; color: var(--text-secondary); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px;}
|
|
.nav-item.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
|
|
.nav-item:hover:not(.active) { background: #F9FAFB; }
|
|
|
|
/* Main Content */
|
|
.main { flex: 1; display: flex; flex-direction: column; padding: 0 40px; overflow-y: auto; align-items: center; }
|
|
.chat-container { max-width: 800px; width: 100%; padding-top: 40px; padding-bottom: 100px; }
|
|
|
|
/* User Message */
|
|
.user-msg { background: transparent; padding: 16px; font-size: 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
|
|
|
|
/* AI Message */
|
|
.ai-msg { margin-bottom: 30px; }
|
|
.ai-text { margin-bottom: 20px; line-height: 1.6; color: var(--text-primary); }
|
|
|
|
/* Action Cards (Search/File) */
|
|
.step-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px; /* 较小的圆角 */
|
|
padding: 16px;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* 极轻微的阴影 */
|
|
}
|
|
.icon-box { width: 32px; height: 32px; border-radius: 6px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
|
|
|
|
/* Input Area */
|
|
.input-wrapper { position: fixed; bottom: 30px; width: 100%; max-width: 800px; }
|
|
.input-box {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
.send-btn { width: 32px; height: 32px; background: var(--text-primary); border-radius: 50%; border: none; }
|
|
</style>
|
|
<title>Light Theme Demo</title>
|
|
</head>
|
|
<body>
|
|
<div class="sidebar">
|
|
<div class="logo">AI Agent <span>v5.3</span></div>
|
|
<div class="nav-item active">📁 项目文件</div>
|
|
<div class="nav-item">⚙️ 管理面板</div>
|
|
<div style="margin-top:20px; font-size:12px; color:#9CA3AF; font-weight:600;">TEMP</div>
|
|
<div class="nav-item" style="padding-left: 0;">└ 📄 user_upload</div>
|
|
</div>
|
|
|
|
<div class="main">
|
|
<div class="chat-container">
|
|
<div class="user-msg">
|
|
搜索一下原神目前卡池是什么,写在一个文件里。
|
|
</div>
|
|
|
|
<div class="ai-msg">
|
|
<div class="ai-text">我来帮您搜索原神当前卡池信息并写入文件。</div>
|
|
|
|
<div class="step-card">
|
|
<div class="icon-box">🔍</div>
|
|
<div style="flex:1">搜索完成 <span style="color:var(--text-secondary)">"原神当前卡池 2024年12月"</span></div>
|
|
</div>
|
|
|
|
<div class="step-card">
|
|
<div class="icon-box">🔍</div>
|
|
<div style="flex:1">搜索完成 <span style="color:var(--text-secondary)">"原神 5.3版本卡池"</span></div>
|
|
</div>
|
|
|
|
<div class="step-card">
|
|
<div class="icon-box">📄</div>
|
|
<div style="flex:1">文件创建成功 <span style="font-family:monospace; background:#F3F4F6; padding:2px 6px; border-radius:4px;">genshin_banner.txt</span></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="input-wrapper">
|
|
<div class="input-box">
|
|
<span>输入消息... (Ctrl+Enter 发送)</span>
|
|
<button class="send-btn"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |