app.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. }
  69. .clock {
  70. font-size: 16px;
  71. font-weight: 700;
  72. letter-spacing: 1px;
  73. background: linear-gradient(
  74. 90deg,
  75. #00e5ff,
  76. #2196ff,
  77. #00ffcc
  78. );
  79. -webkit-background-clip: text;
  80. -webkit-text-fill-color: transparent;
  81. background-clip: text;
  82. text-shadow:
  83. 0 0 6px rgba(0, 229, 255, 0.6),
  84. 0 0 12px rgba(33, 150, 255, 0.5);
  85. }
  86. /* 次布局 */
  87. .layout{
  88. display:flex;
  89. flex:1;
  90. overflow:hidden;
  91. }
  92. /* 左侧栏 */
  93. .sidebar{
  94. width:240px;
  95. background:#0f172a;
  96. border-right:1px solid rgba(148,163,184,0.12);
  97. display:flex;
  98. flex-direction:column;
  99. padding: 20px;
  100. }
  101. .menu-item{
  102. display:flex;
  103. align-items:center;
  104. gap:10px;
  105. padding:14px 16px;
  106. border-radius:4px;
  107. cursor:pointer;
  108. color:#94a3b8;
  109. font-size:15px;
  110. font-weight:500;
  111. transition:0.2s;
  112. }
  113. .menu-item:hover{
  114. background:#1e293b;
  115. color:white;
  116. }
  117. .menu-item.active{
  118. background:#2563eb;
  119. color:white;
  120. }
  121. /* 页容器 */
  122. .view{
  123. flex:1;
  124. padding:6px;
  125. overflow:auto;
  126. background:#0f172a;
  127. }
  128. /* 页风格 */
  129. .card {
  130. background: #0f172a;
  131. border: 1px solid #1f2937;
  132. border-radius: 4px;
  133. padding: 12px;
  134. margin-bottom: 0;
  135. }
  136. .card-header {
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. margin-bottom: 12px;
  141. }
  142. .card-header h2 {
  143. font-size: 14px;
  144. font-weight: 500;
  145. color: #e2e8f0;
  146. margin: 0;
  147. }
  148. .output {
  149. background: #020617;
  150. border: 1px solid #1f2937;
  151. border-radius: 4px;
  152. padding: 8px;
  153. font-size: 12px;
  154. font-family: ui-monospace, Consolas, monospace;
  155. color: #cbd5e1;
  156. overflow: auto;
  157. white-space: pre-wrap;
  158. word-break: break-all;
  159. line-height: 1.6;
  160. }
  161. h1{
  162. font-size:20px;
  163. margin-bottom:10px;
  164. color:#e2e8f0;
  165. }
  166. p{
  167. font-size:15px;
  168. color:#94a3b8;
  169. }
  170. /* 日志区 */
  171. .log-card {
  172. flex: 1;
  173. display: flex;
  174. flex-direction: column;
  175. min-height: 0;
  176. }
  177. .log-card .output {
  178. flex: 1;
  179. min-height: 0;
  180. }
  181. .log-actions {
  182. display: flex;
  183. align-items: center;
  184. gap: 10px;
  185. }
  186. .log-level-select {
  187. background: #0f172a;
  188. border: 1px solid rgba(148, 163, 184, 0.25);
  189. border-radius: 4px;
  190. color: #e5e7eb;
  191. font-size: 14px;
  192. padding: 6px 8px;
  193. height: 30px;
  194. min-width: 80px;
  195. cursor: pointer;
  196. outline: none;
  197. -webkit-appearance: none;
  198. appearance: none;
  199. }
  200. .log-level-select:hover {
  201. border-color: rgba(148, 163, 184, 0.45);
  202. }
  203. .log-level-select:focus {
  204. border-color: #3b82f6;
  205. }
  206. .log-card .output {
  207. padding-bottom: 32px;
  208. }
  209. /* 日志色 */
  210. .log-trace {
  211. color:#38bdf8;
  212. }
  213. .log-debug {
  214. color:#38bdf8;
  215. }
  216. .log-info {
  217. color:#38bdf8;
  218. }
  219. .log-warn {
  220. color:#fbbf24;
  221. }
  222. .log-error {
  223. color:#fb7185;
  224. }
  225. .log-fatal {
  226. color:#ef4444;
  227. font-weight:bold;
  228. }
  229. .log-panic {
  230. color:#c084fc;
  231. font-weight:bold;
  232. }
  233. .log-default {
  234. color:#38bdf8;
  235. }