@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Orbitron:wght@500;600&display=swap"); :root { --bg: #070b14; --bg-2: #0c1424; --panel: rgba(16, 24, 40, 0.82); --panel-solid: #101828; --line: rgba(56, 189, 248, 0.22); --line-strong: rgba(56, 189, 248, 0.45); --text: #e8f1ff; --muted: #8aa0b8; --accent: #22d3ee; --accent-2: #38bdf8; --accent-deep: #0ea5e9; --ok: #34d399; --bad: #fb7185; --shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 18px 50px rgba(0, 0, 0, 0.45); --radius: 14px; --font: "IBM Plex Sans", "Segoe UI", sans-serif; --font-display: "Orbitron", "IBM Plex Sans", sans-serif; } * { box-sizing: border-box; } html, body { min-height: 100%; } body { margin: 0; font-family: var(--font); color: var(--text); background: radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.18), transparent 55%), radial-gradient(900px 500px at 90% 10%, rgba(34, 211, 238, 0.1), transparent 50%), linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #05080f); background-attachment: fixed; } body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35; background-image: linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%); } body > * { position: relative; z-index: 1; } a { color: var(--accent-2); text-decoration: none; } a:hover { color: #7dd3fc; } .topbar { display: flex; justify-content: flex-start; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(8, 14, 26, 0.75); backdrop-filter: blur(12px); } .topbar nav a { margin-right: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; } .topbar nav a:last-child { margin-right: 0; } .topbar nav a.active { color: var(--accent); text-shadow: 0 0 18px rgba(34, 211, 238, 0.35); } .main { padding: 16px; max-width: 1200px; margin: 0 auto; } body.page-desk .main, body.page-dashboard .main { max-width: 1800px; width: 100%; margin: 0 auto; padding: 12px clamp(16px, 3vw, 48px) 20px; } body.page-login { min-height: 100vh; } body.page-login .main { max-width: none; min-height: 100vh; margin: 0; padding: 24px; display: flex; align-items: center; justify-content: center; } .page-head { display: flex; align-items: center; gap: 12px; } .page-head h1 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; } .muted { color: var(--muted); font-size: 0.9rem; } .flash { background: rgba(14, 165, 233, 0.12); border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); } /* —— 登录 —— */ .login-wrap { width: 100%; max-width: 420px; } .login-card { width: 100%; margin: 0; padding: 32px 28px 28px; border-radius: 18px; background: linear-gradient(160deg, rgba(18, 32, 54, 0.92), rgba(10, 16, 28, 0.95)); border: 1px solid var(--line-strong); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); } .login-card h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.06em; background: linear-gradient(90deg, #e0f2fe, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; } .login-card .login-sub { margin: 0 0 22px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; } .login-card .stack label { display: block; margin: 0 0 14px; font-size: 0.82rem; color: #b6c7da; font-weight: 500; } .login-card input { margin-top: 6px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 10, 18, 0.85); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); } .login-card button[type="submit"] { width: 100%; margin-top: 8px; padding: 12px 14px; font-weight: 600; letter-spacing: 0.08em; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); color: #041018; box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28); } .login-card button[type="submit"]:hover { filter: brightness(1.05); } .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: #0a1220; color: var(--text); } button, .btn { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; border: 0; background: linear-gradient(90deg, var(--accent-deep), #06b6d4); color: #041018; font-weight: 600; cursor: pointer; } .btn:hover, button:hover { filter: brightness(1.06); } .btn-danger { background: #9f1239; color: #fff; } .btn-sm { padding: 3px 8px; font-size: 0.75rem; border-radius: 6px; font-weight: 600; } .btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; box-shadow: var(--shadow); backdrop-filter: blur(10px); } .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: 12px auto 0; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(10px); } .overview-table { width: auto; min-width: 720px; border-collapse: collapse; font-size: 0.88rem; margin: 0 auto; } body.page-dashboard #overview-status { text-align: center; } body.page-dashboard .page-head { justify-content: center; } .overview-table th, .overview-table td { padding: 10px 12px; border-bottom: 1px solid rgba(56, 189, 248, 0.12); text-align: left; vertical-align: top; } .overview-table th { color: var(--accent-2); font-weight: 600; background: rgba(8, 16, 30, 0.9); white-space: nowrap; letter-spacing: 0.03em; } .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: var(--radius); padding: 12px; box-shadow: var(--shadow); } .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: var(--radius); padding: 10px; min-width: 0; overflow: hidden; box-shadow: var(--shadow); backdrop-filter: blur(10px); } .desk-side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; } .desk-side-title { margin: 0; font-size: 0.95rem; font-family: var(--font-display); letter-spacing: 0.04em; white-space: nowrap; color: var(--accent-2); } .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: rgba(8, 16, 30, 0.9); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; } .desk-side-toggle:hover { border-color: var(--accent); 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: 7px 9px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; } .desk-list li a:hover { background: rgba(34, 211, 238, 0.08); color: #fff; border-color: rgba(34, 211, 238, 0.2); } .desk-list li.active a { color: #fff; font-weight: 600; background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.35); } .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: var(--radius); background: #000; box-shadow: var(--shadow); } .empty { padding: 40px; color: var(--muted); } .settings-card { max-width: 480px; } .settings-form { max-width: 420px; } input.readonly { opacity: 0.75; cursor: default; } .pnl-up { color: var(--ok); font-weight: 600; } .pnl-down { color: var(--bad); font-weight: 600; } .pnl-flat { color: var(--muted); } .liq-ok { color: var(--text); } .liq-warn { color: #fbbf24; font-weight: 600; } .liq-brief--warn { border-left: 2px solid rgba(251, 191, 36, 0.7); padding-left: 8px; } @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: 1800px; padding-left: clamp(32px, 6vw, 96px); padding-right: clamp(32px, 6vw, 96px); } }