/* ===== 画个标 · 全局样式 ===== */ :root { --primary: #4f46e5; --primary-dark: #4338ca; --bg: #f3f4f6; --panel-bg: #ffffff; --border: #e5e7eb; --text: #1f2937; --text-dim: #6b7280; --hover: #eef2ff; --accent: #f59e0b; --danger: #ef4444; --radius: 8px; --shadow: 0 1px 3px rgba(0,0,0,.08); --topbar-h: 52px; --panel-w: 264px; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; overflow: hidden; font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 14px; color: var(--text); background: var(--bg); } button { font-family: inherit; cursor: pointer; } input, select { font-family: inherit; } .hidden { display: none !important; } /* ===== 顶部工具栏 ===== */ .topbar { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #1e1b4b; background: linear-gradient(90deg, #1e1b4b, #312e81); color: #fff; box-shadow: var(--shadow); position: relative; z-index: 20; } .topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; } .brand { display: flex; align-items: center; gap: 8px; } .brand-icon { font-size: 20px; } .brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; } .brand-tag { font-size: 11px; color: #c7d2fe; background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 20px; white-space: nowrap; } .project-name { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 13px; width: 180px; outline: none; } .project-name:focus { border-color: #a5b4fc; background: rgba(255,255,255,.18); } .topbar-center, .topbar-right { display: flex; align-items: center; gap: 6px; } .tb-divider { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 6px; } .tb-btn { border: none; border-radius: 6px; padding: 6px 12px; font-size: 13px; background: rgba(255,255,255,.1); color: #fff; transition: background .15s; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; text-decoration: none; } .tb-btn:hover { background: rgba(255,255,255,.22); } .tb-btn.primary { background: var(--accent); color: #1f2937; font-weight: 600; } .tb-btn.primary:hover { background: #fbbf24; } .tb-btn.sm { padding: 4px 8px; font-size: 12px; } /* ===== 三栏工作台 ===== */ .workspace { display: flex; height: calc(100vh - var(--topbar-h)); } .panel-left, .panel-right { width: var(--panel-w); background: var(--panel-bg); border: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; z-index: 10; } .panel-left { border-left: none; border-top: none; border-bottom: none; } .panel-right { border-right: none; border-top: none; border-bottom: none; } /* 标签页 */ .tabs { display: flex; border-bottom: 1px solid var(--border); background: #fafafa; flex-shrink: 0; } .tab { flex: 1; border: none; background: transparent; padding: 11px 0; font-size: 13px; color: var(--text-dim); border-bottom: 2px solid transparent; transition: all .15s; } .tab:hover { color: var(--primary); background: var(--hover); } .tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); background: #fff; } .panel-scroll { flex: 1; overflow-y: auto; padding: 12px; } .panel-scroll::-webkit-scrollbar { width: 6px; } .panel-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; } .tab-pane { display: none; } .tab-pane.active { display: block; } .pane-tip { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 6px; padding: 6px 8px; } .panel-group { margin-bottom: 18px; } .group-title { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; letter-spacing: .5px; } /* 行业切换条 */ .industry-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .industry-tab { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 12px; background: #fff; color: var(--text); cursor: pointer; transition: all .15s; } .industry-tab span { white-space: nowrap; } .industry-tab:hover { border-color: #a5b4fc; background: var(--hover); } .industry-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 6px rgba(79,70,229,.35); } /* 行业推荐标记 */ .reco-tag { font-style: normal; font-size: 10px; font-weight: 600; color: var(--primary); background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: middle; } .style-card.reco { border-color: #c7d2fe; background: #fbfbff; } /* 图标网格 */ .icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .icon-item { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: all .15s; padding: 4px; cursor: grab; } .icon-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.15); transform: translateY(-1px); } .icon-item:active { cursor: grabbing; } .icon-item svg { width: 34px; height: 34px; } .icon-item .icon-name { font-size: 10px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .icon-item.dragging { opacity: .5; } /* 风格列表 */ .style-list { display: flex; flex-direction: column; gap: 10px; } .style-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: #fff; transition: all .15s; text-align: left; width: 100%; } .style-card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } .style-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.25); } .style-swatch { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; } .style-swatch span { font-size: 18px; } .style-meta { flex: 1; min-width: 0; } .style-name { font-size: 13px; font-weight: 600; } .style-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; } /* 配色方案 */ .palette-list { display: flex; flex-direction: column; gap: 10px; } .palette-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: #fff; transition: all .15s; text-align: left; width: 100%; } .palette-card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } .palette-swatches { display: flex; gap: 4px; margin-bottom: 6px; } .palette-dot { flex: 1; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); } .palette-name { font-size: 12px; font-weight: 600; } .palette-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; } /* 字体列表 */ .font-list { display: flex; flex-direction: column; gap: 8px; } .font-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: #fff; transition: all .15s; text-align: left; width: 100%; display: flex; align-items: center; justify-content: space-between; } .font-card:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } .font-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.25); } .font-preview { font-size: 20px; } .font-meta { font-size: 11px; color: var(--text-dim); } .font-badge { font-size: 10px; padding: 2px 6px; border-radius: 10px; background: #f3f4f6; color: var(--text-dim); } .font-badge.web { background: #dbeafe; color: #1d4ed8; } /* ===== 画布区 ===== */ .canvas-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); } .canvas-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; } .canvas-toolbar .tb-btn { background: #f3f4f6; color: var(--text); } .canvas-toolbar .tb-btn:hover { background: var(--hover); } .canvas-toolbar .tb-btn.primary { background: var(--accent); color: #1f2937; font-weight: 700; } .canvas-toolbar .tb-btn.primary:hover { background: #fbbf24; } .canvas-toolbar .tb-divider { background: var(--border); } .zoom-level { font-size: 12px; color: var(--text-dim); min-width: 42px; text-align: center; } .bg-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); margin-left: auto; } .bg-label input[type="color"] { width: 30px; height: 26px; border: 1px solid var(--border); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; } .canvas-stage { flex: 1; overflow: hidden; position: relative; background-color: #e8e9ec; background-image: radial-gradient(#d4d5da 1px, transparent 1px); background-size: 22px 22px; } .canvas-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #logo-canvas { display: block; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.18); cursor: default; touch-action: none; } .canvas-status { height: 30px; display: flex; align-items: center; padding: 0 12px; background: #fff; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); flex-shrink: 0; } /* ===== 画布内元素样式 ===== */ .hgb-elem { cursor: grab; } .hgb-elem:hover { } .hgb-elem.selected { cursor: move; } .hgb-elem.locked { cursor: default; } /* 选中框与手柄 */ .hgb-selection { fill: none; stroke: #4f46e5; stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; } .hgb-selection.multi { stroke: #22c55e; opacity: .7; } .hgb-handle { fill: #fff; stroke: #4f46e5; stroke-width: 1.5; pointer-events: all; cursor: pointer; } .hgb-handle.rotate { fill: #4f46e5; cursor: grab; } .hgb-rotate-line { stroke: #4f46e5; stroke-width: 1; pointer-events: none; } /* ===== 右侧面板 ===== */ .layer-actions, .version-actions { display: flex; gap: 6px; margin-bottom: 10px; } .layer-actions .tb-btn, .version-actions .tb-btn { background: #f3f4f6; color: var(--text); flex: 1; } .layer-actions .tb-btn:hover, .version-actions .tb-btn:hover { background: var(--hover); } .layer-list { display: flex; flex-direction: column; gap: 6px; } .layer-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; transition: all .12s; } .layer-item:hover { border-color: #a5b4fc; } .layer-item.selected { border-color: var(--primary); background: var(--hover); box-shadow: 0 0 0 2px rgba(79,70,229,.18); } .layer-item.dragging { opacity: .5; } .layer-item.drag-over { border-color: var(--primary); border-style: dashed; background: #eef2ff; } .layer-thumb { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 4px; } .layer-thumb svg { width: 18px; height: 18px; } .layer-thumb .thumb-text { font-size: 12px; font-weight: 600; color: var(--text); } .layer-info { flex: 1; min-width: 0; } .layer-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .layer-type { font-size: 10px; color: var(--text-dim); } .layer-tools { display: flex; gap: 2px; flex-shrink: 0; } .layer-tools button { border: none; background: transparent; font-size: 13px; padding: 2px 4px; border-radius: 4px; opacity: .6; } .layer-tools button:hover { background: #e5e7eb; opacity: 1; } .layer-tools button.on { opacity: 1; } .props-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 40px 10px; } .props-form { display: flex; flex-direction: column; gap: 8px; } .prop-row { display: flex; align-items: center; gap: 6px; } .prop-row label { font-size: 12px; color: var(--text-dim); width: 52px; flex-shrink: 0; } .prop-row input[type="text"], .prop-row input[type="number"] { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; outline: none; } .prop-row input[type="text"]:focus, .prop-row input[type="number"]:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } .prop-row input[type="color"] { width: 34px; height: 30px; border: 1px solid var(--border); border-radius: 6px; padding: 2px; cursor: pointer; background: #fff; } .prop-row select { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; outline: none; background: #fff; } .prop-row input[type="range"] { flex: 1; accent-color: var(--primary); } .unit { font-size: 11px; color: var(--text-dim); width: 34px; flex-shrink: 0; } .tiny-btn { border: 1px solid var(--border); background: #f9fafb; border-radius: 6px; width: 30px; height: 30px; font-size: 13px; color: var(--text-dim); } .tiny-btn:hover { background: var(--hover); color: var(--primary); } /* 版本列表 */ .version-list { display: flex; flex-direction: column; gap: 8px; } .version-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: #fff; transition: all .15s; } .version-item:hover { border-color: var(--primary); } .version-head { display: flex; align-items: center; justify-content: space-between; } .version-time { font-size: 11px; color: var(--text-dim); } .version-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; } .version-actions-row { display: flex; gap: 6px; margin-top: 8px; } .version-actions-row button { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 4px 0; font-size: 12px; background: #f9fafb; color: var(--text); } .version-actions-row button:hover { background: var(--hover); border-color: var(--primary); color: var(--primary); } .version-actions-row button.danger:hover { background: #fef2f2; border-color: var(--danger); color: var(--danger); } /* Toast */ .toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 1000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); } /* ===== 导出对话框(Modal) ===== */ .modal-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 900; } .modal { width: 460px; max-width: 92vw; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: modal-in .18s ease-out; } @keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); } .modal-title { font-size: 15px; font-weight: 700; } .modal-close { border: none; background: transparent; font-size: 15px; color: var(--text-dim); padding: 4px 8px; border-radius: 6px; } .modal-close:hover { background: #f3f4f6; color: var(--text); } .modal-body { padding: 16px 18px; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: #fafafa; border-radius: 0 0 12px 12px; } .modal-foot .tb-btn { background: #f3f4f6; color: var(--text); } .modal-foot .tb-btn:hover { background: var(--hover); } .modal-foot .tb-btn.primary { background: var(--accent); color: #1f2937; font-weight: 600; } .modal-group { margin-bottom: 16px; } .modal-group:last-child { margin-bottom: 4px; } .modal-label { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; } .format-row { display: flex; gap: 8px; } .format-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--text); transition: all .15s; } .format-btn:hover { border-color: #a5b4fc; } .format-btn.active { border-color: var(--primary); background: var(--hover); box-shadow: 0 0 0 2px rgba(79,70,229,.2); } .fmt-note { font-size: 10px; font-weight: 400; color: var(--text-dim); } .format-btn.active .fmt-note { color: var(--primary); } .size-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .size-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: all .15s; } .size-opt:hover { border-color: #a5b4fc; background: var(--hover); } .size-opt input { accent-color: var(--primary); } .size-note { font-size: 11px; color: var(--text-dim); } .bg-opt-row { display: flex; gap: 8px; flex-wrap: wrap; } .bg-opt-row .size-opt { flex: 1; min-width: 110px; } .modal-group.is-disabled { opacity: .45; pointer-events: none; } /* ===== 技能资源管理 ===== */ .skill-search { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none; background: #fff; } .skill-search:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } .skill-resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .skill-resource-item { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: all .15s; padding: 4px; cursor: pointer; position: relative; } .skill-resource-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.15); } .skill-resource-item svg { width: 30px; height: 30px; } .skill-resource-item .res-name { font-size: 9px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .skill-resource-item .res-src { position: absolute; top: 2px; left: 3px; font-size: 8px; padding: 0 3px; border-radius: 4px; background: #f3f4f6; color: var(--text-dim); } .skill-resource-item .res-del { position: absolute; top: 2px; right: 3px; border: none; background: transparent; font-size: 11px; opacity: 0; transition: opacity .15s; cursor: pointer; } .skill-resource-item:hover .res-del { opacity: .7; } .skill-resource-item .res-del:hover { opacity: 1; color: var(--danger); } .skill-resource-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 12px; padding: 18px 8px; border: 1px dashed var(--border); border-radius: var(--radius); } /* 内置库 / 弹窗网格共用样式 */ .gh-count { font-size: 12px; color: var(--text-dim); white-space: nowrap; } .gh-status { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; min-height: 16px; } .gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; overflow-y: auto; overflow-x: hidden; /* 隐藏 tooltip 绝对定位溢出导致的横向滚动条 */ min-height: 120px; max-height: 46vh; padding: 2px; } .gh-grid::-webkit-scrollbar { width: 6px; } .gh-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; } .gh-icon-item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; position: relative; transition: all .15s; padding: 4px; } .gh-icon-item:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.15); transform: translateY(-1px); } .gh-icon-item svg { width: 26px; height: 26px; } .gh-icon-item .gh-tip { position: absolute; left: 50%; top: 108%; transform: translateX(-50%); background: #fff; color: #374151; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-size: 10px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; } .gh-icon-item:hover .gh-tip { opacity: 1; } .gh-icon-item.imported { border-color: #86efac; background: #f0fdf4; } .gh-icon-item.imported::after { content: '✓'; position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; background: #22c55e; color: #fff; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); } .gh-more-wrap { text-align: center; margin-top: 10px; } .gh-more-wrap .tb-btn { background: #f3f4f6; color: var(--text); } .gh-more-wrap .tb-btn:hover { background: var(--hover); } .gh-foot-info { font-size: 12px; color: var(--text-dim); flex: 1; text-align: left; } /* ===== 智能方案设计工作台 ===== */ .design-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 950; } .design-modal { width: min(1180px, 96vw); height: min(780px, 92vh); background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; animation: modal-in .2s ease-out; } .design-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #f5f3ff, #fff); } .design-title { font-size: 16px; font-weight: 800; color: var(--primary); } .design-sub { font-size: 12px; color: var(--text-dim); flex: 1; } .design-body { flex: 1; display: flex; overflow: hidden; } /* 左:配置区 */ .design-config { width: 330px; flex-shrink: 0; padding: 16px 18px; border-right: 1px solid var(--border); background: #fafafa; overflow-y: auto; } .design-config .industry-tabs { gap: 4px; } .design-config .industry-tab { font-size: 11px; padding: 4px 8px; } .dc-group { margin-bottom: 16px; } .dc-row { display: flex; gap: 10px; } .dc-col { flex: 1; } .dc-gen-btn { flex: 0 0 auto; } .w-full { width: 100%; } .design-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 190px; overflow-y: auto; } .design-icon-item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: all .15s; padding: 4px; } .design-icon-item svg { width: 24px; height: 24px; } .design-icon-item:hover { border-color: #a5b4fc; } .design-icon-item.selected { border-color: var(--primary); background: var(--hover); box-shadow: 0 0 0 2px rgba(79,70,229,.25); position: relative; } .design-icon-item.selected::after { content: '✓'; position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; } /* 右:方案库 */ .design-plans-wrap { flex: 1; display: flex; flex-direction: column; padding: 16px 20px; overflow: hidden; } .plans-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } #plans-title { font-size: 14px; font-weight: 700; } .plans-tip { font-size: 11px; color: var(--text-dim); } .plans-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); /* 行高必须随卡片内容自适应:容器被拉伸为固定高度时, 默认 auto 会被均分导致行高 < 卡片高,出现"卡片叠堆放" */ grid-auto-rows: max-content; gap: 14px; padding: 4px 2px 20px; align-content: start; } .plan-card { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; transition: all .18s; display: flex; flex-direction: column; height: fit-content; } .plan-card:hover { border-color: #a5b4fc; box-shadow: 0 8px 24px rgba(79,70,229,.15); transform: translateY(-2px); } /* ===== 头像模式 ===== */ .tb-btn.active { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); } .avatar-mode .plan-preview-avatar { aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 2px #e5e7eb, 0 4px 10px rgba(0, 0, 0, .1); } .avatar-mode .plan-preview-avatar svg { border-radius: 50%; } /* 头像模式:预览弹窗只展示图形标识区,隐藏品牌组合区 */ .avatar-mode .plan-area-lockup { display: none; } .avatar-custom-input { width: 70px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; text-align: center; } .plan-previews { display: flex; gap: 6px; } .plan-previews .plan-preview { flex: 1 1 0; min-width: 0; } .plan-preview-lp { border-left: 2px dashed var(--border); } .plan-previews .plan-preview svg { width: 100%; height: auto; display: block; } .plan-preview { aspect-ratio: 1; background: #fff; padding: 8px; display: flex; align-items: center; justify-content: center; } .plan-preview svg { width: 100%; height: 100%; border-radius: 6px; } .plan-meta { padding: 8px 12px 10px; border-top: 1px solid #f3f4f6; } .plan-name { font-size: 12px; font-weight: 600; } .plan-tags { display: flex; gap: 6px; margin-top: 4px; font-size: 10px; color: var(--text-dim); } .plan-actions { display: flex; gap: 8px; margin-top: 8px; } .plan-actions .tb-btn { flex: 1; font-size: 12px; padding: 6px 4px; background: #f3f4f6; color: var(--text); } .plan-actions .tb-btn:hover { background: var(--hover); } .plan-actions .tb-btn.apply { background: var(--primary); color: #fff; } .plan-actions .tb-btn.apply:hover { background: var(--primary-dark); } .plans-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px; border: 2px dashed #e5e7eb; border-radius: 12px; margin-top: 8px; text-align: center; padding: 20px; line-height: 1.8; } /* ===== 智能设计主界面(整体) ===== */ .design-workspace { display: flex; height: calc(100vh - var(--topbar-h)); } .design-workspace .design-config { height: 100%; } .design-workspace .design-plans-wrap { height: 100%; } /* 图标选择项:图标 + 名称 */ .design-icon-item { flex-direction: column; gap: 2px; aspect-ratio: auto; height: 54px; } .design-icon-item svg { width: 22px; height: 22px; } .design-icon-name { font-size: 9px; color: var(--text-dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .import-more-btn { margin-top: 8px; background: #f3f4f6; color: var(--text); justify-content: center; } .import-more-btn:hover { background: var(--hover); } /* 方案库头部操作 */ .plans-head-ops { display: flex; gap: 6px; margin-left: auto; } .plans-head-ops .tb-btn { background: #f3f4f6; color: var(--text); } .plans-head-ops .tb-btn:hover { background: var(--hover); } .plans-head-ops .tb-btn.primary { background: var(--accent); color: #1f2937; font-weight: 600; } /* 方案卡片选中态 */ .plan-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.28); } /* 版本记录区 */ .versions-section { border-top: 1px solid var(--border); padding-top: 10px; flex-shrink: 0; } .versions-section .version-list { max-height: 148px; overflow-y: auto; } .version-ops { display: flex; gap: 6px; margin-top: 6px; } .version-ops .tb-btn { background: #f3f4f6; color: var(--text); padding: 4px 8px; } .version-ops .tb-btn:hover { background: var(--hover); } /* ===== 方案预览弹窗 ===== */ .plan-modal { width: min(980px, 95vw); } .modal-title-sub { font-size: 12px; color: var(--text-dim); flex: 1; } .plan-modal-body { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; } /* 双区域:图形标识 Mark + 品牌组合 Lockup */ .plan-areas { display: flex; flex: 1 1 100%; gap: 16px; min-width: 0; } .plan-area { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; } .plan-area-label { font-size: 12px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; } .plan-area-en { font-size: 10px; color: var(--text-dim); font-weight: 400; } .plan-lockup-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .plan-lockup-tab { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 6px; padding: 3px 9px; font-size: 11px; cursor: pointer; transition: all .15s; } .plan-lockup-tab:hover { border-color: var(--accent); } .plan-lockup-tab.active { background: var(--accent); color: #1f2937; font-weight: 600; border-color: var(--accent); } .plan-big { flex: 1 1 auto; min-height: 340px; display: flex; align-items: center; justify-content: center; background-color: #f3f4f6; background-image: radial-gradient(#dfe1e6 1px, transparent 1px); background-size: 16px 16px; border: 1px solid var(--border); border-radius: 10px; padding: 14px; } .plan-big svg { width: 100%; max-width: 380px; height: auto; border-radius: 8px; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 6px 22px rgba(0,0,0,.18); } .plan-variants { width: 280px; flex-shrink: 0; } .variant-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .variant-row .tb-btn { flex: 1 1 calc(50% - 4px); justify-content: center; } .variant-row .tb-btn.primary { background: var(--accent); color: #1f2937; font-weight: 600; } /* 响应式 */ @media (max-width: 1100px) { .brand-tag { display: none; } .design-workspace .design-config { width: 260px; } .icon-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 860px) { .project-name { width: 120px; } .design-plans-wrap { padding: 12px; } .design-icons { grid-template-columns: repeat(3, 1fr); } .plan-modal-body { flex-direction: column; } .plan-areas { flex-direction: column; } .plan-variants { width: 100%; } } @media (max-width: 640px) { .design-workspace { flex-direction: column; } .design-workspace .design-config { width: 100%; height: auto; max-height: 40vh; border-right: none; border-bottom: 1px solid var(--border); } .tb-divider { margin: 0 3px; } } /* ===== AI 智能设计新增 ===== */ /* 品牌描述框 */ .dc-desc { width: 100%; resize: vertical; min-height: 52px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: inherit; line-height: 1.5; outline: none; background: #fff; } .dc-desc:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.12); } /* 方案卡片:AI 设计理念 */ .plan-concept { font-size: 11px; color: var(--text-dim); background: #f9fafb; border: 1px dashed #e5e7eb; border-radius: 6px; padding: 6px 8px; margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* 方案卡片:AI 参数自动修正提示 */ .plan-warn { font-size: 10px; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 3px 6px; margin-top: 4px; display: inline-block; } .ai-badge { background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; border-radius: 4px; padding: 1px 6px; font-weight: 600; } /* 预览弹窗:AI 设计理念大图区(独占一行,位于预览图/变体下方) */ .plan-concept-big { flex: 1 1 100%; order: 3; margin-top: 2px; } .plan-concept-inner { background: linear-gradient(90deg, #eef2ff, #f5f3ff); border: 1px solid #c7d2fe; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--text); } /* AI 设置弹窗 */ .ai-modal { width: min(460px, 92vw); } .ai-test-result { margin-top: 10px; font-size: 12px; line-height: 1.6; } .ai-test-result .ai-ok { color: #16a34a; } .ai-test-result .ai-err { color: var(--danger); } .ai-test-result .ai-pending { color: var(--text-dim); } .ai-modal .modal-foot .tb-btn { flex: 1; justify-content: center; } .ai-modal .modal-foot .tb-btn.primary { background: var(--primary); color: #fff; } .ai-modal .modal-foot .tb-btn.primary:hover { background: var(--primary-dark); } /* 技能资源库弹窗 */ .skills-modal { width: min(680px, 94vw); max-height: 84vh; display: flex; flex-direction: column; } .skills-modal .modal-body { overflow-y: auto; } .skills-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .skill-fchip { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: all .15s; } .skill-fchip:hover { border-color: #a5b4fc; background: var(--hover); } .skill-fchip.active { background: var(--primary); color: #fff; border-color: var(--primary); } .skills-list { display: flex; flex-direction: column; gap: 12px; } .skill-card { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 12px 14px; transition: all .15s; } .skill-card:hover { border-color: #c7d2fe; box-shadow: 0 2px 10px rgba(79,70,229,.08); } .skill-head { display: flex; align-items: flex-start; gap: 10px; } .skill-emoji { font-size: 22px; line-height: 1; } .skill-title-wrap { flex: 1; min-width: 0; } .skill-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .skill-cat { font-size: 10px; font-weight: 600; color: var(--primary); background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 4px; padding: 1px 6px; } .skill-scene { font-size: 12px; color: var(--text-dim); margin-top: 3px; } .skill-summary { font-size: 12px; color: var(--text); line-height: 1.6; margin-top: 8px; } .skill-detail { margin-top: 8px; } .skill-detail summary { font-size: 12px; color: var(--primary); cursor: pointer; user-select: none; } .skill-meta { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12px; background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 6px; } .skill-meta td { padding: 6px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: top; line-height: 1.6; } .skill-meta tr:last-child td { border-bottom: none; } .skill-meta td:first-child { width: 72px; color: var(--text-dim); font-weight: 600; white-space: nowrap; } .skill-meta code { background: #eef2ff; color: #4338ca; border-radius: 4px; padding: 1px 5px; font-size: 11px; } .skill-ptype { color: var(--text-dim); font-size: 11px; } .skill-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; } .skill-status { font-size: 11px; color: #16a34a; } .skill-test-out { margin-top: 8px; } .skill-test-pending { font-size: 12px; color: var(--text-dim); } .skill-test-ok { font-size: 12px; color: #16a34a; font-weight: 600; } .skill-test-err { font-size: 12px; color: var(--danger); } .skill-test-json { margin-top: 6px; padding: 8px 10px; background: #0f172a; color: #c7d2fe; border-radius: 6px; font-size: 11px; line-height: 1.5; overflow-x: auto; white-space: pre; max-height: 220px; overflow-y: auto; } /* 左侧配置区:技能勾选(设计流程 5 步) */ .skill-checks { display: flex; flex-direction: column; gap: 8px; } .skill-step { border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; } .skill-step-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none; user-select: none; font-size: 12.5px; } .skill-step-head::-webkit-details-marker { display: none; } .skill-step-head:hover { background: var(--hover); } .skill-step[open] > .skill-step-head { border-bottom: 1px dashed var(--border); } .step-emoji { font-size: 15px; } .step-name { font-weight: 700; color: #1f2937; } .step-count { font-size: 11px; color: #6b7280; } .step-checked { font-size: 11px; color: #4338ca; background: #eef2ff; border-radius: 20px; padding: 1px 8px; } .step-toggle { font-size: 10.5px; color: #9ca3af; margin-left: auto; } .step-toggle.all { color: #16a34a; } .skill-step-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; } .skill-check { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12px; cursor: pointer; transition: all .12s; background: #fff; user-select: none; } .skill-check:hover { border-color: #a5b4fc; background: var(--hover); } .skill-check.on { border-color: #c7d2fe; background: #fbfbff; box-shadow: 0 0 0 2px rgba(79,70,229,.08); } .skill-check.dis { opacity: .45; cursor: not-allowed; background: #f9fafb; } .skill-check.dis input { cursor: not-allowed; } .skill-check input { accent-color: var(--primary); flex-shrink: 0; } .skill-check-emoji { font-size: 15px; } .skill-check-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .skill-kind { font-size: 10px; border-radius: 4px; padding: 1px 5px; flex-shrink: 0; } .skill-kind.kind-gen { background: #eef2ff; color: #4338ca; } .skill-kind.kind-check { background: #f0fdf4; color: #15803d; } .skill-kind.kind-deliver { background: #fffbeb; color: #b45309; } .step-ops { display: flex; gap: 6px; justify-content: flex-end; margin-top: 2px; } /* 方案卡片:技能审计徽章 */ .audit-row { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; } .audit-score { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 7px; display: inline-flex; align-items: center; gap: 2px; } .audit-score.a { background: #dcfce7; color: #15803d; } .audit-score.b { background: #fef9c3; color: #a16207; } .audit-score.c { background: #fee2e2; color: #b91c1c; } .audit-item { font-size: 10px; border-radius: 4px; padding: 2px 5px; display: inline-flex; align-items: center; gap: 2px; } .audit-item.ok { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; } .audit-item.warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; } /* 预览弹窗:技能检查报告 */ .plan-audit { margin-top: 10px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; } .plan-audit-head { padding: 9px 14px; font-size: 13px; font-weight: 700; color: #4338ca; background: #eef2ff; border-bottom: 1px solid #e0e7ff; } .plan-audit-sub { font-size: 11px; color: #6b7280; font-weight: 400; margin-left: 6px; } .plan-audit-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; } .plan-audit-sum { display: flex; align-items: center; gap: 8px; } .plan-audit-note { font-size: 12px; color: #6b7280; } .plan-audit-items { display: flex; flex-direction: column; gap: 5px; max-height: 260px; overflow-y: auto; } .plan-audit-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; border-radius: 7px; padding: 6px 10px; line-height: 1.6; } .plan-audit-item.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; } .plan-audit-item.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; } .pa-mark { font-weight: 700; flex-shrink: 0; } .pa-name { font-weight: 700; flex-shrink: 0; min-width: 72px; } .pa-detail { color: inherit; opacity: .9; } /* ===== 内置图标库浏览 ===== */ .builtin-modal { width: 1280px; max-width: 97vw; display: flex; flex-direction: column; max-height: 88vh; } .builtin-modal .modal-body { display: flex; flex-direction: column; overflow-y: auto; flex: 1; } /* 网格不被 flex 压缩(全部素材时工具栏 209 个源按钮会占满高度,网格保持 max-height 内部滚动) */ .builtin-modal .gh-grid { flex: 0 0 auto; } /* 工具栏:来源行 / 分类行 / 搜索行 三段式 */ .builtin-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; } .builtin-search-row { display: flex; align-items: center; gap: 8px; } .builtin-search-row .skill-search { flex: 1; } /* 来源 / 分类行:自动换行完整显示(弹窗足够大,无需横向滚动); 全部素材时源按钮多达 209 个,限制高度内部滚动,避免工具栏把网格挤出可视区 */ .builtin-sources { display: flex; gap: 6px; flex-wrap: wrap; max-height: 132px; overflow-y: auto; } /* 素材类型 Tab 行(全部/单色图标/多色表情/品牌) */ .builtin-types { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 6px; } .builtin-types .btype-btn { font-size: 12px; padding: 4px 12px; font-weight: 600; } /* 分类列表(中文胶囊,来源下方独立一行) */ .builtin-cats { border-top: 1px dashed var(--border); padding-top: 8px; } .builtin-cats .builtin-source { font-size: 11px; padding: 3px 9px; } .builtin-source { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: #fff; padding: 4px 10px; font-size: 12px; color: var(--text); cursor: pointer; transition: all .15s; flex: none; white-space: nowrap; } .builtin-source:hover { border-color: #a5b4fc; background: var(--hover); } .builtin-source.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 6px rgba(79,70,229,.3); } .bsrc-count { font-size: 10px; opacity: .75; } /* 来源按钮:纯中文名 + 数量(英文原名在悬停 title 提示中) */ .bsrc-btn { gap: 5px; padding: 3px 10px; } .bsrc-cn { font-weight: 600; font-size: 12px; } /* ===== DiceBear 风格头像(M4) ===== */ .dicebear-modal { width: 720px; max-width: 96vw; max-height: 88vh; display: flex; flex-direction: column; } .dicebear-modal .modal-body { overflow-y: auto; } .dicebear-ops { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; } .dicebear-ops .skill-search { flex: 1; min-width: 180px; } .dicebear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; } .dicebear-card { border: 2px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; cursor: pointer; transition: all .15s; text-align: center; } .dicebear-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(79,70,229,.12); transform: translateY(-1px); } .dicebear-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,.25); } .dicebear-svg { aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #f3f4f6; } .dicebear-svg svg { width: 100%; height: 100%; } .dicebear-name { font-size: 11px; color: var(--text-dim); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dicebear-tip { font-size: 11px; color: var(--text-dim); margin-top: 10px; }