mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
753 lines
13 KiB
SCSS
753 lines
13 KiB
SCSS
.welcome-page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 55%),
|
|
radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.18), transparent 45%),
|
|
var(--bg-gradient);
|
|
position: relative;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
overflow: hidden;
|
|
|
|
&.is-standalone {
|
|
background: transparent; // Allow window transparency if configured
|
|
}
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 600px;
|
|
height: 600px;
|
|
background: radial-gradient(circle, rgba(var(--primary-rgb, 139, 115, 85), 0.15), transparent 70%);
|
|
top: -20%;
|
|
left: -10%;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 500px;
|
|
height: 500px;
|
|
background: radial-gradient(circle, rgba(100, 100, 255, 0.05), transparent 70%);
|
|
bottom: -10%;
|
|
right: -5%;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.window-controls {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 100;
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.window-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
&.is-close:hover {
|
|
background: #ff5f57;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
|
|
/* Unified Card Container */
|
|
.welcome-container {
|
|
width: 900px;
|
|
max-width: 100vw;
|
|
height: 620px;
|
|
max-height: 100vh;
|
|
display: flex;
|
|
background: none;
|
|
/* Changed from semi-transparent */
|
|
backdrop-filter: none;
|
|
/* Removed from container */
|
|
-webkit-backdrop-filter: none;
|
|
border-radius: 24px;
|
|
box-shadow:
|
|
0 20px 40px -10px rgba(0, 0, 0, 0.2),
|
|
/* Slightly deeper shadow */
|
|
0 0 0 1px rgba(255, 255, 255, 0.2) inset;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
overflow: hidden;
|
|
z-index: 10;
|
|
position: relative;
|
|
animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
|
|
/* Sidebar (Left) */
|
|
.welcome-sidebar {
|
|
width: 280px;
|
|
background: var(--bg-primary);
|
|
border-right: 1px solid rgba(0, 0, 0, 0.06);
|
|
padding: 32px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
flex-shrink: 0;
|
|
-webkit-app-region: drag;
|
|
|
|
[data-mode="dark"] & {
|
|
background: #18181b;
|
|
border-right-color: rgba(255, 255, 255, 0.08);
|
|
}
|
|
}
|
|
|
|
.sidebar-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.brand-name {
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.brand-tag {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-top: 2px;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
color: rgba(255, 255, 255, 0.45);
|
|
}
|
|
}
|
|
|
|
.sidebar-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
position: relative;
|
|
|
|
// Track line
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 11px;
|
|
top: 20px;
|
|
bottom: 20px;
|
|
width: 2px;
|
|
background: var(--border-color);
|
|
z-index: 0;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
// 嵌套在 .sidebar-nav 内部,避免污染全局 .nav-item 样式
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
position: relative;
|
|
z-index: 1;
|
|
padding: 8px 12px 8px 0;
|
|
opacity: 0.75;
|
|
transition: all 0.3s ease;
|
|
border-radius: 12px;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
&.active,
|
|
&.completed {
|
|
opacity: 1;
|
|
}
|
|
|
|
&.active {
|
|
background: var(--primary);
|
|
padding: 12px 16px;
|
|
margin-left: -4px;
|
|
margin-right: -4px;
|
|
|
|
// 遮挡流程线
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 20px;
|
|
background: var(--primary);
|
|
border-radius: 12px 0 0 12px;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
&.active .nav-info {
|
|
transform: translateX(4px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-indicator {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-primary);
|
|
border-radius: 50%;
|
|
border: 2px solid var(--border-color);
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
transition: all 0.3s ease;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.nav-item.active & {
|
|
border-color: rgba(255, 255, 255, 0.5);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.nav-item.completed & {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
.dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--text-tertiary);
|
|
transition: all 0.3s;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.nav-item.active & {
|
|
background: #ffffff;
|
|
transform: scale(1.2);
|
|
}
|
|
}
|
|
|
|
.nav-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.nav-item.active & {
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
|
|
.nav-desc {
|
|
font-size: 12px;
|
|
color: #666666;
|
|
margin-top: 2px;
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
color: rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.nav-item.active & {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
}
|
|
|
|
|
|
.sidebar-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: #777777;
|
|
/* 浅色模式下使用更深的颜色 */
|
|
padding-top: 20px;
|
|
border-top: 1px dashed var(--border-color);
|
|
|
|
[data-mode="dark"] .welcome-sidebar & {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
border-top-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
span {
|
|
opacity: 1;
|
|
/* 移除额外透明度 */
|
|
}
|
|
}
|
|
|
|
|
|
/* Content Area (Right) */
|
|
.welcome-content {
|
|
flex: 1;
|
|
padding: 40px 48px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
background: var(--bg-primary);
|
|
/* Opaque background */
|
|
|
|
&.success-content {
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.content-header {
|
|
margin-bottom: 32px;
|
|
animation: slideIn 0.4s ease-out;
|
|
-webkit-app-region: drag;
|
|
|
|
h2 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin: 0 0 8px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.header-desc {
|
|
color: var(--text-secondary);
|
|
font-size: 15px;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.step-icon-wrapper {
|
|
margin-bottom: 20px;
|
|
width: 54px;
|
|
height: 54px;
|
|
border-radius: 16px;
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb, 139, 115, 85), 0.3);
|
|
}
|
|
|
|
.content-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
animation: fadeIn 0.4s ease-out 0.1s backwards;
|
|
}
|
|
|
|
|
|
/* Form & Inputs */
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.field-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.input-group {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.field-input {
|
|
width: 100%;
|
|
padding: 14px 16px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
background: rgba(255, 255, 255, 0.6);
|
|
color: var(--text-primary);
|
|
font-size: 15px;
|
|
transition: all 0.2s ease;
|
|
|
|
[data-mode="dark"] & {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
background: #fff;
|
|
box-shadow: 0 0 0 3px var(--primary-light);
|
|
|
|
[data-mode="dark"] & {
|
|
background: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
&::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
}
|
|
|
|
.field-with-toggle {
|
|
position: relative;
|
|
}
|
|
|
|
.toggle-btn {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
padding: 4px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.field-hint {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 4px;
|
|
line-height: 1.5;
|
|
|
|
&.warning {
|
|
color: #ff8800;
|
|
}
|
|
|
|
&.status-text {
|
|
margin-top: 12px;
|
|
padding: 8px 12px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
}
|
|
}
|
|
|
|
.status-message {
|
|
padding: 10px 14px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.error-message {
|
|
padding: 12px 16px;
|
|
background: rgba(255, 59, 48, 0.1);
|
|
color: #ff3b30;
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
margin-top: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.intro-footer {
|
|
margin-top: auto;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
|
|
p {
|
|
margin: 0 0 4px;
|
|
}
|
|
}
|
|
|
|
/* Actions */
|
|
.action-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.content-actions {
|
|
margin-top: auto;
|
|
padding-top: 32px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.key-actions {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
height: 40px;
|
|
padding: 0 20px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border: none;
|
|
|
|
&:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&:active:not(:disabled) {
|
|
transform: scale(0.96);
|
|
}
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
color: #fff;
|
|
box-shadow: 0 4px 12px rgba(var(--primary-rgb, 139, 115, 85), 0.3);
|
|
|
|
&:hover:not(:disabled) {
|
|
background: var(--primary-hover, #a0825d);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(var(--primary-rgb, 139, 115, 85), 0.4);
|
|
}
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid transparent;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--border-color);
|
|
}
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
|
|
&:hover:not(:disabled) {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-large {
|
|
height: 48px;
|
|
padding: 0 32px;
|
|
font-size: 16px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
|
|
/* Intro Specific */
|
|
.intro-block {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.intro-illustration {
|
|
width: 120px;
|
|
height: 120px;
|
|
background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
color: var(--primary);
|
|
border-radius: 50%;
|
|
animation: float 6s ease-in-out infinite;
|
|
}
|
|
|
|
.intro-block h3 {
|
|
font-size: 20px;
|
|
color: var(--text-primary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.intro-block p {
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
max-width: 400px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Success State */
|
|
.success-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.success-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
color: #34c759;
|
|
background: rgba(52, 199, 89, 0.1);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 8px;
|
|
animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.success-title {
|
|
font-size: 28px;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.success-desc {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
|
|
/* Manual Prompt */
|
|
.manual-prompt {
|
|
background: #fff8f0;
|
|
border: 1px dashed #ffd8a8;
|
|
padding: 16px;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
|
|
p {
|
|
color: #d97706;
|
|
margin-bottom: 12px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes scaleIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes float {
|
|
0% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes successPop {
|
|
0% {
|
|
transform: scale(0.5);
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
} |