| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- *{
- margin:0;
- padding:0;
- box-sizing:border-box;
- }
- body{
- height:100vh;
- font-family:"Segoe UI","Microsoft YaHei",sans-serif;
- background:#0b1220;
- color:#e2e8f0;
- }
- /* 主布局 */
- .app{
- display:flex;
- flex-direction:column;
- height:100vh;
- }
- /* 标题栏 */
- .topbar{
- height: 64px;
- background: linear-gradient(180deg, #1f2937, #111827);
- border-bottom: 1px solid rgba(148, 163, 184, 0.18);
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0;
- }
- .device{
- display: flex;
- align-items: center;
- gap: 10px;
- margin-left: 20px;
- }
- .device .icon{
- font-size: 28px;
- width: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .device-info {
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .title-line {
- line-height: 1.3;
- }
- .title-line .title {
- font-size: 15px;
- font-weight: 600;
- color: #e2e8f0;
- letter-spacing: 0.5px;
- }
- .imei-line {
- line-height: 1.3;
- }
- #imei-value {
- font-family: ui-monospace, monospace;
- font-size: 15px;
- color: #94a3b8;
- }
- .actions{
- display:flex;
- align-items:center;
- gap:10px;
- }
- /* 次布局 */
- .layout{
- display:flex;
- flex:1;
- overflow:hidden;
- }
- /* 左侧栏 */
- .sidebar{
- width:240px;
- background:#0f172a;
- border-right:1px solid rgba(148,163,184,0.12);
- display:flex;
- flex-direction:column;
- padding: 20px;
- }
- .menu-item{
- display:flex;
- align-items:center;
- gap:10px;
- padding:14px 16px;
- border-radius:4px;
- cursor:pointer;
- color:#94a3b8;
- font-size:15px;
- font-weight:500;
- transition:0.2s;
- }
- .menu-item:hover{
- background:#1e293b;
- color:white;
- }
- .menu-item.active{
- background:#2563eb;
- color:white;
- }
- /* 页容器 */
- .view{
- flex:1;
- padding:6px;
- overflow:auto;
- background:#0f172a;
- }
- /* 页风格 */
- .card {
- background: #0f172a;
- border: 1px solid #1f2937;
- border-radius: 4px;
- padding: 12px;
- margin-bottom: 0;
- }
- .card-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- }
- .card-header h2 {
- font-size: 14px;
- font-weight: 500;
- color: #e2e8f0;
- margin: 0;
- }
- .output {
- background: #020617;
- border: 1px solid #1f2937;
- border-radius: 4px;
- padding: 8px;
- font-size: 12px;
- font-family: ui-monospace, Consolas, monospace;
- color: #cbd5e1;
- overflow: auto;
- white-space: pre-wrap;
- word-break: break-all;
- line-height: 1.6;
- }
- h1{
- font-size:20px;
- margin-bottom:10px;
- color:#e2e8f0;
- }
- p{
- font-size:15px;
- color:#94a3b8;
- }
- /* 日志区 */
- .log-card {
- flex: 1;
- display: flex;
- flex-direction: column;
- min-height: 0;
- }
- .log-card .output {
- flex: 1;
- min-height: 0;
- }
- .log-actions {
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .log-level-select {
- background: #0f172a;
- border: 1px solid rgba(148, 163, 184, 0.25);
- border-radius: 4px;
- color: #e5e7eb;
- font-size: 14px;
- padding: 6px 8px;
- height: 30px;
- min-width: 80px;
- cursor: pointer;
- outline: none;
- -webkit-appearance: none;
- appearance: none;
- }
- .log-level-select:hover {
- border-color: rgba(148, 163, 184, 0.45);
- }
- .log-level-select:focus {
- border-color: #3b82f6;
- }
- .log-card .output {
- padding-bottom: 32px;
- }
- /* 日志色 */
- .log-trace {
- color:#38bdf8;
- }
- .log-debug {
- color:#38bdf8;
- }
- .log-info {
- color:#38bdf8;
- }
- .log-warn {
- color:#fbbf24;
- }
- .log-error {
- color:#fb7185;
- }
- .log-fatal {
- color:#ef4444;
- font-weight:bold;
- }
- .log-panic {
- color:#c084fc;
- font-weight:bold;
- }
- .log-default {
- color:#38bdf8;
- }
|