box.css 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. /* ============================================================
  2. box.css — 3D 云设计编辑器(全面对标包小盒:白底 + 橙主色)
  3. ============================================================ */
  4. :root {
  5. --bx-orange: #ff6a00;
  6. --bx-orange-deep: #f25c05;
  7. --bx-ink: #26211a;
  8. --bx-sub: #7a746a;
  9. --bx-line: #ececec;
  10. --bx-canvas: #ebebeb;
  11. --bx-rail-w: 64px;
  12. --bx-panel-w: 280px;
  13. --bx-props-w: 252px;
  14. --bx-top-h: 52px;
  15. }
  16. html, body { height: 100%; }
  17. .bx-body {
  18. margin: 0;
  19. background: #fff;
  20. color: var(--bx-ink);
  21. font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  22. overflow: hidden;
  23. display: flex;
  24. flex-direction: column;
  25. height: 100vh;
  26. }
  27. .bx-body button { font-family: inherit; }
  28. /* ---------------- 顶栏 ---------------- */
  29. .bx-topbar {
  30. height: var(--bx-top-h);
  31. flex: 0 0 auto;
  32. display: flex;
  33. align-items: center;
  34. gap: 10px;
  35. padding: 0 14px;
  36. background: #fff;
  37. border-bottom: 1px solid var(--bx-line);
  38. position: relative;
  39. z-index: 30;
  40. }
  41. .bx-brand { display: flex; align-items: center; gap: 10px; }
  42. .bx-brand .logo { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--bx-ink); }
  43. .bx-brand .logo-img { height: 28px; }
  44. .bx-file-menu-wrap { position: relative; }
  45. .bx-file-btn {
  46. border: none; background: none; font-size: 14px; color: var(--bx-ink);
  47. padding: 6px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px;
  48. }
  49. .bx-file-btn:hover { background: #f5f5f5; }
  50. .bx-file-btn .caret {
  51. width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  52. border-top: 5px solid #999; display: inline-block;
  53. }
  54. .bx-file-menu {
  55. position: absolute; top: 42px; left: 0; width: 216px; background: #fff;
  56. border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.13); padding: 6px; z-index: 60;
  57. }
  58. .bx-file-menu button {
  59. display: block; width: 100%; text-align: left; border: none; background: none;
  60. padding: 9px 12px; font-size: 13.5px; border-radius: 7px; cursor: pointer; color: var(--bx-ink);
  61. }
  62. .bx-file-menu button:hover { background: #f6f6f6; }
  63. .bx-file-name {
  64. display: flex; align-items: center; justify-content: space-between;
  65. padding: 9px 12px; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 7px;
  66. }
  67. .bx-file-name:hover { background: #f6f6f6; }
  68. .bx-file-name .edit-ic { width: 14px; height: 14px; color: var(--bx-sub); }
  69. .bx-file-sep { height: 1px; background: var(--bx-line); margin: 5px 8px; }
  70. .pro {
  71. font-style: normal; background: linear-gradient(135deg, #7b5cff, #b44bff);
  72. color: #fff; font-size: 9px; font-weight: 800; border-radius: 4px; padding: 1.5px 4px; margin-left: 5px;
  73. vertical-align: 1px;
  74. }
  75. .bx-top-tools { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
  76. .tb-btn {
  77. width: 32px; height: 32px; border: none; background: none; border-radius: 7px; cursor: pointer;
  78. display: grid; place-items: center; color: #4c473f;
  79. }
  80. .tb-btn svg { width: 17px; height: 17px; }
  81. .tb-btn:hover { background: #f5f5f5; }
  82. .tb-btn:disabled { opacity: 0.3; cursor: default; }
  83. .tb-btn:disabled:hover { background: none; }
  84. .bx-mode-switch {
  85. margin: 0 auto;
  86. background: #f1f1f1; border-radius: 8px; padding: 3px; display: flex; gap: 2px;
  87. flex: 0 0 auto;
  88. }
  89. .bx-mode-switch button {
  90. border: none; background: none; padding: 6px 20px; font-size: 13.5px; border-radius: 6px;
  91. cursor: pointer; color: #555; font-weight: 600; white-space: nowrap;
  92. }
  93. .bx-mode-switch button.on { background: var(--bx-orange); color: #fff; }
  94. .bx-top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  95. .btn-print {
  96. display: flex; align-items: center; gap: 6px;
  97. background: var(--bx-orange); color: #fff; border: none; border-radius: 8px;
  98. padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  99. white-space: nowrap;
  100. }
  101. .btn-print:hover { background: var(--bx-orange-deep); }
  102. .btn-print svg { width: 15px; height: 15px; }
  103. .btn-plain, .btn-export {
  104. border: 1px solid #e2e2e2; background: #fff; color: var(--bx-ink);
  105. border-radius: 8px; padding: 7.5px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  106. white-space: nowrap;
  107. }
  108. .btn-plain:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  109. .btn-export { border-color: var(--bx-orange); color: var(--bx-orange); }
  110. .btn-export:hover { background: #fff4ec; }
  111. @media (max-width: 1180px) {
  112. .bx-topbar { gap: 6px; padding: 0 10px; }
  113. .bx-brand .logo-img { height: 22px; }
  114. .bx-mode-switch button { padding: 6px 10px; font-size: 13px; }
  115. .btn-print, .btn-plain, .btn-export { padding: 7px 10px; font-size: 13px; }
  116. .btn-print { gap: 4px; }
  117. }
  118. .bx-avatar {
  119. width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff1e5; cursor: pointer;
  120. display: grid; place-items: center; padding: 0;
  121. }
  122. .bx-avatar svg { width: 24px; height: 24px; }
  123. /* ---------------- 主区 ---------------- */
  124. .bx-main { flex: 1; display: flex; min-height: 0; }
  125. /* 左图标栏 */
  126. .bx-rail {
  127. width: var(--bx-rail-w); flex: 0 0 auto; background: #fff;
  128. border-right: 1px solid var(--bx-line);
  129. display: flex; flex-direction: column; padding-top: 6px; z-index: 20;
  130. }
  131. .bx-rail button {
  132. border: none; background: none; display: flex; flex-direction: column; align-items: center;
  133. gap: 3px; padding: 10px 0 9px; cursor: pointer; color: #6b665e; font-size: 11px;
  134. }
  135. .bx-rail button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  136. .bx-rail button span { font-size: 11px; }
  137. .bx-rail button:hover { color: var(--bx-orange); }
  138. .bx-rail button.on { color: var(--bx-orange); font-weight: 700; }
  139. /* 左面板 */
  140. .bx-panel {
  141. width: var(--bx-panel-w); flex: 0 0 auto; background: #fff;
  142. border-right: 1px solid var(--bx-line); overflow-y: auto; z-index: 15;
  143. }
  144. .bx-panel-body { padding: 14px 14px 24px; }
  145. .bx-panel-body::-webkit-scrollbar, .bx-props-body::-webkit-scrollbar { width: 5px; }
  146. .bx-panel-body::-webkit-scrollbar-thumb, .bx-props-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
  147. /* 通用小组件 */
  148. .bx-import-cad {
  149. display: flex; align-items: center; gap: 10px; background: #fff4ec;
  150. border: 1px solid #ffd9bd; border-radius: 9px; padding: 10px 12px; margin-bottom: 12px; cursor: pointer;
  151. }
  152. .bx-import-cad:hover { background: #ffeddd; }
  153. .bx-import-cad .cad-ic {
  154. background: var(--bx-orange); color: #fff; font-size: 9px; font-weight: 800;
  155. border-radius: 5px; padding: 4px 5px; letter-spacing: 0.5px;
  156. }
  157. .bx-import-cad b { display: block; font-size: 13px; }
  158. .bx-import-cad b .q { margin-left: 3px; }
  159. .bx-import-cad span:last-child { font-size: 11px; color: var(--bx-sub); }
  160. .q {
  161. font-style: normal; width: 13px; height: 13px; border-radius: 50%; background: #e8e3da;
  162. color: #8a8478; font-size: 9px; display: inline-grid; place-items: center; vertical-align: 1px;
  163. }
  164. .bx-sub-tabs { display: flex; gap: 16px; margin: 14px 2px 10px; }
  165. .bx-sub-tabs button { border: none; background: none; font-size: 13.5px; color: var(--bx-sub); cursor: pointer; padding: 2px 0; }
  166. .bx-sub-tabs button.on { color: var(--bx-orange); font-weight: 700; }
  167. .bx-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
  168. .bx-chips button {
  169. border: 1px solid #e4e4e4; background: #fff; border-radius: 7px; padding: 5.5px 12px;
  170. font-size: 12.5px; cursor: pointer; color: #4c473f;
  171. }
  172. .bx-chips button:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  173. .bx-chips button.on { background: var(--bx-orange); border-color: var(--bx-orange); color: #fff; }
  174. .bx-box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  175. .bx-box-card {
  176. position: relative; border: 1.5px solid #eee; background: #fff; border-radius: 10px;
  177. padding: 8px; cursor: pointer; text-align: left; min-width: 0;
  178. }
  179. .bx-box-card:hover { border-color: #ffc79b; }
  180. .bx-box-card.on { border-color: var(--bx-orange); }
  181. .bx-box-card .thumb { display: block; height: 74px; border-radius: 7px; background: #f7f7f7; overflow: hidden; }
  182. .bx-box-card .thumb svg { width: 100%; height: 100%; }
  183. .bx-box-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
  184. .bx-box-card .meta b { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  185. .bx-box-card .meta .no { flex: none; margin-left: 4px; font-size: 10.5px; color: #b0aaa0; }
  186. .bx-box-card .flag {
  187. position: absolute; left: 8px; top: 8px; background: rgba(40,36,30,.62); color: #fff;
  188. font-size: 9.5px; border-radius: 4px; padding: 2px 5px; font-style: normal;
  189. }
  190. .bx-box-card .flag.off { top: auto; bottom: 30px; background: #b6b0a6; }
  191. .bx-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  192. .bx-tpl-card {
  193. position: relative; border: 1.5px solid transparent; border-radius: 10px; height: 104px;
  194. cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  195. padding: 10px; text-align: left; background-size: cover;
  196. }
  197. .bx-tpl-card:hover { border-color: var(--bx-orange); }
  198. .bx-tpl-card b { font-size: 13.5px; line-height: 1.25; }
  199. .bx-tpl-card .nm { font-size: 10.5px; opacity: 0.72; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  200. .bx-tpl-card .pro { position: absolute; right: 7px; top: 7px; margin: 0; }
  201. .bx-asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  202. .bx-asset-card { position: relative; text-align: center; min-width: 0; }
  203. .bx-asset-card .thumb {
  204. width: 100%; aspect-ratio: 1; border: 1px solid #efefef; border-radius: 9px; background: #fafafa;
  205. display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden;
  206. }
  207. .bx-asset-card .thumb:hover { border-color: var(--bx-orange); }
  208. .bx-asset-card .thumb svg, .bx-asset-card .thumb img { width: 62%; height: 62%; }
  209. .bx-asset-card .nm { display: block; font-size: 10px; color: var(--bx-sub); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  210. .bx-asset-card .fav {
  211. position: absolute; right: 2px; top: 2px; border: none; background: none; cursor: pointer;
  212. font-size: 12px; color: #c9c3b8; padding: 3px;
  213. }
  214. .bx-asset-card .fav.on { color: var(--bx-orange); }
  215. .bx-primary-btn {
  216. width: 100%; background: #fff4ec; color: var(--bx-orange); border: 1px solid #ffd0a6;
  217. border-radius: 9px; padding: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  218. }
  219. .bx-primary-btn:hover { background: #ffeddd; }
  220. .bx-sec-title { font-size: 13px; font-weight: 700; margin: 16px 0 9px; }
  221. .bx-basic-texts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  222. .bx-basic-text {
  223. border: 1px solid #eee; background: #fafafa; border-radius: 8px; height: 52px;
  224. font-size: 12.5px; cursor: pointer; color: var(--bx-ink);
  225. }
  226. .bx-basic-text:hover { border-color: var(--bx-orange); }
  227. .bx-combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  228. .bx-combo-card {
  229. border: 1px solid #eee; border-radius: 9px; background: #fff; padding: 10px; text-align: left; cursor: pointer;
  230. }
  231. .bx-combo-card:hover { border-color: var(--bx-orange); }
  232. .bx-combo-card b { display: block; font-size: 12.5px; }
  233. .bx-combo-card span { display: block; font-size: 10px; color: var(--bx-sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  234. .bx-combo-card em { display: block; font-style: normal; font-size: 10px; color: #c9c3b8; margin-top: 5px; }
  235. .bx-tool-card {
  236. display: flex; align-items: center; gap: 12px; border: 1px solid #efefef; background: #fafafa;
  237. border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; width: 100%;
  238. }
  239. .bx-tool-card:hover { border-color: var(--bx-orange); }
  240. .bx-tool-card .ic {
  241. width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid #eee;
  242. display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: -1px;
  243. }
  244. .bx-tool-card .ic.qr { font-size: 20px; }
  245. .bx-tool-card b { display: block; font-size: 13.5px; text-align: left; }
  246. .bx-tool-card span { font-size: 11px; color: var(--bx-sub); text-align: left; }
  247. .bx-tool-card div { min-width: 0; }
  248. .bx-upload-empty { text-align: center; padding: 26px 0 10px; color: #b6b0a6; font-size: 12px; }
  249. .box-illus {
  250. width: 74px; height: 58px; margin: 0 auto 10px; border-radius: 8px; position: relative;
  251. background: linear-gradient(135deg, #f3efe6, #e8e2d4);
  252. }
  253. .box-illus::after {
  254. content: ''; position: absolute; inset: 12px 16px; border: 2px dashed #d8d2c4; border-radius: 5px;
  255. }
  256. .bx-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  257. .bx-upload-card { position: relative; }
  258. .bx-upload-card .thumb {
  259. width: 100%; aspect-ratio: 1; border: 1px solid #efefef; border-radius: 9px;
  260. background: #fafafa; padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center;
  261. }
  262. .bx-upload-card .thumb:hover { border-color: var(--bx-orange); }
  263. .bx-upload-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
  264. .bx-upload-card .nm {
  265. display: block; font-size: 10px; color: var(--bx-sub); margin-top: 4px;
  266. white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  267. }
  268. .bx-upload-card .del {
  269. position: absolute; right: 3px; top: 3px; border: none; width: 18px; height: 18px; border-radius: 50%;
  270. background: rgba(23, 20, 15, 0.55); color: #fff; font-size: 10px; line-height: 1; cursor: pointer;
  271. }
  272. .bx-upload-card .del:hover { background: #c2451f; }
  273. .bx-capacity { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--bx-sub); margin-top: 14px; }
  274. .bx-capacity a { color: var(--bx-orange); cursor: pointer; }
  275. .bx-cap-bar { height: 4px; background: #f0ede7; border-radius: 3px; margin-top: 7px; overflow: hidden; }
  276. .bx-cap-bar i { display: block; height: 100%; background: var(--bx-orange); border-radius: 3px; }
  277. .bx-layer-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 9px; }
  278. .bx-layer-head .bx-sec-title { margin: 0; }
  279. .bx-layer-clear { border: none; background: none; color: #c2451f; font-size: 12px; cursor: pointer; padding: 0; }
  280. .bx-layer-clear:hover { text-decoration: underline; }
  281. .bx-clear-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
  282. .bx-clear-opt {
  283. width: 100%; padding: 10px 12px; border: 1px solid #e8e2d6; border-radius: 9px;
  284. background: #fff; color: var(--bx-ink); font-size: 13px; font-weight: 600; cursor: pointer;
  285. }
  286. .bx-clear-opt:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  287. .bx-clear-opt.danger { color: #c2451f; border-color: #f1c9bb; background: #fff7f4; }
  288. .bx-layer-list { display: flex; flex-direction: column; gap: 6px; }
  289. .bx-layer-row {
  290. display: flex; align-items: center; gap: 4px; border: 1px solid #efefef; border-radius: 8px;
  291. padding: 7px 9px; background: #fff;
  292. }
  293. .bx-layer-row.on { border-color: var(--bx-orange); background: #fff8f3; }
  294. .bx-layer-row .t {
  295. flex: 1; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  296. }
  297. .bx-layer-row button {
  298. border: none; background: none; cursor: pointer; font-size: 11px; color: #8a8478; padding: 2px 4px;
  299. }
  300. .bx-layer-row button:hover { color: var(--bx-orange); }
  301. .bx-layer-row button.del:hover { color: #e5484d; }
  302. .bx-layer-empty { text-align: center; color: #c9c3b8; font-size: 12.5px; padding: 40px 0; }
  303. .bx-layer-empty .stack {
  304. display: block; width: 44px; height: 34px; margin: 0 auto 10px; position: relative;
  305. border: 2px solid #d8d2c4; border-radius: 6px;
  306. }
  307. .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; }
  308. /* ---------------- 画布区 ---------------- */
  309. .bx-stage { flex: 1; position: relative; min-width: 0; background: var(--bx-canvas); }
  310. .bx-flat { position: absolute; inset: 0; overflow: auto; }
  311. .bx-flat-inner { min-width: 100%; min-height: 100%; display: grid; place-items: center; padding: 40px; }
  312. .dieline-wrap { transform-origin: center center; }
  313. .dieline-panel { stroke: #7d88c4; stroke-width: 0.8; }
  314. .dieline-panel.is-picked { stroke: #ff5c2b; stroke-width: 1.8; }
  315. .dieline-fold { stroke: #9db4d8; stroke-width: 0.7; stroke-dasharray: 4 2.6; fill: none; }
  316. .dieline-hit { cursor: pointer; }
  317. .dieline-hit:hover { fill: rgba(255,106,0,.06); }
  318. .dieline-face-label { font-size: 13px; fill: #b3ada2; text-anchor: middle; pointer-events: none; }
  319. .dieline-dim path { stroke: #b0aaa0; stroke-width: 0.7; fill: none; }
  320. .dieline-label { font-size: 11px; fill: #8a8478; }
  321. .dieline-cut-label { font-size: 11px; fill: #8a8478; }
  322. .dieline-bleed { fill: none; stroke: #e5484d; stroke-width: 0.6; stroke-dasharray: 5 3; }
  323. .bx-item-hit { cursor: move; fill: transparent; }
  324. .bx-item-hit:hover { stroke: var(--bx-orange); stroke-width: 1; }
  325. .bx-canvas-corner { position: absolute; bottom: 16px; display: flex; gap: 6px; z-index: 10; }
  326. .bx-canvas-corner.left { left: 16px; }
  327. .bx-canvas-corner.right { right: 16px; align-items: center; }
  328. .bx-canvas-corner button, .bx-canvas-corner span {
  329. height: 32px; min-width: 32px; border: 1px solid #dcdcdc; background: #fff; border-radius: 7px;
  330. display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #4c473f;
  331. padding: 0 8px; cursor: pointer;
  332. }
  333. .bx-canvas-corner button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  334. .bx-canvas-corner button:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  335. .bx-canvas-corner button.on { background: var(--bx-orange); border-color: var(--bx-orange); color: #fff; }
  336. .bx-canvas-corner span { border: none; background: none; min-width: 44px; font-size: 12px; color: #6b665e; }
  337. /* 外侧/内侧浮窗 */
  338. .bx-side-float {
  339. position: absolute; right: 18px; bottom: 64px; width: 200px; background: #fff; border-radius: 12px;
  340. box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 10px; z-index: 12;
  341. }
  342. .side-tabs { display: flex; align-items: center; justify-content: center; gap: 10px; }
  343. .side-tabs button { border: none; background: none; font-size: 13px; cursor: pointer; color: #8a8478; padding: 2px 4px; }
  344. .side-tabs button.on { color: var(--bx-orange); font-weight: 700; }
  345. .side-tabs i { color: #e4e0d8; font-style: normal; }
  346. .side-thumb { height: 84px; border-radius: 8px; background: #f7f7f7; margin-top: 8px; overflow: hidden; display: grid; place-items: center; }
  347. .side-thumb svg { height: 100%; width: 100%; }
  348. .side-model { display: block; text-align: center; font-size: 10.5px; color: #b0aaa0; margin-top: 6px; text-decoration: none; }
  349. .side-model:hover { color: var(--bx-orange); }
  350. /* 迷你 3D(右侧面板顶部) */
  351. .bx-mini3d { position: relative; height: 190px; background: linear-gradient(180deg, #f2f0eb, #e9e6df); overflow: hidden; flex: 0 0 auto; }
  352. .mini-stage { position: absolute; inset: 0; }
  353. .mini-ctrl {
  354. position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px;
  355. background: rgba(255,255,255,.92); border-radius: 8px; padding: 5px 8px; z-index: 3;
  356. }
  357. .mini-ctrl button {
  358. border: none; background: none; cursor: pointer; color: #4c473f; font-size: 11px; padding: 2px 3px;
  359. display: grid; place-items: center;
  360. }
  361. .mini-ctrl button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  362. .mini-ctrl .ml, .mini-ctrl .mr { font-size: 10px; color: #8a8478; }
  363. .mini-ctrl input[type="range"] { flex: 1; accent-color: var(--bx-orange); height: 3px; }
  364. /* 3D 视图(编辑器作用域,不影响落地页 CSS 3D 演示) */
  365. .bx-3dview { position: absolute; inset: 0; }
  366. .bx-3dview .box-scene { position: absolute; inset: 0; z-index: 1; cursor: grab; }
  367. .bx-3dview .box-scene:active { cursor: grabbing; }
  368. .box3d-canvas { position: absolute; inset: 0; }
  369. .bx-3dview .box3d { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
  370. .bx-3dview .bface { position: absolute; left: 50%; top: 50%; backface-visibility: visible; box-shadow: inset 0 0 0 1px rgba(23,20,15,.08); }
  371. .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%); }
  372. .bx-3d-ctrl {
  373. position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  374. display: flex; align-items: center; gap: 12px; z-index: 10;
  375. }
  376. .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); }
  377. .cc-main { border: none; background: none; cursor: pointer; color: #4c473f; display: grid; place-items: center; padding: 0; }
  378. .cc-main svg { width: 19px; height: 19px; }
  379. .cc-cur { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e2e2; background: #fbf7ee; }
  380. .cc-pop {
  381. position: absolute; bottom: 46px; left: 0; width: 208px; background: #fff; border-radius: 12px;
  382. box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 12px; z-index: 20;
  383. }
  384. .cc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  385. .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); }
  386. .cc-picker svg { width: 15px; height: 15px; }
  387. .cc-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  388. .cc-swatch {
  389. width: 22px; height: 22px; border-radius: 50%; display: inline-block; cursor: pointer;
  390. border: 2px solid #fff; box-shadow: 0 0 0 1px #e4e4e4;
  391. }
  392. .cc-swatch.cur { box-shadow: 0 0 0 2px var(--bx-orange); }
  393. .cc-swatch .none, .bx-swatch .none, .bx-tex .none {
  394. display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  395. background: linear-gradient(135deg, transparent 44%, #e5484d 44%, #e5484d 56%, transparent 56%);
  396. border: 1px solid #ddd;
  397. }
  398. .cc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center; }
  399. .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); }
  400. .ctrl-fold button { border: none; background: none; cursor: pointer; color: #4c473f; font-size: 12px; display: grid; place-items: center; padding: 0; }
  401. .ctrl-fold button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  402. .ctrl-fold .fl, .ctrl-fold .fr { font-size: 11px; color: #8a8478; }
  403. .ctrl-fold input[type="range"] { width: 150px; accent-color: var(--bx-orange); }
  404. .ctrl-4k {
  405. background: #fff; border: none; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700;
  406. cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.1); color: var(--bx-ink); white-space: nowrap;
  407. }
  408. .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; }
  409. .ctrl-4k:hover { color: var(--bx-orange); }
  410. /* ---------------- 右侧属性面板 ---------------- */
  411. .bx-props {
  412. width: var(--bx-props-w); flex: 0 0 auto; background: #fff; border-left: 1px solid var(--bx-line);
  413. display: flex; flex-direction: column; overflow-y: auto; z-index: 15;
  414. }
  415. .bx-props-body { padding: 0 0 24px; }
  416. .bx-props-sec { padding: 13px 14px; border-bottom: 1px solid #f4f2ee; position: relative; }
  417. .bx-props-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  418. .bx-props-head-row b { font-size: 13.5px; }
  419. .bx-props-head-row button { border: none; background: none; color: var(--bx-sub); font-size: 12px; cursor: pointer; }
  420. .bx-props-head-row button:hover { color: var(--bx-orange); }
  421. .bx-props-head-row .dim { font-size: 11px; color: #b0aaa0; font-weight: 400; }
  422. .bx-edit-btn {
  423. position: absolute; right: 14px; top: 12px; background: #fff4ec; color: var(--bx-orange);
  424. border: 1px solid #ffd0a6; border-radius: 7px; padding: 3px 12px; font-size: 12px; cursor: pointer;
  425. }
  426. .bx-edit-btn:hover { background: var(--bx-orange); color: #fff; }
  427. .bx-kv { display: flex; justify-content: space-between; font-size: 12px; color: var(--bx-sub); padding: 4px 0; }
  428. .bx-kv b { color: var(--bx-ink); font-weight: 600; text-align: right; }
  429. .bx-kv.row { display: block; }
  430. .bx-kv.row b { display: block; margin-top: 4px; }
  431. .bx-color-tabs { display: flex; background: #f3f1ec; border-radius: 8px; padding: 3px; margin-bottom: 11px; }
  432. .bx-color-tabs button { flex: 1; border: none; background: none; padding: 6px; font-size: 12.5px; border-radius: 6px; cursor: pointer; color: #6b665e; }
  433. .bx-color-tabs button.on { background: #fff; color: var(--bx-ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  434. .bx-swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
  435. .bx-swatch {
  436. aspect-ratio: 1; border-radius: 7px; border: 1.5px solid rgba(0,0,0,.06); cursor: pointer; padding: 0;
  437. position: relative; overflow: hidden; background: none;
  438. }
  439. .bx-swatch.on { outline: 2px solid var(--bx-orange); outline-offset: 1px; }
  440. .bx-swatch.picker { display: grid; place-items: center; }
  441. .bx-swatch.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  442. .bx-swatch .grad { display: block; width: 100%; height: 100%; background: conic-gradient(#ff5c5c, #ffb84d, #ffe14d, #7dde6a, #4db8ff, #b44bff, #ff5c5c); }
  443. .bx-tex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  444. .bx-tex {
  445. border: 1.5px solid #eee; border-radius: 9px; overflow: hidden; cursor: pointer; padding: 0; background: #fff;
  446. position: relative; height: 76px;
  447. }
  448. .bx-tex img { width: 100%; height: 58px; object-fit: cover; display: block; }
  449. .bx-tex span { display: block; font-size: 10.5px; color: var(--bx-sub); padding: 3px 6px; text-align: left; }
  450. .bx-tex.on { border-color: var(--bx-orange); }
  451. .bx-tex.clear { display: grid; place-items: center; color: var(--bx-sub); font-size: 11px; background: #fafafa; }
  452. .bx-item-preview { width: 100%; max-height: 90px; object-fit: contain; border-radius: 8px; background: #fafafa; margin-bottom: 8px; }
  453. .bx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
  454. .p-field label { display: block; font-size: 11.5px; color: var(--bx-sub); margin-bottom: 4px; }
  455. /* 动效面板 */
  456. .bx-anim-list { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 8px; }
  457. .bx-anim-card { display: flex; gap: 10px; align-items: center; border: 1.5px solid #f0eee9; border-radius: 10px; padding: 7px; }
  458. .bx-anim-card.on { border-color: var(--bx-orange); background: #fff8f3; }
  459. .bx-anim-play {
  460. position: relative; width: 74px; height: 56px; border-radius: 8px; overflow: hidden; cursor: pointer;
  461. border: none; background: #e9e6df; padding: 0; flex: 0 0 auto;
  462. }
  463. .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; }
  464. .anim-illus { display: block; width: 100%; height: 100%; position: relative; }
  465. .anim-illus::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.4), transparent); }
  466. .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; }
  467. .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%; }
  468. .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); }
  469. .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; }
  470. .anim-illus.fromLeft::before { content: ''; position: absolute; left: 12%; top: 26%; width: 44%; height: 48%; border: 2px solid #b9b2a4; border-radius: 3px; }
  471. .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; }
  472. .bx-anim-meta { flex: 1; min-width: 0; }
  473. .bx-anim-meta b { display: block; font-size: 12.5px; margin-bottom: 4px; }
  474. .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); }
  475. .bx-anim-meta button:hover { color: var(--bx-orange); border-color: var(--bx-orange); }
  476. .bx-ghost-btn {
  477. border: 1px solid #e2e2e2; background: #fff; border-radius: 7px; padding: 6px 0; font-size: 12.5px;
  478. cursor: pointer; color: var(--bx-ink); width: 100%;
  479. }
  480. .bx-ghost-btn:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  481. /* ---------------- 弹窗公共 ---------------- */
  482. #bxModals .ant-modal-header { border-bottom: none; padding-bottom: 0; }
  483. #bxModals .ant-modal-title { font-weight: 700; }
  484. /* 智能参数宝 */
  485. .sp-wrap { display: flex; gap: 0; min-height: 480px; max-height: min(640px, 72vh); margin: -12px -24px -6px; }
  486. .sp-left { flex: 1 1 auto; min-width: 0; background: #f4f4f6; padding: 18px; overflow: auto; }
  487. .sp-dieline svg { width: 100%; height: auto; }
  488. .sp-right { flex: 0 0 410px; padding: 16px 20px 28px; overflow-y: auto; border-left: 1px solid var(--bx-line); }
  489. .sp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
  490. .sp-row label { width: 104px; font-size: 12.5px; color: var(--bx-sub); flex: 0 0 auto; }
  491. .sp-row .ant-input-number { flex: 1 1 auto; min-width: 0; }
  492. .sp-row .unit { font-size: 12px; color: #b0aaa0; min-width: 20px; white-space: nowrap; flex: 0 0 auto; }
  493. .sp-group-title {
  494. font-size: 13px; font-weight: 700; background: #f7f5f0; border-radius: 6px; padding: 6px 10px;
  495. margin: 12px 0 10px;
  496. }
  497. /* 导出弹窗 */
  498. .ex-wrap { margin: -20px -24px -12px; }
  499. .ex-tabs { display: flex; align-items: center; gap: 20px; padding: 14px 22px 0; border-bottom: 1px solid var(--bx-line); }
  500. .ex-tabs button { border: none; background: none; font-size: 14.5px; padding: 8px 2px 10px; cursor: pointer; color: var(--bx-sub); position: relative; }
  501. .ex-tabs button.on { color: var(--bx-orange); font-weight: 700; }
  502. .ex-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; background: var(--bx-orange); border-radius: 2px; }
  503. .ex-log-btn { margin-left: auto; color: var(--bx-orange); font-size: 13px !important; }
  504. .ex-close { font-size: 16px !important; color: #8a8478 !important; }
  505. .ex-file-body { display: flex; min-height: 480px; }
  506. .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; }
  507. .ex-preview svg { max-width: 100%; max-height: 100%; }
  508. .ex-preview .ex-snap { max-width: 100%; max-height: 100%; border-radius: 8px; }
  509. .ex-preview .ex-preview-empty { color: #b0aaa0; font-size: 13px; }
  510. .ex-preview.3d { position: relative; }
  511. .ex-preview.3d .ex-fold-row {
  512. position: absolute; left: 16px; right: 16px; bottom: 12px;
  513. display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  514. background: rgba(255, 255, 255, 0.82); border-radius: 9px; font-size: 12px; color: var(--bx-sub);
  515. }
  516. .ex-preview.3d .ex-fold-row input { flex: 1; accent-color: var(--bx-orange); }
  517. .ex-preview .dieline-panel { stroke: #7d88c4; }
  518. .ex-side { width: 300px; padding: 18px 22px; overflow-y: auto; max-height: 560px; }
  519. .ex-label { font-size: 12.5px; font-weight: 700; margin: 14px 0 8px; }
  520. .ex-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  521. .ex-type-grid button {
  522. border: 1.5px solid #eee; background: #fff; border-radius: 9px; padding: 13px 12px; font-size: 13.5px;
  523. cursor: pointer; text-align: left; color: var(--bx-ink);
  524. }
  525. .ex-type-grid button:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  526. .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; }
  527. .ex-mode-row { display: flex; gap: 9px; }
  528. .ex-mode-row button { flex: 1; border: 1.5px solid #eee; border-radius: 8px; background: #fff; padding: 8px; font-size: 12.5px; cursor: pointer; }
  529. .ex-mode-row button.on { border-color: var(--bx-orange); color: var(--bx-orange); }
  530. .ex-note { font-size: 11px; color: #b0aaa0; margin: 8px 0 0; }
  531. .ex-res {
  532. display: flex; align-items: baseline; gap: 8px; width: 100%; border: 1.5px solid #eee; background: #fff;
  533. border-radius: 9px; padding: 11px 13px; margin-bottom: 8px; cursor: pointer;
  534. }
  535. .ex-res b { font-size: 15px; }
  536. .ex-res span { font-size: 11px; color: #b0aaa0; }
  537. .ex-res em { font-style: normal; margin-left: auto; font-size: 11px; color: var(--bx-sub); }
  538. .ex-res.on { border-color: var(--bx-orange); }
  539. .ex-primary {
  540. width: 100%; background: var(--bx-orange); border: none; color: #fff; font-size: 14.5px; font-weight: 700;
  541. border-radius: 9px; padding: 12px; cursor: pointer; margin-top: 16px;
  542. }
  543. .ex-primary:hover { background: var(--bx-orange-deep); }
  544. .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; }
  545. .ex-fold-row span { font-size: 11px; color: #8a8478; }
  546. .ex-fold-row input { width: 130px; accent-color: var(--bx-orange); }
  547. .ex-anim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  548. .ex-anim { position: relative; height: 76px; border: 1.5px solid #eee; border-radius: 9px; background: #f2f0eb; cursor: pointer; padding: 0; overflow: hidden; }
  549. .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; }
  550. .ex-anim.on { border-color: var(--bx-orange); }
  551. .ex-export-log { max-height: 320px; overflow-y: auto; }
  552. .ex-export-log p, .bx-export-log p { font-size: 12.5px; color: var(--bx-sub); padding: 5px 0; border-bottom: 1px dashed #f0ede7; }
  553. /* 印前检测 */
  554. .pc-wrap { text-align: center; padding: 4px 8px 10px; }
  555. .pc-title { font-size: 16px; font-weight: 700; }
  556. .pc-title .free { font-style: normal; color: var(--bx-orange); background: #fff4ec; font-size: 10px; border-radius: 4px; padding: 2px 6px; margin: 0 4px; }
  557. .pc-ring {
  558. width: 110px; height: 110px; margin: 18px auto; border-radius: 50%;
  559. background: conic-gradient(var(--bx-orange) calc(var(--p, 0) * 1%), #f0ede7 0);
  560. display: grid; place-items: center; position: relative;
  561. }
  562. .pc-ring::before { content: ''; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
  563. .pc-ring b { position: relative; font-size: 20px; }
  564. .pc-sub { color: var(--bx-sub); font-size: 12.5px; }
  565. .pc-checks { text-align: left; margin-top: 14px; }
  566. .pc-checks p { font-size: 12.5px; padding: 5px 8px; border-radius: 6px; margin: 0; }
  567. .pc-checks p.ok { color: #4caf78; background: #f2faf5; }
  568. .pc-checks p.warn { color: #d98a1f; background: #fdf6ea; }
  569. /* 印刷报价 */
  570. .pq-wrap { margin: -12px -24px -14px; }
  571. .pq-head { display: flex; align-items: baseline; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--bx-line); }
  572. .pq-head b { font-size: 17px; }
  573. .pq-head span { color: var(--bx-sub); font-size: 12.5px; }
  574. .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; }
  575. .pq-cols { display: flex; }
  576. .pq-left { width: 260px; padding: 18px 20px; border-right: 1px solid var(--bx-line); }
  577. .pq-thumb { background: #f4f4f6; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
  578. .pq-thumb svg { width: 100%; height: auto; }
  579. .pq-thumb .dieline-panel { stroke: #7d88c4; }
  580. .pq-name { font-size: 15px; }
  581. .pq-kv { font-size: 12.5px; color: var(--bx-sub); margin-top: 7px; }
  582. .pq-kv.row { display: block; }
  583. .pq-kv.row b { display: block; margin-top: 3px; color: var(--bx-ink); }
  584. .pq-right { flex: 1; padding: 18px 24px; }
  585. .pq-sec { font-size: 14.5px; font-weight: 700; margin: 6px 0 10px; }
  586. .pq-qty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
  587. .pq-qty-grid button, .pq-chip-row button {
  588. border: 1.5px solid #eee; background: #fff; border-radius: 8px; padding: 9px; font-size: 13px; cursor: pointer;
  589. }
  590. .pq-qty-grid button:hover, .pq-chip-row button:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  591. .pq-qty-grid button.on { border-color: var(--bx-orange); color: var(--bx-orange); background: #fff8f3; }
  592. .pq-custom { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  593. .pq-custom span { font-size: 12.5px; color: var(--bx-sub); }
  594. .pq-chip-row { display: flex; gap: 9px; margin: 4px 0 12px; }
  595. .pq-chip-row button.on { border-color: var(--bx-orange); color: var(--bx-orange); background: #fff8f3; }
  596. .pq-contact { display: grid; gap: 9px; margin-bottom: 12px; }
  597. .pq-contact .ant-input { border-radius: 8px; }
  598. .pq-order[disabled] { opacity: 0.6; cursor: not-allowed; }
  599. .pq-foot {
  600. display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--bx-line);
  601. }
  602. .pq-service { border: 1px solid #eee; background: #fff; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; }
  603. .pq-lead { font-size: 12.5px; color: var(--bx-sub); }
  604. .pq-price { color: var(--bx-orange); font-size: 17px; }
  605. .pq-price span { font-size: 11.5px; color: var(--bx-sub); font-weight: 400; }
  606. .pq-detail { border: 1px solid #e2e2e2; background: #fff; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 13px; margin-left: auto; }
  607. .pq-order {
  608. border: none; background: var(--bx-orange); color: #fff; border-radius: 8px; padding: 10px 20px;
  609. cursor: pointer; font-size: 14px; font-weight: 700;
  610. }
  611. .pq-order:hover { background: var(--bx-orange-deep); }
  612. /* 文件方案 / 历史 */
  613. .bx-plan-list { max-height: 360px; overflow-y: auto; }
  614. .bx-plan-row { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #f4f2ee; }
  615. .bx-plan-row .t { flex: 1; min-width: 0; }
  616. .bx-plan-row .t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  617. .bx-plan-row .t em { font-style: normal; font-size: 11px; color: #b0aaa0; }
  618. .bx-plan-row button { border: 1px solid #e2e2e2; background: #fff; border-radius: 7px; padding: 5px 12px; cursor: pointer; font-size: 12px; }
  619. .bx-plan-row button:hover { border-color: var(--bx-orange); color: var(--bx-orange); }
  620. .bx-plan-row button.del:hover { border-color: #e5484d; color: #e5484d; }
  621. .bx-help-steps p { font-size: 13px; line-height: 1.9; color: #4c473f; margin: 0; }
  622. /* 响应式 */
  623. @media (max-width: 1280px) {
  624. :root { --bx-panel-w: 246px; --bx-props-w: 232px; }
  625. }
  626. @media (max-width: 1080px) {
  627. .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); }
  628. .bx-props { position: absolute; right: 0; top: var(--bx-top-h); bottom: 0; box-shadow: -8px 0 24px rgba(0,0,0,.08); }
  629. .bx-main { position: relative; }
  630. }
  631. /* 图层顺序操作 */
  632. .bx-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  633. .bx-layer-row button { padding: 2px 3px; font-size: 10.5px; }
  634. /* 迷你 3D 自动播放按钮 */
  635. .mini-ctrl #bxMiniAuto {
  636. position: relative;
  637. width: 24px !important;
  638. height: 24px;
  639. padding: 0;
  640. flex: none;
  641. border-radius: 50%;
  642. background: #f0ede7;
  643. color: #8a8478;
  644. }
  645. .mini-ctrl #bxMiniAuto.on {
  646. background: var(--bx-orange);
  647. color: #fff;
  648. }
  649. .mini-ctrl #bxMiniAuto svg { width: 12px; height: 12px; fill: currentColor; display: block; margin: 0 auto; }
  650. .mini-ctrl #bxMiniAuto .ic-pause { display: none; }
  651. .mini-ctrl #bxMiniAuto.on .ic-pause { display: block; }
  652. .mini-ctrl #bxMiniAuto.on .ic-play { display: none; }
  653. .mini-ctrl #bxMiniAuto:not(.on) .ic-play { display: block; }
  654. /* 图层拖拽排序 */
  655. .bx-layer-row { touch-action: none; }
  656. .bx-layer-row.dragging { opacity: 0.35; }
  657. .bx-layer-row.drop-above { box-shadow: inset 0 2.5px 0 var(--bx-orange); }
  658. .bx-layer-row.drop-below { box-shadow: inset 0 -2.5px 0 var(--bx-orange); }
  659. /* 迷你 3D 自动播放:CSS 合成器动画(不受 JS 节流/冻结影响,页面可见即持续旋转) */
  660. .mini-stage { perspective: 950px; perspective-origin: 50% 45%; }
  661. .mini-stage canvas { will-change: transform; }
  662. .mini-stage.autoplay canvas {
  663. animation: miniSway 3.2s ease-in-out infinite alternate;
  664. transform-style: preserve-3d;
  665. }
  666. /* 轻微摆动展示:合成器驱动持续可见,且任何相位都不会把画布转到侧对(窄条) */
  667. @keyframes miniSway {
  668. from { transform: rotateY(-13deg); }
  669. to { transform: rotateY(13deg); }
  670. }
  671. /* 参考潘通色(防侵权叫法:不称潘通色;实际以打样效果为准) */
  672. .bx-pms-title { font-size: 11px; font-weight: 700; color: #4c473f; margin: 12px 0 7px; }
  673. .bx-pms-grid { display: flex; flex-wrap: wrap; gap: 6px; }
  674. .bx-pms-dot {
  675. width: 21px; height: 21px; border-radius: 50%;
  676. border: 1.5px solid rgba(0,0,0,.10); cursor: pointer; padding: 0;
  677. transition: transform .15s;
  678. }
  679. .bx-pms-dot:hover { transform: scale(1.15); }
  680. .bx-pms-dot.on { outline: 2px solid var(--bx-orange); outline-offset: 1.5px; }
  681. .bx-pms-note { font-size: 10px; color: #b0aaa0; line-height: 1.5; margin-top: 8px; }
  682. .cc-pms-note { grid-column: 1 / -1; font-size: 9px; color: #b0aaa0; line-height: 1.5; margin-top: 6px; }