463 lines
6.8 KiB
CSS
463 lines
6.8 KiB
CSS
/* 展示端:极简博客式的页面——顶栏、居中的内容列、大号标题、细分隔线 */
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
background: color-mix(in srgb, var(--app-bg), transparent 8%);
|
|
backdrop-filter: blur(8px);
|
|
border-bottom: 1px solid var(--app-outline-soft);
|
|
}
|
|
|
|
.topbar .inner {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.brand {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--app-ink);
|
|
}
|
|
|
|
.brand:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.topnav {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.topnav a {
|
|
padding: 6px 14px;
|
|
border-radius: var(--r-pill);
|
|
color: var(--app-ink-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.topnav a:hover {
|
|
text-decoration: none;
|
|
background: var(--app-card-inset);
|
|
}
|
|
|
|
.topnav a.active {
|
|
background: var(--app-accent-container);
|
|
color: var(--app-on-accent-container);
|
|
}
|
|
|
|
.page {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 40px 24px 80px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 40px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hero .sub {
|
|
margin-top: 8px;
|
|
color: var(--app-ink-muted);
|
|
}
|
|
|
|
.section-label {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--app-accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 16px;
|
|
margin: 40px 0 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.section-head h2 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.line-row td:first-child {
|
|
min-width: 200px;
|
|
}
|
|
|
|
.line-name {
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.line-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.scores {
|
|
display: flex;
|
|
gap: 6px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.score-chip {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-width: 52px;
|
|
padding: 4px 10px;
|
|
border-radius: var(--r-control);
|
|
background: var(--app-card-inset);
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.score-chip b {
|
|
font-size: 15px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.score-chip small {
|
|
font-size: 10px;
|
|
color: var(--app-ink-muted);
|
|
}
|
|
|
|
.score-chip.ok {
|
|
background: var(--app-ok-container);
|
|
color: var(--app-ok);
|
|
}
|
|
|
|
.score-chip.warn {
|
|
background: var(--app-warn-container);
|
|
color: var(--app-warn);
|
|
}
|
|
|
|
.score-chip.bad {
|
|
background: var(--app-bad-container);
|
|
color: var(--app-bad);
|
|
}
|
|
|
|
.chart-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chart-card h3 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.crumbs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--app-ink-muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.event-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.event-list > div {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--app-outline-soft);
|
|
}
|
|
|
|
.event-list > div:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.pick-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pick {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 14px;
|
|
border-radius: var(--r-pill);
|
|
background: var(--app-card-inset);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.pick.on {
|
|
background: var(--app-accent-container);
|
|
color: var(--app-on-accent-container);
|
|
}
|
|
|
|
.pick input {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.hero h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.table .hide-sm {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ── Agent 卡片 ── */
|
|
.cards {
|
|
margin-top: 24px;
|
|
display: grid;
|
|
gap: 16px;
|
|
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
|
}
|
|
|
|
.agent-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.agent-card.offline {
|
|
opacity: 0.62;
|
|
}
|
|
|
|
.agent-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.agent-name {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.agent-head .chip {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.agent-head .chip + .faint {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.lines {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.line-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: var(--r-control);
|
|
background: var(--app-card-inset);
|
|
color: var(--app-ink);
|
|
}
|
|
|
|
.line-link:hover {
|
|
text-decoration: none;
|
|
background: var(--app-card-hover);
|
|
}
|
|
|
|
.scores.compact {
|
|
gap: 3px;
|
|
}
|
|
|
|
.scores.compact .score-chip {
|
|
min-width: 0;
|
|
padding: 1px 6px;
|
|
flex-direction: row;
|
|
gap: 4px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.scores.compact .score-chip b {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.scores.compact .score-chip small {
|
|
display: none;
|
|
}
|
|
|
|
.host {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--app-outline-soft);
|
|
}
|
|
|
|
.host.stale .meter i {
|
|
background: var(--app-idle);
|
|
}
|
|
|
|
.meter-row {
|
|
display: grid;
|
|
grid-template-columns: 40px minmax(0, 1fr) 44px;
|
|
align-items: center;
|
|
column-gap: 10px;
|
|
}
|
|
|
|
.meter-row .meter-detail {
|
|
grid-column: 2 / 4;
|
|
font-size: 11px;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.meter-label {
|
|
color: var(--app-ink-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.meter {
|
|
height: 8px;
|
|
border-radius: var(--r-pill);
|
|
background: var(--app-card-inset);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.meter i {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: var(--r-pill);
|
|
background: var(--app-accent);
|
|
transition: width 0.4s;
|
|
}
|
|
|
|
.meter i.warn {
|
|
background: var(--app-warn);
|
|
}
|
|
|
|
.meter i.bad {
|
|
background: var(--app-bad);
|
|
}
|
|
|
|
.meter-value {
|
|
text-align: right;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.host-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.host-grid .stat {
|
|
flex-direction: row;
|
|
gap: 12px;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.host-grid .stat .k {
|
|
min-width: 56px;
|
|
}
|
|
|
|
.live-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-left: 10px;
|
|
border-radius: 50%;
|
|
background: var(--app-idle);
|
|
}
|
|
|
|
.live-dot.on {
|
|
background: var(--app-ok);
|
|
}
|
|
|
|
.line-link > * {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.range-picker {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ── 对比:每个 Probe 的最佳线路 + 矩阵 ── */
|
|
.winners {
|
|
margin-top: 24px;
|
|
display: grid;
|
|
gap: 12px;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
}
|
|
|
|
.winner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 14px 18px;
|
|
}
|
|
|
|
.winner-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: var(--app-ok);
|
|
}
|
|
|
|
.matrix td.r {
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.cell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border: 0;
|
|
border-radius: var(--r-control);
|
|
background: transparent;
|
|
color: var(--app-ink);
|
|
cursor: pointer;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.cell:hover {
|
|
background: var(--app-card-hover);
|
|
}
|
|
|
|
.cell.on {
|
|
background: var(--app-accent-container);
|
|
}
|
|
|
|
.cell svg {
|
|
color: var(--app-ok);
|
|
}
|