/* ============================================================ box.css — 3D 云设计编辑器(全面对标包小盒:白底 + 橙主色) ============================================================ */ :root { --bx-orange: #ff6a00; --bx-orange-deep: #f25c05; --bx-ink: #26211a; --bx-sub: #7a746a; --bx-line: #ececec; --bx-canvas: #ebebeb; --bx-rail-w: 64px; --bx-panel-w: 280px; --bx-props-w: 252px; --bx-top-h: 52px; } html, body { height: 100%; } .bx-body { margin: 0; background: #fff; color: var(--bx-ink); font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; overflow: hidden; display: flex; flex-direction: column; height: 100vh; } .bx-body button { font-family: inherit; } /* ---------------- 顶栏 ---------------- */ .bx-topbar { height: var(--bx-top-h); flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--bx-line); position: relative; z-index: 30; } .bx-brand { display: flex; align-items: center; gap: 10px; } .bx-brand .logo { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--bx-ink); } .bx-brand .logo-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; } .bx-brand .logo-mark svg { width: 20px; height: 20px; } .bx-brand .logo-mark svg { width: 26px; height: 26px; } .bx-brand .logo-type { display: flex; flex-direction: column; line-height: 1.05; } .bx-brand .logo-type b { font-size: 15px; } .bx-brand .logo-type span { font-size: 8.5px; letter-spacing: 1.6px; color: var(--bx-orange); font-weight: 700; } .bx-file-menu-wrap { position: relative; } .bx-file-btn { border: none; background: none; font-size: 14px; color: var(--bx-ink); padding: 6px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; } .bx-file-btn:hover { background: #f5f5f5; } .bx-file-btn .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #999; display: inline-block; } .bx-file-menu { position: absolute; top: 42px; left: 0; width: 216px; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.13); padding: 6px; z-index: 60; } .bx-file-menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; font-size: 13.5px; border-radius: 7px; cursor: pointer; color: var(--bx-ink); } .bx-file-menu button:hover { background: #f6f6f6; } .bx-file-name { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 7px; } .bx-file-name:hover { background: #f6f6f6; } .bx-file-name .edit-ic { width: 14px; height: 14px; color: var(--bx-sub); } .bx-file-sep { height: 1px; background: var(--bx-line); margin: 5px 8px; } .pro { font-style: normal; background: linear-gradient(135deg, #7b5cff, #b44bff); color: #fff; font-size: 9px; font-weight: 800; border-radius: 4px; padding: 1.5px 4px; margin-left: 5px; vertical-align: 1px; } .bx-top-tools { display: flex; align-items: center; gap: 2px; margin-left: 4px; } .tb-btn { width: 32px; height: 32px; border: none; background: none; border-radius: 7px; cursor: pointer; display: grid; place-items: center; color: #4c473f; } .tb-btn svg { width: 17px; height: 17px; } .tb-btn:hover { background: #f5f5f5; } .tb-btn:disabled { opacity: 0.3; cursor: default; } .tb-btn:disabled:hover { background: none; } .bx-mode-switch { margin: 0 auto; background: #f1f1f1; border-radius: 8px; padding: 3px; display: flex; gap: 2px; } .bx-mode-switch button { border: none; background: none; padding: 6px 20px; font-size: 13.5px; border-radius: 6px; cursor: pointer; color: #555; font-weight: 600; } .bx-mode-switch button.on { background: var(--bx-orange); color: #fff; } .bx-top-actions { display: flex; align-items: center; gap: 8px; } .btn-print { display: flex; align-items: center; gap: 6px; background: var(--bx-orange); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; } .btn-print:hover { background: var(--bx-orange-deep); } .btn-print svg { width: 15px; height: 15px; } .btn-plain, .btn-export { border: 1px solid #e2e2e2; background: #fff; color: var(--bx-ink); border-radius: 8px; padding: 7.5px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; } .btn-plain:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .btn-export { border-color: var(--bx-orange); color: var(--bx-orange); } .btn-export:hover { background: #fff4ec; } .bx-avatar { width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff1e5; cursor: pointer; display: grid; place-items: center; padding: 0; } .bx-avatar svg { width: 24px; height: 24px; } /* ---------------- 主区 ---------------- */ .bx-main { flex: 1; display: flex; min-height: 0; } /* 左图标栏 */ .bx-rail { width: var(--bx-rail-w); flex: 0 0 auto; background: #fff; border-right: 1px solid var(--bx-line); display: flex; flex-direction: column; padding-top: 6px; z-index: 20; } .bx-rail button { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; cursor: pointer; color: #6b665e; font-size: 11px; } .bx-rail button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; } .bx-rail button span { font-size: 11px; } .bx-rail button:hover { color: var(--bx-orange); } .bx-rail button.on { color: var(--bx-orange); font-weight: 700; } /* 左面板 */ .bx-panel { width: var(--bx-panel-w); flex: 0 0 auto; background: #fff; border-right: 1px solid var(--bx-line); overflow-y: auto; z-index: 15; } .bx-panel-body { padding: 14px 14px 24px; } .bx-panel-body::-webkit-scrollbar, .bx-props-body::-webkit-scrollbar { width: 5px; } .bx-panel-body::-webkit-scrollbar-thumb, .bx-props-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; } /* 通用小组件 */ .bx-import-cad { display: flex; align-items: center; gap: 10px; background: #fff4ec; border: 1px solid #ffd9bd; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; cursor: pointer; } .bx-import-cad:hover { background: #ffeddd; } .bx-import-cad .cad-ic { background: var(--bx-orange); color: #fff; font-size: 9px; font-weight: 800; border-radius: 5px; padding: 4px 5px; letter-spacing: 0.5px; } .bx-import-cad b { display: block; font-size: 13px; } .bx-import-cad b .q { margin-left: 3px; } .bx-import-cad span:last-child { font-size: 11px; color: var(--bx-sub); } .q { font-style: normal; width: 13px; height: 13px; border-radius: 50%; background: #e8e3da; color: #8a8478; font-size: 9px; display: inline-grid; place-items: center; vertical-align: 1px; } .bx-sub-tabs { display: flex; gap: 16px; margin: 14px 2px 10px; } .bx-sub-tabs button { border: none; background: none; font-size: 13.5px; color: var(--bx-sub); cursor: pointer; padding: 2px 0; } .bx-sub-tabs button.on { color: var(--bx-orange); font-weight: 700; } .bx-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; } .bx-chips button { border: 1px solid #e4e4e4; background: #fff; border-radius: 7px; padding: 5.5px 12px; font-size: 12.5px; cursor: pointer; color: #4c473f; } .bx-chips button:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .bx-chips button.on { background: var(--bx-orange); border-color: var(--bx-orange); color: #fff; } .bx-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bx-box-card { position: relative; border: 1.5px solid #eee; background: #fff; border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; } .bx-box-card:hover { border-color: #ffc79b; } .bx-box-card.on { border-color: var(--bx-orange); } .bx-box-card .thumb { display: block; height: 74px; border-radius: 7px; background: #f7f7f7; overflow: hidden; } .bx-box-card .thumb svg { width: 100%; height: 100%; } .bx-box-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; } .bx-box-card .meta b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-box-card .meta .no { font-size: 10.5px; color: #b0aaa0; } .bx-box-card .flag { position: absolute; left: 8px; top: 8px; background: rgba(40,36,30,.62); color: #fff; font-size: 9.5px; border-radius: 4px; padding: 2px 5px; font-style: normal; } .bx-box-card .flag.off { top: auto; bottom: 30px; background: #b6b0a6; } .bx-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bx-tpl-card { position: relative; border: 1.5px solid transparent; border-radius: 10px; height: 104px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; text-align: left; background-size: cover; } .bx-tpl-card:hover { border-color: var(--bx-orange); } .bx-tpl-card b { font-size: 13.5px; line-height: 1.25; } .bx-tpl-card .nm { font-size: 10.5px; opacity: 0.72; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-tpl-card .pro { position: absolute; right: 7px; top: 7px; margin: 0; } .bx-asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .bx-asset-card { position: relative; text-align: center; } .bx-asset-card .thumb { width: 100%; aspect-ratio: 1; border: 1px solid #efefef; border-radius: 9px; background: #fafafa; display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden; } .bx-asset-card .thumb:hover { border-color: var(--bx-orange); } .bx-asset-card .thumb svg, .bx-asset-card .thumb img { width: 62%; height: 62%; } .bx-asset-card .nm { display: block; font-size: 10px; color: var(--bx-sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-asset-card .fav { position: absolute; right: 2px; top: 2px; border: none; background: none; cursor: pointer; font-size: 12px; color: #c9c3b8; padding: 3px; } .bx-asset-card .fav.on { color: var(--bx-orange); } .bx-primary-btn { width: 100%; background: #fff4ec; color: var(--bx-orange); border: 1px solid #ffd0a6; border-radius: 9px; padding: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; } .bx-primary-btn:hover { background: #ffeddd; } .bx-sec-title { font-size: 13px; font-weight: 700; margin: 16px 0 9px; } .bx-basic-texts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .bx-basic-text { border: 1px solid #eee; background: #fafafa; border-radius: 8px; height: 52px; font-size: 12.5px; cursor: pointer; color: var(--bx-ink); } .bx-basic-text:hover { border-color: var(--bx-orange); } .bx-combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bx-combo-card { border: 1px solid #eee; border-radius: 9px; background: #fff; padding: 10px; text-align: left; cursor: pointer; } .bx-combo-card:hover { border-color: var(--bx-orange); } .bx-combo-card b { display: block; font-size: 12.5px; } .bx-combo-card span { display: block; font-size: 10px; color: var(--bx-sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-combo-card em { display: block; font-style: normal; font-size: 10px; color: #c9c3b8; margin-top: 5px; } .bx-tool-card { display: flex; align-items: center; gap: 12px; border: 1px solid #efefef; background: #fafafa; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; width: 100%; } .bx-tool-card:hover { border-color: var(--bx-orange); } .bx-tool-card .ic { width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid #eee; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: -1px; } .bx-tool-card .ic.qr { font-size: 20px; } .bx-tool-card b { display: block; font-size: 13.5px; text-align: left; } .bx-tool-card span { font-size: 11px; color: var(--bx-sub); text-align: left; } .bx-tool-card div { min-width: 0; } .bx-upload-empty { text-align: center; padding: 26px 0 10px; color: #b6b0a6; font-size: 12px; } .box-illus { width: 74px; height: 58px; margin: 0 auto 10px; border-radius: 8px; position: relative; background: linear-gradient(135deg, #f3efe6, #e8e2d4); } .box-illus::after { content: ''; position: absolute; inset: 12px 16px; border: 2px dashed #d8d2c4; border-radius: 5px; } .bx-capacity { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--bx-sub); margin-top: 14px; } .bx-capacity a { color: var(--bx-orange); cursor: pointer; } .bx-cap-bar { height: 4px; background: #f0ede7; border-radius: 3px; margin-top: 7px; overflow: hidden; } .bx-cap-bar i { display: block; height: 100%; background: var(--bx-orange); border-radius: 3px; } .bx-layer-list { display: flex; flex-direction: column; gap: 6px; } .bx-layer-row { display: flex; align-items: center; gap: 4px; border: 1px solid #efefef; border-radius: 8px; padding: 7px 9px; background: #fff; } .bx-layer-row.on { border-color: var(--bx-orange); background: #fff8f3; } .bx-layer-row .t { flex: 1; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-layer-row button { border: none; background: none; cursor: pointer; font-size: 11px; color: #8a8478; padding: 2px 4px; } .bx-layer-row button:hover { color: var(--bx-orange); } .bx-layer-row button.del:hover { color: #e5484d; } .bx-layer-empty { text-align: center; color: #c9c3b8; font-size: 12.5px; padding: 40px 0; } .bx-layer-empty .stack { display: block; width: 44px; height: 34px; margin: 0 auto 10px; position: relative; border: 2px solid #d8d2c4; border-radius: 6px; } .bx-layer-empty .stack::before { content: ''; position: absolute; inset: -9px 4px auto 4px; height: 20px; border: 2px solid #d8d2c4; border-bottom: none; border-radius: 6px 6px 0 0; } /* ---------------- 画布区 ---------------- */ .bx-stage { flex: 1; position: relative; min-width: 0; background: var(--bx-canvas); } .bx-flat { position: absolute; inset: 0; overflow: auto; } .bx-flat-inner { min-width: 100%; min-height: 100%; display: grid; place-items: center; padding: 40px; } .dieline-wrap { transform-origin: center center; } .dieline-panel { stroke: #7d88c4; stroke-width: 0.8; } .dieline-fold { stroke: #9db4d8; stroke-width: 0.7; stroke-dasharray: 4 2.6; fill: none; } .dieline-hit { cursor: pointer; } .dieline-hit:hover { fill: rgba(255,106,0,.06); } .dieline-face-label { font-size: 13px; fill: #b3ada2; text-anchor: middle; pointer-events: none; } .dieline-dim path { stroke: #b0aaa0; stroke-width: 0.7; fill: none; } .dieline-label { font-size: 11px; fill: #8a8478; } .dieline-cut-label { font-size: 11px; fill: #8a8478; } .dieline-bleed { fill: none; stroke: #e5484d; stroke-width: 0.6; stroke-dasharray: 5 3; } .bx-item-hit { cursor: move; fill: transparent; } .bx-item-hit:hover { stroke: var(--bx-orange); stroke-width: 1; } .bx-canvas-corner { position: absolute; bottom: 16px; display: flex; gap: 6px; z-index: 10; } .bx-canvas-corner.left { left: 16px; } .bx-canvas-corner.right { right: 16px; align-items: center; } .bx-canvas-corner button, .bx-canvas-corner span { height: 32px; min-width: 32px; border: 1px solid #dcdcdc; background: #fff; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #4c473f; padding: 0 8px; cursor: pointer; } .bx-canvas-corner button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; } .bx-canvas-corner button:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .bx-canvas-corner button.on { background: var(--bx-orange); border-color: var(--bx-orange); color: #fff; } .bx-canvas-corner span { border: none; background: none; min-width: 44px; font-size: 12px; color: #6b665e; } /* 外侧/内侧浮窗 */ .bx-side-float { position: absolute; right: 18px; bottom: 64px; width: 200px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 10px; z-index: 12; } .side-tabs { display: flex; align-items: center; justify-content: center; gap: 10px; } .side-tabs button { border: none; background: none; font-size: 13px; cursor: pointer; color: #8a8478; padding: 2px 4px; } .side-tabs button.on { color: var(--bx-orange); font-weight: 700; } .side-tabs i { color: #e4e0d8; font-style: normal; } .side-thumb { height: 84px; border-radius: 8px; background: #f7f7f7; margin-top: 8px; overflow: hidden; display: grid; place-items: center; } .side-thumb svg { height: 100%; width: 100%; } .side-model { display: block; text-align: center; font-size: 10.5px; color: #b0aaa0; margin-top: 6px; text-decoration: none; } .side-model:hover { color: var(--bx-orange); } /* 迷你 3D(右侧面板顶部) */ .bx-mini3d { position: relative; height: 190px; background: linear-gradient(180deg, #f2f0eb, #e9e6df); overflow: hidden; flex: 0 0 auto; } .mini-stage { position: absolute; inset: 0; } .mini-ctrl { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 5px 8px; z-index: 3; } .mini-ctrl button { border: none; background: none; cursor: pointer; color: #4c473f; font-size: 11px; padding: 2px 3px; display: grid; place-items: center; } .mini-ctrl button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; } .mini-ctrl .ml, .mini-ctrl .mr { font-size: 10px; color: #8a8478; } .mini-ctrl input[type="range"] { flex: 1; accent-color: var(--bx-orange); height: 3px; } /* 3D 视图(编辑器作用域,不影响落地页 CSS 3D 演示) */ .bx-3dview { position: absolute; inset: 0; } .bx-3dview .box-scene { position: absolute; inset: 0; z-index: 1; cursor: grab; } .bx-3dview .box-scene:active { cursor: grabbing; } .box3d-canvas { position: absolute; inset: 0; } .bx-3dview .box3d { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; } .bx-3dview .bface { position: absolute; left: 50%; top: 50%; backface-visibility: visible; box-shadow: inset 0 0 0 1px rgba(23,20,15,.08); } .bx-3dview .box-shadow { position: absolute; left: 50%; bottom: 12%; width: 300px; height: 34px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(23,20,15,.18), transparent 65%); } .bx-3d-ctrl { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; z-index: 10; } .ctrl-color { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 6px 8px; box-shadow: 0 4px 16px rgba(0,0,0,.1); } .cc-main { border: none; background: none; cursor: pointer; color: #4c473f; display: grid; place-items: center; padding: 0; } .cc-main svg { width: 19px; height: 19px; } .cc-cur { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e2e2; background: #fbf7ee; } .cc-pop { position: absolute; bottom: 46px; left: 0; width: 208px; background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 12px; z-index: 20; } .cc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .cc-picker { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #eee; border-radius: 7px; cursor: pointer; color: var(--bx-orange); } .cc-picker svg { width: 15px; height: 15px; } .cc-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .cc-swatch { width: 22px; height: 22px; border-radius: 50%; display: inline-block; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #e4e4e4; } .cc-swatch.cur { box-shadow: 0 0 0 2px var(--bx-orange); } .cc-swatch .none, .bx-swatch .none, .bx-tex .none { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, transparent 44%, #e5484d 44%, #e5484d 56%, transparent 56%); border: 1px solid #ddd; } .cc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center; } .ctrl-fold { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 10px; padding: 7px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.1); } .ctrl-fold button { border: none; background: none; cursor: pointer; color: #4c473f; font-size: 12px; display: grid; place-items: center; padding: 0; } .ctrl-fold button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; } .ctrl-fold .fl, .ctrl-fold .fr { font-size: 11px; color: #8a8478; } .ctrl-fold input[type="range"] { width: 150px; accent-color: var(--bx-orange); } .ctrl-4k { background: #fff; border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.1); color: var(--bx-ink); white-space: nowrap; } .ctrl-4k em { font-style: normal; background: #17140f; color: #ffd08a; font-size: 9px; font-weight: 800; border-radius: 4px; padding: 2px 5px; margin-left: 4px; } .ctrl-4k:hover { color: var(--bx-orange); } /* ---------------- 右侧属性面板 ---------------- */ .bx-props { width: var(--bx-props-w); flex: 0 0 auto; background: #fff; border-left: 1px solid var(--bx-line); display: flex; flex-direction: column; overflow-y: auto; z-index: 15; } .bx-props-body { padding: 0 0 24px; } .bx-props-sec { padding: 13px 14px; border-bottom: 1px solid #f4f2ee; position: relative; } .bx-props-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .bx-props-head-row b { font-size: 13.5px; } .bx-props-head-row button { border: none; background: none; color: var(--bx-sub); font-size: 12px; cursor: pointer; } .bx-props-head-row button:hover { color: var(--bx-orange); } .bx-props-head-row .dim { font-size: 11px; color: #b0aaa0; font-weight: 400; } .bx-edit-btn { position: absolute; right: 14px; top: 12px; background: #fff4ec; color: var(--bx-orange); border: 1px solid #ffd0a6; border-radius: 7px; padding: 3px 12px; font-size: 12px; cursor: pointer; } .bx-edit-btn:hover { background: var(--bx-orange); color: #fff; } .bx-kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--bx-sub); padding: 4px 0; } .bx-kv b { color: var(--bx-ink); font-weight: 600; text-align: right; } .bx-kv.row { display: block; } .bx-kv.row b { display: block; margin-top: 4px; } .bx-color-tabs { display: flex; background: #f3f1ec; border-radius: 8px; padding: 3px; margin-bottom: 11px; } .bx-color-tabs button { flex: 1; border: none; background: none; padding: 6px; font-size: 12.5px; border-radius: 6px; cursor: pointer; color: #6b665e; } .bx-color-tabs button.on { background: #fff; color: var(--bx-ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); } .bx-swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; } .bx-swatch { aspect-ratio: 1; border-radius: 7px; border: 1.5px solid rgba(0,0,0,.06); cursor: pointer; padding: 0; position: relative; overflow: hidden; background: none; } .bx-swatch.on { outline: 2px solid var(--bx-orange); outline-offset: 1px; } .bx-swatch.picker { display: grid; place-items: center; } .bx-swatch.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .bx-swatch .grad { display: block; width: 100%; height: 100%; background: conic-gradient(#ff5c5c, #ffb84d, #ffe14d, #7dde6a, #4db8ff, #b44bff, #ff5c5c); } .bx-tex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .bx-tex { border: 1.5px solid #eee; border-radius: 9px; overflow: hidden; cursor: pointer; padding: 0; background: #fff; position: relative; height: 76px; } .bx-tex img { width: 100%; height: 58px; object-fit: cover; display: block; } .bx-tex span { display: block; font-size: 10.5px; color: var(--bx-sub); padding: 3px 6px; text-align: left; } .bx-tex.on { border-color: var(--bx-orange); } .bx-tex.clear { display: grid; place-items: center; color: var(--bx-sub); font-size: 11px; background: #fafafa; } .bx-item-preview { width: 100%; max-height: 90px; object-fit: contain; border-radius: 8px; background: #fafafa; margin-bottom: 8px; } .bx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; } .p-field label { display: block; font-size: 11.5px; color: var(--bx-sub); margin-bottom: 4px; } /* 动效面板 */ .bx-anim-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 8px; } .bx-anim-card { display: flex; gap: 10px; align-items: center; border: 1.5px solid #f0eee9; border-radius: 10px; padding: 7px; } .bx-anim-card.on { border-color: var(--bx-orange); background: #fff8f3; } .bx-anim-play { position: relative; width: 74px; height: 56px; border-radius: 8px; overflow: hidden; cursor: pointer; border: none; background: #e9e6df; padding: 0; flex: 0 0 auto; } .bx-anim-play .dur { position: absolute; left: 4px; top: 4px; background: rgba(23,20,15,.55); color: #fff; font-size: 9px; border-radius: 4px; padding: 1px 4px; z-index: 2; } .anim-illus { display: block; width: 100%; height: 100%; position: relative; } .anim-illus::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent); } .anim-illus.fold::before, .anim-illus.foldBounce::before { content: ''; position: absolute; left: 30%; right: 30%; top: 18%; bottom: 18%; border: 2px solid #b9b2a4; border-radius: 3px; } .anim-illus.spinFlat::before, .anim-illus.spinTop::before { content: ''; position: absolute; left: 26%; top: 26%; width: 48%; height: 48%; border: 2px solid #b9b2a4; border-radius: 50%; } .anim-illus.dropSpin::before, .anim-illus.dropZoom::before { content: ''; position: absolute; left: 32%; top: 14%; width: 36%; height: 62%; border: 2px solid #b9b2a4; border-radius: 3px; transform: rotate(18deg); } .anim-illus.zoomIn::before, .anim-illus.zoomDetail::before { content: ''; position: absolute; left: 36%; top: 24%; width: 28%; height: 52%; border: 2px solid #b9b2a4; border-radius: 2px; } .anim-illus.fromLeft::before { content: ''; position: absolute; left: 12%; top: 26%; width: 44%; height: 48%; border: 2px solid #b9b2a4; border-radius: 3px; } .anim-illus.curveIn::before { content: ''; position: absolute; left: 30%; top: 20%; width: 40%; height: 40%; border: 2px solid #b9b2a4; border-radius: 50% 50% 0 0; } .bx-anim-meta { flex: 1; min-width: 0; } .bx-anim-meta b { display: block; font-size: 12.5px; margin-bottom: 4px; } .bx-anim-meta button { border: 1px solid #eee; background: #fff; border-radius: 6px; font-size: 11px; padding: 3px 9px; cursor: pointer; color: var(--bx-sub); } .bx-anim-meta button:hover { color: var(--bx-orange); border-color: var(--bx-orange); } .bx-ghost-btn { border: 1px solid #e2e2e2; background: #fff; border-radius: 7px; padding: 6px 0; font-size: 12.5px; cursor: pointer; color: var(--bx-ink); width: 100%; } .bx-ghost-btn:hover { border-color: var(--bx-orange); color: var(--bx-orange); } /* ---------------- 弹窗公共 ---------------- */ #bxModals .ant-modal-header { border-bottom: none; padding-bottom: 0; } #bxModals .ant-modal-title { font-weight: 700; } /* 智能参数宝 */ .sp-wrap { display: flex; gap: 0; min-height: 480px; margin: -12px -24px -6px; } .sp-left { flex: 1.35; background: #f4f4f6; padding: 18px; overflow: auto; } .sp-dieline svg { width: 100%; height: auto; } .sp-right { flex: 1; padding: 16px 18px; overflow-y: auto; max-height: 560px; border-left: 1px solid var(--bx-line); } .sp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; } .sp-row label { width: 104px; font-size: 12.5px; color: var(--bx-sub); flex: 0 0 auto; } .sp-row .unit { font-size: 12px; color: #b0aaa0; width: 20px; } .sp-group-title { font-size: 13px; font-weight: 700; background: #f7f5f0; border-radius: 6px; padding: 6px 10px; margin: 12px 0 10px; } /* 导出弹窗 */ .ex-wrap { margin: -20px -24px -12px; } .ex-tabs { display: flex; align-items: center; gap: 20px; padding: 14px 22px 0; border-bottom: 1px solid var(--bx-line); } .ex-tabs button { border: none; background: none; font-size: 14.5px; padding: 8px 2px 10px; cursor: pointer; color: var(--bx-sub); position: relative; } .ex-tabs button.on { color: var(--bx-orange); font-weight: 700; } .ex-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--bx-orange); border-radius: 2px; } .ex-log-btn { margin-left: auto; color: var(--bx-orange); font-size: 13px !important; } .ex-close { font-size: 16px !important; color: #8a8478 !important; } .ex-file-body { display: flex; min-height: 480px; } .ex-preview { flex: 1.4; background: #f4f4f6; margin: 18px 0 18px 22px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; padding: 12px; position: relative; } .ex-preview svg { max-width: 100%; max-height: 100%; } .ex-preview .dieline-panel { stroke: #7d88c4; } .ex-side { width: 300px; padding: 18px 22px; overflow-y: auto; max-height: 560px; } .ex-label { font-size: 12.5px; font-weight: 700; margin: 14px 0 8px; } .ex-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .ex-type-grid button { border: 1.5px solid #eee; background: #fff; border-radius: 9px; padding: 13px 12px; font-size: 13.5px; cursor: pointer; text-align: left; color: var(--bx-ink); } .ex-type-grid button:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .ex-type-grid em { font-style: normal; float: right; font-size: 9px; font-weight: 800; border-radius: 4px; padding: 1px 4px; color: #fff; background: #e5484d; } .ex-mode-row { display: flex; gap: 9px; } .ex-mode-row button { flex: 1; border: 1.5px solid #eee; border-radius: 8px; background: #fff; padding: 8px; font-size: 12.5px; cursor: pointer; } .ex-mode-row button.on { border-color: var(--bx-orange); color: var(--bx-orange); } .ex-note { font-size: 11px; color: #b0aaa0; margin: 8px 0 0; } .ex-res { display: flex; align-items: baseline; gap: 8px; width: 100%; border: 1.5px solid #eee; background: #fff; border-radius: 9px; padding: 11px 13px; margin-bottom: 8px; cursor: pointer; } .ex-res b { font-size: 15px; } .ex-res span { font-size: 11px; color: #b0aaa0; } .ex-res em { font-style: normal; margin-left: auto; font-size: 11px; color: var(--bx-sub); } .ex-res.on { border-color: var(--bx-orange); } .ex-primary { width: 100%; background: var(--bx-orange); border: none; color: #fff; font-size: 14.5px; font-weight: 700; border-radius: 9px; padding: 12px; cursor: pointer; margin-top: 16px; } .ex-primary:hover { background: var(--bx-orange-deep); } .ex-fold-row { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.94); border-radius: 8px; padding: 6px 12px; z-index: 2; } .ex-fold-row span { font-size: 11px; color: #8a8478; } .ex-fold-row input { width: 130px; accent-color: var(--bx-orange); } .ex-anim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .ex-anim { position: relative; height: 76px; border: 1.5px solid #eee; border-radius: 9px; background: #f2f0eb; cursor: pointer; padding: 0; overflow: hidden; } .ex-anim em { position: absolute; left: 5px; top: 5px; background: rgba(23,20,15,.55); color: #fff; font-size: 9px; border-radius: 4px; padding: 1px 5px; font-style: normal; z-index: 2; } .ex-anim.on { border-color: var(--bx-orange); } .ex-export-log { max-height: 320px; overflow-y: auto; } .ex-export-log p, .bx-export-log p { font-size: 12.5px; color: var(--bx-sub); padding: 5px 0; border-bottom: 1px dashed #f0ede7; } /* 印前检测 */ .pc-wrap { text-align: center; padding: 4px 8px 10px; } .pc-title { font-size: 16px; font-weight: 700; } .pc-title .free { font-style: normal; color: var(--bx-orange); background: #fff4ec; font-size: 10px; border-radius: 4px; padding: 2px 6px; margin: 0 4px; } .pc-ring { width: 110px; height: 110px; margin: 18px auto; border-radius: 50%; background: conic-gradient(var(--bx-orange) calc(var(--p, 0) * 1%), #f0ede7 0); display: grid; place-items: center; position: relative; } .pc-ring::before { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; } .pc-ring b { position: relative; font-size: 20px; } .pc-sub { color: var(--bx-sub); font-size: 12.5px; } .pc-checks { text-align: left; margin-top: 14px; } .pc-checks p { font-size: 12.5px; padding: 5px 8px; border-radius: 6px; margin: 0; } .pc-checks p.ok { color: #4caf78; background: #f2faf5; } .pc-checks p.warn { color: #d98a1f; background: #fdf6ea; } /* 印刷报价 */ .pq-wrap { margin: -12px -24px -14px; } .pq-head { display: flex; align-items: baseline; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--bx-line); } .pq-head b { font-size: 17px; } .pq-head span { color: var(--bx-sub); font-size: 12.5px; } .pq-back { margin-left: auto; border: none; background: #fff4ec; color: var(--bx-orange); border-radius: 7px; padding: 7px 13px; cursor: pointer; font-size: 13px; font-weight: 600; } .pq-cols { display: flex; } .pq-left { width: 260px; padding: 18px 20px; border-right: 1px solid var(--bx-line); } .pq-thumb { background: #f4f4f6; border-radius: 10px; padding: 12px; margin-bottom: 12px; } .pq-thumb svg { width: 100%; height: auto; } .pq-thumb .dieline-panel { stroke: #7d88c4; } .pq-name { font-size: 15px; } .pq-kv { font-size: 12.5px; color: var(--bx-sub); margin-top: 7px; } .pq-kv.row { display: block; } .pq-kv.row b { display: block; margin-top: 3px; color: var(--bx-ink); } .pq-right { flex: 1; padding: 18px 24px; } .pq-sec { font-size: 14.5px; font-weight: 700; margin: 6px 0 10px; } .pq-qty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; } .pq-qty-grid button, .pq-chip-row button { border: 1.5px solid #eee; background: #fff; border-radius: 8px; padding: 9px; font-size: 13px; cursor: pointer; } .pq-qty-grid button:hover, .pq-chip-row button:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .pq-qty-grid button.on { border-color: var(--bx-orange); color: var(--bx-orange); background: #fff8f3; } .pq-custom { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .pq-custom span { font-size: 12.5px; color: var(--bx-sub); } .pq-chip-row { display: flex; gap: 9px; margin: 4px 0 12px; } .pq-chip-row button.on { border-color: var(--bx-orange); color: var(--bx-orange); background: #fff8f3; } .pq-contact { display: grid; gap: 9px; margin-bottom: 12px; } .pq-contact .ant-input { border-radius: 8px; } .pq-order[disabled] { opacity: 0.6; cursor: not-allowed; } .pq-foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--bx-line); } .pq-service { border: 1px solid #eee; background: #fff; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; } .pq-lead { font-size: 12.5px; color: var(--bx-sub); } .pq-price { color: var(--bx-orange); font-size: 17px; } .pq-price span { font-size: 11.5px; color: var(--bx-sub); font-weight: 400; } .pq-detail { border: 1px solid #e2e2e2; background: #fff; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; margin-left: auto; } .pq-order { border: none; background: var(--bx-orange); color: #fff; border-radius: 8px; padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 700; } .pq-order:hover { background: var(--bx-orange-deep); } /* 文件方案 / 历史 */ .bx-plan-list { max-height: 360px; overflow-y: auto; } .bx-plan-row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #f4f2ee; } .bx-plan-row .t { flex: 1; min-width: 0; } .bx-plan-row .t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bx-plan-row .t em { font-style: normal; font-size: 11px; color: #b0aaa0; } .bx-plan-row button { border: 1px solid #e2e2e2; background: #fff; border-radius: 7px; padding: 5px 12px; cursor: pointer; font-size: 12px; } .bx-plan-row button:hover { border-color: var(--bx-orange); color: var(--bx-orange); } .bx-plan-row button.del:hover { border-color: #e5484d; color: #e5484d; } .bx-help-steps p { font-size: 13px; line-height: 1.9; color: #4c473f; margin: 0; } /* 响应式 */ @media (max-width: 1280px) { :root { --bx-panel-w: 246px; --bx-props-w: 232px; } } @media (max-width: 1080px) { .bx-panel { position: absolute; left: var(--bx-rail-w); top: var(--bx-top-h); bottom: 0; box-shadow: 8px 0 24px rgba(0,0,0,.08); } .bx-props { position: absolute; right: 0; top: var(--bx-top-h); bottom: 0; box-shadow: -8px 0 24px rgba(0,0,0,.08); } .bx-main { position: relative; } } /* 图层顺序操作 */ .bx-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bx-layer-row button { padding: 2px 3px; font-size: 10.5px; } /* 迷你 3D 自动播放按钮 */ .mini-ctrl #bxMiniAuto { position: relative; width: 24px !important; height: 24px; padding: 0; flex: none; border-radius: 50%; background: #f0ede7; color: #8a8478; } .mini-ctrl #bxMiniAuto.on { background: var(--bx-orange); color: #fff; } .mini-ctrl #bxMiniAuto svg { width: 12px; height: 12px; fill: currentColor; display: block; margin: 0 auto; } .mini-ctrl #bxMiniAuto .ic-pause { display: none; } .mini-ctrl #bxMiniAuto.on .ic-pause { display: block; } .mini-ctrl #bxMiniAuto.on .ic-play { display: none; } .mini-ctrl #bxMiniAuto:not(.on) .ic-play { display: block; } /* 图层拖拽排序 */ .bx-layer-row { touch-action: none; } .bx-layer-row.dragging { opacity: 0.35; } .bx-layer-row.drop-above { box-shadow: inset 0 2.5px 0 var(--bx-orange); } .bx-layer-row.drop-below { box-shadow: inset 0 -2.5px 0 var(--bx-orange); } /* 迷你 3D 自动播放:CSS 合成器动画(不受 JS 节流/冻结影响,页面可见即持续旋转) */ .mini-stage { perspective: 950px; perspective-origin: 50% 45%; } .mini-stage canvas { will-change: transform; } .mini-stage.autoplay canvas { animation: miniSway 3.2s ease-in-out infinite alternate; transform-style: preserve-3d; } /* 轻微摆动展示:合成器驱动持续可见,且任何相位都不会把画布转到侧对(窄条) */ @keyframes miniSway { from { transform: rotateY(-13deg); } to { transform: rotateY(13deg); } } /* 参考潘通色(防侵权叫法:不称潘通色;实际以打样效果为准) */ .bx-pms-title { font-size: 11px; font-weight: 700; color: #4c473f; margin: 12px 0 7px; } .bx-pms-grid { display: flex; flex-wrap: wrap; gap: 6px; } .bx-pms-dot { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.10); cursor: pointer; padding: 0; transition: transform .15s; } .bx-pms-dot:hover { transform: scale(1.15); } .bx-pms-dot.on { outline: 2px solid var(--bx-orange); outline-offset: 1.5px; } .bx-pms-note { font-size: 10px; color: #b0aaa0; line-height: 1.5; margin-top: 8px; } .cc-pms-note { grid-column: 1 / -1; font-size: 9px; color: #b0aaa0; line-height: 1.5; margin-top: 6px; }