:root { font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #1f2d2a; background: #f2f5f4; font-synthesis: none; text-rendering: optimizeLegibility; } * { box-sizing: border-box; } body { margin: 0; min-width: 1180px; } button, input, textarea { font: inherit; } .login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 36px 18px; background: radial-gradient(circle at 18% 18%, rgba(178, 218, 204, 0.2), transparent 31%), radial-gradient(circle at 86% 83%, rgba(204, 225, 216, 0.18), transparent 26%), #f5f7f6; } .login-hero { width: min(1544px, 100%); min-height: min(886px, calc(100vh - 84px)); display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(440px, 1fr); overflow: hidden; border: 1px solid rgba(26, 79, 66, 0.08); border-radius: 26px; background: #f9fbfa; box-shadow: 0 16px 48px rgba(25, 56, 48, 0.09), 0 2px 8px rgba(25, 56, 48, 0.04); } .login-hero-main { position: relative; min-width: 0; overflow: hidden; padding: clamp(34px, 3vw, 48px) clamp(40px, 4vw, 64px); background: linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(238, 247, 243, 0.7)), #f5faf8; color: #102f28; } .login-brand { position: absolute; z-index: 4; top: clamp(34px, 3vw, 48px); left: clamp(40px, 4vw, 64px); display: flex; gap: 14px; align-items: center; } .login-brand-mark { width: 52px; height: 52px; color: #1d8c69; } .login-brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; } .login-brand-copy { display: grid; gap: 3px; color: #12352e; } .login-brand-copy strong { font-size: 20px; line-height: 1.2; font-weight: 760; letter-spacing: 0.02em; } .login-brand-copy small { color: #496b61; font-size: 13px; line-height: 1.3; } .login-brand-content { position: absolute; z-index: 3; top: 50%; left: clamp(72px, 9.5vw, 150px); width: min(690px, calc(100% - 190px)); transform: translateY(-42%); } .login-brand-content h1 { margin: 0; color: #102f28; font-size: clamp(31px, 2.25vw, 42px); line-height: 1.42; font-weight: 680; letter-spacing: -0.025em; } .login-brand-content h1 span { color: #238d68; } .login-brand-content > p { max-width: 650px; margin: 22px 0 0; color: #4a6960; font-size: 15px; line-height: 1.9; } .login-highlights { display: flex; justify-content: space-between; gap: 18px; margin-top: 36px; } .login-highlight-item { min-width: 0; display: grid; justify-items: center; gap: 11px; color: #24483e; text-align: center; } .login-highlight-item > span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(32, 139, 103, 0.18); border-radius: 14px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 8px 20px rgba(40, 95, 79, 0.05); color: #208b67; } .login-highlight-item svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; } .login-highlight-item strong { overflow: hidden; color: #27483f; font-size: 13px; font-weight: 580; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; } .login-orbit { position: absolute; z-index: 1; top: 80px; left: 29%; width: min(560px, 58vw); aspect-ratio: 1; border: 1px solid rgba(29, 140, 105, 0.1); border-radius: 50%; } .login-orbit i { position: absolute; top: 12%; right: 18%; width: 13px; height: 6px; border-radius: 6px 2px 6px 2px; background: rgba(39, 151, 117, 0.34); transform: rotate(44deg); } .login-dot-matrix { position: absolute; z-index: 1; top: 30%; left: 33px; width: 70px; height: 74px; opacity: 0.46; background-image: radial-gradient(circle, rgba(38, 151, 115, 0.3) 1.5px, transparent 1.8px); background-size: 18px 18px; } .login-wave { position: absolute; z-index: 1; right: 0; bottom: -12px; left: 0; width: 100%; height: 255px; fill: none; stroke: rgba(40, 151, 117, 0.14); stroke-width: 1; } .login-lotus { position: absolute; z-index: 2; right: -15px; bottom: -25px; width: 40%; max-width: 390px; fill: rgba(245, 251, 248, 0.78); stroke: rgba(35, 141, 104, 0.12); stroke-width: 1.15; } .login-card { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; padding: clamp(42px, 5vw, 78px); border-radius: 26px; background: rgba(255, 255, 255, 0.98); box-shadow: -10px 0 36px rgba(28, 65, 55, 0.055); } .login-card-inner { width: min(410px, 100%); } .login-card-head { margin-bottom: 38px; } .login-card-eyebrow { display: block; margin-bottom: 14px; color: #278b69; font-size: 10px; font-weight: 700; letter-spacing: 0.19em; } .login-card h2 { margin: 0; color: #102f28; font-size: 31px; line-height: 1.3; font-weight: 680; letter-spacing: -0.02em; } .login-card-head p { margin: 11px 0 0; color: #61756f; font-size: 14px; line-height: 1.6; } .login-card .el-form-item { margin-bottom: 25px; } .login-card .el-form-item__label { height: auto; margin-bottom: 9px; padding: 0; color: #203c34; font-size: 13px; font-weight: 650; line-height: 1.4; } .login-card .el-input__wrapper { min-height: 54px; padding: 0 15px; border: 1px solid #dce5e2; border-radius: 10px; background: #fbfcfc; box-shadow: none; transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; } .login-card .el-input__wrapper:hover { border-color: #afc9c0; background: #ffffff; } .login-card .el-input__wrapper.is-focus { border-color: #368f72; background: #ffffff; box-shadow: 0 0 0 3px rgba(32, 139, 103, 0.09); } .login-card .el-input__inner { color: #193a31; font-size: 14px; } .login-card .el-input__inner::placeholder { color: #9baaa5; } .login-input-icon { width: 20px; height: 20px; margin-right: 7px; fill: none; stroke: #849991; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; } .login-submit { height: 52px; margin-top: 6px; border-color: #1d805f; border-radius: 10px; background: linear-gradient(100deg, #237d60, #1c9168); box-shadow: 0 10px 24px rgba(25, 119, 87, 0.18); font-size: 15px; font-weight: 650; letter-spacing: 0.04em; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; } .login-submit:hover, .login-submit:focus { border-color: #176e52; background: linear-gradient(100deg, #1c7257, #17865f); box-shadow: 0 12px 28px rgba(25, 119, 87, 0.24); transform: translateY(-1px); } .login-submit:active { transform: translateY(0); } .login-submit svg { width: 18px; height: 18px; margin-left: 8px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; } .login-security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 23px 0 0; color: #8a9b96; font-size: 12px; } .login-security-note span { width: 6px; height: 6px; border-radius: 50%; background: #7fb19f; box-shadow: 0 0 0 4px rgba(127, 177, 159, 0.12); } .login-copyright { margin: 14px 0 0; color: #86958f; font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; } .brand { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #0f8b6f; color: #ffffff; font-weight: 800; } .login-box h1, .page-head h2 { margin: 0; letter-spacing: 0; } .login-box p, .page-head p { margin: 8px 0 0; color: #667a73; } .full-btn { width: 100%; } .admin-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); } .sidebar { padding: 20px 14px; border-right: 1px solid #dfe8e5; background: #ffffff; } .sidebar-title { padding: 0 10px 18px; color: #0f735d; font-weight: 800; } .sidebar button { width: 100%; height: 40px; margin-bottom: 4px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #40524b; text-align: left; cursor: pointer; } .sidebar button.active { background: #e9f5f1; color: #0f735d; font-weight: 700; } .workspace { min-width: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr); } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #dfe8e5; background: #ffffff; } .topbar div { display: grid; gap: 2px; } .topbar span { color: #70837c; font-size: 12px; } .content { min-width: 0; padding: 24px; overflow: auto; } .page-head { margin-bottom: 18px; } .page-head.inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .page-head.inline .el-input { width: 260px; } .dashboard-date-range { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; } .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .storage-panel { margin-top: 18px; padding: 18px; border: 1px solid #dfe8e5; border-radius: 8px; background: #fff; } .storage-panel-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; } .storage-panel-head h3, .storage-panel-head p { margin: 0 0 6px; } .storage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; } .storage-grid > div { padding: 14px; background: #f6f8f7; border-radius: 8px; } .storage-grid span, .storage-grid strong { display: block; } .storage-grid strong { margin-top: 8px; font-size: 20px; } .cleanup-controls { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .retention-panel { display: grid; grid-template-columns: minmax(260px, 1fr) 180px auto auto; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #dfe8e5; border-radius: 8px; background: #fff; } .retention-panel div span { display: block; margin-top: 4px; color: #667a73; font-size: 12px; } .stat { padding: 18px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .stat span { display: block; color: #667a73; font-size: 13px; } .stat strong { display: block; margin-top: 10px; font-size: 28px; } .inline-form, .model-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; } .model-form { grid-template-columns: repeat(5, minmax(0, 1fr)); } .student-tools { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.9fr); gap: 14px; margin-bottom: 16px; } .student-tool-panel { padding: 16px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .student-tool-panel h3 { margin: 0 0 12px; font-size: 16px; } .tool-help { margin: -4px 0 12px; color: #667a73; font-size: 13px; line-height: 1.6; } .student-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; } .student-form-grid .el-input, .student-form-grid .el-input-number { width: 100%; } .student-form-grid .student-expiry-field { width: 100%; min-width: 0; } .student-status-field { width: 100%; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; background: #ffffff; color: #606266; } .student-status-field > span { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .student-status-field .el-switch { flex: 0 0 auto; } .migration-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; } .migration-overview div, .knowledge-work-panel { padding: 14px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .migration-overview span, .table-subline { display: block; color: #71817b; font-size: 12px; } .migration-overview strong { display: block; margin-top: 7px; color: #223631; font-size: 22px; } .knowledge-work-panel { margin-bottom: 14px; } .knowledge-work-panel h3 { margin: 0 0 12px; font-size: 16px; } .knowledge-create-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } .node-resolve-row { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 12px; margin-bottom: 12px; } .node-resolve-row .el-button { min-width: 170px; } .knowledge-filters { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 0.8fr)); gap: 8px; margin-bottom: 12px; } .status-gap { margin-left: 5px; } .knowledge-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; } .knowledge-detail-head h3, .knowledge-detail-head p { margin: 0; } .knowledge-detail-head p { margin-top: 6px; color: #667a73; } .knowledge-detail-head .el-tag + .el-tag { margin-left: 6px; } .knowledge-meta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; margin: 0 0 16px; } .knowledge-meta dt { color: #667a73; } .knowledge-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; } .manifest-panel { padding: 16px; border: 1px solid #dfe8e5; border-radius: 8px; background: #f7faf9; } .manifest-panel h4 { margin: 0 0 12px; } .manifest-panel p { margin: 8px 0; color: #40524b; line-height: 1.65; } .version-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .source-content { max-height: 420px; overflow: auto; margin: 0; white-space: pre-wrap; color: #34453f; font-family: inherit; font-size: 13px; line-height: 1.75; } @media (max-width: 1180px) { .knowledge-create-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .knowledge-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } } .actions.compact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .student-file-import { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; } .file-input { width: 100%; padding: 10px; border: 1px dashed #b9c9c4; border-radius: 8px; background: #f8fbfa; color: #40524b; } .file-name { overflow: hidden; color: #40524b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .import-result { color: #40524b; font-size: 13px; } .import-failures { display: grid; gap: 4px; margin-top: 8px; color: #b42318; font-size: 12px; } .knowledge-form { display: grid; grid-template-columns: minmax(160px, 1.1fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1.2fr) 100px 150px; gap: 10px; align-items: center; margin-bottom: 16px; } .form-switch-row, .form-actions-inline { display: flex; align-items: center; gap: 10px; } .form-switch-row { height: 32px; color: #40524b; font-size: 13px; } .form-actions-inline { justify-content: flex-end; } .batch-import-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 20px; } .model-config-panel { margin-bottom: 18px; padding: 18px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .quick-model-panel { margin-bottom: 18px; padding: 18px; border: 1px solid #cde7df; border-radius: 8px; background: #f8fcfb; } .quick-model-head { margin-bottom: 12px; } .quick-model-head h3 { margin: 0; font-size: 17px; } .quick-model-head p { margin: 6px 0 0; color: #667a73; } .quick-model-grid { display: grid; grid-template-columns: 180px 240px minmax(280px, 1fr) 130px; gap: 12px; align-items: end; } .model-config-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px 14px; } .quick-model-panel .el-form-item, .model-config-panel .el-form-item { margin-bottom: 12px; } .quick-model-panel .el-select, .quick-model-panel .el-input, .model-config-panel .el-select, .model-config-panel .el-input-number, .model-config-panel .el-input { width: 100%; } .agent-workbench { display: grid; grid-template-columns: minmax(500px, 0.9fr) minmax(520px, 1.1fr); gap: 18px; align-items: start; } .agent-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; } .agent-current-summary { display: flex; align-items: center; gap: 10px; min-width: 0; color: #667a73; font-size: 13px; } .agent-current-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .agent-control-panel { min-width: 0; min-height: 620px; } .agent-config-tabs > .el-tabs__header { margin-bottom: 18px; } .agent-section-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; } .agent-section-intro h3, .agent-section-intro p { margin: 0; } .agent-section-intro h3 { margin-bottom: 5px; font-size: 16px; } .agent-section-intro p, .agent-editor-meta, .agent-preview-head small { color: #667a73; font-size: 12px; line-height: 1.6; } .agent-prompt-editor textarea { height: clamp(300px, calc(100vh - 440px), 420px) !important; min-height: 300px !important; line-height: 1.75; } .agent-editor-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; } .agent-primary-actions { margin-top: 16px; } .agent-advanced-settings { margin-top: 16px; border: 1px solid #e2eae7; border-radius: 8px; padding: 14px; background: #f8faf9; } .agent-subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .agent-subsection-title h4 { margin: 0; color: #263832; font-size: 14px; } .agent-subsection-title span { color: #667a73; font-size: 12px; } .agent-parameter-label { display: inline-flex; align-items: center; gap: 6px; } .agent-parameter-help { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; padding: 0; border: 1px solid #9aaca6; border-radius: 50%; background: #ffffff; color: #60746d; font-size: 11px; font-weight: 700; line-height: 1; cursor: help; } .agent-parameter-help:hover, .agent-parameter-help:focus-visible { border-color: #0f735d; color: #0f735d; outline: none; box-shadow: 0 0 0 2px rgba(15, 115, 93, 0.14); } .agent-trace-wide { grid-column: 1 / -1; height: 420px; } .prompt-history-list { min-height: 240px; max-height: clamp(320px, calc(100vh - 430px), 520px); overflow: auto; padding-right: 4px; } .prompt-history-item { padding: 14px; border: 1px solid #e1e9e6; border-radius: 8px; background: #fff; } .prompt-history-item + .prompt-history-item { margin-top: 10px; } .prompt-history-item.current { border-color: #8dcabb; background: #f3faf7; } .prompt-history-head, .prompt-history-foot, .prompt-history-detail-meta { display: flex; align-items: center; gap: 8px; } .prompt-history-head > span:last-child { margin-left: auto; color: #667a73; font-size: 12px; } .prompt-history-item > p { display: -webkit-box; overflow: hidden; margin: 10px 0; color: #40524b; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .prompt-history-foot { justify-content: space-between; color: #667a73; font-size: 12px; } .prompt-history-detail-meta { flex-wrap: wrap; margin-bottom: 14px; } .prompt-history-detail-meta > span:last-child { margin-left: auto; color: #667a73; font-size: 12px; } .prompt-history-detail pre { max-height: 58vh; overflow: auto; margin: 0; padding: 16px; border: 1px solid #e1e9e6; border-radius: 8px; background: #f7faf9; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace; line-height: 1.7; } .agent-config-panel, .agent-preview-panel, .agent-trace-panel { padding: 18px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .agent-preview-panel { height: clamp(560px, calc(100vh - 170px), 760px); display: flex; flex-direction: column; padding: 0; overflow: hidden; } .agent-trace-panel { height: clamp(560px, calc(100vh - 170px), 760px); display: flex; flex-direction: column; padding: 0; overflow: hidden; } .agent-trace-list { min-height: 0; overflow: auto; padding: 12px; background: #f6f8f7; } .agent-trace-list article { margin-bottom: 10px; padding: 10px; border: 1px solid #dfe8e5; border-radius: 6px; background: #ffffff; } .agent-trace-list pre, .trace-json { overflow: auto; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #40524b; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.6; } .trace-json { max-height: 360px; padding: 12px; border: 1px solid #dfe8e5; border-radius: 6px; background: #f7faf9; } .agent-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; } .agent-config-panel .el-select, .agent-config-panel .el-input-number, .agent-config-panel .el-input { width: 100%; } .debug-knowledge-select { width: 100%; min-width: 0; } .debug-knowledge-select .el-select__wrapper { height: 40px; min-height: 40px; overflow: hidden; } .debug-knowledge-select .el-select__selection { flex-wrap: nowrap; overflow: hidden; } .debug-knowledge-select .el-select__selected-item { min-width: 0; flex-shrink: 1; } .debug-knowledge-popper.el-popper { z-index: 4000 !important; max-width: min(620px, 90vw); background: #fff; opacity: 1; overflow: hidden; } .debug-knowledge-popper .el-select-dropdown, .debug-knowledge-popper .el-scrollbar, .debug-knowledge-popper .el-scrollbar__wrap, .debug-knowledge-popper .el-select-dropdown__list { background: #fff; } .debug-knowledge-popper .el-select-dropdown__wrap { max-height: 320px; overscroll-behavior: contain; } .debug-knowledge-popper .el-select-dropdown__item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .table-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; white-space: nowrap; } .table-row-actions .el-button + .el-button { margin-left: 0; } .table-row-actions .el-button { min-width: 48px; height: 32px; white-space: nowrap; } .admin-pagination { display: flex; justify-content: flex-end; align-items: center; min-height: 48px; padding: 14px 0 2px; overflow-x: auto; } .admin-pagination .el-pagination { flex-wrap: nowrap; white-space: nowrap; } .admin-pagination .el-pager li, .admin-pagination .btn-prev, .admin-pagination .btn-next { min-width: 32px; height: 32px; border-radius: 6px; } .tool-trace-node { border: 1px solid #dfe8e5; border-radius: 8px; background: #fff; overflow: hidden; } .tool-trace-node summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px; list-style: none; } .tool-trace-node summary span { margin-left: auto; color: #667a73; font-size: 12px; } .tool-trace-node h5 { margin: 10px 12px 4px; } .tool-trace-node pre { max-height: 320px; overflow: auto; } .agent-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #e4ece9; background: #ffffff; } .agent-preview-head h3 { margin: 0; font-size: 17px; } .agent-preview-head > div:first-child h3 { margin-bottom: 3px; } .agent-preview-head-actions { display: flex; align-items: center; gap: 10px; min-width: 0; } .agent-preview-head span { overflow: hidden; color: #667a73; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .agent-preview-chat { min-height: 0; flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px; background: #f6f8f7; } .agent-preview-message-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; max-width: 96%; } .agent-preview-message-row.user { align-self: flex-end; grid-template-columns: minmax(0, 1fr) 32px; } .agent-preview-message-row.user .agent-preview-avatar { grid-column: 2; grid-row: 1; background: #0f735d; color: #ffffff; } .agent-preview-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e0ebe7; color: #0f735d; font-size: 12px; font-weight: 700; } .agent-preview-bubble { min-width: 0; padding: 12px 14px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; box-shadow: 0 8px 24px rgba(21, 43, 36, 0.05); } .agent-preview-message-row.user .agent-preview-bubble { grid-column: 1; grid-row: 1; border-color: #cde7df; background: #e9f5f1; } .agent-preview-message-row.thinking .agent-preview-bubble { color: #667a73; } .agent-preview-bubble strong { display: block; margin-bottom: 6px; color: #0f735d; font-size: 12px; } .agent-preview-bubble pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; line-height: 1.75; } .agent-preview-thinking { margin-bottom: 10px; padding: 9px 10px; border-radius: 8px; background: #f3f6f5; color: #5f6f69; } .agent-preview-thinking summary { cursor: pointer; font-size: 12px; font-weight: 600; } .agent-preview-thinking pre { margin-top: 8px; font-size: 13px; } .agent-preview-composer { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px; align-items: end; padding: 14px 18px 16px; border-top: 1px solid #e4ece9; background: #ffffff; } .agent-preview-composer .el-button { height: 54px; } .actions { margin-top: 12px; } .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; } .settings-section { padding: 18px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .settings-section-head h3 { margin: 0; font-size: 17px; } .settings-section-head p { margin: 6px 0 0; color: #667a73; font-size: 13px; line-height: 1.6; } .settings-fields { display: grid; gap: 14px; margin-top: 16px; } .setting-field { display: grid; gap: 7px; } .setting-field span { color: #223631; font-weight: 600; } .setting-field small { color: #667a73; line-height: 1.5; } .setting-field .el-input-number, .setting-field .el-input { width: 100%; } .el-drawer .el-date-editor.el-input { width: 100%; } .record-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 14px; } .record-filter > .el-input { width: 280px; } .record-filter > .el-input-number { width: 140px; } .record-filter > .el-select { width: 150px; } .record-date-range { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; } .record-date-sep { color: #909399; font-size: 13px; display: flex; align-items: center; padding: 0 2px; min-height: 40px; } .record-date-field { width: 210px; height: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dcdfe6; border-radius: 4px; background: #ffffff; color: #606266; } .record-date-field:focus-within { border-color: #409eff; } .record-date-field span { color: #909399; font-size: 13px; white-space: nowrap; } .record-date-field input { min-width: 0; border: 0; outline: none; background: transparent; color: #303133; font-size: 13px; } .record-date-field input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.72; } .record-filter-actions { display: flex; gap: 8px; align-items: center; } .chat-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; } .chat-summary div { padding: 12px; border: 1px solid #dfe8e5; border-radius: 8px; background: #f8fbfa; } .chat-summary span { display: block; font-size: 22px; font-weight: 600; color: #2a6b56; margin-top: 4px; } .chat-summary strong { display: block; margin-top: 6px; overflow: hidden; color: #1f2d2a; text-overflow: ellipsis; white-space: nowrap; } .detail-title { margin: 18px 0 10px; font-size: 16px; } .conversation-list { display: grid; gap: 12px; } .conversation-message { padding: 12px; border: 1px solid #dfe8e5; border-radius: 8px; background: #ffffff; } .conversation-message.user { border-color: #cde7df; background: #f2faf7; } .message-meta, .message-extra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #6b7d77; font-size: 12px; } .message-meta strong { color: #0f735d; } .conversation-message pre, .prompt-preview { margin: 10px 0; padding: 10px; overflow-x: auto; border-radius: 6px; background: #f4f7f6; color: #223631; white-space: pre-wrap; word-break: break-word; font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace; line-height: 1.65; } .ai-log-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; color: #40524b; font-size: 13px; } .audit-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 14px 0; padding: 12px; border: 1px solid #dce8e4; border-radius: 6px; background: #fbfdfc; color: #40524b; font-size: 13px; } .retrieval-chunks { display: grid; gap: 12px; margin: 12px 0; } .retrieval-chunk { padding: 12px; border: 1px solid #dce8e4; border-radius: 6px; background: #fbfdfc; } .chunk-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin-bottom: 8px; color: #203832; } .chunk-head strong { color: #0f735d; } .chunk-head span { color: #60746d; font-size: 13px; } .chunk-title { margin-bottom: 8px; color: #203832; font-weight: 600; line-height: 1.5; } .retrieval-chunk pre { max-height: 260px; margin: 0; padding: 10px; overflow: auto; border-radius: 6px; background: #f4f7f6; color: #263832; white-space: pre-wrap; word-break: break-word; font-family: "SFMono-Regular", Consolas, "PingFang SC", monospace; line-height: 1.65; } .retrieval-chunk a { display: inline-flex; margin-top: 8px; color: #0f735d; text-decoration: none; } .error-text { color: #b42318; } @media (max-width: 1450px) { .agent-workbench { grid-template-columns: minmax(440px, 0.95fr) minmax(460px, 1.05fr); } .agent-trace-panel { grid-column: 1 / -1; height: 420px; } } @media (max-width: 1120px) { .student-tools, .agent-workbench, .settings-grid { grid-template-columns: 1fr; } .audit-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .agent-preview-panel { height: 620px; } .agent-trace-panel { grid-column: auto; } .agent-page-head, .agent-current-summary { align-items: flex-start; } .agent-page-head { flex-direction: column; } } @media (max-width: 860px) { body { min-width: 0; } .agent-current-summary, .prompt-history-head, .prompt-history-foot, .prompt-history-detail-meta { align-items: flex-start; flex-direction: column; } .prompt-history-head > span:last-child, .prompt-history-detail-meta > span:last-child { margin-left: 0; } .login-page { min-height: 100dvh; justify-content: center; padding: 16px; background: radial-gradient(circle at 12% 10%, rgba(178, 218, 204, 0.24), transparent 36%), #f5f7f6; } .login-hero { width: min(100%, 480px); min-height: auto; grid-template-columns: 1fr; border-radius: 22px; } .login-hero-main { display: none; } .login-card { min-height: min(620px, calc(100dvh - 64px)); padding: 42px 28px; border-radius: 22px; box-shadow: none; } .login-card-head { margin-bottom: 34px; } .login-card h2 { font-size: 28px; } .login-card .el-input__wrapper { min-height: 52px; } .login-copyright { margin-top: 12px; text-align: center; } .admin-shell { display: block; } .sidebar { position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #dfe8e5; } .sidebar-title { flex: 0 0 auto; padding: 0 8px 0 0; } .sidebar button { flex: 0 0 auto; width: auto; margin-bottom: 0; white-space: nowrap; } .workspace { display: block; } .topbar { padding: 12px 16px; } .content { padding: 16px; } .page-head.inline { flex-direction: column; align-items: stretch; } .page-head.inline .el-input { width: 100%; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chat-summary { grid-template-columns: 1fr; } .student-form-grid, .knowledge-form, .model-config-grid, .quick-model-grid, .agent-config-grid, .inline-form, .model-form { grid-template-columns: 1fr; } .agent-preview-message-row, .agent-preview-message-row.user { max-width: 100%; } }