2025-12-17 15:32:58 +08:00
|
|
|
// ==================== 品牌色变量 ====================
|
|
|
|
|
$brand-color: #0055AA;
|
|
|
|
|
$brand-color-light: #EBF5FF;
|
|
|
|
|
$brand-color-hover: #004488;
|
|
|
|
|
|
2025-12-13 14:23:40 +08:00
|
|
|
.sidebar-layout {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
2025-12-17 15:32:58 +08:00
|
|
|
background: #fff;
|
|
|
|
|
font-family: 'Inter', 'Noto Sans SC', sans-serif;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
2025-12-17 15:32:58 +08:00
|
|
|
// ==================== 2级侧边栏 ====================
|
2025-12-13 14:23:40 +08:00
|
|
|
.sidebar {
|
2025-12-17 15:32:58 +08:00
|
|
|
width: 224px;
|
2025-12-13 14:23:40 +08:00
|
|
|
height: 100%;
|
2025-12-17 15:32:58 +08:00
|
|
|
background: #fff;
|
2025-12-13 14:23:40 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
color: #333;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
transition: width 0.3s ease;
|
2025-12-17 15:32:58 +08:00
|
|
|
border-right: 1px solid #f1f5f9;
|
2025-12-13 14:23:40 +08:00
|
|
|
|
|
|
|
|
&.collapsed {
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
|
|
|
|
.sidebar-header {
|
2025-12-17 15:32:58 +08:00
|
|
|
padding: 16px 0;
|
2025-12-13 14:23:40 +08:00
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
.logo {
|
2025-12-17 15:32:58 +08:00
|
|
|
display: none;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.collapse-btn {
|
2025-12-17 15:32:58 +08:00
|
|
|
display: flex;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
|
justify-content: center;
|
2025-12-17 15:32:58 +08:00
|
|
|
padding: 10px;
|
|
|
|
|
margin: 2px 8px;
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-section {
|
|
|
|
|
justify-content: center;
|
2025-12-17 15:32:58 +08:00
|
|
|
padding: 16px 8px;
|
|
|
|
|
|
|
|
|
|
.user-name, .back-icon {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 侧边栏头部
|
|
|
|
|
.sidebar-header {
|
2025-12-17 15:32:58 +08:00
|
|
|
height: 64px;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
border-bottom: 1px solid #f1f5f9;
|
2025-12-13 14:23:40 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.collapse-btn {
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
cursor: pointer;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #94a3b8;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
2025-12-13 14:23:40 +08:00
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-12-17 15:32:58 +08:00
|
|
|
background: #f1f5f9;
|
|
|
|
|
color: #64748b;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
}
|
2025-12-17 15:32:58 +08:00
|
|
|
.logo-img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 32px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
2025-12-13 14:23:40 +08:00
|
|
|
.logo {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-12-17 15:32:58 +08:00
|
|
|
gap: 8px;
|
2025-12-13 14:23:40 +08:00
|
|
|
|
|
|
|
|
.logo-text {
|
2025-12-17 15:32:58 +08:00
|
|
|
font-size: 15px;
|
2025-12-13 14:23:40 +08:00
|
|
|
font-weight: 600;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #1e293b;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 导航菜单
|
|
|
|
|
.nav-menu {
|
|
|
|
|
flex: 1;
|
2025-12-17 15:32:58 +08:00
|
|
|
// overflow-y: auto;
|
|
|
|
|
padding: 8px 0;
|
2025-12-13 14:23:40 +08:00
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
2025-12-17 15:32:58 +08:00
|
|
|
background: rgba(0, 0, 0, 0.1);
|
2025-12-13 14:23:40 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-section {
|
2025-12-17 15:32:58 +08:00
|
|
|
padding: 0;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-12-17 15:32:58 +08:00
|
|
|
gap: 8px;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
margin: 2px 8px;
|
|
|
|
|
border-radius: 8px;
|
2025-12-13 14:23:40 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s ease;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #64748b;
|
2025-12-13 14:23:40 +08:00
|
|
|
font-size: 14px;
|
2025-12-17 15:32:58 +08:00
|
|
|
font-weight: 500;
|
2025-12-13 14:23:40 +08:00
|
|
|
|
|
|
|
|
&:hover {
|
2025-12-17 15:32:58 +08:00
|
|
|
background: #f8fafc;
|
|
|
|
|
color: #475569;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.active {
|
2025-12-17 15:32:58 +08:00
|
|
|
background: $brand-color-light;
|
|
|
|
|
color: $brand-color;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span {
|
2025-12-17 15:32:58 +08:00
|
|
|
flex: 1;
|
2025-12-13 14:23:40 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 用户信息
|
|
|
|
|
.user-section {
|
2025-12-13 15:56:12 +08:00
|
|
|
padding: 16px;
|
2025-12-17 15:32:58 +08:00
|
|
|
border-top: 1px solid #f1f5f9;
|
2025-12-13 15:56:12 +08:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
2025-12-13 14:23:40 +08:00
|
|
|
|
|
|
|
|
.user-avatar {
|
2025-12-13 15:56:12 +08:00
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: transform 0.2s;
|
2025-12-13 14:23:40 +08:00
|
|
|
flex-shrink: 0;
|
2025-12-13 15:56:12 +08:00
|
|
|
|
|
|
|
|
&:hover {
|
2025-12-17 15:32:58 +08:00
|
|
|
transform: scale(1.05);
|
2025-12-13 15:56:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.el-avatar) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-name {
|
2025-12-13 15:56:12 +08:00
|
|
|
flex: 1;
|
2025-12-13 14:23:40 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #374151;
|
2025-12-13 14:23:40 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
2025-12-13 15:56:12 +08:00
|
|
|
|
|
|
|
|
.back-icon {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
cursor: pointer;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #94a3b8;
|
2025-12-13 15:56:12 +08:00
|
|
|
transition: all 0.2s;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2025-12-17 15:32:58 +08:00
|
|
|
color: $brand-color;
|
|
|
|
|
background: $brand-color-light;
|
2025-12-13 15:56:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 主内容区 ====================
|
|
|
|
|
.main-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
2025-12-17 15:32:58 +08:00
|
|
|
background: #f8fafc;
|
2025-12-13 14:23:40 +08:00
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// iframe 容器
|
|
|
|
|
.iframe-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iframe-header {
|
|
|
|
|
height: 56px;
|
|
|
|
|
padding: 0 24px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
2025-12-17 15:32:58 +08:00
|
|
|
border-bottom: 1px solid #e2e8f0;
|
|
|
|
|
background: #fff;
|
2025-12-13 14:23:40 +08:00
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iframe-title {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 600;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: #1e293b;
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-iframe {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border: none;
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iframe-loading {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
2025-12-17 15:32:58 +08:00
|
|
|
color: $brand-color;
|
2025-12-13 14:23:40 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
|
|
.el-icon {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ==================== 响应式 ====================
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.sidebar {
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
|
|
|
|
&:not(.collapsed) {
|
2025-12-17 15:32:58 +08:00
|
|
|
width: 224px;
|
2025-12-13 14:23:40 +08:00
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 1000;
|
2025-12-17 15:32:58 +08:00
|
|
|
box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
|
2025-12-13 14:23:40 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iframe-header {
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
|
|
|
|
|
.iframe-title {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|