Files
PACS/数据库Web可视化/static/styles.css
2026-05-28 08:17:54 +08:00

538 lines
8.7 KiB
CSS

:root {
color-scheme: dark;
--bg: #070a0f;
--panel: #101722;
--panel-2: #0b111b;
--line: #1f2c3c;
--line-strong: #345070;
--text: #e8f0fb;
--muted: #8ea2bd;
--blue: #3276f6;
--cyan: #19d4c2;
--green: #16b981;
--amber: #f0b54e;
--red: #fb7185;
--shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
overflow: hidden;
background:
linear-gradient(90deg, rgba(52, 118, 246, 0.07) 1px, transparent 1px),
linear-gradient(180deg, rgba(25, 212, 194, 0.055) 1px, transparent 1px),
radial-gradient(circle at 12% 0%, rgba(25, 212, 194, 0.13), transparent 28%),
var(--bg);
background-size: 72px 72px, 72px 72px, auto;
color: var(--text);
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
}
button,
input {
font: inherit;
}
button {
cursor: pointer;
}
.topbar {
height: 66px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 0 22px;
border-bottom: 1px solid var(--line);
background: rgba(7, 10, 15, 0.92);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.brand-mark {
width: 30px;
height: 30px;
flex: 0 0 auto;
border-radius: 8px;
background: linear-gradient(135deg, var(--cyan), var(--blue));
box-shadow: 0 0 24px rgba(25, 212, 194, 0.24);
}
.brand h1 {
margin: 0;
font-size: 18px;
line-height: 1.2;
}
.brand p {
margin: 3px 0 0;
color: var(--muted);
font-size: 12px;
}
.top-actions {
display: flex;
align-items: center;
gap: 10px;
}
.status-pill,
.relation-badge {
min-width: 82px;
display: inline-flex;
align-items: center;
justify-content: center;
height: 30px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
font-size: 12px;
font-weight: 700;
white-space: nowrap;
}
.status-pill.online,
.relation-badge.complete {
border-color: rgba(22, 185, 129, 0.46);
color: #a5f5d4;
background: rgba(22, 185, 129, 0.08);
}
.status-pill.offline,
.relation-badge.pacs_only,
.relation-badge.stl_only,
.relation-badge.list_only {
border-color: rgba(251, 113, 133, 0.46);
color: #fecdd3;
background: rgba(251, 113, 133, 0.08);
}
.relation-badge.no_stl {
border-color: rgba(240, 181, 78, 0.5);
color: #ffe0a3;
background: rgba(240, 181, 78, 0.08);
}
.dark-btn {
height: 34px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-2);
color: var(--text);
}
.dark-btn:hover,
.filter-grid button:hover {
border-color: var(--line-strong);
background: #172233;
}
.layout {
height: calc(100vh - 66px);
display: grid;
grid-template-columns: 360px minmax(0, 1fr);
gap: 14px;
padding: 14px;
}
.sidebar,
.content {
min-height: 0;
display: grid;
gap: 12px;
}
.sidebar {
grid-template-rows: auto minmax(0, 1fr);
}
.content {
grid-template-rows: auto auto auto minmax(0, 1fr);
}
.panel {
min-width: 0;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(16, 23, 34, 0.9);
box-shadow: var(--shadow);
}
.search-panel,
.list-panel,
.hero-panel,
.segment-panel {
padding: 14px;
}
.panel-head,
.hero-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.panel-head h2,
.hero-head h2 {
margin: 0;
font-size: 16px;
}
.panel-head span,
.hero-head p {
color: var(--muted);
font-size: 12px;
}
.hero-head p {
margin: 4px 0 0;
}
.search-input {
width: 100%;
height: 40px;
margin-top: 12px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
background: #080d15;
color: var(--text);
}
.search-input:focus {
border-color: rgba(52, 118, 246, 0.76);
}
.model-filters {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-top: 10px;
}
.model-filters select {
min-width: 0;
height: 34px;
padding: 0 10px;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
background: #080d15;
color: var(--text);
}
.model-filters select:focus {
border-color: rgba(52, 118, 246, 0.76);
}
.filter-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
margin-top: 10px;
}
.filter-grid button {
height: 30px;
border: 1px solid var(--line);
border-radius: 7px;
background: #0b111b;
color: var(--muted);
font-size: 12px;
}
.filter-grid button.active {
border-color: var(--blue);
color: white;
background: rgba(52, 118, 246, 0.26);
}
.relation-list {
height: 100%;
overflow: auto;
padding-right: 3px;
}
.relation-card {
width: 100%;
display: grid;
gap: 7px;
margin-bottom: 10px;
padding: 12px;
border: 1px solid transparent;
border-radius: 8px;
background: #0b111b;
color: var(--text);
text-align: left;
}
.relation-card.active {
border-color: rgba(25, 212, 194, 0.82);
background: #0e1823;
}
.relation-card strong,
.relation-card span,
.relation-card small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.relation-card strong {
font-size: 15px;
}
.relation-card span,
.relation-card small {
color: var(--muted);
font-size: 12px;
}
.card-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.mini-badge {
flex: 0 0 auto;
padding: 2px 7px;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
font-size: 11px;
}
.mini-badge.complete {
border-color: rgba(22, 185, 129, 0.5);
color: #a5f5d4;
}
.mini-badge.no_stl {
border-color: rgba(240, 181, 78, 0.5);
color: #ffe0a3;
}
.mini-badge.pacs_only,
.mini-badge.stl_only,
.mini-badge.list_only {
border-color: rgba(251, 113, 133, 0.48);
color: #fecdd3;
}
.metrics {
display: grid;
grid-template-columns: repeat(6, minmax(116px, 1fr));
gap: 10px;
}
.metric {
min-height: 76px;
padding: 13px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(11, 17, 27, 0.92);
}
.metric span {
color: var(--muted);
font-size: 12px;
}
.metric strong {
display: block;
margin-top: 8px;
font-size: 24px;
}
.link-map {
display: grid;
grid-template-columns: minmax(180px, 1fr) 56px minmax(160px, 0.72fr) 56px minmax(180px, 1fr);
align-items: center;
gap: 8px;
margin-top: 16px;
}
.link-node {
min-height: 104px;
display: grid;
align-content: center;
gap: 7px;
padding: 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: #0b111b;
}
.link-node.ok {
border-color: rgba(25, 212, 194, 0.55);
background: rgba(25, 212, 194, 0.07);
}
.link-node.warn {
border-color: rgba(240, 181, 78, 0.48);
background: rgba(240, 181, 78, 0.06);
}
.link-node.missing {
border-color: rgba(251, 113, 133, 0.45);
background: rgba(251, 113, 133, 0.06);
}
.link-node span,
.link-node em {
color: var(--muted);
font-size: 12px;
font-style: normal;
}
.link-node strong {
overflow: hidden;
font-size: 20px;
text-overflow: ellipsis;
white-space: nowrap;
}
.ct-node {
border-color: rgba(52, 118, 246, 0.68);
background: rgba(52, 118, 246, 0.09);
}
.link-line {
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, var(--line), rgba(25, 212, 194, 0.72), var(--line));
}
.detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.detail-card {
padding: 14px;
}
.detail-card h3 {
margin: 0 0 12px;
font-size: 15px;
}
dl {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
gap: 8px 10px;
margin: 0;
}
dt {
color: var(--muted);
font-size: 12px;
}
dd {
min-width: 0;
margin: 0;
overflow: hidden;
color: var(--text);
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.segment-panel {
min-height: 0;
overflow: hidden;
}
.segment-groups {
max-height: 100%;
overflow: auto;
margin-top: 12px;
}
.segment-group {
display: grid;
grid-template-columns: 150px minmax(0, 1fr);
gap: 10px;
padding: 10px 0;
border-top: 1px solid var(--line);
}
.segment-group:first-child {
border-top: 0;
}
.segment-group strong {
color: #cfe0f5;
font-size: 13px;
}
.segment-tags {
display: flex;
flex-wrap: wrap;
gap: 7px;
}
.segment-tags em {
max-width: 190px;
padding: 4px 8px;
overflow: hidden;
border: 1px solid rgba(25, 212, 194, 0.32);
border-radius: 999px;
color: #baf8ee;
background: rgba(25, 212, 194, 0.07);
font-size: 12px;
font-style: normal;
text-overflow: ellipsis;
white-space: nowrap;
}
.empty {
margin: 18px 0 0;
color: var(--muted);
font-size: 13px;
text-align: center;
}
@media (max-width: 1180px) {
body {
overflow: auto;
}
.layout {
height: auto;
grid-template-columns: 1fr;
}
.metrics,
.detail-grid,
.link-map {
grid-template-columns: 1fr;
}
.link-line {
width: 2px;
height: 22px;
margin: 0 auto;
}
}