145 lines
3.1 KiB
CSS
145 lines
3.1 KiB
CSS
:root {
|
|||
|
|
--bg0: #0f1c17;
|
||
|
|
--bg1: #163528;
|
||
|
|
--panel: rgba(248, 250, 246, 0.94);
|
||
|
|
--ink: #14231c;
|
||
|
|
--muted: #5c7268;
|
||
|
|
--accent: #1f7a4c;
|
||
|
|
--accent-2: #c4f06a;
|
||
|
|
--line: rgba(20, 35, 28, 0.12);
|
||
|
|
--bot: #e7f2ea;
|
||
|
|
--user: #1f7a4c;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { box-sizing: border-box; }
|
||
|
|
body {
|
||
|
|
margin: 0;
|
||
|
|
min-height: 100vh;
|
||
|
|
font-family: "Noto Sans SC", "DM Sans", sans-serif;
|
||
|
|
color: var(--ink);
|
||
|
|
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));
|
||
|
|
}
|
||
|
|
|
||
|
|
.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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.layout {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1.4fr 0.9fr;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
@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;
|
||
|
|
}
|
||
|
|
.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);
|
||
|
|
}
|
||
|
|
.composer input {
|
||
|
|
flex: 1;
|
||
|
|
border: 1px solid var(--line);
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 12px 14px;
|
||
|
|
font: inherit;
|
||
|
|
}
|
||
|
|
.composer button, .ghost {
|
||
|
|
border: 0;
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 12px 16px;
|
||
|
|
font: inherit;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
background: var(--accent);
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
.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;
|
||
|
|
}
|