app.css 4.5 KB

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