1
0

app.wxss 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272
  1. page {
  2. --page-bg: #f6f8fb;
  3. --text-main: #111827;
  4. --accent: #0f8f87;
  5. --accent-dark: #08746e;
  6. --accent-soft: #e8f6f5;
  7. --danger: #c2410c;
  8. --shadow-soft: 0 10rpx 28rpx rgba(15, 23, 42, 0.05);
  9. height: 100vh;
  10. display: flex;
  11. flex-direction: column;
  12. font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  13. background: var(--page-bg);
  14. color: var(--text-main);
  15. }
  16. .scrollarea {
  17. flex: 1;
  18. overflow-y: auto;
  19. }
  20. .scrollarea--subpage .page-shell {
  21. padding-top: 14rpx;
  22. }
  23. .scrollarea--generic .page-shell {
  24. padding-top: 0;
  25. }
  26. .page-shell {
  27. min-height: 100%;
  28. padding: 24rpx 24rpx 52rpx;
  29. box-sizing: border-box;
  30. }
  31. .theme-dark {
  32. --page-bg: #111827;
  33. --text-main: #e5e7eb;
  34. --accent: #14b8a6;
  35. --accent-dark: #5eead4;
  36. --accent-soft: #123d3b;
  37. --danger: #fb923c;
  38. --shadow-soft: 0 10rpx 28rpx rgba(0, 0, 0, 0.22);
  39. background: var(--page-bg);
  40. color: var(--text-main);
  41. }
  42. .page-toast {
  43. position: fixed;
  44. z-index: 70;
  45. top: calc(env(safe-area-inset-top) + 108rpx);
  46. left: 24rpx;
  47. right: 24rpx;
  48. min-height: 68rpx;
  49. padding: 16rpx 22rpx;
  50. border: 1rpx solid #d9edeb;
  51. border-radius: 14rpx;
  52. background: rgba(244, 251, 250, 0.98);
  53. color: var(--accent-dark);
  54. box-shadow: 0 12rpx 32rpx rgba(15, 23, 42, 0.16);
  55. font-size: 25rpx;
  56. line-height: 1.35;
  57. font-weight: 700;
  58. text-align: center;
  59. word-break: break-all;
  60. box-sizing: border-box;
  61. }
  62. .page-toast--error {
  63. border-color: #ffd4bf;
  64. background: rgba(255, 247, 237, 0.98);
  65. color: var(--danger);
  66. }
  67. .page-toast.theme-dark {
  68. border-color: #174e49;
  69. background: rgba(18, 61, 59, 0.98);
  70. color: #99f6e4;
  71. box-shadow: 0 12rpx 34rpx rgba(0, 0, 0, 0.32);
  72. }
  73. .page-toast--error.theme-dark {
  74. border-color: #7c2d12;
  75. background: rgba(67, 33, 20, 0.98);
  76. color: #fed7aa;
  77. }
  78. .theme-dark .panel,
  79. .theme-dark .connected-panel,
  80. .theme-dark .device-card,
  81. .theme-dark .empty-state {
  82. border-color: #263241;
  83. background: #17202c;
  84. box-shadow: var(--shadow-soft);
  85. }
  86. .theme-dark .panel-title,
  87. .theme-dark .subpage-page-title,
  88. .theme-dark .connected-name,
  89. .theme-dark .device-name,
  90. .theme-dark .empty-title,
  91. .theme-dark .param-name,
  92. .theme-dark .picker-value,
  93. .theme-dark .generated-title,
  94. .theme-dark .generated-value,
  95. .theme-dark .log-payload,
  96. .theme-dark .control-name,
  97. .theme-dark .upgrade-value {
  98. color: #e5e7eb;
  99. }
  100. .theme-dark .meta-label,
  101. .theme-dark .meta-value,
  102. .theme-dark .device-id,
  103. .theme-dark .device-service,
  104. .theme-dark .protocol-label,
  105. .theme-dark .empty-text,
  106. .theme-dark .param-meta,
  107. .theme-dark .log-time,
  108. .theme-dark .traffic-badge,
  109. .theme-dark .upgrade-label {
  110. color: #94a3b8;
  111. }
  112. .theme-dark .panel-action-button,
  113. .theme-dark .protocol-input,
  114. .theme-dark .value-input,
  115. .theme-dark .hex-input,
  116. .theme-dark .control-button,
  117. .theme-dark .subpage-back {
  118. border-color: #334155;
  119. background: #111827;
  120. color: #cbd5e1;
  121. box-shadow: none;
  122. }
  123. .theme-dark .protocol-picker {
  124. background: transparent;
  125. border-color: transparent;
  126. color: #cbd5e1;
  127. }
  128. .theme-dark .subpage-back-icon {
  129. border-color: #94a3b8;
  130. }
  131. .theme-dark .entry-chevron {
  132. border-color: #64748b;
  133. }
  134. .theme-dark .control-button {
  135. background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  136. color: #e5e7eb;
  137. }
  138. .theme-dark .panel-action-button {
  139. background: #17202c;
  140. color: #99f6e4;
  141. }
  142. .theme-dark .panel-action-button.is-active {
  143. border-color: #5eead4;
  144. background: #0f766e;
  145. color: #ecfeff;
  146. }
  147. .theme-dark .value-input:focus,
  148. .theme-dark .protocol-input:focus,
  149. .theme-dark .hex-input:focus {
  150. border-color: #2dd4bf;
  151. background: #102f2e;
  152. }
  153. .theme-dark .rssi {
  154. background: #1f2937;
  155. color: #cbd5e1;
  156. }
  157. .theme-dark .connect-state {
  158. background: #123d3b;
  159. color: #5eead4;
  160. }
  161. .theme-dark .connect-state.connected,
  162. .theme-dark .device-card--connected {
  163. border-color: #0f766e;
  164. background: #102f2e;
  165. color: #99f6e4;
  166. }
  167. .theme-dark .meta-item,
  168. .theme-dark .protocol-row,
  169. .theme-dark .upgrade-row,
  170. .theme-dark .param-row,
  171. .theme-dark .params-section-title,
  172. .theme-dark .protection-field,
  173. .theme-dark .log-scroll,
  174. .theme-dark .log-row {
  175. border-color: #263241;
  176. }
  177. .theme-dark .params-section-title {
  178. background: #111827;
  179. color: #94a3b8;
  180. }
  181. .theme-dark .driver-summary-chip,
  182. .theme-dark .driver-summary-checksum,
  183. .theme-dark .driver-summary-model {
  184. color: #e5e7eb;
  185. }
  186. .theme-dark .device-filter {
  187. border-color: #334155;
  188. background: #111827;
  189. }
  190. .theme-dark .device-filter-item {
  191. color: #94a3b8;
  192. }
  193. .theme-dark .device-filter-item.is-active {
  194. background: #1f2937;
  195. color: #5eead4;
  196. box-shadow: none;
  197. }
  198. .theme-dark .upgrade-status,
  199. .theme-dark .generated-frame {
  200. border-color: #174e49;
  201. background: #111827;
  202. color: #94a3b8;
  203. }
  204. .theme-dark .generic-dialog {
  205. border-color: #263241;
  206. background: #17202c;
  207. box-shadow: 0 18rpx 44rpx rgba(0, 0, 0, 0.38);
  208. }
  209. .theme-dark .generic-dialog-header,
  210. .theme-dark .generic-draft-actions,
  211. .theme-dark .generic-info-row {
  212. border-color: #263241;
  213. }
  214. .theme-dark .generic-dialog-title,
  215. .theme-dark .generic-info-value,
  216. .theme-dark .generic-register-name,
  217. .theme-dark .crc-file-name {
  218. color: #e5e7eb;
  219. }
  220. .theme-dark .generic-dialog-close,
  221. .theme-dark .generic-info-label {
  222. color: #94a3b8;
  223. }
  224. .theme-dark .generic-value-input,
  225. .theme-dark .crc-data-input,
  226. .theme-dark .generic-struct-input {
  227. border-color: #334155;
  228. background: #111827;
  229. color: #e5e7eb;
  230. }
  231. .theme-dark .generic-picker-value {
  232. color: #e5e7eb;
  233. }
  234. .theme-dark .generic-register-row,
  235. .theme-dark .generic-config-row,
  236. .theme-dark .generic-struct-section {
  237. border-color: #263241;
  238. }
  239. .theme-dark .generic-register-row.is-drag-armed {
  240. background: rgba(45, 212, 191, 0.06);
  241. }
  242. .theme-dark .generic-register-row.is-dragging {
  243. border-color: rgba(45, 212, 191, 0.32);
  244. background: linear-gradient(180deg, rgba(17, 94, 89, 0.68), rgba(15, 118, 110, 0.42));
  245. box-shadow: 0 16rpx 42rpx rgba(2, 6, 23, 0.5);
  246. }
  247. .theme-dark .generic-register-drag-bar {
  248. background: #64748b;
  249. }
  250. .theme-dark .generic-register-drag-handle.is-drag-armed {
  251. background: rgba(45, 212, 191, 0.1);
  252. }
  253. .theme-dark .generic-register-drag-handle.is-dragging {
  254. background: rgba(45, 212, 191, 0.16);
  255. }
  256. .theme-dark .generic-register-drag-handle.is-drag-armed .generic-register-drag-bar,
  257. .theme-dark .generic-register-drag-handle.is-dragging .generic-register-drag-bar {
  258. background: #5eead4;
  259. }
  260. .theme-dark .generic-readonly-value,
  261. .theme-dark .generic-register-unit {
  262. color: #5eead4;
  263. }
  264. .theme-dark .value-input--dirty {
  265. border-color: #f59e0b;
  266. background: #2b1d0e;
  267. color: #fed7aa;
  268. }
  269. .theme-dark .upgrade-status--ready {
  270. background: #123d3b;
  271. color: #5eead4;
  272. }
  273. .panel {
  274. margin-top: 24rpx;
  275. border: 1rpx solid #e6ebf2;
  276. border-radius: 18rpx;
  277. background: #ffffff;
  278. box-shadow: var(--shadow-soft);
  279. box-sizing: border-box;
  280. overflow: hidden;
  281. }
  282. .panel:first-child {
  283. margin-top: 0;
  284. }
  285. .panel-header {
  286. position: relative;
  287. display: flex;
  288. align-items: center;
  289. gap: 14rpx;
  290. padding: 24rpx 24rpx 8rpx;
  291. }
  292. .subpage-fixed-header {
  293. flex: none;
  294. padding: 16rpx 24rpx 12rpx;
  295. background: var(--page-bg);
  296. box-sizing: border-box;
  297. }
  298. .subpage-fixed-header--generic {
  299. padding: 8rpx 24rpx 4rpx;
  300. }
  301. .subpage-fixed-header--generic .subpage-page-header {
  302. min-height: 52rpx;
  303. }
  304. .subpage-page-header {
  305. display: flex;
  306. align-items: center;
  307. gap: 14rpx;
  308. min-height: 68rpx;
  309. margin: 0;
  310. padding: 0;
  311. box-sizing: border-box;
  312. }
  313. .subpage-page-title {
  314. min-width: 0;
  315. flex: 1;
  316. color: #111827;
  317. font-size: 36rpx;
  318. line-height: 1.35;
  319. font-weight: 900;
  320. white-space: nowrap;
  321. overflow: hidden;
  322. text-overflow: ellipsis;
  323. }
  324. .subpage-actions {
  325. margin-left: 0;
  326. }
  327. .param-entry-panel .panel-title {
  328. flex: 1;
  329. white-space: nowrap;
  330. word-break: keep-all;
  331. }
  332. .subpage-back {
  333. flex: none;
  334. display: flex;
  335. align-items: center;
  336. justify-content: center;
  337. width: 52rpx;
  338. height: 52rpx;
  339. border: 1rpx solid #d8e2ea;
  340. border-radius: 12rpx;
  341. background: #f8fafc;
  342. box-sizing: border-box;
  343. }
  344. .subpage-back:active,
  345. .param-entry-panel:active {
  346. opacity: 0.72;
  347. }
  348. .subpage-back-icon {
  349. width: 16rpx;
  350. height: 16rpx;
  351. border-left: 4rpx solid #64748b;
  352. border-bottom: 4rpx solid #64748b;
  353. transform: rotate(45deg);
  354. margin-left: 6rpx;
  355. box-sizing: border-box;
  356. }
  357. .param-entry-panel .panel-header {
  358. padding-bottom: 24rpx;
  359. }
  360. .driver-summary-panel {
  361. padding: 18rpx 24rpx 16rpx;
  362. box-sizing: border-box;
  363. }
  364. .driver-summary-row {
  365. display: flex;
  366. align-items: center;
  367. gap: 16rpx;
  368. }
  369. .driver-summary-row--top {
  370. justify-content: space-between;
  371. }
  372. .driver-summary-row--model {
  373. margin-top: 10rpx;
  374. }
  375. .driver-summary-chip,
  376. .driver-summary-checksum,
  377. .driver-summary-model {
  378. min-width: 0;
  379. color: #111827;
  380. line-height: 1.35;
  381. font-weight: 800;
  382. word-break: break-all;
  383. }
  384. .driver-summary-chip {
  385. flex: 1;
  386. text-align: left;
  387. font-size: 28rpx;
  388. }
  389. .driver-summary-checksum {
  390. flex: none;
  391. text-align: right;
  392. font-size: 24rpx;
  393. font-family: Menlo, Monaco, Consolas, monospace;
  394. }
  395. .driver-summary-model {
  396. flex: 1;
  397. font-size: 26rpx;
  398. }
  399. .entry-chevron {
  400. flex: none;
  401. width: 18rpx;
  402. height: 18rpx;
  403. border-right: 4rpx solid #94a3b8;
  404. border-bottom: 4rpx solid #94a3b8;
  405. transform: rotate(-45deg);
  406. box-sizing: border-box;
  407. }
  408. .params-section-title {
  409. padding: 18rpx 24rpx;
  410. border-bottom: 1rpx solid #edf2f7;
  411. background: #f8fafc;
  412. color: #475569;
  413. font-size: 24rpx;
  414. line-height: 1.35;
  415. font-weight: 800;
  416. box-sizing: border-box;
  417. }
  418. .params-section-title + .param-row {
  419. border-top: 0;
  420. }
  421. .protection-field-row {
  422. display: flex;
  423. flex-wrap: wrap;
  424. gap: 0 12rpx;
  425. padding: 0 24rpx;
  426. box-sizing: border-box;
  427. }
  428. .params-section-title + .protection-field-row .protection-field {
  429. border-top: 0;
  430. }
  431. .protection-field {
  432. display: flex;
  433. align-items: center;
  434. justify-content: space-between;
  435. gap: 18rpx;
  436. min-height: 96rpx;
  437. padding: 14rpx 0;
  438. border-top: 1rpx solid #edf2f7;
  439. box-sizing: border-box;
  440. }
  441. .protection-field--switch {
  442. flex: 1 1 240rpx;
  443. min-width: 240rpx;
  444. }
  445. .protection-field--input {
  446. flex: 1 1 100%;
  447. min-width: 100%;
  448. }
  449. .protection-field-main {
  450. min-width: 0;
  451. flex: 1;
  452. }
  453. .outside-header {
  454. padding: 0;
  455. margin-bottom: 16rpx;
  456. }
  457. .panel-icon {
  458. flex: none;
  459. position: relative;
  460. width: 38rpx;
  461. height: 38rpx;
  462. border-radius: 12rpx;
  463. background:
  464. radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 22%, rgba(255, 255, 255, 0) 50%),
  465. linear-gradient(180deg, var(--icon-start, #129a91) 0%, var(--icon-end, #08746e) 100%);
  466. border: 1rpx solid rgba(255, 255, 255, 0.12);
  467. box-shadow: 0 8rpx 16rpx rgba(15, 143, 135, 0.18);
  468. overflow: hidden;
  469. }
  470. .panel-title {
  471. min-width: 0;
  472. color: #111827;
  473. font-size: 31rpx;
  474. line-height: 1.35;
  475. font-weight: 800;
  476. word-break: break-all;
  477. }
  478. .panel-header--with-actions {
  479. padding-right: 18rpx;
  480. }
  481. .panel-heading-toggle {
  482. min-width: 0;
  483. flex: 1;
  484. display: flex;
  485. align-items: center;
  486. gap: 14rpx;
  487. }
  488. .panel-heading-toggle:active {
  489. opacity: 0.72;
  490. }
  491. .panel-header--with-actions .panel-title {
  492. flex: 1;
  493. white-space: nowrap;
  494. word-break: keep-all;
  495. }
  496. .collapse-indicator {
  497. flex: none;
  498. position: relative;
  499. width: 28rpx;
  500. height: 28rpx;
  501. }
  502. .collapse-indicator::before {
  503. content: "";
  504. position: absolute;
  505. left: 8rpx;
  506. top: 6rpx;
  507. width: 10rpx;
  508. height: 10rpx;
  509. border-right: 3rpx solid #94a3b8;
  510. border-bottom: 3rpx solid #94a3b8;
  511. transform: rotate(45deg);
  512. transform-origin: center;
  513. transition: transform 0.16s ease;
  514. }
  515. .collapse-toggle.is-collapsed .collapse-indicator::before {
  516. top: 9rpx;
  517. transform: rotate(-45deg);
  518. }
  519. .collapse-toggle {
  520. flex: none;
  521. display: flex;
  522. align-items: center;
  523. justify-content: center;
  524. width: 34rpx;
  525. height: 50rpx;
  526. }
  527. .collapse-toggle:active {
  528. opacity: 0.72;
  529. }
  530. .panel--collapsed .panel-header {
  531. padding-bottom: 24rpx;
  532. }
  533. .panel-actions {
  534. flex: none;
  535. display: flex;
  536. align-items: center;
  537. gap: 8rpx;
  538. margin-left: auto;
  539. }
  540. .panel-actions--three {
  541. gap: 6rpx;
  542. }
  543. .panel-actions--status {
  544. gap: 8rpx;
  545. }
  546. .panel-action-button {
  547. flex: none;
  548. display: flex;
  549. align-items: center;
  550. justify-content: center;
  551. width: 86rpx;
  552. min-width: 0;
  553. height: 50rpx;
  554. min-height: 0;
  555. margin: 0;
  556. padding: 0;
  557. border: 1rpx solid #b9d8d1;
  558. border-radius: 10rpx;
  559. background: #ffffff;
  560. color: var(--accent-dark);
  561. font-size: 22rpx;
  562. line-height: 1.3;
  563. font-weight: 800;
  564. box-sizing: border-box;
  565. }
  566. .panel-action-button::after {
  567. border: 0;
  568. }
  569. .panel-action-button:active {
  570. opacity: 0.72;
  571. }
  572. .panel-action-button.is-disabled {
  573. background: #eef1f5;
  574. color: #94a3b8;
  575. box-shadow: none;
  576. }
  577. .panel-action-button.is-active {
  578. border-color: var(--accent-dark);
  579. background: var(--accent);
  580. color: #ffffff;
  581. }
  582. .theme-dark .panel-action-button.is-disabled {
  583. border-color: #263241;
  584. background: #1f2937;
  585. background-color: #1f2937;
  586. color: #64748b;
  587. }
  588. .theme-dark button[disabled].control-button,
  589. .theme-dark button.control-button[disabled] {
  590. border-color: #263241;
  591. background: #1f2937;
  592. background-color: #1f2937;
  593. background-image: none;
  594. color: #64748b;
  595. box-shadow: none;
  596. }
  597. .theme-dark button[disabled].control-button .control-name,
  598. .theme-dark button.control-button[disabled] .control-name {
  599. color: #64748b;
  600. }
  601. .panel-icon::before,
  602. .panel-icon::after {
  603. content: "";
  604. position: absolute;
  605. box-sizing: border-box;
  606. }
  607. .panel-icon::before {
  608. display: none;
  609. left: 7rpx;
  610. top: 7rpx;
  611. width: 24rpx;
  612. height: 24rpx;
  613. }
  614. .panel-icon::after {
  615. left: 0;
  616. top: 0;
  617. width: 100%;
  618. height: 100%;
  619. border-radius: inherit;
  620. box-shadow: inset 0 1rpx 0 rgba(255, 255, 255, 0.2);
  621. }
  622. .icon-chip {
  623. --icon-start: #5a86a6;
  624. --icon-end: #2f5e7c;
  625. }
  626. .icon-control {
  627. --icon-start: #18a58b;
  628. --icon-end: #0e746f;
  629. }
  630. .icon-bluetooth {
  631. --icon-start: #16a8cf;
  632. --icon-end: #0f7a9a;
  633. }
  634. .icon-radar {
  635. --icon-start: #23b0d7;
  636. --icon-end: #137e8f;
  637. }
  638. .icon-terminal {
  639. --icon-start: #63758f;
  640. --icon-end: #324056;
  641. }
  642. .icon-send {
  643. --icon-start: #39bdf0;
  644. --icon-end: #1684c5;
  645. }
  646. .icon-history {
  647. --icon-start: #64748b;
  648. --icon-end: #475569;
  649. }
  650. .icon-status {
  651. --icon-start: #14a79a;
  652. --icon-end: #2563eb;
  653. }
  654. .icon-bars {
  655. --icon-start: #148f85;
  656. --icon-end: #105f8b;
  657. }
  658. .icon-tune {
  659. --icon-start: #17a59f;
  660. --icon-end: #0d7280;
  661. }
  662. .icon-speed {
  663. --icon-start: #f7a623;
  664. --icon-end: #d97f0c;
  665. }
  666. .icon-target {
  667. --icon-start: #21a37e;
  668. --icon-end: #0f766e;
  669. }
  670. .icon-shield-check {
  671. --icon-start: #16a34a;
  672. --icon-end: #0f766e;
  673. }
  674. .icon-crc {
  675. --icon-start: #2563eb;
  676. --icon-end: #0f766e;
  677. }
  678. .icon-filter {
  679. --icon-start: #f59e0b;
  680. --icon-end: #d97706;
  681. }
  682. .icon-reactance {
  683. --icon-start: #0ea5e9;
  684. --icon-end: #0f766e;
  685. }
  686. .icon-smd {
  687. --icon-start: #64748b;
  688. --icon-end: #334155;
  689. }
  690. .icon-snow {
  691. --icon-start: #38bdf8;
  692. --icon-end: #2563eb;
  693. }
  694. .icon-three-phase {
  695. --icon-start: #7c3aed;
  696. --icon-end: #2563eb;
  697. }
  698. .param-row {
  699. display: flex;
  700. align-items: center;
  701. justify-content: space-between;
  702. gap: 18rpx;
  703. min-height: 96rpx;
  704. padding: 0 24rpx;
  705. border-top: 1rpx solid #edf2f7;
  706. box-sizing: border-box;
  707. }
  708. .panel-header + .param-row,
  709. .panel-header + view .param-row:first-child {
  710. border-top: 0;
  711. }
  712. .param-row:first-child {
  713. border-top: 0;
  714. }
  715. .input-row {
  716. min-height: 106rpx;
  717. }
  718. .param-main {
  719. min-width: 0;
  720. flex: 1;
  721. }
  722. .param-name {
  723. min-width: 0;
  724. color: #111827;
  725. font-size: 28rpx;
  726. line-height: 1.35;
  727. font-weight: 700;
  728. word-break: break-all;
  729. }
  730. .param-meta {
  731. margin-top: 7rpx;
  732. color: #6b7280;
  733. font-size: 22rpx;
  734. line-height: 1.35;
  735. word-break: break-all;
  736. }
  737. .param-meta--dirty {
  738. color: #d97706;
  739. font-weight: 800;
  740. }
  741. .param-value {
  742. flex: none;
  743. max-width: 320rpx;
  744. color: #0f8f87;
  745. font-size: 30rpx;
  746. line-height: 1.35;
  747. font-weight: 800;
  748. text-align: right;
  749. word-break: break-all;
  750. }
  751. .input-wrap {
  752. flex: none;
  753. display: flex;
  754. align-items: center;
  755. gap: 10rpx;
  756. }
  757. .value-input {
  758. width: 300rpx;
  759. height: 70rpx;
  760. padding: 0 18rpx;
  761. border: 1rpx solid #e7edf3;
  762. border-radius: 10rpx;
  763. background: #fafbfd;
  764. color: #111827;
  765. font-size: 28rpx;
  766. line-height: 70rpx;
  767. text-align: right;
  768. box-sizing: border-box;
  769. }
  770. .value-input--with-unit {
  771. width: 300rpx;
  772. }
  773. .value-input:focus {
  774. border-color: #0f8f87;
  775. background: #f4fbfa;
  776. }
  777. .value-input--dirty {
  778. border-color: #fbbf24;
  779. background: #fffbeb;
  780. color: #92400e;
  781. }
  782. .generic-dialog-mask {
  783. position: fixed;
  784. z-index: 60;
  785. left: 0;
  786. right: 0;
  787. top: 0;
  788. bottom: 0;
  789. display: flex;
  790. align-items: center;
  791. justify-content: center;
  792. padding: 24rpx 24rpx calc(32rpx + env(safe-area-inset-bottom));
  793. background: rgba(15, 23, 42, 0.28);
  794. box-sizing: border-box;
  795. }
  796. .generic-dialog {
  797. width: 100%;
  798. max-height: 84vh;
  799. overflow: hidden;
  800. border: 1rpx solid #e5edf4;
  801. border-radius: 20rpx;
  802. background: #ffffff;
  803. box-shadow: 0 18rpx 48rpx rgba(15, 23, 42, 0.2);
  804. box-sizing: border-box;
  805. }
  806. .generic-dialog-header {
  807. display: flex;
  808. align-items: center;
  809. justify-content: space-between;
  810. min-height: 84rpx;
  811. padding: 0 24rpx;
  812. border-bottom: 1rpx solid #edf2f7;
  813. box-sizing: border-box;
  814. }
  815. .generic-dialog-title {
  816. color: #111827;
  817. font-size: 30rpx;
  818. line-height: 1.3;
  819. font-weight: 900;
  820. }
  821. .generic-dialog-close {
  822. display: flex;
  823. align-items: center;
  824. justify-content: center;
  825. width: 56rpx;
  826. height: 56rpx;
  827. color: #64748b;
  828. font-size: 38rpx;
  829. line-height: 1;
  830. font-weight: 500;
  831. }
  832. .generic-dialog-body {
  833. max-height: 62vh;
  834. overflow-y: auto;
  835. }
  836. .generic-config-row {
  837. display: flex;
  838. align-items: center;
  839. justify-content: space-between;
  840. gap: 18rpx;
  841. min-height: 96rpx;
  842. padding: 14rpx 24rpx;
  843. border-top: 1rpx solid #edf2f7;
  844. box-sizing: border-box;
  845. }
  846. .generic-config-row:first-of-type {
  847. border-top: 0;
  848. }
  849. .generic-picker-value {
  850. width: 300rpx;
  851. min-width: 300rpx;
  852. max-width: 300rpx;
  853. height: 70rpx;
  854. padding: 0;
  855. border: 0;
  856. background: transparent;
  857. color: #111827;
  858. font-size: 28rpx;
  859. line-height: 70rpx;
  860. font-weight: 800;
  861. text-align: right;
  862. overflow: hidden;
  863. text-overflow: ellipsis;
  864. white-space: nowrap;
  865. box-sizing: border-box;
  866. }
  867. .generic-value-input {
  868. width: 300rpx;
  869. height: 70rpx;
  870. line-height: 70rpx;
  871. font-size: 28rpx;
  872. }
  873. .generic-struct-section {
  874. padding: 16rpx 24rpx 22rpx;
  875. border-top: 1rpx solid #edf2f7;
  876. box-sizing: border-box;
  877. }
  878. .generic-struct-header {
  879. display: flex;
  880. align-items: center;
  881. justify-content: space-between;
  882. gap: 18rpx;
  883. margin-bottom: 14rpx;
  884. }
  885. .generic-struct-input {
  886. width: 100%;
  887. min-height: 220rpx;
  888. max-height: 360rpx;
  889. padding: 16rpx 18rpx;
  890. border: 1rpx solid #dbe5ee;
  891. border-radius: 12rpx;
  892. background: #f8fafc;
  893. color: #111827;
  894. font-family: Menlo, Monaco, Consolas, monospace;
  895. font-size: 22rpx;
  896. line-height: 1.45;
  897. box-sizing: border-box;
  898. }
  899. .generic-draft-actions {
  900. display: flex;
  901. justify-content: flex-end;
  902. gap: 12rpx;
  903. padding: 18rpx 24rpx 22rpx;
  904. border-top: 1rpx solid #edf2f7;
  905. box-sizing: border-box;
  906. }
  907. .generic-empty-state {
  908. margin-top: 8rpx;
  909. }
  910. .generic-info-stack {
  911. padding: 0 24rpx;
  912. box-sizing: border-box;
  913. }
  914. .generic-info-row {
  915. display: flex;
  916. align-items: center;
  917. justify-content: space-between;
  918. gap: 18rpx;
  919. min-height: 88rpx;
  920. border-top: 1rpx solid #edf2f7;
  921. box-sizing: border-box;
  922. }
  923. .generic-info-row:first-child {
  924. border-top: 0;
  925. }
  926. .generic-info-label {
  927. flex: none;
  928. width: 116rpx;
  929. color: #64748b;
  930. font-size: 23rpx;
  931. line-height: 1.3;
  932. font-weight: 800;
  933. }
  934. .generic-info-value {
  935. min-width: 0;
  936. flex: 1;
  937. color: #111827;
  938. font-size: 26rpx;
  939. line-height: 1.35;
  940. font-weight: 800;
  941. text-align: right;
  942. word-break: break-all;
  943. }
  944. .panel-action-button--icon {
  945. min-width: 58rpx;
  946. width: 58rpx;
  947. padding: 0;
  948. font-size: 34rpx;
  949. line-height: 50rpx;
  950. }
  951. .generic-group-shell {
  952. position: relative;
  953. margin-top: 12rpx;
  954. }
  955. .generic-group-shell:first-child {
  956. margin-top: 0;
  957. }
  958. .generic-delete-action {
  959. position: absolute;
  960. left: 0;
  961. top: 0;
  962. z-index: 0;
  963. display: flex;
  964. align-items: center;
  965. justify-content: center;
  966. width: 76rpx;
  967. height: 100%;
  968. min-height: 74rpx;
  969. border-radius: 18rpx 0 0 18rpx;
  970. background: #dc2626;
  971. color: #ffffff;
  972. font-size: 44rpx;
  973. line-height: 1;
  974. font-weight: 900;
  975. box-sizing: border-box;
  976. }
  977. .generic-group-panel {
  978. position: relative;
  979. z-index: 1;
  980. margin-top: 0;
  981. overflow: hidden;
  982. transition: transform 0.16s ease;
  983. }
  984. .generic-group-shell.is-delete-visible .generic-group-panel {
  985. transform: translateX(76rpx);
  986. }
  987. .generic-group-title-wrap {
  988. min-width: 0;
  989. flex: 1;
  990. }
  991. .generic-group-panel .panel-header,
  992. .generic-group-panel.panel--collapsed .panel-header {
  993. padding: 14rpx 18rpx;
  994. }
  995. .generic-group-panel .panel-icon {
  996. width: 34rpx;
  997. height: 34rpx;
  998. border-radius: 10rpx;
  999. }
  1000. .generic-group-title-wrap .panel-title {
  1001. font-size: 27rpx;
  1002. line-height: 1.22;
  1003. overflow: hidden;
  1004. text-overflow: ellipsis;
  1005. }
  1006. .generic-group-meta {
  1007. margin-top: 2rpx;
  1008. font-size: 20rpx;
  1009. line-height: 1.25;
  1010. white-space: nowrap;
  1011. overflow: hidden;
  1012. text-overflow: ellipsis;
  1013. word-break: keep-all;
  1014. }
  1015. .generic-group-actions {
  1016. flex: none;
  1017. gap: 6rpx;
  1018. }
  1019. .generic-group-actions .panel-action-button {
  1020. width: 76rpx;
  1021. height: 46rpx;
  1022. font-size: 21rpx;
  1023. border-radius: 9rpx;
  1024. }
  1025. .generic-group-actions .entry-chevron {
  1026. margin-left: 4rpx;
  1027. transform: rotate(-45deg);
  1028. }
  1029. .generic-register-row {
  1030. display: flex;
  1031. align-items: center;
  1032. justify-content: space-between;
  1033. gap: 10rpx;
  1034. min-height: 112rpx;
  1035. padding: 12rpx 18rpx;
  1036. border-top: 1rpx solid #edf2f7;
  1037. border-radius: 18rpx;
  1038. box-sizing: border-box;
  1039. transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  1040. transform-origin: center center;
  1041. will-change: transform;
  1042. }
  1043. .generic-register-row.is-drag-armed {
  1044. background: rgba(15, 143, 135, 0.04);
  1045. }
  1046. .generic-register-row.is-dragging {
  1047. position: relative;
  1048. border-color: rgba(15, 143, 135, 0.28);
  1049. background: linear-gradient(180deg, rgba(15, 143, 135, 0.12), rgba(15, 143, 135, 0.08));
  1050. box-shadow: 0 14rpx 38rpx rgba(15, 23, 42, 0.18);
  1051. }
  1052. .generic-register-row.is-shift-up,
  1053. .generic-register-row.is-shift-down {
  1054. z-index: 1;
  1055. }
  1056. .generic-register-drag-handle {
  1057. flex: none;
  1058. display: flex;
  1059. flex-direction: column;
  1060. align-items: center;
  1061. justify-content: center;
  1062. gap: 5rpx;
  1063. width: 34rpx;
  1064. min-height: 72rpx;
  1065. margin-left: -4rpx;
  1066. border-radius: 14rpx;
  1067. transition: background-color 0.18s ease, transform 0.18s ease;
  1068. }
  1069. .generic-register-layout-spacer {
  1070. flex: none;
  1071. width: 12rpx;
  1072. min-height: 72rpx;
  1073. }
  1074. .generic-register-drag-handle.is-drag-armed {
  1075. background: rgba(15, 143, 135, 0.08);
  1076. }
  1077. .generic-register-drag-handle.is-dragging {
  1078. background: rgba(15, 143, 135, 0.14);
  1079. transform: scale(1.04);
  1080. }
  1081. .generic-register-drag-bar {
  1082. width: 20rpx;
  1083. height: 3rpx;
  1084. border-radius: 999rpx;
  1085. background: #94a3b8;
  1086. transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  1087. }
  1088. .generic-register-drag-handle.is-drag-armed .generic-register-drag-bar,
  1089. .generic-register-drag-handle.is-dragging .generic-register-drag-bar {
  1090. background: #0f8f87;
  1091. }
  1092. .generic-register-drag-handle.is-dragging .generic-register-drag-bar:nth-child(1) {
  1093. transform: translateX(-2rpx);
  1094. }
  1095. .generic-register-drag-handle.is-dragging .generic-register-drag-bar:nth-child(3) {
  1096. transform: translateX(2rpx);
  1097. }
  1098. .generic-register-main {
  1099. min-width: 0;
  1100. flex: 1;
  1101. display: flex;
  1102. flex-direction: column;
  1103. gap: 6rpx;
  1104. }
  1105. .generic-register-name {
  1106. color: #111827;
  1107. font-size: 26rpx;
  1108. line-height: 1.35;
  1109. font-weight: 800;
  1110. word-break: break-all;
  1111. }
  1112. .generic-register-meta {
  1113. display: flex;
  1114. align-items: center;
  1115. flex-wrap: wrap;
  1116. gap: 14rpx;
  1117. margin-top: 6rpx;
  1118. color: #64748b;
  1119. font-family: Menlo, Monaco, Consolas, monospace;
  1120. font-size: 21rpx;
  1121. line-height: 1.35;
  1122. font-weight: 700;
  1123. }
  1124. .generic-register-input-wrap {
  1125. flex: none;
  1126. position: relative;
  1127. width: 210rpx;
  1128. min-width: 168rpx;
  1129. max-width: 40%;
  1130. box-sizing: border-box;
  1131. }
  1132. .generic-register-value {
  1133. width: 100%;
  1134. min-width: 0;
  1135. max-width: 100%;
  1136. }
  1137. .generic-register-unit {
  1138. position: absolute;
  1139. right: 18rpx;
  1140. top: 50%;
  1141. transform: translateY(-50%);
  1142. pointer-events: none;
  1143. color: #0f8f87;
  1144. font-size: 24rpx;
  1145. line-height: 1.35;
  1146. font-weight: 900;
  1147. }
  1148. .generic-register-input-wrap--unit .generic-register-value {
  1149. padding-right: 64rpx;
  1150. }
  1151. .generic-readonly-value {
  1152. width: 210rpx;
  1153. max-width: 40%;
  1154. font-family: Menlo, Monaco, Consolas, monospace;
  1155. font-size: 25rpx;
  1156. }
  1157. .generic-group-detail-panel {
  1158. overflow: hidden;
  1159. }
  1160. .generic-group-detail-meta {
  1161. padding: 14rpx 18rpx;
  1162. border-bottom: 1rpx solid #edf2f7;
  1163. color: #64748b;
  1164. font-family: Menlo, Monaco, Consolas, monospace;
  1165. font-size: 21rpx;
  1166. line-height: 1.35;
  1167. font-weight: 800;
  1168. box-sizing: border-box;
  1169. }
  1170. .crc-picker-value {
  1171. min-width: 300rpx;
  1172. max-width: 300rpx;
  1173. overflow: hidden;
  1174. text-overflow: ellipsis;
  1175. white-space: nowrap;
  1176. }
  1177. .crc-algorithm-panel {
  1178. overflow: hidden;
  1179. }
  1180. .crc-algorithm-panel > .param-row {
  1181. min-height: 92rpx;
  1182. }
  1183. .crc-algorithm-picker {
  1184. min-width: 0;
  1185. flex: 1;
  1186. display: block;
  1187. width: 100%;
  1188. }
  1189. .crc-algorithm-picker-content {
  1190. min-width: 0;
  1191. width: 100%;
  1192. display: flex;
  1193. align-items: center;
  1194. justify-content: space-between;
  1195. gap: 18rpx;
  1196. }
  1197. .crc-algorithm-picker-content .param-main {
  1198. flex: 1;
  1199. min-width: 0;
  1200. }
  1201. .crc-algorithm-panel .crc-picker-value {
  1202. flex: none;
  1203. width: auto;
  1204. min-width: 0;
  1205. max-width: 430rpx;
  1206. font-size: 24rpx;
  1207. }
  1208. .crc-data-card-header {
  1209. display: flex;
  1210. align-items: center;
  1211. justify-content: space-between;
  1212. gap: 12rpx;
  1213. min-height: 76rpx;
  1214. padding: 12rpx 18rpx 12rpx 24rpx;
  1215. }
  1216. .crc-data-title {
  1217. min-width: 0;
  1218. flex: 1;
  1219. text-align: left;
  1220. }
  1221. .crc-data-header-actions {
  1222. flex: none;
  1223. display: flex;
  1224. align-items: center;
  1225. justify-content: flex-end;
  1226. gap: 6rpx;
  1227. }
  1228. .crc-data-type-picker {
  1229. flex: none;
  1230. margin-right: 8rpx;
  1231. }
  1232. .crc-data-type-value {
  1233. width: 108rpx;
  1234. height: 50rpx;
  1235. color: #111827;
  1236. font-size: 22rpx;
  1237. line-height: 50rpx;
  1238. font-weight: 900;
  1239. text-align: right;
  1240. overflow: hidden;
  1241. text-overflow: ellipsis;
  1242. white-space: nowrap;
  1243. }
  1244. .crc-data-header-actions .panel-action-button {
  1245. width: 78rpx;
  1246. }
  1247. .theme-dark .crc-data-type-value {
  1248. color: #e5e7eb;
  1249. }
  1250. .crc-algorithm-fields {
  1251. border-top: 1rpx solid #edf2f7;
  1252. }
  1253. .theme-dark .crc-algorithm-fields {
  1254. border-color: #263241;
  1255. }
  1256. .crc-config-input {
  1257. width: 300rpx;
  1258. font-family: Menlo, Monaco, Consolas, monospace;
  1259. }
  1260. .crc-switch-row {
  1261. display: flex;
  1262. gap: 12rpx;
  1263. padding: 0 24rpx;
  1264. border-top: 1rpx solid #edf2f7;
  1265. box-sizing: border-box;
  1266. }
  1267. .theme-dark .crc-switch-row {
  1268. border-color: #263241;
  1269. }
  1270. .crc-switch-field {
  1271. flex: 1;
  1272. min-width: 0;
  1273. display: flex;
  1274. align-items: center;
  1275. justify-content: space-between;
  1276. gap: 12rpx;
  1277. min-height: 96rpx;
  1278. }
  1279. .crc-data-wrap {
  1280. padding: 18rpx 24rpx 22rpx;
  1281. box-sizing: border-box;
  1282. }
  1283. .crc-data-input {
  1284. width: 100%;
  1285. min-height: 230rpx;
  1286. padding: 18rpx;
  1287. border: 1rpx solid #e7edf3;
  1288. border-radius: 12rpx;
  1289. background: #fafbfd;
  1290. color: #111827;
  1291. font-family: Menlo, Monaco, Consolas, monospace;
  1292. font-size: 24rpx;
  1293. line-height: 1.45;
  1294. box-sizing: border-box;
  1295. }
  1296. .crc-file-name,
  1297. .crc-error-value {
  1298. min-width: 0;
  1299. max-width: 430rpx;
  1300. text-align: right;
  1301. word-break: break-all;
  1302. }
  1303. .crc-file-name {
  1304. color: #111827;
  1305. font-size: 24rpx;
  1306. line-height: 1.35;
  1307. font-weight: 800;
  1308. }
  1309. .crc-result-bin-line {
  1310. display: block;
  1311. white-space: nowrap;
  1312. }
  1313. .crc-error-value {
  1314. color: var(--danger);
  1315. font-size: 24rpx;
  1316. line-height: 1.35;
  1317. font-weight: 800;
  1318. }
  1319. .filter-input-wrap {
  1320. flex: none;
  1321. display: flex;
  1322. align-items: center;
  1323. justify-content: flex-end;
  1324. gap: 8rpx;
  1325. }
  1326. .filter-value-input {
  1327. width: 210rpx;
  1328. min-width: 0;
  1329. max-width: 210rpx;
  1330. }
  1331. .filter-value-input--computed {
  1332. border-color: #9bd6cf;
  1333. background: #f0fdfa;
  1334. color: #0f766e;
  1335. font-weight: 900;
  1336. }
  1337. .filter-unit-picker {
  1338. flex: none;
  1339. width: 92rpx;
  1340. }
  1341. .filter-unit-value {
  1342. width: 92rpx;
  1343. height: 70rpx;
  1344. color: #111827;
  1345. font-size: 25rpx;
  1346. line-height: 70rpx;
  1347. font-weight: 900;
  1348. text-align: right;
  1349. overflow: hidden;
  1350. text-overflow: ellipsis;
  1351. white-space: nowrap;
  1352. box-sizing: border-box;
  1353. }
  1354. .filter-section-title,
  1355. .filter-diagram-title {
  1356. display: flex;
  1357. align-items: center;
  1358. justify-content: space-between;
  1359. gap: 16rpx;
  1360. }
  1361. .filter-section-title-text {
  1362. min-width: 0;
  1363. flex: 1;
  1364. }
  1365. .filter-mode-actions {
  1366. flex: none;
  1367. display: flex;
  1368. align-items: center;
  1369. gap: 8rpx;
  1370. }
  1371. .filter-mode-button {
  1372. flex: none;
  1373. min-width: 78rpx;
  1374. height: 46rpx;
  1375. padding: 0 16rpx;
  1376. border: 1rpx solid #b9d8d1;
  1377. border-radius: 10rpx;
  1378. background: #ffffff;
  1379. color: var(--accent-dark);
  1380. font-size: 22rpx;
  1381. line-height: 44rpx;
  1382. font-weight: 900;
  1383. text-align: center;
  1384. box-sizing: border-box;
  1385. }
  1386. .filter-mode-button:active {
  1387. opacity: 0.72;
  1388. }
  1389. .filter-error-inline {
  1390. padding: 0 24rpx 18rpx;
  1391. color: var(--danger);
  1392. font-size: 24rpx;
  1393. line-height: 1.35;
  1394. font-weight: 800;
  1395. text-align: right;
  1396. box-sizing: border-box;
  1397. }
  1398. .filter-diagram-mode {
  1399. min-width: 0;
  1400. flex: none;
  1401. max-width: 260rpx;
  1402. color: #0f8f87;
  1403. font-size: 23rpx;
  1404. line-height: 1.35;
  1405. font-weight: 900;
  1406. text-align: right;
  1407. white-space: nowrap;
  1408. overflow: hidden;
  1409. text-overflow: ellipsis;
  1410. }
  1411. .filter-diagram {
  1412. position: relative;
  1413. min-height: 320rpx;
  1414. padding: 30rpx 0 30rpx;
  1415. border-top: 1rpx solid #edf2f7;
  1416. background: #ffffff;
  1417. box-sizing: border-box;
  1418. }
  1419. .filter-schematic {
  1420. position: relative;
  1421. width: 560rpx;
  1422. height: 260rpx;
  1423. margin: 0 auto;
  1424. color: #111827;
  1425. }
  1426. .filter-schematic-label {
  1427. position: absolute;
  1428. color: #111827;
  1429. font-size: 32rpx;
  1430. line-height: 1;
  1431. font-weight: 900;
  1432. font-style: italic;
  1433. letter-spacing: 0;
  1434. }
  1435. .filter-schematic-label--input {
  1436. left: 0;
  1437. top: 122rpx;
  1438. }
  1439. .filter-schematic-label--output {
  1440. left: 426rpx;
  1441. top: 118rpx;
  1442. }
  1443. .filter-schematic-wire,
  1444. .filter-schematic-dot {
  1445. position: absolute;
  1446. background: #111827;
  1447. }
  1448. .filter-schematic-wire {
  1449. height: 4rpx;
  1450. border-radius: 999rpx;
  1451. }
  1452. .filter-schematic-dot {
  1453. z-index: 3;
  1454. width: 18rpx;
  1455. height: 18rpx;
  1456. border-radius: 50%;
  1457. }
  1458. .filter-schematic-dot--input-top {
  1459. left: 38rpx;
  1460. top: 58rpx;
  1461. }
  1462. .filter-schematic-dot--input-bottom {
  1463. left: 38rpx;
  1464. top: 206rpx;
  1465. }
  1466. .filter-schematic-dot--node-top {
  1467. left: 358rpx;
  1468. top: 58rpx;
  1469. }
  1470. .filter-schematic-dot--node-bottom {
  1471. left: 358rpx;
  1472. top: 206rpx;
  1473. }
  1474. .filter-schematic-dot--output-top {
  1475. left: 514rpx;
  1476. top: 58rpx;
  1477. }
  1478. .filter-schematic-dot--output-bottom {
  1479. left: 514rpx;
  1480. top: 206rpx;
  1481. }
  1482. .filter-schematic-wire--top-input {
  1483. left: 56rpx;
  1484. top: 65rpx;
  1485. width: 100rpx;
  1486. }
  1487. .filter-schematic-wire--top-middle {
  1488. left: 268rpx;
  1489. top: 65rpx;
  1490. width: 98rpx;
  1491. }
  1492. .filter-schematic-wire--top-output {
  1493. left: 366rpx;
  1494. top: 65rpx;
  1495. width: 148rpx;
  1496. }
  1497. .filter-schematic-wire--bottom-input {
  1498. left: 56rpx;
  1499. top: 213rpx;
  1500. width: 310rpx;
  1501. }
  1502. .filter-schematic-wire--bottom-output {
  1503. left: 366rpx;
  1504. top: 213rpx;
  1505. width: 148rpx;
  1506. }
  1507. .filter-schematic-wire--branch-top {
  1508. left: 365rpx;
  1509. top: 76rpx;
  1510. width: 4rpx;
  1511. height: 40rpx;
  1512. }
  1513. .filter-schematic-wire--branch-bottom {
  1514. left: 365rpx;
  1515. top: 208rpx;
  1516. width: 4rpx;
  1517. height: 8rpx;
  1518. }
  1519. .filter-schematic-component {
  1520. position: absolute;
  1521. z-index: 2;
  1522. display: flex;
  1523. align-items: center;
  1524. justify-content: center;
  1525. box-sizing: border-box;
  1526. }
  1527. .filter-schematic-component--series {
  1528. left: 156rpx;
  1529. top: 40rpx;
  1530. width: 112rpx;
  1531. height: 54rpx;
  1532. }
  1533. .filter-schematic-component--shunt {
  1534. left: 342rpx;
  1535. top: 116rpx;
  1536. width: 50rpx;
  1537. height: 96rpx;
  1538. }
  1539. .filter-schematic-symbol {
  1540. display: block;
  1541. width: 100%;
  1542. height: 100%;
  1543. }
  1544. .filter-schematic-symbol--vertical {
  1545. width: 104rpx;
  1546. height: 48rpx;
  1547. transform: rotate(90deg);
  1548. }
  1549. .filter-schematic-mark {
  1550. position: absolute;
  1551. z-index: 4;
  1552. color: #111827;
  1553. font-size: 34rpx;
  1554. line-height: 1;
  1555. font-weight: 700;
  1556. font-style: italic;
  1557. }
  1558. .filter-schematic-mark--series {
  1559. left: 202rpx;
  1560. top: 0;
  1561. }
  1562. .filter-schematic-mark--shunt {
  1563. left: 305rpx;
  1564. top: 142rpx;
  1565. }
  1566. .theme-dark .filter-unit-value {
  1567. color: #e5e7eb;
  1568. }
  1569. .theme-dark .filter-value-input--computed {
  1570. border-color: #0f766e;
  1571. background: #0f2f2d;
  1572. color: #5eead4;
  1573. }
  1574. .theme-dark .filter-mode-button {
  1575. border-color: #334155;
  1576. background: #111827;
  1577. color: #99f6e4;
  1578. }
  1579. .theme-dark .filter-diagram {
  1580. border-color: #edf2f7;
  1581. background: #ffffff;
  1582. }
  1583. .theme-dark .filter-schematic,
  1584. .theme-dark .filter-schematic-label,
  1585. .theme-dark .filter-schematic-mark {
  1586. color: #1f2937;
  1587. }
  1588. .theme-dark .filter-diagram-mode {
  1589. color: #5eead4;
  1590. }
  1591. .theme-dark .filter-schematic-wire,
  1592. .theme-dark .filter-schematic-dot {
  1593. background: #111827;
  1594. }
  1595. .smd-section-title {
  1596. display: flex;
  1597. align-items: center;
  1598. justify-content: space-between;
  1599. gap: 16rpx;
  1600. }
  1601. .smd-section-title-text {
  1602. min-width: 0;
  1603. flex: 1;
  1604. }
  1605. .smd-mode-actions,
  1606. .smd-format-row {
  1607. display: flex;
  1608. align-items: center;
  1609. }
  1610. .smd-mode-actions {
  1611. flex: none;
  1612. gap: 8rpx;
  1613. }
  1614. .smd-format-row {
  1615. gap: 10rpx;
  1616. padding: 18rpx 24rpx 22rpx;
  1617. border-top: 1rpx solid #edf2f7;
  1618. box-sizing: border-box;
  1619. }
  1620. .smd-mode-button,
  1621. .smd-format-button {
  1622. flex: none;
  1623. display: flex;
  1624. align-items: center;
  1625. justify-content: center;
  1626. height: 46rpx;
  1627. border: 1rpx solid #d7e2ea;
  1628. border-radius: 10rpx;
  1629. background: #ffffff;
  1630. color: #64748b;
  1631. font-size: 22rpx;
  1632. line-height: 1.25;
  1633. font-weight: 900;
  1634. box-sizing: border-box;
  1635. }
  1636. .smd-mode-button {
  1637. min-width: 78rpx;
  1638. padding: 0 16rpx;
  1639. }
  1640. .smd-format-button {
  1641. flex: 1;
  1642. min-width: 0;
  1643. padding: 0 10rpx;
  1644. }
  1645. .smd-mode-button.is-active,
  1646. .smd-format-button.is-active {
  1647. border-color: var(--accent-dark);
  1648. background: var(--accent-soft);
  1649. color: var(--accent-dark);
  1650. }
  1651. .smd-mode-button:active,
  1652. .smd-format-button:active {
  1653. opacity: 0.72;
  1654. }
  1655. .smd-code-input {
  1656. width: 300rpx;
  1657. font-family: Menlo, Monaco, Consolas, monospace;
  1658. }
  1659. .smd-result-row {
  1660. min-height: 94rpx;
  1661. }
  1662. .smd-result-value {
  1663. flex: none;
  1664. max-width: 320rpx;
  1665. color: #0f8f87;
  1666. font-family: Menlo, Monaco, Consolas, monospace;
  1667. font-size: 30rpx;
  1668. line-height: 1.25;
  1669. font-weight: 900;
  1670. text-align: right;
  1671. word-break: break-all;
  1672. }
  1673. .smd-result-value--error {
  1674. color: var(--danger);
  1675. font-family: inherit;
  1676. font-size: 25rpx;
  1677. }
  1678. .theme-dark .smd-format-row {
  1679. border-color: #263241;
  1680. }
  1681. .theme-dark .smd-mode-button,
  1682. .theme-dark .smd-format-button {
  1683. border-color: #334155;
  1684. background: #111827;
  1685. color: #94a3b8;
  1686. }
  1687. .theme-dark .smd-mode-button.is-active,
  1688. .theme-dark .smd-format-button.is-active {
  1689. border-color: #5eead4;
  1690. background: #123d3b;
  1691. color: #99f6e4;
  1692. }
  1693. .theme-dark .smd-result-value {
  1694. color: #5eead4;
  1695. }
  1696. .theme-dark .smd-result-value--error {
  1697. color: var(--danger);
  1698. }
  1699. .crc-calc-result-row {
  1700. align-items: stretch;
  1701. min-height: 0;
  1702. padding-top: 16rpx;
  1703. padding-bottom: 16rpx;
  1704. }
  1705. .crc-calc-result-main {
  1706. width: 100%;
  1707. display: flex;
  1708. flex-direction: column;
  1709. align-items: stretch;
  1710. }
  1711. .crc-calc-result-value {
  1712. display: block;
  1713. width: 100%;
  1714. max-width: none;
  1715. margin-top: 10rpx;
  1716. padding: 14rpx 16rpx;
  1717. border-radius: 10rpx;
  1718. background: #f4fbfa;
  1719. color: #0f8f87;
  1720. font-family: Menlo, Monaco, Consolas, monospace;
  1721. font-size: 24rpx;
  1722. line-height: 1.35;
  1723. font-weight: 800;
  1724. text-align: right;
  1725. word-break: break-all;
  1726. white-space: normal;
  1727. box-sizing: border-box;
  1728. }
  1729. .crc-calc-result-value:active {
  1730. opacity: 0.72;
  1731. }
  1732. .crc-calc-result-value--bin {
  1733. display: flex;
  1734. flex-direction: column;
  1735. align-items: flex-end;
  1736. gap: 3rpx;
  1737. max-width: none;
  1738. text-align: right;
  1739. }
  1740. .crc-calc-result-row .param-name {
  1741. word-break: keep-all;
  1742. }
  1743. .theme-dark .crc-calc-result-value {
  1744. background: #0f2f2d;
  1745. color: #5eead4;
  1746. }
  1747. .theme-dark .crc-calc-result-value--bin {
  1748. background: #0f2f2d;
  1749. color: #5eead4;
  1750. }
  1751. .theme-dark .crc-calc-result-value--error {
  1752. background: #432114;
  1753. color: #fed7aa;
  1754. }
  1755. .refrigeration-mode-picker {
  1756. flex: none;
  1757. }
  1758. .refrigeration-title-row {
  1759. min-height: 76rpx;
  1760. padding-top: 12rpx;
  1761. padding-bottom: 12rpx;
  1762. }
  1763. .refrigeration-picker-value {
  1764. width: 240rpx;
  1765. min-width: 240rpx;
  1766. max-width: 240rpx;
  1767. height: 46rpx;
  1768. font-size: 24rpx;
  1769. line-height: 46rpx;
  1770. }
  1771. .refrigeration-formula-row {
  1772. justify-content: flex-end;
  1773. }
  1774. .refrigeration-formula-text {
  1775. min-width: 0;
  1776. flex: 1;
  1777. color: #64748b;
  1778. font-size: 24rpx;
  1779. line-height: 1.35;
  1780. font-weight: 800;
  1781. text-align: right;
  1782. word-break: break-all;
  1783. }
  1784. .refrigeration-input {
  1785. width: 260rpx;
  1786. }
  1787. .three-phase-input {
  1788. width: 260rpx;
  1789. }
  1790. .theme-dark .refrigeration-formula-text {
  1791. color: #94a3b8;
  1792. }
  1793. .subpage-fixed-header .panel-actions {
  1794. flex-shrink: 0;
  1795. }
  1796. .subpage-fixed-header .panel-action-button {
  1797. width: 86rpx;
  1798. }
  1799. .auto-read-button {
  1800. margin-left: 2rpx;
  1801. }
  1802. @media (max-width: 360px) {
  1803. .panel-title {
  1804. font-size: 28rpx;
  1805. }
  1806. .param-name {
  1807. font-size: 26rpx;
  1808. }
  1809. .param-meta {
  1810. font-size: 21rpx;
  1811. }
  1812. .value-input {
  1813. width: 260rpx;
  1814. }
  1815. .value-input--with-unit {
  1816. width: 260rpx;
  1817. }
  1818. .generic-picker-value,
  1819. .generic-value-input {
  1820. width: 260rpx;
  1821. min-width: 260rpx;
  1822. max-width: 260rpx;
  1823. }
  1824. .generic-register-input-wrap {
  1825. width: 180rpx;
  1826. min-width: 150rpx;
  1827. max-width: 38%;
  1828. }
  1829. .generic-register-value {
  1830. width: 100%;
  1831. min-width: 0;
  1832. max-width: 100%;
  1833. }
  1834. .generic-readonly-value {
  1835. width: 180rpx;
  1836. max-width: 38%;
  1837. }
  1838. .crc-config-input {
  1839. width: 230rpx;
  1840. min-width: 230rpx;
  1841. max-width: 230rpx;
  1842. }
  1843. .crc-algorithm-panel .crc-picker-value {
  1844. width: auto;
  1845. min-width: 0;
  1846. max-width: 330rpx;
  1847. font-size: 22rpx;
  1848. }
  1849. .crc-data-card-header {
  1850. gap: 8rpx;
  1851. padding-right: 14rpx;
  1852. }
  1853. .crc-data-header-actions {
  1854. gap: 4rpx;
  1855. }
  1856. .crc-data-type-value {
  1857. width: 86rpx;
  1858. font-size: 20rpx;
  1859. }
  1860. .crc-data-type-picker {
  1861. margin-right: 6rpx;
  1862. }
  1863. .crc-data-header-actions .panel-action-button {
  1864. width: 70rpx;
  1865. font-size: 20rpx;
  1866. }
  1867. .crc-file-name,
  1868. .crc-error-value {
  1869. max-width: 360rpx;
  1870. }
  1871. .filter-value-input {
  1872. width: 180rpx;
  1873. min-width: 0;
  1874. max-width: 180rpx;
  1875. }
  1876. .filter-unit-picker,
  1877. .filter-unit-value {
  1878. width: 84rpx;
  1879. }
  1880. .filter-mode-button {
  1881. min-width: 68rpx;
  1882. padding: 0 12rpx;
  1883. font-size: 22rpx;
  1884. }
  1885. .filter-diagram {
  1886. padding-left: 4rpx;
  1887. padding-right: 4rpx;
  1888. }
  1889. .filter-schematic {
  1890. transform: scale(0.94);
  1891. transform-origin: center center;
  1892. }
  1893. .smd-code-input {
  1894. width: 240rpx;
  1895. }
  1896. .smd-result-value {
  1897. max-width: 260rpx;
  1898. font-size: 26rpx;
  1899. }
  1900. .crc-calc-result-value {
  1901. width: 100%;
  1902. max-width: none;
  1903. font-size: 23rpx;
  1904. }
  1905. .crc-calc-result-value--bin {
  1906. max-width: none;
  1907. font-size: 21rpx;
  1908. }
  1909. .smd-mode-button {
  1910. min-width: 68rpx;
  1911. padding: 0 12rpx;
  1912. }
  1913. .smd-format-row {
  1914. gap: 8rpx;
  1915. padding-left: 18rpx;
  1916. padding-right: 18rpx;
  1917. }
  1918. .smd-format-button {
  1919. font-size: 20rpx;
  1920. }
  1921. .refrigeration-picker-value {
  1922. width: 210rpx;
  1923. min-width: 210rpx;
  1924. max-width: 210rpx;
  1925. font-size: 22rpx;
  1926. }
  1927. .refrigeration-input {
  1928. width: 220rpx;
  1929. }
  1930. .three-phase-input {
  1931. width: 220rpx;
  1932. }
  1933. }