app.wxss 40 KB

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