/* ============================================================ 全局样式与设计令牌(moduleId: web-styles, 可重生 ✅) 对应 plan.md §6.0 设计系统:中性浅底 + 单一工业橙 + 低海拔阴影 ============================================================ */ :root { --bg: #FAFAF8; /* 全局中性浅底 */ --panel: #F4F3EE; /* 侧面板底色 */ --card: #FFFFFF; /* 卡片纯白 */ --text: #1F1E1B; /* 主文本 */ --muted: #8A8778; /* 次要文本 */ --faint: #B7B4A8; /* 弱文本 */ --border: #ECEAE3; /* 极浅边框 */ --accent: #F97316; /* 唯一强调色:工业橙 */ --accent-soft: #FFF1E7; /* 强调浅底 */ --accent-deep: #EA580C; /* 强调按压态 */ --ok: #4C9A6A; --ok-soft: #E4F2E9; /* 语义绿 */ --warn: #C9930A; --warn-soft: #FBF3D9; /* 语义黄 */ --bad: #D25353; --bad-soft: #FBE9E9; /* 语义红 */ --shadow: 0 1px 3px rgba(31,30,27,.06), 0 4px 16px rgba(31,30,27,.04); /* 低海拔阴影 */ } /* 全局基础 */ * { box-sizing: border-box; } html, body, #root { margin: 0; height: 100%; } body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.65; font-family: -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #DDDACF; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; } /* ---------- 顶栏 ---------- */ .topbar { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); } .brand-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; } .crumb { color: var(--muted); font-size: 12.5px; } .crumb b { color: var(--text); font-weight: 600; } .top-badge { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; } /* 面板头 + 收起按钮 */ .panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; flex: 0 0 auto; } .panel-head .tl-count { font-weight: 400; color: var(--faint); font-size: 11px; } .fold-btn { margin-left: auto; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 8px; padding: 2px 10px; font-size: 12px; cursor: pointer; font-weight: 500; line-height: 1.4; } .fold-btn:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); } /* 竖向分隔条(可左右拖拽调宽) */ .splitter { width: 12px; flex: 0 0 12px; cursor: col-resize; background: transparent; position: relative; z-index: 4; transition: background .12s; } .splitter::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: rgba(31,30,27,.08); opacity: 0; transition: opacity .14s ease, background .14s ease, width .14s ease; } .splitter:hover::after, body.resizing-col .splitter::after { width: 2px; background: rgba(249,115,22,.42); opacity: 1; } body.resizing-col { cursor: col-resize !important; user-select: none !important; } /* ---------- 应用框架 + 主体四栏 ---------- */ .app-frame { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--bg); } .app-menubar { flex: 0 0 40px; min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--border); color: var(--muted); user-select: none; } .app-menubar-brand { display: flex; flex-direction: column; gap: 0; line-height: 1.15; min-width: 0; margin-left: 2px; } .app-menubar-brand strong { color: var(--text); font-size: 13px; font-weight: 700; } .app-menubar-brand span { color: #8A9794; font-size: 11px; } .app-menubar-spacer { flex: 1 1 auto; min-width: 8px; } .app-menu-icon, .app-menu-item { border: none; background: transparent; color: inherit; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; letter-spacing: 0; } .app-menu-icon { width: 28px; height: 28px; } .app-menu-item { height: 28px; padding: 0 10px; font-size: 12.5px; color: var(--muted); } .app-menu-icon:hover:not(:disabled), .app-menu-item:hover { background: rgba(255,255,255,.85); color: var(--text); } .app-menu-icon:disabled { opacity: .45; cursor: default; } .shell { display: flex; flex: 1 1 auto; min-height: 0; height: auto; } /* ---------- Codex 式左侧工作区 ---------- */ .workspace-sidebar { width: 100%; height: 100%; min-width: 0; min-height: 0; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; color: var(--text); } .workspace-sidebar button { font: inherit; letter-spacing: 0; } .sidebar-content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; } .sidebar-brand { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px 13px 18px; } .sidebar-collapse-btn { margin-left: -6px; } .sidebar-brand-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; } .sidebar-brand-copy strong { font-size: 17px; font-weight: 760; color: var(--text); } .sidebar-brand-copy span { color: var(--muted); font-size: 11.5px; } .sidebar-icon-btn, .sidebar-mini-btn { flex: 0 0 auto; border: none; background: transparent; color: var(--muted); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .sidebar-icon-btn { width: 30px; height: 30px; } .sidebar-mini-btn { width: 24px; height: 24px; } .sidebar-icon-btn:hover, .sidebar-mini-btn:hover { background: rgba(255,255,255,.72); color: var(--text); } .sidebar-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; padding: 0 10px 8px; } .sidebar-action { width: 100%; height: 32px; border: none; background: transparent; color: var(--text); border-radius: 8px; display: flex; align-items: center; gap: 10px; padding: 0 9px; text-align: left; cursor: pointer; font-size: 13.5px; line-height: 32px; } .sidebar-action:hover { background: rgba(255,255,255,.72); color: var(--text); } .sidebar-action.primary { font-weight: 600; } .sidebar-action svg { flex: 0 0 auto; color: var(--muted); } .sidebar-action span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-section { flex: 0 0 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 10px 2px; } .sidebar-project-section { flex: 0 0 auto; min-height: 0; max-height: none; } .sidebar-project-section.empty { flex: 0 0 auto; min-height: 0; max-height: none; padding-bottom: 0; } .sidebar-project-section.empty .sidebar-list { display: none; } .sidebar-project-section.empty + .sidebar-task-section { margin-top: 0; } .sidebar-task-section { flex: 0 0 auto; min-height: 0; max-height: none; overflow: visible; } .sidebar-file-section { flex: 0 1 180px; min-height: 84px; max-height: 220px; overflow: hidden; } .sidebar-section.is-collapsed, .sidebar-project-section.empty.is-collapsed, .sidebar-task-section.is-collapsed { flex: 0 0 auto; min-height: 0; } .sidebar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 650; } .sidebar-section-toggle { min-width: 0; flex: 1 1 auto; height: 30px; border: none; background: transparent; color: inherit; display: inline-flex; align-items: center; gap: 10px; padding: 0 9px; cursor: pointer; font: inherit; letter-spacing: 0; } .sidebar-section-caret { flex: 0 0 auto; margin: 0 1.5px; color: var(--faint); transition: transform .14s ease; } .sidebar-section:not(.is-collapsed):not(.empty) .sidebar-section-caret { transform: rotate(90deg); } .sidebar-section-toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-section-toggle:hover { color: #5C6C69; } .sidebar-section-actions { min-width: 0; display: inline-flex; align-items: center; gap: 3px; } .sidebar-section-actions .kebab-btn { opacity: 1; color: #9BA8A5; } .sidebar-section-actions .sidebar-mini-btn { color: #9BA8A5; } .sidebar-section-context { min-width: 0; padding: 0 8px 4px 46px; color: #9BA8A5; font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sidebar-section-head small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9BA8A5; font-size: 11.5px; font-weight: 500; } .sidebar-list { min-width: 0; flex: 0 0 auto; overflow: visible; overscroll-behavior: contain; padding-bottom: 2px; } .sidebar-project-section .sidebar-list { max-height: none; } .sidebar-task-section .sidebar-list { flex: 0 0 auto; max-height: none; } @media (max-height: 680px) { .sidebar-brand { padding-top: 12px; padding-bottom: 9px; } .sidebar-actions { padding-bottom: 6px; } .sidebar-project-section, .sidebar-task-section { min-height: 0; } .sidebar-project-section.empty, .sidebar-section.is-collapsed, .sidebar-task-section.is-collapsed { flex-basis: auto; min-height: 0; } .sidebar-file-section { max-height: 160px; } } .sidebar-project, .sidebar-task, .sidebar-file { min-width: 0; width: 100%; display: flex; align-items: center; gap: 9px; border-radius: 9px; color: #40504D; cursor: pointer; position: relative; } .sidebar-project { min-height: 38px; padding: 6px 7px; } .sidebar-task, .sidebar-file { min-height: 33px; padding: 5px 7px; } .sidebar-project:hover, .sidebar-task:hover, .sidebar-file:hover { background: rgba(255,255,255,.62); } .sidebar-project.active, .sidebar-task.active { background: rgba(255,255,255,.82); box-shadow: 0 1px 2px rgba(31,30,27,.04); color: var(--text); } .sidebar-project-icon { flex: 0 0 auto; color: #6B7976; } .sidebar-project-main, .sidebar-task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; } .sidebar-project-main span, .sidebar-task-main span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; } .sidebar-project-main small, .sidebar-task-main small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: 11px; margin-top: 2px; } .sidebar-empty { color: var(--faint); font-size: 13px; padding: 5px 9px 8px 39px; } .sidebar-file .file-kind { background: rgba(255,255,255,.72); } .sidebar-foot { flex: 0 0 auto; margin-top: auto; padding: 9px 10px 10px; border-top: 1px solid rgba(31,30,27,.08); display: flex; align-items: center; justify-content: space-between; gap: 8px; } .sidebar-foot-btn { min-width: 0; height: 31px; border: none; background: transparent; color: var(--muted); border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; cursor: pointer; font-size: 13px; } .sidebar-foot-btn:hover:not(:disabled) { background: rgba(255,255,255,.72); color: var(--text); } .sidebar-foot-btn:disabled { color: var(--faint); cursor: not-allowed; } .sync-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--faint); flex: 0 0 auto; } .sync-dot.ready { border-color: #4C9A6A; background: #4C9A6A; } .workspace-sidebar.collapsed { align-items: center; } .workspace-sidebar.collapsed .sidebar-brand { width: 100%; flex-direction: column; justify-content: flex-start; gap: 7px; padding: 10px 0 8px; } .workspace-sidebar.collapsed .sidebar-brand-copy { display: none; } .workspace-sidebar.collapsed .sidebar-icon-btn, .workspace-sidebar.collapsed .sidebar-mini-btn { width: 38px; height: 38px; } .workspace-sidebar.collapsed .sidebar-collapse-btn { margin-left: 0; } .workspace-sidebar.collapsed .sidebar-content { width: 100%; align-items: center; } .workspace-sidebar.collapsed .sidebar-section { display: none; } .workspace-sidebar.collapsed .sidebar-actions { width: 100%; align-items: center; padding: 4px 0; } .workspace-sidebar.collapsed .sidebar-action { width: 38px; height: 38px; justify-content: center; padding: 0; } .workspace-sidebar.collapsed .sidebar-action span, .workspace-sidebar.collapsed .sidebar-section, .workspace-sidebar.collapsed .sidebar-foot-btn span:not(.sync-dot) { display: none; } .workspace-sidebar.collapsed .sidebar-foot { width: 100%; flex-direction: column; padding: 8px 0 10px; } .workspace-sidebar.collapsed .sidebar-foot-btn { width: 38px; height: 38px; justify-content: center; padding: 0; } /* 导航轨(Codex 式:收起后只留图标;悬停右侧浮出功能名) */ .rail { width: 56px; flex: 0 0 56px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 4px; z-index: 20; background: var(--bg); } .rail button { width: 40px; height: 40px; border: none; background: transparent; border-radius: 10px; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; position: relative; } .rail button:hover { background: var(--panel); color: var(--text); } .rail button.active { background: var(--accent-soft); color: var(--accent-deep); } .rail .spacer { flex: 1; } /* 悬停提示:图标右侧浮层(比原生 title 更快、更清晰) */ .rail button[data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; background: #2A2926; color: #fff; box-shadow: 0 4px 14px rgba(31,30,27,.18); opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 50; } .rail button[data-tip]:hover::after { opacity: 1; } /* 项目管理面板 —— 扁平列表,少卡片感(对标 Codex 侧栏) */ .sessions, .project-panel { background: var(--panel); padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; width: 100%; height: 100%; border-right: 1px solid var(--border); } .proj-scroll { flex: 1; overflow-y: auto; padding: 8px 8px 16px; } .proj-block { margin-bottom: 2px; border-radius: 10px; } .proj-block.active { background: rgba(255,255,255,.65); } .proj-row { display: flex; align-items: center; gap: 2px; padding: 8px 6px; cursor: pointer; border-radius: 10px; } .proj-row:hover { background: rgba(255,255,255,.5); } .proj-block.active > .proj-row { background: transparent; } .proj-row .chev { border: none; background: transparent; color: var(--faint); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px; font-size: 11px; } .proj-row .chev:hover { background: #fff; color: var(--text); } .proj-meta { flex: 1; min-width: 0; } .proj-name { font-size: 13px; font-weight: 650; color: var(--text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .proj-sub { font-size: 11px; color: var(--faint); margin-top: 1px; } .proj-body { padding: 0 4px 8px 10px; } .proj-tabs { display: flex; gap: 2px; margin: 0 0 8px; padding: 3px; background: rgba(0,0,0,.04); border-radius: 10px; } .proj-tabs button { flex: 1; border: none; background: transparent; color: var(--muted); border-radius: 8px; padding: 5px 0; font-size: 12px; cursor: pointer; font-weight: 500; } .proj-tabs button.on { background: var(--card); color: var(--text); font-weight: 650; box-shadow: var(--shadow); } .sec-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 600; padding: 4px 6px 6px; letter-spacing: .3px; } .text-btn { border: none; background: transparent; color: var(--accent-deep); font-size: 12px; cursor: pointer; font-weight: 600; padding: 3px 8px; border-radius: 8px; } .text-btn:hover { background: var(--accent-soft); } .icon-btn { border: none; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; } .icon-btn:hover { background: rgba(255,255,255,.9); color: var(--text); } .icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); } .icon-btn.tiny { width: 22px; height: 22px; flex: 0 0 22px; opacity: 0; transition: opacity .12s; } .sess-item:hover .icon-btn.tiny, .file-item:hover .icon-btn.tiny, .proj-row:hover .icon-btn { opacity: 1; } .proj-row .icon-btn { opacity: 0; transition: opacity .12s; } .icon-btn:disabled { opacity: .2 !important; cursor: not-allowed; } .sess-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; margin-bottom: 1px; } .sess-item:hover { background: rgba(255,255,255,.75); } .sess-item.active { background: #fff; box-shadow: var(--shadow); font-weight: 600; } .sess-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sess-badge { font-size: 10px; color: var(--faint); background: rgba(0,0,0,.04); border-radius: 999px; padding: 1px 7px; flex: 0 0 auto; } .sess-item.active .sess-badge { background: var(--accent-soft); color: var(--accent-deep); } .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; } .dot.run { background: var(--accent); } .dot.done { background: var(--ok); } .dot.wait { background: var(--warn); } .file-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 12.5px; margin-bottom: 1px; } .file-item:hover { background: rgba(255,255,255,.75); } .file-kind { font-size: 10px; background: rgba(0,0,0,.04); border-radius: 999px; padding: 1px 7px; color: var(--muted); flex: 0 0 auto; } .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .proj-empty { font-size: 12px; color: var(--faint); padding: 8px 10px; line-height: 1.45; } .chat-head-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; } .chat-head-sub { font-size: 11px; font-weight: 400; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; } .chat-head-badge { margin-left: auto; flex: 0 0 auto; } .panel-head .icon-btn { margin-left: auto; } .panel-head .fold-btn { margin-left: 0; } /* ---------- 订单管理面板(OR-01:订单池写入前置 P2 确认) ---------- */ .orders-panel { width: 100%; height: 100%; min-width: 0; min-height: 0; background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .order-toolbar { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 10px 8px; } .order-toolbar .btn-primary, .order-toolbar .btn-ghost { flex: 1; padding: 7px 10px; } .order-notice { flex: 0 0 auto; margin: 0 10px 8px; border: 1px solid #FCD9BC; background: var(--accent-soft); color: #7C3D12; border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.45; } .order-confirm { flex: 0 0 auto; margin: 0 10px 8px; background: var(--card); border: 1px solid #FCD9BC; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; } .order-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(170px, .9fr) minmax(180px, 1.1fr); gap: 8px; padding: 0 10px 10px; } .order-list, .order-editor { min-width: 0; min-height: 0; overflow-y: auto; background: rgba(255,255,255,.55); border: 1px solid var(--border); border-radius: 12px; } .order-list { padding: 6px; } .order-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 74px minmax(0, 1fr) 38px; align-items: center; gap: 7px; border: none; background: transparent; color: var(--text); border-radius: 10px; padding: 7px 8px; cursor: pointer; text-align: left; } .order-row:hover { background: rgba(255,255,255,.75); } .order-row.active { background: var(--card); box-shadow: var(--shadow); } .order-status { width: 70px; justify-self: start; border-radius: 999px; padding: 2px 6px; font-size: 10px; line-height: 18px; text-align: center; font-weight: 700; color: var(--muted); background: var(--panel); overflow: hidden; text-overflow: ellipsis; } .order-status.s-confirmed { background: var(--ok-soft); color: var(--ok); } .order-status.s-submitted { background: var(--warn-soft); color: var(--warn); } .order-status.s-cancelled, .order-status.s-completed { background: var(--border); color: var(--faint); } .order-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .order-main b { font-size: 12.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .order-main small { color: var(--faint); font-size: 11px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .order-due { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; } .order-editor { padding: 10px; display: flex; flex-direction: column; gap: 9px; } .editor-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 1px; } .order-editor label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; min-width: 0; } .order-editor input, .order-editor select, .order-editor textarea { width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 12.5px; outline: none; } .order-editor textarea { min-height: 72px; resize: vertical; line-height: 1.45; } .order-editor input:focus, .order-editor select:focus, .order-editor textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .order-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; } .order-check { height: 34px; flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 7px !important; border: 1px solid var(--border); background: var(--card); border-radius: 9px; padding: 0 9px; color: var(--text) !important; } .order-check input { width: 14px; height: 14px; padding: 0; } .order-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; } /* ---------- 主数据面板(MD-01/02/03):复用订单面板骨架 + 树形/引用行 ---------- */ .master-tabs .btn-primary, .master-tabs .btn-ghost { flex: 1; padding: 6px 8px; font-size: 12.5px; } .master-node-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 8px 4px; } .master-node-sub { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 4px 8px 2px; } .master-sub { padding-left: 4px; } .master-ref { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; } .master-ref-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text); line-height: 1.5; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.55); border: 1px solid var(--border); margin: 2px 6px; } .master-ref-row.muted { color: var(--faint); text-decoration: line-through; } .master-ref-row .text-btn { border: none; background: transparent; color: var(--accent-deep); cursor: pointer; font-size: 12px; flex: 0 0 auto; } .order-actions .btn-primary, .order-actions .btn-ghost { flex: 1 1 118px; padding: 7px 10px; } /* ---------- Codex 式主按钮:新建话题 ---------- */ .new-task-wrap { display: flex; gap: 6px; padding: 10px 10px 6px; flex: 0 0 auto; } .new-task-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; background: var(--accent); color: #fff; border-radius: 11px; padding: 8px 12px; font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 2px 8px rgba(249,115,22,.28); } .new-task-btn:hover { background: var(--accent-deep); } .new-proj-btn { flex: 0 0 auto; width: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; } /* ---------- 悬停 ⋯ 菜单(Codex 式条目操作) ---------- */ .kebab { position: relative; flex: 0 0 auto; } .kebab-btn { border: none; background: transparent; color: var(--muted); cursor: pointer; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .12s; } .proj-row:hover .kebab-btn, .sess-item:hover .kebab-btn, .file-item:hover .kebab-btn, .sidebar-project:hover .kebab-btn, .sidebar-task:hover .kebab-btn, .sidebar-file:hover .kebab-btn, .kebab.open .kebab-btn { opacity: 1; } .kebab-btn:hover { background: rgba(255,255,255,.9); color: var(--text); } .kebab-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 132px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(31,30,27,.14); padding: 5px; animation: dlgUp .12s ease-out; } .kebab-item { display: block; width: 100%; text-align: left; border: none; background: transparent; color: var(--text); font-size: 12.5px; padding: 7px 10px; border-radius: 8px; cursor: pointer; } .kebab-item:hover { background: var(--panel); } .kebab-item.danger { color: var(--bad); } .kebab-item.danger:hover { background: var(--bad-soft); } .kebab-item:disabled { opacity: .35; cursor: not-allowed; } /* ---------- 对话面板(宽度由 chat-wrap 内联 style 控制) ---------- */ .chat-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .chat-wrap.chat-fill { width: auto; } .chat { width: 100%; height: 100%; flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; } .chat-log { flex: 1; overflow-y: auto; padding: 26px 48px 4px 22px; } .msg { margin-bottom: 14px; display: flex; gap: 8px; animation: fadeUp .22s ease-out; } @keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } .msg.user { justify-content: flex-end; } .msg-content { max-width: min(760px, 86%); min-width: 0; } .msg.user .msg-content { display: flex; flex-direction: column; align-items: flex-end; } .avatar { width: 24px; height: 24px; border-radius: 8px; flex: 0 0 24px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; } .bubble { max-width: 86%; padding: 9px 13px; white-space: pre-wrap; word-break: break-all; font-size: 13.5px; } .msg.user .bubble { background: var(--accent-soft); color: #7C3D12; border-radius: 16px 16px 4px 16px; } .msg.agent .bubble { background: var(--card); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow); } .bubble details { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 6px; } .bubble summary { cursor: pointer; color: var(--faint); font-size: 11px; user-select: none; } .bubble pre { background: #23221E; color: #C9E8B8; padding: 8px; border-radius: 8px; font-size: 11px; overflow-x: auto; margin: 6px 0 0; } .chat-start { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px 28px 120px; text-align: center; } .chat-start-mark { width: 46px; height: 46px; border-radius: 16px; border: 1px solid var(--border); background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--shadow); } .chat-start h1 { margin: 0; font-size: 25px; line-height: 1.28; font-weight: 660; color: var(--text); } .starter-grid { width: min(860px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .starter-card { min-width: 0; min-height: 112px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 9px; padding: 15px 16px 13px; text-align: left; cursor: pointer; } .starter-card:hover { border-color: #FCD9BC; background: #FFFDFB; transform: translateY(-1px); } .starter-card strong { font-size: 13.5px; line-height: 1.35; font-weight: 650; } .starter-card small { color: var(--muted); font-size: 12px; line-height: 1.35; } .starter-icon { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--starter-icon-border); background: var(--starter-icon-bg); color: var(--starter-icon-color); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; } .starter-icon svg { width: 17px; height: 17px; } .starter-icon.spark { --starter-icon-color: #2F7DB5; --starter-icon-bg: #F0F7FC; --starter-icon-border: #C4DCEC; } .starter-icon.compare { --starter-icon-color: #7658A8; --starter-icon-bg: #F7F3FC; --starter-icon-border: #D9C9EE; } .starter-icon.risk { --starter-icon-color: #B77A00; --starter-icon-bg: #FFF7E8; --starter-icon-border: #F0D59A; } .starter-icon.report { --starter-icon-color: #3F8A63; --starter-icon-bg: #EFF8F3; --starter-icon-border: #BEDDCC; } .chat-node-nav { position: absolute; right: 12px; top: 28px; bottom: 104px; width: 22px; z-index: 25; pointer-events: none; } .chat-node-line { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 2px; transform: translateX(-50%); background: #E5EAE8; border-radius: 999px; } .chat-node { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #F5C69E; background: var(--bg); padding: 0; position: absolute; left: 50%; transform: translate(-50%, -50%); cursor: pointer; pointer-events: auto; } .chat-node.user { border-color: #F5C69E; } .chat-node.active { width: 14px; height: 14px; background: #3B82F6; border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,.12); } .chat-node-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #2A2926; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; line-height: 1.3; box-shadow: 0 8px 24px rgba(31,30,27,.16); opacity: 0; pointer-events: none; transition: opacity .12s ease; } .chat-node:hover .chat-node-tip { opacity: 1; } /* 确认卡 */ .confirm-card { background: var(--card); border: 1px solid #FCD9BC; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; max-width: 86%; } .confirm-title { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; } .power-badge { font-size: 10px; background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 1px 8px; } .confirm-summary { margin: 8px 0; color: var(--muted); font-size: 12.5px; } .confirm-summary li { margin: 2px 0; } .confirm-actions { display: flex; gap: 8px; } .btn-primary { border: none; background: var(--accent); color: #fff; border-radius: 10px; padding: 6px 16px; cursor: pointer; font-size: 13px; } .btn-primary:hover { background: var(--accent-deep); } .btn-primary:disabled { background: #E5E2D8; cursor: not-allowed; } .btn-ghost { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 10px; padding: 6px 16px; cursor: pointer; font-size: 13px; } .btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); } .btn-danger { border: none; background: var(--bad); color: #fff; border-radius: 10px; padding: 6px 16px; cursor: pointer; font-size: 13px; } .btn-danger:hover { background: #B94040; } /* ---------- 应用内对话框(替代原生 prompt/confirm) ---------- */ .dlg-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(31, 30, 27, .28); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; animation: dlgFade .14s ease-out; } @keyframes dlgFade { from { opacity: 0; } to { opacity: 1; } } .dlg-card { width: min(380px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 32px rgba(31,30,27,.14), 0 2px 8px rgba(31,30,27,.06); padding: 20px 20px 16px; animation: dlgUp .16s ease-out; } @keyframes dlgUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } .dlg-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; } .dlg-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; } .dlg-msg { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; } .dlg-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--text); outline: none; margin-bottom: 16px; } .dlg-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); } .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; } /* ---------- 治理控制台(Codex 设置页式覆盖层,§6.10) ---------- */ .gov-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(31,30,27,.30); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; animation: dlgFade .14s ease-out; } .gov-shell { width: min(980px, calc(100vw - 48px)); height: min(640px, calc(100vh - 64px)); background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 16px 48px rgba(31,30,27,.20); display: flex; overflow: hidden; animation: dlgUp .18s ease-out; } .gov-nav { width: 208px; flex: 0 0 208px; background: var(--panel); border-right: 1px solid var(--border); padding: 16px 10px; overflow-y: auto; display: flex; flex-direction: column; } .gov-nav-title { font-size: 14px; font-weight: 700; padding: 0 8px 12px; } .gov-group { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: .5px; padding: 10px 8px 4px; } .gov-nav-item { display: block; width: 100%; text-align: left; border: none; background: transparent; color: var(--muted); font-size: 13px; padding: 7px 10px; border-radius: 9px; cursor: pointer; margin-bottom: 1px; } .gov-nav-item:hover { background: rgba(255,255,255,.7); color: var(--text); } .gov-nav-item.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow); } .gov-nav-foot { margin-top: auto; font-size: 10.5px; color: var(--faint); padding: 12px 8px 0; } .gov-content { flex: 1; min-width: 0; display: flex; flex-direction: column; } .gov-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 10px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 700; flex: 0 0 auto; } .gov-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; } .gov-empty { color: var(--faint); font-size: 13px; padding: 24px 0; text-align: center; line-height: 1.6; } .gov-notice { background: var(--accent-soft); border: 1px solid #FCD9BC; color: #7C3D12; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.5; } .gov-notice code { background: rgba(255,255,255,.6); border-radius: 4px; padding: 0 4px; } .gov-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; } .gov-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .gov-card-title { font-weight: 700; font-size: 13.5px; } .gov-kv { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; } .gov-kv code { background: var(--panel); border-radius: 4px; padding: 0 4px; } .gov-pre { background: #23221E; color: #C9E8B8; padding: 8px; border-radius: 8px; font-size: 11px; overflow-x: auto; margin: 8px 0; } .gov-chain { display: inline-block; border-radius: 999px; padding: 4px 14px; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; background: var(--panel); color: var(--muted); } .gov-chain.ok { background: var(--ok-soft); color: var(--ok); } .gov-chain.bad { background: var(--bad-soft); color: var(--bad); } .gov-table { margin-bottom: 12px; } .gov-table th, .gov-table td { font-size: 12px; padding: 7px 10px; } .gov-hash { font-family: monospace; font-size: 11px; color: var(--faint); } .gov-power { border-radius: 999px; padding: 1px 10px; font-size: 11px; font-weight: 700; } .gov-power.p0 { background: var(--ok-soft); color: var(--ok); } .gov-power.p1 { background: var(--accent-soft); color: var(--accent-deep); } .gov-power.p2 { background: var(--warn-soft); color: var(--warn); } .gov-power.p3 { background: var(--bad-soft); color: var(--bad); } .gov-tests-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; } /* ---------- 命令面板(Ctrl+K,§6.10.5) ---------- */ .palette-hotkey { display: inline-flex; align-items: center; gap: 5px; margin-left: 14px; border: 1px solid var(--border); background: var(--card); color: var(--faint); border-radius: 8px; padding: 3px 9px; font-size: 11px; cursor: pointer; } .palette-hotkey:hover { border-color: var(--accent); color: var(--accent-deep); } .palette { width: min(560px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 48px rgba(31,30,27,.22); overflow: hidden; animation: dlgUp .16s ease-out; } .palette-input { width: 100%; box-sizing: border-box; border: none; outline: none; padding: 15px 18px; font-size: 15px; background: transparent; color: var(--text); border-bottom: 1px solid var(--border); } .palette-input::placeholder { color: var(--faint); } .palette-list { max-height: 320px; overflow-y: auto; padding: 6px; } .palette-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: transparent; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--text); } .palette-item.on { background: var(--accent-soft); } .palette-kind { font-size: 10px; border-radius: 999px; padding: 1px 8px; flex: 0 0 auto; background: var(--panel); color: var(--muted); font-weight: 600; } .palette-item.on .palette-kind { background: #fff; color: var(--accent-deep); } .palette-label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .palette-hint { margin-left: auto; font-size: 11px; color: var(--faint); flex: 0 0 auto; } .palette-foot { border-top: 1px solid var(--border); padding: 8px 16px; font-size: 11px; color: var(--faint); } /* 方案卡组(Explore 沙盒对比) */ .scenario-group { display: flex; flex-direction: column; gap: 8px; max-width: 86%; } .scenario-baseline { font-size: 11px; color: var(--faint); margin-bottom: 2px; } .scenario-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; } .scenario-card.best { border-color: #FCD9BC; background: linear-gradient(180deg, #FFF9F3 0%, #fff 60%); } .scenario-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .scenario-label { font-weight: 700; font-size: 13.5px; } .scenario-badge { font-size: 10px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 1px 8px; font-weight: 600; } .scenario-kpis { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); } .scenario-kpis b { color: var(--text); font-weight: 600; } .scenario-diff { margin-top: 6px; font-size: 11.5px; color: var(--faint); } .scenario-risks { margin: 6px 0 0; padding-left: 16px; font-size: 11.5px; color: var(--bad); } .scenario-card .btn-primary { margin-top: 8px; width: 100%; } /* 证据块(知识出处) */ .evidence-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; max-width: 86%; } .evidence-title { font-size: 11px; color: var(--faint); font-weight: 600; margin-bottom: 6px; } .evidence-hit { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 12.5px; } .evidence-hit:hover { background: var(--panel); } .evidence-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .evidence-score { font-size: 10.5px; color: var(--faint); flex: 0 0 auto; } /* 报告块(预览 + 下载) */ .report-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; max-width: 86%; } .report-head { display: flex; align-items: center; gap: 8px; } .report-title { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .report-head .btn-primary, .report-head .btn-ghost { padding: 4px 12px; font-size: 12px; flex: 0 0 auto; } .report-preview { background: #FCFBF9; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; max-height: 320px; overflow: auto; white-space: pre-wrap; color: var(--text); } /* 快捷指令 + 输入 */ .chips { padding: 6px 14px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .chips-toggle { background: var(--panel); border-style: dashed; color: var(--faint); } .chip { background: var(--card); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 12px; } .chip:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); } .composer-wrap { position: relative; margin: 10px 14px 12px; } .composer-file-input { display: none; } .composer { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: flex-end; gap: 6px; padding: 8px 6px; } .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .composer textarea { flex: 1; border: none; outline: none; font-size: 13.5px; background: transparent; color: var(--text); resize: none; line-height: 1.55; max-height: 132px; overflow-y: auto; font-family: inherit; padding: 3px 2px; min-width: 0; } .composer textarea::placeholder { color: var(--faint); } .composer-tool { width: 32px; height: 32px; flex: 0 0 32px; border: none; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .composer-tool:hover, .composer-tool.active { background: var(--panel); color: var(--accent-deep); } .composer-tool.voice.active { background: var(--accent-soft); color: var(--accent-deep); } .send { width: 32px; height: 32px; border: none; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 32px; } .send:hover { background: var(--accent-deep); } .send:disabled { background: #E5E2D8; cursor: not-allowed; } .composer-add-menu { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(620px, calc(100vw - 68px)); max-width: 100%; background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(31,30,27,.14); padding: 8px; z-index: 45; } .composer-add-title { color: var(--faint); font-size: 12px; padding: 3px 8px 6px; } .composer-add-option { width: 100%; min-height: 42px; border: none; background: transparent; color: var(--text); border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; text-align: left; cursor: pointer; } .composer-add-option:hover { background: var(--panel); } .composer-add-option svg { color: #64736F; flex: 0 0 auto; } .composer-add-option span { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .composer-add-option b { font-size: 13px; font-weight: 650; } .composer-add-option small { color: var(--faint); font-size: 11.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .material-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 7px; } .material-chip { max-width: 240px; min-width: 0; height: 28px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.88); color: var(--muted); border-radius: 999px; padding: 0 5px 0 9px; font-size: 12px; } .material-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .material-chip button { width: 18px; height: 18px; border: none; border-radius: 999px; background: transparent; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .material-chip button:hover { background: var(--panel); color: var(--bad); } .composer-notice { margin: 0 2px 7px; color: var(--muted); font-size: 12px; line-height: 1.35; } /* ---------- 时间线导轨(§4.4,宽度由 timeline-wrap 控制) ---------- */ .timeline-wrap { display: flex; flex-direction: column; min-width: 0; min-height: 0; } .timeline { width: 100%; height: 100%; flex: 1; background: var(--panel); display: flex; flex-direction: column; min-height: 0; min-width: 0; } .tl-body { flex: 1; overflow-y: auto; padding: 0 8px 12px; } .tl-section { font-size: 10px; color: var(--faint); font-weight: 600; letter-spacing: .4px; padding: 8px 6px 4px; } .tl-empty { font-size: 11px; color: var(--faint); padding: 4px 6px 8px; line-height: 1.4; } .tl-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; border: none; background: transparent; border-radius: 8px; padding: 7px 8px 7px 22px; position: relative; text-align: left; margin-bottom: 2px; } button.tl-item { cursor: pointer; } button.tl-item:hover { background: rgba(255,255,255,.75); } .tl-dot { position: absolute; left: 8px; top: 11px; width: 7px; height: 7px; border-radius: 50%; } .tl-dot.cp { background: var(--accent); } .tl-dot.ver { background: var(--ok); } .tl-label { font-size: 12.5px; font-weight: 600; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tl-meta { font-size: 10.5px; color: var(--faint); } /* ---------- 右侧工作区:会话结果 / 订单 / 时间线 ---------- */ .right-workspace { flex: 1 1 auto; min-width: 0; min-height: 0; height: 100%; display: flex; background: var(--bg); border-left: 1px solid var(--border); overflow: hidden; } .right-workspace .orders-panel, .right-workspace .timeline { border-right: none; border-left: none; } .right-rail { width: 52px; flex: 0 0 52px; border-left: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; z-index: 20; } .right-rail button { width: 38px; height: 38px; border: none; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; } .right-rail button:hover { background: var(--panel); color: var(--text); } .right-rail button.active { background: var(--accent-soft); color: var(--accent-deep); } .right-rail button:disabled { opacity: .35; cursor: not-allowed; } .right-rail button[data-tip]::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; background: #2A2926; color: #fff; box-shadow: 0 4px 14px rgba(31,30,27,.18); opacity: 0; pointer-events: none; transition: opacity .12s ease; } .right-rail button[data-tip]:hover::after { opacity: 1; } .result-shell { flex: 1; min-width: 0; min-height: 0; display: flex; } .result-nav { width: 150px; flex: 0 0 150px; border-right: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; min-height: 0; } .result-nav-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; } .result-nav-head small { color: var(--faint); font-size: 10.5px; font-weight: 500; } .result-nav-list { flex: 1; overflow-y: auto; padding: 7px 6px; } .result-nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 7px; border: none; background: transparent; color: var(--text); border-radius: 9px; padding: 6px 7px; text-align: left; cursor: pointer; } .result-nav-item:hover { background: rgba(255,255,255,.7); } .result-nav-item.active { background: var(--card); box-shadow: var(--shadow); } .result-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; background: var(--ok); } .result-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .result-main b, .result-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .result-main b { font-size: 11.5px; line-height: 1.25; } .result-main small { font-size: 10.5px; color: var(--faint); line-height: 1.25; } /* ---------- 视口面板 ---------- */ .vp { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vp-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; } .seg { display: flex; background: var(--panel); border-radius: 10px; padding: 3px; gap: 2px; border: 1px solid var(--border); } .seg .tab { padding: 5px 16px; border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--muted); } .seg .tab.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); } .state-chip { font-size: 11.5px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 3px 11px; cursor: pointer; border: 1px solid #FCD9BC; } .state-chip.passive { background: var(--panel); color: var(--muted); border-color: var(--border); cursor: default; } .kpis { margin-left: auto; display: flex; gap: 8px; } .kpi { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px; text-align: center; box-shadow: var(--shadow); } .kpi .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; } .kpi .l { font-size: 10px; color: var(--faint); } .vp-area { flex: 1; overflow: auto; padding: 4px 16px 16px; position: relative; } .vp-area.pulse { animation: vpPulse .7s ease-out; } @keyframes vpPulse { 0% { box-shadow: inset 0 0 0 3px rgba(249,115,22,.55); } 100% { box-shadow: inset 0 0 0 3px rgba(249,115,22,0); } } .empty { color: var(--faint); text-align: center; padding: 80px 0; font-size: 13px; } /* ---------- 甘特 ---------- */ .gantt { position: relative; background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); padding-bottom: 10px; min-width: fit-content; } .g-axis { position: relative; height: 28px; margin-left: 150px; border-bottom: 1px solid var(--border); } .g-tick { position: absolute; top: 0; font-size: 10px; color: var(--faint); border-left: 1px dashed #F1EFE8; height: 100%; padding: 8px 0 0 4px; font-variant-numeric: tabular-nums; } .g-lane-title { font-weight: 600; padding: 6px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid #F6F5F0; background: #FCFBF9; } .g-row { display: flex; height: 32px; align-items: center; border-top: 1px solid #F8F7F3; } .g-label { width: 150px; flex: 0 0 150px; padding: 0 12px; font-size: 11px; color: var(--muted); } .g-track { position: relative; height: 100%; flex: 1; } .g-bar { position: absolute; top: 5px; height: 22px; border-radius: 5px; font-size: 10px; overflow: hidden; white-space: nowrap; padding: 4px 5px; cursor: default; border-left: 3px solid; font-variant-numeric: tabular-nums; } .g-bar.dim { opacity: .15; } .g-bar.hl-red { outline: 2px solid var(--bad); opacity: 1; } .g-bar.hl-amber { outline: 2px solid var(--warn); opacity: 1; } .g-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--accent); z-index: 5; opacity: .7; } /* ---------- 数据表(热力/看板共用) ---------- */ table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); } table.grid th, table.grid td { border-bottom: 1px solid #F6F5F0; padding: 8px 10px; font-size: 12.5px; text-align: center; font-variant-numeric: tabular-nums; } table.grid th { background: #FCFBF9; color: var(--muted); font-weight: 600; font-size: 11.5px; } table.grid tr:last-child td { border-bottom: none; } .risk { border-radius: 999px; padding: 2px 12px; font-size: 11px; } .risk.r-high { background: var(--bad-soft); color: var(--bad); } .risk.r-mid { background: var(--warn-soft); color: var(--warn); } .risk.r-low { background: var(--ok-soft); color: var(--ok); } .risk.r-none { background: var(--panel); color: var(--faint); }