262 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			262 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
/* 基础样式 */
 | 
						|
* {
 | 
						|
    margin: 0;
 | 
						|
    padding: 0;
 | 
						|
    box-sizing: border-box;
 | 
						|
}
 | 
						|
 | 
						|
body {
 | 
						|
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 | 
						|
    background-color: #f0f2f5;
 | 
						|
    color: #333;
 | 
						|
}
 | 
						|
 | 
						|
.app-container {
 | 
						|
    display: flex;
 | 
						|
    min-height: 100vh;
 | 
						|
}
 | 
						|
 | 
						|
/* 侧边栏样式 */
 | 
						|
.sidebar {
 | 
						|
    width: 250px;
 | 
						|
    background-color: #2c3e50;
 | 
						|
    color: white;
 | 
						|
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
 | 
						|
    position: fixed;
 | 
						|
    height: 100vh;
 | 
						|
    overflow-y: auto;
 | 
						|
    z-index: 1000;
 | 
						|
}
 | 
						|
 | 
						|
.logo-container {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    padding: 20px 15px;
 | 
						|
    border-bottom: 1px solid rgba(255,255,255,0.1);
 | 
						|
}
 | 
						|
 | 
						|
.logo {
 | 
						|
    width: 40px;
 | 
						|
    height: 40px;
 | 
						|
    margin-right: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.logo-container h2 {
 | 
						|
    font-size: 1.2rem;
 | 
						|
    font-weight: 600;
 | 
						|
}
 | 
						|
 | 
						|
.nav-links {
 | 
						|
    list-style: none;
 | 
						|
    padding: 15px 0;
 | 
						|
}
 | 
						|
 | 
						|
.nav-category {
 | 
						|
    font-size: 0.75rem;
 | 
						|
    text-transform: uppercase;
 | 
						|
    letter-spacing: 1px;
 | 
						|
    padding: 15px 20px 5px;
 | 
						|
    color: #adb5bd;
 | 
						|
}
 | 
						|
 | 
						|
.nav-links li {
 | 
						|
    position: relative;
 | 
						|
}
 | 
						|
 | 
						|
.nav-links li.active {
 | 
						|
    background-color: rgba(255,255,255,0.1);
 | 
						|
}
 | 
						|
 | 
						|
.nav-links li a {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    padding: 12px 20px;
 | 
						|
    color: #ecf0f1;
 | 
						|
    text-decoration: none;
 | 
						|
    transition: all 0.3s;
 | 
						|
}
 | 
						|
 | 
						|
.nav-links li a:hover {
 | 
						|
    background-color: rgba(255,255,255,0.05);
 | 
						|
}
 | 
						|
 | 
						|
.nav-links li a i {
 | 
						|
    margin-right: 10px;
 | 
						|
    width: 20px;
 | 
						|
    text-align: center;
 | 
						|
}
 | 
						|
 | 
						|
/* 主内容区样式 */
 | 
						|
.main-content {
 | 
						|
    flex: 1;
 | 
						|
    margin-left: 250px;
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
    min-height: 100vh;
 | 
						|
}
 | 
						|
 | 
						|
.top-bar {
 | 
						|
    display: flex;
 | 
						|
    justify-content: space-between;
 | 
						|
    align-items: center;
 | 
						|
    padding: 15px 25px;
 | 
						|
    background-color: white;
 | 
						|
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
 | 
						|
    position: sticky;
 | 
						|
    top: 0;
 | 
						|
    z-index: 900;
 | 
						|
}
 | 
						|
 | 
						|
.search-container {
 | 
						|
    position: relative;
 | 
						|
    width: 350px;
 | 
						|
}
 | 
						|
 | 
						|
.search-icon {
 | 
						|
    position: absolute;
 | 
						|
    left: 10px;
 | 
						|
    top: 50%;
 | 
						|
    transform: translateY(-50%);
 | 
						|
    color: #adb5bd;
 | 
						|
}
 | 
						|
 | 
						|
.search-input {
 | 
						|
    width: 100%;
 | 
						|
    padding: 10px 10px 10px 35px;
 | 
						|
    border: 1px solid #dee2e6;
 | 
						|
    border-radius: 20px;
 | 
						|
    font-size: 0.9rem;
 | 
						|
}
 | 
						|
 | 
						|
.search-input:focus {
 | 
						|
    outline: none;
 | 
						|
    border-color: #4a6cf7;
 | 
						|
}
 | 
						|
 | 
						|
.user-menu {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
}
 | 
						|
 | 
						|
.notifications {
 | 
						|
    position: relative;
 | 
						|
    margin-right: 20px;
 | 
						|
    cursor: pointer;
 | 
						|
}
 | 
						|
 | 
						|
.badge {
 | 
						|
    position: absolute;
 | 
						|
    top: -5px;
 | 
						|
    right: -5px;
 | 
						|
    background-color: #e74c3c;
 | 
						|
    color: white;
 | 
						|
    font-size: 0.7rem;
 | 
						|
    width: 18px;
 | 
						|
    height: 18px;
 | 
						|
    border-radius: 50%;
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    justify-content: center;
 | 
						|
}
 | 
						|
 | 
						|
.user-info {
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    cursor: pointer;
 | 
						|
    position: relative;
 | 
						|
}
 | 
						|
 | 
						|
.user-avatar {
 | 
						|
    width: 40px;
 | 
						|
    height: 40px;
 | 
						|
    background-color: #4a6cf7;
 | 
						|
    color: white;
 | 
						|
    border-radius: 50%;
 | 
						|
    display: flex;
 | 
						|
    align-items: center;
 | 
						|
    justify-content: center;
 | 
						|
    font-weight: bold;
 | 
						|
    margin-right: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.user-details {
 | 
						|
    display: flex;
 | 
						|
    flex-direction: column;
 | 
						|
}
 | 
						|
 | 
						|
.user-name {
 | 
						|
    font-weight: 600;
 | 
						|
    font-size: 0.9rem;
 | 
						|
}
 | 
						|
 | 
						|
.user-role {
 | 
						|
    font-size: 0.8rem;
 | 
						|
    color: #6c757d;
 | 
						|
}
 | 
						|
 | 
						|
.dropdown-menu {
 | 
						|
    position: absolute;
 | 
						|
    top: 100%;
 | 
						|
    right: 0;
 | 
						|
    background-color: white;
 | 
						|
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
 | 
						|
    border-radius: 5px;
 | 
						|
    width: 200px;
 | 
						|
    padding: 10px 0;
 | 
						|
    display: none;
 | 
						|
    z-index: 1000;
 | 
						|
}
 | 
						|
 | 
						|
.user-info.active .dropdown-menu {
 | 
						|
    display: block;
 | 
						|
}
 | 
						|
 | 
						|
.dropdown-menu a {
 | 
						|
    display: block;
 | 
						|
    padding: 8px 15px;
 | 
						|
    color: #333;
 | 
						|
    text-decoration: none;
 | 
						|
    transition: background-color 0.3s;
 | 
						|
}
 | 
						|
 | 
						|
.dropdown-menu a:hover {
 | 
						|
    background-color: #f8f9fa;
 | 
						|
}
 | 
						|
 | 
						|
.dropdown-menu a i {
 | 
						|
    width: 20px;
 | 
						|
    margin-right: 10px;
 | 
						|
    text-align: center;
 | 
						|
}
 | 
						|
 | 
						|
/* 内容区域 */
 | 
						|
.content-wrapper {
 | 
						|
    flex: 1;
 | 
						|
    padding: 20px;
 | 
						|
    background-color: #f0f2f5;
 | 
						|
}
 | 
						|
 | 
						|
/* 响应式适配 */
 | 
						|
@media (max-width: 768px) {
 | 
						|
    .sidebar {
 | 
						|
        width: 70px;
 | 
						|
        overflow: visible;
 | 
						|
    }
 | 
						|
 | 
						|
    .logo-container h2 {
 | 
						|
        display: none;
 | 
						|
    }
 | 
						|
 | 
						|
    .nav-links li a span {
 | 
						|
        display: none;
 | 
						|
    }
 | 
						|
 | 
						|
    .main-content {
 | 
						|
        margin-left: 70px;
 | 
						|
    }
 | 
						|
 | 
						|
    .user-details {
 | 
						|
        display: none;
 | 
						|
    }
 | 
						|
}
 |