feat: 用 Ragflow 搭建鲜境方案客服
咨询台接 Ragflow 检索与示例知识库,支持追问、判定、引用和留资。 Co-authored-by: haijd <haijd@163.com>
This commit is contained in:
+50
-119
@@ -1,144 +1,75 @@
|
||||
:root {
|
||||
--bg0: #0f1c17;
|
||||
--bg1: #163528;
|
||||
--panel: rgba(248, 250, 246, 0.94);
|
||||
--bg0: #10211a;
|
||||
--bg1: #1b3b2c;
|
||||
--panel: #f6f8f4;
|
||||
--ink: #14231c;
|
||||
--muted: #5c7268;
|
||||
--accent: #1f7a4c;
|
||||
--accent-2: #c4f06a;
|
||||
--muted: #5d7368;
|
||||
--accent: #1d7a4d;
|
||||
--line: rgba(20, 35, 28, 0.12);
|
||||
--bot: #e7f2ea;
|
||||
--user: #1f7a4c;
|
||||
--bot: #e7f3eb;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
font-family: "Noto Sans SC", "DM Sans", sans-serif;
|
||||
color: var(--ink);
|
||||
font-family: "Noto Sans SC", "DM Sans", sans-serif;
|
||||
background:
|
||||
radial-gradient(1200px 600px at 10% -10%, #2f6b4f 0%, transparent 55%),
|
||||
radial-gradient(900px 500px at 100% 0%, #8fd36a 0%, transparent 45%),
|
||||
linear-gradient(160deg, var(--bg0), var(--bg1));
|
||||
radial-gradient(900px 480px at 0% 0%, #3d7a58 0%, transparent 55%),
|
||||
linear-gradient(165deg, var(--bg0), var(--bg1));
|
||||
}
|
||||
.shell { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
|
||||
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; color: #f4faf6; }
|
||||
.brand { margin: 0; font-family: "DM Sans", sans-serif; letter-spacing: 0.08em; font-size: 13px; color: #c6ef7a; }
|
||||
.top h1 { margin: 4px 0 0; font-size: clamp(1.5rem, 3vw, 2rem); }
|
||||
.status { font-size: 13px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,0.25); }
|
||||
.status.ok { background: #1d7a4d; }
|
||||
.status.bad { background: #8a3b2d; }
|
||||
|
||||
.page { max-width: 1100px; margin: 0 auto; padding: 32px 20px 48px; }
|
||||
.hero { color: #f4faf6; margin-bottom: 22px; }
|
||||
.brand {
|
||||
margin: 0 0 8px;
|
||||
font-family: "DM Sans", sans-serif;
|
||||
letter-spacing: 0.04em;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
color: var(--accent-2);
|
||||
}
|
||||
.hero h1 {
|
||||
margin: 0 0 10px;
|
||||
font-size: clamp(1.6rem, 3vw, 2.2rem);
|
||||
line-height: 1.25;
|
||||
font-weight: 700;
|
||||
}
|
||||
.sub { margin: 0; max-width: 52rem; color: rgba(244, 250, 246, 0.82); }
|
||||
.sub code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
font-size: 0.9em;
|
||||
background: rgba(0,0,0,0.25);
|
||||
padding: 0.1em 0.35em;
|
||||
border-radius: 4px;
|
||||
.tabs { display: flex; gap: 8px; margin: 18px 0; }
|
||||
.tab {
|
||||
border: 0; background: rgba(255,255,255,0.12); color: #f4faf6;
|
||||
border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer;
|
||||
}
|
||||
.tab.active { background: #f6f8f4; color: var(--ink); }
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: 1.4fr 0.9fr;
|
||||
gap: 16px;
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.layout { grid-template-columns: 1fr; }
|
||||
}
|
||||
.pane { display: none; }
|
||||
.pane.active { display: block; }
|
||||
.layout { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 14px; }
|
||||
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
|
||||
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border-radius: 18px;
|
||||
border: 1px solid rgba(255,255,255,0.35);
|
||||
box-shadow: 0 18px 50px rgba(0,0,0,0.22);
|
||||
}
|
||||
|
||||
.chat { display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
|
||||
.log {
|
||||
flex: 1;
|
||||
padding: 18px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.bubble {
|
||||
max-width: 92%;
|
||||
padding: 10px 12px;
|
||||
border-radius: 12px;
|
||||
white-space: pre-wrap;
|
||||
line-height: 1.5;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 16px 40px rgba(0,0,0,0.18);
|
||||
}
|
||||
.chat { display: flex; flex-direction: column; min-height: 560px; }
|
||||
.log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
|
||||
.bubble { max-width: 92%; padding: 10px 12px; border-radius: 12px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
|
||||
.bubble.bot { align-self: flex-start; background: var(--bot); }
|
||||
.bubble.user { align-self: flex-end; background: var(--user); color: #fff; }
|
||||
.bubble.sys { align-self: center; background: transparent; color: var(--muted); font-size: 12px; }
|
||||
|
||||
.composer {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
border-top: 1px solid var(--line);
|
||||
.bubble.user { align-self: flex-end; background: var(--accent); color: white; }
|
||||
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
|
||||
.composer input, .stack input, .stack textarea {
|
||||
width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit;
|
||||
}
|
||||
.composer input {
|
||||
flex: 1;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
padding: 12px 14px;
|
||||
font: inherit;
|
||||
.composer button, .stack button, .ghost {
|
||||
border: 0; border-radius: 10px; padding: 11px 14px; font: inherit; font-weight: 600; cursor: pointer;
|
||||
}
|
||||
.composer button, .ghost {
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
padding: 12px 16px;
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
.composer button, .stack button { background: var(--accent); color: white; }
|
||||
.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
|
||||
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 12px; }
|
||||
.meta, .lede { color: var(--muted); font-size: 13px; }
|
||||
.side, .pad { padding: 16px; }
|
||||
.side h2, .pad h2 { margin: 14px 0 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
|
||||
.side h2:first-child, .pad h2:first-child { margin-top: 0; }
|
||||
pre {
|
||||
margin: 0; padding: 10px; background: #eef5f0; border-radius: 10px;
|
||||
font-size: 12px; overflow: auto; max-height: 180px; white-space: pre-wrap;
|
||||
}
|
||||
.ghost {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--line);
|
||||
padding: 8px 12px;
|
||||
}
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 0 14px 14px;
|
||||
}
|
||||
.meta { color: var(--muted); font-size: 12px; }
|
||||
|
||||
.side { padding: 16px 18px 20px; }
|
||||
.side h2 {
|
||||
margin: 12px 0 8px;
|
||||
font-size: 13px;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted);
|
||||
}
|
||||
.side h2:first-child { margin-top: 0; }
|
||||
.side pre {
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: #eef5f0;
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
overflow: auto;
|
||||
max-height: 220px;
|
||||
.stack { display: grid; gap: 8px; }
|
||||
.lead-list { display: grid; gap: 8px; }
|
||||
.lead {
|
||||
padding: 10px 12px; border-radius: 10px; background: #eef5f0; font-size: 14px;
|
||||
}
|
||||
a { color: var(--accent); }
|
||||
|
||||
Reference in New Issue
Block a user