Files
cDNA-image-processing/web/static/style.css
T
Serendipity 06159eba19 style: 深蓝+白色学术风格重设计
替代荧光绿实验室主题,更干净专业
2026-05-08 15:49:39 +08:00

203 lines
8.0 KiB
CSS

/* ============================================================
cDNA Lab Console — Clean Academic Theme
Deep navy + white panels + subtle blue accents
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');
:root {
--bg: #0c1524;
--bg-panel: #14233a;
--bg-card: #1a2d4a;
--border: #1e3354;
--border-light: #2a4570;
--accent: #4d8ef7;
--accent-dim: #2b5db8;
--accent-soft: rgba(77, 142, 247, 0.12);
--text: #8899b4;
--text-dim: #4e6280;
--text-bright: #d0ddf0;
--white: #f0f4fc;
--red: #f55050;
--red-soft: rgba(245, 80, 80, 0.12);
--green: #52c97d;
--font-mono: 'IBM Plex Mono', 'Courier New', monospace;
--font-ui: 'Inter', 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font-ui);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
/* ---- Header ---- */
.header {
display: flex; justify-content: space-between; align-items: center;
padding: 20px 36px; border-bottom: 1px solid var(--border);
background: var(--bg-panel);
}
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-bracket { color: var(--text-dim); font-size: 1.3rem; font-family: var(--font-mono); }
.logo-text {
font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500;
color: var(--white); letter-spacing: 0.12em;
}
.logo-accent { color: var(--accent); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; }
.status-dot {
width: 7px; height: 7px; border-radius: 50%; background: var(--green);
box-shadow: 0 0 0 3px rgba(82, 201, 125, 0.2);
}
.status-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.15em; }
/* ---- Container ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 36px 28px; }
/* ---- Upload Zone ---- */
.upload-section { margin-bottom: 32px; }
.upload-zone-wrapper { display: flex; flex-direction: column; gap: 16px; }
.upload-zone {
border: 2px dashed var(--border); border-radius: 10px;
padding: 52px 24px; text-align: center; cursor: pointer;
transition: all 0.25s ease; background: var(--bg-panel);
}
.upload-zone:hover {
border-color: var(--accent); background: var(--accent-soft);
}
.upload-zone.dragover { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.upload-svg { color: var(--text-dim); margin-bottom: 14px; transition: color 0.25s; }
.upload-zone:hover .upload-svg { color: var(--accent); }
.upload-text {
font-family: var(--font-mono); font-size: 1.05rem; color: var(--white);
letter-spacing: 0.08em; margin-bottom: 6px;
}
.upload-cursor { display: inline-block; color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.upload-sub { font-size: 0.85rem; color: var(--text-dim); }
.upload-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.upload-preview img {
max-width: 100%; max-height: 320px; border-radius: 8px;
border: 1px solid var(--border); object-fit: contain; background: #000;
}
.btn-process {
display: flex; align-items: center; gap: 8px;
padding: 12px 36px; border: none; border-radius: 6px;
background: var(--accent); color: #fff;
font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.1em;
cursor: pointer; transition: all 0.2s;
}
.btn-process:hover { background: var(--accent-dim); transform: translateY(-1px); }
/* ---- Status Bar ---- */
.status-bar {
display: flex; align-items: center; gap: 14px;
padding: 10px 18px; background: var(--bg-panel); border: 1px solid var(--border);
border-radius: 6px; margin-bottom: 28px;
}
.status-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.status-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }
.status-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.12em; }
/* ---- Error ---- */
.error-msg {
background: var(--red-soft); border: 1px solid var(--red); color: var(--red);
padding: 14px 20px; border-radius: 6px; margin-bottom: 24px;
font-family: var(--font-mono); font-size: 0.85rem;
}
/* ---- Stats Panel ---- */
.stats-panel { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-card {
flex: 1; min-width: 150px; padding: 20px 24px;
background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px;
text-align: center; transition: border-color 0.25s;
}
.stat-card:hover { border-color: var(--border-light); }
.stat-card.spot { border-color: var(--accent-dim); background: var(--accent-soft); }
.stat-label {
display: block; font-family: var(--font-mono); font-size: 0.68rem;
color: var(--text-dim); letter-spacing: 0.18em; margin-bottom: 8px; font-weight: 500;
}
.stat-value {
display: block; font-family: var(--font-mono); font-size: 1.5rem;
color: var(--white); font-weight: 500;
}
.stat-card.spot .stat-value { color: var(--accent); font-size: 2rem; font-weight: 600; }
/* ---- Gallery ---- */
.gallery { margin-bottom: 48px; }
.gallery-header {
display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px;
}
.gallery-title {
font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
color: var(--white); letter-spacing: 0.16em;
}
.btn-dl-all {
display: flex; align-items: center; gap: 6px;
padding: 9px 22px; border: 1px solid var(--border-light); border-radius: 6px;
background: transparent; color: var(--text);
font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
cursor: pointer; transition: all 0.2s;
}
.btn-dl-all:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-dl-all span { font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card {
border-radius: 8px; overflow: hidden; background: var(--bg-card);
border: 1px solid var(--border);
transition: border-color 0.25s, transform 0.2s;
}
.gallery-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.gallery-card-inner {
aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
background: #060c18; cursor: pointer;
}
.gallery-card-inner img {
width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s;
}
.gallery-card-inner:hover img { transform: scale(1.04); }
.gallery-card-label {
padding: 10px 14px; font-family: var(--font-mono); font-size: 0.65rem;
color: var(--text-dim); letter-spacing: 0.1em; text-align: center;
border-top: 1px solid var(--border); font-weight: 500;
}
/* ---- Lightbox ---- */
.lightbox {
display: none; position: fixed; inset: 0; z-index: 1000;
background: rgba(4, 10, 20, 0.95); flex-direction: column; align-items: center; justify-content: center;
}
.lightbox img {
max-width: 92vw; max-height: 88vh; object-fit: contain;
border-radius: 4px; border: 1px solid var(--border-light); background: #000;
}
.lightbox-close {
position: absolute; top: 24px; right: 36px;
font-size: 2rem; color: var(--text-dim); cursor: pointer; transition: color 0.2s;
line-height: 1;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-dl {
margin-top: 18px; padding: 10px 28px; border: 1px solid var(--accent); border-radius: 6px;
color: var(--accent); text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem;
transition: all 0.2s;
}
.lightbox-dl:hover { background: var(--accent); color: #fff; }
/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }