app.css 5.2 KB

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