1
0

app.wxss 42 KB

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