home.wxss 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. .connected-panel,
  2. .device-card,
  3. .empty-state {
  4. border: 1rpx solid #e6ebf2;
  5. border-radius: 18rpx;
  6. background: #ffffff;
  7. box-shadow: var(--shadow-soft);
  8. box-sizing: border-box;
  9. }
  10. .connected-panel {
  11. margin-top: 24rpx;
  12. padding-bottom: 24rpx;
  13. }
  14. .connected-panel:first-child {
  15. margin-top: 0;
  16. }
  17. .connected-summary {
  18. min-height: 56rpx;
  19. padding: 8rpx 24rpx 0;
  20. }
  21. .connected-name {
  22. min-width: 0;
  23. color: #111827;
  24. font-size: 34rpx;
  25. line-height: 1.35;
  26. font-weight: 800;
  27. overflow: hidden;
  28. text-overflow: ellipsis;
  29. white-space: nowrap;
  30. }
  31. .connection-badges {
  32. justify-content: flex-end;
  33. gap: 14rpx;
  34. padding: 8rpx 24rpx 0;
  35. }
  36. .traffic-badge {
  37. flex: none;
  38. min-width: 156rpx;
  39. text-align: right;
  40. color: #64748b;
  41. font-size: 22rpx;
  42. line-height: 1.35;
  43. white-space: nowrap;
  44. }
  45. .meta-grid {
  46. display: flex;
  47. flex-direction: column;
  48. margin: 18rpx 24rpx 0;
  49. }
  50. .meta-item {
  51. display: flex;
  52. justify-content: space-between;
  53. gap: 20rpx;
  54. padding: 16rpx 0;
  55. border-top: 1rpx solid #edf2f7;
  56. }
  57. .meta-item:first-child {
  58. border-top: 0;
  59. }
  60. .meta-label {
  61. flex: none;
  62. color: #64748b;
  63. font-size: 24rpx;
  64. }
  65. .meta-value {
  66. min-width: 0;
  67. color: #111827;
  68. font-size: 24rpx;
  69. text-align: right;
  70. word-break: break-all;
  71. }
  72. .device-section {
  73. margin-top: 30rpx;
  74. padding-bottom: 10rpx;
  75. }
  76. .device-section .panel-title {
  77. flex: 1;
  78. white-space: nowrap;
  79. word-break: keep-all;
  80. }
  81. .device-filter {
  82. flex: none;
  83. display: flex;
  84. align-items: center;
  85. padding: 4rpx;
  86. border: 1rpx solid #d8e2ea;
  87. border-radius: 12rpx;
  88. background: #eef4f7;
  89. box-sizing: border-box;
  90. }
  91. .device-filter-item {
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. width: 72rpx;
  96. height: 42rpx;
  97. border-radius: 8rpx;
  98. color: #64748b;
  99. font-size: 21rpx;
  100. line-height: 1.2;
  101. font-weight: 800;
  102. }
  103. .device-filter-item.is-active {
  104. background: #ffffff;
  105. color: var(--accent-dark);
  106. box-shadow: 0 4rpx 10rpx rgba(15, 23, 42, 0.08);
  107. }
  108. .device-scroll {
  109. height: 520rpx;
  110. box-sizing: border-box;
  111. }
  112. .empty-state {
  113. padding: 42rpx 28rpx;
  114. text-align: center;
  115. }
  116. .empty-title {
  117. color: #111827;
  118. font-size: 30rpx;
  119. line-height: 1.4;
  120. font-weight: 800;
  121. }
  122. .empty-text {
  123. margin-top: 10rpx;
  124. color: #6b7280;
  125. font-size: 25rpx;
  126. line-height: 1.45;
  127. }
  128. .device-card {
  129. margin-bottom: 18rpx;
  130. padding: 18rpx 20rpx;
  131. }
  132. .device-card--connected {
  133. border-color: #93d5cf;
  134. background: #f0fdfa;
  135. }
  136. .device-info {
  137. min-width: 0;
  138. }
  139. .device-main-row,
  140. .device-meta-row {
  141. display: flex;
  142. align-items: center;
  143. gap: 14rpx;
  144. }
  145. .device-name {
  146. min-width: 0;
  147. flex: 1;
  148. color: #111827;
  149. font-size: 30rpx;
  150. line-height: 1.35;
  151. font-weight: 800;
  152. overflow: hidden;
  153. text-overflow: ellipsis;
  154. white-space: nowrap;
  155. }
  156. .device-badges {
  157. flex: none;
  158. display: flex;
  159. flex-direction: row;
  160. align-items: center;
  161. gap: 18rpx;
  162. }
  163. .device-badges--stacked {
  164. justify-content: flex-start;
  165. gap: 14rpx;
  166. margin-top: 10rpx;
  167. }
  168. .device-id,
  169. .device-service,
  170. .device-target {
  171. margin-top: 8rpx;
  172. color: #64748b;
  173. font-size: 22rpx;
  174. line-height: 1.4;
  175. word-break: break-all;
  176. }
  177. .device-target {
  178. flex: none;
  179. color: var(--accent-dark);
  180. font-weight: 800;
  181. }
  182. .rssi {
  183. flex: none;
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. width: 128rpx;
  188. height: 46rpx;
  189. padding: 0 10rpx;
  190. border-radius: 999rpx;
  191. background: #f1f5f9;
  192. color: #475569;
  193. font-size: 22rpx;
  194. line-height: 1.35;
  195. box-sizing: border-box;
  196. white-space: nowrap;
  197. }
  198. .connect-state {
  199. flex: none;
  200. display: flex;
  201. align-items: center;
  202. justify-content: center;
  203. width: 112rpx;
  204. height: 46rpx;
  205. padding: 0;
  206. border-radius: 999rpx;
  207. background: var(--accent-soft);
  208. color: var(--accent-dark);
  209. font-size: 22rpx;
  210. line-height: 1.35;
  211. white-space: nowrap;
  212. }
  213. .connect-state.connected {
  214. background: #dcfce7;
  215. color: #166534;
  216. }
  217. .protocol-form {
  218. padding: 8rpx 24rpx 0;
  219. }
  220. .protocol-row {
  221. display: flex;
  222. align-items: center;
  223. justify-content: space-between;
  224. gap: 18rpx;
  225. min-height: 76rpx;
  226. border-top: 1rpx solid #edf2f7;
  227. }
  228. .protocol-field-row {
  229. justify-content: space-between;
  230. }
  231. .protocol-row:first-child {
  232. border-top: 0;
  233. }
  234. .protocol-label {
  235. color: #475569;
  236. font-size: 24rpx;
  237. line-height: 1.35;
  238. font-weight: 700;
  239. }
  240. .protocol-picker {
  241. width: 350rpx;
  242. height: 70rpx;
  243. padding: 0;
  244. border: 0;
  245. background: transparent;
  246. box-sizing: border-box;
  247. }
  248. .picker-value {
  249. color: #111827;
  250. font-size: 28rpx;
  251. line-height: 70rpx;
  252. text-align: right;
  253. }
  254. .protocol-input {
  255. width: 100%;
  256. height: 70rpx;
  257. padding: 0 18rpx;
  258. border: 1rpx solid #e7edf3;
  259. border-radius: 10rpx;
  260. background: #fafbfd;
  261. color: #111827;
  262. font-family: Menlo, Monaco, Consolas, monospace;
  263. font-size: 28rpx;
  264. line-height: 70rpx;
  265. text-align: right;
  266. box-sizing: border-box;
  267. }
  268. .protocol-row-input {
  269. flex: none;
  270. width: 350rpx;
  271. }
  272. .protocol-value-picker {
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. white-space: nowrap;
  276. }
  277. .coil-row {
  278. margin-top: 16rpx;
  279. }
  280. .coil-control {
  281. display: flex;
  282. align-items: center;
  283. gap: 14rpx;
  284. color: var(--accent-dark);
  285. font-size: 25rpx;
  286. font-weight: 800;
  287. }
  288. .generated-frame {
  289. margin-top: 18rpx;
  290. margin-bottom: 24rpx;
  291. padding: 16rpx 18rpx;
  292. border: 1rpx solid #d9edeb;
  293. border-radius: 12rpx;
  294. background: #f4fbfa;
  295. }
  296. .generated-title {
  297. color: #64748b;
  298. font-size: 22rpx;
  299. line-height: 1.35;
  300. }
  301. .generated-value {
  302. margin-top: 8rpx;
  303. color: #0f766e;
  304. font-family: Menlo, Monaco, Consolas, monospace;
  305. font-size: 25rpx;
  306. line-height: 1.55;
  307. font-weight: 800;
  308. word-break: break-all;
  309. }
  310. .protocol-error {
  311. margin-top: 8rpx;
  312. color: var(--danger);
  313. font-size: 23rpx;
  314. line-height: 1.4;
  315. }
  316. .protocol-multiple-dialog {
  317. max-height: 86vh;
  318. }
  319. .protocol-multiple-row {
  320. padding: 18rpx 24rpx;
  321. border-top: 1rpx solid #edf2f7;
  322. box-sizing: border-box;
  323. }
  324. .protocol-multiple-row:first-child {
  325. border-top: 0;
  326. }
  327. .protocol-multiple-head,
  328. .protocol-multiple-text-length {
  329. display: flex;
  330. align-items: center;
  331. justify-content: space-between;
  332. gap: 16rpx;
  333. }
  334. .protocol-multiple-title {
  335. color: #111827;
  336. font-family: Menlo, Monaco, Consolas, monospace;
  337. font-size: 26rpx;
  338. line-height: 1.35;
  339. font-weight: 900;
  340. }
  341. .protocol-multiple-type {
  342. width: 240rpx;
  343. min-width: 240rpx;
  344. max-width: 240rpx;
  345. }
  346. .protocol-multiple-text-length {
  347. margin-top: 12rpx;
  348. }
  349. .protocol-multiple-length-input {
  350. width: 180rpx;
  351. }
  352. .protocol-multiple-input {
  353. width: 100%;
  354. margin-top: 12rpx;
  355. }
  356. .protocol-multiple-input--text {
  357. text-align: left;
  358. }
  359. .hex-input {
  360. width: auto;
  361. min-height: 190rpx;
  362. margin: 12rpx 24rpx 24rpx;
  363. padding: 20rpx;
  364. border: 1rpx solid #e7edf3;
  365. border-radius: 14rpx;
  366. background: #fafbfd;
  367. color: #111827;
  368. font-family: Menlo, Monaco, Consolas, monospace;
  369. font-size: 27rpx;
  370. line-height: 1.55;
  371. box-sizing: border-box;
  372. }
  373. .log-header {
  374. padding-right: 16rpx;
  375. }
  376. .empty-log {
  377. padding: 42rpx 24rpx;
  378. color: #64748b;
  379. font-size: 25rpx;
  380. line-height: 1.4;
  381. text-align: center;
  382. }
  383. .log-scroll {
  384. height: 500rpx;
  385. border-top: 1rpx solid #edf2f7;
  386. box-sizing: border-box;
  387. }
  388. .log-row {
  389. padding: 18rpx 24rpx;
  390. border-top: 1rpx solid #edf2f7;
  391. }
  392. .log-row:first-child {
  393. border-top: 0;
  394. }
  395. .log-meta {
  396. display: flex;
  397. align-items: center;
  398. justify-content: space-between;
  399. gap: 18rpx;
  400. }
  401. .log-tags {
  402. display: flex;
  403. align-items: center;
  404. gap: 10rpx;
  405. }
  406. .log-direction {
  407. color: #0f766e;
  408. font-size: 23rpx;
  409. line-height: 1.35;
  410. font-weight: 900;
  411. }
  412. .log-note {
  413. padding: 3rpx 9rpx;
  414. border-radius: 999rpx;
  415. background: #eff6ff;
  416. color: #2563eb;
  417. font-size: 20rpx;
  418. line-height: 1.35;
  419. font-weight: 800;
  420. }
  421. .log-row--RX .log-note {
  422. background: #ecfdf5;
  423. color: #047857;
  424. }
  425. .log-row--TX .log-direction {
  426. color: #2563eb;
  427. }
  428. .log-row--SYS .log-direction {
  429. color: #64748b;
  430. }
  431. .log-time {
  432. color: #94a3b8;
  433. font-size: 22rpx;
  434. line-height: 1.35;
  435. }
  436. .log-payload {
  437. margin-top: 8rpx;
  438. color: #111827;
  439. font-family: Menlo, Monaco, Consolas, monospace;
  440. font-size: 25rpx;
  441. line-height: 1.55;
  442. word-break: break-all;
  443. }
  444. @media (max-width: 360px) {
  445. .device-card {
  446. padding: 16rpx;
  447. }
  448. .device-main-row {
  449. align-items: flex-start;
  450. }
  451. .protocol-picker {
  452. width: 280rpx;
  453. }
  454. .protocol-row-input {
  455. width: 280rpx;
  456. }
  457. .protocol-multiple-type {
  458. width: 200rpx;
  459. min-width: 200rpx;
  460. max-width: 200rpx;
  461. }
  462. }