/* ============================================================ 全局样式与设计令牌(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, .ant-app { 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 36px; min-height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 10px 0 8px; background: #F3F2EE; border-bottom: 1px solid var(--border); color: var(--text); user-select: none; z-index: 40; position: relative; } .app-menu-nav { display: flex; align-items: stretch; gap: 0; margin-left: 2px; height: 100%; } .app-menu-group { position: relative; display: flex; align-items: center; height: 100%; } .app-menu-top { border: none; background: transparent; color: var(--text); font-size: 13px; line-height: 1; padding: 0 10px; height: 28px; border-radius: 4px; cursor: default; } .app-menu-group.open .app-menu-top, .app-menu-top:hover { background: rgba(31, 30, 27, 0.08); } .app-menu-dropdown { position: absolute; top: calc(100% - 2px); left: 0; min-width: 220px; padding: 6px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(31, 30, 27, 0.12); z-index: 50; } .app-menu-entry { width: 100%; border: none; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 13px; cursor: pointer; text-align: left; } .app-menu-entry:hover { background: var(--accent-soft); color: var(--accent-deep); } .app-menu-entry kbd { font-family: inherit; font-size: 11px; color: var(--faint); font-weight: 500; } .app-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); } .app-menubar-title { font-size: 12px; color: var(--faint); margin-right: 8px; white-space: nowrap; } .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; } /* 桌面端无边框窗口:整条顶栏可拖;按钮/菜单不可拖 */ html.aps-desktop .app-menubar, .app-menubar.is-desktop { flex: 0 0 36px; min-height: 36px; height: 36px; padding-right: 0; background: #F3F2EE; -webkit-app-region: drag; app-region: drag; } html.aps-desktop .app-menubar button, html.aps-desktop .app-menu-nav, html.aps-desktop .app-menu-group, html.aps-desktop .app-menu-dropdown, html.aps-desktop .app-menubar-title, html.aps-desktop .app-window-controls, .app-menubar.is-desktop button, .app-menubar.is-desktop .app-menu-nav, .app-menubar.is-desktop .app-menu-group, .app-menubar.is-desktop .app-menu-dropdown, .app-menubar.is-desktop .app-menubar-title, .app-menubar.is-desktop .app-window-controls { -webkit-app-region: no-drag; app-region: no-drag; } html.aps-desktop .app-menubar-spacer, .app-menubar.is-desktop .app-menubar-spacer { -webkit-app-region: drag; app-region: drag; flex: 1 1 auto; align-self: stretch; min-width: 48px; min-height: 100%; cursor: default; } .app-window-controls { display: flex !important; align-items: stretch; height: 100%; margin-left: 4px; flex: 0 0 auto; z-index: 60; } .app-win-btn { width: 46px; height: 100%; border: none !important; background: transparent; color: #1F1E1B !important; display: inline-flex !important; align-items: center; justify-content: center; cursor: pointer; border-radius: 0; opacity: 1 !important; } .app-win-btn:hover { background: rgba(31, 30, 27, 0.08); } .app-win-close:hover { background: #E81123 !important; color: #fff !important; } .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; justify-content: flex-start; align-items: stretch; gap: 2px; 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-new-task-wrap { position: relative; z-index: 30; } .new-task-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 28px rgba(31, 30, 27, 0.14); padding: 8px; z-index: 40; } .new-task-menu-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; background: var(--bg, #FAFAF8); color: var(--muted); } .new-task-menu-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 13px; color: var(--text); } .new-task-menu-list { max-height: 200px; overflow-y: auto; padding: 2px 0; } .new-task-menu-empty { padding: 10px 12px; font-size: 12px; color: var(--faint); } .new-task-menu-foot { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; } .new-task-menu-item { width: 100%; display: flex; align-items: center; gap: 10px; border: none; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; } .new-task-menu-item:hover { background: rgba(249, 115, 22, 0.1); } .new-task-menu-item svg { flex: 0 0 auto; color: var(--muted); } .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-block { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .sidebar-nest-caret { flex: 0 0 18px; width: 18px; height: 18px; border: none; background: transparent; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 4px; padding: 0; } .sidebar-nest-caret:hover { color: var(--text); background: rgba(31, 30, 27, 0.06); } .sidebar-task.nested { margin-left: 18px; width: calc(100% - 18px); } .sidebar-empty { padding: 8px 10px; font-size: 12px; line-height: 1.4; color: var(--faint); } .sidebar-task-section { flex: 0 0 auto; min-height: 0; max-height: none; overflow: visible; padding-left: 6px; padding-right: 6px; } .sidebar-task-section .sidebar-section-head { padding: 0 4px; } .sidebar-task-section .sidebar-list { flex: 0 0 auto; max-height: none; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; } .sidebar-task-section .sidebar-task { align-self: stretch; width: 100%; box-sizing: border-box; } .sidebar-section-context { display: flex; flex-direction: column; gap: 2px; padding: 2px 14px 6px; font-size: 11px; color: var(--faint); line-height: 1.35; } .sidebar-workdir { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .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; display: flex; flex-direction: column; gap: 2px; padding: 2px 10px 6px 14px; color: #9BA8A5; font-size: 11.5px; line-height: 1.35; } .sidebar-section-context > span:first-child { 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 6px 2px; } .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: 12px; line-height: 1.4; padding: 8px 10px; } .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); } .text-btn:disabled { opacity: .45; cursor: not-allowed; } .text-btn svg { flex: 0 0 auto; } .sidebar-file-actions { display: inline-flex; align-items: center; gap: 4px; } .sidebar-upload-note { font-size: 11px; color: var(--accent-deep); line-height: 1.35; padding: 2px 0 6px; word-break: break-all; } .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; } /* 柔性/主数据 antd 面板:单列纵向滚动,禁止继承两列 grid(否则按钮与标题左右撕裂) */ .order-body.flex-col { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 8px 12px 16px; align-content: start; } .panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 10px; } .flex-action-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); } .flex-action-card .flex-action-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 8px; } .flex-action-card .flex-action-hint { font-size: 11px; color: var(--muted); margin: 0 0 8px; line-height: 1.4; } .flex-action-card .flex-action-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .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-approved, .order-status.s-confirmed { background: var(--ok-soft); color: var(--ok); } .order-status.s-active { background: var(--ok-soft); color: var(--ok); } .order-status.s-consumed { background: var(--border); color: var(--faint); } .order-status.s-submitted { background: var(--warn-soft); color: var(--warn); } .order-status.s-changed { background: #fff3cd; color: #9a6700; } .order-status.s-draft { background: var(--panel); color: var(--muted); } .order-status.s-rejected { background: var(--danger-soft, #fde8e8); color: var(--danger, #c0392b); } .order-status.s-cancelled, .order-status.s-completed { background: var(--border); color: var(--faint); } .pool-lanes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; } .pool-lane { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer; } .pool-lane.on { background: var(--accent-soft, #e8f1ff); border-color: var(--accent, #3b82f6); color: var(--accent, #2563eb); } .rush-impact { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } .rush-kpi { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); } .rush-kpi b { color: var(--ink); font-size: 14px; } .rush-affected { margin: 0; padding-left: 18px; font-size: 11.5px; color: var(--faint); line-height: 1.45; } .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: 100%; width: fit-content; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; line-height: 1.6; font-size: 13.5px; } .msg.user .bubble { margin-left: auto; } .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); } .msg.agent .bubble-md { max-width: min(560px, 92%); width: 100%; white-space: normal; padding: 12px 16px 14px; } .chat-md { color: var(--text); } .chat-md .md-p { margin: 0 0 8px; line-height: 1.65; } .chat-md .md-p:last-child { margin-bottom: 0; } .chat-md .md-h { font-weight: 700; margin: 12px 0 6px; line-height: 1.4; color: var(--text); } .chat-md .md-h:first-child { margin-top: 0; } .chat-md .md-h1 { font-size: 15.5px; } .chat-md .md-h2, .chat-md .md-h3 { font-size: 14px; } .chat-md .md-list { margin: 4px 0 10px; padding-left: 1.25em; } .chat-md .md-list li { margin: 4px 0; line-height: 1.55; padding-left: 2px; } .chat-md .md-list li::marker { color: var(--accent); } .chat-md strong { font-weight: 700; color: #1c1917; } .chat-md .md-gap { height: 6px; } .chat-md .md-cursor { color: var(--accent); margin-left: 1px; } .bubble details.intent-debug { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 4px; opacity: 0.55; } .bubble details.intent-debug summary { cursor: pointer; color: var(--faint); font-size: 10px; user-select: none; list-style: none; } .bubble details.intent-debug[open] { opacity: 0.9; } .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); } .chat-start-hint { margin: 0; max-width: 520px; font-size: 13px; line-height: 1.5; color: var(--faint); } .guidance-block { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fafbfc; } .guidance-hint { margin: 4px 0 8px; font-size: 12.5px; color: var(--muted, #5a6570); line-height: 1.45; } .guidance-signal { font-size: 12px; color: var(--faint); margin-bottom: 6px; } .guidance-chips { display: flex; flex-wrap: wrap; gap: 6px; } .guidance-chip { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; } .guidance-chip:hover { border-color: #8aa4bc; background: #f3f7fb; } .vp-empty-guide { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 28px 20px; } .vp-empty-guide strong { font-size: 15px; } .starter-grid { width: min(860px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .chat-start:not(.guest-chat-start) .starter-grid:has(> .starter-card:nth-child(2):last-child) { width: min(424px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); } .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; } .confirm-batch-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border: 1px dashed var(--border, #ddd); border-radius: 8px; } .confirm-batch-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .confirm-batch-check { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted, #666); } .confirm-note-input { padding: 6px 8px; border: 1px solid var(--border, #ddd); border-radius: 6px; font-size: 13px; background: var(--bg-soft, #fafafa); color: inherit; } .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; } .dlg-card-wide { width: min(460px, calc(100vw - 32px)); } @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-hint { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: var(--faint); } .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-path-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 16px; } .dlg-path-row .dlg-input { margin-bottom: 0; flex: 1 1 auto; min-width: 0; } .dlg-path-row .btn-ghost { flex: 0 0 auto; height: 42px; margin-top: 0; } .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-alerts { margin: 8px 0; display: flex; flex-direction: column; gap: 4px; } .gov-alert { padding: 6px 8px; border-radius: 6px; font-size: 13px; border: 1px solid; } .gov-alert-info { background: #EEF4FF; border-color: #ADC6FF; color: #10239E; } .gov-alert-warning { background: #FFF7E6; border-color: #FFD591; color: #874D00; } .gov-alert-critical { background: #FFF1F0; border-color: #FFA39E; color: #A8071A; } .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; } .params-slider-row { display: grid; grid-template-columns: 72px 1fr 44px; gap: 10px; align-items: center; margin: 8px 0; font-size: 12.5px; } .params-slider-label { color: var(--text); font-weight: 600; } .params-slider-val { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); } .params-slider-row input[type="range"] { width: 100%; accent-color: #c45c26; } .constraint-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; } .constraint-row:last-child { border-bottom: 0; } .constraint-main { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; } .constraint-controls { display: flex; gap: 10px; align-items: center; font-size: 12px; white-space: nowrap; } .constraint-controls select { border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; background: #fff; } .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; } /* 报告块(预览 + 下载) */ .folder-pack { margin-top: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; box-shadow: var(--shadow); max-width: min(640px, 96%); } .folder-pack-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .folder-pack-title { font-weight: 700; font-size: 14px; color: var(--text); } .folder-pack-sub { font-size: 12px; color: var(--faint); margin-top: 2px; } .folder-pack-verdict { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); } .folder-pack-verdict.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; } .folder-pack-verdict.bad { background: #fff7ed; color: #c2410c; border-color: #fed7aa; } .folder-pack-path { margin-top: 8px; font-size: 11px; color: var(--faint); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fafaf9; border-radius: 8px; padding: 6px 8px; } .folder-pack-error { margin-top: 8px; color: #b91c1c; font-size: 12.5px; } .folder-pack-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); } .folder-pack-meta b { color: var(--text); } .folder-pack-meta .warn { color: #c2410c; } .folder-table-title { margin: 14px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--text); } .folder-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; } .folder-table { width: 100%; border-collapse: collapse; font-size: 12px; } .folder-table th { text-align: left; padding: 8px 10px; background: #f5f5f4; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--border); white-space: nowrap; } .folder-table td { padding: 8px 10px; border-bottom: 1px solid #f0efed; vertical-align: top; color: var(--text); } .folder-table tr:last-child td { border-bottom: none; } .folder-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .folder-table .num.warn { color: #c2410c; font-weight: 650; } .folder-table .file-name { font-weight: 650; white-space: nowrap; } .folder-table .issue { max-width: 220px; color: #78716c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .folder-table .empty { text-align: center; color: var(--faint); padding: 16px; } .folder-table tr.st-fail td:first-child { box-shadow: inset 3px 0 0 #ef4444; } .folder-table tr.st-warn td:first-child { box-shadow: inset 3px 0 0 #f59e0b; } .folder-table tr.st-ok td:first-child { box-shadow: inset 3px 0 0 #10b981; } .folder-file-kind { display: inline-block; font-size: 10.5px; color: #9a3412; background: var(--accent-soft); padding: 1px 6px; border-radius: 999px; white-space: nowrap; } .folder-cov-chip { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); } .folder-cov-chip.on { background: #ecfdf5; color: #047857; border-color: #a7f3d0; } .folder-cov-chip.off { background: #fff7ed; color: #9a3412; border-color: #fed7aa; } .folder-pack-miss { margin-top: 10px; font-size: 12.5px; color: #9a3412; } .folder-pack-actions { margin-top: 12px; display: flex; gap: 8px; } .folder-plan-list { margin: 8px 0 0; padding-left: 1.25em; font-size: 12.5px; color: var(--text); line-height: 1.55; } .folder-plan-list li { margin: 3px 0; } .chat-md .md-table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; } .chat-md .md-table { width: 100%; border-collapse: collapse; font-size: 12px; } .chat-md .md-table th { text-align: left; padding: 7px 9px; background: #f5f5f4; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--border); white-space: nowrap; } .chat-md .md-table td { padding: 7px 9px; border-bottom: 1px solid #f0efed; vertical-align: top; color: var(--text); } .chat-md .md-table tr:last-child td { border-bottom: none; } .chat-md .md-code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; background: #f5f5f4; padding: 1px 5px; border-radius: 4px; } /* Thinking / Loading(长任务进度,对标 Cursor) */ .thinking-panel { max-width: 86%; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 12px; background: #fafaf9; overflow: hidden; } .thinking-panel.live { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed 0%, #fafaf9 48%); } .thinking-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--text); text-align: left; } .thinking-spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fdba74; border-top-color: #c2410c; animation: think-spin .7s linear infinite; flex: 0 0 auto; } .thinking-spinner.done { animation: none; border-color: #86efac; background: #86efac; } @keyframes think-spin { to { transform: rotate(360deg); } } .thinking-title { flex: 1; font-size: 12.5px; font-weight: 650; color: #9a3412; } .thinking-panel:not(.live) .thinking-title { color: var(--muted); } .thinking-caret { color: var(--faint); font-size: 12px; } .thinking-current { padding: 0 12px 8px 32px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .thinking-list { list-style: none; margin: 0; padding: 0 10px 10px; max-height: 220px; overflow: auto; } .thinking-item { display: grid; grid-template-columns: 14px 1fr; gap: 2px 8px; padding: 4px 2px; font-size: 12px; color: var(--text); border-top: 1px solid #f0efed; } .thinking-item:first-child { border-top: 0; } .thinking-mark { color: #c2410c; font-weight: 700; line-height: 1.4; } .thinking-item.st-done .thinking-mark { color: #059669; } .thinking-item.st-warn .thinking-mark { color: #d97706; } .thinking-step { font-weight: 600; } .thinking-detail { grid-column: 2; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bubble-loading { color: var(--muted); font-size: 13px; } .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); } /* ---------------- 柔性排产结构化块(排产结果 / 瓶颈产能 / 交期承诺) ---------------- */ .flex-empty-hint { margin: 8px 0; padding: 8px 10px; font-size: 12.5px; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; } .flex-line-row.blocked td { color: #a8a29e; } .flex-block { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; box-shadow: var(--shadow); max-width: min(720px, 98%); } .flex-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .flex-block-title { font-weight: 700; font-size: 14px; color: var(--text); } .flex-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; } .flex-stat { background: #fafaf9; border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; text-align: center; } .flex-stat b { display: block; font-size: 16px; color: var(--text); line-height: 1.2; } .flex-stat span { font-size: 11px; color: var(--faint); } .flex-stat.warn b { color: #c2410c; } .flex-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; } .flex-table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .flex-table th { text-align: left; padding: 8px 10px; background: #f5f5f4; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; } .flex-table td { padding: 8px 10px; border-bottom: 1px solid #f0efed; vertical-align: middle; } .flex-line-row { cursor: pointer; } .flex-line-row:hover { background: #fffbeb; } .flex-line-row.open { background: #fff7ed; } .flex-mode-badge { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; } .flex-mode-badge.warn { color: var(--warn); background: var(--warn-soft); } .flex-bottleneck { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .flex-bn-chip { font-size: 11px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 2px 9px; } .flex-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; } .flex-table { width: 100%; border-collapse: collapse; font-size: 12px; } .flex-table th { text-align: left; font-weight: 600; color: var(--muted); background: var(--panel); padding: 6px 9px; white-space: nowrap; border-bottom: 1px solid var(--border); } .flex-table td { padding: 6px 9px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; } .flex-table tr:last-child td { border-bottom: none; } .flex-table td.mono, .flex-table td.num { font-variant-numeric: tabular-nums; } .flex-table td.num { text-align: right; } .flex-table .tag { font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; } .flex-table .tag.ok { color: var(--ok); background: var(--ok-soft); } .flex-table .tag.late { color: #C0392B; background: #FBE7E3; } .flex-hint { font-size: 11px; color: var(--faint); margin-top: 9px; line-height: 1.5; } /* MRP 建议单状态徽标 */ .mrp-status { display: inline-block; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 7px; margin-right: 6px; vertical-align: middle; } .mrp-status.s-draft { color: var(--muted); background: var(--panel); border: 1px solid var(--border); } .mrp-status.s-released { color: var(--ok); background: var(--ok-soft); } /* 计划追溯 */ .trace-head { font-size: 12.5px; color: var(--text); margin-bottom: 8px; line-height: 1.5; } .trace-meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; } .trace-missing { background: var(--warn-soft); border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 12px; color: var(--text); } .trace-missing ul { margin: 4px 0 0; padding-left: 18px; } .master-ref-row.warn { background: var(--warn-soft); } .plan-trace-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: var(--panel); } .plan-trace-title { font-weight: 700; font-size: 12.5px; display: flex; gap: 8px; align-items: baseline; } .plan-trace-title small { font-weight: 400; color: var(--muted); } .plan-trace-miss { font-size: 11.5px; color: var(--warn); margin: 4px 0; } .plan-trace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 11.5px; color: var(--text); margin-top: 4px; } .plan-trace-load { font-size: 11px; color: var(--muted); margin-top: 4px; } /* 文本块(结构化正文) */ .text-block { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; background: var(--panel); } .text-block-title { font-weight: 700; font-size: 12.5px; color: var(--text); margin-bottom: 5px; } .text-block-body { font-size: 12.5px; color: var(--text); line-height: 1.6; white-space: pre-wrap; } .text-block-list { margin: 5px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text); line-height: 1.7; } /* 虚拟产线可下钻 */ .flex-line-row { cursor: pointer; transition: background .12s ease; } .flex-line-row:hover { background: var(--accent-soft); } .flex-line-row.open { background: var(--accent-soft); } .flex-table td.expand-cell { color: var(--muted); width: 18px; text-align: center; padding-left: 6px; padding-right: 2px; } .flex-detail-row td { padding: 0 !important; background: var(--panel); white-space: normal; } .flex-detail { padding: 9px 11px; } .flex-detail-head { font-size: 11.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; } .flex-step-table { width: 100%; border-collapse: collapse; font-size: 11.5px; background: var(--bg); border-radius: 6px; overflow: hidden; } .flex-step-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 4px 8px; white-space: nowrap; border-bottom: 1px solid var(--border); } .flex-step-table td { padding: 4px 8px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; } .flex-step-table tr:last-child td { border-bottom: none; } .flex-step-table td.num { text-align: right; font-variant-numeric: tabular-nums; } .flex-step-table td.mono { font-variant-numeric: tabular-nums; } .flex-step-table tr.bn td { background: var(--warn-soft); } .flex-step-table .zone-tag { color: var(--faint); font-size: 10px; margin-left: 4px; } .flex-detail-foot { font-size: 10.5px; color: var(--faint); margin-top: 6px; line-height: 1.5; } /* 冲突依据 */ .flex-conflicts { margin-top: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; } .flex-conflicts-head { font-size: 11.5px; font-weight: 700; color: var(--warn); margin-bottom: 6px; } .flex-conflict-row { display: flex; align-items: baseline; gap: 7px; font-size: 11.5px; padding: 3px 0; flex-wrap: wrap; } .conflict-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 8px; } .conflict-desc { color: var(--text); } .conflict-sug { color: var(--muted); } /* 瓶颈产能:能力池条形 */ .cap-list { display: flex; flex-direction: column; gap: 7px; } .cap-row { display: flex; align-items: center; gap: 10px; } .cap-row.bn .cap-bar { background: var(--warn); } .cap-name { flex: 0 0 118px; font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 4px; } .cap-name small { color: var(--faint); font-size: 10.5px; } .cap-star { color: var(--warn); font-size: 11px; } .cap-bar-track { flex: 1; height: 16px; background: var(--panel); border-radius: 6px; overflow: hidden; } .cap-bar { height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s ease; } .cap-bar-fill { height: 100%; background: var(--accent); border-radius: 6px; min-width: 2px; } .cap-bar-fill.warn { background: var(--warn); } .cap-bar-fill.over { background: var(--bad); } .plan-buckets-view { padding: 8px 12px 16px; overflow: auto; height: 100%; } .plan-buckets-view .cap-bar-track { display: inline-block; width: 72px; vertical-align: middle; margin-right: 6px; } .cap-val { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; min-width: 68px; text-align: right; } .cap-val small { font-weight: 400; color: var(--faint); font-size: 10px; margin-left: 2px; } /* 交期承诺:双卡 */ .due-cards { display: flex; gap: 10px; } .due-card { flex: 1; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--border); } .due-card.opt { background: var(--ok-soft); border-color: #CFE7D8; } .due-card.exp { background: var(--accent-soft); border-color: #F7D9C4; } .due-label { font-size: 11px; font-weight: 600; color: var(--muted); } .due-date { font-size: 15px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; } .due-card small { font-size: 10.5px; color: var(--faint); } /* 快捷指令 + 输入 */ .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: 0 0 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-bar.dragging { opacity: .92; z-index: 10; cursor: grabbing; box-shadow: 0 4px 12px rgba(0,0,0,.12); } .g-bar.drag-ok { outline: 2.5px solid var(--ok); } .g-bar.drag-bad { outline: 2.5px solid var(--bad); } .gantt.is-dragging { user-select: none; cursor: grabbing; } .gantt.is-dragging .g-bar { pointer-events: none; } .gantt.is-dragging .g-bar.dragging { pointer-events: auto; } .gantt-hint { font-size: 11px; color: var(--faint); margin: 0 0 6px; } .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); } /* ---------- MD-04 导入条 ---------- */ .import-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); background: #FCFBF9; } .import-bar .btn-ghost, .import-bar .btn-primary { flex: 0 0 auto; padding: 6px 12px; font-size: 12.5px; } .import-preview { width: 100%; font-size: 12px; color: var(--muted); display: grid; gap: 4px; } .import-err { color: var(--bad); font-size: 11.5px; } /* ---------- EX-10 产能池仪表盘 ---------- */ .pool-dash { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; } .pool-dash-head { display: flex; align-items: baseline; gap: 10px; } .pool-bn { background: var(--warn-soft); color: var(--warn); border: 1px solid #F5D9A8; border-radius: 10px; padding: 10px 14px; font-size: 13px; } .pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } .pool-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; } .pool-card.is-bn { border-color: #F5D9A8; } .pool-card.pool-ok { --bar: var(--ok); } .pool-card.pool-warn { --bar: var(--warn); } .pool-card.pool-crit { --bar: var(--bad); } .pool-card-title { font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; } .pool-card-title small { color: var(--faint); font-weight: 500; } .pool-card-kpi { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); } .pool-card-kpi b { color: var(--text); font-variant-numeric: tabular-nums; } .pool-bar { height: 6px; border-radius: 999px; background: #F1EFE8; overflow: hidden; } .pool-bar i { display: block; height: 100%; background: var(--bar, var(--accent)); border-radius: 999px; } .pool-meta { font-size: 11px; color: var(--faint); } .pool-fc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; } .pool-fc-chip { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--bar, var(--ok)) 18%, transparent); color: var(--text); font-variant-numeric: tabular-nums; } .pool-alerts { display: flex; flex-direction: column; gap: 4px; } .pool-alert { font-size: 12px; padding: 6px 10px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--bar, var(--warn)) 40%, transparent); background: color-mix(in srgb, var(--bar, var(--warn)) 12%, transparent); } .pool-alert.pool-crit { --bar: var(--bad); } .conflict-row { align-items: flex-start; } .conflict-badge { display: inline-block; font-size: 10px; padding: 1px 5px; border-radius: 3px; background: color-mix(in srgb, var(--warn) 20%, transparent); margin-right: 4px; } .sev-CRITICAL { background: color-mix(in srgb, var(--bad) 22%, transparent); } .sev-MAJOR { background: color-mix(in srgb, var(--warn) 22%, transparent); } .sev-MINOR { background: color-mix(in srgb, var(--muted) 18%, transparent); } .flex-hint { font-size: 11.5px; color: var(--faint); } .flex-col { flex-direction: column; gap: 8px; } /* ---------- 排产结构树(替代刷屏检查点导图) ---------- */ .st-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 14px 20px; background: var(--panel); } .st-tree.ant-tree { background: transparent; font-size: 13px; } .st-tree .ant-tree-treenode { padding: 2px 0; width: 100%; } .st-tree .ant-tree-node-content-wrapper { border-radius: 8px; min-height: 28px; line-height: 1.35; padding-inline: 6px; } .st-tree .ant-tree-node-content-wrapper:hover { background: rgba(255, 255, 255, .7) !important; } .st-node { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; vertical-align: middle; } .st-node b { font-weight: 650; color: var(--text); } .st-node em { font-style: normal; color: var(--muted); font-size: 12px; } .st-node small { color: var(--faint); font-size: 11px; } .st-root b { color: var(--accent-deep); font-size: 13.5px; } .st-branch { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); } .st-leaf { opacity: .95; } .st-cp { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; padding: 4px 0; } .st-cp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .st-cp-main b { font-size: 12.5px; font-weight: 650; color: var(--text); } .st-cp-meta { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; } .st-cp-meta code { font-family: inherit; font-size: 11.5px; color: var(--accent-deep); background: var(--accent-soft); padding: 0 5px; border-radius: 4px; } .st-cp-dot { margin: 0 6px; color: var(--faint); } .st-cp-note { font-size: 11.5px; color: var(--text); line-height: 1.4; } .st-cp-note.muted { color: var(--faint); } .st-cp-btn { flex: 0 0 auto; padding-inline: 4px !important; height: auto !important; font-weight: 600; } .st-hint { margin: 14px 4px 0; font-size: 11.5px; color: var(--faint); line-height: 1.45; } .st-rollback { display: none; }.flex-compare-table { width: 100%; overflow: auto; } .kpi-dash, .compare-view { padding: 16px 20px 28px; height: 100%; overflow: auto; background: radial-gradient(ellipse 80% 50% at 10% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%), linear-gradient(180deg, #FBF9F6 0%, #F4F0EA 100%); } .kpi-dash-hero { margin-bottom: 16px; } .kpi-dash-hero h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: 0.02em; } .kpi-dash-hero p { margin: 0 0 10px; color: var(--muted); font-size: 13px; } .kpi-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; } .kpi-dash-card { padding: 14px 12px; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, #fff 88%, transparent); } .kpi-dash-val { font-size: 22px; font-weight: 700; line-height: 1.1; } .kpi-dash-lab { margin-top: 6px; font-size: 12.5px; color: var(--muted); } .kpi-dash-hint { margin-top: 4px; font-size: 11px; color: var(--faint); } .kpi-dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; } .kpi-dash-cols h3 { margin: 0 0 8px; font-size: 14px; } .kpi-dash-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.7; } .faint { color: var(--faint); font-size: 12.5px; } .compare-section { margin-top: 18px; } .compare-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; } .compare-sec-head h3 { margin: 0; font-size: 15px; } .compare-rec { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); } .compare-grid td, .compare-grid th { text-align: center; } .compare-grid td:first-child, .compare-grid th:first-child { text-align: left; } .compare-best { background: color-mix(in srgb, var(--accent) 14%, transparent); } .compare-delta { display: block; font-size: 10.5px; color: var(--faint); font-weight: 400; } .compare-tag { margin-left: 4px; font-size: 10px; color: var(--accent-deep); } .whatif-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .whatif-acts { display: flex; gap: 6px; flex-shrink: 0; } .due-card.pes { border-color: #E8D4D4; background: #FBF6F6; } .flex-gaps { display: grid; gap: 6px; margin-top: 8px; } .flex-gap-row { font-size: 12.5px; color: var(--muted); padding: 6px 8px; background: #FCFBF9; border-radius: 8px; border: 1px solid var(--border); } .flex-gap-row small { color: var(--faint); } /* ---------- 账号入口与登录(Kimi 式低干扰侧栏入口) ---------- */ .sidebar-account-area { position: relative; flex: 0 0 auto; padding: 8px 8px 10px; border-top: 1px solid rgba(31, 30, 27, .07); } .sidebar-account-row { display: flex; align-items: center; gap: 6px; } .account-trigger, .account-more { height: 46px; border: 0; background: rgba(255, 255, 255, .5); color: var(--text); border-radius: 8px; cursor: pointer; font: inherit; letter-spacing: 0; } .account-trigger { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 10px; text-align: left; } .account-more { width: 38px; flex: 0 0 38px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); font-size: 18px; } .account-trigger:hover, .account-more:hover, .account-more[aria-expanded="true"] { background: rgba(255, 255, 255, .88); } .account-trigger:disabled { cursor: default; opacity: .72; } .account-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E4E3DE; color: #A5A39D; font-size: 15px; font-weight: 700; } .account-avatar.signed { background: var(--accent); color: #fff; } .account-trigger-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .account-trigger-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; } .account-trigger-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: 10.5px; margin-top: 2px; } .account-popover { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 90; padding: 7px; background: #fff; border: 1px solid #DEDCD5; border-radius: 8px; box-shadow: 0 14px 36px rgba(31, 30, 27, .15), 0 2px 8px rgba(31, 30, 27, .05); animation: accountMenuIn .15s ease-out; } @keyframes accountMenuIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } } .account-popover > button { width: 100%; min-height: 40px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; font-size: 13.5px; letter-spacing: 0; } .account-popover > button:hover { background: #F5F4F1; } .account-popover > button:disabled { color: var(--faint); cursor: default; } .account-popover > button:disabled:hover { background: transparent; } .account-popover > button > :last-child { justify-self: end; color: var(--faint); font-size: 11px; } .account-popover > button > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .account-popover-user { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 7px 9px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); } .account-popover-user .account-avatar { width: 34px; height: 34px; } .account-popover-user > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; } .account-popover-user b, .account-popover-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .account-popover-user b { font-size: 13px; } .account-popover-user small { color: var(--faint); font-size: 10.5px; } .account-popover-user > svg { color: var(--ok); } .account-menu-separator { height: 1px; margin: 5px 7px; background: var(--border); } .account-popover > .account-logout { color: var(--bad); } .account-result-dot { width: 9px; height: 9px; justify-self: center; border: 2px solid var(--faint); border-radius: 50%; } .account-result-dot.ready { border-color: var(--ok); background: var(--ok); } .account-menu-note { margin: 5px 7px 2px; padding: 7px 9px; border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 11px; line-height: 1.4; } .guest-login-trigger { width: 100%; } .guest-login-arrow { flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: 13px; } .guest-section-title { min-width: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; } .guest-sidebar-section { min-height: 76px; } .guest-sidebar-section .sidebar-empty { padding-left: 20px; } .guest-chat { flex: 1 1 auto; min-width: 0; } .guest-chat-start { padding-bottom: 104px; } .guest-starter-grid { width: min(480px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); } .guest-composer-wrap { cursor: text; } .guest-composer textarea { cursor: text; } .guest-right-rail button { color: var(--faint); } .guest-right-rail button:hover { color: var(--accent-deep); } /* 登录弹窗 */ .auth-backdrop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31, 30, 27, .3); backdrop-filter: blur(3px); animation: dlgFade .14s ease-out; } .auth-dialog { position: relative; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 27px 30px 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 18px 54px rgba(31, 30, 27, .2), 0 3px 10px rgba(31, 30, 27, .06); animation: dlgUp .18s ease-out; } .auth-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .auth-close:hover { background: var(--panel); color: var(--text); } .auth-close:disabled { cursor: default; opacity: .5; } .auth-header { text-align: center; } .auth-brand-mark { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; } .auth-header h2 { margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: 0; } .auth-header p { margin: 5px 0 21px; color: var(--muted); font-size: 12.5px; } .auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 39px; padding: 3px; margin-bottom: 18px; border-radius: 8px; background: #F2F1ED; } .auth-mode-switch button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; letter-spacing: 0; } .auth-mode-switch button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(31, 30, 27, .08); } .auth-field { display: block; margin-bottom: 12px; } .auth-field > span { display: block; margin: 0 0 5px; color: var(--muted); font-size: 11.5px; } .auth-phone-input, .auth-code-input { height: 44px; display: flex; align-items: center; border: 1px solid #DEDCD5; border-radius: 8px; background: #fff; transition: border-color .14s, box-shadow .14s; } .auth-phone-input:focus-within, .auth-code-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .auth-country { flex: 0 0 auto; min-width: 52px; padding: 0 12px; border-right: 1px solid var(--border); color: var(--text); font-size: 13px; text-align: center; } .auth-phone-input input, .auth-code-input input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; letter-spacing: 0; } .auth-code-input button { flex: 0 0 98px; height: 30px; margin-right: 6px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--accent-deep); cursor: pointer; font: inherit; font-size: 12px; letter-spacing: 0; } .auth-code-input button:disabled { color: var(--faint); cursor: default; } .auth-submit { width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 650; letter-spacing: 0; } .auth-submit:hover:not(:disabled) { background: var(--accent-deep); } .auth-submit:disabled { background: #E3E1DA; color: #A8A59B; cursor: default; } .auth-feedback { min-height: 24px; padding-top: 5px; color: var(--muted); font-size: 11.5px; text-align: center; visibility: hidden; } .auth-feedback.visible { visibility: visible; } .auth-divider { display: flex; align-items: center; gap: 10px; margin: 3px 0 11px; color: var(--faint); font-size: 10.5px; } .auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); } .auth-socials { display: flex; justify-content: center; gap: 12px; } .auth-socials button { width: 42px; height: 42px; border: 1px solid #DEDCD5; border-radius: 50%; background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; } .auth-socials button:first-child { color: #16A34A; } .auth-socials button:hover { border-color: #B8B5AC; background: #F8F7F4; } .auth-agreement { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 17px; color: var(--faint); font-size: 10.5px; line-height: 1.5; } .auth-agreement input { width: 13px; height: 13px; margin: 1px 0 0; accent-color: var(--accent); } .auth-agreement a { color: var(--muted); text-decoration: none; } .auth-agreement a:hover { color: var(--accent-deep); } .auth-qr-pane { min-height: 244px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .auth-qr-wrap { position: relative; width: 184px; height: 184px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; } .auth-qr-badge { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border: 4px solid #fff; border-radius: 6px; background: #fff; color: #16A34A; font-size: 21px; } .auth-qr-pane p { margin: 9px 0 5px; color: var(--muted); font-size: 12px; } .auth-qr-confirm { width: 184px; height: 36px; margin-top: 2px; font-size: 12.5px; } .workspace-sidebar.collapsed .sidebar-account-area { width: 100%; padding: 8px 0 10px; } .workspace-sidebar.collapsed .sidebar-account-row { flex-direction: column; gap: 4px; } .workspace-sidebar.collapsed .account-trigger { width: 38px; height: 38px; flex: 0 0 38px; justify-content: center; padding: 0; } .workspace-sidebar.collapsed .account-avatar { width: 28px; height: 28px; flex-basis: 28px; } .workspace-sidebar.collapsed .account-trigger-copy { display: none; } .workspace-sidebar.collapsed .account-more { width: 38px; height: 32px; flex-basis: 32px; } .workspace-sidebar.collapsed .account-popover { left: calc(100% + 8px); right: auto; bottom: 8px; width: 270px; } @media (max-width: 520px), (max-height: 620px) { .auth-backdrop { align-items: flex-end; padding: 8px; } .auth-dialog { width: 100%; max-height: calc(100vh - 16px); padding: 23px 20px 18px; } .auth-header p { margin-bottom: 15px; } .auth-mode-switch { margin-bottom: 14px; } .auth-qr-pane { min-height: 222px; } .auth-agreement { margin-top: 13px; } } /* ---- Authentication gate ---- */ .auth-login-dialog { width: min(440px, calc(100vw - 32px)); } .auth-login-dialog .login-brand { padding-right: 36px; } .login-shell { width: 100vw; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f7f7f5; color: var(--text); } .login-panel { width: min(400px, 100%); padding: 30px 32px 26px; border: 1px solid #deddd8; border-radius: 8px; background: #fff; box-shadow: 0 16px 44px rgba(31, 30, 27, .1); } .login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; } .login-brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 7px; background: #f97316; color: #fff; font-size: 18px; font-weight: 750; } .login-brand h1 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: 0; } .login-brand p { margin: 3px 0 0; color: #8a877e; font-size: 12px; } .login-form { display: grid; gap: 14px; } .login-form label > span { display: block; margin-bottom: 6px; color: #66635c; font-size: 12px; } .login-form label > div { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #d8d6d0; border-radius: 7px; background: #fff; color: #969288; } .login-form label > div:focus-within { border-color: #f97316; box-shadow: 0 0 0 3px #fff0e6; } .login-form input, .login-form select { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #1f1e1b; font: inherit; letter-spacing: 0; } .login-form select { width: 100%; cursor: pointer; } .login-form select:disabled { color: #8a877e; cursor: default; } .login-form input:disabled { color: #8a877e; cursor: default; } .login-password-field { padding-right: 7px !important; } .login-password-toggle { width: 30px; height: 30px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #77746c; cursor: pointer; font-size: 16px; } .login-password-toggle:hover { background: #f4f3ef; color: #1f1e1b; } .login-password-toggle:focus-visible { outline: 2px solid #f97316; outline-offset: 1px; } .login-captcha-field { padding-right: 4px !important; } .login-captcha-image { width: 104px; height: 36px; flex: 0 0 104px; overflow: hidden; padding: 0; border: 0; border-radius: 5px; background: #f1f1ee; cursor: pointer; } .login-captcha-image:disabled { cursor: default; opacity: .65; } .login-captcha-image img { width: 100%; height: 100%; display: block; object-fit: contain; } .login-submit { height: 44px; margin-top: 3px; border: 0; border-radius: 7px; background: #f97316; color: #fff; cursor: pointer; font: inherit; font-weight: 650; letter-spacing: 0; } .login-submit:hover:not(:disabled) { background: #de5f0b; } .login-submit:disabled { background: #dedcd6; color: #9d9a91; cursor: default; } .login-feedback { min-height: 0; margin-top: 12px; color: #b9380b; font-size: 12px; visibility: hidden; } .login-feedback.visible { min-height: 38px; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #fed7aa; border-radius: 7px; background: #fff7ed; visibility: visible; } .login-feedback.visible > span:last-child { min-width: 0; line-height: 17px; overflow-wrap: anywhere; } .login-feedback.visible > .anticon { flex: 0 0 auto; margin-top: 1px; } .license-dialog { width: min(420px, calc(100vw - 32px)); } .license-brand-mark { font-size: 19px; } .license-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: -5px 0 20px; padding: 12px 0; border-top: 1px solid #ebe9e3; border-bottom: 1px solid #ebe9e3; } .license-summary strong { color: #34322e; font-size: 13px; } .license-summary span { color: #858179; font-size: 12px; text-align: right; } .license-demo-code { display: block; margin: 13px auto 0; padding: 2px 0; border: 0; background: transparent; color: #77736b; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: 0; } .license-demo-code:hover { color: #c6510b; } .auth-loading, .workspace-boot span { width: 24px; height: 24px; border: 2px solid #d7d5cf; border-top-color: #f97316; border-radius: 50%; animation: authSpin .8s linear infinite; } .workspace-boot { width: 100vw; height: 100vh; display: grid; place-items: center; background: #fafaf8; } @keyframes authSpin { to { transform: rotate(360deg); } } /* ---- Project members ---- */ .member-dialog-title { display: inline-flex; align-items: center; gap: 8px; } .member-dialog { padding-top: 8px; } .member-invite-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 38px; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); } .member-invite-button, .member-remove { width: 38px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #d9d7d0; border-radius: 6px; background: #fff; color: #57544d; cursor: pointer; } .member-invite-button { height: 32px; background: #f97316; border-color: #f97316; color: #fff; } .member-invite-button:disabled { background: #dedcd6; border-color: #dedcd6; cursor: default; } .member-list { min-height: 84px; } .member-row { min-height: 58px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #efede8; } .member-avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: #ecebe7; color: #57544d; font-weight: 650; } .member-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; } .member-copy b { overflow: hidden; color: #25231f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .member-copy small { overflow: hidden; color: #969288; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } .member-role { color: #77746c; font-size: 12px; } .member-remove { width: 30px; height: 30px; border-color: transparent; color: #9a6a5c; } .member-remove:hover { background: #fff1ec; color: #c2410c; } .member-error { padding-top: 10px; color: #c2410c; font-size: 12px; } @media (max-width: 560px) { .member-invite-row { grid-template-columns: minmax(0, 1fr) 38px; } .member-invite-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; } } /* ---- Compact application layout ---- */ @media (max-width: 720px) { html, body, #root { width: 100%; overflow: hidden; } .app-menubar { min-width: 0; padding-right: 6px; } .app-menu-nav, .app-menubar-title { display: none; } .app-menubar-spacer { min-width: 4px; } .app-menu-item { padding: 0 7px; } .shell { position: relative; width: 100%; overflow: hidden; } .sidebar-shell { position: absolute; inset: 0 auto 0 0; z-index: 45; width: min(320px, calc(100vw - 48px)) !important; min-width: 0; flex-basis: auto !important; transform: translateX(-100%); transition: transform .18s ease; box-shadow: 10px 0 28px rgba(31, 30, 27, .14); } .sidebar-shell.mobile-open { transform: translateX(0); } .mobile-sidebar-backdrop { position: absolute; inset: 0; z-index: 44; border: 0; background: rgba(31, 30, 27, .22); cursor: pointer; } .shell > .splitter { display: none; } .chat-wrap { width: 100% !important; min-width: 0 !important; flex: 1 1 100% !important; } .chat-log { padding: 18px 14px 2px; } .chat-start { gap: 16px; padding: 28px 14px 116px; } .chat-start h1 { font-size: 22px; } .starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .starter-card { min-height: 96px; padding: 12px; } .guest-chat-start { padding-bottom: 112px; } .chips { padding-right: 10px; padding-left: 10px; flex-wrap: nowrap; overflow-x: auto; } .chip { flex: 0 0 auto; } .composer-wrap { margin: 8px 10px 10px; } .composer { border-radius: 12px; } .right-workspace { position: absolute; inset: 0; z-index: 30; width: 100% !important; height: 100%; flex-basis: auto !important; border-left: 0; padding-bottom: 52px; } .right-rail { position: absolute; right: 8px; bottom: 70px; z-index: 35; width: auto; height: 42px; flex: none; flex-direction: row; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: rgba(250, 250, 248, .96); box-shadow: var(--shadow); } .right-rail button { width: 34px; height: 34px; border-radius: 6px; } .right-rail button[data-tip]::after { display: none; } .result-nav { width: 112px; } } /* 审计可追溯链(ALGO_RUN traceChainHash/traceSummary 展示) */ .gov-trace summary { cursor: pointer; display: flex; gap: 6px; align-items: center; font-size: 12px; } .gov-trace-hash { font-family: var(--mono, monospace); color: var(--muted); } .gov-trace-count { color: var(--accent, #2f6fed); } .gov-trace-list { margin: 6px 0 2px; padding-left: 16px; font-size: 12px; } .gov-trace-list code { font-family: var(--mono, monospace); color: var(--muted); } .gov-muted { color: var(--muted); } /* ---------- 工艺路线树(成品 → 半成品 → 工序 层级语义) ---------- */ .pt-tree-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--border); padding: 8px; border-radius: 6px; background: var(--card); } .pt-tree-wrap .ant-tree { font-size: 12.5px; background: transparent; } .pt-tree-wrap .ant-tree-treenode { padding-bottom: 1px; } .pt-node { display: inline-flex; align-items: center; gap: 6px; line-height: 1.7; } .pt-badge { display: inline-block; flex: 0 0 auto; font-size: 10.5px; line-height: 1; padding: 2px 6px; border-radius: 999px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; } .pt-badge--finished { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #FBD3B8; } .pt-badge--semi { background: #E8F0FE; color: #1D5BC2; border: 1px solid #C9DAF5; } .pt-badge--raw { background: var(--panel); color: var(--muted); border: 1px solid var(--border); } .pt-badge--material { background: var(--panel); color: var(--text); border: 1px solid var(--border); } .pt-badge--op { background: #F3E8FD; color: #7C3AED; border: 1px solid #E3CCF8; } .pt-src { flex: 0 0 auto; font-size: 10.5px; line-height: 1; padding: 2px 5px; border-radius: 4px; font-weight: 600; white-space: nowrap; } .pt-src--make { background: var(--ok-soft); color: var(--ok); } .pt-src--outsource { background: var(--warn-soft); color: var(--warn); } .pt-src--buy { background: #E8F0FE; color: #1D5BC2; } .pt-seq { color: var(--faint); font-variant-numeric: tabular-nums; min-width: 14px; } .pt-name { color: var(--text); } .pt-code { color: var(--faint); font-size: 11.5px; } .pt-qty { color: var(--muted); font-size: 11.5px; } .pt-drawing { color: var(--faint); font-size: 11px; } .pt-muted { color: var(--faint); } /* 工艺树形表格(Tree Table):列布局 + 行密度 */ .pt-tree-wrap .ant-table { font-size: 12.5px; background: transparent; } .pt-tree-wrap .ant-table-thead > tr > th { font-size: 11.5px; color: var(--muted); padding: 6px 8px; white-space: nowrap; } .pt-tree-wrap .ant-table-tbody > tr > td { padding: 4px 8px; } .pt-tree-wrap .ant-table-tbody > tr:hover > td { background: rgba(0, 0, 0, 0.03) !important; } .pt-tree-wrap .ant-table-row-expand-icon { font-size: 10px; } /* ---------- 分支树面板(矩阵 51 行) ---------- */ .br-panel { display: flex; flex-direction: column; min-height: 0; max-height: 46%; border-bottom: 1px solid var(--border); background: var(--panel); } .br-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 6px; } .br-title { font-weight: 700; font-size: 13px; color: var(--text); } .br-count { font-size: 11.5px; color: var(--muted); flex: 1; } .br-actions { display: inline-flex; align-items: center; gap: 4px; } .br-refresh { padding-inline: 6px !important; color: var(--muted); } .br-fork { font-weight: 600; height: 24px !important; font-size: 12px; padding-inline: 8px !important; } .br-active-line { margin: 0 12px 4px; font-size: 11.5px; color: var(--muted); } .br-active-line b { color: var(--accent-deep); font-weight: 650; } .br-tree-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 8px; } .br-empty { padding: 6px 12px 10px; font-size: 12px; } .br-node { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 2px; border-radius: 6px; } .br-node.br-active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .35); } .br-node.br-dim { opacity: .6; } .br-node-main { display: inline-flex; flex-direction: column; line-height: 1.3; min-width: 0; margin-right: 4px; } .br-node-main b { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; } .br-node-main em { font-size: 10.5px; color: var(--faint); font-style: normal; } .br-node .ant-tag { font-size: 11px; line-height: 18px; margin-inline-end: 0; } .br-more { height: 20px !important; min-width: 22px; padding: 0 2px !important; color: var(--muted); font-weight: 700; } .br-tree .ant-tree-node-content-wrapper { white-space: normal; } .br-tree .ant-tree-title { white-space: normal; } /* ---------- 时间线微观层(矩阵 54 行) ---------- */ .st-micro { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; line-height: 1.45; max-width: 100%; } .st-micro b { color: var(--text); font-weight: 650; } .st-micro em { color: var(--muted); font-style: normal; font-size: 11.5px; } .st-micro-meta { color: var(--muted); } .st-micro-refs { gap: 4px; } .st-micro-refs .ant-tag { margin-inline-end: 0; font-size: 11px; } .st-micro-trace { gap: 4px; } .st-micro-trace em { display: block; width: 100%; color: var(--faint); font-size: 11px; } .st-micro-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 10px; background: var(--ok-soft); color: var(--text); font-size: 11px; } .st-micro-chip code { font-size: 10.5px; color: var(--ok); } .st-micro-ref { font-size: 11.5px; color: var(--accent-deep); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; } /* ============================================================ 矩阵 54/55:世界分区 / 两世界对比 / ALGO_RUN 逐步回放 (moduleId: web-styles-worlds, 可重生 ✅) ============================================================ */ /* ---- 世界模式徽标(Explore 沙盒试排 / Runtime 主世界 / 只读分析) ---- */ .world-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; } .world-badge.compact { padding: 1px 7px; font-size: 10.5px; } .world-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; } .world-badge-label { letter-spacing: .02em; } .world-badge-ro { font-size: 9.5px; font-weight: 500; border-radius: 999px; padding: 0 5px; background: rgba(255,255,255,.55); } .world-badge-hint { font-size: 10px; opacity: .8; font-weight: 400; } /* Explore:琥珀沙盒 */ .world-badge-explore { background: var(--warn-soft); color: #8A5A00; border-color: #EAD89A; } /* Runtime:靛蓝主世界 */ .world-badge-runtime { background: #E8F0FB; color: #2E5E8C; border-color: #C4D8EE; } /* 只读分析:中性灰 */ .world-badge-analysis { background: var(--panel); color: var(--muted); border-color: var(--border); } /* 视口画布按世界种类着色(一眼分辨) */ .vp-area.world-explore { border-top: 2px solid var(--warn); } .vp-area.world-runtime { border-top: 2px solid #4A8AC0; } .vp-area.world-analysis { border-top: 2px solid var(--border); } /* ---- 两个世界并排对比 ---- */ .world-diff { padding: 14px 18px 28px; height: 100%; overflow: auto; } .wd-hero { margin-bottom: 12px; } .wd-hero h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0.02em; } .wd-hero p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; } .wd-inspect-bar { display: flex; align-items: center; gap: 8px; background: var(--ok-soft); border: 1px solid #CBE6D1; border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; font-size: 12px; } .wd-inspect-label { font-weight: 650; color: var(--ok); } .wd-inspect-bar b { font-weight: 600; } .wd-inspect-bar .btn-ghost { margin-left: auto; } .wd-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-bottom: 12px; } .wd-side { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); } .wd-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .wd-side-title { font-weight: 700; font-size: 13px; } .wd-side-stats { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; } .wd-side-stats b { color: var(--text); font-weight: 650; } .wd-vs { align-self: center; font-size: 18px; color: var(--faint); } .wd-note { border-radius: 10px; padding: 7px 12px; font-size: 12px; margin-bottom: 10px; background: var(--ok-soft); color: #2F6B46; border: 1px solid #CBE6D1; } .wd-note-warn { background: var(--warn-soft); color: #7A5A08; border-color: #EAD89A; } .wd-summary-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .wd-sum-item { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 12px; color: var(--muted); } .wd-sum-item b { color: var(--text); } .wd-sum-item .wd-add { color: var(--ok); } .wd-sum-item .wd-del { color: var(--bad); } .wd-section { margin-bottom: 18px; } .wd-section h3 { font-size: 14px; margin: 0 0 8px; padding-left: 8px; border-left: 3px solid var(--accent); } .wd-table { font-size: 12px; } .wd-table th { white-space: nowrap; } .wd-table td { vertical-align: middle; } .wd-row-changed { background: var(--warn-soft) !important; } .wd-row-new { background: var(--ok-soft) !important; } .wd-row-del { background: var(--bad-soft) !important; opacity: .8; } .wd-old-new { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; } .wd-old { color: var(--bad); text-decoration: line-through; } .wd-new { color: var(--ok); font-weight: 650; } .wd-old-new i { font-style: normal; color: var(--faint); } .wd-badge-changed { background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 600; } .wd-tag-add, .wd-tag-del, .wd-tag-warn, .wd-tag-chg { display: inline-block; border-radius: 999px; padding: 0 7px; font-size: 10px; font-weight: 600; margin-right: 4px; } .wd-tag-add { background: var(--ok-soft); color: var(--ok); } .wd-tag-del { background: var(--bad-soft); color: var(--bad); } .wd-tag-warn { background: var(--warn-soft); color: #8A5A00; } .wd-tag-chg { background: #EFE9FB; color: #6B4FA3; } .wd-alert-crit { color: var(--bad); font-weight: 650; } .wd-ops { max-height: 420px; overflow: auto; } /* ---- ALGO_RUN 逐步回放 ---- */ .ar-panel { border-bottom: 1px solid var(--border); background: var(--panel); max-height: 40%; display: flex; flex-direction: column; min-height: 0; } .ar-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 4px; } .ar-title { font-weight: 700; font-size: 13px; } .ar-count { font-size: 11px; color: var(--faint); flex: 1; } .ar-controls { display: flex; align-items: center; gap: 4px; padding: 4px 12px; flex-wrap: wrap; } .ar-btn { height: 24px !important; font-size: 12px; padding-inline: 9px !important; } .ar-progress { font-size: 11.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; } .ar-step { flex: 1; min-height: 0; overflow: auto; padding: 2px 12px 10px; } .ar-hint { font-size: 12px; color: var(--faint); margin: 4px 0; } .ar-step-body { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; box-shadow: var(--shadow); } .ar-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .ar-step-head b { font-size: 13px; font-weight: 700; } .ar-step-head em { font-style: normal; color: var(--muted); font-size: 11.5px; } .ar-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; } .ar-meta-item { display: inline-flex; gap: 4px; font-size: 11.5px; } .ar-meta-item em { font-style: normal; color: var(--faint); } .ar-meta-item b { font-weight: 600; color: var(--text); } .ar-trace { margin-bottom: 6px; } .ar-trace > em { display: block; font-style: normal; color: var(--faint); font-size: 11px; margin-bottom: 3px; } .ar-refs { margin-bottom: 6px; } .ar-actions { border-top: 1px dashed var(--border); padding-top: 6px; } .ar-inspect { padding-inline: 0 !important; font-size: 12px; } .ar-empty { padding: 6px 12px 10px; } /* 审计统计视图(矩阵 104:产品定义审计查询与报表 · GovConsole「审计统计」分区) */ .gov-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 14px; } .gov-stats-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; } .gov-stats-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; } .gov-stats-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 12px; } .gov-stats-label { flex: 0 0 108px; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gov-stats-track { flex: 1; height: 12px; background: var(--panel); border-radius: 6px; overflow: hidden; } .gov-stats-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; min-width: 2px; } .gov-stats-val { flex: 0 0 44px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); } .gov-stats-kpis { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .gov-stats-kpi { flex: 1; min-width: 92px; background: var(--panel); border-radius: 8px; padding: 8px 10px; } .gov-stats-kpi .l { display: block; font-size: 10.5px; color: var(--faint); } .gov-stats-kpi .v { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; } .gov-stats-kpi.v-ok .v { color: var(--ok); } .gov-stats-kpi.v-bad .v { color: var(--bad); } .gov-stats-kpi.v-warn .v { color: var(--warn); } /* ---------------- 多智能体编排面板 ---------------- */ .mesh-panel { display: flex; flex-direction: column; gap: 10px; height: 100%; overflow-y: auto; padding: 12px; } .mesh-head { display: flex; justify-content: space-between; align-items: center; } .mesh-head small { display: block; color: #8a94a6; font-size: 11px; margin-top: 2px; } .mesh-sec { border: 1px solid #e7eaf0; border-radius: 10px; padding: 10px; background: #fff; } .mesh-sec-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; } .mesh-agent-create { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .mesh-agent-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; } .mesh-agent-card { border: 1px solid #eef0f4; border-radius: 8px; padding: 7px 9px; background: #fafbfd; } .mesh-agent-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .mesh-agent-meta { color: #8a94a6; font-size: 11px; margin-top: 3px; } .mesh-goal-card { border: 1px solid #eef0f4; border-radius: 8px; padding: 8px 9px; background: #fafbfd; margin-bottom: 8px; } .mesh-goal-progress { height: 4px; background: #edf0f5; border-radius: 2px; margin: 8px 0; overflow: hidden; } .mesh-goal-bar { height: 100%; background: linear-gradient(90deg, #2f6fed, #18a058); transition: width .4s; } .mesh-task { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12px; flex-wrap: wrap; } .mesh-task-title { font-weight: 500; } .mesh-task-meta { color: #8a94a6; font-size: 11px; } .mesh-task-err { width: 100%; color: #d93026; font-size: 11px; } .mesh-msg-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; margin-bottom: 8px; } .mesh-msg { border-left: 3px solid #e7eaf0; padding: 4px 8px; font-size: 12px; background: #fafbfd; border-radius: 0 6px 6px 0; } .mesh-msg-time { color: #8a94a6; font-size: 11px; margin-right: 6px; } .mesh-msg-kind { font-size: 10px; font-weight: 700; margin-right: 6px; } .mesh-msg-text { color: #4a5568; margin-top: 2px; white-space: pre-wrap; } .mesh-wd-row { color: #4a5568; font-size: 12px; margin-bottom: 8px; } .mesh-wd-alert { color: #d93026; font-size: 12px; margin-top: 4px; }