: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; } .app-shell { display: grid; grid-template-rows: 60px minmax(0, 1fr); height: 100vh; min-height: 0; background: var(--bg); } .workspace { display: grid; grid-template-columns: 296px minmax(0, 1fr) 340px; min-height: 0; height: 100%; overflow: hidden; } .sidebar { display: flex; flex-direction: column; gap: 24px; padding: 18px; min-height: 0; overflow-y: auto; 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; } .sidebar-header { display: flex; align-items: center; gap: 12px; } .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: minmax(0, 1fr); min-width: 0; min-height: 0; padding: 0; } .topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; min-height: 60px; position: relative; z-index: 30; 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; height: 100%; background: #ffffff; overflow: hidden; } .chat-scroll-wrap { position: relative; min-height: 0; height: 100%; } .chat-scroll { height: 100%; min-height: 0; padding: 32px 104px 24px min(6vw, 64px); overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #c4cfdd #f4f7fb; } .chat-scroll::-webkit-scrollbar { width: 12px; } .chat-scroll::-webkit-scrollbar-track { background: #f4f7fb; } .chat-scroll::-webkit-scrollbar-thumb { border: 3px solid #f4f7fb; border-radius: 999px; background: #c4cfdd; } .chat-scroll::-webkit-scrollbar-thumb:hover { background: #a9b8ca; } .hidden { display: none; } .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; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-bubble p, .message-content p { margin: 0; line-height: 1.8; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-content { display: grid; gap: 14px; line-height: 1.8; min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .message-content a { color: var(--accent); font-weight: 700; text-decoration: none; } .message-content a:hover { text-decoration: underline; } .message-bubble.streaming { position: relative; } .message-bubble.streaming::after { content: ""; display: inline-block; width: 8px; height: 18px; margin-left: 6px; border-radius: 999px; background: var(--accent); vertical-align: middle; animation: pulse-caret 0.9s ease-in-out infinite; } .message, .conversation-header { scroll-margin-top: 20px; } .user-mark { background: #dbe7ff; } .node-rail { position: absolute; top: 28px; right: 28px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 28px; pointer-events: none; } .node-rail-line { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, #eef3fa 0%, #d6dfeb 100%); border-radius: 999px; } .node-anchor { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; text-decoration: none; pointer-events: auto; } .node-dot { width: 12px; height: 12px; border: 2px solid #d8e0eb; border-radius: 999px; background: #f5f8fc; transition: transform 140ms ease, background 140ms ease, border-color 140ms ease; } .node-anchor:hover .node-dot { transform: scale(1.08); border-color: #9eb5df; } .node-anchor.active .node-dot { border-color: var(--accent); background: var(--accent); } .node-anchor.latest .node-dot { background: #7f8da3; border-color: #7f8da3; } .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; } .send-button:disabled { background: #a8bee8; cursor: wait; } .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) 340px; } .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; } .workspace[data-sidebar-state="collapsed"] .sidebar-header { justify-content: center; } .workspace[data-sidebar-state="collapsed"] .brand { display: none; } .summary-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; min-width: 0; max-height: 100%; padding: 16px; overflow: auto; border-left: 1px solid var(--line); background: #ffffff; } .summary-section { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); } .summary-heading, .summary-subheading, .workflow-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .summary-heading h2, .summary-subheading h3 { margin: 0; font-size: 16px; } .summary-heading span { color: var(--muted); font-size: 12px; } .upload-dropzone { display: grid; place-items: center; gap: 6px; min-height: 112px; padding: 18px; border: 1px dashed var(--accent); border-radius: 8px; background: #f5f9ff; color: var(--text); cursor: pointer; text-align: center; } .upload-dropzone.dragging { border-color: var(--accent-dark); background: #eaf2ff; } .upload-dropzone span, .upload-status, .attachment-item span, .workflow-card em { color: var(--muted); font-size: 12px; } .upload-status { margin: 0; line-height: 1.5; } .attachment-list, .workflow-card-list { display: grid; gap: 10px; } .attachment-item, .workflow-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff; } .attachment-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .attachment-item strong, .workflow-card strong { display: block; overflow-wrap: anywhere; font-size: 13px; } .attachment-item em, .workflow-status { padding: 3px 8px; border-radius: 999px; background: #eaf2ff; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; } .workflow-card ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .node-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; } .status-running, .status-retrying { color: var(--accent); } .status-success { color: #047857; } .status-failed { color: var(--danger-text); } .panel-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; } .message-bubble table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; table-layout: fixed; } .message-bubble th, .message-bubble td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; } .message-bubble pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .message-bubble code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } @media (max-width: 980px) { .app-body { overflow: auto; } .app-shell { grid-template-rows: 60px auto; height: auto; min-height: 100vh; } .workspace { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; overflow: visible; } .sidebar { position: fixed; inset: 60px 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; } .topbar, .chat-scroll, .composer-wrap { padding-left: 16px; padding-right: 16px; } .topbar { align-items: center; flex-direction: row; min-height: 60px; padding-top: 0; padding-bottom: 0; } .topbar-left { flex: 1 1 auto; overflow: hidden; } .topbar-right { flex: 0 0 auto; width: auto; justify-content: flex-end; } .conversation-header { flex-direction: column; } .chat-stage { min-height: calc(100vh - 60px); height: auto; } .summary-panel { max-height: none; border-left: 0; border-top: 1px solid var(--line); } .chat-scroll { padding-right: 72px; } .node-rail { right: 14px; } } @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%; } .chat-shell { padding: 0; } .chat-stage { min-height: calc(100vh - 60px); height: auto; } .chat-scroll { padding-right: 44px; } .node-rail { right: 8px; gap: 10px; width: 20px; } .node-dot { width: 10px; height: 10px; } } @keyframes pulse-caret { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }