:root { --bg: #0b0f17; --panel: #121826; --panel-2: #18202f; --line: #243044; --text: #e6ecf5; --muted: #8a97ad; --accent: #2f81f7; --accent-2: #1f6feb; --ok: #2ea043; --warn: #d29922; --crit: #f85149; --radius: 10px; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; } body { background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; display: flex; flex-direction: column; height: 100vh; overflow: hidden; } /* ---------------- topbar ---------------- */ .topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: linear-gradient(90deg, #111a2b, #0d1420); border-bottom: 1px solid var(--line); flex: 0 0 auto; } .brand { display: flex; align-items: center; gap: 12px; } .logo { font-size: 26px; color: var(--accent); } .topbar h1 { font-size: 16px; margin: 0; letter-spacing: .5px; } .sub { margin: 0; font-size: 11px; color: var(--muted); } .topbar-right { display: flex; gap: 8px; align-items: center; } .chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 20px; font-size: 12px; } .chip-state { color: var(--text); font-weight: 600; } .chip-state.running { color: var(--ok); border-color: var(--ok); } .chip-state.error { color: var(--crit); border-color: var(--crit); } /* 语言切换下拉:与 chip 同风格,避免默认白色控件在深色主题里突兀 */ .lang-select { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 4px 26px 4px 10px; border-radius: 20px; font-size: 12px; font-family: inherit; cursor: pointer; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; /* 自绘下拉箭头,配色与主题一致 */ background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 13px center, right 8px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; min-width: 92px; } .lang-select:hover { border-color: var(--accent, #2f81f7); color: var(--text); } .lang-select:focus { border-color: var(--accent, #2f81f7); } .lang-select option { background: var(--panel); color: var(--text); } /* ---------------- layout ---------------- */ .layout { flex: 1 1 auto; display: grid; grid-template-columns: 330px minmax(0,1fr) 400px; gap: 10px; padding: 10px; min-height: 0; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; display: flex; flex-direction: column; } .left, .right { overflow: hidden; } .left { padding: 0; gap: 0; } .left-scroll { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 14px; min-height: 0; } .left-footer { flex: 0 0 auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; } .right { padding: 0; } /* ---------------- blocks ---------------- */ .block h2 { font-size: 13px; margin: 0 0 8px; color: var(--text); display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: .3px; } .block h2 > span { flex: 1; } .block { border-bottom: 1px dashed var(--line); padding-bottom: 12px; } .block:last-child { border-bottom: none; } .block > h2 { margin: 0 0 8px; } /* 可折叠区块 */ details.block > summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; padding: 2px 0; margin-bottom: 6px; } details.block > summary::-webkit-details-marker { display: none; } details.block > summary::before { content: "▸"; color: var(--muted); font-size: 11px; transition: transform .15s; } details.block[open] > summary::before { content: "▾"; } details.block > summary > h2 { margin: 0; flex: 1; } details.block > summary:hover > h2 { color: #fff; } details.block[open] > summary { margin-bottom: 10px; } .mini { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: 11px; cursor: pointer; } .mini:hover { color: var(--text); border-color: var(--accent); } .dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; cursor: pointer; transition: .15s; background: var(--panel-2); } .dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #16203a; } .dz-icon { font-size: 22px; color: var(--accent); } .dropzone p { margin: 4px 0; font-size: 12px; } .hint { color: var(--muted); font-size: 11px; margin: 4px 0; } .upload-progress { margin-top: 8px; } .bar { height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; } .bar > i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .2s; } #uploadText { font-size: 11px; color: var(--muted); } .video-info { margin-top: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 11px; color: var(--muted); } .video-info b { color: var(--text); } /* ---------------- categories ---------------- */ .cat-tree { display: flex; flex-direction: column; gap: 6px; } .cat-group { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; } .cat-group > summary.gh { display: flex; align-items: center; gap: 8px; padding: 7px 9px; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; border-radius: 7px; } .cat-group > summary.gh::-webkit-details-marker { display: none; } .cat-group > summary.gh::after { content: "▸"; color: var(--muted); font-size: 10px; font-weight: 400; } .cat-group[open] > summary.gh::after { content: "▾"; } .cat-group > summary.gh:hover { background: #1b2537; } .cat-group[open] > summary.gh { border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; } .cat-group > .gh .gname { flex: 1; } .cat-items { padding: 2px 0 4px; } .cat-item { display: flex; align-items: flex-start; gap: 7px; padding: 6px 9px; font-size: 12px; cursor: pointer; border-radius: 6px; } .cat-item:hover { background: #1b2537; } .cat-item input { margin-top: 2px; accent-color: var(--accent); } .cat-item .nm { flex: 1; } .cat-item.na { opacity: .45; cursor: not-allowed; } .cat-item .badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: #2b3346; color: var(--muted); white-space: nowrap; } .cat-item .badge.warn { background: #3a2a12; color: var(--warn); } .gh .badge.on { background: #16341f; color: #6fdc8c; } input[type=checkbox] { accent-color: var(--accent); } /* ---------------- fields ---------------- */ .field { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; } .field label { font-size: 12px; color: var(--muted); } .field input, .field select { width: 110px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 12px; } .inline-ctl { display: flex; align-items: center; gap: 6px; } .inline-ctl input { width: 76px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 8px; font-size: 12px; } .inline-ctl .mini { flex: 0 0 auto; padding: 5px 9px; } .roi-actions, .btn-row { display: flex; gap: 6px; margin-top: 8px; } .switch-row { display: flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; padding: 6px 8px; margin-bottom: 6px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); } .switch-row:hover { border-color: var(--accent); } .switch-row span:first-of-type { flex: 1; } .switch-row .hint { margin: 0; } /* ---------------- buttons ---------------- */ .btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; text-decoration: none; text-align: center; transition: .15s; flex: 1; } .btn:hover:not(:disabled) { border-color: var(--accent); } .btn.primary { background: var(--accent-2); border-color: var(--accent-2); } .btn.primary:hover:not(:disabled) { background: var(--accent); } .btn.ghost { background: transparent; } .btn.big { width: 100%; padding: 11px; font-size: 13px; font-weight: 600; } .btn:disabled { opacity: .4; cursor: not-allowed; } .btn.ghost.danger { color: #ff9b95; border-color: #4a2226; } .btn.ghost.danger:hover:not(:disabled) { border-color: var(--crit); background: #2a1214; } .btn.wide { flex: 1 1 100%; } /* ---------------- center stage ---------------- */ .center { padding: 10px; gap: 8px; } .stage-wrap { position: relative; flex: 1 1 auto; background: #05070c; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); min-height: 0; } #stage { max-width: 100%; max-height: 100%; display: block; } .stage-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; pointer-events: none; } .stage-wrap.editing #stage { cursor: crosshair; } .stage-bar { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); } .progress { flex: 1 1 auto; height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; } .progress > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #58d0ff); } .stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; } .stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; } .stat .k { font-size: 10px; color: var(--muted); } .stat b { font-size: 17px; } .plate-strip { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; } .plate-strip .p { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 1px; background: #10233d; border: 1px solid #2f5f9e; color: #8dc3ff; padding: 3px 9px; border-radius: 5px; } /* ---------------- right panel ---------------- */ .tabs { display: flex; border-bottom: 1px solid var(--line); flex: 0 0 auto; } .tab { flex: 1; background: transparent; border: none; color: var(--muted); padding: 11px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; } .tab.active { color: var(--text); border-bottom-color: var(--accent); } .tab-pane { display: none; flex-direction: column; min-height: 0; flex: 1 1 auto; padding: 10px; } .tab-pane.active { display: flex; } .event-toolbar, .report-toolbar { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; } .event-toolbar select { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px; font-size: 11px; } .report-toolbar label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: 1; } .report-toolbar input { width: 60px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px; font-size: 11px; } .event-list { overflow-y: auto; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; } .event-card { display: flex; gap: 9px; background: var(--panel-2); border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; padding: 8px; cursor: pointer; transition: .15s; } .event-card:hover { background: #1b2537; transform: translateX(-2px); } .event-card.lv-critical { border-left-color: var(--crit); } .event-card.lv-warning { border-left-color: var(--warn); } .event-card.lv-info { border-left-color: var(--accent); } .event-card img { width: 88px; height: 56px; object-fit: cover; border-radius: 5px; background: #05070c; } .event-card .ec-body { flex: 1; min-width: 0; } .event-card .ec-title { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; } .event-card .ec-meta { font-size: 10.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; } .event-card .ec-detail { font-size: 10.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tag { font-size: 10px; padding: 1px 6px; border-radius: 9px; background: #26314a; color: #9fb4d6; } .tag.critical { background: #3d1417; color: #ff9b95; } .tag.warning { background: #3a2a12; color: #ffcb6b; } .tag.info { background: #10233d; color: #8dc3ff; } .pending { font-size: 10px; color: var(--warn); } .report-body { overflow-y: auto; flex: 1 1 auto; font-size: 12px; } .report-body h4 { margin: 12px 0 6px; font-size: 12.5px; color: #b9c6dd; } .report-body table { width: 100%; border-collapse: collapse; font-size: 11px; margin-bottom: 10px; } .report-body th, .report-body td { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; } .report-body th { color: var(--muted); font-weight: 500; background: #151d2c; } .report-body tr:hover td { background: #18202f; } .kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; } .kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; } .kpi b { display: block; font-size: 18px; } .kpi span { font-size: 10px; color: var(--muted); } /* ---------------- modal ---------------- */ .modal { position: fixed; inset: 0; background: rgba(3, 6, 12, .78); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; } .modal.hidden { display: none; } .modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(1100px, 96vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; } .modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); } .modal-head h3 { margin: 0 0 3px; font-size: 14px; } .modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; overflow-y: auto; } .modal-col h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; } .modal-col h4 > .mini { flex: 0 0 auto; } .modal-col h4 > .mini:empty { display: none; } .snap-wrap, .clip-wrap { position: relative; } .snap, .clip { width: 100%; border-radius: 8px; background: #05070c; border: 1px solid var(--line); display: block; } .snap { max-height: 62vh; object-fit: contain; cursor: zoom-in; } .clip { max-height: 62vh; cursor: default; } .media-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 20, .72); color: #cfe0f5; font-size: 12px; border-radius: 8px; text-align: center; padding: 12px; } .media-note.spin::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; border: 2px solid #3b4b66; border-top-color: var(--accent); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); } .modal-foot > div { display: flex; gap: 8px; flex: 0 0 auto; } .modal-foot .btn { flex: 0 0 auto; } /* ---------------- toast ---------------- */ .toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1e2a3f; border: 1px solid var(--line); color: var(--text); padding: 10px 18px; border-radius: 8px; font-size: 12.5px; z-index: 90; box-shadow: 0 8px 26px rgba(0,0,0,.5); } .toast.hidden { display: none; } .toast.ok { border-color: var(--ok); } .toast.err { border-color: var(--crit); } .hidden { display: none !important; } @media (max-width: 1400px) { .layout { grid-template-columns: 300px minmax(0,1fr) 340px; } .stats-grid { grid-template-columns: repeat(3, 1fr); } }