153 lines
5.0 KiB
CSS
153 lines
5.0 KiB
CSS
:root {
|
|
--bg: #0b0e11;
|
|
--card: #151a21;
|
|
--text: #e5eaf0;
|
|
--muted: #9aa7b2;
|
|
--primary: #3b82f6;
|
|
--secondary: #64748b;
|
|
--accent: #22c55e;
|
|
--warn: #f59e0b;
|
|
--danger: #ef4444;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.app-header { padding: 20px 16px 10px; border-bottom: 1px solid #1f2630; }
|
|
.app-header h1 { margin: 0 0 8px; font-size: 20px; }
|
|
.disclaimer { margin: 0; color: var(--muted); font-size: 13px; }
|
|
|
|
.tabs { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #1f2630; position: sticky; top: 0; background: var(--bg); z-index: 10; }
|
|
.tab-btn {
|
|
background: #11161d;
|
|
color: var(--text);
|
|
border: 1px solid #1f2630;
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
}
|
|
.tab-btn.active { background: var(--primary); border-color: var(--primary); }
|
|
|
|
main { padding: 16px; }
|
|
.tab-panel { margin-bottom: 16px; }
|
|
.hidden { display: none; }
|
|
|
|
h2 { font-size: 18px; margin: 0 0 10px; }
|
|
h3 { font-size: 16px; margin: 0 0 10px; }
|
|
h4 { font-size: 15px; margin: 0 0 8px; }
|
|
|
|
.card {
|
|
background: var(--card);
|
|
border: 1px solid #223043;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
.gap { gap: 10px; }
|
|
.col { flex: 1; min-width: 260px; }
|
|
|
|
input[type="text"], input[type="number"], select {
|
|
background: #0f141a;
|
|
border: 1px solid #334155;
|
|
color: var(--text);
|
|
padding: 8px 10px;
|
|
border-radius: 6px;
|
|
}
|
|
input[type="file"] { color: var(--text); }
|
|
|
|
button {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
}
|
|
button.secondary { background: var(--secondary); }
|
|
button.ghost { background: transparent; border: 1px solid #334155; color: var(--text); }
|
|
button.ghost.danger { border-color: var(--danger); color: var(--danger); }
|
|
|
|
.bars { display: grid; grid-template-columns: repeat(1, minmax(250px, 1fr)); gap: 6px; }
|
|
.bar-row { display: flex; align-items: center; gap: 8px; }
|
|
.bar-label { width: 40px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
|
|
.bar {
|
|
height: 18px;
|
|
background: #0e1620;
|
|
border: 1px solid #2b3b52;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
}
|
|
.bar-fill { height: 100%; background: var(--accent); }
|
|
.bar-value { width: 38px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
|
|
|
|
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
|
|
.grid-item { background: #0e1620; border: 1px solid #2b3b52; border-radius: 6px; padding: 6px; text-align: center; }
|
|
.grid-item .n { display: block; color: var(--muted); font-size: 12px; }
|
|
.grid-item .v { display: block; font-variant-numeric: tabular-nums; font-size: 14px; }
|
|
|
|
.summary { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 8px; }
|
|
.summary-item { background: #0e1620; border: 1px solid #2b3b52; border-radius: 6px; padding: 8px; }
|
|
.summary-item h5 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
|
|
.summary-item .content { font-variant-numeric: tabular-nums; }
|
|
|
|
.list { display: grid; grid-template-columns: repeat(1, minmax(260px, 1fr)); gap: 6px; }
|
|
.ticket { background: #0e1620; border: 1px solid #2b3b52; border-radius: 8px; padding: 8px; }
|
|
.ticket .title { color: var(--muted); margin-bottom: 6px; font-size: 13px; }
|
|
.nums { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
.ball { background: #182231; color: #fff; border-radius: 999px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
|
|
.ball.back {
|
|
background: transparent; /* 改为空心圆 */
|
|
border: 1px solid #6e5aa1; /* 1px 圆边(偏紫,与原色系协调) */
|
|
}
|
|
|
|
.result { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
|
|
.muted { color: var(--muted); }
|
|
.warn { color: var(--warn); }
|
|
.danger { color: var(--danger); }
|
|
|
|
.switch { display: inline-flex; align-items: center; gap: 6px; }
|
|
|
|
.app-footer { padding: 20px 16px; border-top: 1px solid #1f2630; color: var(--muted); text-align: center; }
|
|
|
|
.log {
|
|
background: #0e1620;
|
|
border: 1px solid #2b3b52;
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.paste {
|
|
width: 100%;
|
|
background: #0f141a;
|
|
border: 1px solid #334155;
|
|
color: var(--text);
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
}
|
|
|
|
@media (min-width: 800px) {
|
|
.bars { grid-template-columns: repeat(2, minmax(360px, 1fr)); }
|
|
.list { grid-template-columns: repeat(2, minmax(320px, 1fr)); }
|
|
}
|
|
|
|
@media print {
|
|
body { background: #fff; color: #000; }
|
|
.tabs, .app-footer, .disclaimer, .switch, button, input, select { display: none !important; }
|
|
.card { border: 1px solid #999; }
|
|
} |