studio.css 53 KB

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