mirror of
https://github.com/stardrophere/InsightRadar.git
synced 2026-06-05 23:56:36 +08:00
241 lines
5.2 KiB
CSS
241 lines
5.2 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
|
|
|
|
/* =========================================
|
|
1. 现代 SaaS 风格主题变量
|
|
========================================= */
|
|
:root {
|
|
/* 明亮模式 - 极简白与浅灰 */
|
|
--bg-base: #f8fafc;
|
|
--bg-surface: #ffffff;
|
|
--bg-input: #f1f5f9;
|
|
|
|
--border-subtle: #e2e8f0;
|
|
--border-strong: #cbd5e1;
|
|
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #64748b;
|
|
--text-placeholder: #94a3b8;
|
|
|
|
--brand-primary: #4f46e5;
|
|
--brand-primary-hover: #4338ca;
|
|
--brand-primary-alpha: rgba(79, 70, 229, 0.1);
|
|
|
|
--status-error: #ef4444;
|
|
--status-success: #10b981;
|
|
|
|
/* 现代柔和扩散阴影 */
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
|
|
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--radius-xl: 16px;
|
|
}
|
|
|
|
html.dark {
|
|
/* 暗黑模式 - 深邃黑与暗石板色 */
|
|
--bg-base: #020617;
|
|
--bg-surface: #0f172a;
|
|
--bg-input: #1e293b;
|
|
|
|
--border-subtle: #1e293b;
|
|
--border-strong: #334155;
|
|
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--text-placeholder: #475569;
|
|
|
|
--brand-primary: #6366f1;
|
|
--brand-primary-hover: #818cf8;
|
|
--brand-primary-alpha: rgba(99, 102, 241, 0.15);
|
|
|
|
--status-error: #f87171;
|
|
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* =========================================
|
|
2. 全局重置与排版基准
|
|
========================================= */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
font-family: 'Inter', 'Noto Sans SC', sans-serif;
|
|
background-color: var(--bg-base);
|
|
color: var(--text-primary);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
#app {
|
|
min-height: 100vh;
|
|
background: transparent;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* =========================================
|
|
高级背景环境光与数据网格
|
|
========================================= */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -2;
|
|
/* 绘制点阵网格 */
|
|
background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
|
|
background-size: 24px 24px;
|
|
/* 使用遮罩让网格在四周自然淡出,避免边缘生硬 */
|
|
mask-image: radial-gradient(ellipse 80% 80% at 50% -20%, black 20%, transparent 80%);
|
|
-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% -20%, black 20%, transparent 80%);
|
|
opacity: 0.4;
|
|
pointer-events: none;
|
|
}
|
|
|
|
html.dark body::before {
|
|
opacity: 0.15;
|
|
}
|
|
|
|
/* 极弱的雷达扫射呼吸环境光 */
|
|
body::after {
|
|
content: '';
|
|
position: fixed;
|
|
top: -50%;
|
|
left: -20%;
|
|
right: -20%;
|
|
height: 100vh;
|
|
z-index: -3;
|
|
background: radial-gradient(ellipse at bottom, var(--brand-primary-alpha) 0%, transparent 60%);
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
animation: ambient-pulse 8s ease-in-out infinite alternate;
|
|
}
|
|
|
|
@keyframes ambient-pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
opacity: 0.4;
|
|
}
|
|
100% {
|
|
transform: scale(1.05);
|
|
opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
/* =========================================
|
|
3. 现代表单控件体系
|
|
========================================= */
|
|
.input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.input-label {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-field {
|
|
width: 100%;
|
|
padding: 12px 14px;
|
|
background-color: var(--bg-input);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.input-field::placeholder {
|
|
color: var(--text-placeholder);
|
|
}
|
|
|
|
.input-field:hover {
|
|
border-color: var(--border-strong);
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: var(--brand-primary);
|
|
box-shadow: 0 0 0 3px var(--brand-primary-alpha);
|
|
background-color: var(--bg-surface);
|
|
}
|
|
|
|
.input-action-btn {
|
|
position: absolute;
|
|
right: 12px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--brand-primary);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.input-action-btn:hover:not(:disabled) {
|
|
background: var(--brand-primary-alpha);
|
|
}
|
|
|
|
.input-action-btn:disabled {
|
|
color: var(--text-placeholder);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background-color: var(--brand-primary);
|
|
color: #ffffff;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-md);
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background-color: var(--brand-primary-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.btn-primary:active:not(:disabled) {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|