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
536 lines
11 KiB
CSS
536 lines
11 KiB
CSS
/* Scan terminal mobile action-card layout and responsive overrides. */
|
|
|
|
.root :global(.scan-mobile-decision-card) {
|
|
display: grid;
|
|
gap: 12px;
|
|
padding-bottom: 14px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-head) {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 16px 16px 0;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-head h3) {
|
|
margin: 6px 0 0;
|
|
color: var(--color-text-primary);
|
|
font-size: 24px;
|
|
line-height: 1.08;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-metrics) {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
padding: 0 14px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-metrics span) {
|
|
display: grid;
|
|
gap: 4px;
|
|
border: 1px solid rgba(77, 163, 255, 0.18);
|
|
border-radius: 12px;
|
|
background: rgba(77, 163, 255, 0.09);
|
|
padding: 9px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-metrics small) {
|
|
color: var(--color-text-secondary);
|
|
font-size: 10px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-metrics b) {
|
|
color: #f3f8ff;
|
|
font-size: 13px;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-reason) {
|
|
margin: 0 14px;
|
|
border: 1px solid rgba(77, 163, 255, 0.24);
|
|
border-radius: 13px;
|
|
background: rgba(77, 163, 255, 0.1);
|
|
color: #d8e7f8;
|
|
font-size: 14px;
|
|
font-weight: 900;
|
|
line-height: 1.45;
|
|
padding: 11px 12px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-card .scan-ai-city-status-tags),
|
|
.root :global(.scan-mobile-decision-card .scan-ai-city-freshness),
|
|
.root :global(.scan-mobile-decision-card .scan-ai-market-mobile-line),
|
|
.root :global(.scan-mobile-decision-folds) {
|
|
margin-right: 14px;
|
|
margin-left: 14px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-card .scan-ai-city-freshness) {
|
|
grid-template-columns: 1fr;
|
|
max-width: none;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-card .scan-ai-market-mobile-line) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-card .scan-ai-market-decision) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-mobile-decision-folds) {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-fold) {
|
|
padding: 13px 14px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-fold summary) {
|
|
cursor: pointer;
|
|
list-style: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.root :global(.scan-mobile-fold summary::-webkit-details-marker) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-mobile-fold[open] summary) {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.root :global(.scan-mobile-fold .scan-ai-city-section.models) {
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-collapse svg) {
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
|
|
@media (max-width: 1440px) {
|
|
.root :global(.scan-terminal) {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
|
|
.root :global(.scan-terminal > .detail-panel.scan-city-detail-rail) {
|
|
position: relative;
|
|
top: auto;
|
|
grid-column: 1 / -1;
|
|
height: auto;
|
|
max-height: none;
|
|
min-height: auto;
|
|
}
|
|
|
|
.root :global(.scan-detail-panel) {
|
|
grid-column: 1 / -1;
|
|
min-height: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.root :global(.scan-terminal) {
|
|
grid-template-columns: 1fr;
|
|
min-height: 100dvh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.root :global(.scan-filter-panel),
|
|
.root :global(.scan-data-grid),
|
|
.root :global(.scan-detail-panel),
|
|
.root :global(.scan-terminal > .detail-panel.scan-city-detail-rail) {
|
|
min-height: auto;
|
|
}
|
|
|
|
.root :global(.scan-data-grid) {
|
|
max-height: none;
|
|
overflow: visible;
|
|
}
|
|
|
|
.root :global(.scan-list-section),
|
|
.root :global(.scan-table-shell),
|
|
.root :global(.scan-ai-workspace) {
|
|
overflow: visible;
|
|
}
|
|
|
|
.root :global(.scan-ai-workspace) {
|
|
max-height: none;
|
|
}
|
|
|
|
.root :global(.scan-terminal > .detail-panel.scan-city-detail-rail) {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.root :global(.scan-topbar) {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement ul) {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.root :global(.scan-table-header),
|
|
.root :global(.scan-table-row) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-table-header) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-group-head),
|
|
.root :global(.scan-opportunity-item) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-forecast-city-head),
|
|
.root :global(.scan-forecast-row-main),
|
|
.root :global(.scan-ai-brief-grid),
|
|
.root :global(.scan-ai-city-analysis-grid),
|
|
.root :global(.scan-ai-decision-band),
|
|
.root :global(.scan-ai-evidence-line) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-ai-workspace-head),
|
|
.root :global(.scan-opportunity-hero),
|
|
.root :global(.scan-ai-city-hero),
|
|
.root :global(.scan-ai-city-section-head) {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-hero) {
|
|
display: flex;
|
|
}
|
|
|
|
.root :global(.scan-ai-workspace-head p),
|
|
.root :global(.scan-ai-city-hero-side) {
|
|
text-align: left;
|
|
justify-items: start;
|
|
}
|
|
|
|
.root :global(.scan-ai-decision-metrics) {
|
|
min-width: 0;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-ai-market-decision) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-card-grid),
|
|
.root :global(.scan-opportunity-summary) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-forecast-city-read) {
|
|
justify-items: start;
|
|
text-align: left;
|
|
}
|
|
|
|
.root :global(.scan-forecast-signals),
|
|
.root :global(.scan-ai-temperature-line) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-phase) {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-branch) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-stat.edge) {
|
|
justify-self: start;
|
|
justify-items: start;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-ai),
|
|
.root :global(.scan-v4-analysis) {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.root :global(.scan-v4-analysis) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-trade-cards) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.root :global(.scan-terminal) {
|
|
padding: 10px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid) {
|
|
padding: 12px;
|
|
gap: 14px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.root :global(.scan-topbar-actions) {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-topbar-title strong) {
|
|
font-size: 23px;
|
|
}
|
|
|
|
.root :global(.scan-topbar-title span) {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.root :global(.scan-topbar-tabs) {
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement) {
|
|
padding: 14px;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement-copy strong) {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement ul) {
|
|
gap: 6px;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement li) {
|
|
font-size: 11px;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-hero) {
|
|
padding: 16px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-hero h3) {
|
|
margin-bottom: 10px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-mobile-priority) {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 8px;
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-mobile-priority span) {
|
|
display: grid;
|
|
gap: 4px;
|
|
border: 1px solid rgba(77, 163, 255, 0.18);
|
|
border-radius: 12px;
|
|
background: rgba(77, 163, 255, 0.09);
|
|
padding: 9px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-mobile-priority small) {
|
|
color: var(--color-text-secondary);
|
|
font-size: 10px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-mobile-priority b) {
|
|
color: #f3f8ff;
|
|
font-size: 13px;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-pills) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-freshness) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.root :global(.scan-ai-decision-band) {
|
|
padding: 14px;
|
|
}
|
|
|
|
.root :global(.scan-ai-decision-band strong) {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.root :global(.scan-ai-market-mobile-line) {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-top: 12px;
|
|
border: 1px solid rgba(77, 163, 255, 0.18);
|
|
border-radius: 12px;
|
|
background: rgba(11, 18, 32, 0.48);
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.root :global(.scan-ai-market-mobile-line span) {
|
|
color: var(--color-text-secondary);
|
|
font-size: 12px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.root :global(.scan-ai-market-mobile-line b) {
|
|
color: var(--color-text-primary);
|
|
font-size: 13px;
|
|
text-align: right;
|
|
}
|
|
|
|
.root :global(.scan-ai-market-decision) {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.root :global(.scan-ai-city-ai-read:not([open])) {
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.root :global(.scan-list-header) {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.root :global(.scan-list-tabs) {
|
|
width: 100%;
|
|
gap: 8px;
|
|
overflow-x: auto;
|
|
padding-bottom: 4px;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.root :global(.scan-list-tabs::-webkit-scrollbar) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-list-tabs button) {
|
|
flex: 0 0 auto;
|
|
min-height: 36px;
|
|
border: 1px solid rgba(99, 132, 180, 0.18);
|
|
border-radius: 999px;
|
|
background: rgba(8, 19, 34, 0.76);
|
|
padding: 0 12px;
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.root :global(.scan-list-tabs button.active) {
|
|
border-color: rgba(77, 163, 255, 0.38);
|
|
background: rgba(77, 163, 255, 0.16);
|
|
}
|
|
|
|
.root :global(.scan-list-status) {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-groups) {
|
|
padding: 12px;
|
|
}
|
|
|
|
.root :global(.scan-opportunity-models span) {
|
|
white-space: normal;
|
|
}
|
|
|
|
.root :global(.scan-forecast-city-title strong) {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.root :global(.scan-forecast-row-main),
|
|
.root :global(.scan-ai-analysis) {
|
|
padding: 13px;
|
|
}
|
|
|
|
.root :global(.scan-forecast-ai-line) {
|
|
grid-template-columns: 1fr;
|
|
padding: 0 13px 13px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.root :global(.scan-terminal) {
|
|
box-sizing: border-box;
|
|
max-width: 100vw;
|
|
overflow-x: clip;
|
|
padding: 6px;
|
|
}
|
|
|
|
.root :global(.scan-data-grid) {
|
|
box-sizing: border-box;
|
|
min-width: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding: 10px;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.root :global(.scan-topbar-tabs) {
|
|
max-width: 100%;
|
|
gap: 8px;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement) {
|
|
margin: -2px 0 2px;
|
|
padding: 12px;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement-copy p) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-upgrade-announcement ul) {
|
|
display: none;
|
|
}
|
|
|
|
.root :global(.scan-status-chip) {
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.root :global(.scan-primary-button) {
|
|
min-height: 38px;
|
|
padding: 9px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.root :global(.scan-account-button) {
|
|
width: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
.root :global(.scan-theme-button) {
|
|
width: 38px;
|
|
height: 38px;
|
|
}
|
|
}
|