app.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. *{
  2. margin:0;
  3. padding:0;
  4. box-sizing:border-box;
  5. }
  6. body{
  7. height:100vh;
  8. font-family:"Segoe UI","Microsoft YaHei",sans-serif;
  9. background:#0b1220;
  10. color:#e2e8f0;
  11. }
  12. #loading-mask {
  13. position: fixed;
  14. inset: 0;
  15. z-index: 9999;
  16. background: #0f172a;
  17. display: flex;
  18. align-items: center;
  19. justify-content: center;
  20. }
  21. .loading-box {
  22. display: flex;
  23. flex-direction: column;
  24. align-items: center;
  25. gap: 12px;
  26. }
  27. .loading-dot {
  28. width: 24px;
  29. height: 24px;
  30. border: 3px solid #475569;
  31. border-top-color: #38bdf8;
  32. border-radius: 50%;
  33. animation: loading-spin 1s linear infinite;
  34. }
  35. .loading-text {
  36. color: #94a3b8;
  37. font-size: 14px;
  38. }
  39. @keyframes loading-spin {
  40. from {
  41. transform: rotate(0deg);
  42. }
  43. to {
  44. transform: rotate(360deg);
  45. }
  46. }
  47. /* 主布局 */
  48. .app{
  49. display:flex;
  50. flex-direction:column;
  51. height:100vh;
  52. }
  53. /* 标题栏 */
  54. .topbar{
  55. height: 64px;
  56. background: linear-gradient(180deg, #1f2937, #111827);
  57. border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  58. box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  59. display: flex;
  60. align-items: center;
  61. justify-content: space-between;
  62. padding: 0;
  63. }
  64. .device{
  65. display: flex;
  66. align-items: center;
  67. gap: 10px;
  68. margin-left: 20px;
  69. }
  70. .device .icon{
  71. font-size: 28px;
  72. width: 24px;
  73. display: flex;
  74. align-items: center;
  75. justify-content: center;
  76. }
  77. .device-info {
  78. display: flex;
  79. flex-direction: column;
  80. justify-content: center;
  81. }
  82. .title-line {
  83. line-height: 1.3;
  84. }
  85. .title-line .title {
  86. font-size: 15px;
  87. font-weight: 600;
  88. color: #e2e8f0;
  89. letter-spacing: 0.5px;
  90. }
  91. .imei-line {
  92. line-height: 1.3;
  93. }
  94. #imei-value {
  95. font-family: ui-monospace, monospace;
  96. font-size: 15px;
  97. color: #94a3b8;
  98. }
  99. .actions{
  100. display:flex;
  101. align-items:center;
  102. gap:10px;
  103. margin-right:16px;
  104. }
  105. .clock {
  106. font-size: 16px;
  107. font-weight: 700;
  108. letter-spacing: 1px;
  109. background: linear-gradient(
  110. 90deg,
  111. #00e5ff,
  112. #2196ff,
  113. #00ffcc
  114. );
  115. -webkit-background-clip: text;
  116. -webkit-text-fill-color: transparent;
  117. background-clip: text;
  118. text-shadow:
  119. 0 0 6px rgba(0, 229, 255, 0.6),
  120. 0 0 12px rgba(33, 150, 255, 0.5);
  121. }
  122. /* 次布局 */
  123. .layout{
  124. display:flex;
  125. flex:1;
  126. overflow:hidden;
  127. }
  128. /* 左侧栏 */
  129. .sidebar{
  130. width:160px;
  131. background:#0f172a;
  132. border-right:1px solid rgba(148,163,184,0.12);
  133. display:flex;
  134. flex-direction:column;
  135. padding: 20px;
  136. }
  137. .sidebar-actions {
  138. margin-top:auto;
  139. display:flex;
  140. flex-direction:column;
  141. gap:10px;
  142. }
  143. .action-item {
  144. display:flex;
  145. align-items:center;
  146. gap:10px;
  147. padding:14px 16px;
  148. border-radius:4px;
  149. cursor:pointer;
  150. color:#94a3b8;
  151. font-size:15px;
  152. font-weight:500;
  153. transition:0.2s;
  154. }
  155. .action-item:hover {
  156. background:#1e293b;
  157. color:white;
  158. }
  159. .action-reboot
  160. .action-logout {
  161. color:#94a3b8;
  162. }
  163. .menu-item{
  164. display:flex;
  165. align-items:center;
  166. gap:10px;
  167. padding:14px 16px;
  168. border-radius:4px;
  169. cursor:pointer;
  170. color:#94a3b8;
  171. font-size:15px;
  172. font-weight:500;
  173. transition:0.2s;
  174. }
  175. .menu-item:hover{
  176. background:#1e293b;
  177. color:white;
  178. }
  179. .menu-item.active{
  180. background:#2563eb;
  181. color:white;
  182. }
  183. /* 页容器 */
  184. .view{
  185. flex:1;
  186. padding:6px;
  187. overflow:auto;
  188. background:#0f172a;
  189. }
  190. /* 页风格 */
  191. .card {
  192. background: #0f172a;
  193. border: 1px solid #1f2937;
  194. border-radius: 4px;
  195. padding: 12px;
  196. margin-bottom: 0;
  197. }
  198. .card-header {
  199. display: flex;
  200. justify-content: space-between;
  201. align-items: center;
  202. margin-bottom: 12px;
  203. }
  204. .card-header h2 {
  205. font-size: 14px;
  206. font-weight: 500;
  207. color: #e2e8f0;
  208. margin: 0;
  209. }
  210. .output {
  211. background: #020617;
  212. border: 1px solid #1f2937;
  213. border-radius: 4px;
  214. padding: 8px;
  215. font-size: 12px;
  216. font-family: ui-monospace, Consolas, monospace;
  217. color: #cbd5e1;
  218. overflow: auto;
  219. white-space: pre-wrap;
  220. word-break: break-all;
  221. line-height: 1.6;
  222. }
  223. h1{
  224. font-size:20px;
  225. margin-bottom:10px;
  226. color:#e2e8f0;
  227. }
  228. p{
  229. font-size:15px;
  230. color:#94a3b8;
  231. }
  232. /* 日志区 */
  233. .log-card {
  234. flex: 1;
  235. display: flex;
  236. flex-direction: column;
  237. min-height: 0;
  238. }
  239. .log-card .output {
  240. flex: 1;
  241. min-height: 0;
  242. }
  243. .log-actions {
  244. display: flex;
  245. align-items: center;
  246. gap: 4px;
  247. }
  248. .log-level-select {
  249. background: #0f172a;
  250. border: 1px solid rgba(148, 163, 184, 0.25);
  251. border-radius: 4px;
  252. color: #e5e7eb;
  253. font-size: 14px;
  254. padding: 6px 8px;
  255. height: 35px;
  256. min-width: 80px;
  257. cursor: pointer;
  258. outline: none;
  259. -webkit-appearance: none;
  260. appearance: none;
  261. }
  262. .log-level-select:hover {
  263. border-color: rgba(148, 163, 184, 0.45);
  264. }
  265. .log-level-select:focus {
  266. border-color: #3b82f6;
  267. }
  268. .log-card .output {
  269. padding-bottom: 32px;
  270. }
  271. /* 日志色 */
  272. .log-trace {
  273. color:#38bdf8;
  274. }
  275. .log-debug {
  276. color:#38bdf8;
  277. }
  278. .log-info {
  279. color:#38bdf8;
  280. }
  281. .log-warn {
  282. color:#fbbf24;
  283. }
  284. .log-error {
  285. color:#fb7185;
  286. }
  287. .log-fatal {
  288. color:#ef4444;
  289. font-weight:bold;
  290. }
  291. .log-panic {
  292. color:#c084fc;
  293. font-weight:bold;
  294. }
  295. .log-default {
  296. color:#38bdf8;
  297. }