:root { --bg: #0f1219; --panel: #171c27; --line: #2a3348; --text: #e8ecf5; --muted: #8b95ab; --accent: #6c5ce7; --ok: #3dd68c; --bad: #ff6b6b; } * { box-sizing: border-box; } body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); } a { color: #9ec1ff; text-decoration: none; } .topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #12161f; } .topbar nav a { margin-left: 14px; color: var(--muted); } .topbar nav a.active { color: #fff; } .brand { font-weight: 700; } .main { padding: 16px; max-width: 1200px; margin: 0 auto; } /* 总览/工作台:带鱼屏两侧留边,内容区限宽居中 */ body.page-desk .main, body.page-dashboard .main { max-width: 1680px; width: 100%; margin: 0 auto; padding: 12px clamp(16px, 3vw, 48px) 20px; } .page-head { display: flex; align-items: center; gap: 12px; } .muted { color: var(--muted); font-size: 0.9rem; } .flash { background: #2a2140; border: 1px solid #5b4a8a; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; } .login-card { max-width: 360px; margin: 10vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; } .stack label, .form-grid label { display: block; margin: 8px 0; } input[type="text"], input[type="password"], input:not([type]) { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0d1017; color: var(--text); } button, .btn { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer; } .btn-danger { background: #8b3a3a; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 14px 0; } .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: end; } .check { display: flex !important; align-items: center; gap: 8px; } .inst-row { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } .overview-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); } .overview-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } .overview-table th, .overview-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .overview-table th { color: var(--muted); font-weight: 600; background: #12161f; white-space: nowrap; } .overview-table tr:last-child td { border-bottom: 0; } .overview-table .status-on { color: var(--ok); } .overview-table .status-off { color: var(--bad); } .overview-actions { display: flex; gap: 8px; flex-wrap: wrap; } .overview-actions .btn { margin-top: 0; } .pos-brief { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.8rem; } .pos-brief li { margin: 2px 0; } .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .card .status-on { color: var(--ok); } .card .status-off { color: var(--bad); } .card table { width: 100%; font-size: 0.8rem; border-collapse: collapse; } .card td, .card th { border-bottom: 1px solid var(--line); padding: 4px 2px; text-align: left; } .desk { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; min-height: calc(100vh - 70px); max-width: none; transition: grid-template-columns 0.18s ease; } .desk.is-side-collapsed { grid-template-columns: 48px minmax(0, 1fr); } .desk-side { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; overflow: hidden; } .desk-side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; } .desk-side-title { margin: 0; font-size: 1rem; white-space: nowrap; } .desk-side-toggle { flex: 0 0 auto; margin-top: 0; width: 28px; height: 28px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: #12161f; color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; } .desk-side-toggle:hover { border-color: var(--accent); } .desk-side-toggle--bar { display: none; } .desk.is-side-collapsed .desk-side-title, .desk.is-side-collapsed .desk-list-name, .desk.is-side-collapsed .desk-list-empty { display: none; } .desk.is-side-collapsed .desk-side { padding: 8px 6px; } .desk.is-side-collapsed .desk-side-head { justify-content: center; margin-bottom: 0; } .desk.is-side-collapsed .desk-side-toggle { transform: rotate(180deg); } .desk.is-side-collapsed .desk-list { display: none; } .desk.is-side-collapsed .desk-side-toggle--bar { display: inline-flex; align-items: center; justify-content: center; } .desk-list { list-style: none; padding: 0; margin: 0; } .desk-list li { margin: 6px 0; } .desk-list li a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); } .desk-list li a:hover { background: rgba(108, 92, 231, 0.12); color: #fff; } .desk-list li.active a { color: #fff; font-weight: 600; background: rgba(108, 92, 231, 0.22); } .desk-main { display: flex; flex-direction: column; min-height: calc(100vh - 70px); min-width: 0; } .desk-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .desk-frame { flex: 1; width: 100%; min-height: calc(100vh - 130px); border: 1px solid var(--line); border-radius: 10px; background: #000; } .empty { padding: 40px; color: var(--muted); } .settings-card { max-width: 480px; } .settings-form { max-width: 420px; } input.readonly { opacity: 0.75; cursor: default; } @media (max-width: 800px) { .desk, .desk.is-side-collapsed { grid-template-columns: 1fr; } .desk-side-toggle--bar { display: none !important; } } @media (min-width: 2000px) { body.page-desk .main, body.page-dashboard .main { max-width: 1760px; padding-left: clamp(32px, 6vw, 96px); padding-right: clamp(32px, 6vw, 96px); } }