1
0

app.wxss 38 KB

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