:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif; --bg: #f4f7f9; --sidebar: #202731; --sidebar-soft: #2c3644; --line: #dce4ea; --text: #10202b; --muted: #657385; --brand: #19735e; --brand-strong: #0d5f4e; --assistant: #f0f3f6; --user: #e4f5ee; --danger: #b42318; --shadow: 0 16px 40px rgba(20, 37, 49, 0.08); } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); background: var(--bg); color: var(--text); } button, textarea { font: inherit; } .sidebar { min-height: 100vh; padding: 28px 16px; display: flex; flex-direction: column; gap: 24px; background: var(--sidebar); color: #fff; } .brand { display: flex; gap: 12px; align-items: center; padding: 0 8px; } .brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; } .brand strong { display: block; font-size: 18px; line-height: 1.2; } .brand span, .session-card span { display: block; color: #c4ccd8; font-size: 12px; margin-top: 3px; } .nav { display: grid; gap: 8px; } .nav-item { border: 0; border-radius: 8px; padding: 12px 14px; color: #e9eef5; background: transparent; text-align: left; cursor: pointer; } .nav-item.active, .nav-item:hover { background: var(--sidebar-soft); } .session-card { margin-top: auto; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; display: flex; align-items: center; gap: 10px; } .status-dot { width: 10px; height: 10px; border-radius: 999px; background: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16); flex: 0 0 auto; } .status-dot.ok { background: #12b981; box-shadow: 0 0 0 6px rgba(18, 185, 129, 0.16); } .status-dot.error { background: #ef4444; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.16); } .shell { min-width: 0; padding: 28px 24px 24px; } .topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; } .topbar h1 { margin: 0; font-size: 28px; letter-spacing: 0; } .topbar p { margin: 4px 0 0; color: var(--muted); } .icon-button { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; height: 36px; padding: 0 14px; cursor: pointer; } .workspace { display: grid; grid-template-columns: minmax(580px, 1fr) 360px; gap: 16px; align-items: stretch; } .chat-card, .panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); } .chat-card { min-height: calc(100vh - 118px); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; } .messages { padding: 18px; overflow: auto; scroll-behavior: smooth; } .message-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 16px; } .message-row.user { grid-template-columns: minmax(0, 1fr) 34px; } .avatar { width: 34px; height: 34px; border-radius: 50%; background: #d9f0e9; color: var(--brand-strong); display: grid; place-items: center; font-size: 14px; font-weight: 700; overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .bubble { width: min(100%, 760px); border-radius: 8px; padding: 14px 16px; background: var(--assistant); line-height: 1.7; white-space: pre-wrap; } .message-row.user .bubble { justify-self: end; background: var(--user); } .message-row.user .avatar { grid-column: 2; grid-row: 1; } .message-row.user .bubble { grid-column: 1; grid-row: 1; } .typing { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: #7aa89e; animation: pulse 1s infinite ease-in-out; } .typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; } @keyframes pulse { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } } .table-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; } .table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #f8fafb; border-bottom: 1px solid var(--line); } .table-head strong { font-size: 14px; } .table-head button { border: 1px solid var(--line); background: #fff; color: var(--brand-strong); border-radius: 8px; padding: 6px 10px; cursor: pointer; white-space: nowrap; } .table-wrap { overflow: auto; max-height: 420px; } table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; } th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; word-break: break-word; } th { position: sticky; top: 0; z-index: 1; background: #f8fafb; color: #2e3a46; font-weight: 700; } .composer { margin: 0 18px 18px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; } .composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 115, 94, 0.12); } .composer textarea { width: 100%; min-height: 68px; max-height: 180px; border: 0; outline: 0; resize: vertical; color: var(--text); } .composer-footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; } .send-button { border: 0; border-radius: 8px; min-width: 92px; height: 42px; padding: 0 16px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; } .send-button:disabled { cursor: not-allowed; opacity: 0.66; } .send-icon, .send-text { white-space: nowrap; } .inspector { display: grid; align-content: start; gap: 14px; max-height: calc(100vh - 118px); overflow: auto; } .panel { padding: 16px; box-shadow: none; } .panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .panel h2 { margin: 0; font-size: 18px; } .kv { display: grid; gap: 12px; margin: 0; } .kv div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; word-break: break-all; } .tool-list, .trace-list { display: grid; gap: 8px; } .tool-item, .trace-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; } .tool-item strong, .trace-item strong { display: block; font-size: 14px; } .tool-item span, .trace-item span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; word-break: break-word; } .phase-error strong { color: var(--danger); } @media (max-width: 1120px) { body { grid-template-columns: 1fr; } .sidebar { min-height: auto; flex-direction: row; align-items: center; } .nav { grid-auto-flow: column; margin-left: auto; } .session-card { margin-top: 0; min-width: 190px; } .workspace { grid-template-columns: 1fr; } .inspector { max-height: none; } }