742 lines
12 KiB
CSS
742 lines
12 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f5f7fb;
|
|
--bg-strong: #edf2f7;
|
|
--panel: #ffffff;
|
|
--panel-soft: #f9fbff;
|
|
--panel-muted: #eef4ff;
|
|
--text: #1f2a37;
|
|
--muted: #7b8794;
|
|
--line: #e5eaf1;
|
|
--line-strong: #d7e0ea;
|
|
--accent: #3a72d8;
|
|
--accent-dark: #2f5fbb;
|
|
--sidebar: #f7faff;
|
|
--sidebar-strong: #eef4fb;
|
|
--danger-bg: #fff1f2;
|
|
--danger-text: #be123c;
|
|
--shadow: 0 12px 32px rgba(31, 42, 55, 0.08);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
|
|
color: var(--text);
|
|
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
.login-page,
|
|
.shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 32px 16px;
|
|
}
|
|
|
|
.login-card,
|
|
.panel {
|
|
width: min(100%, 420px);
|
|
padding: 32px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--panel);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 10px;
|
|
color: var(--accent);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 28px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.muted {
|
|
margin: 10px 0 24px;
|
|
color: var(--muted);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.alert {
|
|
margin-bottom: 18px;
|
|
padding: 12px 14px;
|
|
border-radius: 8px;
|
|
background: var(--danger-bg);
|
|
color: var(--danger-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
form {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
label {
|
|
color: #344054;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
width: 100%;
|
|
height: 44px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
color: var(--text);
|
|
font: inherit;
|
|
}
|
|
|
|
input:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
|
|
outline: none;
|
|
}
|
|
|
|
.button {
|
|
height: 44px;
|
|
margin-top: 8px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.button:hover {
|
|
background: var(--accent-dark);
|
|
}
|
|
|
|
.app-body {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: 296px minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
padding: 18px;
|
|
background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-strong) 100%);
|
|
border-right: 1px solid var(--line);
|
|
transition: width 180ms ease, padding 180ms ease, transform 180ms ease;
|
|
}
|
|
|
|
.sidebar-top {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.brand-copy {
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
.brand-mark,
|
|
.avatar,
|
|
.message-avatar {
|
|
display: inline-grid;
|
|
place-items: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 11px;
|
|
background: #e4edff;
|
|
color: var(--accent);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.brand-text {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.icon-button {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: #ffffff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.icon-button span {
|
|
width: 16px;
|
|
height: 2px;
|
|
margin-left: 11px;
|
|
border-radius: 999px;
|
|
background: #6b7785;
|
|
}
|
|
|
|
.new-chat,
|
|
.ghost-button,
|
|
.send-button,
|
|
.tool-chip {
|
|
border: 0;
|
|
border-radius: 12px;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.new-chat {
|
|
height: 44px;
|
|
width: 100%;
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.search-form input {
|
|
width: 100%;
|
|
height: 38px;
|
|
padding: 0 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: #ffffff;
|
|
color: var(--text);
|
|
font: inherit;
|
|
}
|
|
|
|
.sidebar-label {
|
|
margin: 0 0 10px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.history-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.history-item {
|
|
display: grid;
|
|
gap: 4px;
|
|
padding: 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
}
|
|
|
|
.history-item.active,
|
|
.history-item:hover {
|
|
border-color: #cfdcf6;
|
|
background: #edf4ff;
|
|
}
|
|
|
|
.history-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.history-meta {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.history-empty {
|
|
padding: 16px 14px;
|
|
border: 1px dashed var(--line-strong);
|
|
border-radius: 14px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.history-empty p,
|
|
.history-empty span {
|
|
margin: 0;
|
|
}
|
|
|
|
.history-empty span {
|
|
display: block;
|
|
margin-top: 6px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.user-card,
|
|
.user-menu-trigger,
|
|
.user-copy {
|
|
display: grid;
|
|
gap: 2px;
|
|
}
|
|
|
|
.user-copy strong {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-copy span {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.chat-shell {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
min-width: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 0 24px;
|
|
min-height: 60px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.topbar-left,
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mobile-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.tabbar {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
height: 60px;
|
|
}
|
|
|
|
.tab {
|
|
height: 60px;
|
|
padding: 0 20px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: 600;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.tab.active {
|
|
color: var(--accent);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
|
|
.avatar.large {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.user-menu {
|
|
position: relative;
|
|
}
|
|
|
|
.user-menu-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 44px;
|
|
padding: 6px 12px;
|
|
border: 1px solid transparent;
|
|
border-radius: 12px;
|
|
background: #ffffff;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.user-menu-trigger:hover,
|
|
.user-menu.open .user-menu-trigger {
|
|
border-color: var(--line);
|
|
background: #f9fbff;
|
|
}
|
|
|
|
.caret {
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-left: 4px;
|
|
border-right: 1.5px solid #7b8794;
|
|
border-bottom: 1.5px solid #7b8794;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.user-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 10px);
|
|
right: 0;
|
|
min-width: 184px;
|
|
padding: 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background: #ffffff;
|
|
box-shadow: var(--shadow);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-6px);
|
|
transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
|
|
}
|
|
|
|
.user-menu.open .user-dropdown {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.user-dropdown-section {
|
|
padding: 10px 12px 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.user-dropdown-label {
|
|
margin: 0 0 6px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.user-dropdown-name {
|
|
display: block;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.user-dropdown-link {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 0 12px;
|
|
border: 0;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.user-dropdown-link:hover {
|
|
background: #f5f8fc;
|
|
}
|
|
|
|
.user-dropdown-form {
|
|
gap: 0;
|
|
}
|
|
|
|
.danger-link {
|
|
color: #c2410c;
|
|
}
|
|
|
|
.chat-stage {
|
|
display: grid;
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
|
min-height: 0;
|
|
background: #ffffff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-scroll {
|
|
min-height: 0;
|
|
padding: 32px min(6vw, 64px) 24px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.conversation-header,
|
|
.empty-state {
|
|
max-width: 920px;
|
|
margin: 0 auto 28px;
|
|
}
|
|
|
|
.conversation-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.conversation-header h1,
|
|
.empty-state h1 {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.conversation-meta {
|
|
padding-top: 10px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.message {
|
|
display: grid;
|
|
grid-template-columns: 44px minmax(0, 1fr);
|
|
gap: 18px;
|
|
max-width: 860px;
|
|
margin: 0 auto 18px;
|
|
}
|
|
|
|
.message.user {
|
|
grid-template-columns: minmax(0, 1fr) 44px;
|
|
}
|
|
|
|
.message.user .message-bubble {
|
|
order: -1;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.message-bubble {
|
|
padding: 18px 20px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 18px;
|
|
background: #f8fbff;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.message-bubble p {
|
|
margin: 0;
|
|
}
|
|
|
|
.user-mark {
|
|
background: #dbe7ff;
|
|
}
|
|
|
|
.composer-wrap {
|
|
padding: 18px 24px 24px;
|
|
border-top: 1px solid var(--line);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.composer {
|
|
max-width: 860px;
|
|
margin: 0 auto;
|
|
padding: 14px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 24px;
|
|
background: #ffffff;
|
|
box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06);
|
|
}
|
|
|
|
.composer textarea {
|
|
width: 100%;
|
|
min-height: 36px;
|
|
max-height: 180px;
|
|
resize: vertical;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
line-height: 1.7;
|
|
outline: none;
|
|
}
|
|
|
|
.composer-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.composer-tools {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tool-chip {
|
|
height: 34px;
|
|
padding: 0 14px;
|
|
background: var(--panel-muted);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.passive-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
border-radius: 999px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.send-button {
|
|
height: 40px;
|
|
min-width: 88px;
|
|
padding: 0 18px;
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.workspace[data-sidebar-state="collapsed"] {
|
|
grid-template-columns: 88px minmax(0, 1fr);
|
|
}
|
|
|
|
.workspace[data-sidebar-state="collapsed"] .brand-text,
|
|
.workspace[data-sidebar-state="collapsed"] .brand-subtitle,
|
|
.workspace[data-sidebar-state="collapsed"] .new-chat,
|
|
.workspace[data-sidebar-state="collapsed"] .search-form,
|
|
.workspace[data-sidebar-state="collapsed"] .sidebar-label,
|
|
.workspace[data-sidebar-state="collapsed"] .history-title,
|
|
.workspace[data-sidebar-state="collapsed"] .history-meta {
|
|
display: none;
|
|
}
|
|
|
|
.workspace[data-sidebar-state="collapsed"] .history-item {
|
|
place-items: center;
|
|
padding: 12px;
|
|
}
|
|
|
|
.workspace[data-sidebar-state="collapsed"] .sidebar {
|
|
padding-left: 12px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.workspace {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
width: 280px;
|
|
z-index: 20;
|
|
box-shadow: var(--shadow);
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.workspace[data-sidebar-state="open"] .sidebar {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.chat-shell {
|
|
padding: 10px;
|
|
}
|
|
|
|
.mobile-toggle {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.topbar,
|
|
.chat-scroll,
|
|
.composer-wrap {
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.topbar {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
min-height: auto;
|
|
padding-top: 12px;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.topbar-right {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.conversation-header {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.tabbar {
|
|
overflow-x: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.user-card {
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-menu-trigger {
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-copy strong,
|
|
.user-copy span {
|
|
max-width: 120px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.message,
|
|
.message.user {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.message-avatar {
|
|
display: none;
|
|
}
|
|
|
|
.composer-actions {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.composer-tools {
|
|
width: 100%;
|
|
}
|
|
|
|
.send-button {
|
|
width: 100%;
|
|
}
|
|
}
|