:root { --bg: #071015; --panel: rgba(18, 34, 41, 0.92); --panel-strong: rgba(21, 44, 52, 0.98); --line: rgba(137, 174, 183, 0.24); --text: #eef7f5; --muted: #9fb6b7; --cyan: #4bd4d2; --green: #50d890; --amber: #e9c46a; --red: #ff6b6b; --blue: #78a6ff; --shadow: 0 24px 60px rgba(0, 0, 0, 0.35); } * { box-sizing: border-box; } body { min-height: 100vh; margin: 0; color: var(--text); font-family: "Aptos Display", "Microsoft YaHei UI", "Segoe UI", sans-serif; background: radial-gradient(circle at top left, rgba(75, 212, 210, 0.18), transparent 34rem), linear-gradient(135deg, #061014 0%, #0f2228 46%, #111b1f 100%); } body::before { position: fixed; inset: 0; z-index: -1; content: ""; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.2)); } .shell { width: min(1760px, calc(100vw - 40px)); margin: 0 auto; padding: 28px 0 34px; } .topbar, .summary, .layout { display: grid; gap: 18px; } .topbar { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 20px; } .eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 13px; letter-spacing: 0; text-transform: uppercase; } h1, h2, p { margin: 0; } h1 { font-size: 32px; font-weight: 760; } h2 { font-size: 18px; font-weight: 700; } .clock { min-width: 220px; padding: 14px 18px; text-align: right; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 8px; } .clock span { display: block; font-size: 24px; font-weight: 760; } .clock small { color: var(--muted); } .summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; } .summary-item { min-height: 116px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 8px; box-shadow: var(--shadow); } .summary-item span { display: block; color: var(--muted); font-size: 14px; } .summary-item strong { display: block; margin-top: 12px; font-size: 44px; line-height: 1; } .summary-item.online { border-left-color: var(--green); } .summary-item.offline { border-left-color: var(--red); } .summary-item.active { border-left-color: var(--blue); } .summary-item.stale { border-left-color: var(--amber); } .layout { grid-template-columns: minmax(420px, 0.86fr) minmax(520px, 1.14fr); align-items: start; } .device-list, .detail { min-height: 520px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); } .section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); } .section-head span { color: var(--muted); font-size: 13px; } .device-grid { display: grid; gap: 12px; margin-top: 16px; } .device-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; padding: 14px; color: inherit; text-align: left; background: rgba(255, 255, 255, 0.055); border: 1px solid transparent; border-radius: 8px; cursor: pointer; } .device-card:hover, .device-card.selected { border-color: rgba(75, 212, 210, 0.7); background: rgba(75, 212, 210, 0.09); } .device-name { overflow: hidden; font-size: 16px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; } .device-meta { margin-top: 7px; color: var(--muted); font-size: 13px; } .badges { display: flex; align-items: flex-start; gap: 8px; } .badge { display: inline-flex; min-width: 56px; justify-content: center; padding: 5px 8px; color: #041015; font-size: 12px; font-weight: 760; border-radius: 999px; } .badge.online, .badge.active { background: var(--green); } .badge.offline { background: var(--red); } .badge.waiting, .badge.stale { background: var(--amber); } .detail-body { padding-top: 16px; } .detail-body.empty { display: grid; min-height: 420px; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; } .metric-group { margin-bottom: 18px; } .metric-group h3 { margin: 0 0 10px; color: var(--cyan); font-size: 14px; font-weight: 720; } .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); gap: 10px; } .metric { min-height: 74px; padding: 12px; background: rgba(255, 255, 255, 0.055); border: 1px solid var(--line); border-radius: 8px; } .metric label { display: block; min-height: 18px; color: var(--muted); font-size: 12px; } .metric strong { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 20px; line-height: 1.2; } .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; } .timebox { padding: 12px; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 8px; } .timebox span { display: block; color: var(--muted); font-size: 12px; } .timebox strong { display: block; margin-top: 6px; font-size: 14px; } @media (max-width: 1180px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layout { grid-template-columns: 1fr; } } @media (max-width: 720px) { .shell { width: min(100vw - 24px, 1760px); padding-top: 18px; } .topbar { grid-template-columns: 1fr; } .clock { width: 100%; text-align: left; } .summary, .metric-grid, .timeline { grid-template-columns: 1fr; } h1 { font-size: 26px; } }