/* ============================================================ 代打台 · 可视化大屏(记分板) 默认深色;亮色由系统偏好或 [data-theme="light"] 覆盖 ============================================================ */ :root { --bg: #0c0f12; --panel: #12161b; --panel-2: #171c22; --line: #232a32; --ink: #e9edf1; --ink-2: #aab4bf; --muted: #6f7b87; --accent: #58c1a3; --accent-2: #8bd9c4; --danger: #ef6b62; --warn: #e6ac55; --ok: #58c1a3; --glow: 0 0 24px rgba(88, 193, 163, 0.18); } @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #f4f2ec; --panel: #ffffff; --panel-2: #faf9f5; --line: #e0ddd2; --ink: #1b1e23; --ink-2: #4a4f57; --muted: #8a8f97; --accent: #2f7d68; --accent-2: #245c4d; --danger: #b3302a; --warn: #a0600f; --ok: #2f7d68; --glow: 0 0 18px rgba(47, 125, 104, 0.12); } } :root[data-theme="light"] { --bg: #f4f2ec; --panel: #ffffff; --panel-2: #faf9f5; --line: #e0ddd2; --ink: #1b1e23; --ink-2: #4a4f57; --muted: #8a8f97; --accent: #2f7d68; --accent-2: #245c4d; --danger: #b3302a; --warn: #a0600f; --ok: #2f7d68; --glow: 0 0 18px rgba(47, 125, 104, 0.12); } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: var(--bg); color: var(--ink); font-family: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; font-size: 14px; overflow: hidden; } /* 背景:极淡的网格与光晕 */ body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 100%; opacity: 0.5; } .scr { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; gap: 10px; height: 100vh; padding: 12px 16px 8px; } /* ---------- 头部 ---------- */ .scr-head { display: flex; align-items: center; gap: 16px; min-height: 40px; } .scr-brand { display: flex; align-items: baseline; gap: 6px; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; } .scr-brand .mark { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 4px; background: var(--accent); color: var(--bg); font-size: 13px; border-radius: 2px; align-self: center; } .scr-brand em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.2em; } .scr-tabs { display: flex; gap: 4px; flex-wrap: wrap; } .scr-tabs a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; font-size: 12px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); } .scr-tabs a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tab, var(--accent)); } .scr-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); } .scr-tabs a.on::before { background: var(--bg); } .scr-tools { display: flex; align-items: center; gap: 8px; } .scr-switch { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; font-size: 12px; color: var(--accent); text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; background: var(--panel); } .scr-switch:hover { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); } .scr-theme { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 13px; cursor: pointer; } .scr-theme .ic-sun { display: none; } :root[data-theme="light"] .scr-theme .ic-sun { display: inline; } :root[data-theme="light"] .scr-theme .ic-moon { display: none; } @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .scr-theme .ic-sun { display: inline; } :root:not([data-theme="dark"]) .scr-theme .ic-moon { display: none; } } .scr-clock { margin-left: auto; text-align: right; line-height: 1.1; } .scr-clock b { font-family: var(--mono, "Bahnschrift", monospace); font-size: 22px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; } .scr-clock span { display: block; font-size: 11px; color: var(--muted); } .scr-links { font-size: 11px; color: var(--muted); } .scr-links a { color: var(--accent); text-decoration: none; } /* ---------- KPI ---------- */ .scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .kpi { position: relative; display: flex; align-items: baseline; gap: 6px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; } .kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); } .kpi span { font-size: 12px; color: var(--muted); margin-right: auto; } .kpi b { font-family: "Bahnschrift", monospace; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; } .kpi i { font-style: normal; font-size: 11px; color: var(--muted); } .kpi-hot::after { background: var(--danger); } .kpi-hot b { color: var(--danger); } .kpi-warm::after { background: var(--warn); } .kpi-warm b { color: var(--warn); } /* ---------- 主区 ---------- */ .scr-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; min-height: 0; } .panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; } .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); } .panel-head h2 { margin: 0; font-size: 13px; letter-spacing: 0.08em; font-weight: 700; } .panel-head span { font-size: 11px; color: var(--muted); } /* 热力 */ .heat-grid { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; min-height: 0; } .heat-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; } .heat-dow span { text-align: center; font-size: 10px; color: var(--muted); } .heat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; } .heat-cell { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 0; aspect-ratio: 2.05 / 1; padding: 4px 7px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel-2); font-size: 11px; color: var(--muted); transition: transform 0.1s ease, border-color 0.1s ease; } .heat-cell span { font-family: "Bahnschrift", monospace; font-size: 11px; } .heat-cell b { font-family: "Bahnschrift", monospace; font-size: 12px; color: var(--ink-2); } .heat-cell.out { opacity: 0.28; } .heat-cell.past { opacity: 0.66; } .heat-cell.today { outline: 1px solid var(--accent); outline-offset: -1px; } .heat-cell.today span { color: var(--accent); font-weight: 700; } .heat-cell:hover { transform: translateY(-1px); border-color: var(--accent); z-index: 3; } .heat-cell.h1 { background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); } .heat-cell.h2 { background: color-mix(in srgb, var(--accent) 24%, var(--panel-2)); } .heat-cell.h3 { background: color-mix(in srgb, var(--accent) 38%, var(--panel-2)); } .heat-cell.h4 { background: color-mix(in srgb, var(--accent) 56%, var(--panel-2)); } .heat-cell.h3 b, .heat-cell.h4 b { color: var(--bg); } .heat-cell.h3 span, .heat-cell.h4 span { color: color-mix(in srgb, var(--bg) 75%, var(--accent)); } .cell-urgent { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 6px color-mix(in srgb, var(--danger) 70%, transparent); } .heat-legend { display: flex; align-items: center; gap: 4px; padding: 6px 14px 10px; font-size: 10px; color: var(--muted); } .heat-legend span { margin-right: 6px; } .heat-legend i { width: 14px; height: 9px; border-radius: 1px; border: 1px solid var(--line); display: inline-block; } .heat-legend i.h0 { background: var(--panel-2); } .heat-legend i.h1 { background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); } .heat-legend i.h2 { background: color-mix(in srgb, var(--accent) 24%, var(--panel-2)); } .heat-legend i.h3 { background: color-mix(in srgb, var(--accent) 38%, var(--panel-2)); } .heat-legend i.h4 { background: color-mix(in srgb, var(--accent) 56%, var(--panel-2)); } .heat-legend .legend-hint { margin-left: auto; font-style: normal; opacity: 0.7; } /* TOP 10 */ .top-list { list-style: none; margin: 0; padding: 6px 10px; overflow: hidden; flex: 1 1 auto; } .top-item { display: grid; grid-template-columns: 22px 54px minmax(0, 1fr) auto auto 56px; gap: 8px; align-items: center; padding: 5px 4px; border-bottom: 1px dashed var(--line); font-size: 12px; } .top-item:last-child { border-bottom: 0; } .top-item .rank { font-family: "Bahnschrift", monospace; font-size: 11px; color: var(--muted); } .top-item:nth-child(-n+3) .rank { color: var(--accent); font-weight: 700; } .top-tail { font-family: "Bahnschrift", monospace; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; } .top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .top-pkg { font-size: 10px; padding: 1px 6px; border-radius: 2px; border-left: 2px solid var(--tag, var(--accent)); background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent); color: var(--ink-2); white-space: nowrap; } .top-remain { font-family: "Bahnschrift", monospace; font-size: 11px; white-space: nowrap; } .top-item.lv-today .top-remain { color: var(--danger); font-weight: 700; } .top-item.lv-warn .top-remain { color: var(--warn); } .top-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; } .top-bar i { display: block; height: 100%; background: var(--accent); } .top-item.lv-today .top-bar i { background: var(--danger); } .top-item.lv-warn .top-bar i { background: var(--warn); } /* ---------- 底部两块 ---------- */ .scr-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 150px; max-height: 30vh; } .today-list { list-style: none; margin: 0; padding: 4px 10px 8px; overflow: auto; } .today-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 6px; border-bottom: 1px dashed var(--line); font-size: 12px; } .today-list li:last-child { border-bottom: 0; } .today-list li.urgent { background: color-mix(in srgb, var(--danger) 9%, transparent); border-left: 2px solid var(--danger); padding-left: 8px; } .tchip { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 6px; border-left: 2px solid var(--tag, var(--accent)); background: color-mix(in srgb, var(--tag, var(--accent)) 14%, transparent); border-radius: 1px; white-space: nowrap; } .tchip b { font-family: "Bahnschrift", monospace; font-size: 13px; } .today-list .pkg { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .today-list .rem { font-family: "Bahnschrift", monospace; font-size: 11px; color: var(--ink-2); white-space: nowrap; } .tag-urgent { font-size: 9px; line-height: 1; padding: 2px 4px; background: var(--danger); color: #fff; border-radius: 2px; white-space: nowrap; } .scr-empty, .scr-empty-inline { color: var(--muted); font-size: 12px; padding: 16px; text-align: center; margin: 0; } .scr-empty-inline { padding: 0; text-align: left; } /* ---------- 最近追加 ---------- */ .scr-recent { display: flex; align-items: center; gap: 10px; padding: 5px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; font-size: 11px; color: var(--muted); overflow: hidden; } .recent-label { flex: 0 0 auto; letter-spacing: 0.12em; color: var(--accent); font-size: 10px; } .recent-track { display: flex; gap: 18px; overflow: hidden; white-space: nowrap; } .recent-item { color: var(--ink-2); } .recent-item b { font-family: "Bahnschrift", monospace; font-size: 12px; color: var(--ink); margin-right: 3px; } .recent-item em { font-style: normal; color: var(--accent); margin-left: 3px; } .scr-foot { text-align: center; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; } /* ---------- 当日明细浮层 ---------- */ .day-pop { position: fixed; z-index: 60; width: 340px; max-height: 62vh; overflow: auto; padding: 10px 12px; background: var(--panel); border: 1px solid var(--accent); border-radius: 3px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), var(--glow); font-size: 12px; pointer-events: none; } .day-pop[hidden] { display: none; } .day-pop h4 { margin: 0 0 6px; display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--ink); } .day-pop h4 small { font-weight: 400; color: var(--muted); font-size: 10px; } .day-pop .pop-meta { display: flex; gap: 10px; margin-bottom: 6px; font-size: 10px; color: var(--muted); } .day-pop .pop-meta b { color: var(--ink-2); font-family: "Bahnschrift", monospace; } .day-pop ul { list-style: none; margin: 0; padding: 0; } .day-pop li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 3px 0; border-bottom: 1px dashed var(--line); } .day-pop li:last-child { border-bottom: 0; } .day-pop li.urgent { color: var(--danger); } .day-pop li.done { opacity: 0.45; text-decoration: line-through; } .day-pop .pop-tail { font-family: "Bahnschrift", monospace; font-size: 12px; font-weight: 700; } .day-pop .pop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .day-pop .pop-rem { font-size: 10px; color: var(--muted); white-space: nowrap; } .day-pop .pop-more { margin-top: 6px; font-size: 10px; color: var(--muted); text-align: right; } .day-pop .pop-empty { color: var(--muted); text-align: center; padding: 8px 0; } /* ---------- 小屏适配(笔记本投屏也常见) ---------- */ @media (max-width: 1200px) { .scr-main { grid-template-columns: 1fr 1fr; } .scr-kpis .kpi b { font-size: 24px; } .top-item { grid-template-columns: 20px 48px minmax(0, 1fr) auto 48px; } .top-item .top-pkg { display: none; } } @media (max-width: 860px) { body { overflow: auto; } .scr { height: auto; } .scr-main, .scr-bottom { grid-template-columns: 1fr; } .scr-tabs, .scr-links { display: none; } } /* ---------- 打手颜色(大屏) ---------- */ .asg-strip { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; width: 3px; overflow: hidden; } .asg-strip i { display: block; flex: 1 1 0; min-height: 3px; } .heat-cell { padding-left: 9px; } .asg { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .asg i { width: 7px; height: 7px; border-radius: 1px; flex: 0 0 auto; } .asg.none { color: var(--muted); } .asg.none i { opacity: 0.5; } .today-list li { grid-template-columns: auto minmax(0, 1fr) auto auto auto; } .pop-who { display: inline-block; width: 7px; height: 7px; border-radius: 1px; margin-right: 4px; vertical-align: 0; }