Files
PACS/PACS_DICOM处理/数据处理网页端/static/styles.css
2026-05-27 10:38:03 +08:00

1004 lines
16 KiB
CSS

:root {
color-scheme: dark;
--bg: #06080c;
--panel: #10151d;
--panel-2: #151c27;
--panel-3: #202b3a;
--stroke: #2a3444;
--stroke-strong: #3a475c;
--muted: #92a3ba;
--text: #eff5ff;
--blue: #3474f6;
--cyan: #19d4c2;
--green: #12b981;
--amber: #f0b54e;
--red: #fb7185;
--shadow: 0 18px 58px rgba(0, 0, 0, 0.38);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 1280px;
min-height: 100vh;
background:
linear-gradient(90deg, rgba(25, 212, 194, 0.05) 0 1px, transparent 1px 100%),
linear-gradient(180deg, rgba(52, 116, 246, 0.04) 0 1px, transparent 1px 100%),
#06080c;
background-size: 42px 42px;
color: var(--text);
font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
}
button,
input,
select {
font: inherit;
}
button {
border: 0;
cursor: pointer;
}
button:disabled {
cursor: wait;
opacity: 0.66;
}
.login-overlay {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: rgba(6, 8, 12, 0.86);
backdrop-filter: blur(14px);
}
.login-overlay.hidden {
display: none;
}
.login-panel {
width: 380px;
padding: 28px;
border: 1px solid var(--stroke);
border-radius: 10px;
background: linear-gradient(180deg, rgba(21, 28, 39, 0.98), rgba(8, 11, 16, 0.98));
box-shadow: var(--shadow);
}
.brand-mark {
width: 54px;
height: 54px;
display: grid;
place-items: center;
border-radius: 8px;
background: var(--blue);
font-weight: 800;
}
.login-panel h1 {
margin: 18px 0 24px;
font-size: 24px;
}
.login-panel label {
display: block;
margin-bottom: 14px;
color: var(--muted);
}
.login-panel span {
display: block;
margin-bottom: 7px;
font-size: 13px;
}
.login-panel input,
.search,
.note-input,
.settings-form input,
.settings-form select {
width: 100%;
border: 1px solid var(--stroke);
border-radius: 8px;
outline: none;
background: #080c12;
color: var(--text);
}
.login-panel input,
.search,
.note-input,
.settings-form input,
.settings-form select {
height: 38px;
padding: 0 12px;
}
.login-panel button,
.primary-btn {
height: 40px;
border-radius: 8px;
background: var(--blue);
color: white;
font-weight: 700;
}
.login-panel button,
.primary-btn {
width: 100%;
}
#loginError {
min-height: 18px;
color: var(--red);
font-size: 13px;
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-rows: 66px 1fr;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 22px;
border-bottom: 1px solid var(--stroke);
background: rgba(8, 11, 17, 0.95);
backdrop-filter: blur(12px);
}
.product {
display: flex;
align-items: center;
gap: 14px;
}
.logo-dot {
width: 34px;
height: 34px;
border-radius: 8px;
background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.product strong {
display: block;
font-size: 17px;
}
.product span {
display: block;
margin-top: 3px;
color: var(--muted);
font-size: 12px;
}
.top-actions {
display: flex;
align-items: center;
gap: 10px;
}
.status-pill {
min-width: 118px;
height: 32px;
display: grid;
place-items: center;
border: 1px solid var(--stroke);
border-radius: 999px;
color: var(--muted);
font-size: 12px;
}
.status-pill.online {
border-color: rgba(18, 185, 129, 0.35);
color: #9af4cf;
background: rgba(18, 185, 129, 0.08);
}
.status-pill.offline {
border-color: rgba(251, 113, 133, 0.35);
color: #fecdd3;
background: rgba(251, 113, 133, 0.08);
}
.ghost-btn,
.dark-btn,
.tool-row button,
.segmented button,
.icon-btn {
height: 34px;
padding: 0 13px;
border: 1px solid var(--stroke);
border-radius: 8px;
background: var(--panel-2);
color: var(--text);
}
.ghost-btn:hover,
.dark-btn:hover,
.tool-row button:hover,
.segmented button:hover {
border-color: var(--stroke-strong);
background: #1b2532;
}
.dark-btn {
background: #070a10;
}
.workspace {
height: calc(100vh - 66px);
display: grid;
grid-template-columns: 300px 450px minmax(650px, 1fr);
gap: 14px;
padding: 14px;
}
.study-pane,
.series-pane,
.viewer-pane {
min-height: 0;
border: 1px solid var(--stroke);
border-radius: 8px;
background: rgba(16, 21, 29, 0.9);
box-shadow: var(--shadow);
}
.study-pane,
.series-pane {
padding: 14px;
display: grid;
grid-template-rows: auto auto 1fr;
gap: 12px;
}
.pane-head,
.annotation-head,
.settings-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.pane-head h2,
.annotation-head h2 {
margin: 0;
font-size: 15px;
}
.pane-head span,
.annotation-head span,
.settings-title span {
color: var(--muted);
font-size: 12px;
}
.series-head-tools {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 6px;
max-width: 330px;
}
.sort-btn {
height: 26px;
min-width: 56px;
padding: 0 7px;
border: 1px solid var(--stroke);
border-radius: 7px;
background: #0b0f16;
color: var(--muted);
font-size: 11px;
}
.sort-btn.active {
border-color: var(--blue);
background: rgba(52, 116, 246, 0.2);
color: var(--text);
}
.study-list,
.series-grid {
min-height: 0;
overflow: auto;
padding-right: 4px;
}
.study-card {
width: 100%;
padding: 12px;
margin-bottom: 10px;
border: 1px solid transparent;
border-radius: 8px;
background: #0b0f16;
color: var(--text);
text-align: left;
}
.study-card.active {
border-color: rgba(52, 116, 246, 0.82);
background: linear-gradient(180deg, rgba(52, 116, 246, 0.22), #0b0f16);
}
.study-card strong,
.series-card strong {
display: block;
font-size: 14px;
}
.study-card span {
display: block;
margin-top: 6px;
color: var(--muted);
font-size: 12px;
line-height: 1.35;
}
.series-grid {
display: grid;
grid-template-columns: 1fr;
align-content: start;
gap: 12px;
}
.series-card {
width: 100%;
min-height: 156px;
display: grid;
grid-template-columns: 142px minmax(0, 1fr);
gap: 12px;
padding: 10px;
border: 1px solid transparent;
border-radius: 8px;
background: #0b0f16;
color: var(--text);
text-align: left;
}
.series-card.active {
border-color: rgba(25, 212, 194, 0.72);
background: #0d141c;
}
.series-card.skipped {
border-color: rgba(240, 181, 78, 0.36);
background: linear-gradient(180deg, rgba(240, 181, 78, 0.1), #0b0f16 42%);
}
.thumb {
position: relative;
width: 132px;
height: 132px;
align-self: start;
overflow: hidden;
border: 1px solid #1d2734;
border-radius: 6px;
background:
linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.025) 75%),
#020306;
}
.thumb img {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
.thumb b,
.thumb i {
position: absolute;
right: 8px;
padding: 3px 7px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.74);
color: #f8fafc;
font-size: 11px;
font-style: normal;
}
.thumb b {
bottom: 8px;
}
.thumb i {
top: 8px;
background: rgba(240, 181, 78, 0.86);
color: #1b1305;
font-weight: 700;
}
.series-copy {
min-width: 0;
display: grid;
align-content: start;
gap: 7px;
}
.series-copy strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.shot-time,
.series-copy small {
color: var(--muted);
font-size: 12px;
}
.tag-line {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.tag-line em {
max-width: 100%;
padding: 3px 7px;
overflow: hidden;
border: 1px solid rgba(146, 163, 186, 0.18);
border-radius: 999px;
color: #c8d6ea;
font-size: 11px;
font-style: normal;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-line .tag-manual {
border-color: rgba(25, 212, 194, 0.58);
color: #baf8ee;
background: rgba(25, 212, 194, 0.08);
}
.tag-line .tag-ai {
border-color: rgba(240, 181, 78, 0.65);
color: #ffe0a3;
background: rgba(240, 181, 78, 0.1);
}
.viewer-pane {
min-width: 0;
display: grid;
grid-template-rows: auto 1fr;
overflow: hidden;
}
.viewer-toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
border-bottom: 1px solid var(--stroke);
background: rgba(8, 11, 17, 0.86);
}
.segmented {
display: flex;
gap: 5px;
padding: 5px;
border: 1px solid var(--stroke);
border-radius: 9px;
background: var(--panel);
}
.segmented button.active {
border-color: var(--blue);
background: var(--blue);
}
.tool-row {
display: flex;
gap: 6px;
margin-left: auto;
}
.viewer-stage {
min-height: 0;
display: grid;
grid-template-rows: minmax(360px, 1fr) auto;
}
.image-wrap {
position: relative;
min-height: 0;
display: grid;
place-items: center;
overflow: hidden;
background: #000;
cursor: grab;
}
.image-wrap.dragging {
cursor: grabbing;
}
#dicomImage {
max-width: calc(100% - 64px);
max-height: 100%;
object-fit: contain;
transform-origin: center center;
will-change: transform;
user-select: none;
}
.image-empty {
display: none;
}
.image-overlay {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
color: rgba(245, 248, 255, 0.86);
font-family: "Consolas", "Cascadia Mono", monospace;
font-size: 14px;
line-height: 1.25;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}
.image-overlay.hidden {
display: none;
}
.crosshair {
position: absolute;
opacity: 0.72;
}
.crosshair-v {
top: 4%;
bottom: 4%;
left: 50%;
width: 1px;
background: #ff3b30;
}
.crosshair-h {
left: 3%;
right: 3%;
top: 50%;
height: 1px;
background: #21c55d;
}
.ov {
position: absolute;
max-width: 42%;
white-space: pre-line;
}
.ov-left-top {
top: 12px;
left: 14px;
}
.ov-right-top {
top: 12px;
right: 54px;
text-align: right;
}
.ov-left-mid {
left: 12px;
top: 50%;
transform: translateY(-50%);
}
.ov-right-mid {
right: 54px;
top: 50%;
transform: translateY(-50%);
}
.ov-top-mid {
top: 12px;
left: 50%;
transform: translateX(-50%);
}
.ov-bottom-mid {
bottom: 12px;
left: 50%;
transform: translateX(-50%);
}
.ov-left-bottom {
left: 14px;
bottom: 12px;
}
.ov-right-bottom {
right: 54px;
bottom: 12px;
text-align: right;
}
.slice-rail {
position: absolute;
top: 16px;
right: 12px;
bottom: 16px;
width: 38px;
display: grid;
grid-template-rows: 1fr auto;
justify-items: center;
align-items: center;
padding: 10px 0;
border: 1px solid rgba(146, 163, 186, 0.24);
border-radius: 8px;
background: rgba(8, 12, 18, 0.86);
backdrop-filter: blur(6px);
}
#sliceSlider {
width: 28px;
height: 100%;
writing-mode: vertical-lr;
direction: rtl;
accent-color: var(--cyan);
}
#sliceText {
margin-top: 8px;
color: var(--muted);
font-size: 11px;
writing-mode: vertical-rl;
}
.annotation-panel {
min-width: 0;
padding: 12px;
border-top: 1px solid var(--stroke);
background: var(--panel);
}
.annotation-head {
margin-bottom: 10px;
}
.ai-btn {
min-width: 86px;
color: #baf8ee;
}
.source-legend {
display: flex;
gap: 12px;
margin: -2px 0 10px;
color: var(--muted);
font-size: 12px;
}
.source-legend span {
display: flex;
align-items: center;
gap: 5px;
}
.manual-dot,
.ai-dot {
width: 9px;
height: 9px;
display: inline-block;
border-radius: 999px;
}
.manual-dot {
background: var(--cyan);
}
.ai-dot {
background: var(--amber);
}
.part-grid {
display: grid;
grid-template-columns: repeat(7, minmax(78px, 1fr));
gap: 8px;
}
.part-grid label,
.phase-options label {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
min-height: 34px;
padding: 0 10px;
border: 1px solid var(--stroke);
border-radius: 8px;
color: var(--text);
background: #0b0f16;
white-space: nowrap;
}
.part-grid label:has(input:checked),
.phase-options label:has(input:checked) {
border-color: rgba(25, 212, 194, 0.58);
background: rgba(25, 212, 194, 0.1);
}
.part-grid label.manual-selected,
.phase-options label.manual-selected {
border-color: rgba(25, 212, 194, 0.72);
box-shadow: inset 3px 0 0 rgba(25, 212, 194, 0.95);
}
.part-grid label.ai-selected,
.phase-options label.ai-selected {
border-color: rgba(240, 181, 78, 0.72);
background: rgba(240, 181, 78, 0.1);
box-shadow: inset 3px 0 0 rgba(240, 181, 78, 0.95);
}
.part-grid .skip-option:has(input:checked) {
border-color: rgba(240, 181, 78, 0.72);
background: rgba(240, 181, 78, 0.12);
}
.part-grid .plain-option:has(input:checked) {
border-color: rgba(52, 116, 246, 0.72);
background: rgba(52, 116, 246, 0.12);
}
.part-grid input:disabled + * {
color: var(--muted);
}
.phase-box {
display: none;
margin-top: 10px;
}
.phase-box.visible {
display: grid;
grid-template-columns: 96px 1fr;
align-items: center;
gap: 10px;
}
.phase-box > span {
color: var(--muted);
font-size: 12px;
}
.phase-options {
display: grid;
grid-template-columns: repeat(3, minmax(110px, 1fr));
gap: 8px;
}
.annotation-actions {
display: grid;
grid-template-columns: 118px minmax(0, 1fr);
gap: 10px;
margin-top: 10px;
}
.note-input {
height: 38px;
}
.save-btn {
height: 38px;
}
.modal {
position: fixed;
inset: 0;
z-index: 12;
display: grid;
place-items: center;
background: rgba(6, 8, 12, 0.68);
backdrop-filter: blur(12px);
}
.modal.hidden {
display: none;
}
.modal-card {
width: min(900px, 86vw);
max-height: 82vh;
overflow: auto;
border: 1px solid #d7e1ef;
border-radius: 10px;
background: #f8fafc;
color: #132033;
box-shadow: var(--shadow);
}
.settings-card {
width: min(980px, 90vw);
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 24px;
border-bottom: 1px solid #e2e8f0;
}
.modal-head h2 {
margin: 0 0 4px;
font-size: 18px;
}
.modal-head span {
color: #7890ad;
font-size: 13px;
}
.icon-btn {
width: 36px;
padding: 0;
background: #eef2f7;
color: #18304f;
}
.info-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding: 24px;
}
.info-card,
.settings-section {
padding: 16px;
border-radius: 8px;
background: #f1f5f9;
}
.info-card h3,
.settings-title h3 {
margin: 0 0 12px;
font-size: 14px;
}
.info-row {
display: flex;
justify-content: space-between;
gap: 14px;
padding: 5px 0;
color: #7b8da7;
font-size: 13px;
}
.info-row b {
color: #14233a;
text-align: right;
overflow-wrap: anywhere;
}
.settings-content {
display: grid;
gap: 14px;
padding: 24px;
}
.settings-section.split {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.settings-form {
display: grid;
grid-template-columns: 1fr 1fr 140px 88px;
gap: 8px;
margin: 10px 0 14px;
}
.settings-form input,
.settings-form select {
border-color: #cdd8e7;
background: white;
color: #132033;
}
.settings-form button {
border-radius: 8px;
background: #1d5ff0;
color: white;
font-weight: 700;
}
.settings-table {
width: 100%;
border-collapse: collapse;
overflow: hidden;
border-radius: 8px;
background: white;
font-size: 13px;
}
.settings-table th,
.settings-table td {
padding: 9px 10px;
border-bottom: 1px solid #e5edf7;
text-align: left;
}
.settings-table th {
color: #6f819a;
font-weight: 700;
}
.role-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.role-card {
min-height: 78px;
padding: 12px;
border: 1px solid #dce5f1;
border-radius: 8px;
background: white;
}
.role-card strong {
display: block;
margin-bottom: 8px;
}
.role-card span,
.settings-section dd,
.settings-section dt {
color: #6f819a;
font-size: 13px;
}
.settings-section dl {
display: grid;
grid-template-columns: 70px minmax(0, 1fr);
gap: 8px 12px;
margin: 12px 0 0;
}
.settings-section dt,
.settings-section dd {
margin: 0;
}
.settings-section dd {
color: #17263d;
overflow-wrap: anywhere;
}
.error-line {
color: var(--red);
font-size: 13px;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border: 3px solid transparent;
border-radius: 999px;
background: var(--panel-3);
background-clip: padding-box;
}