00e1845f2c
- 消除 !important 滥用:134 → 49(仅保留 Leaflet/图表所必需项),浅色主题使用 html.light 选择器获得更高优先级 - 修复 font-weight:13 个文件中所有 760/850/860/880/950 等非标准值已映射为 Inter 支持的 300–800 - 移除未加载的 Geist 字体声明,替换为 Inter - 添加全局 :focus-visible 轮廓环、跳过链接、Tab ARIA 属性(role/aria-selected) - 统一断点体系:18 → 10(480/640/768/960/1024/1200/1280/1360/1440/1680) - 创建 scan-root-styles.ts 桶文件,将 22 个 CSS Module 导入合并为 1 个 - Token 迁移:10 个文件中数百处硬编码颜色(#4DA3FF/#E6EDF3/#9FB2C7/#6B7A90)已替换为 CSS 变量 - 去重 @keyframes:spin 4→1、loading-spin 2→0、pulse-pending 已移至 globals.css - 添加统一的 empty/error/retry 状态组件 - 添加全局 prefers-reduced-motion 支持 - 修复 accent-primary 与 accent-secondary 相同值的问题 - 修复 accent-green 类错误渲染为蓝色 - 添加 CSS 渐变品牌 Logo - 移除死代码(1,697 行):public/static/style.css + public/legacy/index.html - Dashboard.module.css 本地变量已桥接至全局 token - 提升文字对比度:#6B7A90 → #7D8FA3 Fixed: !important-134-to-49, font-weight-13-files, Geist-removal, focus-visible, breakpoints-18-to-10, CSS-module-barrel, token-migration-10-files, keyframe-dedup, dead-code-removal, accent-color-fix, contrast-improvement Scope: frontend CSS architecture, design tokens, accessibility, responsive breakpoints Tested: npx tsc --noEmit
557 lines
12 KiB
CSS
557 lines
12 KiB
CSS
/* ══════════════════════════════════════════════════════════════
|
|
SCAN TERMINAL — 3-Column Layout
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
.root :global(.scan-terminal) {
|
|
display: flex;
|
|
width: 100%;
|
|
height: calc(100vh - var(--header-height, 72px));
|
|
margin-top: var(--header-height, 72px);
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* ── Left: Filter Panel ── */
|
|
.root :global(.scan-filter-panel) {
|
|
width: 220px;
|
|
min-width: 220px;
|
|
height: 100%;
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-glass);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 16px;
|
|
gap: 20px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.root :global(.scan-filter-section) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.root :global(.scan-filter-label) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Mode Tabs */
|
|
.root :global(.scan-mode-tabs) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
position: relative;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab:hover) {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-mode-tab.active) {
|
|
background: rgba(0, 224, 164, 0.08);
|
|
color: var(--color-accent-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab.active)::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
top: 25%;
|
|
height: 50%;
|
|
width: 3px;
|
|
background: var(--color-accent-primary);
|
|
border-radius: 0 2px 2px 0;
|
|
}
|
|
|
|
.root :global(.scan-mode-tab-indicator) {
|
|
display: none;
|
|
}
|
|
|
|
/* Filter Rows */
|
|
.root :global(.scan-filter-row) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.root :global(.scan-filter-row-label) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-range-display) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.root :global(.scan-range-slider) {
|
|
flex: 1;
|
|
appearance: none;
|
|
height: 4px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
}
|
|
|
|
.root :global(.scan-range-slider::-webkit-slider-thumb) {
|
|
appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: var(--color-accent-primary);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: 2px solid var(--bg-secondary);
|
|
}
|
|
|
|
/* Toggle */
|
|
.root :global(.scan-toggle) {
|
|
width: 36px;
|
|
height: 20px;
|
|
border-radius: 10px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.root :global(.scan-toggle.active) {
|
|
background: rgba(0, 224, 164, 0.3);
|
|
border-color: var(--color-accent-primary);
|
|
}
|
|
|
|
.root :global(.scan-toggle-knob) {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--text-secondary);
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.root :global(.scan-toggle.active .scan-toggle-knob) {
|
|
left: 18px;
|
|
background: var(--color-accent-primary);
|
|
}
|
|
|
|
/* Select */
|
|
.root :global(.scan-select) {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 6px;
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
.root :global(.scan-select:focus) {
|
|
border-color: var(--color-accent-primary);
|
|
}
|
|
|
|
/* Scan CTA */
|
|
.root :global(.scan-cta-button) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
background: linear-gradient(135deg, var(--color-accent-primary), #00c48f);
|
|
color: #030711;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.25s;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.root :global(.scan-cta-button:hover) {
|
|
background: linear-gradient(135deg, #00f0b0, #00d89a);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 20px rgba(0, 224, 164, 0.3);
|
|
}
|
|
|
|
.root :global(.scan-cta-button:disabled) {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* ── Center: Data Grid ── */
|
|
.root :global(.scan-data-grid) {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 20px 24px;
|
|
gap: 16px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-header) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-title) {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-data-grid-subtitle) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid-controls) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* View Tabs */
|
|
.root :global(.scan-view-tabs) {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-view-tab) {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.root :global(.scan-view-tab:hover) {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-view-tab.active) {
|
|
color: var(--color-accent-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-view-tab.active)::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--color-accent-primary);
|
|
border-radius: 4px;
|
|
opacity: 0.8;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* ── Right: Scan Detail Panel ── */
|
|
.root :global(.scan-detail-panel) {
|
|
width: 360px;
|
|
min-width: 360px;
|
|
height: 100%;
|
|
border-left: 1px solid var(--border-glass);
|
|
background: var(--bg-secondary);
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.root :global(.scan-detail-header) {
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-detail-hero-img) {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-hero-placeholder) {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(0, 224, 164, 0.15),
|
|
rgba(123, 97, 255, 0.15)
|
|
);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-city-info) {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.root :global(.scan-detail-city-name) {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-detail-city-sub) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.root :global(.scan-detail-volume) {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.root :global(.scan-detail-section) {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.root :global(.scan-detail-section-title) {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Conditions Table */
|
|
.root :global(.scan-conditions-table) {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-condition-item) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.root :global(.scan-condition-label) {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-condition-value) {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.root :global(.scan-condition-value.accent-green) {
|
|
color: #22C55E;
|
|
}
|
|
|
|
.root :global(.scan-condition-value.accent-red) {
|
|
color: #EF4444;
|
|
}
|
|
|
|
/* Trade Cards */
|
|
.root :global(.scan-trade-cards) {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.root :global(.scan-trade-card) {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: 10px;
|
|
padding: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-trade-card.yes) {
|
|
border-top: 2px solid var(--color-accent-primary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card.no) {
|
|
border-top: 2px solid #EF4444;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-title) {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card-price) {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge) {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge.positive) {
|
|
color: var(--color-accent-primary);
|
|
}
|
|
|
|
.root :global(.scan-trade-card-edge.negative) {
|
|
color: #EF4444;
|
|
}
|
|
|
|
.root :global(.scan-trade-card-note) {
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Score Gauge */
|
|
.root :global(.scan-detail-score) {
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.root :global(.scan-detail-score-big) {
|
|
font-size: 40px;
|
|
font-weight: 900;
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1;
|
|
}
|
|
|
|
.root :global(.scan-detail-score-label) {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.root :global(.scan-detail-score-suffix) {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Confidence Dots */
|
|
.root :global(.scan-confidence-dots) {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot) {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled) {
|
|
background: var(--color-accent-primary);
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled.amber) {
|
|
background: #F59E0B;
|
|
}
|
|
|
|
.root :global(.scan-confidence-dot.filled.red) {
|
|
background: #EF4444;
|
|
}
|
|
|
|
/* Empty state */
|
|
.root :global(.scan-detail-empty) {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ══════════════════════════════════════════════════════════════
|
|
SCAN TERMINAL OVERRIDES — EMOS DESK
|
|
══════════════════════════════════════════════════════════════ */
|
|
|
|
.root :global(.scan-terminal) {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
|
|
gap: 14px;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
height: auto;
|
|
margin-top: 0;
|
|
padding: 16px;
|
|
background:
|
|
radial-gradient(circle at top, rgba(77, 163, 255, 0.12), transparent 36%),
|
|
linear-gradient(180deg, #0B1220 0%, #07101D 100%);
|
|
overflow: auto;
|
|
}
|
|
|
|
.root :global(.scan-filter-panel),
|
|
.root :global(.scan-data-grid),
|
|
.root :global(.scan-detail-panel) {
|
|
min-height: calc(100vh - 32px);
|
|
border: 1px solid rgba(159, 178, 199, 0.14);
|
|
border-radius: 22px;
|
|
background: linear-gradient(180deg, rgba(17, 26, 46, 0.96), rgba(11, 18, 32, 0.96));
|
|
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.root :global(.scan-data-grid) {
|
|
padding: 18px;
|
|
gap: 18px;
|
|
overflow: hidden;
|
|
min-height: calc(100vh - 32px);
|
|
max-height: calc(100vh - 32px);
|
|
}
|