feat: light theme, frontend link, nav fix, rename to 七虎AI

This commit is contained in:
qyyfw committed 2026-07-07 22:33:08 +08:00
1 parent effef176e2
commit e38a32e04e
12 files changed
+429 -345

No files matched your search

+63 -19
View File
@@ -1,16 +1,18 @@
/* ===== Front Layout ===== */
/* ===== Front Layout V3 - Light Theme ===== */
.front-layout {
display: flex;
height: 100vh;
overflow: hidden;
background: #F5F7FC;
color: #1A1F36;
}
/* Sidebar */
.front-sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
background: var(--color-sidebar-bg);
border-right: 1px solid var(--color-border-light);
background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
border-right: 1px solid rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
transition: width var(--transition-slow), min-width var(--transition-slow);
@@ -29,7 +31,7 @@
justify-content: space-between;
padding: var(--space-lg) var(--space-lg);
height: var(--header-height);
border-bottom: 1px solid var(--color-border-light);
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.sidebar-logo {
@@ -41,7 +43,7 @@
.sidebar-brand {
font-size: var(--text-lg);
font-weight: 700;
color: var(--color-text-primary);
color: #1A1F36;
letter-spacing: -0.02em;
white-space: nowrap;
}
@@ -53,13 +55,14 @@
width: 32px;
height: 32px;
border-radius: var(--radius-md);
color: var(--color-text-tertiary);
color: #8892B0;
transition: all var(--transition-fast);
cursor: pointer;
}
.collapse-btn:hover {
background: var(--color-bg-hover);
color: var(--color-text-primary);
background: rgba(0, 0, 0, 0.08);
color: #8892B0;
}
/* Navigation */
@@ -68,7 +71,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
padding: var(--space-sm) var(--space-sm);
padding: var(--space-sm);
overflow-y: auto;
}
@@ -79,12 +82,13 @@
}
.nav-item {
position: relative;
display: flex;
align-items: center;
gap: var(--space-md);
padding: var(--space-md) var(--space-md);
padding: 10px var(--space-md);
border-radius: var(--radius-md);
color: var(--color-text-secondary);
color: #8892B0;
text-decoration: none;
font-size: var(--text-base);
font-weight: 500;
@@ -93,13 +97,13 @@
}
.nav-item:hover {
background: var(--color-sidebar-hover);
color: var(--color-text-primary);
background: rgba(108, 99, 255, 0.06);
color: #1A1F36;
}
.nav-item.active {
background: var(--color-sidebar-active);
color: var(--color-accent);
background: rgba(108, 99, 255, 0.12);
color: #8B85FF;
}
.nav-icon {
@@ -115,10 +119,30 @@
flex: 1;
}
/* Active dot indicator */
.nav-active-dot {
display: none;
}
.nav-item.active .nav-active-dot {
display: block;
position: absolute;
right: 8px;
width: 6px;
height: 6px;
border-radius: 50%;
background: #6C63FF;
box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}
/* Sidebar Footer */
.sidebar-footer {
padding: var(--space-md);
border-top: 1px solid var(--color-border-light);
border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.sidebar-footer .nav-item {
margin-top: 2px;
}
.user-info-mini {
@@ -126,13 +150,14 @@
align-items: center;
gap: var(--space-md);
padding: var(--space-sm);
margin-bottom: 4px;
}
.user-avatar-sm {
width: 32px;
height: 32px;
border-radius: var(--radius-full);
background: linear-gradient(135deg, var(--color-accent), #8B8DFF);
background: linear-gradient(135deg, #6C63FF, #A78BFA);
color: white;
display: flex;
align-items: center;
@@ -151,16 +176,21 @@
.user-name {
font-size: var(--text-sm);
font-weight: 600;
color: var(--color-text-primary);
color: #1A1F36;
line-height: 1.3;
}
.user-plan {
font-size: var(--text-xs);
color: var(--color-accent);
color: #8B85FF;
line-height: 1.3;
}
.logout-btn:hover {
color: #EF4444 !important;
background: rgba(239, 68, 68, 0.1) !important;
}
/* Main Content */
.front-main {
flex: 1;
@@ -168,6 +198,12 @@
display: flex;
flex-direction: column;
min-width: 0;
background: #F5F7FC;
}
/* Forward-slash route for apps - hidden default route */
.front-main > * {
height: 100%;
}
/* Responsive */
@@ -187,3 +223,11 @@
transform: translateX(0);
}
}
/* Home & Admin links */
.nav-home-link {
margin-bottom: 4px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
padding-bottom: 8px;
}