studio.css 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358
  1. .studio-body {
  2. height: 100vh;
  3. overflow: hidden;
  4. background: var(--paper-2);
  5. }
  6. .studio-topbar {
  7. height: 68px;
  8. display: grid;
  9. grid-template-columns: minmax(260px, auto) 1fr auto;
  10. align-items: center;
  11. gap: 20px;
  12. padding: 0 18px 0 20px;
  13. background: var(--white);
  14. border-bottom: 1px solid var(--line);
  15. position: relative;
  16. z-index: 70;
  17. }
  18. .studio-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
  19. .studio-brand .logo-img { height: 28px; }
  20. .studio-title-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
  21. .studio-title-wrap input {
  22. border: 0;
  23. background: transparent;
  24. font-size: 13px;
  25. font-weight: 650;
  26. width: 150px;
  27. padding: 2px 4px;
  28. margin-left: -4px;
  29. border-radius: 5px;
  30. outline: none;
  31. }
  32. .studio-title-wrap input:hover { background: var(--paper); }
  33. .studio-title-wrap input:focus { background: var(--paper); box-shadow: 0 0 0 1.5px var(--accent); }
  34. .studio-title-wrap span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
  35. .studio-steps { display: flex; align-items: center; justify-content: center; gap: 10px; }
  36. .studio-steps .step {
  37. display: inline-flex;
  38. align-items: center;
  39. gap: 7px;
  40. height: 34px;
  41. padding: 0 12px;
  42. border-radius: 999px;
  43. font-size: 11.5px;
  44. color: var(--muted);
  45. transition: background 0.2s, color 0.2s;
  46. }
  47. .studio-steps .step i {
  48. width: 21px;
  49. height: 21px;
  50. border-radius: 50%;
  51. border: 1px solid var(--line-2);
  52. display: grid;
  53. place-items: center;
  54. font-style: normal;
  55. font-family: var(--font-mono);
  56. font-size: 9px;
  57. }
  58. .studio-steps .step:hover { background: var(--paper); color: var(--ink); }
  59. .studio-steps .step.done i { background: var(--lime); border-color: var(--lime); color: var(--ink); }
  60. .studio-steps .step.active { background: var(--ink); color: var(--paper-2); }
  61. .studio-steps .step.active i { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
  62. .studio-steps .sep { width: 18px; height: 1px; background: var(--line); }
  63. .studio-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
  64. .studio-actions .orders-link {
  65. font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  66. border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px; background: var(--paper);
  67. }
  68. .studio-actions .orders-link:hover { color: var(--ink); border-color: var(--line); }
  69. .save-state {
  70. display: inline-flex;
  71. align-items: center;
  72. gap: 6px;
  73. font-size: 10.5px;
  74. color: var(--muted);
  75. margin-right: 4px;
  76. white-space: nowrap;
  77. }
  78. .save-state i { width: 6px; height: 6px; border-radius: 50%; background: #7aab66; }
  79. .save-state.saving i { background: var(--accent); animation: pulse 1s infinite; }
  80. .undo-group { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  81. .undo-group button {
  82. width: 32px;
  83. height: 32px;
  84. display: grid;
  85. place-items: center;
  86. color: var(--ink-2);
  87. transition: background 0.2s;
  88. }
  89. .undo-group button + button { border-left: 1px solid var(--line); }
  90. .undo-group button:hover { background: var(--paper); }
  91. .undo-group button:disabled { opacity: 0.3; pointer-events: none; }
  92. .undo-group .icon { width: 15px; height: 15px; }
  93. .design-view {
  94. position: relative;
  95. display: grid;
  96. grid-template-columns: 76px 284px minmax(0, 1fr) 290px;
  97. height: calc(100vh - 68px);
  98. overflow: hidden;
  99. }
  100. .design-view[hidden], .settings-view[hidden], .summary-view[hidden] { display: none; }
  101. .tool-rail {
  102. background: var(--white);
  103. border-right: 1px solid var(--line);
  104. display: flex;
  105. flex-direction: column;
  106. align-items: stretch;
  107. padding: 12px 8px;
  108. gap: 2px;
  109. overflow-y: auto;
  110. }
  111. .tool-rail button {
  112. position: relative;
  113. display: flex;
  114. flex-direction: column;
  115. align-items: center;
  116. gap: 5px;
  117. padding: 11px 2px 9px;
  118. border-radius: 10px;
  119. font-size: 9.5px;
  120. color: var(--muted);
  121. transition: background 0.2s, color 0.2s;
  122. }
  123. .tool-rail button .icon { width: 19px; height: 19px; }
  124. .tool-rail button:hover { background: var(--paper); color: var(--ink); }
  125. .tool-rail button.active { background: var(--ink); color: var(--paper-2); }
  126. .tool-rail button.active::before {
  127. content: "";
  128. position: absolute;
  129. left: -8px;
  130. top: 50%;
  131. transform: translateY(-50%);
  132. width: 3px;
  133. height: 20px;
  134. border-radius: 0 3px 3px 0;
  135. background: var(--accent);
  136. }
  137. .tool-rail .rail-sep { height: 1px; background: var(--line); margin: 7px 4px; }
  138. .tool-panel {
  139. background: var(--white);
  140. border-right: 1px solid var(--line);
  141. display: flex;
  142. flex-direction: column;
  143. min-height: 0;
  144. }
  145. .tool-panel-head {
  146. position: relative;
  147. padding: 20px 20px 15px;
  148. border-bottom: 1px solid var(--line);
  149. }
  150. .tool-panel-close { display: none; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 13px; }
  151. .tool-panel-close:hover { background: var(--paper); color: var(--ink); }
  152. .tool-panel-head .kicker {
  153. font-family: var(--font-mono);
  154. font-size: 9px;
  155. letter-spacing: 0.16em;
  156. color: var(--accent);
  157. text-transform: uppercase;
  158. }
  159. .tool-panel-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 5px; }
  160. .tool-panel-head p { margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.55; }
  161. .tool-body { flex: 1; overflow-y: auto; padding: 16px 20px 30px; }
  162. .tool-section { margin-bottom: 22px; }
  163. .tool-section:last-child { margin-bottom: 0; }
  164. .tool-section-title {
  165. display: flex;
  166. align-items: center;
  167. justify-content: space-between;
  168. font-size: 10px;
  169. font-family: var(--font-mono);
  170. letter-spacing: 0.12em;
  171. color: var(--muted);
  172. text-transform: uppercase;
  173. margin-bottom: 10px;
  174. }
  175. .tool-section-title span { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 10px; color: var(--muted-2); }
  176. .workspace {
  177. display: flex;
  178. flex-direction: column;
  179. min-width: 0;
  180. min-height: 0;
  181. background: #f1ede4;
  182. }
  183. .workspace-tools {
  184. height: auto;
  185. min-height: 54px;
  186. display: flex;
  187. align-items: center;
  188. justify-content: space-between;
  189. flex-wrap: wrap;
  190. padding: 8px 18px;
  191. border-bottom: 1px solid var(--line);
  192. background: rgba(255, 253, 248, 0.72);
  193. gap: 16px;
  194. row-gap: 8px;
  195. }
  196. .side-switch {
  197. display: flex;
  198. padding: 3px;
  199. background: var(--paper-3);
  200. border-radius: 999px;
  201. gap: 2px;
  202. flex: none;
  203. }
  204. .side-switch button {
  205. height: 28px;
  206. padding: 0 16px;
  207. border-radius: 999px;
  208. font-size: 11.5px;
  209. font-weight: 600;
  210. color: var(--muted);
  211. white-space: nowrap;
  212. transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  213. }
  214. .side-switch button.on { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(30, 22, 10, 0.08); }
  215. .view-actions { display: flex; align-items: center; gap: 16px; row-gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; margin-left: auto; }
  216. .switch { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; flex: none; }
  217. .switch input { display: none; }
  218. .switch span {
  219. width: 28px;
  220. height: 16px;
  221. border-radius: 99px;
  222. background: var(--line-2);
  223. position: relative;
  224. transition: background 0.2s;
  225. }
  226. .switch span::after {
  227. content: "";
  228. position: absolute;
  229. width: 12px;
  230. height: 12px;
  231. border-radius: 50%;
  232. background: #fff;
  233. top: 2px;
  234. left: 2px;
  235. transition: transform 0.2s var(--ease);
  236. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  237. }
  238. .switch input:checked + span { background: var(--ink); }
  239. .switch input:checked + span::after { transform: translateX(12px); }
  240. .zoom-control {
  241. display: flex;
  242. align-items: center;
  243. border: 1px solid var(--line);
  244. border-radius: 8px;
  245. background: var(--white);
  246. overflow: hidden;
  247. height: 30px;
  248. flex: none;
  249. }
  250. .zoom-control button {
  251. width: 28px;
  252. height: 100%;
  253. display: grid;
  254. place-items: center;
  255. font-size: 14px;
  256. color: var(--muted);
  257. transition: background 0.2s;
  258. }
  259. .zoom-control button:hover { background: var(--paper); color: var(--ink); }
  260. .zoom-control span { font-family: var(--font-mono); font-size: 9.5px; padding: 0 8px; color: var(--ink-2); min-width: 42px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; }
  261. .zoom-control button.zoom-fit { width: auto; min-width: 40px; padding: 0 9px; font-size: 10.5px; letter-spacing: 0.02em; }
  262. .zoom-control button.zoom-fit + button { border-left: 1px solid var(--line); }
  263. .canvas-shell {
  264. flex: 1;
  265. min-height: 0;
  266. overflow: auto;
  267. position: relative;
  268. display: flex;
  269. align-items: flex-start;
  270. justify-content: flex-start;
  271. padding: 26px 34px;
  272. background-image: radial-gradient(rgba(60, 48, 30, 0.12) 0.7px, transparent 0.7px);
  273. background-size: 18px 18px;
  274. background-position: center;
  275. }
  276. .canvas-stage {
  277. position: relative;
  278. flex: none;
  279. margin: auto;
  280. filter: drop-shadow(0 22px 35px rgba(45, 32, 14, 0.13));
  281. transition: width 0.2s, height 0.2s;
  282. }
  283. .canvas-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }
  284. .canvas-stage .el { cursor: move; }
  285. .canvas-stage .el:hover > rect[fill="transparent"] { stroke: rgba(var(--accent-rgb), 0.35); stroke-width: 0.6; stroke-dasharray: 2 2; }
  286. .canvas-stage [data-handle] { cursor: pointer; }
  287. .canvas-stage [data-handle="nw"], .canvas-stage [data-handle="se"] { cursor: nwse-resize; }
  288. .canvas-stage [data-handle="ne"], .canvas-stage [data-handle="sw"] { cursor: nesw-resize; }
  289. .canvas-stage [data-handle="w"], .canvas-stage [data-handle="e"] { cursor: ew-resize; }
  290. .canvas-stage [data-handle="rot"] { cursor: grab; }
  291. .canvas-empty[hidden] { display: none; }
  292. .canvas-empty {
  293. position: absolute;
  294. left: 50%;
  295. bottom: 34px;
  296. transform: translateX(-50%);
  297. display: flex;
  298. align-items: center;
  299. gap: 10px;
  300. padding: 10px 14px;
  301. background: rgba(255, 253, 248, 0.92);
  302. border: 1px solid var(--line);
  303. border-radius: 999px;
  304. font-size: 11px;
  305. color: var(--muted);
  306. box-shadow: var(--shadow-s);
  307. z-index: 5;
  308. white-space: nowrap;
  309. }
  310. .canvas-empty b { color: var(--ink); font-weight: 650; }
  311. .canvas-empty button { color: var(--accent); font-weight: 650; }
  312. .canvas-empty button:hover { text-decoration: underline; }
  313. .workspace-foot {
  314. height: 38px;
  315. display: flex;
  316. align-items: center;
  317. gap: 18px;
  318. padding: 0 18px;
  319. border-top: 1px solid var(--line);
  320. background: var(--white);
  321. font-family: var(--font-mono);
  322. font-size: 9.5px;
  323. color: var(--muted);
  324. }
  325. .workspace-foot .spacer { flex: 1; }
  326. .workspace-foot button { color: var(--ink-2); font-family: var(--font); font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
  327. .workspace-foot button:hover { color: var(--accent); }
  328. .props-panel {
  329. background: var(--white);
  330. border-left: 1px solid var(--line);
  331. overflow-y: auto;
  332. display: flex;
  333. flex-direction: column;
  334. }
  335. .props-head {
  336. padding: 18px 18px 14px;
  337. border-bottom: 1px solid var(--line);
  338. display: flex;
  339. align-items: center;
  340. justify-content: space-between;
  341. gap: 8px;
  342. }
  343. .props-head h3 { font-size: 13px; font-weight: 700; }
  344. .props-close {
  345. display: none;
  346. width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%;
  347. background: var(--white); color: var(--muted); font-size: 15px; line-height: 1;
  348. place-items: center; cursor: pointer;
  349. }
  350. .props-close:hover { color: var(--ink); border-color: var(--ink-2); }
  351. .props-head .type-chip {
  352. font-family: var(--font-mono);
  353. font-size: 8.5px;
  354. letter-spacing: 0.08em;
  355. color: var(--muted);
  356. border: 1px solid var(--line);
  357. border-radius: 99px;
  358. padding: 3px 8px;
  359. }
  360. .props-body { padding: 16px 18px 30px; }
  361. .props-empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
  362. .props-empty .icon-box {
  363. width: 54px;
  364. height: 54px;
  365. margin: 0 auto 14px;
  366. border-radius: 14px;
  367. border: 1px dashed var(--line-2);
  368. background: var(--paper);
  369. display: grid;
  370. place-items: center;
  371. color: var(--muted-2);
  372. }
  373. .props-empty b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
  374. .p-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
  375. .p-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  376. .p-section-title {
  377. font-size: 9px;
  378. font-family: var(--font-mono);
  379. letter-spacing: 0.13em;
  380. color: var(--muted);
  381. text-transform: uppercase;
  382. margin-bottom: 12px;
  383. display: flex;
  384. justify-content: space-between;
  385. align-items: center;
  386. }
  387. .p-section-title button { font-family: var(--font); letter-spacing: 0; text-transform: none; color: var(--accent); font-size: 10px; }
  388. .p-row { display: flex; gap: 8px; margin-bottom: 9px; }
  389. .p-row:last-child { margin-bottom: 0; }
  390. .p-field { flex: 1; min-width: 0; }
  391. .p-field label { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 5px; }
  392. .p-input, .p-select, .p-textarea {
  393. width: 100%;
  394. height: 32px;
  395. border: 1px solid var(--line);
  396. border-radius: 7px;
  397. background: var(--paper-2);
  398. padding: 0 9px;
  399. font-size: 11.5px;
  400. outline: none;
  401. transition: border-color 0.2s, background 0.2s;
  402. }
  403. .p-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237d7466' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 24px; }
  404. .p-input:focus, .p-select:focus, .p-textarea:focus { border-color: var(--ink); background: #fff; }
  405. .p-textarea { height: auto; min-height: 76px; padding: 8px 9px; resize: vertical; line-height: 1.5; }
  406. .p-color {
  407. display: flex;
  408. align-items: center;
  409. gap: 8px;
  410. height: 32px;
  411. border: 1px solid var(--line);
  412. border-radius: 7px;
  413. background: var(--paper-2);
  414. padding: 0 8px;
  415. }
  416. .p-color input[type="color"] { width: 20px; height: 20px; border: 0; padding: 0; background: none; border-radius: 5px; overflow: hidden; cursor: pointer; }
  417. .p-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
  418. .p-color input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
  419. /* antd ColorPicker 与面板输入框体系统一:同高 32px、色块垂直居中、满宽 */
  420. .p-field .ant-color-picker-trigger {
  421. width: 100%;
  422. height: 32px;
  423. padding: 0 8px;
  424. border-radius: 7px;
  425. border-color: var(--line);
  426. background: var(--paper-2);
  427. transition: border-color 0.2s, background 0.2s;
  428. }
  429. .p-field .ant-color-picker-trigger:hover { border-color: var(--ink); background: #fff; }
  430. .p-field .ant-color-picker-trigger .ant-color-picker-color {
  431. inset-inline-start: 8px;
  432. inset-block-start: 50%;
  433. transform: translateY(-50%);
  434. width: 20px;
  435. height: 20px;
  436. border-radius: 5px;
  437. padding: 0;
  438. }
  439. .p-field .ant-color-picker-trigger .ant-color-picker-color .ant-color-picker-clear {
  440. inset: 0;
  441. border-radius: 5px;
  442. }
  443. .p-field .ant-color-picker-trigger .ant-color-picker-input {
  444. height: 100%;
  445. margin-inline-start: 32px;
  446. display: flex;
  447. align-items: center;
  448. }
  449. .p-field .ant-color-picker-trigger .ant-color-picker-input input {
  450. font-family: var(--font-mono);
  451. font-size: 9.5px;
  452. color: var(--muted);
  453. text-transform: uppercase;
  454. height: auto;
  455. line-height: 32px;
  456. padding: 0;
  457. border: 0;
  458. background: none;
  459. }
  460. .p-color span { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; }
  461. .p-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
  462. .p-swatch {
  463. width: 23px;
  464. height: 23px;
  465. border-radius: 50%;
  466. border: 1.5px solid transparent;
  467. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  468. position: relative;
  469. transition: transform 0.15s;
  470. }
  471. .p-swatch:hover { transform: scale(1.12); }
  472. .p-swatch.on::after {
  473. content: "";
  474. position: absolute;
  475. inset: -4px;
  476. border: 1.5px solid var(--ink);
  477. border-radius: 50%;
  478. }
  479. .p-seg { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--paper-2); }
  480. .p-seg button { flex: 1; height: 30px; font-size: 11px; color: var(--muted); display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
  481. .p-seg button + button { border-left: 1px solid var(--line); }
  482. .p-seg button.on { background: var(--ink); color: var(--paper-2); }
  483. .p-seg button:hover:not(.on) { background: var(--paper-3); color: var(--ink); }
  484. .p-check { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-2); padding: 3px 0; }
  485. .p-check input { width: 15px; height: 15px; accent-color: var(--accent); }
  486. .p-range { display: flex; align-items: center; gap: 9px; }
  487. .p-range input { flex: 1; accent-color: var(--accent); height: 3px; }
  488. .p-range span { font-family: var(--font-mono); font-size: 9px; color: var(--muted); width: 34px; text-align: right; }
  489. .p-actions { display: flex; gap: 7px; }
  490. .p-actions button {
  491. flex: 1;
  492. height: 32px;
  493. border: 1px solid var(--line);
  494. border-radius: 7px;
  495. font-size: 10.5px;
  496. color: var(--ink-2);
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. gap: 5px;
  501. transition: background 0.2s, border-color 0.2s;
  502. }
  503. .p-actions button:hover { background: var(--paper); border-color: var(--line-2); }
  504. .p-actions button.danger:hover { background: #fff0ec; border-color: #ffc3b2; color: #d63d13; }
  505. .p-layer-actions { display: flex; justify-content: space-between; gap: 5px; margin-top: 4px; }
  506. .p-hint { font-size: 9.5px; color: var(--muted-2); line-height: 1.55; margin-top: 7px; }
  507. .p-price-card { background: var(--paper); border-radius: 10px; padding: 12px; }
  508. .p-price-line { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
  509. .p-price-line:last-child { margin-bottom: 0; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--ink); font-weight: 650; }
  510. .p-price-line b { color: var(--ink); }
  511. .template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  512. .template-mini {
  513. border: 1px solid var(--line);
  514. border-radius: 9px;
  515. overflow: hidden;
  516. text-align: left;
  517. transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  518. background: var(--white);
  519. }
  520. .template-mini:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-s); }
  521. .template-mini .thumb { height: 108px; display: flex; align-items: center; justify-content: center; }
  522. .template-mini .thumb svg { width: 70%; max-height: 100px; filter: drop-shadow(0 7px 9px rgba(40, 28, 12, 0.15)); }
  523. .template-mini .name { padding: 7px 9px 8px; font-size: 10.5px; font-weight: 600; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 5px; align-items: center; }
  524. .template-mini .name span { font-size: 8px; color: var(--muted); font-weight: 400; }
  525. .upload-zone {
  526. border: 1.5px dashed var(--line-2);
  527. border-radius: 12px;
  528. padding: 22px 14px;
  529. text-align: center;
  530. background: var(--paper-2);
  531. cursor: pointer;
  532. transition: border-color 0.2s, background 0.2s;
  533. }
  534. .upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: #fff8f3; }
  535. .upload-zone .icon-box { width: 42px; height: 42px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 10px; color: var(--accent); }
  536. .upload-zone b { display: block; font-size: 11.5px; font-weight: 650; }
  537. .upload-zone span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
  538. .uploaded-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
  539. .uploaded-item { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
  540. .uploaded-item img { width: 100%; height: 100%; object-fit: cover; }
  541. .uploaded-item button { position: absolute; right: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: rgba(23, 20, 15, 0.72); color: #fff; display: grid; place-items: center; font-size: 10px; opacity: 0; transition: opacity 0.2s; }
  542. .uploaded-item:hover button { opacity: 1; }
  543. .text-preset {
  544. width: 100%;
  545. text-align: left;
  546. padding: 11px 12px;
  547. border: 1px solid var(--line);
  548. border-radius: 9px;
  549. background: var(--white);
  550. margin-bottom: 7px;
  551. transition: border-color 0.2s, background 0.2s;
  552. display: flex;
  553. align-items: center;
  554. justify-content: space-between;
  555. gap: 8px;
  556. }
  557. .text-preset:hover { border-color: var(--ink); background: var(--paper-2); }
  558. .text-preset b { display: block; font-weight: 700; }
  559. .text-preset span { font-size: 9.5px; color: var(--muted); }
  560. .text-preset .t-label { font-size: 20px; line-height: 1; color: var(--ink); }
  561. .shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  562. .shape-btn {
  563. aspect-ratio: 1;
  564. border: 1px solid var(--line);
  565. border-radius: 8px;
  566. background: var(--white);
  567. display: grid;
  568. place-items: center;
  569. transition: border-color 0.2s, background 0.2s, transform 0.2s;
  570. }
  571. .shape-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
  572. .shape-btn .shape-ico { width: 24px; height: 24px; border: 1.5px solid var(--ink); }
  573. .shape-btn .shape-ico.circle { border-radius: 50%; }
  574. .shape-btn .shape-ico.line { height: 0; border-width: 1.5px 0 0; }
  575. .shape-btn .shape-ico.star { border: 0; background: var(--ink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
  576. .shape-btn .shape-ico.badge { border-radius: 50%; border-style: dashed; }
  577. .shape-btn .shape-ico.triangle { border: 0; background: var(--ink); clip-path: polygon(50% 4%, 96% 94%, 4% 94%); }
  578. .asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  579. .asset-btn {
  580. aspect-ratio: 1;
  581. border: 1px solid var(--line);
  582. border-radius: 8px;
  583. background: var(--white);
  584. display: grid;
  585. place-items: center;
  586. padding: 7px;
  587. transition: border-color 0.2s, transform 0.2s;
  588. }
  589. .asset-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
  590. .asset-btn svg { width: 100%; height: 100%; display: block; }
  591. .plan-save { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
  592. .plan-save .ant-input { font-size: 11.5px; }
  593. .plan-list { display: flex; flex-direction: column; gap: 7px; }
  594. .plan-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: var(--white); }
  595. .plan-thumb { width: 42px; height: 54px; flex: none; border-radius: 5px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
  596. .plan-thumb svg { width: 100%; height: 100%; display: block; }
  597. .plan-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  598. .plan-meta b { font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  599. .plan-meta span { font-size: 9px; color: var(--muted); }
  600. .plan-actions { display: flex; flex-direction: column; gap: 3px; }
  601. .plan-actions button { font-size: 9.5px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink-2); font-family: inherit; }
  602. .plan-actions button:hover { border-color: var(--ink); color: var(--ink); }
  603. .plan-actions button.del:hover { border-color: #ffc3b2; color: #d63d13; background: #fff0ec; }
  604. .sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
  605. .sticker-btn {
  606. aspect-ratio: 1;
  607. border: 1px solid var(--line);
  608. border-radius: 8px;
  609. background: var(--white);
  610. display: grid;
  611. place-items: center;
  612. transition: border-color 0.2s, transform 0.2s;
  613. }
  614. .sticker-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
  615. .sticker-btn svg { width: 26px; height: 26px; }
  616. .layer-list { display: flex; flex-direction: column; gap: 5px; }
  617. .layer-item {
  618. display: flex;
  619. align-items: center;
  620. gap: 8px;
  621. padding: 7px 8px;
  622. border: 1px solid transparent;
  623. border-radius: 7px;
  624. cursor: pointer;
  625. transition: background 0.15s, border-color 0.15s;
  626. }
  627. .layer-item:hover { background: var(--paper); }
  628. .layer-item.on { background: var(--paper); border-color: var(--line-2); }
  629. .layer-icon {
  630. width: 26px;
  631. height: 26px;
  632. border-radius: 5px;
  633. background: var(--white);
  634. border: 1px solid var(--line);
  635. display: grid;
  636. place-items: center;
  637. color: var(--ink-2);
  638. flex: none;
  639. }
  640. .layer-icon .icon { width: 13px; height: 13px; }
  641. .layer-name { flex: 1; min-width: 0; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  642. .layer-name small { display: block; font-size: 8.5px; color: var(--muted-2); }
  643. .layer-eye { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); border-radius: 4px; }
  644. .layer-eye:hover { background: var(--paper-3); color: var(--ink); }
  645. .layer-eye .icon { width: 13px; height: 13px; }
  646. .rail-extra { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
  647. .settings-view {
  648. display: grid;
  649. grid-template-columns: 320px minmax(0, 1fr) 318px;
  650. height: calc(100vh - 68px);
  651. overflow: hidden;
  652. background: var(--paper-2);
  653. }
  654. .settings-side {
  655. border-right: 1px solid var(--line);
  656. padding: 24px 22px 30px;
  657. overflow-y: auto;
  658. background: var(--white);
  659. }
  660. .settings-side .step-kicker { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--accent); }
  661. .settings-side h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; margin-top: 6px; }
  662. .settings-side > p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
  663. .field-block { margin-top: 22px; }
  664. .field-label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  665. .field-label span { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 9.5px; color: var(--muted-2); }
  666. .product-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  667. .product-choice {
  668. border: 1px solid var(--line);
  669. border-radius: 9px;
  670. padding: 8px 5px 7px;
  671. background: var(--white);
  672. display: flex;
  673. flex-direction: column;
  674. align-items: center;
  675. gap: 4px;
  676. transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  677. position: relative;
  678. }
  679. .product-choice:hover { border-color: var(--line-2); background: var(--paper-2); }
  680. .product-choice.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--paper-2); }
  681. .product-choice .thumb { height: 58px; width: 100%; display: flex; align-items: center; justify-content: center; }
  682. .product-choice .thumb svg { height: 56px; width: auto; max-width: 88%; filter: drop-shadow(0 4px 5px rgba(40, 28, 12, 0.14)); }
  683. .product-choice b { font-size: 10px; font-weight: 600; }
  684. .product-choice em { font-style: normal; font-size: 8px; color: var(--muted); }
  685. .product-choice .on-dot { position: absolute; top: 5px; right: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 8px; opacity: 0; }
  686. .product-choice.on .on-dot { opacity: 1; }
  687. .choice-list { display: flex; flex-direction: column; gap: 5px; }
  688. .choice-item {
  689. display: flex;
  690. align-items: center;
  691. gap: 9px;
  692. padding: 8px 10px;
  693. border: 1px solid var(--line);
  694. border-radius: 8px;
  695. background: var(--white);
  696. text-align: left;
  697. transition: border-color 0.2s;
  698. }
  699. .choice-item:hover { border-color: var(--line-2); }
  700. .choice-item.on { border-color: var(--ink); }
  701. .choice-item .radio { width: 13px; height: 13px; border-radius: 50%; border: 1.2px solid var(--line-2); flex: none; position: relative; }
  702. .choice-item.on .radio { border-color: var(--ink); }
  703. .choice-item.on .radio::after { content: ""; position: absolute; inset: 2.5px; background: var(--ink); border-radius: 50%; }
  704. .choice-item b { font-size: 10.5px; font-weight: 600; }
  705. .choice-item span { margin-left: auto; font-size: 9px; color: var(--muted); font-family: var(--font-mono); }
  706. .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  707. .two-col label { font-size: 9px; color: var(--muted); display: block; margin-bottom: 5px; }
  708. .two-col select { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); padding: 0 8px; font-size: 10.5px; outline: none; }
  709. .qty-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  710. .qty-chip { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: 10.5px; font-weight: 600; }
  711. .qty-chip span { display: block; font-size: 7.5px; color: var(--muted); font-weight: 400; }
  712. .qty-chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper-2); }
  713. .qty-chip.on span { color: rgba(255, 253, 248, 0.6); }
  714. .settings-main {
  715. display: flex;
  716. flex-direction: column;
  717. min-width: 0;
  718. background: #f1ede4;
  719. position: relative;
  720. overflow: hidden;
  721. }
  722. .settings-stage-head {
  723. height: 54px;
  724. display: flex;
  725. align-items: center;
  726. justify-content: space-between;
  727. padding: 0 22px;
  728. border-bottom: 1px solid var(--line);
  729. background: rgba(255, 253, 248, 0.7);
  730. }
  731. .settings-stage-head b { font-size: 12px; font-weight: 650; }
  732. .settings-stage-head span { font-size: 10px; color: var(--muted); }
  733. .settings-preview { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; background-image: radial-gradient(rgba(60, 48, 30, 0.11) 0.7px, transparent 0.7px); background-size: 18px 18px; }
  734. .settings-preview .bag-wrap { width: min(480px, 76%); max-height: 100%; filter: drop-shadow(0 28px 36px rgba(45, 32, 14, 0.18)); }
  735. .settings-preview svg { width: 100%; height: auto; max-height: calc(100vh - 300px); }
  736. .settings-colorbar { height: 62px; border-top: 1px solid var(--line); background: rgba(255, 253, 248, 0.8); display: flex; align-items: center; gap: 16px; padding: 0 22px; flex-wrap: wrap; }
  737. .settings-colorbar span { font-size: 10px; font-family: var(--font-mono); letter-spacing: 0.08em; color: var(--muted); }
  738. .color-dots { display: flex; gap: 7px; }
  739. .color-dot { width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
  740. .color-dot.on { border-color: var(--ink); }
  741. .settings-order { border-left: 1px solid var(--line); padding: 24px 20px; background: var(--white); overflow-y: auto; }
  742. .order-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
  743. .order-card .eyebrow { font-size: 9px; }
  744. .order-card h2 { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; margin-top: 6px; }
  745. .order-lines { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
  746. .order-line { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); padding: 4px 0; }
  747. .order-line b { color: var(--ink-2); font-weight: 600; }
  748. .order-total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
  749. .order-total span { font-size: 10px; color: var(--muted); }
  750. .order-total b { font-size: 26px; letter-spacing: -0.04em; font-weight: 750; }
  751. .order-total b small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  752. .order-card .btn { width: 100%; margin-top: 15px; }
  753. .micro { font-size: 9px; color: var(--muted-2); text-align: center; line-height: 1.6; margin-top: 10px; }
  754. .mini-guarantees { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
  755. .mini-guarantee { display: flex; gap: 8px; align-items: flex-start; font-size: 10px; color: var(--muted); line-height: 1.5; }
  756. .mini-guarantee .icon { width: 13px; height: 13px; color: var(--accent); margin-top: 1px; }
  757. .settings-note { margin-top: 18px; background: var(--lime); border-radius: 10px; padding: 12px 14px; font-size: 10px; line-height: 1.6; color: var(--ink); }
  758. .settings-note b { display: block; margin-bottom: 2px; }
  759. .summary-view {
  760. height: calc(100vh - 68px);
  761. overflow-y: auto;
  762. background: var(--paper);
  763. }
  764. .summary-inner {
  765. width: min(1180px, calc(100% - 64px));
  766. margin: 0 auto;
  767. padding: 44px 0 70px;
  768. display: grid;
  769. grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  770. gap: 54px;
  771. align-items: start;
  772. }
  773. .summary-head h1 { font-size: 40px; letter-spacing: -0.045em; font-weight: 800; margin-top: 12px; }
  774. .summary-head p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
  775. .summary-preview {
  776. margin-top: 24px;
  777. border: 1px solid var(--line);
  778. border-radius: 20px;
  779. background: #f1ede4;
  780. display: flex;
  781. align-items: center;
  782. justify-content: center;
  783. padding: 26px;
  784. min-height: 600px;
  785. position: relative;
  786. background-image: radial-gradient(rgba(60, 48, 30, 0.11) 0.7px, transparent 0.7px);
  787. background-size: 18px 18px;
  788. }
  789. .summary-preview #summaryPreview { width: 100%; display: flex; align-items: center; justify-content: center; }
  790. .summary-preview .bag-wrap { width: min(388px, 84%); filter: drop-shadow(0 26px 34px rgba(45, 32, 14, 0.17)); }
  791. .summary-preview svg { width: 100%; }
  792. .summary-side-switch { position: absolute; top: 14px; left: 14px; }
  793. .summary-thumbs { display: flex; gap: 10px; margin-top: 12px; }
  794. .summary-thumb { width: 86px; height: 74px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: 5px; }
  795. .summary-thumb.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
  796. .summary-thumb svg { width: 100%; height: 100%; }
  797. .summary-actions { display: flex; gap: 16px; margin-top: 18px; align-items: center; }
  798. .summary-actions button { font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
  799. .summary-actions button:hover { color: var(--accent); }
  800. .summary-right { position: sticky; top: 20px; }
  801. .summary-right .order-card { background: var(--white); padding: 24px; }
  802. .summary-right .order-card h2 { margin-bottom: 14px; }
  803. .summary-specs { border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 12px; }
  804. .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  805. .form-grid input, .form-grid textarea {
  806. width: 100%;
  807. border: 1px solid var(--line);
  808. border-radius: 8px;
  809. background: var(--paper-2);
  810. height: 38px;
  811. padding: 0 11px;
  812. font-size: 11px;
  813. outline: none;
  814. }
  815. .form-grid textarea { grid-column: 1 / -1; height: 72px; padding: 9px 11px; resize: none; line-height: 1.5; }
  816. .form-grid input:focus, .form-grid textarea:focus { border-color: var(--ink); background: #fff; }
  817. .summary-right .btn { width: 100%; margin-top: 12px; }
  818. .modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
  819. .modal[hidden] { display: none; }
  820. .modal-backdrop { position: absolute; inset: 0; background: rgba(23, 20, 15, 0.62); backdrop-filter: blur(8px); }
  821. .modal-panel {
  822. position: relative;
  823. width: min(880px, 100%);
  824. max-height: calc(100vh - 48px);
  825. background: var(--paper-2);
  826. border-radius: 20px;
  827. overflow: hidden;
  828. box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  829. display: flex;
  830. flex-direction: column;
  831. }
  832. .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  833. .modal-head h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
  834. .modal-head h3 span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; }
  835. .modal-close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 16px; }
  836. .modal-close:hover { background: var(--paper); color: var(--ink); }
  837. .scene {
  838. flex: 1;
  839. min-height: 440px;
  840. background: radial-gradient(ellipse at 50% 40%, #fffdf8, #efe9dc 70%);
  841. display: flex;
  842. align-items: center;
  843. justify-content: center;
  844. perspective: 1500px;
  845. overflow: hidden;
  846. position: relative;
  847. cursor: grab;
  848. touch-action: none;
  849. }
  850. .scene:active { cursor: grabbing; }
  851. .scene::after {
  852. content: "";
  853. position: absolute;
  854. left: 50%;
  855. bottom: 15%;
  856. transform: translateX(-50%);
  857. width: 400px;
  858. height: 54px;
  859. border-radius: 50%;
  860. background: radial-gradient(ellipse at center, rgba(35, 24, 10, 0.34), rgba(35, 24, 10, 0.16) 55%, transparent 75%);
  861. filter: blur(16px);
  862. }
  863. .pouch3d {
  864. position: relative;
  865. width: 280px;
  866. height: 400px;
  867. transform-style: preserve-3d;
  868. transform: rotateX(4deg) rotateY(-18deg);
  869. transition: transform 0.15s linear;
  870. z-index: 2;
  871. animation: bagFloat 6s ease-in-out infinite;
  872. }
  873. @keyframes bagFloat {
  874. 0%, 100% { translate: 0 0; }
  875. 50% { translate: 0 -10px; }
  876. }
  877. .pouch3d .face3d {
  878. position: absolute;
  879. inset: 0;
  880. backface-visibility: hidden;
  881. overflow: hidden;
  882. /* 正/背面:设计主体完整,仅顶部两角圆切与侧肩封合贴合 + 底部圆角 */
  883. clip-path: url(#pouchFrontClip);
  884. }
  885. .pouch3d .face3d svg { width: 100%; height: 100%; }
  886. .pouch3d .face3d.front {
  887. /* 充填形态:顶部封口贴合(Z 小),底部内容物撑开(Z 大)→ rotateX 微倾实现 */
  888. transform: rotateX(-4.5deg) translateZ(20px);
  889. transform-origin: 50% 0%;
  890. }
  891. .pouch3d .face3d.back {
  892. transform: rotateY(180deg) rotateX(-4.5deg) translateZ(20px);
  893. transform-origin: 50% 0%;
  894. background: var(--paper-3);
  895. }
  896. /* 顶部横向热封压痕:细平行条纹压纹(高约7%,哑光),压纹风格前后统一 */
  897. .pouch3d .face3d.front::after,
  898. .pouch3d .face3d.back::after {
  899. content: "";
  900. position: absolute;
  901. top: 0; left: 0; right: 0;
  902. height: 7.5%;
  903. background:
  904. linear-gradient(180deg, rgba(255,255,255,0.34), rgba(0,0,0,0.05) 85%, rgba(0,0,0,0.16)),
  905. repeating-linear-gradient(180deg, rgba(0,0,0,0.10) 0 1px, transparent 1px 3.2px);
  906. border-bottom: 1px solid rgba(0,0,0,0.22);
  907. pointer-events: none;
  908. z-index: 5;
  909. }
  910. /* 易撕口:封边右上 V 形冲切缺口 */
  911. .pouch3d .face3d.front::before,
  912. .pouch3d .face3d.back::before {
  913. content: "";
  914. position: absolute;
  915. top: 0; right: 9%;
  916. width: 12px; height: 5.4%;
  917. background: inherit;
  918. z-index: 6;
  919. pointer-events: none;
  920. clip-path: polygon(0 0, 100% 0, 50% 100%);
  921. filter: brightness(1.35) saturate(0.9);
  922. box-shadow: 0 1.5px 0 rgba(0,0,0,0.18);
  923. }
  924. .pouch3d .face3d.side {
  925. width: 44px;
  926. left: 50%;
  927. margin-left: -22px;
  928. transform: rotateY(90deg) translateZ(140px);
  929. background: linear-gradient(90deg, #b9ac97, #efe7d6 45%, #a99b85);
  930. backface-visibility: visible;
  931. /* 侧面:水滴形(封口 fin 极薄→中下膨鼓→底部满宽),不影响正反面 */
  932. clip-path: url(#pouchSideClip);
  933. width: 72px;
  934. margin-left: -36px;
  935. /* 体积兜底(JS 按袋色重建:顶部薄暗哑光、中下鼓面亮、底部承重微暗) */
  936. background:
  937. radial-gradient(ellipse 120% 60% at 50% 74%, rgba(255,255,255,0.30), transparent 58%),
  938. linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.08) 22%, transparent 42%, rgba(0,0,0,0.10) 92%),
  939. linear-gradient(90deg, rgba(0,0,0,0.30), rgba(255,255,255,0.16) 46%, rgba(0,0,0,0.34));
  940. }
  941. /* 放射状斜褶:从封口窄点向下发散 + 底部轻微堆积感 */
  942. .pouch3d .face3d.side::before {
  943. content: "";
  944. position: absolute;
  945. inset: 0;
  946. background:
  947. repeating-linear-gradient(168deg, transparent 0 5px, rgba(0,0,0,0.045) 5px 6.2px),
  948. repeating-linear-gradient(12deg, transparent 0 5px, rgba(0,0,0,0.045) 5px 6.2px);
  949. pointer-events: none;
  950. }
  951. .pouch3d .face3d.side::after {
  952. content: "";
  953. position: absolute;
  954. left: 0; right: 0; bottom: 0;
  955. height: 16%;
  956. background:
  957. repeating-linear-gradient(180deg, transparent 0 3.5px, rgba(0,0,0,0.05) 3.5px 4.4px),
  958. linear-gradient(180deg, transparent, rgba(0,0,0,0.10));
  959. border-top: 1px solid rgba(0,0,0,0.14);
  960. pointer-events: none;
  961. }
  962. .modal-controls {
  963. display: flex;
  964. align-items: center;
  965. gap: 18px;
  966. padding: 14px 20px;
  967. border-top: 1px solid var(--line);
  968. background: var(--white);
  969. }
  970. .modal-controls .hint { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  971. .modal-controls input[type="range"] { flex: 1; accent-color: var(--accent); }
  972. .modal-controls .side-switch button { padding: 0 12px; height: 26px; font-size: 10.5px; }
  973. .inline-text-editor {
  974. position: fixed;
  975. z-index: 150;
  976. width: 300px;
  977. background: var(--white);
  978. border: 1px solid var(--line-2);
  979. border-radius: 12px;
  980. box-shadow: 0 18px 50px rgba(23, 20, 15, 0.22);
  981. padding: 10px;
  982. }
  983. .inline-text-editor[hidden] { display: none; }
  984. .inline-text-editor textarea {
  985. width: 100%;
  986. border: 0;
  987. background: var(--paper-2);
  988. border-radius: 7px;
  989. padding: 9px 10px;
  990. font-size: 12px;
  991. resize: vertical;
  992. min-height: 78px;
  993. outline: none;
  994. line-height: 1.5;
  995. }
  996. .inline-text-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
  997. .inline-text-actions span { font-size: 9px; color: var(--muted-2); font-family: var(--font-mono); }
  998. .inline-text-actions button { height: 28px; padding: 0 13px; border-radius: 6px; background: var(--ink); color: var(--paper-2); font-size: 10.5px; }
  999. .success-view {
  1000. position: fixed;
  1001. inset: 0;
  1002. z-index: 220;
  1003. background: rgba(23, 20, 15, 0.55);
  1004. backdrop-filter: blur(6px);
  1005. display: grid;
  1006. place-items: center;
  1007. padding: 24px;
  1008. }
  1009. .success-view[hidden] { display: none; }
  1010. .success-card {
  1011. width: min(460px, 100%);
  1012. background: var(--paper-2);
  1013. border-radius: 22px;
  1014. padding: 38px 34px 30px;
  1015. text-align: center;
  1016. box-shadow: var(--shadow-l);
  1017. }
  1018. .success-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 20px; }
  1019. .success-icon .icon { width: 28px; height: 28px; color: var(--ink); }
  1020. .success-card h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 750; }
  1021. .success-card p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 9px; }
  1022. .success-order { background: var(--paper); border: 1px dashed var(--line-2); border-radius: 10px; padding: 13px; margin: 18px 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
  1023. .success-order b { display: block; font-size: 16px; color: var(--ink); letter-spacing: 0.04em; margin-top: 3px; }
  1024. .success-card #successTip { color: #e0a83a; }
  1025. .success-actions { display: flex; gap: 10px; }
  1026. .success-actions .btn { flex: 1; }
  1027. .success-actions .btn:last-child { flex: 0 0 auto; width: auto; padding-inline: 18px; }
  1028. @media (max-width: 1240px) {
  1029. .design-view { grid-template-columns: 72px 260px minmax(0, 1fr) 264px; }
  1030. .settings-view { grid-template-columns: 296px minmax(0, 1fr) 290px; }
  1031. }
  1032. @media (max-width: 1100px) {
  1033. .design-view { grid-template-columns: 68px 240px minmax(0, 1fr); }
  1034. .props-panel { display: none; }
  1035. /* 窄屏下选中元素时以浮层抽屉展示属性,避免属性面板被隐藏后无法编辑 */
  1036. body.props-open .props-panel {
  1037. display: flex;
  1038. position: fixed;
  1039. top: 70px;
  1040. right: 12px;
  1041. bottom: 12px;
  1042. width: 286px;
  1043. max-width: calc(100vw - 24px);
  1044. z-index: 70;
  1045. border: 1px solid var(--line);
  1046. border-radius: 16px;
  1047. box-shadow: 0 20px 55px rgba(40, 30, 10, 0.18);
  1048. }
  1049. body.props-open .props-close { display: grid; }
  1050. .studio-title-wrap { display: none; }
  1051. .summary-inner { grid-template-columns: 1fr; gap: 30px; }
  1052. .summary-right { position: static; }
  1053. .summary-preview { min-height: 380px; }
  1054. }
  1055. @media (max-width: 900px) {
  1056. .settings-view { grid-template-columns: 280px minmax(0, 1fr); }
  1057. .settings-order { display: none; }
  1058. .studio-steps .step span { display: none; }
  1059. .studio-actions .save-state, .undo-group { display: none; }
  1060. }
  1061. @media (max-width: 760px) {
  1062. .studio-topbar { grid-template-columns: auto 1fr auto; height: 60px; padding: 0 12px; }
  1063. .studio-brand .logo-img { height: 24px; }
  1064. .studio-steps { gap: 4px; }
  1065. .studio-steps .sep { display: none; }
  1066. .studio-actions .btn-ghost { display: none; }
  1067. .design-view { grid-template-columns: 1fr; grid-template-rows: 1fr 58px; height: calc(100vh - 60px); }
  1068. .tool-rail { order: 2; flex-direction: row; padding: 6px 8px; overflow-x: auto; border-right: 0; border-top: 1px solid var(--line); }
  1069. .tool-rail button { flex: 1; min-width: 52px; flex-direction: row; justify-content: center; gap: 5px; padding: 8px 4px; }
  1070. .tool-rail button .icon { width: 15px; height: 15px; }
  1071. .tool-rail button.active::before { left: 50%; top: auto; bottom: -6px; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 3px 3px 0 0; }
  1072. .tool-rail .rail-sep, .rail-extra { display: none; }
  1073. .tool-panel-close { display: grid; place-items: center; }
  1074. .tool-panel { position: absolute; left: 0; bottom: 58px; top: auto; height: min(360px, 50vh); width: 100%; z-index: 30; border-right: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(20, 14, 6, 0.18); transform: translateY(calc(100% + 70px)); transition: transform 0.35s var(--ease); }
  1075. .design-view.panel-open .tool-panel { transform: translateY(0); }
  1076. .workspace { order: 1; }
  1077. .workspace-tools { padding: 0 12px; }
  1078. .view-actions { gap: 10px; }
  1079. .view-actions .switch { display: none; }
  1080. .canvas-shell { padding: 16px; }
  1081. .settings-view { display: block; height: calc(100vh - 60px); overflow-y: auto; }
  1082. .settings-side { border-right: 0; overflow: visible; padding-bottom: 8px; }
  1083. .settings-main { min-height: 540px; }
  1084. .settings-preview { padding: 14px; }
  1085. .settings-preview svg { width: auto; max-width: 100%; max-height: 380px; }
  1086. .settings-colorbar { height: auto; padding: 12px 16px; }
  1087. .summary-inner { width: calc(100% - 32px); padding-top: 24px; }
  1088. .summary-head h1 { font-size: 28px; }
  1089. .summary-preview { min-height: 300px; padding: 16px; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  1090. .summary-side-switch { position: static; align-self: flex-start; margin-bottom: 12px; }
  1091. .modal-panel { max-height: calc(100vh - 24px); }
  1092. .scene { min-height: 340px; }
  1093. .pouch3d { width: 200px; height: 290px; }
  1094. .pouch3d .face3d.side { transform: rotateY(90deg) translateZ(100px); }
  1095. .modal-controls { flex-wrap: wrap; gap: 10px; }
  1096. .modal-controls input[type="range"] { min-width: 120px; }
  1097. }
  1098. /* ---------- custom size & quantity ---------- */
  1099. .s-custom-size {
  1100. margin-top: 10px;
  1101. padding: 10px 12px;
  1102. border: 1px dashed var(--line-2);
  1103. border-radius: 9px;
  1104. background: var(--paper-2);
  1105. transition: border-color 0.2s, background 0.2s;
  1106. }
  1107. .s-custom-size.on { border-color: var(--accent); background: #fff8f3; }
  1108. .s-custom-title { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
  1109. .s-custom-title span { font-family: var(--font-mono); font-size: 9px; color: var(--muted-2); }
  1110. .s-custom-inputs { display: flex; align-items: flex-end; gap: 7px; }
  1111. .s-inline-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
  1112. .s-inline-field label { font-size: 9.5px; color: var(--muted-2); }
  1113. .s-inline-input {
  1114. width: 100%;
  1115. height: 32px;
  1116. border: 1px solid var(--line-2);
  1117. border-radius: 7px;
  1118. background: var(--white);
  1119. padding: 0 8px;
  1120. font-size: 12px;
  1121. color: var(--ink);
  1122. outline: none;
  1123. transition: border-color 0.2s;
  1124. }
  1125. .s-inline-input:focus { border-color: var(--ink); }
  1126. .s-times { font-size: 11px; color: var(--muted-2); padding-bottom: 9px; }
  1127. .s-qty-custom { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
  1128. .s-qty-custom label { font-size: 10px; color: var(--muted-2); white-space: nowrap; }
  1129. .s-qty-custom .s-inline-input { width: 104px; flex: none; }
  1130. .s-qty-custom span { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }
  1131. /* ---------- layer actions ---------- */
  1132. .layer-del { width: 20px; height: 20px; border-radius: 4px; color: var(--muted-2); display: grid; place-items: center; font-size: 10px; flex: none; }
  1133. .layer-del:hover { background: #fff0ec; color: #d63d13; }
  1134. /* ---------- collapse / expand animation ---------- */
  1135. .design-view { transition: grid-template-columns 0.32s var(--ease); }
  1136. .tool-panel { min-width: 0; transition: transform 0.32s var(--ease), opacity 0.28s var(--ease); }
  1137. @media (min-width: 1101px) {
  1138. .tool-panel-close { display: grid; place-items: center; }
  1139. .design-view.panel-collapsed { grid-template-columns: 76px 0 minmax(0, 1fr) 290px; }
  1140. .design-view.panel-collapsed .tool-panel { transform: translateX(-18px); opacity: 0; pointer-events: none; }
  1141. }
  1142. @keyframes plSlideInLeft { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  1143. @keyframes plSlideInRight { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  1144. @keyframes plFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  1145. .design-view:not([hidden]) .tool-panel { animation: plSlideInLeft 0.34s var(--ease); }
  1146. .design-view:not([hidden]) .props-panel { animation: plSlideInRight 0.34s var(--ease); }
  1147. .design-view:not([hidden]) .workspace { animation: plFadeUp 0.3s var(--ease); }
  1148. .settings-view:not([hidden]) { animation: plFadeUp 0.32s var(--ease); }
  1149. .summary-view:not([hidden]) { animation: plFadeUp 0.32s var(--ease); }
  1150. .tool-panel { overflow: hidden; }
  1151. /* 图层顺序操作 */
  1152. .p-actions.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  1153. .layer-row .layer-order {
  1154. border: none;
  1155. background: none;
  1156. cursor: pointer;
  1157. font-size: 12px;
  1158. color: #8a8478;
  1159. padding: 4px 5px;
  1160. flex: none;
  1161. }
  1162. .layer-row .layer-order:hover { color: #c2451f; }
  1163. /* 图层拖拽排序 */
  1164. .layer-row { touch-action: none; }
  1165. .layer-row.dragging { opacity: 0.35; }
  1166. .layer-row.drop-above { box-shadow: inset 0 2.5px 0 #c2451f; }
  1167. .layer-row.drop-below { box-shadow: inset 0 -2.5px 0 #c2451f; }
  1168. /* AI 交互式排版 */
  1169. #plAiFab {
  1170. position: fixed; right: 26px; bottom: 30px; z-index: 60;
  1171. display: inline-flex; align-items: center; gap: 7px;
  1172. border: 0; cursor: pointer; font-family: inherit;
  1173. background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--accent-on);
  1174. border-radius: 999px; padding: 11px 18px; font-size: 13px; font-weight: 700;
  1175. box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.35);
  1176. transition: transform 0.15s;
  1177. }
  1178. #plAiFab:hover { transform: translateY(-2px); }
  1179. .pl-ai-panel {
  1180. position: fixed; right: 26px; bottom: 84px; z-index: 60; width: 320px;
  1181. background: var(--paper, #fffdf8); border: 1px solid var(--line-2, #e2dacb);
  1182. border-radius: 14px; padding: 14px; box-shadow: 0 24px 60px rgba(23,20,15,0.18);
  1183. }
  1184. .pl-ai-panel[hidden] { display: none; }
  1185. .pl-ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; cursor: move; user-select: none; touch-action: none; }
  1186. .pl-ai-head b { font-size: 14px; }
  1187. .pl-ai-quota { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
  1188. .pl-ai-close { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; }
  1189. .pl-ai-sides { display: flex; gap: 6px; margin-bottom: 8px; }
  1190. .pl-ai-sides button {
  1191. flex: 1; border: 1px solid var(--line-2); background: var(--paper); border-radius: 8px;
  1192. padding: 6px 0; font-size: 12px; cursor: pointer; color: var(--muted); font-family: inherit;
  1193. }
  1194. .pl-ai-sides button.on { border-color: var(--accent, var(--accent)); color: var(--accent, var(--accent)); background: #fff3ec; }
  1195. .pl-ai-panel textarea {
  1196. width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 10px;
  1197. padding: 9px; font-size: 12.5px; min-height: 96px; resize: vertical; font-family: inherit;
  1198. background: #fff; color: var(--ink);
  1199. }
  1200. .pl-ai-actions { display: flex; gap: 8px; margin-top: 8px; }
  1201. .pl-ai-actions .btn { flex: 1; }
  1202. .pl-ai-clear { border: 1px solid var(--line-2); background: var(--paper); border-radius: 9px; padding: 8px; cursor: pointer; font-size: 12.5px; color: var(--muted); font-family: inherit; }
  1203. .pl-ai-tip { font-size: 10.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
  1204. #plAiGen[disabled] { opacity: 0.55; cursor: not-allowed; }
  1205. /* 参考潘通色(防侵权叫法:不称潘通色;实际以打样效果为准) */
  1206. .pms-title { font-size: 11px; font-weight: 700; color: #4c473f; margin: 12px 0 7px; }
  1207. .pms-grid { display: flex; flex-wrap: wrap; gap: 6px; }
  1208. .pms-dot {
  1209. width: 21px; height: 21px; border-radius: 50%;
  1210. border: 1.5px solid rgba(0,0,0,.10); cursor: pointer; padding: 0;
  1211. transition: transform .15s;
  1212. }
  1213. .pms-dot:hover { transform: scale(1.15); }
  1214. .pms-dot.on { outline: 2px solid #c2451f; outline-offset: 1.5px; }
  1215. .pms-note { font-size: 10px; color: #a79d8d; line-height: 1.5; margin-top: 8px; }
  1216. /* ===== 面板对齐统一(宽度/高度输入 = 32px 基准体系) ===== */
  1217. /* 1. 自定义底色取色器:与其他输入框同高同圆角,色块垂直居中 */
  1218. .props-panel .p-field .ant-color-picker-trigger,
  1219. .props-panel .p-field .ant-color-picker-trigger.ant-color-picker-trigger,
  1220. .p-field .ant-color-picker-trigger,
  1221. .p-field .ant-color-picker-trigger.ant-color-picker-trigger {
  1222. height: 32px !important;
  1223. min-height: 32px !important;
  1224. max-height: 32px !important;
  1225. width: 100% !important;
  1226. padding: 0 8px !important;
  1227. border-radius: 7px !important;
  1228. border-color: var(--line) !important;
  1229. background: var(--paper-2) !important;
  1230. }
  1231. .props-panel .p-field .ant-color-picker-trigger:hover {
  1232. border-color: var(--ink) !important;
  1233. background: #fff !important;
  1234. }
  1235. .p-field .ant-color-picker-trigger .ant-color-picker-color,
  1236. /* flex 垂直居中:不依赖 top/translate,无取整误差 */
  1237. .props-panel .p-field .ant-color-picker-trigger,
  1238. .p-field .ant-color-picker-trigger {
  1239. display: flex !important;
  1240. align-items: center !important;
  1241. padding: 0 8px !important;
  1242. }
  1243. .props-panel .p-field .ant-color-picker-trigger .ant-color-picker-color,
  1244. .p-field .ant-color-picker-trigger .ant-color-picker-color {
  1245. position: static !important;
  1246. transform: none !important;
  1247. inset: auto !important;
  1248. inset-inline-start: auto !important;
  1249. inset-block-start: auto !important;
  1250. width: 20px !important;
  1251. height: 20px !important;
  1252. flex: none !important;
  1253. border-radius: 5px !important;
  1254. padding: 0 !important;
  1255. margin: 0 !important;
  1256. }
  1257. .props-panel .p-field .ant-color-picker-trigger .ant-color-picker-color .ant-color-picker-clear {
  1258. inset: 0 !important;
  1259. border-radius: 5px !important;
  1260. }
  1261. .p-field .ant-color-picker-trigger .ant-color-picker-input,
  1262. .props-panel .p-field .ant-color-picker-trigger .ant-color-picker-input,
  1263. .p-field .ant-color-picker-trigger .ant-color-picker-input {
  1264. position: static !important;
  1265. flex: 1 1 auto !important;
  1266. height: auto !important;
  1267. margin: 0 0 0 9px !important;
  1268. display: flex !important;
  1269. align-items: center !important;
  1270. }
  1271. .props-panel .p-field .ant-color-picker-trigger .ant-color-picker-input input {
  1272. font-family: var(--font-mono) !important;
  1273. font-size: 10px !important;
  1274. color: #4c473f !important;
  1275. text-transform: uppercase !important;
  1276. height: auto !important;
  1277. line-height: 32px !important;
  1278. padding: 0 !important;
  1279. border: 0 !important;
  1280. background: none !important;
  1281. box-shadow: none !important;
  1282. }
  1283. /* 2. 当前面分段:与输入框同高,字号统一 */
  1284. .props-panel .p-field .ant-segmented { height: 32px !important; width: 100% !important; }
  1285. .props-panel .p-field .ant-segmented .ant-segmented-group { height: 100% !important; }
  1286. .props-panel .p-field .ant-segmented .ant-segmented-item {
  1287. height: 100% !important;
  1288. display: flex !important;
  1289. align-items: center !important;
  1290. }
  1291. .props-panel .p-field .ant-segmented .ant-segmented-item-label {
  1292. font-size: 12px !important;
  1293. line-height: 30px !important;
  1294. min-height: 30px !important;
  1295. display: flex !important;
  1296. align-items: center !important;
  1297. justify-content: center !important;
  1298. }
  1299. /* 3. 字段标签统一 11px */
  1300. .props-panel .p-field > label,
  1301. .props-panel .p-field label {
  1302. font-size: 11px !important;
  1303. font-weight: 600 !important;
  1304. color: #4c473f !important;
  1305. margin-bottom: 5px !important;
  1306. line-height: 1.3 !important;
  1307. }
  1308. .props-panel .p-section-title {
  1309. font-size: 12px !important;
  1310. font-weight: 800 !important;
  1311. color: #26211a !important;
  1312. margin-bottom: 10px !important;
  1313. }
  1314. /* 4. 两组色板统一 22px */
  1315. .props-panel .p-swatch { width: 22px !important; height: 22px !important; }
  1316. .props-panel .pms-dot { width: 22px !important; height: 22px !important; }
  1317. /* 换肤:设计器画布上的辅助线/选中框/控制柄跟随主题色(仅 UI 覆盖层,data-ui 元素) */
  1318. [data-uistroke] { stroke: var(--accent); }
  1319. [data-uifill] { fill: var(--accent); }