2025-04-29 18:36:29 +08:00
|
|
|
/* 全局样式 */
|
|
|
|
* {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2025-04-30 00:05:32 +08:00
|
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
background-color: #f5f5f5;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 应用容器 */
|
|
|
|
.app-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 头部样式 */
|
|
|
|
.app-header {
|
2025-04-30 00:05:32 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2025-04-29 18:36:29 +08:00
|
|
|
padding: 0 20px;
|
|
|
|
height: 60px;
|
2025-04-30 00:05:32 +08:00
|
|
|
background-color: #fff;
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-left {
|
2025-04-29 18:36:29 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2025-04-30 00:05:32 +08:00
|
|
|
.logo {
|
|
|
|
height: 40px;
|
|
|
|
margin-right: 10px;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.header-right {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logout-btn {
|
2025-04-30 00:05:32 +08:00
|
|
|
padding: 8px 16px;
|
|
|
|
background-color: #f44336;
|
2025-04-29 18:36:29 +08:00
|
|
|
color: white;
|
2025-04-30 00:05:32 +08:00
|
|
|
border: none;
|
2025-04-29 18:36:29 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.logout-btn:hover {
|
2025-04-30 00:05:32 +08:00
|
|
|
background-color: #d32f2f;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 主内容区域 */
|
|
|
|
.app-main {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2025-04-30 00:05:32 +08:00
|
|
|
/* 侧边栏 */
|
2025-04-29 18:36:29 +08:00
|
|
|
.sidebar {
|
2025-04-30 00:05:32 +08:00
|
|
|
width: 240px;
|
|
|
|
background-color: #fff;
|
|
|
|
border-right: 1px solid #e0e0e0;
|
|
|
|
overflow-y: auto;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-list {
|
|
|
|
list-style: none;
|
2025-04-30 00:05:32 +08:00
|
|
|
padding: 20px 0;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2025-04-30 00:05:32 +08:00
|
|
|
padding: 12px 20px;
|
2025-04-29 18:36:29 +08:00
|
|
|
cursor: pointer;
|
2025-04-30 00:05:32 +08:00
|
|
|
transition: background-color 0.3s;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.menu-item:hover {
|
2025-04-30 00:05:32 +08:00
|
|
|
background-color: #f5f5f5;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
2025-04-30 00:05:32 +08:00
|
|
|
.menu-icon {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
margin-right: 12px;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
2025-04-30 00:05:32 +08:00
|
|
|
.submenu {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 20px;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 内容区域 */
|
|
|
|
.content-area {
|
|
|
|
flex: 1;
|
2025-04-30 00:05:32 +08:00
|
|
|
overflow: hidden;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.page-content {
|
2025-04-30 00:05:32 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: none;
|
|
|
|
}
|